bpurinton / PebbleCounts

PebbleCounts: grain-sizing algorithm for gravel-bed river imagery
GNU General Public License v3.0
11 stars 9 forks source link

python no module named cv2 on windows 10 #12

Closed masspern closed 9 months ago

masspern commented 9 months ago

``Hi,

just followed instuctions on manual, installed miniconda3 and everything is fine.

Then, as I run

python PebbleCounts.py -im example_data\ortho_resolution_1.2mmPerPix.tif -ortho y

I get

(pebblecounts) C:\Users\perna\AppData\Local\miniconda3\envs\pebblecounts>python PebbleCounts.py -im example_data\ortho_resolution_1.2mmPerPix.tif -ortho y Traceback (most recent call last): File "PebbleCounts.py", line 11, in <module> import cv2 ModuleNotFoundError: No module named 'cv2'

masspern commented 9 months ago

Solved

used

pip install opencv-contrib-python==3.2.0.7

in the desired environment

bpurinton commented 9 months ago

Nice work!