Toybrick

摄像头的图像ISP 问题

nopattern

注册会员

积分
162
发表于 2019-8-13 16:34:05    查看: 25026|回复: 25 | [复制链接]    打印 | 显示全部楼层
      购买了一个MIPI摄像头,可以通过看到图像,但是图像偏绿。板子的系统是FEDORA,
请教应该自己做ISP 吗?


回复

使用道具 举报

troy

版主

积分
2346
发表于 2019-8-13 17:12:29 | 显示全部楼层
参考http://t.rock-chips.com/wiki.php?mod=view&id=57
RK已经封装了ISP库,需要调用ISP库才可以获取到正常颜色的图像。
回复

使用道具 举报

nopattern

注册会员

积分
162
 楼主| 发表于 2019-8-13 17:52:35 | 显示全部楼层
本帖最后由 nopattern 于 2019-8-13 18:11 编辑

谢谢,看了一下需要C 接口,有没有python 接口的?另外,还需要一个tuningFile ,应该哪里下载?


回复

使用道具 举报

elooon

注册会员

积分
139
发表于 2019-8-13 22:07:52 | 显示全部楼层
MIPI摄像头应该是需要官方tuning的吧?你这个sensor有在官方支持列表里面吗?
回复

使用道具 举报

nopattern

注册会员

积分
162
 楼主| 发表于 2019-8-14 10:48:07 | 显示全部楼层
专门配套的摄像头,芯片是OV9750,应该是在官方支持列表里。
回复

使用道具 举报

troy

版主

积分
2346
发表于 2019-8-14 14:41:19 | 显示全部楼层
nopattern 发表于 2019-8-14 10:48
专门配套的摄像头,芯片是OV9750,应该是在官方支持列表里。

安装完ISP库之后,在/etc目录下有两个文件,cam_iq_ov9750.xml和cam_iq_imx258.xml,这两个就是tuningFile。
回复

使用道具 举报

nopattern

注册会员

积分
162
 楼主| 发表于 2019-8-14 16:22:39 | 显示全部楼层
Ok, 多谢!
回复

使用道具 举报

nopattern

注册会员

积分
162
 楼主| 发表于 2019-8-15 10:07:52 | 显示全部楼层
根据上面的,写了个isp 调用,结果发生如下错误:
  1. CAMHALInfo:   CAMHALVERSION is: 2.0.8.0

  2. CAMHALError:  ERR(getSensorModeData): RK_VIDIOC_SENSOR_MODE_DATA failed, err: Inappropriate ioctl for device

  3. CAMHALInfo:   CAMIAVERSION is: 2.0.9.0

  4. CAMHALInfo:   init:tuningFile //etc//cam_iq_ov9750.xml
  5. CAMHALInfo:   load tunning file success.
  6. AWB: AwbConfigure: AWB_VERSION_10

  7. AWB: AwbPrepareCalibDbAccess: resolution (127x47360@1585696608) not found in database

  8. CAMHALError:  initDynamic:awb config failure!
  9. CAMHALError:  cam_ia10_isp_dpcc_config: resolution (0x0) not found in database

  10. CAMHALError:  runManISP:config DPCC failed !
  11. CAMHALError:  cam_ia10_isp_bls_config: resolution (0x0) not found in database

  12. CAMHALError:  runManISP:config BLS failed !
  13. CAMHALInfo:   (null): resolution (0x1585693208) not found in database

  14. CAMHALError:  runManISP:config FLT failed !
复制代码


调用代码如下:
  1. void *g_engine = NULL;

  2. int  init_rkisp(int vidFd)
  3. {

  4.     //int vidFd = 0;
  5.     const char *ispNode = "//dev//video1";
  6.     const char* tuningFile = "//etc//cam_iq_ov9750.xml";
  7.     //const char* tuningFile = "//etc//cam_iq_imx258.xml";
  8.     int ret;
  9.     ret = rkisp_start(g_engine, vidFd, ispNode,tuningFile);

  10.     return ret;
  11. }
复制代码


vidFd 0,1,2,3 都试过了。同样错误,请问是什么原因,应如何解决?
回复

使用道具 举报

nopattern

注册会员

积分
162
 楼主| 发表于 2019-8-16 08:34:15 | 显示全部楼层
@troy  能否解决一下?
回复

使用道具 举报

cr7jj

中级会员

积分
456
发表于 2019-12-4 16:44:48 | 显示全部楼层
大神,后面是如何解决的,可以分享一下吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表