openCV - imwrite
Hi all!
I like to use the imwrite method from opencv to create a bitmap from a matrix.
Which package from openCV I have to import in my python file so that I can use "imwrite"? I think opencv2? But how can I use this by ROS electric? Because when I import opencv2 in my python file, I get the message that there is no modul like this.
Thanks for help!
What exactly are you trying to do with ROS? If this is an opencv question, then suggest you post on the opencv answer forum. If this is a ROS question, then maybe more info on your problem will help. Otherwise @dinamex answer is probably correct.
I created a data array for the footstep_planner and I like to make a bitmap file from this data array. I know that I could do this with the imwrite method from opencv, but I could not import the opencv methods in my python file. I do not think that I have to use the opencv bridge, I have no image.
Ok ... this is an opencv question and not a ROS question. I use c++ not python, but if you include opencv2 that would give you access to imwrite in c++. However you do that in python should work too.