Color detection using blobTo3dPosition sensor
-
- Posts: 12
- Joined: 11 Mar 2024, 09:45
Color detection using blobTo3dPosition sensor
I am working on a project and i need to extract the RGB values of the blobs (I have 4 blobs, red, blue, green, and white) in the scene. Inside the blobTo3dPosition sensor script, I get the coordinates but not color information. Can I get a code to get the values and to print them in a tabular form? Thank you.
Re: Color detection using blobTo3dPosition sensor
Hello,
the color (or the order of the blobs) is not relevant, since there is no blob order. Looking at the simVision.blobDetectionOnWorkImg function, you'll notice that for each blob, following will be returned:
Cheers
the color (or the order of the blobs) is not relevant, since there is no blob order. Looking at the simVision.blobDetectionOnWorkImg function, you'll notice that for each blob, following will be returned:
- the blob relative size
- the blob orientation
- the blob relative position X
- the blob relative position Y
- the blob bounding box relative width
- the blob bounding box relative height
Cheers