搜索
bottom↓
回复: 30

AVRcam,基于ATMEGA8和OV6620图像识别,可指定识别颜色。。。

[复制链接]

出0入0汤圆

发表于 2009-8-9 13:34:45 | 显示全部楼层 |阅读模式
AVRcam,基于ATMEGA8和OV6620图像识别,可识别指定颜色。。。
无意中发现这个,传上来和大家共享。原作者老外。先上图和说明,英文的,大家将就着看吧。


(原文件名:AVRcam_v1_1_front1_small.jpg)

(原文件名:AVRcam_v1_1_back1_small.jpg)
NEW version 1.1 of the hardware has been completed!  

Improvements in v1.1:

Frame-rate is increased from 27 frames/sec to the full 30 frames/sec
The OV6620 image sensor crystal now supplies the clock to the AVR mega8
Auto-baud of the user-interface serial port will be supported soon...
Size of the unit: 2.4" x 1.9"
Available for purchase 11/2004
NEW  Check out this video of the AVRcam on my line-following robot EyeBo-3, tracking the line visually at 30 frames/second!  The line is purposefully not straight, to see how it would do with zig-zags and splits, as are normal for the Chibots advanced line-following contest.

--------------------------------------------------------------------------------

AVRcam Capabilities

The AVRcam is a small, real-time image processing engine capable of tracking colorful objects.  The system was specifically designed to provide the everyday-hobbyist with a vision system that can be easily added to their projects (robot, security, monitoring, etc).  Based on the Atmel AVR mega8 microcontroller and the Omnivision OV6620 CMOS image sensor, the AVRcam has the following capabilities:

Track up to 8 different objects of up to 8 different user-defined colors, at 30 frames/second
Provide real-time tracking statistics (number of objects, color, bounding box, and more) through a standard serial port (UART)
Tracked image resolution of up to 88 x 144 pixels (at 30 frames/second)
Low power consumption (v1.1 of the hardware draws 5V at only 57 mA running at full speed)
In-circuit reprogrammability for the end user to add new capabilities
Completely open-source software and hardware
In addition, the AVRcam is supported for demonstration and calibration by a PC application called AVRcamVIEW.  This software provides the following capabilities:

Take full-color snapshots (176 x 144 pixels) with the system and display the images (both raw Bayer data and interpolated data)
Easily create a Color Map of colors to track based on a snapshot (just click on the colors of interest and add them to the Color Map)
Adjust the precision of each tracked color (i.e. provide a range of acceptable R-G-B values for each color), allowing the user to adjust the Color Map to the available lighting conditions
Display the real-time tracking results of each tracked object (with color and bounding box information)
Record a tracking session for playback at a later time
Record and timestamp all communications with the AVRcam to evaluate its performance under different conditions
Test the system out in multiple operating systems supported by Java 1.5 (current support for both Windows and Linux)
Completely open-source software

--------------------------------------------------------------------------------

AVRcam Hardware

The AVRcam hardware has evolved several times since the project began in April of 2004.  As can be seen in Figure 1, the hardware is very straight forward.  An Atmel AVR mega8 provides the main processing needed by the system.  The Omnivision OV6620 CMOS image sensor is connected directly to the mega8 to access important camera signals (pixel clock, horizontal and vertical sync, and, of course, the data busses).  A new addition to the hardware is the AVR Tiny12, which is a small 8-pin microcontroller.  This micro was added to the system to configure the OV6620 to output its clock signal on one of its pins.  This clock signal is then used by the mega8 as its clock source.  Having a single clock source shared between the mega8 and the OV6620 provides the necessary synchronization to allow the system to process the real-time stream of pixel data.

(原文件名:3.jpg) Figure 1: AVRcam hardware block diagram

The AVRcam schematic diagram can be downloaded here.


--------------------------------------------------------------------------------

AVRcam Embedded Software

The AVRcam embedded software is divided up into a set of classes that implement the functionality required.  The main crux of the software revolves around the Camera Interface class, which implements the core functionality of interfacing to the OV6620.  The Frame Manager utilizes the data gathered by the Camera Interface class to make frame-level calculations and decisions.  A User-Interface Manager sits as a peer to the Frame Manager, and is responsible for processing incoming commands and generating the needed outgoing serial packets.  Finally, a simple event-dispatching executive sits at the top of the system to facilitate the handling of the events that get generated in the system.  The AVRcam class diagram is shown in Figure 2.

(原文件名:4.jpg)

Figure 2: AVRcam embedded software block diagram

The AVRcam software was written almost entirely in C, using the free AVR-GCC C compiler.  Several of the critical camera interfacing routines were written in Assembly in order to explicitly ensure the number of cycles that would be used for the routines.  These routines provide the core capability of the system, and what allow the system to keep up when running at 30 frames/sec.

The complete AVRcam embedded software can be downloaded here.


--------------------------------------------------------------------------------

AVRcamVIEW PC Software

The AVRcamVIEW PC software provides a simple way to test and calibrate the AVRcam.  This application runs on a PC (either Windows or Linux), and communicates with the AVRcam through the standard 9-pin serial port of the PC.  The AVRcamVIEW software allows the user to take full resolution snapshots (176 x 144 pixels) and analyze them to determine the colors that are present in the camera's field of view.  The user can then build a color map, to indicate which colors the AVRcam should track, by selecting the colors in the image and adding them to the color map.  Once all the colors have been selected, this color map can then be sent down to the AVRcam to configure it.  The AVRcam is then ready to begin tracking, which can be enabled by the AVRcamVIEW control panel.

When tracking is enabled, the AVRcamVIEW application will display the currently tracked objects (both color and bounding box info).  The display is updated at the full frame rate (30 frames/second), so the user can get immediate feedback regarding how the system is operating.  The tracking session can even be recorded for playback in the future to analyze the system's performance.  Screenshots of the AVRcamVIEW application can be seen in Figure 3.

(原文件名:5.jpg)


Figure 3: AVRcamVIEW PC application tracking three objects (yellow Lego plate, and red wire-stripper handles)

Finally, the AVRcamVIEW application is capable of keeping a complete, time-stamped log of the serial communications exchanged with the AVRcam.  This provides a way to perform additional analysis on the data provided by the AVRcam.  It also allows the user to better understand the communication protocol used to interface with the AVRcam.

The AVRcamVIEW application is written in Java, and comes with an easy-to-use installation program.  Currently, both Windows and Linux are supported, with the possibility to expand to other Java-supported OSs if the demand exists.  The Java Runtime Environment (JRE) to support the AVRcam is installed automatically, so there is no need to download anything else to get the system up and running on your PC.

The complete AVRcamVIEW Java software package can be downloaded here.


--------------------------------------------------------------------------------

Custom Development with the AVRcam

The intention of the AVRcam is to provide a starting point for adding different image processing capabilities to systems being developed.  This point is made further by the open-source nature of both the AVRcam embedded software as well as the AVRcamVIEW PC application.  The AVRcam comes allows in-circuit reprogramming of the ATmega8 software, through the standard 10-pin AVR ISP (STK200/STK300 style).  The current AVRcam embedded software utilizes approximately 4K of the 8K flash program memory, 700 bytes of the 1K RAM, and 48 bytes of the 512 bytes EEPROM.  Thus, there is definitely space left on the system to add custom image processing functions.  The software was written and commented in the hopes of being as understandable as possible to make user additions easy.  In addition, the Forums section of JROBOT has an area to ask questions and share ideas about making additions to the system.

Interested?  Purchase the AVRcam system


--------------------------------------------------------------------------------

Known Issues

By releasing the AVRcam under the GNU GPL, I hope that other developers will take the opportunity to read through the source code and improve upon how the system works.  This includes adding new features, as well as working on known issues in the system.

The current list of known issues  are as follows:

    -12/06/2004 -The only baud rate currently supported by the User-Interface is 115.2 kbps.  Other baud rates (down to 4800 bps) are being worked on, but turned out to be more difficult than expected.

    -12/06/2004 -When doing repeated dumps of images, the UART receive interrupt seems to stop responding at times.  This has no effect on tracking objects.

    Fixed in version 1.4 of AVRcam firmware

    -12/06/2004 - When doing a frame dump, there are times when a line of image data seems to be skipped, which causes the AVRcamVIEW app to sit and wait forever until the last line is sent (there is currently no timeout associated with the frame dump activity on the AVRcamVIEW software).

    Fixed in version 1.4 of AVRcam firmware

Wanna help?  Download the latest AVRcam source code here.

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

 楼主| 发表于 2009-8-9 13:36:19 | 显示全部楼层
自已做沙发。稍后上传原理图和代码。
点击此处下载 ourdev_469071.zip(文件大小:137K) (原文件名:AVRcam_rel_1_4.zip)
点击此处下载 ourdev_469072.rar(文件大小:3K) (原文件名:AVRcam_tiny12.rar)
点击此处下载 ourdev_469073.pdf(文件大小:853K) (原文件名:AVRcam_Users_Manual_v1_4.pdf)
点击此处下载 ourdev_469074.pdf(文件大小:30K) (原文件名:AVRcam_v1_1_schematic.pdf)
点击此处下载 ourdev_469075.rar(文件大小:46K) (原文件名:AVRcamVIEW_01.07.rar)

出0入0汤圆

发表于 2009-8-9 13:42:30 | 显示全部楼层
等待。多谢!

出0入0汤圆

发表于 2009-8-9 14:45:39 | 显示全部楼层
记号

出0入0汤圆

发表于 2009-8-9 15:30:39 | 显示全部楼层
y有参考价值

出0入0汤圆

发表于 2009-8-9 16:44:43 | 显示全部楼层
版上似乎已经有了

出0入0汤圆

发表于 2009-8-9 22:29:10 | 显示全部楼层
原来坛主介绍过,再mark一下

出0入0汤圆

发表于 2009-8-9 22:40:15 | 显示全部楼层
强呵!

出0入0汤圆

发表于 2009-8-10 10:28:20 | 显示全部楼层
汗!M8做的,厉害啊!

出0入0汤圆

发表于 2009-8-10 13:21:45 | 显示全部楼层
强呵!

出0入0汤圆

发表于 2009-8-10 20:16:59 | 显示全部楼层
顶!

出0入0汤圆

发表于 2009-8-13 18:31:35 | 显示全部楼层
plc_avr 你好
对这比较感兴趣
能否说一下这个的原版网页地址
你的联系方式能否告诉我
我的QQ:279316458

出0入0汤圆

 楼主| 发表于 2009-8-13 18:40:32 | 显示全部楼层
http://www.jrobot.net/Projects.html

出0入0汤圆

发表于 2009-8-13 19:05:52 | 显示全部楼层
厉害

出0入0汤圆

发表于 2010-7-27 17:33:45 | 显示全部楼层
那个AVRcamVEIW是怎样安装的?

出0入0汤圆

发表于 2010-7-30 14:03:19 | 显示全部楼层
恩,最近看过很多。但是一直没发现有高像素的,都是几十万像素这个等级的,要是能有上百万像素,比如500万像素就好了,听说中国现在自主研发了一款图像传感器,还是微光那种,不知道有谁了解?

出0入0汤圆

发表于 2010-8-6 18:10:45 | 显示全部楼层
谢谢了!
顶上!

出0入0汤圆

发表于 2010-8-20 15:03:52 | 显示全部楼层
MARK

出0入0汤圆

发表于 2011-3-28 14:02:55 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-10-13 23:45:56 | 显示全部楼层
怎么是英文的 呜呜

出0入0汤圆

发表于 2011-10-19 23:11:28 | 显示全部楼层
飘过!

出0入0汤圆

发表于 2011-10-19 23:52:39 | 显示全部楼层
强呵!

出0入0汤圆

发表于 2011-10-20 07:19:38 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-12-27 16:26:29 | 显示全部楼层
PC机代码的原理是什么?使用的是什么技术呢?

出0入0汤圆

发表于 2013-5-7 15:33:05 | 显示全部楼层
mark 图像识别

出0入0汤圆

发表于 2013-6-5 15:39:28 | 显示全部楼层
mark,mark.

出0入0汤圆

发表于 2013-7-26 13:10:30 | 显示全部楼层
mark,mark!

出0入0汤圆

发表于 2014-11-26 12:44:24 | 显示全部楼层

mark
mark 图像识别图像识别

出0入0汤圆

发表于 2015-2-16 12:51:26 | 显示全部楼层
正好最近研究颜色,下来看看

出0入0汤圆

发表于 2015-2-16 20:40:02 来自手机 | 显示全部楼层
下来学习,谢谢楼主

出0入0汤圆

发表于 2015-2-20 18:02:06 | 显示全部楼层
mark  基于ATMEGA8和OV6620图像识别
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-23 12:35

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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