RobotWebTools / web_video_server

HTTP Streaming of ROS Image Topics in Multiple Formats
http://ros.org/wiki/web_video_server
Other
269 stars 187 forks source link

add check for opencv version #98

Closed jveitchmichaelis closed 4 years ago

jveitchmichaelis commented 4 years ago

On versions of OpenCV >= 3, enums don't have CV_ prepended. This PR adds a compile time check and uses the correct format as appropriate. Checked with OpenCV 4.

e.g. https://docs.opencv.org/3.0.0/d4/da8/group__imgcodecs.html

jihoonl commented 4 years ago

It looks like the change got merged togheter with #103 thanks.