Hi,
What I am trying to do is to use the vision sensors for blob detection. I want to detect only blobs of a certain color, so I use a color filter to filter only the color I want.
Now i want to dynamically change the color filter from the script so i can find a new blob with a different color.
I am just wondering if it is possible to change the vision sensor image filters from lua scripts?
Or is it some other way I can achieve what I am trying to do?
Change vision sensor filters from script
Re: Change vision sensor filters from script
Hello,
you cannot modify the vision sensors from a script (for now). But instead, simply read the pixels at the blob positions, and check the color. Basically do the same as was done in the blobDetectionWithPickAndPlace.ttt demo scene.
Cheers
you cannot modify the vision sensors from a script (for now). But instead, simply read the pixels at the blob positions, and check the color. Basically do the same as was done in the blobDetectionWithPickAndPlace.ttt demo scene.
Cheers
Re: Change vision sensor filters from script
Thank you, that works pretty well.