GithubHelp home page GithubHelp logo

Comments (5)

lcskrishna avatar lcskrishna commented on August 24, 2024

Hello @iravikiran ,

Please provide a little bit more information on what OpenCV version are you using.
According to the compilation error that you have posted, it looks like "CV_CAP_PROP_FRAME_WIDTH" is not defined.
I'm assuming you are using OpenCV 4+.

You can try two solutions:

  1. One way is to try out using OpenCV-3.1 version, as mentioned in the requirements.
  2. The "CV_CAP_PROP_FRAME_WIDTH" in OpenCV4+ is referred as "CAP_PROP_FRAME_WIDTH", you can change the code and try it out.

from openvx_tutorial.

iravikiran avatar iravikiran commented on August 24, 2024

Hi Krishna, Thanks for your response.

Yes, I'm currently using OpenCV version 4.2

I also tried changing to "CAP_PROP_FRAME_WIDTH" in the header code. But still no luck. I'm still facing the error when trying to compile.

In file included from exercise1.cpp:35:0: opencv_camera_display.h: In member function ‘int CGuiModule::GetWidth()’: opencv_camera_display.h:86:33: error: ‘CAP_PROP_FRAME_WIDTH’ was not declared in this scope return (int) m_cap.get( CAP_PROP_FRAME_WIDTH ); ^~~~~~~~~~~~~~~~~~~~ opencv_camera_display.h:86:33: note: suggested alternative: In file included from /usr/local/include/opencv2/highgui.hpp:51:0, from /usr/local/include/opencv2/opencv.hpp:68, from opencv_camera_display.h:33, from exercise1.cpp:35: /usr/local/include/opencv2/videoio.hpp:135:8: note: ‘CAP_PROP_FRAME_WIDTH’ CAP_PROP_FRAME_WIDTH =3, //!< Width of the frames in the video stream. ^~~~~~~~~~~~~~~~~~~~ In file included from exercise1.cpp:35:0: opencv_camera_display.h: In member function ‘void CGuiModule::DrawText(int, int, const char*)’: opencv_camera_display.h:122:87: error: ‘CV_AA’ was not declared in this scope cv::FONT_HERSHEY_COMPLEX_SMALL, 0.8, cv::Scalar( 128, 0, 0 ), 1, CV_AA ); ^~~~~ opencv_camera_display.h:122:87: note: suggested alternative: ‘CV_8U’ cv::FONT_HERSHEY_COMPLEX_SMALL, 0.8, cv::Scalar( 128, 0, 0 ), 1, CV_AA ); ^~~~~ CV_8U

kindly please help me on this, Thanks.

from openvx_tutorial.

iravikiran avatar iravikiran commented on August 24, 2024

Any help with this issue?

Thanks,

from openvx_tutorial.

lcskrishna avatar lcskrishna commented on August 24, 2024

@iravikiran Did you try using opencv version 3.1 ?

from openvx_tutorial.

rgiduthuri avatar rgiduthuri commented on August 24, 2024

Updated the build scripts and README.md to work with OpenVINO/OpenCV. It's in master now. Please re-open the issue if the problem still persists.

from openvx_tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.