drawing rectangle or circle on image obtained from vision sensor

Typically: "How do I... ", "How can I... " questions
Post Reply
CroCr
Posts: 78
Joined: 29 Dec 2022, 01:47

drawing rectangle or circle on image obtained from vision sensor

Post 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?

fferri
Posts: 1267
Joined: 09 Sep 2013, 19:28

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

Post by fferri »

Scene vision/imageProcessingDemo1-lua.ttt does some simple drawing onto the vision sensor image, using the simIM plugin.

CroCr
Posts: 78
Joined: 29 Dec 2022, 01:47

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

Post 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?

fferri
Posts: 1267
Joined: 09 Sep 2013, 19:28

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

Post by fferri »

Yes, via negative thickness param in some frunctions, or specific filling functions of simIM.

Post Reply