Page 1 of 1

Detecting color using vision sensor

Posted: 24 Feb 2021, 15:46
by Usama1551
I am trying to simulate my robot to move towards a red block using a vision sensor. I am using 64/64 resolution. Can I get the color of each pixel from the sensor since I can seem to find a way to do that? in addition can I find the position of each pixel relative to the full image?

Re: Detecting color using vision sensor

Posted: 25 Feb 2021, 00:11
by fferri
sim.getVisionSensorImage.

Also check out simVision.blobDetectionOnWorkImg which may be of interest for your task.