PTZ-Camera-Controller is a completely non working repository on bookworm for raspberry pi 4

It hasn’t been updated for almost a year. First, the boot config location is not correct, 2nd the numpy and opencv instructions are non working (you need to install globally instead of pip because of virtualenv errors), third the focuserexample.py just doesn’t work. bpa.st/V20Q

python3 FocuserExample.py
Traceback (most recent call last):
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/FocuserExample.py”, line 213, in
[0:30:48.590574799] [2526] INFO Camera camera.cpp:1183 configuring streams: (0) 640x360-RGB888 (1) 1280x720-SRGGB10_CSI2P
[0:30:48.592425834] [2530] INFO RPI vc4.cpp:616 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA
main()
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/FocuserExample.py”, line 205, in main
curses.wrapper(draw_menu, camera, 1)
File “/usr/lib/python3.11/curses/init.py”, line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/FocuserExample.py”, line 191, in draw_menu
RenderMiddleText(stdscr,k,focuser)
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/FocuserExample.py”, line 72, in RenderMiddleText
focus_value = “Focus : {}”.format(focuser.get(Focuser.OPT_FOCUS))[:width-1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/Focuser.py”, line 94, in get
self.waitingForFree()
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/Focuser.py”, line 79, in waitingForFree
while self.isBusy() and count < (5 / 0.01):
^^^^^^^^^^^^^
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/Focuser.py”, line 74, in isBusy
return self.read(self.CHIP_I2C_ADDR,self.BUSY_REG_ADDR) != 0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/drone-project/articulated_robotics/PTZ-Camera-Controller/Focuser.py”, line 19, in read
value = self.bus.read_word_data(chip_addr,reg_addr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 5] Input/output error

I may need to return the B0399B0283 camera I purchased because this is just wasting too much time.


I knew I wasn’t crazy when it had the ‘Z’ for ‘Zoom’.