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

Pi Cam module V1.x support (confirmed not working with camera hardware V1.3 & python 3.7) #8

Open
JedrzejMajko opened this issue Oct 1, 2019 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JedrzejMajko
Copy link

If you like to widen support of this lib:
using your example with file location change only using Pi Cam V1.3 I get:

Traceback (most recent call last): File "camx.py", line 6, in <module> sensor_mode=0 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/picamraw/main.py", line 26, in __init__ bayer_array, bayer_order = extract_raw_from_jpeg(filepath, camera_version, sensor_mode) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/picamraw/main.py", line 93, in extract_raw_from_jpeg raw_bytes = _get_raw_bayer_bytes(jpeg_data_as_bytes, camera_version, sensor_mode) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/picamraw/main.py", line 325, in _get_raw_bayer_bytes raise ValueError('Unable to locate Bayer data at end of buffer') ValueError: Unable to locate Bayer data at end of buffer

raw

raw generated with command:
raspistill --raw -o raw.jpg

@jason-curtis
Copy link
Contributor

The maintainers only have camera module V2 around to test with, but we would certainly consider a PR to extend support to V1.x modules.

@jason-curtis jason-curtis changed the title Pi Cam V1.3 example raw and result (failed) under Python 3.7 Pi Cam module V1.x support (confirmed not working with camera hardware V1.3 & python 3.7) Oct 1, 2019
@jason-curtis jason-curtis added enhancement New feature or request help wanted Extra attention is needed labels Oct 1, 2019
jason-curtis pushed a commit that referenced this issue Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants