Skip to content

2.1. SSL vision (and cameras)

Rasmus Wallin edited this page Sep 21, 2025 · 5 revisions

Things related to ssl-vision running in the lab.

Guides

Model: AXIS M3005 Network Camera

Manual: https://www.axis.com/dam/public/77/32/08/axis-m3005-v-network-camera--user-manual-en-US-98711.pdf (also in datasheets in ./seegoals/firmware/datasheets/)

The cameras has 10/11/12 written on them which identifies them as specified below.

Reset the cameras

You need to plugin the camera to a POE switch and hold down the reset button at the same time until it start flashing orange. Then it'll try to fetch an IP from a DHCP server, if it fails it'll set a default IP (192.168.0.90).

OBS: If you do reset them, you'll have to update their firmware to Version 5.51.7.6 from here, otherwise LiU IT will scream at us.

Access the cameras

The cameras are only accessible from fetdatorn. There are four cameras but only two are configured.

To access stream on Linux: mpv rtsp://root:<password>@192.168.1.10/axis-media/media.amp, you can choose a streaming profile as follows mpv rtsp://root:raswa151@192.168.1.10/axis-media/media.amp?streamprofile=balanced. It's also possible to access the cameras by typing the IP address into a browser (make sure https isn't used). NOTE, try to access the cameras by using a browser using the information below before continuing.

Camera 10 (closest to computers)

  • Username/password: root/raswa151
  • Network: The switch at fetdatorn
  • IP: 192.168.1.10/24

Camera 11 (closest to corridor)

  • Username/password: root/raswa151
  • Network: The switch at fetdatorn
  • IP: 192.168.1.11/24

Camera 12 (middle of the field)

  • Username/password: root/raswa151
  • Network: The switch at fetdatorn
  • IP: 192.168.1.12/24

Can't connect?

If you can't connect to the cameras, do the following:

  1. Run the command ip addr
  2. Check if enp4s0 has the IP 192.168.1.1/24.
  3. If not, run the command sudo ip addr add 192.168.1.1/24 dev enp4s0

Download repo

Download the repo ssl-vision from the SeeGoals git and switch to the branch called image-file-reading.

Run SSL-Vision

Before you can run SSL-Vision, it needs to be compiled. Before compiling, one modification needs to be made in InstallPackagesUbuntu.sh: change "22.04" to "21". Finally run the following commands:

  1. make configure_vapix
  2. make

You can now run the program by typing screen -c screen.camera in a terminal (not in the built-in VS Code terminal). This will run 2 python scripts and SSL-vision in separate tabs. You can navigate between the tabs by pressing either n for next or p for previous. Exit by pressing x.

Set up camera stream

After opening SSL-Vision, find the tree on the left side of the window. Choose a thread to put the stream on (ex Thread 0) and openImage Capture -> VAPIX -> Capture Settings and fill in the fields:

  • Ip: See above
  • Port: 554
  • Username: See above
  • Password: See above

The rest can be left as it is.

To start the stream, open Image Capture -> Capture Control and choose the control module VAPIX, finally press start capture.

Field Line Calibration

Just follow https://github.com/RoboCup-SSL/ssl-vision/wiki/camera-calibration and the image below.

To calibrate the field lines, go into the Camera Calibration tab in SSL-vision. The Line Search Corridor Width specifies the area in which SSL-vision will look for lines.

Prerequisites

  1. Place the blue points to the correct corners by dragging them. IMPORTANT the coordinates of the points must be correct.

Calibration

  1. Change the Camera Height and Distortion parameters by dragging their sliders.
  2. Adjust the Line search Corridor Width parameter so that all lines are within the boundaries displayed in SSL-vision as blue.

If you can't see these lines, go to the tab Thread x/Visualization (x is the id of the thread you are using) and make sure the detected edges option is set to True.

  1. Press the Detect additional calibration points button followed by the Do full calibration button.
  2. If the camera position, represented in SSL-vision by a red cross, is not located at the correct location, start over from step 1.

Football Field Setup

TODO: Make a nicer sketch

Football Field Setup

Clone this wiki locally