Open br0kenpixel opened 1 year ago
This could be due to #78. I tested the 0.10.3 code and it's still reporting as NV12 despite being successfully decoded as YUV422. I'm not sure, though, because decode_image()
fails with "bad input buffer size". Just a lead, maybe?
Hey, I'll take a look at this after finals, please hold
might be related: https://github.com/l1npengtul/nokhwa/pull/151
I'm using the following code to capture an image and save it to file:
The result is a pink-ish image:![img](https://user-images.githubusercontent.com/23280129/211217385-3edd7e94-fbae-43e0-88da-9825545b77f6.png)
I tried:
RgbFormat
to other formatspng
tojpeg
Also, according to the documentation,
camera.open_stream()
should be called internally bycamera.frame()
, however, deleting thecamera.open_stream().expect("Permission denied");
line makescamera.frame()
hang forever.