Reputation: 59
Im trying to train my CSV Data to make prediction. Im using Tensorflow to train the data. Im using Tensorflow for the the first time and do not know how to do it properly. I hope to receive your support.
My CSV Data has an x-axis of 62 (number of rows) and a y-axis of 46377 (number of columns). In the column class
the letters are displayed. In the columns x1,y1,z1... x21,y21,z21
are coordinates of the letteras which ive created by showing some sign with my hands.
class x1 y1 ... y21 z21
A 0.187087 0.668525 ... -0.024700 0.220235
B 0.202503 0.669253 ... -0.107100 0.240229
....
C 0.248009 0.676325 ... -0.070317 0.278087
C 0.245750 0.658381 ... -0.077429 0.282217
D 0.235889 0.643202 ... -0.080697 0.262705
....
What i would like to do is to make words recognisable with the help of letter shapes. For example, if I show the letter A with my hands, the letter A should be displayed as text. For that i need a to predict which sign is shown. I have tried to implement this but i dont know if this is correct. Ive just used the Dense Layer. How can I test them in the real time? Ive tried something by loading the model but unfortunately, nothing is displayed.
Upvotes: 0
Views: 221
Reputation: 101
Honestly, I do not see where the mistake can be... When you say "but unfortunately, nothing is displayed", you talk about the print(letter)
and cv2.putText()
?
because looking at your code I don't see any error that could lead to an empty letter
variable especially if you don't get any error messages like "difference n_col between your train and your test". Did you try to debug ?
Things i will do will be:
row
and X
and it seems similar to the shape of x_train so it's very weird if the problem is here.I am a beginner in Tf like you so i I might have missed a small detail but to me the algorithmic seems right
Upvotes: 1