Regarding camera zoom and focus

we use your camera for a research project and encountered an issue:

The camera works, but we can not use the software zoom and focus.

We did everything exactly as described here:

When we run:
[email protected]:~/new/PTZ-Camera-Controller/pyCode $ python2

It shows a picture for a second and then closes, without any options. Same for all other scripts in the Github repo.

When we run:
[email protected]:~/new/PTZ-Camera-Controller/pyCode $ python3

We get an error:

Traceback (most recent call last):
File “”, line 25, in <module>
import cv2 #sudo apt-get install python-opencv
File “/usr/local/lib/python3.7/dist-packages/cv2/”, line 3, in <module>
from .cv2 import *
ImportError: /usr/local/lib/python3.7/dist-packages/cv2/ undefined symbol: __atomic_fetch_add_8

The same reproduces with all other scripts in the directory.

We believe our setup is correct:

[email protected]:~/PTZ-Camera-Controller/pyCode $ sudo apt-get install python-opencv
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 211 not upgraded.
Need to get 0 B/487 kB of archives.
After this operation, 2,402 kB of additional disk space will be used.
Selecting previously unselected package python-opencv.
(Reading database … 159710 files and directories currently installed.)
Preparing to unpack …/python-opencv_3.2.0+dfsg-6_armhf.deb …
Unpacking python-opencv (3.2.0+dfsg-6) …
Setting up python-opencv (3.2.0+dfsg-6) …

We use the latest hardware, a RaspberryPi 4 with 4GB Ram and Rasbian Full. We are university researchers and have already tried googling the error message etc, but to no avail.

Can you please help us and tell us where it went wrong.”

Here are the pictures for hardware connection :


Run it in Thony IDE with a terminal. It will work,


Our engineer Wong is talk about the problem here