3518E平台的搭建海思的SDK提供了ISP调试的相关工具,降低了IPC开发ISP调试的难度。初次搭建ISP调试环境,记录一下。SDK版本:Hi3518_MPP_V1.0.A.0硬件平台:HI3518E_OV9732工具包:PQ_TOOL(Hi3518E_V100R001C01SPC0A0\01.software\pc\PQ_TOOL)文件说明:Hi3518_ITTB_MPP2_V1.0.A.0_B030.tgz设备端工具;PQTools_V3.7.5.zipPC端工具环境搭建步骤:(1)将Hi3518_ITTB_MPP2_V1.0.A.0_B030.tgz拷贝至nfs共享目录名,解压后运行HiIspTool.sh脚本倘若用海思自带的工具出图像并调节ISP运行:#./HiIspTool.sh-a-pov9732_720p_line.inips一下可以看到两个进程696adminlvj58488S./ittb_stream-pov9732_720p_line.ini699adminlvj19676S./ittb_control倘若运行自己的工程出图像了,这时只需要运行一下命令即可。#./HiIspTool.sh-aps一下可以看到一个进程699adminlvj19676S./ittb_control(2)PC端直接解压PQTools_V3.7.5.zip,运行HiPQTools.exe,输入选择sdk版本Hi3518_MPP_V1.0.A.0,输入设备IP,就可以连接上摄像头倘若运行了ittb_stream,可以PC端软件上打开视频图像窗口连接成功,至此,最简单的ISP调试环境搭建就完成了。复杂的就是后面的ISP调节过程了。备注:运行脚本的时候可能会报错,查看相关打印信息,将错误消除。当前产品我们用的是HI3518E+OV9732,SDK中并没有提供相关的sensor库和相关的config文件,所以运行报错了!解决:将OV9732sensor库拷贝至Hi3518_ITTB_MPP2_V1.0.A.0/libs/下,将ov9732_720p_line.ini拷贝至Hi3518_ITTB_MPP2_V1.0.A.0/configs/下附录:ov9732_720p_line.ini[plain]viewplaincopyprint?1.[sensor]2.Sensor_type=ov9732;thetypeofsensor3.Mode=0;LINEmode,mode=0,WDRmode,mode=14.DllFile=libs/libsns_ov9732.so;LineDllFilepath5.6.[vi_dev]7.Input_mod=2;VI_INPUT_MODE_BT656=08.;VI_INPUT_MODE_BT601,9.;VI_INPUT_MODE_DIGITAL_CAMERA10.11.Work_mod=0;VI_WORK_MODE_1Multiplex=012.13.;VI_WORK_MODE_2Multiplex,14.15.;VI_WORK_MODE_4Multiplex16.17.Combine_mode=0;Y/Ccompositeorseparationmode18.19.;VI_COMBINE_COMPOSITE=0/*Compositemode*/20.21.;VI_COMBINE_SEPARATE,/*Separatemode*/22.23.Comp_mode=0;Componentmode(single-componentordual-component)24.25.;VI_COMP_MODE_SINGLE=0,/*singlecomponentmode*/26.27.;VI_COMP_MODE_DOUBLE=1,/*doublecomponentmode*/28.29.Clock_edge=1;Clockedgemode(samplingontherisingorfallingedge)30.31.;VI_CLK_EDGE_SINGLE_UP=0,/*risingedge*/32.33.;VI_CLK_EDGE_SINGLE_DOWN,/*fallingedge*/34.35.Mask_num=2;Componentmask36.37.Mask_0=0xFFC0000038.39.Mask_1=0x040.41.Scan_mode=1;VI_SCAN_INTERLACED=042.43.;VI_SCAN_PROGRESSIVE,44.45.Data_seq=2;datasequence(ONLYforYUVformat)46.47.;----2thcomponentU/Vsequenceinbt112048.49.;VI_INPUT_DATA_VUVU=0,50.51.;VI_INPUT_DATA_UVUV,52.53.;----inputsequenceforyuv54.55.;VI_INPUT_DATA_UYVY=0,56.57.;VI_INPUT_DATA_VYUY,58.59.;VI_INPUT_DATA_YUYV,60.61.;VI_INPUT_DATA_YVYU62.63.64.65.Vsync=1;verticalsynchronizationsignal66.67.;VI_VSYNC_FIELD=0,68.69.;VI_VSYNC_PULSE,70.71.VsyncNeg=0;Polarityoftheverticalsynchronizationsignal72.73.;VI_VSYNC_NEG_HIGH=0,74.75.;VI_VSYNC_NEG_LOW/*ifVIU_VSYNC_E76.77.Hsync=0;Attributeofthehorizontalsynchronizationsignal78.79.;VI_HSYNC_VALID_SINGNAL=0,80.81.;VI_HSYNC_PULSE,82.83.HsyncNeg=0;Polarityofthehorizontalsynchronizationsignal84.85.;VI_HSYNC_NEG_HIGH=0,86.87.;VI_HSYNC_NEG_LOW88.89.VsyncValid=0;Attributeofthevalidverticalsynchronizationsignal90.91.;VI_VSYNC_NORM_PULSE=0,92.93.;VI_VSYNC_VALID_SINGAL,94.95.VsyncValidNeg=0;Polarityofthevalidverticalsynchronizationsignal96.97.;VI_VSYNC_VALID_NEG_HIGH=0,98.99.;VI_VSYNC_VALID_NEG_LOW100.101.Timingblank_HsyncHfb=0;Horizontalfrontblankingwidth102.103.Timingblank_HsyncAct=1280;Horizontaleffetivewidth104.105.Timingblank_HsyncHbb=0;Horizontalbackblankingwidth106.107.Timingblank_VsyncVfb=0;Verticalfrontblankingheight108.109.Timingblank_VsyncVact=720;Verticaleffetivewidth110.111.Timingblank_VsyncVbb=0;Verticalbackblankingheight112.113.Timingblank_VsyncVbfb=0;Even-fieldverticalfrontblankingheight(interlace,invalidprogressive)114.115.Timingblank_VsyncVbact=0;Even-fieldverticaleffetivewidth(interlace,invalidprogressive)116.117.Timingblank_VsyncVbbb=0;Even-fieldverticalbackblankingheight(interlace,invalidprogressive)118.119.120.121.;-----onlyforbt656----------122.FixCode=0;BT656_FIXCODE_1=0,123.124.;BT656_FIXCODE_0125.126.FieldPolar=0;BT656_FIELD_POLAR_STD=0127.128.;BT656_FIELD_POLAR_NSTD129.130.DataPath=1;ISPenableorbypass131.132.;VI_PATH_BYPASS=0,/*ISPbypass*/133.134.;VI_PATH_ISP=1,/*ISPenable*/135.136.;VI_PATH_RAW=2,/*Capturerawdata,fordebug*/137.138.InputDataType=1;VI_DATA_TYPE_YUV=0,VI_DATA_TYPE_RGB=1,139.140.DataRev=FALSE;Datareverse.FALSE=0;TRUE=1141.142.143.[vi_chn]144.145.CapRect_X=0146.147.CapRect_Y=0148.149.CapRect_Width=1280150.151.CapRect_Height=720152.153.DestSize_Width=1280154.155.DestSize_Height=720156.157.CapSel=2;Frame/fieldselect.ONLYusedininterlacedmode158.;VI_CAPSEL_TOP=0,/*topfield*/159.;VI_CAPSEL_BOTTOM,/*bottomfield*/160.;VI_CAPSEL_BOTH,/*topandbottomfield*/161.162.PixFormat=19;163.164.165.166.SrcFrameRate=-1;Sourceframerate.-1:notcontroll167.168.FrameRate=-1;Targetframerate.-1:notcontroll169.170.171.[vpss_group]172.Vpss_DrEn=FALSE173.174.Vpss_DbEn=FALSE175.176.Vpss_IeEn=TRUE177.178.Vpss_NrEn=TRUE179.180.Vpss_HistEn=TRUE181.182.Vpss_DieMode=0;Definede-interlacemode183.184.;VPSS_DIE_MODE_AUTO=0,185.186.;VPSS_DIE_MODE_NODIE=1,187.188.;VPSS_DIE_MODE_DIE=2,189.190.[vpss_chn]191.Vpss_W=1280192.Vpss_H=720193.194.[isp_image]195.196.Isp_W=1280197.198.Isp_H=720199.200.Isp_FrameRate=30201.202.Isp_Bayer=3;BAYER_RGGB=0,BAYER_GRBG=1,BAYER_GBRG=2,BAYER_BGGR=3203.204.205.[isp_timing]206.207.Isp_WndMode=0;WIND_NONE=0,WIND_HOR=1,WIND_VER=2,WIND_ALL=3,208.2