dilawar / PlotDigitizer

A Python utility to digitize plots.
GNU General Public License v3.0
122 stars 23 forks source link

No module name cv2 #8

Open harsh1702 opened 2 years ago

harsh1702 commented 2 years ago

After installing as per the instructions when I try to run the either of the commands plotdigitizer --help plotdigitizer ./figures/trimmed.png -p 0,0 -p 10,0 -p 0,1

the following error shows up, how do I get by this error

Traceback (most recent call last): File "/home/harsh/.local/bin/plotdigitizer", line 7, in from PlotDigitizer.plotdigitizer import main File "/home/harsh/.local/lib/python3.6/site-packages/PlotDigitizer/plotdigitizer.py", line 13, in import cv2 ModuleNotFoundError: No module named 'cv2'

dilawar commented 2 years ago

You need to install opencv python module.

On linux, https://pkgs.org/download/python3-opencv

On some distros, pip may be able to install https://pypi.org/project/opencv-python/

python3 -m pip install opencv-python