Hello I am new to opencv and here's my question, how to communicate with external hardware after detecting a required feature in an image? [closed]

asked 2018-11-05 08:33:34 -0600

oja gravatar image

updated 2018-11-05 09:14:58 -0600

berak gravatar image

My project is about looking for RGB colors in an image whichever value is greater the respective coloured led must turn on i am using raspberry pi 3b+ basically i need to control a specific pin when a specific color is detected. Thanks for looking into this question:)

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2018-12-19 08:30:43.969287

Comments

1

That's an interesting question, but I don't think you'll find help here for your 3rd party hardware programming. Did you try stack overflow?

sjhalayka gravatar imagesjhalayka ( 2018-11-05 08:44:23 -0600 )edit

@oja, sjhalayka is right. we can't help with your raspi pins, but we could help with your color detection, if you think it needs improvement. ;)

berak gravatar imageberak ( 2018-11-05 09:14:17 -0600 )edit
1

Thanks for responding @sjhalayka ill go ask the stackoverflow guys,@berak Sure thanks for offering your help

oja gravatar imageoja ( 2018-11-05 09:22:28 -0600 )edit

@oja.You must set gpio to 1 if the values is greater the respective to turn led on. Unfortunately, I haven't attempted yet. I am working on robotic.

supra56 gravatar imagesupra56 ( 2018-11-05 09:44:28 -0600 )edit

BTW, you don't need 3rd party hardware programming. You can work both opencv and raspberry pi 3.

supra56 gravatar imagesupra56 ( 2018-11-05 09:49:30 -0600 )edit

Thanks for responding The detection I imagined would be a box pointing the colour so the condition is the occurrence of that box so how do I code it as a condition (need help with the coding)

oja gravatar imageoja ( 2018-11-05 09:51:24 -0600 )edit

@oja, we can only mend code, we can actually see, so edit your question, and show, what you have, so far.

berak gravatar imageberak ( 2018-11-05 10:02:30 -0600 )edit

Sorry about that I haven't started my project yet as soon as I have a draft I will followup with you guys

oja gravatar imageoja ( 2018-11-05 10:06:44 -0600 )edit

@oja.cv2.boxPoints.When the boxPoint is detected, then set gpio pin high to turn led on

supra56 gravatar imagesupra56 ( 2018-11-05 11:15:01 -0600 )edit