Power & Source of Big Ideas

SOM-RK3399v2 and OV5647 camera - no iq file / greenish image

Moderators: chensy, FATechsupport

Dear Community,

We're working on making OV5647 camera (15 pin CSI cable, https://www.waveshare.com/rpi-camera-b.htm) to work with SOM-RK3399v2. We managed to adjust device tree layer and the camera works and we can see the image.

However, the image is quite dark and greenish. After searching we identified that this can be related to missing iq file.
During the streaming start process we get:

Code: Select all

XCAM ERROR rkisp_control_loop_impl.cpp:166: can't access iq file /etc/cam_iq/ov5647.xml


Here is the example of the image / video quality we have:
image.jpg
image.jpg (150.72 KiB) Viewed 4170 times


I suspect this can be resolved with adding iq file ov5647.xml to /etc/cam_iq. However, this file is missing everywhere. Could anyone suggest the solution please?

Many thanks!
You can try this one, taken from FE OS image.
Care to explain how you took the jpg image?

Attachments

All camera IQ files comes from RockChip camera_engine_rkisp repository (which was removed from public access in summer of 2020) - and it's no OV5647 IQ files. OV5648 is nearest. It's also important to use same version of IQ files with RkISP1 driver.

I(acidentely) made a backup of this https://github.com/ayaromenok/camera_engine_rkisp RkISP repo - maybe you can find some useful info in source code.
@lex wrote:
You can try this one, taken from FE OS image.
Care to explain how you took the jpg image?


Thanks for the suggestion Lex! Unfortunately, this file belongs to different RkISP version and it complains about versions mismatch when initialising the stream. Changing version in xml file to required removes the warning but the quality even worse.
ayaromenok wrote:
All camera IQ files comes from RockChip camera_engine_rkisp repository (which was removed from public access in summer of 2020) - and it's no OV5647 IQ files. OV5648 is nearest. It's also important to use same version of IQ files with RkISP1 driver.

I(acidentely) made a backup of this https://github.com/ayaromenok/camera_engine_rkisp RkISP repo - maybe you can find some useful info in source code.


ayaromenok, many thanks for sharing the link! I'll be able to test with OV5648 xml for OV5647 and then report back here about the results.
[quote="ayaromenok"]All camera IQ files comes from RockChip camera_engine_rkisp repository (which was removed from public access in summer of 2020) - and it's no OV5647 IQ files. OV5648 is nearest. It's also important to use same version of IQ files with RkISP1 driver.

I(acidentely) made a backup of this [url]https://github.com/ayaromenok/camera_engine_rkisp[/url] RkISP repo - maybe you can find some useful info in source code.[/quote]

@ayaromenok, you have a copy of the recent rockchip's git tree (only rules changed). Would be interesting to have the same rkisp version of the FriendlyElec.
@lex wrote:
ayaromenok wrote:
@ayaromenok, you have a copy of the recent rockchip's git tree (only rules changed). Would be interesting to have the same rkisp version of the FriendlyElec.


BTW - Rockchip restored repo https://github.com/rockchip-linux/camera_engine_rkisp (it wasn't there from Sep 2020 to at least Jan 2021) - so looks like it's don't have any new commits during this time (and same as my copy - at least IQ files use 1.5 version;) ).

PS:As I understand, in newest RK chips they use a new version of ISP, which may required a new driver - so don't expect a lot of updates in RkISP1 repo

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests