开发者

Streaming webcam data to a webpage

开发者 https://www.devze.com 2023-03-29 10:50 出处:网络
My intention: Stream webcam feed to a webpage. Have buttons that talk to a Python program. I\'m planning on using OpenTLD (AKA Predator) to get information about a moving speaker via webcam. Then

My intention:

  • Stream webcam feed to a webpage.
  • Have buttons that talk to a Python program.

I'm planning on using OpenTLD (AKA Predator) to get information about a moving speaker via webcam. Then I will send the coordinates to Python, which will do calculations, and send it via the serial connection (using pyserial) to an Arduino that'll move a motor which moves a camera.

I'd 开发者_如何学编程like a web interface for remote preview/manual control of the Arduino, via talking to the Python controller/program.

I'm looking for something that runs on Ubuntu that allows the webcam stream to be displayed and commands to be sent to a Python program.


I would suggest the following:

  1. Capture and write to file:
  2. Read file and calculate coordinates
  3. Use Python or any other language to send the signals over serial.

You might need to incorporate some feedback aspect for proper control. For capturing and writing to files, there should be range of programs. Many programs are capable of taking snapshots and writing to files (same name or separate ones) instead of video which you can exploit. I can't recollect the name, but I remember using one such program on Ubuntu.

0

精彩评论

暂无评论...
验证码 换一张
取 消