Quick update: Soho Enterprise Ltd. send me a libcamera patch and now it works!
One quick note is the resolution, I have to change the native width from 3860 to 3856, for some reason color variant needs 3860 to prevent banding, but it gets back to 3856 for monochrome version.
Now the question is how to build the tunings file, I think I just need to remove the AWB section.....
Code:
pi@imx585:~ $ export DISPLAY=:0; rpicam-still --viewfinder-mode 3860:2180:12:P -o test.jpg -t 0 -v --tuning-file ~/libcamera/src/ipa/rpi/pisp/data/imx296_mono.json[0:02:47.485560449] [1099] INFO Camera camera_manager.cpp:284 libcamera v0.0.0+4579-cda559c1-dirty (2024-05-19T11:37:42-07:00)[0:02:47.507894799] [1100] INFO RPI pisp.cpp:662 libpisp version v1.0.4 6e3a53d137f4 03-04-2024 (21:02:20)[0:02:47.510295615] [1100] WARN CameraSensorProperties camera_sensor_properties.cpp:274 No static properties available for 'imx585'[0:02:47.511463139] [1100] WARN CameraSensorProperties camera_sensor_properties.cpp:276 Please consider updating the camera sensor properties database[0:02:47.527987389] [1100] INFO RPI pisp.cpp:1121 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx585@37 to CFE device /dev/media0 and ISP device /dev/media1 using PiSP variant BCM2712_C0Options: verbose: 2 info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg timeout: 0ms width: 0 height: 0 output: test.jpg post_process_file: preview: default qt-preview: 0 transform: identity roi: all metering: centre exposure: normal ev: 0 awb: auto flush: false wrap: 0 brightness: 0 contrast: 1 saturation: 1 sharpness: 1 framerate: 30 denoise: auto viewfinder-width: 0 viewfinder-height: 0 tuning-file: /home/pi/libcamera/src/ipa/rpi/pisp/data/imx296_mono.json lores-width: 0 lores-height: 0 autofocus-range: normal autofocus-speed: normal autofocus-window: all hdr: off mode: unspecified viewfinder-mode: 3860:2180:12:P metadata: metadata-format: json encoding: jpg quality: 93 raw: 0 restart: 0 timelapse: 0ms framestart: 0 datetime: 0 timestamp: 0 keypress: 0 signal: 0 thumbnail width: 320 thumbnail height: 240 thumbnail quality: 70 latest: immediate 0 AF on capture: 0 Zero shutter lag: 0No connector ID specified. Choosing default from list:Connector 32 (crtc 0): type 11, 0x0Connector 41 (crtc 97): type 11, 1920x1080 (chosen)Made DRM preview windowOpening camera...Acquired camera /base/axi/pcie@120000/rp1/i2c@80000/imx585@37Configuring viewfinder...Viewfinder size chosen is 1920x1080Final viewfinder size is 1920x1080Mode selection for 3860:2180:12:P R12_CSI2P,3856x2180/0 - Score: 13.5046Stream configuration adjusted[0:02:47.638866659] [1099] INFO Camera camera.cpp:1183 configuring streams: (0) 1920x1080-YUV420 (1) 3856x2180-MONO_PISP_COMP1[0:02:47.639010324] [1100] INFO RPI pisp.cpp:1405 Sensor: /base/axi/pcie@120000/rp1/i2c@80000/imx585@37 - Selected sensor format: 3856x2180-Y12_1X12 - Selected CFE format: 3856x2180-PC1M[0:02:47.639239406] [1100] INFO IPARPI ipa_base.cpp:555 Adjusting mode minimum line length from 7.41us to 10.15us because of ISP constraints.Camera streams configuredAvailable controls: Sharpness : [0.000000..16.000000] Contrast : [0.000000..32.000000] Brightness : [-1.000000..1.000000] AeFlickerPeriod : [100..1000000] StatsOutputEnable : [false..true] ScalerCrop : [(0, 0)/120x68..(0, 0)/3840x2160] ExposureTime : [40..0] AeEnable : [false..true] AeConstraintMode : [0..3] FrameDurationLimits : [45663..139775756] NoiseReductionMode : [0..4] AnalogueGain : [1.000000..3981.071777] AeFlickerMode : [0..1] AeMeteringMode : [0..3] AeExposureMode : [0..3] ExposureValue : [-8.000000..8.000000] HdrMode : [0..4]Buffers allocated and mappedViewfinder setup completeRequests createdCamera started!Viewfinder frame 0Viewfinder frame 1Viewfinder frame 2
Now the question is how to build the tunings file, I think I just need to remove the AWB section.....
Statistics: Posted by will127534 — Sun May 19, 2024 9:55 pm