r/computervision • • Mar 14 '22

Help: Project ideas for improving pen tracking algorithm?

202 Upvotes

38 comments sorted by

View all comments

Show parent comments

1

u/Mega_Mandarin Mar 15 '22

I am just using masks (as well as hough and canny transforms). I described the processing steps in a comment above.

1

u/[deleted] Mar 15 '22 edited Mar 15 '22

I see - you are not using deeplearning. Deep learning may be a good fit for a problem like this given your dataset. Otherwise you will need to do a lot of fine tuning based on the other users comments. This problem would likely be solved accurately by a lightweight DNN.

Still my comments main points are still valid - you should be careful using masks to predict pixel-accurate points, they are unlikely to be stable frame-to-frame without more data and a lot of finetuning.

If you were to use DNNs, you could even construct loss to punish the network for outputting points with a large delta(x,y) from your previous timepoint, since you know the point should be relatively close to the last one. This could get tricky if people write faster/slower. Something like that would likely reduce jitter significantly.