-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed-camera on Debian 11/RaspberryPi OS aarch64 #115
Comments
You might want to try changing config.py configuration.
Make sure there is NO Webcam plugged in. Raspberry Pi camera should be
recognized as video device zero and opencv should
be able to read the picamera without loading the picamer python library.
Not sure about mmal but I did a test on my RPI using Buster 32bit
and it ran OK under the WEBCAM setting and not using python picamera
libraries. Give it a try and let me know.
Claude
*config.py settings *
WEBCAM = True
WEBCAM_SRC = 0
…On Sun, Jun 19, 2022 at 8:37 AM Will Code ***@***.***> wrote:
Hi all,
is there a possibility to run speed-camera on Debian 11 aarch64 ??
After successful install with speed-install.sh and some changes in
config.py, I debugged my problem with
$ ./speed-cam.py
----------------------------------------------------------------------
speed-cam.py 11.23 written by Claude Pageau
Motion Track Largest Moving Object and Calculate Speed per Calibration.
----------------------------------------------------------------------
Loading Wait ...
Traceback (most recent call last):
File "/home/wartung/speed-camera/./speed-cam.py", line 339, in <module>
from picamera.array import PiRGBArray
File "/usr/lib/python3/dist-packages/picamera/__init__.py", line 72, in <module>
from picamera.exc import (
File "/usr/lib/python3/dist-packages/picamera/exc.py", line 41, in <module>
import picamera.mmal as mmal
File "/usr/lib/python3/dist-packages/picamera/mmal.py", line 49, in <module>
_lib = ct.CDLL('libmmal.so')
File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmmal.so: cannot open shared object file: No such file or directory
The libmmal.so error seems to be related to the non 64-bit functional
picamera driver
raspberrypi/firmware#1558 (comment)
<raspberrypi/firmware#1558 (comment)>
Under 64-bit 'libcamera' is recommended, but there is also a new version
of 'picam' for 10 days, I will try out...
https://forums.raspberrypi.com/viewtopic.php?t=335832
Regards
—
Reply to this email directly, view it on GitHub
<#115>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNPKZGCA725KPTW5J5OAJTVP4H67ANCNFSM5ZGKIW4Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
YouTube Channel at https://www.youtube.com/user/pageaucp
<http://www.youtube.com/user/pageaucp>
GitHub Repository at https://github.com/pageauc
|
Also if this works and image is flipped, physically rotate the picamera
module or RPI 180 deg as appropriate. I have cases with hole for picamera
as part of the case. Don't use the USB flip setting due to slow performance
…On Sun, Jun 19, 2022 at 11:03 AM Claude Pageau ***@***.***> wrote:
You might want to try changing config.py configuration.
Make sure there is NO Webcam plugged in. Raspberry Pi camera should be
recognized as video device zero and opencv should
be able to read the picamera without loading the picamer python library.
Not sure about mmal but I did a test on my RPI using Buster 32bit
and it ran OK under the WEBCAM setting and not using python picamera
libraries. Give it a try and let me know.
Claude
*config.py settings *
WEBCAM = True
WEBCAM_SRC = 0
On Sun, Jun 19, 2022 at 8:37 AM Will Code ***@***.***>
wrote:
> Hi all,
> is there a possibility to run speed-camera on Debian 11 aarch64 ??
>
> After successful install with speed-install.sh and some changes in
> config.py, I debugged my problem with
>
> $ ./speed-cam.py
> ----------------------------------------------------------------------
> speed-cam.py 11.23 written by Claude Pageau
> Motion Track Largest Moving Object and Calculate Speed per Calibration.
> ----------------------------------------------------------------------
> Loading Wait ...
> Traceback (most recent call last):
> File "/home/wartung/speed-camera/./speed-cam.py", line 339, in <module>
> from picamera.array import PiRGBArray
> File "/usr/lib/python3/dist-packages/picamera/__init__.py", line 72, in <module>
> from picamera.exc import (
> File "/usr/lib/python3/dist-packages/picamera/exc.py", line 41, in <module>
> import picamera.mmal as mmal
> File "/usr/lib/python3/dist-packages/picamera/mmal.py", line 49, in <module>
> _lib = ct.CDLL('libmmal.so')
> File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
> self._handle = _dlopen(self._name, mode)
> OSError: libmmal.so: cannot open shared object file: No such file or directory
>
>
> The libmmal.so error seems to be related to the non 64-bit functional
> picamera driver
>
> raspberrypi/firmware#1558 (comment)
> <raspberrypi/firmware#1558 (comment)>
>
> Under 64-bit 'libcamera' is recommended, but there is also a new version
> of 'picam' for 10 days, I will try out...
> https://forums.raspberrypi.com/viewtopic.php?t=335832
>
> Regards
>
> —
> Reply to this email directly, view it on GitHub
> <#115>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABNPKZGCA725KPTW5J5OAJTVP4H67ANCNFSM5ZGKIW4Q>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
--
YouTube Channel at https://www.youtube.com/user/pageaucp
<http://www.youtube.com/user/pageaucp>
GitHub Repository at https://github.com/pageauc
--
YouTube Channel at https://www.youtube.com/user/pageaucp
<http://www.youtube.com/user/pageaucp>
GitHub Repository at https://github.com/pageauc
|
After a lot of tests, I can say, that the issue is related to Debian 11 and Python3 - also with 64 bit architecture. The only error I could find, was during installation script:
|
Sorry, I have to update this...
|
These settings have no affect to the error |
Will
My suggestion would be to run under Raspberry Pi OS Legacy Buster. Speed
camera works OK on that distro. Currently Bullseye is not supported since
the original picamera python modules are Not supported on Bullseye and
other distro issues. The new picamera2 module is still under development
with no definitive date for production. Also as you have found out a lot
of libraries have changed and python 2 is no longer supported. I will not
be looking at these issues until the distro matures and I have the time and
inclination to review. I have been retired for 16 years and did this
project just as a fun coding project.
If you want to clone the project and develop your own solutions that
support backward and forward compatibility I would be more than happy to
review and merge any github pushes.
Regards
Claude ..
Claude ...
…On Sun, Jun 19, 2022 at 3:27 PM Will Code ***@***.***> wrote:
WEBCAM = True
WEBCAM_SRC = 0
These settings have no affect to the error
—
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNPKZBPY3KGSBUQN63BHFLVP5YDRANCNFSM5ZGKIW4Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
YouTube Channel at https://www.youtube.com/user/pageaucp
<http://www.youtube.com/user/pageaucp>
GitHub Repository at https://github.com/pageauc
|
Hi Claude, thanks for that statement. The issue is, that I currently use Raspberry Pi OS Legacy Buster. I have to mention, that my user accout is NOT 'pi', thats why I opened another ticket with "improvements". Don't worry about... I know, this is a hobby project. I just want to give you some informations to improve some issues. |
Yes I am aware of the issues new distro's can cause as well as what
standard packages and libraries are included/restructured/renamed/ Etc.
This has happened before and can cause downstream issues for existing
software since they often don't provide backward compatibility. A simple
parameter change can often cascade and cause a lot of trouble shooting.
System and Python Libraries are usually the main cause.This has happened in
the past but seems to be a bigger issue with Bullseye. Python is also
going through a transition. At some point I will determine whether I will
try to maintain backward compatibility or create a new version for the
latest distro. In the past I have tried to maintain python2 and 3
compatibility as well as changes in distro support packages that change eg
ffmpeg
Claude ...
…On Mon, Jun 20, 2022 at 2:38 AM Will Code ***@***.***> wrote:
Hi Claude, thanks for that statement.
The issue is, that I currently use Raspberry Pi OS Legacy Buster.
Yesterday I had serveral installations (from Raspberry Pi OS Lite Bullseye
64 bit down to my current installation Raspberry Pi OS Legacy Buster) and
obviously, on Legacy Buster the installation process runs much better.
I have to mention, that my user accout is NOT 'pi', thats why I opened
another ticket with "improvements".
I will do a totally fresh install of Raspberry Pi OS Legacy Buster, the
'pi' user and speed-cam and would document the remaining problems here.
Don't worry about... I know, this is a hobby project. I just want to give
you some informations to improve some issues.
Regards
Will
—
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNPKZATVJ5ZX55TAPWCCKLVQAGVRANCNFSM5ZGKIW4Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
YouTube Channel at https://www.youtube.com/user/pageaucp
<http://www.youtube.com/user/pageaucp>
GitHub Repository at https://github.com/pageauc
|
Closed to #116 |
Hi all,
is there a possibility to run speed-camera on Debian 11 aarch64 ??
After successful install with speed-install.sh and some changes in config.py, I debugged my problem with
The libmmal.so error seems to be related to the non 64-bit functional picamera driver
raspberrypi/firmware#1558 (comment)
Under 64-bit 'libcamera' is recommended, but there is also a new version of 'picam' for 10 days, I will try out...
https://forums.raspberrypi.com/viewtopic.php?t=335832
Regards
The text was updated successfully, but these errors were encountered: