Posts: 2
Joined: Thu Jan 04, 2018 6:47 am

screenshot from IP camera

Thu Jan 04, 2018 7:30 am

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":

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)
I save the picture with the current time on the disk.

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 ;-)

User avatar
Posts: 4990
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: screenshot from IP camera

Mon Jan 15, 2018 1:45 am

Go to their home page and find some datasheets with details for accessing the camera feeds for you camera model.

Return to “General programming discussion”