Page 1 of 1

drawing rectangle or circle on image obtained from vision sensor

Posted: 22 May 2024, 17:16
by CroCr
I'm using CoppeliaSim 4.5.1 in Ubuntu 18.04 LTS. My goal is to draw a primitive shape (e.g. rectangle or circle) on the image obtained by vision sensor. The scenes shipped with CoppleliaSim aren't straightforward enough for my purpose. In addition, I would like to switch between two colors (i.e. red and green) based on a signal triggered from an external client via ZeroMQ API using C++. Could you please assist me in this matter?

Re: drawing rectangle or circle on image obtained from vision sensor

Posted: 23 May 2024, 11:34
by fferri
Scene vision/imageProcessingDemo1-lua.ttt does some simple drawing onto the vision sensor image, using the simIM plugin.

Re: drawing rectangle or circle on image obtained from vision sensor

Posted: 23 May 2024, 19:37
by CroCr
fferri wrote: 23 May 2024, 11:34 Scene vision/imageProcessingDemo1-lua.ttt does some simple drawing onto the vision sensor image, using the simIM plugin.
Thank you for the answer. Now it is working properly. Last question, is it possible with simIM to draw shapes with filled color?

Re: drawing rectangle or circle on image obtained from vision sensor

Posted: 24 May 2024, 07:39
by fferri
Yes, via negative thickness param in some frunctions, or specific filling functions of simIM.