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

error during the execution #3

Open
Chandu-78 opened this issue Sep 16, 2023 · 8 comments
Open

error during the execution #3

Chandu-78 opened this issue Sep 16, 2023 · 8 comments

Comments

@Chandu-78
Copy link

Traceback (most recent call last):
File "C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\read_palm.py", line 3, in
from tools import *
File "C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\tools.py", line 5, in
from pillow_heif import register_heif_opener
ModuleNotFoundError: No module named 'pillow_heif'

@Chandu-78 Chandu-78 reopened this Sep 16, 2023
@yeonsumia
Copy link
Owner

You need to install pillow_heif via pip.

@Chandu-78
Copy link
Author

We installed and it is showing requirements successfully installed.
All the requirements are successfully installed sir but getting error again and again!!
We tried everything!

@yeonsumia
Copy link
Owner

You need to check whether the package is installed at proper python path using pip show.

@Chandu-78
Copy link
Author

After all tries we are getting this error again and again sir , can you please help me with this ???

PS C:\Users\purna chandu\OneDrive\Desktop\palmistry-main> python -u "c:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\read_palm.py"

usage: read_palm.py [-h] --input INPUT
read_palm.py: error: the following arguments are required: --input

@Chandu-78
Copy link
Author

Sir can you please explain this how to execute from here ?

@yeonsumia
Copy link
Owner

The program requires --input arugment to be executed. You can tell just by looking at this section in README.

@Chandu-78
Copy link
Author

PS C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code> python .\read_palm.py --input hand1.jpg
Traceback (most recent call last):
File "C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\read_palm.py", line 56, in
main(args.input)
File "C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\read_palm.py", line 28, in main
remove_background(path_to_input_image, path_to_clean_image)
File "C:\Users\purna chandu\OneDrive\Desktop\palmistry-main\code\tools.py", line 17, in remove_background
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

@Chandu-78
Copy link
Author

please send me the solution for this sir!!

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

2 participants