Atmel AT01180: Barcode and QR code scanner ... - Atmel Corporation
Atmel AT01180: Barcode and QR code scanner ... - Atmel Corporation
Atmel AT01180: Barcode and QR code scanner ... - Atmel Corporation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Table of Contents<br />
1. Reference .......................................................................................... 3<br />
2. Overview ............................................................................................ 4<br />
2.1 Description ........................................................................................................ 4<br />
2.2 Hardware resources .......................................................................................... 4<br />
2.3 Hardware files ................................................................................................... 5<br />
3. <strong>Bar<strong>code</strong></strong> ............................................................................................. 6<br />
3.1 <strong>Bar<strong>code</strong></strong> overview .............................................................................................. 6<br />
3.2 How to de<strong>code</strong> an EAN-13 bar<strong>code</strong> .................................................................. 6<br />
4. <strong>QR</strong> <strong>code</strong> ............................................................................................. 8<br />
4.1 <strong>QR</strong> <strong>code</strong> overview ............................................................................................. 8<br />
4.2 How to de<strong>code</strong> .................................................................................................. 8<br />
5. Inside the demo application ................................................................ 9<br />
5.1 Overview ........................................................................................................... 9<br />
5.2 MCU initialization .............................................................................................. 9<br />
5.3<br />
5.2.1 Clock for maximum frequency .......................................................... 10<br />
CMOS Imaging Sensor ................................................................................... 10<br />
5.3.1 Initialization of PIO Parallel Capture <strong>and</strong> OV7740 ............................ 10<br />
5.3.2 Parallel Capture Event H<strong>and</strong>ler ........................................................ 10<br />
5.4 OpenCV Library .............................................................................................. 10<br />
5.4.1 Smoothing Images ............................................................................ 10<br />
5.4.2 Threshold Operations ....................................................................... 11<br />
5.4.3 Find all contours ............................................................................... 11<br />
5.5 Libde<strong>code</strong>qr Library ........................................................................................ 11<br />
5.6 BAR Code decoding ........................................................................................ 11<br />
5.7 <strong>QR</strong> Code decoding .......................................................................................... 12<br />
6. How to use ....................................................................................... 13<br />
6.1 Downloading the Binary .................................................................................. 13<br />
6.2 Running the application ................................................................................... 14<br />
7. Revision History ............................................................................... 15<br />
<strong>Atmel</strong> <strong>AT01180</strong>: <strong>Bar<strong>code</strong></strong> <strong>and</strong> <strong>QR</strong> <strong>code</strong> <strong>scanner</strong> User Guide [APPLICATION NOTE]<br />
42098A-ATSAM−03/2013<br />
2