Giter Site home page Giter Site logo

Failing to set image width about cv_camera HOT 5 CLOSED

otl avatar otl commented on July 24, 2024
Failing to set image width

from cv_camera.

Comments (5)

EricSun787 avatar EricSun787 commented on July 24, 2024 1

In addition, I found that the OpenCV version corresponding to ROS Noetic in RasipiOS is 3.2. And In the OpenCV3.2 user manual, the image width parameters are the same as those in this project code, see :
image
image
and when i running cv_camera_node, although the program shows fail to set image_width, but the resolution of the image data posted through the topic has been set correctly. That's confused me

from cv_camera.

OTL avatar OTL commented on July 24, 2024

This package is thin wrapper of OpenCV video capture module.
Can you check if it is possible to do that from opencv?

from cv_camera.

vigneshrajap avatar vigneshrajap commented on July 24, 2024

So I found the problem is with the OpenCV version. OpenCV 2 version works well with the current cv_camera package. Whereas some of the OpenCV 3 versions have API changes, so the image width could not be set.

from cv_camera.

EricSun787 avatar EricSun787 commented on July 24, 2024

@vigneshrajap Hi, Vignesh. I'm using ROS Noetic on RaspiOS , I have the same issue . Could you tell me which API you found is different and how to use the correct API to set the image width. Thanks alot!

from cv_camera.

vigneshrajap avatar vigneshrajap commented on July 24, 2024

In some OpenCV versions, API is like cv::CV_CAP_PROP_FRAME_WIDTH

from cv_camera.

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.