OV5640 MIPI camera on a iMX6 SOLO set exposure

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

OV5640 MIPI camera on a iMX6 SOLO set exposure

ソリューションへジャンプ
5,056件の閲覧回数
juanschenini
Contributor II

Hello, Is it possible to set values for exposure and gain of the sensor OV5640?

I have seen that there is a ioctl_s_ctrl in ov5640_mipi.c but does not implement the V4L2_CID_EXPOSURE nor V4L2_CID_GAIN. But it is defined the OV5640_set_gain16 (int gain16) and OV5640_set_shutter (int shutter)

Can someone tell me how to modify those values?

Best regards.

ラベル(5)
1 解決策
3,654件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I am not an expert in this field but may want to try to use the OV5640_set_gain16 function in the V4L2_CID_GAIN case. And use the vc-value as parameter for this function.

Something like this:


case V4L2_CID_GAIN:

  OV5640_set_gain16( (__s32)vc->value);

break;


Please let me know how it goes.


/Alejandro

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
3,654件の閲覧回数
sreekanthm
Contributor II

Hi Juan,

I am trying to set the exposure values based on the Android API on Ov5640 MIPI on IMX6 board and I did changes based on the response from Alejandro (as below)

case V4L2_CID_GAIN:

  OV5640_set_gain16( (__s32)vc->value);

break;

but seems there is no impact on the camera exposure when I change values using Android API. I posted the issue in the Freescale communities and received below response, could you please assist me in implementing the Camera Exposure?

OV5640 MIPI camera on a iMX6 set exposure and gain

Thanks,
Sreekanth

0 件の賞賛
返信
3,654件の閲覧回数
juanschenini
Contributor II

Hi Sreekanth , you should comment the line "OV5640_turn_on_AE_AG (1);" in the "ov5640_change_mode_direct" because it calculates auto exposure.

Regards.

3,654件の閲覧回数
sreekanthm
Contributor II

Thanks Juan.

0 件の賞賛
返信
3,655件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I am not an expert in this field but may want to try to use the OV5640_set_gain16 function in the V4L2_CID_GAIN case. And use the vc-value as parameter for this function.

Something like this:


case V4L2_CID_GAIN:

  OV5640_set_gain16( (__s32)vc->value);

break;


Please let me know how it goes.


/Alejandro

0 件の賞賛
返信
3,654件の閲覧回数
juanschenini
Contributor II

Thanks for the reply, I had already done this and it worked.

Best regards.

0 件の賞賛
返信