opencv2/tracking/tracking_legacy.hpp compile error with sdk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

opencv2/tracking/tracking_legacy.hpp compile error with sdk

Jump to solution
2,188 Views
astel_
Contributor II

Hello

Yocto OS : nanbield-6.6.3-1.0.0
Opencv : 4.8.1.imx

I tried to use tracking algorithm using opencv tracking_legacy.hpp.
But when I tried to compile it using sdk that I built, it seems i encounter some issue. the error log is at the attachment file.

Is this a bug in this opencv-imx in this version? and do anyone have solution for this

Thank you

0 Kudos
Reply
1 Solution
2,127 Views
astel_
Contributor II

Thank you for your reply.

apparently i use wrong implementation regarding how to use legacy tracker of opencv.

there is a sample file from opencv-contrib that tell us how to use that correctly:
https://github.com/opencv/opencv_contrib/blob/4fc6995375e384b8e25bd6c8693fa8dd2ed4bb0a/modules/track...

View solution in original post

0 Kudos
Reply
2 Replies
2,154 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2,128 Views
astel_
Contributor II

Thank you for your reply.

apparently i use wrong implementation regarding how to use legacy tracker of opencv.

there is a sample file from opencv-contrib that tell us how to use that correctly:
https://github.com/opencv/opencv_contrib/blob/4fc6995375e384b8e25bd6c8693fa8dd2ed4bb0a/modules/track...

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1963150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eopencv2%2Ftracking%2Ftracking_legacy.hpp%20compile%20error%20with%20sdk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3CBR%20%2F%3E%3CBR%20%2F%3EYocto%20OS%20%3A%20nanbield-6.6.3-1.0.0%3CBR%20%2F%3EOpencv%20%3A%204.8.1.imx%3CBR%20%2F%3E%3CBR%20%2F%3EI%20tried%20to%20use%20tracking%20algorithm%20using%20opencv%20tracking_legacy.hpp.%3CBR%20%2F%3EBut%20when%20I%20tried%20to%20compile%20it%20using%20sdk%20that%20I%20built%2C%20it%20seems%20i%20encounter%20some%20issue.%20the%20error%20log%20is%20at%20the%20attachment%20file.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20this%20a%20bug%20in%20this%20opencv-imx%20in%20this%20version%3F%20and%20do%20anyone%20have%20solution%20for%20this%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1963150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1965480%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20opencv2%2Ftracking%2Ftracking_legacy.hpp%20compile%20error%20with%20sdk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1965480%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3Eapparently%20i%20use%20wrong%20implementation%20regarding%20how%20to%20use%20legacy%20tracker%20of%20opencv.%3CBR%20%2F%3E%3CBR%20%2F%3Ethere%20is%20a%20sample%20file%20from%20opencv-contrib%20that%20tell%20us%20how%20to%20use%20that%20correctly%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fopencv%2Fopencv_contrib%2Fblob%2F4fc6995375e384b8e25bd6c8693fa8dd2ed4bb0a%2Fmodules%2Ftracking%2Fsamples%2Fsamples_utility.hpp%23L13-L28%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fopencv%2Fopencv_contrib%2Fblob%2F4fc6995375e384b8e25bd6c8693fa8dd2ed4bb0a%2Fmodules%2Ftracking%2Fsamples%2Fsamples_utility.hpp%23L13-L28%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1963889%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20opencv2%2Ftracking%2Ftracking_legacy.hpp%20compile%20error%20with%20sdk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1963889%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EYou%20need%20update%20your%20code%2C%20the%20apis%20have%20changed%20for%20opencv%204.8.x%2C%20please%20refer%20documents.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fd9%2Fdf8%2Fgroup__tracking.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fd9%2Fdf8%2Fgroup__tracking.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fdc%2Fd6b%2Fgroup__tracking__legacy.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fdc%2Fd6b%2Fgroup__tracking__legacy.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fd5%2Fd0b%2Fgroup__tracking__detail.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.opencv.org%2F4.8.0%2Fd5%2Fd0b%2Fgroup__tracking__detail.html%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E