How to use cpp-tutorial-pnp_detection in real time camera

asked 2017-06-01 13:20:29 -0600

double gravatar image

Hi, I tried to use cpp-tutorial-pnp_detection in opencv sample code. I compile it successfully and can use in the box video, which is provided in opencv master. However, I know cpp-tutorial-pnp_detection can be used in real time camera but I cannot find information about how to use it. Has someone used in that way? Could you please give me some ideas?

Thanks in advance

edit retag flag offensive close merge delete

Comments

I don't think it is possible witout changing source code.

try to change https://github.com/opencv/opencv/blob... in

cap.open(0); // open a recorded video
LBerger gravatar imageLBerger ( 2017-06-01 13:37:28 -0600 )edit

Yes, i think so. Thanks for quick reply

double gravatar imagedouble ( 2017-06-01 13:45:48 -0600 )edit

@LBerger@double Can you please help me in compiling the code. I want to run cpp-tutorial-pnp_detection but I am unable to understand where to make the build folder and compile it. Please help

nikhiljais gravatar imagenikhiljais ( 2018-11-29 02:03:13 -0600 )edit

try this to build locally opencv

LBerger gravatar imageLBerger ( 2018-11-29 04:04:41 -0600 )edit