Git Product home page Git Product logo

Comments (6)

Breakthrough avatar Breakthrough commented on September 9, 2024

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.

claudiuskerth avatar claudiuskerth commented on September 9, 2024

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.

claudiuskerth avatar claudiuskerth commented on September 9, 2024

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.

claudiuskerth avatar claudiuskerth commented on September 9, 2024

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.

Breakthrough avatar Breakthrough commented on September 9, 2024

Hi @claudiuskerth, just wanted to follow up - is everything working as expected now? Thanks!

from dvr-scan.

Breakthrough avatar Breakthrough commented on September 9, 2024

Have tried to make the error messaging here more clear in v1.6, thanks for the report.

from dvr-scan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.