Comments (6)
Can you run the following command and provide the output if possible? This should at least verify your opencv-python package is working as intended:
python -c "import cv2; print(cv2.__version__)"
Regarding the RPi, it seems you might be missing some system dependencies - try installing those and see if that helps.
You can also use the opencv-python-headless
and opencv-contrib-python-headless
packages if you don't have a window manager. As a last resort, you can also compile the OpenCV Python module yourself, and pick and choose the specific dependencies. That might be your best option for an embedded application.
Regarding Mac, I'm working on getting some builders running on Github soon, so hopefully I can track down the issues on that end of things. I did something recently for another project without any issues, however unlike that project, DVR-Scan also uses opencv-contrib-python
which carries several additional dependencies. Also note that this package has to be kept in sync with the version of opencv-python
you are using. I did not see it in the list above.
Hopefully this helps you get on track, keep me posted and I'll do my best to help out.
Edit: The opencv-python module page covers deprecated OSX versions at the bottom: https://pypi.org/project/opencv-python/
It says OpenCV 4.7 and above require OSX 11. You may want to try installing an older version on OSX if you can't update to 11.
from dvr-scan.
Hi Brandon,
thank you so much for your quick response and sorry, I think the issue is entirely with the opencv-python package.
On my RPi, I have installed the system dependencies mentioned in the forum thread, in particular libatlas-base-dev
. Now trying to import opencv in python (with opencv-python 4.8.0.76 installed) throws this error message:
Traceback (most recent call last):
File "", line 1, in
File "/home/claudius/.local/lib/python3.9/site-packages/cv2/init.py", line 181, in
bootstrap()
File "/home/claudius/.local/lib/python3.9/site-packages/cv2/init.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /home/claudius/.local/lib/python3.9/site-packages/cv2/cv2.abi3.so: undefined symbol: __atomic_store_8
claudius
from dvr-scan.
Hi Brandon,
an my Mac (10.14.6), I was now successful after installing an older version of the opencv-python package:
pip install opencv-contrib-python-headless==4.4.0.46
DVR-scan is currently scanning... I'm excited :-)
claudius
from dvr-scan.
Hi,
an my Raspi 4 I was now successfull as well with the older version of opencv-contrib-python-headerless
and an upgrade of numpy from version 1.19.3 to 1.25.2.
On my Mac I could also install the GUI version of opencv-contrib-python
, so that I can select roi's with the mouse. Nice, so far :-)
Now let's see whether dvr-scan can actually detect all bats emerging from tree roosts...
Thanks again for your help, Brandon!
claudius
from dvr-scan.
Hi @claudiuskerth, just wanted to follow up - is everything working as expected now? Thanks!
from dvr-scan.
Have tried to make the error messaging here more clear in v1.6, thanks for the report.
from dvr-scan.
Related Issues (20)
- Request: Support for OpenCL HOT 2
- Docker Documentation run command
- When using with wildcard, dvr-scan detects motion across two videos HOT 1
- ROI / region of interest not working HOT 1
- Request: Process video stream from stdin HOT 2
- wildcards produce different detection than file by file run HOT 4
- cv2 package got renamed to opencv-python and is now at 4.8.0.76 HOT 2
- Timecode format of hh:mm:ss not recognized HOT 3
- Process ends early and displays error: Element exceeds containing master element HOT 1
- Traceback TypeError for any dvr-scan command HOT 1
- cnt mode stuck HOT 4
- Invalid duration specification for ss: 00:04:60.000 when using -m copy or -m ffmpeg HOT 6
- Require version >= 0.6.2 of scenedetect
- Exception in encode thread when extracting motion events on v1.6 HOT 7
- Unsupported config option: region-file HOT 3
- region-editor config option gets ignored HOT 3
- Request: produce image file (thumb) of the frame with the highest amount of motion per output video HOT 3
- Improve handling of videos that are corrupt or have decoding failures HOT 8
- Closing the ROI editor should warn if you have unsaved changes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvr-scan.