-
Notifications
You must be signed in to change notification settings - Fork 0
Camera Access
We'll show you how to connect to the cameras and how to retrieve their images for further processing.
We're using two types of cameras during this project:
AXIS TPZ | D-Link |
---|---|
![]() |
![]() |
PTZ IP camera | Fixed IP camera |
High resolution | Medium resolution |
High framerate | Medium framerate |
- The device that wants to retrieve the camera images (laptop) must be connected to the same network as the camera
SSID: PXL AI Hub
To get the frames of the camera, it is advised to use the requests
library. It enables us to retrieve all bytes in the camera stream and combine it to images. Afterwards, it's simple to decode the byte information into a jpg image with built-in OpenCV functions.
Access to the cameras is password protected, so we need to get past an authentication step. The authentication method is slightly different for the two camera types that are being used.
Sample code for both cameras can be found below. This sample code implements a simple example that shows the camera images in an OpenCV window. Once it is retrieved the image can also be used for computer vision operations.
As multiple D-Link cameras are set up, every camera will have its own IP and password. Information about all available cameras will be provided soon.
Research Project AIN '24-'25 | DARTS