Hello. I want to make a sprinkler system that detects an animal(cat/dog) on a camera feed, and when its caught on camera for a certain time window, lets say 5 seconds, the PI will send a signal to a solenoid valve to turn on the sprinklers. This is to hopefully make the animal evacuate the area without harming it. I am very unfamiliar with RPI but completely willing to learn.
My ideas so far:
Use openCV for analysis of camera feed and detection of animals.
Solenoid valve connected to water hose and sprinkler for water needs and battery bank for operation(maybe).
My questions:
Is this possible?
What kind interfaces would I need to use to connect the camera, Pi and solenoid valve?
What voltage should my solenoid valve be so it can be turned on by the pi?