Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated usb_camera.cpp #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anupammaurya6767
Copy link

  1. Updated CV_CAP_PROP_FPS to CAP_PROP_FPS: In OpenCV version 4.x, the prefix CV_ was removed from the capture property constants. Therefore, CV_CAP_PROP_FPS should be changed to CAP_PROP_FPS in order to retrieve the camera's frame rate correctly.

  2. Updated the deprecated toImageMsg() function: The toImageMsg() function is deprecated in newer versions of cv_bridge. Instead, you can directly assign the cv::Mat image to the out_msg.image field.

  3. Updated the sensor_msgs::image_encodings namespace: The sensor_msgs::image_encodings namespace has been moved to the cv_bridge:: namespace. Update sensor_msgs::image_encodings::BGR8 to cv_bridge::ENCODING_BGR8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant