planar_tracking selectROI not work [closed]
I am a newer to opencv,i want to look the planar_tracking demo,but when i new my project in vs2015,the cv::selectROI not resolve, then i change it to selectROI ,it works.i start the application,i select rect by my mouse,it crash,i put down my left mouse button , move ,then leftbutton up.i check the selectROI return rect is 0,0,0,0. please help me!!thanks a lot. here is bug information
Debug Error!
Program: D:\opencv3.2\opencv\build\x64\vc14\bin\opencv_world320d.dll Module: D:\opencv3.2\opencv\build\x64\vc14\bin\opencv_world320d.dll File:
Run-Time Check Failure #2 - S
(Press Retry to debug the application)
I cannot reproduce your issue using vs 2015-64 bits and opencv 3.2.0-dev. Have you mixed release with debug program?
i work in release mode, but when i put down my mouse leftbutton on the frame ,it crash. cv::selectROI(video_name, frame) complier says there is no members in namespace cv so i remove cv:: ,it works.
"put down my mouse leftbutton on the frame" and "cv::selectROI(video_name, frame) complier says there is no members" how can you run a program with compilation error? and you post a new question http://answers.opencv.org/question/14... : I don't understand your problem
the source code is cv::selectROI ,it says there is no selectROI function,so i change it into selectROI then it can call the function,but it crash when i select roi on the frame. so i manually set a rectangel as a roi,i found it is slow in debug mode (in release mode it is faster). so , selectROI function not work in my project . i was in win 7,vs2015 opencv3.2dev. i new my project ,and copy the header file and the main cpp file to my project. thanks a lot .
Are we talking about same source code ? I have tested this one
Did you use cmake tou build this sample?
line 162 is the cv::selectROI i am at win7 ,vs2015 ,i don't know how to cmake and build(linux)
Ok follow this post. You don't need to clone vtk. But opencv contrib it is a good idea to use it
can you explain why i need opencv_contrib module?is there some functions in opencv_contrib module called by selectROI ?
" opencv contrib it is a good idea to use it" you don't need it for planar_tracking but if you want to go on with opencv you will find many algorithms (see extra modules)