Find red color and setar pin 1

OpenMV related project discussion.
niltonbit
Posts: 3
Joined: Fri Mar 15, 2019 10:04 am

Find red color and setar pin 1

Postby niltonbit » Fri Mar 15, 2019 12:55 pm

OI, I want to track the red color and when I find pin 1.
I'm using the example "Single Color RGB565 Blob Tracking Example".
My purpose is to track 4 red sides of the piece but for now I start with 1 side.

I want to add the code that identifies the color red and set the pin 1.
Help me! I've been trying for days.
thank you.
User avatar
iabdalkader
Posts: 834
Joined: Sun May 24, 2015 3:53 pm

Re: Find red color and setar pin 1

Postby iabdalkader » Fri Mar 15, 2019 1:48 pm

Hi, please post the code you have so far and an example image of what you want to track and we'll help.
User avatar
iabdalkader
Posts: 834
Joined: Sun May 24, 2015 3:53 pm

Re: Find red color and setar pin 1

Postby iabdalkader » Fri Mar 15, 2019 1:56 pm

Also please stop posting the same question in every forum we have, we got it :)
niltonbit
Posts: 3
Joined: Fri Mar 15, 2019 10:04 am

Re: Find red color and setar pin 1

Postby niltonbit » Tue Mar 26, 2019 7:24 am

post.jpg
(translated by Google)Hi, sorry for the repeated posts.
You should make a piece with red edges, need to detect a defective part and delete, what is the best example?
How do I do? I understand a bit of programming, but open ID is little.

Image attached.
Use this example:
"# Single Color RGB565 Blob Tracking Example" OpemMV ID 2.1.0

(translated by Google)
User avatar
kwagyeman
Posts: 3045
Joined: Sun May 24, 2015 2:10 pm

Re: Find red color and setar pin 1

Postby kwagyeman » Tue Mar 26, 2019 12:59 pm

Okay, the first thing you need to do is to build a rig where the camera is firmly mounted above the objects and then you also need to make sure that you have proper lighting that's diffuse on the items in question.

Once you've done this you should be able to capture pictures from the camera's point of view of the objects. Then you can use the find_blobs() examples to track the large orange color blob that appears on the defect object. You just need to use Tools -> Threshold Editor to get the color bounds.

...

If you want to execute this easily you have to build the rig as mentioned above to mount the camera well. Until you do that you're not going to be able to get much progress on what you want to do.

But, otherwise, yes, the OpenMV Cam can do what you want.
Nyamekye,
niltonbit
Posts: 3
Joined: Fri Mar 15, 2019 10:04 am

Re: Find red color and setar pin 1

Postby niltonbit » Thu Apr 04, 2019 3:54 pm

Thanks! It was improvised but I'm building it.

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests