Skip to content

Python library to control Axis Communications IP cameras

License

Notifications You must be signed in to change notification settings

danielorf/pyaxiscam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

pyaxiscam

pyaxiscam is a Python library used to control Axis Communications IP cameras. You can access information about the camera as well as grab images (and video stream in the future).

Getting Started

NOTE: THIS LIBRARY USES "BASIC" AUTHENTICATION WITH HTTP, MEANING YOUR CREDENTIALS ARE SENT IN CLEARTEXT. USE THIS FOR TESTING ONLY WITH THROWAWAY CREDS.

Your Axis camera must fir be set up using its web interface. It is recommended to do this with Internet Explorer on a Windows PC for the best compatibility. Once set up, you now have a host name (or IP address), username ('root' by default), and the password. Initialize and AxisCam object using the following line - make sure to replace 'host', 'username', and 'password' with the IP address, username and password determined in the setup:

cam = AxisCam('host', 'username', 'password')

A live image can be retrieved by using the following command:

image = cam.get_live_image()

This image can then be processed using OpenCV for example.

A live image can be retrieved and displayed by using the following command:

image = cam.display_live_image()

The image is displayed by the default image viewer.

Prerequisites

requests, io, PIL

About

Python library to control Axis Communications IP cameras

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages