You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm trying to use this excellent Rust wrapper with my arducam stereo camera but I keep getting an Error when I call the capture() function.
I have crawled through your code and the arducam c library but I cannot figure out what I'm doing wrong. The only indication I see is the message: mmal: Failed to fix lens shading, use the default mode!
here is a snippet of how I am calling into the api:
'
let cam = CameraInterface{
i2c_bus: 0, // /dev/i2c-0 or /dev/i2c-1
camera_num: camera_number, // mipi interface num
sda_pins: [44, 0], // enable sda_pins[camera_num], disable sda_pins[camera_num ? 0 : 1]
scl_pins: [45, 1], // enable scl_pins[camera_num], disable scl_pins[camera_num ? 0 : 1]
led_pins:[30,2],
shutdown_pins: [133,133],
};
println!("Initializing Camera!");
let mut camera = arducam_mipicamera::Camera::init(Some(cam)).unwrap();
println!("\nCapturing Image:");
let result = camera.capture(3000, Encoding::Png, 50);
println!("\nCapture result is_ok: {:?}", result.is_ok());
let buffer = result.unwrap(); // everything goes wrong here
`
All of the FFI calls seem to call the arducam_mipicamera.h and I have compared this to other examples in that project "capture-dualcam.c" and while that program works I cannot seem to figure what might be different.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi I'm trying to use this excellent Rust wrapper with my arducam stereo camera but I keep getting an Error when I call the capture() function.
I have crawled through your code and the arducam c library but I cannot figure out what I'm doing wrong. The only indication I see is the message:
mmal: Failed to fix lens shading, use the default mode!
here is a snippet of how I am calling into the api:
'
`
All of the FFI calls seem to call the arducam_mipicamera.h and I have compared this to other examples in that project "capture-dualcam.c" and while that program works I cannot seem to figure what might be different.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: