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

ktppath error #10

Open
saranzeb opened this issue Jan 6, 2022 · 2 comments
Open

ktppath error #10

saranzeb opened this issue Jan 6, 2022 · 2 comments

Comments

@saranzeb
Copy link

saranzeb commented Jan 6, 2022

when I am running from the command line it gives me these two errors
I have attached screen short

"Traceback (most recent call last):
File "ocr.py", line 47, in
ocr = KTPOCR(ktppath)
File "D:\video monitoring\first four\KTP-OCR-master\ktpocr\extractor.py", line 13, in init
self.gray = cv2.cvtColor(self.image, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' "

Error

"it seems I am not giving the proper path for image please can you point out where i am doing mistake where I am doing mistake

@power4d
Copy link

power4d commented Apr 14, 2022

did the issue got solved? please enlighten me

@Adiguna7
Copy link

Adiguna7 commented Apr 22, 2022

What if it's just like this:

ktpocr/dataset/ktp1.png

I'm not a daily user of Windows, But afaik /<path> with <path> are different.

If on linux, /<path> will be absolute path and <path> will be relative path.

reference

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