erdewit / heartwave

Multi-person heart rate measurement from webcam
BSD 2-Clause "Simplified" License
52 stars 8 forks source link

How to use #2

Closed connormeaton closed 4 years ago

connormeaton commented 4 years ago

This project looks really cool, thanks for sharing it. I don't understand how to use it based on the usage instructions. I pip installed it, but where do I go from here?

erdewit commented 4 years ago

Just type "heartwave" in a terminal.

connormeaton commented 4 years ago

I type "heartwave" in terminal followed by a video ("heartwave test.mov") and get this error:

objc[71193]: Class QMacAutoReleasePoolTracker is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x1087eb060) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x11508a700). One of the two will be used. Which one is undefined.
objc[71193]: Class QT_ROOT_LEVEL_POOL__THESE_OBJECTS_WILL_BE_RELEASED_WHEN_QAPP_GOES_OUT_OF_SCOPE is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x1087eb0d8) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x11508a778). One of the two will be used. Which one is undefined.
objc[71193]: Class KeyValueObserver is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x1087eb100) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x11508a7a0). One of the two will be used. Which one is undefined.
objc[71193]: Class RunLoopModeTracker is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x1087eb150) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x11508a7f0). One of the two will be used. Which one is undefined.
objc[71193]: Class QCocoaPageLayoutDelegate is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10be01478) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtPrintSupport (0x1278a6468). One of the two will be used. Which one is undefined.
objc[71193]: Class QCocoaPrintPanelDelegate is implemented in both /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10be014f0) and /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtPrintSupport (0x1278a64e0). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7fdddfc5f2d0) is not the object's thread (0x7fdde232ced0).
Cannot move to target thread (0x7fdddfc5f2d0)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "/usr/local/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen, webgl.

Abort trap: 6

Any ideas?

erdewit commented 4 years ago

There seems to be a conflict between the installed cv2 and PyQt5 packages on OSX:

https://stackoverflow.com/questions/57571101/macos-pyqt5-conflict-with-opencv-python