Ask Your Question
0

Can trackbar values be sent from another device?

asked 2016-06-17 09:34:51 -0600

YaddyVirus gravatar image

I have made a traffic light detection algorithm with OpenCV and Python. My script has some trackbars which I need to adjust and see the output to set a desired stage.

My script runs on my Raspberry Pi, is there any way I can send the trackbar values from another device on the same network on the RPi? For example, maybe make a phone app (I use Windows Phone BTW) which sends the trackbar data to the script and shows the output on my phone screen.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-17 09:52:31 -0600

berak gravatar image

updated 2016-06-17 09:59:39 -0600

sure:

>>> help(cv2.setTrackbarPos)
Help on built-in function setTrackbarPos:

setTrackbarPos(...)
    setTrackbarPos(trackbarname, winname, pos) -> None

so just send your values to your script (e.g, via sockets or bluetooth), and call cv2.setTrackbarPos() once you receive something

edit flag offensive delete link more

Comments

Call each value by a separate name and hence call the respective trackbar.. sweet! But how do I see the script's output on my screen?

YaddyVirus gravatar imageYaddyVirus ( 2016-06-17 10:10:10 -0600 )edit

send an image back ? noo idea. (and this is far beyond the scope of this site...)

berak gravatar imageberak ( 2016-06-17 10:18:46 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-17 09:34:51 -0600

Seen: 314 times

Last updated: Jun 17 '16