I have a little problem.
I need to write a program (preferably in Python), which after changing the input state GPIO on Raspberry will take screenshots from the IP camera and write to the disk.
I am currently using a webcam connected to USB and using "fswebcam":
I save the picture with the current time on the disk.
Code: Select all
def foto(): dt = str(datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")) photofile = "/home/pi/AlarmFoto/"+dt+".jpg" os.system("fswebcam -r 800x600 "+ photofile)
Now I would like to do the same with only an IP camera. The camera is Arecont-Vision.
To access the image from the camera you need to log in.
You can open the video on a web browser, but the option is not good, because sreenshot will be made not often, and the browser will heavily load the processor.
Maybe you have any idea how to do it?
Sorry for my English