找回密码
 注册
搜索
查看: 3868|回复: 16

[讨论] OV7670调试问题!!!急!

[复制链接]
发表于 2008-12-29 11:26:04 | 显示全部楼层 |阅读模式
我是新手,现在用OV7670摄像头模块进行图像捕捉。目前出现下列问题:
1、画面分块,右边的一部分跑到左边,上边的跑到下边(见附件)
2、调整摄像头拍摄方向,图像质量变得很差。
第一个问题我感觉应该是同步问题,但是不知道怎么解决。
各位大侠,谁遇到过这种情况,请指点迷津。这里先谢过了。
我是用ADI BF531来进行单帧图像捕捉,晶振频率为25MHZ,主频400MHZ
【文件名】:081229@52RD_QVGA_ITU656_YUV_15FPS.txt
【格 式】:txt
【大 小】:2K
【简 介】:
【目 录】:
[UseMoney=0]
发表于 2008-12-29 15:13:59 | 显示全部楼层
拍照模式下,写完寄存器后再延时或等待VSYNC
点评回复

使用道具 举报

 楼主| 发表于 2008-12-29 19:06:38 | 显示全部楼层
写完寄存器后有延时
点评回复

使用道具 举报

发表于 2008-12-30 08:37:44 | 显示全部楼层
增大Hblank和Vblank。
点评回复

使用道具 举报

发表于 2008-12-30 09:22:21 | 显示全部楼层
添加dummy line试试
点评回复

使用道具 举报

发表于 2008-12-30 11:40:45 | 显示全部楼层
你降帧率了吧,降频后要有一定的延时
点评回复

使用道具 举报

发表于 2008-12-30 20:31:23 | 显示全部楼层
楼主!你调试好了吗?
怎么搞的?
能否告知,我也遇到此种问题!
谢谢![em03]
点评回复

使用道具 举报

 楼主| 发表于 2008-12-30 22:15:08 | 显示全部楼层
还没有呢!尝试过很多方法了,还是不能解决。还在进行中......苦恼啊!
点评回复

使用道具 举报

 楼主| 发表于 2008-12-30 22:20:41 | 显示全部楼层
我是通过单片机的PPI接口抓图,感觉这种现象,好像抓图时并没有参考帧同步信号,如果在帧开始位置进行抓图,应该就不会出现这种问题了
点评回复

使用道具 举报

发表于 2009-1-14 08:26:05 | 显示全部楼层
楼主!从画面上来看帧同步和行同步都有问题,可能是基带处理造成了对输出的干扰。
建议你有示波器测一下从基带输出到摄像头帧同步、行同步引脚的波形,记录下波形……不知道你有没有OV7670的datasheet,你对比一下波形,如若有出入的话,就可以确定是基带造成的。这个的话主要还是由ADI的人来调试,不能光靠OV的人……
ADI的平台我接触的也不多,建议你可以尝试一下……[br]<p align=right><font color=red>+3 RD币</font></p>
点评回复

使用道具 举报

发表于 2009-2-5 17:15:10 | 显示全部楼层
可以调节ov7670 reg0x17 0x18 0x19 0x1a,窗口显示位置,如果不行,就要调整后端的dsp,同步的开始点位置不对.除了这个方面以外,还要调整显示的窗口位置,如果调整dsp还不行,就要看看屏的驱动和显示窗口.[br]<p align=right><font color=red>+3 RD币</font></p>
点评回复

使用道具 举报

发表于 2009-4-16 21:16:45 | 显示全部楼层
学习了!
点评回复

使用道具 举报

发表于 2009-4-17 13:37:22 | 显示全部楼层
说一下我的看法吧,楼主的方案是应用到电视上吧
ITU656 这种格式输出的是串行数据,行场同步信号嵌入在数据流中,所以自然没有行场的同步信号了!
他有严格的协议规定。比如主频和尺寸。
点评回复

使用道具 举报

发表于 2009-4-17 13:40:23 | 显示全部楼层
【文件名】:09417@52RD_ITU656_chinese.pdf
【格 式】:pdf
【大 小】:464K
【简 介】:介绍 ITU656
【目 录】:


点评回复

使用道具 举报

发表于 2009-4-17 13:41:03 | 显示全部楼层
CCIR-656 Encoder
from Adaptive Micro-Ware, Inc.

Features

    * Delivers high-quality real-time video encoding
    * Complies with CCIR656 (BT.656) standard
    * Supports 27-MHz, 8-bit parallel data stream
    * Combines input video data, calculated reference codes, and generated blanking data
    * Provides external timing reference
    * Generates NTSC output
    * Uses fully synchronous design

Block Diagram

Figure 1 shows a block diagram of the function.

Figure 1. CCIR-656 Encoder Function

Figure 1 shows a block diagram of the function.
Description

The CCIR-656 Decoder provides real-time digital video processing that is used effectively for devices and applications including set-top boxes, digital recorders, video conferencing, streaming video, and video security systems.

The CCIR-656 Decoder design can synchronize to the incoming CCIR656 video data stream and generate the timing signals necessary for other blocks to extract the active video field data. It generates output signals that identify the active video data type (luma, chroma red, and chroma blue) available at DATA_OUT. The decoder also identifies the active portions of the video data stream, the current field outputted, and the video format (NTSC or PAL).
Device Utilization and Performance

Table 1 lists the typical device utilization results for the megafunction.

Table 1. Typical Device Utilization for the Megafunction
Target Device         Speed Grade         Utilization         Performance
(fMAX)         Parameter
Setting
LEs (1)         I/O Pins
ACEX&#174; 1K         -1         94         47         243.90 MHz         None
APEX&#8482; 20KE         -1         90         47         290.02 MHz         None

Note:

   1.
      LEs = Logic elements
点评回复

使用道具 举报

发表于 2009-4-19 11:04:57 | 显示全部楼层
列分屏现象,我也遇到过,一般是后端软件接受时的问题,反而帧行同步信号是没有问题的,因为后端接受数据时,需要一定的缓存和处理时间,如果采用某种采数方式造成软件缓存和处理时间不够,就有可能会出现楼主所列上述现象,
这种现象是可以调节的,但是无法彻底解决,方法如下:
1.调节时钟,降频;
2.写寄存器,在有效数据前插或者后插DUMMY LINE;
3.改变VSYNC信号的输出(即改变其有效电平(到底是高有效还是低有效));
4.晃动一下模组,待其稳定下来。
点评回复

使用道具 举报

发表于 2014-4-23 21:12:22 | 显示全部楼层
怎么下载不了附件呢?
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-7-8 01:31 , Processed in 0.063291 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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