Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'lsd' from 'lsd' #12

Open
dacrypt opened this issue May 15, 2021 · 2 comments
Open

ImportError: cannot import name 'lsd' from 'lsd' #12

dacrypt opened this issue May 15, 2021 · 2 comments

Comments

@dacrypt
Copy link

dacrypt commented May 15, 2021

python3 scan.py --image sample_images/dollar_bill.JPG
Traceback (most recent call last):
  File "scan.py", line 20, in <module>
    from pylsd.lsd import lsd
  File "xx/Library/Python/3.8/lib/python/site-packages/pylsd/__init__.py", line 8, in <module>
    from lsd import lsd
ImportError: cannot import name 'lsd' from 'lsd' (/Users/david/Library/Python/3.8/lib/python/site-packages/lsd/__init__.py)
@whps40506
Copy link

pip install ocrd-fork-pylsd==0.0.3

After install that, it shows "Implementation has been removed due original code license issues in function 'cv::LineSegmentDetectorImpl::LineSegmentDetectorImpl'"

pip install opencv-contrib-python

It worked for me😊

@Pancham1603
Copy link

just use pip install -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants