Detecting color using vision sensor

Typically: "How do I... ", "How can I... " questions
Post Reply
Usama1551
Posts: 11
Joined: 16 Feb 2021, 21:47

Detecting color using vision sensor

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

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

Re: Detecting color using vision sensor

Post by fferri »

sim.getVisionSensorImage.

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

Post Reply