CamshiftDemo on 64 bit windows 10 doesn't display camera feed

asked 2016-08-12 03:50:33 -0500

ramasamy-rudram gravatar image

updated 2016-08-12 06:10:50 -0500

image description CamshiftDemo on 64 bit windows 10 doesn't display camera feed. How can i get the camera feed on screen.image description

edit retag flag offensive close merge delete


that's a fairly complex sample. can you try something plain vanilla, like this:

#include "opencv2/opencv.hpp"
using namespace cv;

int main()
    VideoCapture cap(0);
        Mat f;
        cap >> f;
        if (waitKey(10)==27) break;
berak gravatar imageberak ( 2016-08-12 05:10:59 -0500 )edit

it shows the same...see the question..I'm running windows 10 64 bit

ramasamy-rudram gravatar imageramasamy-rudram ( 2016-08-12 06:08:29 -0500 )edit

See answer

ramasamy-rudram gravatar imageramasamy-rudram ( 2016-08-12 06:08:41 -0500 )edit

your weird window title hints at a linking problem, it's notthe code, something in your project is wrong.

please make absolutely sure, that you only link opencv debug libs with debug build, and release libs with release.

berak gravatar imageberak ( 2016-08-12 06:13:25 -0500 )edit

also, please stop wasting your (and our !!) time with opencv2.3.1. throw it away immediately, get a recent opencv version, and try again.

berak gravatar imageberak ( 2016-08-12 06:15:29 -0500 )edit

I get Error 1 error LNK1104: cannot open file 'opencv_world310.obj' C:\Users\rusht.DESKTOP-PEP6IHI\Documents\Visual Studio 2013\Projects\Project1\Project1\LINK Project1

ramasamy-rudram gravatar imageramasamy-rudram ( 2016-08-12 06:36:49 -0500 )edit

Now I am getting

Error 1 error LNK2019: unresolved external symbol "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@1@@Z) referenced in function main C:\Users\rusht.DESKTOP-PEP6IHI\Documents\Visual Studio 2013\Projects\Project1\Project1\Source1.obj Project1

ramasamy-rudram gravatar imageramasamy-rudram ( 2016-08-12 06:49:41 -0500 )edit

please link against opencv_world310.lib (not .obj), and use the 'd' version in debug mode.

berak gravatar imageberak ( 2016-08-12 06:56:27 -0500 )edit

95% of your problems stem from inability to use your ide correctly....

berak gravatar imageberak ( 2016-08-12 06:58:12 -0500 )edit

Can u pls point me somewhere where I can get more info about using the ide correctly

ramasamy-rudram gravatar imageramasamy-rudram ( 2016-08-12 07:12:14 -0500 )edit