Page 1 of 1

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

Posted: Fri Jan 15, 2021 11:10 am
by kirill
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 14177 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!

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

Posted: Sun Jan 17, 2021 12:42 pm
by @lex
You can try this one, taken from FE OS image.
Care to explain how you took the jpg image?

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

Posted: Sun Feb 28, 2021 6:22 pm
by 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 https://github.com/ayaromenok/camera_engine_rkisp RkISP repo - maybe you can find some useful info in source code.

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

Posted: Sun Feb 28, 2021 9:41 pm
by kirill
@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.

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

Posted: Sun Feb 28, 2021 9:42 pm
by kirill
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.

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

Posted: Sun Feb 28, 2021 10:30 pm
by @lex
[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.

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

Posted: Mon Mar 01, 2021 9:59 am
by ayaromenok
@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