Livestock Searching System on Mobile Devices Using 2D-Barcode ChulYoung Park, HoSeong Cho, DaeHeon Park, ChangSun Shin, Yong Yun Cho and JangWoo Park
Abstract In this article, we have designed and implemented livestock searching system on mobile devices using 2D-Barcode. 2D-Barcodes capacities have risen a hundredfold for 1D-Barcode. In recent years, it can share data, (text, phone number, hyperlink, etc.) by means of application on feature phone and smart devices. Also, QR-Code is suitable for identification of missing livestock, because of QR-Code is easy to print with low-cost and it was designed to withstand external damage. And it can store identity of livestock and provide the location information to livestock-farmer using smart devices. Also, our system generates QR-Code that fit vCard v3.0 format with livestock-farmer. Therefore, the first people to found a missing livestock that can contacts the farmer immediately. In order to do this, we developed mobile application and server program.
C. Park H. Cho D. Park C. Shin Y. Y. Cho J. Park (&) Department of Information and Communication Engineering, Sunchon National University, 413 Jungangno, Suncheon, Jeonnam 540-742, Korea e-mail:
[email protected] C. Park e-mail:
[email protected] H. Cho e-mail:
[email protected] D. Park e-mail:
[email protected] C. Shin e-mail:
[email protected] Y. Y. Cho e-mail:
[email protected]
J. J. Park et al. (eds.), IT Convergence and Services, Lecture Notes in Electrical Engineering 108, DOI: 10.1007/978-94-007-2598-0_32, Ó Springer Science+Business Media B.V. 2012
305
306
C Park et al.
In addition to this, we developed QR-Code generation module and we built database server from the farmer’s identity and livestock’s identity. Keywords 2D-Barcode
Mobile application QR code system
1 Introduction In recent years, increased the use of mobile devices and offered the more information to general public. Also, 1D-Barcode and 2D-Barcode technique have caught the attention on the mobile environment. 2D-Barcode can share data, (text, phone number, hyperlink, etc.) by means of application on feature phone and smart devices. The increase of mobile device users, thereby increase of the application using 2D-Barcode. This application service is providing through mobile devices. Barcodes divide into two types. First, 1D-Barcode type is using on logistics, distribution and etc. 1D-Barcode express of information depending on thickness of bar lines that the only vertical. Second, 2D-Barcode type represents of information by way of braille or mosaic. 2D-Barcodes information capacity have risen a hundredfold for 1D-Barcode. And it was designed to withstand external damage. It can be recognition in the direction of 360 degrees is the advantages of 2D-Barcode. And 2D-Barcode is easy to use without database because of high-capacity [1]. 2D-Barcode is a service for providing about information of object. In recent years, it can share data by means of application on feature phone and smart devices. QR-Code in either of the 2D-Barcode technique can be easy that read through smart devices application. It can store identity of livestock and farmer’s contact. Also, QRCode is suitable for identification of missing livestock, because of QR-Code is easy to print with low-cost and it was designed to withstand external damage. Also, we has designed and implemented application service on mobile devices using 2D-Barcode for missing livestock. It can store identity of livestock and provide the location information to livestock-farmer using smart devices. In this article is composed as follows. The Sect. 2 describes related works. The Sect. 3 describes system design and implementation. And the Sect. 4 makes a conclusion.
2 Related Works 2.1 Data Matrix Code Data matrix is one of the most widely used two dimensional barcodes. It can be broken up into ECC 00-140 and ECC 200 according to the error checking and correction algorithm. The data matrix is a high density code that can be encoding
Livestock Searching System on Mobile Devices Using 2D-Barcode
307
Fig. 1 The symbol of data matrix code
Fig. 2 The symbol of PDF417
with 3116 numeric chars and 2345 alphanumeric chars in the ASCII character set [2]. Data matrix code is characterized as follow. First, symbol size can use 0.001 to 14 inch. Also, it can be represent alphanumeric chars of up to 2334 characters per symbol in 1.4 inch square. Second, symbol is always a square or rectangular shape. And the finder pattern is surrounded by outline. Third, it can be recognition in the direction of 360 degrees is the advantages of 2D-Barcode using CCD scanner or camera (Fig. 1).
2.2 PDF417 Portable data file (PDF417) is portable data file of high density 2D-Barcode in 1991. PDF417 have error correction capability of the eight step. Half of the data was lost on account of noise; even so, it can be recognize with maximum level. And PDF417 composed to unit of code word (Fig. 2, Table 1). PDF417 includes start-code and stop-code at both ends. Code word of row indicator includes lane number, each of rows, each of columns and error correction ratio, etc. [3].
2.3 QR Code QR code is the acronym for quick response code. QR code has the large capacity about 7,089 chars of numeric, 2,396 chars of alphanumeric, 2,953 bytes. It was created by Denso-Wave in 1994. QR Code can include to text, vCard and URL,
308 Table 1 The difference each mode of PDF417
Table 2 Specification of QR Code
C Park et al. Mode
Example
Font size and style
Byte Text (Alphanumeric/ ASCII) Numeric
6 2
1,108 bytes 1,850 chars
3
2,725 chars
Code size
21 cell 9 21 cell
Data type and value
Numeric 8 bit or byte binary UTF-8 characters L M Q H
Error correction functionality (LEVEL)
7,089 2,953 1,817 7% of code word 15% of code word 25% of code word 30% of code word
Fig. 3 The symbol of QR code
etc. QR Code has error correction algorithm. It has 30% restoration ratio by one code word. Also, it can be recognize in the direction of 360 degrees [4] (Table 2). QR Codes store a lot of information with number of dots. However, it is necessary wide area. Also, QR Code has to include three finder pattern and several alignment patterns (Fig. 3). QR Code has finder patterns, alignment patterns, timing patterns, and a quiet zone (Fig. 4). QR Code v.3 use finder pattern for the detection of QR Code position. It can be recognized in the direction of 360 degrees. Timing pattern is used to determine the coordinates of symbol on decoder application. Alignment pattern should be used to for correcting the distortion. Quiet zone is margin for reading the QR Code [5].
Livestock Searching System on Mobile Devices Using 2D-Barcode
309
Fig. 4 The QR code structure
Our system was using ZXing library on Objectives-C and JAVA when read the QR Code. ZXing barcode library is open-source. It supports UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code128, QR Code, Data Matrix, PDF417 and ITF.
3 System Design and Implementation 3.1 System Composition Figure 5 shows the Livestock searching system composition. Our system is broken into two parts: server part and client part. The server part was composed of web server, remote server, mobile application server and database server. The client part was composed of remote server, client PC, wireless access point, QR code printer and mobile devices. The web server was included page for generate to QR Code. And the remote server manages for each client group. The mobile application server was designed for iPhone or Android platform. Figure 6 presents the flow for recognize of QR Code. These procedures get the information from QR Code on mobile device and smart devices application. The information decoded from QR Code is text, vCard and URL, etc. Our system stored for identity of livestock and farmer’s contact using vCard 3.0 formats. vCard is a business card format. The fields of vCard 3.0 format as follows (Fig. 7).
310
Fig. 5 Livestock searching system composition
Fig. 6 The flowchart of recognize for QR Code
Fig. 7 The fields of vCard 3.0 format
C Park et al.
Livestock Searching System on Mobile Devices Using 2D-Barcode
Fig. 8 The application for recognition of QR Code
Fig. 9 The results of recognition
311
312
C Park et al.
Fig. 10 The map information transmitted screen
3.2 Result of System Implementation Figure 8 shows the application for recognition of QR Code. This application stored to farmer’s contact of livestock. vCard parse module find ‘‘TEL;TYPE=VOICE,WORK:’’ field and ‘‘TEL; TYPE=CELL,WORK:’’ field in results. Figure 9 shows the results of recognition. ‘‘Send location’’ button pressed in this application; send the message with map information using GPS module mounted on smart devices. And our system was used to the Google static maps API (Fig. 10).
4 Conclusion In this article, we designed for Livestock searching system and implementation. QR Code has large capacity and high-density on the paper of small size. For this reason, it is suitable for the livestock out to pasture. Also, our system was used to QR Code and GPS module of smart devices for missing livestock less out of range. The first people to found a missing livestock that can contacts the farmer immediately. Also, Livestock searching system can be implementation with low-cost. It is for this reason that QR Code can print on the paper.
Livestock Searching System on Mobile Devices Using 2D-Barcode
313
Acknowledgments ‘‘This research was supported by the MKE (The Ministry of Knowledge Economy), Korea, under the ITRC (Information Technology Research Center) support program supervised by the NIPA (National IT Industry Promotion Agency)’’ (NIPA-2011-(C1090-11210009)) and This work was supported by the Industrial Strategic technology development program (10037290, Development of Smart Growth Management System) funded by the Ministry of Knowledge Economy (MKE, Korea).
References 1. Gao JZ, Prakash L, Jagatesan R (2007) Understanding 2D-BarCode technology and applications in M-commerce—Design and implementation of A 2D barcode processing solution. In: COMPSAC 2007. 31st Annual international, vol 2, pp 49–53, 24–27 July 2007 2. Lisa S, Piersantelli G (2008) Use of 2D barcode to access multimedia content and the web from a mobile handset. In: GLOBECOM 2008. IEEE, pp 1–3, 30 Nov 2008 3. Yong Y, Shunying Z, Wang H (2009) An integrated system of freeway toll and traffic data investigation: PDF417 two-dimensional bar code system. In: ICMTMA ’09, vol 3, pp. 466–470, 11–12 Apr 2009 4. Chang Y-H, Chu C-H, Chen M-S (2007)A general scheme for extracting QR code from a non-uniform background in camera phones and applications. In: ISM 2007, pp 123–130, 10–12 Dec 2007 5. Yue L, Ju Y, Mingjun L (2008) Recognition of QR code with mobile phones. In: CCDC 2008, pp 203–206, 2–4 July 2008 6. Parikh D, Jancke G (2008):Localization and segmentation of a 2D high capacity color barcode. In: WACV 2008, pp 1–6, 7–9 Jan 2008 7. Kato H, Tan KT, Chai D (2008) Development of a novel finder pattern for effective color 2D-barcode detection. In: ISPA’08, pp 1006–1013, 10–12 Dec 2008 8. Tan KT, Chai D (2010) JPEG compression of monochrome 2D-barcode images using DCT coefficient distributions ICIP pp 2169–2172, 26–29 Sep 2010 9. Huaqiao H, Wenhuan X, Qiang H (2010) A 2D barcode extraction method based on texture direction analysis. In: ICIG’09, pp 759–762, 20–23 Sep 2010 10. Dong H, Jianfu T, Zhaoxuan Y, Yanwei P, Meng W (2010) 2D barcode image binarization based on wavelet analysis and Otsu’s method. In: ICCASM 2010, vol 5, pp 30–33, 22–24 Oct 2010 11. Kato H (2010) Performance of a color 2D barcode as a pervasive computing tool. In: ISPACS 2010, pp 1–4, 6–8 Dec 2010 12. Chang Y-H, Chu C-H, Chen M-S (2007) A general scheme for extracting QR code from a non-uniform background in camera phones and applications. In: ISM 2007, pp 123–130, 10–12 Dec 2007