motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.89k stars 903 forks source link

Trigger picture with sensor #3010

Open 3DFarmer opened 1 year ago

3DFarmer commented 1 year ago

Hi, I'm looking to use motioneye to create a dataset for ai training. I want to install a inductive sensor to a pi's GPIO pin and have motioneye take one picture every time the sensor is activated. This sensor will be hooked up to a 3D printer, but the machine is close source so I can't use octoprint or other 3D printer servers. I love motioneye interface and ease of use.

Could this be accomplished?

starbasessd commented 1 year ago

Can it be done? Yes. You would have to write a script in Python to read the GPIO pin on a regular time frame, and call the capture. There are several scripts people have posted here and in motionEye githubs that do it for buttons.