Lucas Kanade Algorithm for Image tracking - can not find cvCalcOpticalFlowPyrLK for Android
1,215 views
Skip to first unread message
ChrisP
unread,
Aug 30, 2011, 7:15:39 AM8/30/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-opencv
Hi,
I would like to develop an AR-Application for Android that should find
features from a static 2D Image in the live camera view. I am
relatively new to OpenCV and Android. My first intention was to use
the Lucas Kanade optical flow algorithm but I could not find it in the
OpenCV package for Android. Is it not part of it or did I simply not
see it? I also wonder if for my application Lucas Kanade is actually
the right choice. Might it work easier with SURF or some other
algorithm?
Kirill Kornyakov
unread,
Aug 30, 2011, 7:33:40 AM8/30/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android...@googlegroups.com
Hi, if you want LK, you should use this function calcOpticalFlowPyrLK. But I'm not sure that I understood your question right. OF LK is used for tracking of a set of points. You can extract them using SURF, but better to use something like FAST, goodFeaturesToTrack or even simple regular grid of points over frame.
In our implementation of AR application we used findCirclesGrid (get pattern here). It work better and faster than findChessboardCorners. Actually the performance is not realtime, but you can improve situation by parameters tuning.
Kirill
ChrisP
unread,
Aug 30, 2011, 8:22:16 AM8/30/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
e.g. position certain objects on the camera view of a paper map. I
have a png or jpg image of the map and can find features with FAST or
the other methods you mentioned. If I understood you right I need then
OF LK to track these features.
> But
> I'm not sure that I understood your question right. OF LK is used for
> tracking of a set of points. You can extract them using SURF, but better to
> use something like FAST, goodFeaturesToTrack or even simple regular grid of
> points over frame.
>
> In our implementation of AR application we used
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android...@googlegroups.com
Ok, I see. Nice project this http://www.popcode.info. My advice is to start from implementation of the full pipeline in C++ on a desktop. First of all we should get robust pose estimation, but it is not trivial in some cases. In our experiments FAST didn't give us robust results and we switched to SURF.
For more information please check these tutorials:
> from implementation of the full pipeline in C++ on a desktop. First of all
> we should get robust pose estimation, but it is not trivial in some cases.
> In our experiments FAST didn't give us robust results and we switched to
> SURF.
>
> For more information please check these tutorials:
>