You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just found this repo and wanted to give some tips to improve your algorithm.
Don't do feature detection and matching on every frame. This is really slow, once you've found the target image you can just track the keypoints using sparse optical flow (calcOpticalFlowPyrLK) and compute camera pose (solvePnp) but only do feature detection again when you loose tracking on most of your keypoints.
If you use this approach you could separate detection and tracking in 2 threads, making the tracking able to recover fast if it starts loosing keypoints.
Here it is a sample repo I made for MarkerlessAR for iOS, it doesn't include separate threads but you can figure out how tracking works:
Thank you soooo much these helpful and useful tips! I agree with you that if I could separate detection and tracking in 2 threads, I could make it run faster! Moreover, "calcOpticalFlowPyrLK" is great idea and performing feature detection and matching on every frame are very costly! I will try to develop it, if I will find a suitable time.
Thank you for your feedback again! Moreover, I will check your repo deeply to understand your recommendatitions fully.
Hi,
I've just found this repo and wanted to give some tips to improve your algorithm.
Here it is a sample repo I made for MarkerlessAR for iOS, it doesn't include separate threads but you can figure out how tracking works:
https://github.com/pawlusmall/MarkerlessAR
Your documentation and code is very clean and understandable for those wanting to learn how AR works, congratulations.
The text was updated successfully, but these errors were encountered: