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

Runtime error #20

Open
safwankdb opened this issue May 29, 2019 · 7 comments
Open

Runtime error #20

safwankdb opened this issue May 29, 2019 · 7 comments

Comments

@safwankdb
Copy link

' ' '

RuntimeError Traceback (most recent call last)
in
4 import io
5 with open('7.JPG', 'rb') as palm:
----> 6 roi_bytes = chain.process_image(palm)
7 roi = io.BytesIO(roi_bytes)
8 roi.show()

~/anaconda3/lib/python3.7/site-packages/robust_palm_roi-0.1.0-py3.7.egg/rpr.py in process_image(self, image)
62 self._lib.chain_process_bytes(self._chain, palm_data, len(palm_data),
63 roi_bytes, roi_bytes_max_size, roi_bytes_size, status)
---> 64 self._check_status(status)
65 return roi_bytes.raw[:roi_bytes_size.value]
66

~/anaconda3/lib/python3.7/site-packages/robust_palm_roi-0.1.0-py3.7.egg/rpr.py in _check_status(status)
68 def _check_status(status):
69 if status.raw[0] != 0:
---> 70 raise RuntimeError(status.raw[1:].decode())

RuntimeError:
' ' '

@leosocy
Copy link
Owner

leosocy commented May 29, 2019

What is the error message printed by runtime error?

@zhucebuliaopx
Copy link

i met the same error,the runtime error message was just empty

@leosocy
Copy link
Owner

leosocy commented Aug 9, 2019

i met the same error,the runtime error message was just empty

Did you specify the config yaml file path?

@zhucebuliaopx
Copy link

i met the same error,the runtime error message was just empty

Did you specify the config yaml file path?

i just use the py_sample/run_sample & palm_data/ ,it's normal when i using example pic.the error raises when i use myself pic,not all pic but some of them.

@zhucebuliaopx
Copy link

like this

/Users/peng/boo/tmp/RobustPalmRoi/samples/palm_data/4121565314936_.pic.jpg
OrigNormalizer cost time: 10.301000 ms
LaplaceEnhancer cost time: 2.207000 ms
GaussianFilter cost time: 3.121000 ms
OtsuBinarizer cost time: 9.401000 ms
NoiseAdjuster cost time: 1.807000 ms
AngleAdjuster cost time: 17.502000 ms
PeakValleyDetector cost time: 1.556000 ms
HandlerChain total cost time: 45.895000 ms
Traceback (most recent call last):
File "run_sample.py", line 25, in
roi_bytes = chain.process_image(palm)
File "/Users/peng/workspace/RobustPalmRoi-fvzQl-Kc/lib/python3.7/site-packages/robust_palm_roi-0.1.0-py3.7.egg/rpr.py", line 64, in process_image
File "/Users/peng/workspace/RobustPalmRoi-fvzQl-Kc/lib/python3.7/site-packages/robust_palm_roi-0.1.0-py3.7.egg/rpr.py", line 70, in _check_status
RuntimeError:

@leosocy
Copy link
Owner

leosocy commented Aug 9, 2019

@pytpeng Can you provide the palm picture which cause the error if convenient?

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