AdriaGual / marvel-snap-bot

A computer vision bot made with OpenCV and ADB.
106 stars 27 forks source link

OpenCV Issue #72

Open KSteez11 opened 1 year ago

KSteez11 commented 1 year ago

Ill attach a screenshot with some errors ive received. Someone else had the same error as me, but the fix did not help me for some odd reason.

Screenshot 2023-02-10 173404
AdriaGual commented 1 year ago

Check that you have the numpy version numpy==1.21.0

terrycwc1124 commented 1 year ago

i resolved by

pip uninstall opencv-python-headless -y

pip install opencv-python --upgrade

HolidayPhenom commented 1 year ago

$ python start.py Connection result: already connected to 127.0.0.1:5555


Picture: 0

AdriaGual commented 1 year ago

pip install opencv-python==4.7.0.68 pip install opencv-python-headless==4.6.0.66

eimia-q commented 1 year ago

Check that you have the numpy version numpy==1.21.0

Does it have to be the exact version? I have 1.24.2 and can't seem to downgrade

pip install opencv-python==4.7.0.68 pip install opencv-python-headless==4.6.0.66

These are correct

AdriaGual commented 1 year ago

Exact versions, always.

Just uninstalll the 1.24.2 and install the 1.21.0

eimia-q commented 1 year ago

Exact versions, always.

Just uninstalll the 1.24.2 and install the 1.21.0

Thanks for the reply. I've finally gotten numpy on 1.21.0 and am still getting the same error. Have tried all fixes in this thread.

[get_fields] Time elapsed: 0:00:01.029457

eimia-q commented 1 year ago

FIXED WITH pip install opencv-contrib-python

nixtynine commented 1 year ago

sirni@NIX MINGW64 /c/marvel-snap-bot (master) $ python start.py Traceback (most recent call last): File "C:\marvel-snap-bot\start.py", line 1, in from utils import android_connection, global_utils File "C:\marvel-snap-bot\utils\android_connection.py", line 4, in import config File "C:\marvel-snap-bot\config.py", line 1 adb_path = r"C:\Users\paper\marvel-snap-bot\platform-tools ^ SyntaxError: unterminated string literal (detected at line 1)

how to fix this error

paperc07 commented 1 year ago

@nixtynine #74