dereks / motion_tracking

An example of using OpenCV with Python to track motion in real time
http://derek.simkowiak.net/motion-tracking-with-python/
140 stars 67 forks source link

ImportError: dlopen(/motion_tracking/cv.so, 2): no suitable image found. #1

Open datomnurdin opened 8 years ago

datomnurdin commented 8 years ago

I got this error message when trying trigger this script, track.py

Traceback (most recent call last):
  File "track.py", line 5, in <module>
    import cv
ImportError: dlopen(/motion_tracking/cv.so, 2): no suitable image found.  Did find:
    /motion_tracking/cv.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01 0x00

Please advice. Thank you

pageauc commented 8 years ago

I don't have an example called track.py in my repo so not sure what code you are running. The import says import cv. Not seeing what code you are running it should be import cv2. make sure you have installed the correct opencv library. Also there are syntactic differences between python2 and python3. That is why I have a motion3-track.py showing the python3 syntax. Also take a look at the latest speed-tracking.py in the repo since it now uses video port and has a much faster framerate processing. If I get time I will update the motion-track.py examples to used video port logic. Claude ... If you still have problems send link or attach your code ...