Convert image from cv2 to cv to make a YAML file in python

asked 2015-10-07 03:49:27 -0500

diegomez_86 gravatar image

Hello. I have an image loaded from cv2 (I cannot load it in cv directly because I have to use ROS on it and it just has conversion to cv2) and I need to convert it to cv in order to later write it as a YAML file. Does anyone know how to do it? I looked on internet for several options, but until now I see just how to write a YAML only from cv or how to load a YAML file in as an opencv Mat. I also found several help but in c++ (and I have to work on a python script)

If someone knows how to do it and can tell me the procedure, I would be very thankful to you guys.

edit retag flag offensive close merge delete

Comments

1

hi diego, please spare us duplicate questions !

rather edit your older question, to make it pop up again.

(and then, - you must not use the old cv module !)

berak gravatar imageberak ( 2015-10-07 04:16:29 -0500 )edit

Why do you need to save it as yaml? Why not doing the thing in C++ and in python just load it like here?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-10-07 04:17:02 -0500 )edit