ros-drivers / libuvc_ros

http://www.ros.org/wiki/libuvc_ros
81 stars 97 forks source link

Image is all green #61

Open vaibhavviswanathan opened 5 years ago

vaibhavviswanathan commented 5 years ago

When using libuvc, I am having an issue that the image is all green when saturated (instead of all white). I believe this is because the image is being interpreted as the wrong type. When using OpenCV, I can see the correct image by recoloring it as such:

gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) proc = cv2.cvtColor(gray, cv2.COLOR_BayerBG2BGR) How do I solve this problem in libuvc_ros ?