2016 International Conference on Information Engineering and Communications Technology (IECT 2016) ISBN: 978-1-60595-375-5 Fingerprint Verification Terminal of Examination Information Based on Qt Mengtao Huang 1, Mengyao Han 2 1 Xi`an University of Science and Technology, Xi an 710054, China 2 Xi`an University of Science and Technology, Xi an 710054, China 1 312846544@qq.com 2 3111791363@qq.com Keywords Fingerprint verification; Database; Embedded; The examinee identity; ARM9 Abstract The embedded and fingerprint technology applied in the examination authentication system, through to the fingerprint feature comparing check the examinee identity authenticity. Using ARM9-based architecture Samsung S3C2440 processor as the development platform of the embedded fingerprint verification terminal design scheme, the terminal's fingerprint identification module obtain examinee's fingerprint information, and compare to the fingerprint database fingerprint information. judge the examinee identity authenticity, prevent the phenomenon of shooter and error test, in addition, the terminal statistics the numbers of absence for your reference. Introduction With the development of society and the progress of science and technology, our country pay more attention to the education, the national selection of talents mainly through the examination. It is important for the candidates and the state that the fair, impartial and reasonable of educational examinations. Existing examination and selection system is mainly to print quasi ticket and valid ID to recognize candidates,identification, these authentications, safety factor are not high, easy to counterfeit the shortcomings, so training, error test phenomenon has come[1]. It is the urgent task of the current examination system that how to verify the identity of the candidates in order to prevent a similar phenomenon. Fingerprint recognition technology in into the 21st century develop rapidly and to its undisputed means of authentication application in all aspect of life[2,3], this paper of the embedded fingerprint identification technology research, its application in the examinee identity authentication system. System design Examinee identity certification system gather examinee fingerprint information by finger printer, save in database which has been ported to the processor, after the acquisition to the examinee information transmission to the PC for filing. Before exam, download the different examination candidates information to the ARM development board, through the fingerprint collector directly verify the candidates information, and displayed on the S3C2440 screen. The system hardware device is composed of S3C2440 core processor and its external circuit, LCD touch screen, computer PC server, fingerprint acquisition terminal equipment. Hardware system block diagram is shown in figure 1:
Figure 1. Hardware system block diagram. Software includes Qt interface, SQLite database, finger printer three parts. First, port the Qt interface and SQLite database to the core processor, and then touch the S3C2440 screen interface to operate the corresponding instructions directly, and control to realize various functions of fingerprint verification terminal by serial port. After the system is started, first run the main program of Qt, enter the user login window. If verify user login success, the system jump to the selection window. User selects fingerprint entry or fingerprint verification. The user, in the fingerprint input window, achieve the fingerprint information of input, delete, and store the fingerprint image. Fingerprint verification can be carried out under the fingerprint verification window. Uses the FTP transport protocol to download the candidates fingerprint information to verification terminal. Candidates complete the data acquisition through the verification terminal fingerprint sensor. The collected fingerprint information and download the fingerprint information database for comparison to verify, fingerprint verification successfully represented authentication is successful, after gathering the identify information for stating and consulting. Qt embedded interface development and SQLite database A. Qt embedded interface development Qt support the local and cross platform software development, because of its various platforms API are same, so writing program on one program, and complete, link, run on the other platform is ok[4,5]. Designer Qt is a way to see that the income, in the Qt install directory of bin, after start Qt, contains a lot of Qt components of the visual interface, and can use C++ language to write. Open Designer-File/new- Qt to create a new component (such as Form) selects the Main Window dialog box, start the Qt graphics editor, edit the GUI interface[6]. According to the function of fingerprint verification system, the system can be divided into five interface: user login interface; mode select interface; examinee fingerprint input interface; examinee fingerprint verification interface; soft keyboard interface, save and get.ui file, switching function interface can be achieved by function accept() in the code editor[7]. B. SQLite database The SQLite database established by this system is SQLite3, which is an open source embedded relational database, has the advantages of use conveniently, compact structure, high efficiency and reliability. In most cases, you can start creating, connecting, and using the database as long as you make sure that the SQLite's binary files are exist[8]. At the windows system, the SQLite3 will be installed in F:\sql program, running SQLite3, the running instructions as follows: f: cd sql Sqlite3.exe finger.db Creat table quanbu(name,sex,number,id); insert into quanbu values(1,'student1','female','2013001','1');
insert into quanbu values(2,'student2','female','2013002','2'); insert into quanbu values(3,'student3','female','2013003','3'); After the program finishes, create a fingerprint database finger.db. Add executable statements to the database, achieve adding three student name, student number, gender, number ID. After creating SQLite database, modifying the Qt designer s design interface, compiling the project file to achieve the connection. Fingerprint module connection The system uses the Fingerprint Reader UART which is a high precision optical fingerprint sensor module. The fingerprint input, fingerprint matching, fingerprint search and other functions follow the USART protocol, support the two embedded development[9]. Fingerprint module complete communication with the controller through the UART controller to achieve the fingerprint data to send and receive, fingerprint module status information. The system, under the Qt interface, reproduced the fingerprint module function realization, through the corresponding signal and slot mechanism to complete the corresponding functions, including, fingerprint entry, fingerprint data storage, fingerprint images display and delete, fingerprint verification, etc. A. Examinee information entry function In the header file, the different fingerprint operation instructions are defined. Due to system complete much more fingerprint function and need add fpreadercmd.p and fpreaderopt.p source code package to Qt creator head file directory, write fingerprint module of the basic operating instructions, and change the corresponding button name to the instructions defined name for subsequent use convenient[10]. The stufpinputdlg.ui interface is the examinee fingerprint entry interface. First to achieve the user entry function, named the Button key to which the user is entered. btn_user_input, jump slot signal, the command is written as follows: Void stufpinputdlg::on_btn_user_input_ clicked() const QString qid = ui->le_fp_id->text(); QByteArray ba_id = qid.tolatin1(); const char * fp_id_str = ba_id.data(); const QString qname = ui->le_name->text(); QByteArray ba_name = qname.tolatin1(); const char * name_str = ba_name.data(); *** *** /* Define sex and ID number jump */ fp_id_str, name_str, sex_str, stu_id_str); memset(m_name_buf,0,64); memset(m_sex_buf,0,64); memset(m_stu_id_buf,0,64); m_fp_id = atoi(fp_id_str); strcpy(m_name_buf,name_str); strcpy(m_sex_buf,sex_str); strcpy(m_stu_id_buf,stu_id_str); DbgPrintf("input1----user id :%d %s %s %s",m_fp_id, name_str,
sex_str, stu_id_str); clean_wind_ret_text(); g_fp_opt->userfpinput(m_fp_id,1); B. Fingerprint image display function This system receive the fingerprint image data (BMP data), to generate picture with BMP format through the serial port to, and stored in the /opt/qt-4.5-fs/bin/fp.directory. Using ordinary image space display this picture, The BMP format bitmap is consists of four parts: file information header, bitmap information header, color palette, bitmap data. The generation code of BMP format image is as follows: void fpreaderopt::writefpbmp() bfh.bftype = 0x4D42; bfh.bfsize = 54+(124*74); bfh.bfreverved1 = 0x0; bfh.bfreverved2 = 0x0; bfh.bfoffbits = 0x436; bmp info head bih.bisize = 0x28; bih.biwidth = 124; bih.biheight = 74; : Defined the BMP format file header, which defined contains the type of generated file, the size is 9230, image width, height, and the amount of the file offset, etc.. bih.biplanes = 0x01; bih.bibitcount = 8; // Bit number and pixel bih.bicompression = 0; bih.bisizeimage = 124*74;//19600; /image size, in bytes bih.bixpelspermeter = 0x60;//0x60; bih.biypelspermeter = 0x60; // pixel and metres bih.biclrused = 0; bih.biclrimportant = 0; The above code define the format of BMP bitmap information header and data, including image width, height (in pixels); definition of the target device bit plane number1, the compression type of image data; image size, horizontal and vertical resolution, etc. /*Palette information*/ int i; for(i=0;i<256;i++) rgbquad[i].rgbblue=i; rgbquad[i].rgbgreen=i; rgbquad[i].rgbred=i; rgbquad[i].rgbreserved=0; /*write information*/ FILE* fp = NULL; int ret = 0; fp = fopen("/opt/qt-4.5-fs/bin/fp.bmp","wb"); if(!fp)
return ; ret = fwrite(&bfh,1,sizeof(struct bmp_fileheader),fp); ret = fwrite(&bih,1,sizeof(struct bmp_infoheader),fp); ret = fwrite(&rgbquad[0],1,sizeof(rgb QUAD)*256,fp); ret = fwrite(&fp_img_data[0],1,sizeof(fp_img_data),fp); fclose(fp); return ; Finally, the four part information of the BMP format is written into the FP stream, and the write is recorded as the 1 struct record corresponding to the structure size. C. Fingerprint verification After the successful entry of fingerprint information, the characteristic value is stored in the database. Enter the examinee verification interface, input the fingerprint, match and verify with user information stored in the database, this match is 1:N contrast, the corresponding code segment is as follows: void stufpveridlg::on_btn_fp_reg_ver_ clicked() qdebug()<<"click req verify fp"; clean_wind_text(); //QMessageBox::information(this,"Information",tr("click req verify fp")); g_fp_opt->userfpindent(); Conclusions Through the above software transplant S3C2440 can successfully display the Qt interface, and can perform the examinee information input and delete function. After the function of each module is improved, the software and hardware carried out debugging, and debugged the function of the system. Finally, the system is easy to use, high efficiency and fast, and it has certain practical value.fingerprint image and fingerprint verification image as shown in figure2 and figure3: Figure 2. Fingerprint acquisition interface. Figure 3. Fingerprint verification interface. References [1] Ni Zengchao, Wang Jing. Development and application of automatic fingerprint identification technology [J]. Science and Technology Innovation and Application, 2015 (32): 40-40. [2] Yang Lan. Analysis of fingerprint identification technology and its application [J]. Journal of Jilin Teachers' College of Engineering and Technology, 2014, 30 (9): 88-90.
[3] Li Tong, Han Haiwei, Shi Junfei. Research on the application of fingerprint identification technology in the campus smart card system [J]. Journal of Henan Mechanical and Electrical Engineering College, 2008,16 (4): 37-40. [4] Zeng Jianyuan. Research and implementation of embedded GUI based on ARM9 on Qt/Embedded platform [D]. Ji Lin University master's degree thesis. 2010. [5] Li Yanmin. Research and application of cross platform based on Qt cross platform [D]. Chongqing University Master's Thesis. 2007. [6] Qt4 Whiter Paper [M]. Trolltech Company, 2005. [7] Li Yunsong, Liu Guofan, Cao Shaokun. Design and application of MiniGUI based on embedded ARM-Linux system [J]. Journal of Hunan Institute of Engineering: Natural Science Edition, 2008, 18 (1): 12-15. [8] Xu Bing, Wu Sheng, Pan Yi. Application of embedded database SQLite in fingerprint identification system [J], Office Automation Journal. 2008, 6 (133): 31-33. [9] UART Fingerprint Reader user manual.pdf. [10] Yang Lei, Zhang Wenchao, Qin Huibin. Design and implementation of fingerprint identification system based on [J]. STM32 Mechanical and Electrical Engineering. 2011 (12): 29-30.