Convert image from cv2 to cv to make a YAML file in python
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.
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 !)
Why do you need to save it as yaml? Why not doing the thing in C++ and in python just load it like here?