Two-dimensional code recognition based on Stm32 ov7725

Source: Internet
Author: User
Two-dimensional code recognition based on Stm32 ov7725

Two-dimensional code recognition technology in our life is very convenient to use, but the basic is based on mobile phones, at present, there are also on the bus scanning two-dimensional code of the machine, the last time after the bad, found a small penguin, originally based on Linux, Here is a description of the two-dimensional code based on stm32f767 and ov7725 and Zbar identification technology, in fact, the relevant code on the right atom is also given, but the core of the identification Library is given in the form of. lib files, no source
Here will be introduced from the following aspects: OV7725 Zbar algorithm based on F767 introduction zbar algorithm of porting stm32 Hal Library Introduction summary OV7725 based on the F767

Basically all OV series of cameras are similar, in essence, the factory ID, and the value of the input register is different, because the right atom official provides a formal OV2640 code, we only need a little modification on it, of course, in the actual process involves the use of DCMI interface for frame acquisition, This place and 0v2640 also have a different, need according to the data manual to complete, specifically see I provide below the code zbar algorithm Introduction

Introduction to the Zbar algorithm, there is a good article on the network
Link here: porting of the http://blog.csdn.net/u013738531/article/details/54574262 Zbar algorithm

Zbar algorithm is invented by Japan, with the C language, so it can be well transplanted into the STM32, of course, decoding the QR code and zxing algorithm, but this seems to be done with Java, so bad transplant, so on the monolithic computer, we still mainly use Zbar
There are several points to note about Zbar's transplant:
(1): Because it is based on C library code, there will be a lot of printf and other functions, but we are using their own definition of printf function, so about such functions, we need to pay attention to
(2): About Free,malloc and other memory management, the punctual atom itself provides the relevant memory management functions, so we need to replace the corresponding
(3): I again Taobao bought a Zbar algorithm based on Stm32, found that the same as on-line, their own modifications can be used, their own according to this can see how to transplant, later on some of the tools of the transplant can refer to this transplant method, below I provide a zbar algorithm Stm32 Hal Library Introduction Now we do stm32 development, basically is based on the library function, because the library functions to help us do a lot of tasks, provide a lot of APIs, we just need to learn how to use these APIs, the latest HAL Library also provides a lot of APIs, Our project is the most important of the two places involved; (1) SRAM using the latest SRAM API and the standard library is roughly the same, mainly familiar with the role of each SRAM interface, it can support sram,sdram, etc., we need to make a minor change (2) DCMI use DCMI mainly take to produce frame interrupts, and with DMA for image data transmission, understand how to set these structure summary

A lot of things have forgotten, paste my code below, I see the code in the specific operation, combined with the official code of the punctual atom, to do some contrast, hoping to get what you want from the

Connection: http://download.csdn.net/download/lixiaojie123123/10238405

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.