|
附件是我的摄像头(OV7725)配置,输出分辨率是480 * 320
XCLK 8M
问题是显示的图像右边有三分之一左右很模糊 , 有一条一条的扫描横线,(图片为现象),不知道是怎么回事。
下面是我的摄像头配置:
/*******************************************************************************
* File Name : OV7725_config.h
* Author : MicroEmbedded
* Version : V1.0
* Date : 2012-01-12
* Description :
********************************************************************************
*******************************************************************************/
#ifndef __OV7725_H
#define __OV7725_H
/* Includes ------------------------------------------------------------------*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Extern variables ----------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
const char change_reg_OV7725[CHANGE_REG_NUM_OV7725][2]=
{
/*以下为OV7725QVGA RGB565参数 */
{0x32,0x00},
{0x11,0x01},//25fps or 12.5FPS
//{0x12,0x46},//QVGA RGB565
{0x12,0x06},//采样VGA RGB565
{0x42,0x7F}, //7F 2011-02-15
{0x4d,0x00}, //0x09 //0X00 2011-02-15
{0x63,0xf0},
{0x65,0x2f}, //0X20 ????????????????
{0x66,0x00},
{0x67,0x00},
{0x69,0x5d},
// {0x4F,0x00},//1.8V regulator enable
// {0x54,0x7A},
{0x13,0xff},//0xff
{0x0d,0xC1},//PLL 8 倍频
{0x0f,0xc5},
{0x14,0x31},//AGC 0x41
//{0x15,0x30},//PCLK在行同步期间没有输出,PCLK反相,此设置和屏有关系 2012-014
{0x15,0x00},//PCLK在行同步期间没有输出,PCLK反相,此设置和屏有关系 2012-07-19
{0x22,0x4c},//25FPS 12.5FPS 98 4C //场频同步问题。。
{0x23,0x07},//25FPS 12.5FPS 03 07
{0x24,0x58},//画面亮度调整 0x58
{0x25,0x48},//画面亮度调整 0x48
{0x26,0x72},//0Xa1
{0x2b,0x9e},//0x47
{0x6b,0xaa},
{0x13,0xff},
{0x90,0x0a},//
{0x91,0x01},//
{0x92,0x01},//
{0x93,0x01},
{0x94,0x5f},
{0x95,0x53},
{0x96,0x11},
{0x97,0x1a},
{0x98,0x3d},
{0x99,0x5a},
{0x9a,0x1e},
{0x9b,0x80},//set luma 亮度 0x80
{0x9c,0x1f},//set contrast 对比度ox1f
{0xa6,0x02},//0X06 饱和度
{0xa7,0x60},//set saturation 0x65 2011-02-15
{0xa8,0x60},//set saturation 0x65 2011-02-15
{0xa9,0x80},//set hue 0x1f 色调
{0xaa,0x00},//set hue 0x1f
{0xab,0x02},
{0x64,0xff},//0xff
{0xac,0x10},//锐度 //比例缩放 手动 0X00
{0X8F,0X04},//锐度
{0x9e,0xa1},//0X81
{0X9F,0X00},
{0x7e,0x0c},
{0x7f,0x16},
{0x80,0x2a},
{0x81,0x4e},
{0x82,0x61},
{0x83,0x6f},
{0x84,0x7b},
{0x85,0x86},
{0x86,0x8e},
{0x87,0x97},
{0x88,0xa4},
{0x89,0xaf},
{0x8a,0xc5},
{0x8b,0xd7},
{0x8c,0xe8},
{0x8d,0x20},
{0x33,0x00}, //00
{0x22,0x99},
{0x23,0x03},
{0x4a,0x30}, //0X00
{0x49,0x50}, //0X13
{0x47,0x00}, //0x08
{0x4b,0x50}, //0X14
{0x4c,0x50}, //0X17
{0x46,0x00}, //0X05
{0x0e,0xF5}, //0X75 //夜视 1/8 帧率
{0x0c,0xd0}, //0x05
//{0x0c,0xd1}, //0x05 Test color bar 2010-07-20
{0x00,0xf0},
/*下面6个寄存器是调整输出分辨率的 A1 A2 为缩放比例(相对VGA的比例),29 2a 2c 是输出像素*/
{0xa1,0x53}, //缩放尺寸相关1.3
{0xa2,0x60}, //1.5
{0xa0,0x00}, //0x40
{0x2a,0x00},
{0x29,0x78}, //输出尺寸480
{0x2C,0xA0}, //输出尺寸320
};
#endif
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|