opendatalab / PDF-Extract-Kit

A Comprehensive Toolkit for High-Quality PDF Content Extraction
https://pdf-extract-kit.readthedocs.io/zh-cn/latest/index.html
GNU Affero General Public License v3.0
5.3k stars 359 forks source link

Error: import cv2 #137

Open zhukefucn opened 1 month ago

zhukefucn commented 1 month ago

I followed the Readme.md to install on Ubuntu 20.04 ,all stpes are ok.When run sample program ,it showed : python pdf_extract.py --pdf assets/examples/example.pdf Traceback (most recent call last): File "/home/qinxizhou/PDF-Extract-Kit/pdf_extract.py", line 2, in import cv2 ModuleNotFoundError: No module named 'cv2' I use follow command and show pip show opencv-python show: Name: opencv-python Version: 4.10.0.84 Summary: Wrapper package for OpenCV python bindings. Home-page: https://github.com/opencv/opencv-python Author: Author-email: License: Apache 2.0 Location: /usr/local/lib/python3.10/dist-packages Requires: numpy Required-by: controlnet-aux, facexlib, imgaug, paddleocr, surya-ocr, ultralytics, unimernet

Please tell me why occurs this error?

zhukefucn commented 1 month ago

for sloving this error ,I delete this line ,but found import yaml error!