University of New Orleans ScholarWorks@UNO University of New Orleans Theses and Dissertations Dissertations and Theses 12-17-2004 Wearable Personal Data Information Capture System Jiangpeng Shi University of New Orleans Follow this and additional works at: https://scholarworks.uno.edu/td Recommended Citation Shi, Jiangpeng, "Wearable Personal Data Information Capture System" (2004). University of New Orleans Theses and Dissertations. 197. https://scholarworks.uno.edu/td/197 This Thesis is protected by copyright and/or related rights. It has been brought to you by ScholarWorks@UNO with permission from the rights-holder(s). You are free to use this Thesis in any way that is permitted by the copyright and related rights legislation that applies to your use. For other uses you need to obtain permission from the rights- holder(s) directly, unless additional rights are indicated by a Creative Commons license in the record and/or on the work itself. This Thesis has been accepted for inclusion in University of New Orleans Theses and Dissertations by an authorized administrator of ScholarWorks@UNO. For more information, please contact [email protected]. WEARABLE PERSONAL DATA INFORMATION CAPTURE SYSTEM A Thesis Submitted to the Graduate Faculty of the University of New Orleans in partial fulfillment of the requirements for the degree of Master of Science in Department of Computer Science by Jiangpeng Shi B.S., University of International Business and Economy, 2000 B.S., WuHan Technology Institute of Chemistry Equipment and Machine, 1992 December 2004 Table of Contents Chapter 1 Introduction.................................................................................................................. 1 1.1 Wearable Personal Data Information Capture System ......................................... 3 1.2 The Motivation of the Project............................................................................... 5 1.3 What we do in this project .................................................................................... 5 1.4 About Sharp Zaurus SL5600 ................................................................................ 5 2 Audio Capture.............................................................................................................. 8 2.1 Capture Audio Data .............................................................................................. 8 2.1.1 About Digit Audio ....................................................................................... 8 2.1.2 Digit Audio Under Linux............................................................................. 9 2.2 Pause and Resume Audio Capture Automatically.............................................. 13 2.3 Save raw data as .wav ......................................................................................... 16 2.4 Audio Compression ........................................................................................... 19 2.4.1 Audio Compression for WPDICS............................................................... 19 2.4.2 MP3 and LAME.......................................................................................... 19 2.4.3 MP3 Encoder Programming ....................................................................... 21 2.4.3.1 Initialize the encoder......................................................................................21 2.4.3.2 Set internal configurations.............................................................................22 2.4.3.3 Encode some data ..........................................................................................23 2.4.3.4 Flush the buffers and free the internal data structures...................................24 2.5 Conclusion .......................................................................................................... 26 3 Visual Capture ........................................................................................................... 27 3.1 Visual Data Capture............................................................................................ 27 3.1.1 About Visual Data Capture........................................................................ 27 3.1.2 Image Capture under Linux ....................................................................... 30 3.2 Image File Format.............................................................................................. 37 3.2.1 PPM File Format....................................................................................... 38 3.2.2 JPEG File Format...................................................................................... 40 3.3 Conclusion ......................................................................................................... 45 4 System Integrity......................................................................................................... 47 4.1 Cross Compiler ................................................................................................... 47 4.2 Compile Our Program with Cross Compiler ...................................................... 48 5 Conclusion .................................................................................................................. 51 5.1 Experience with the Prototype ........................................................................... 51 5.2 Conclusion and Future Work.............................................................................. 52 Reference .......................................................................................................................... 55 Vita.................................................................................................................................... 56 i List of Figures Figure 1.1 The imagination scheme of a WPDICS....................................................................... 2 1.2 Head-wearing WPDICS............................................................................................... 2 1.3 Sharp Zaurus SL5600 .................................................................................................. 6 1.4 Terminal of Zaurus SL 5600........................................................................................ 7 2.1 Open and read sound device ....................................................................................... 10 2.2 Audio waveform under 8 bit, 8KH and mono ............................................................ 11 2.3 Audio waveform under 32bit, 44KH and stereo......................................................... 11 2.4 Sample code for setting sample .................................................................................. 12 2.5 binary data of a piece of silent audio .......................................................................... 14 2.6 binary data of a piece of “un-silent” audio ................................................................. 15 2.7 sample code for implementation of auto-pause .......................................................... 16 2.8 Sample code for writing a wave file header................................................................ 18 2.9 Sample of modifying file header................................................................................. 18 2.10 Audio File Size in Megabytes................................................................................... 20 2.11 Initialize the encoder................................................................................................. 22 2.12 Set encoder’s parameters .......................................................................................... 22 2.13 Set internal configurations ........................................................................................ 23 2.14 Sample code of function lame_encoder() ................................................................. 24 2.15 Sample code for encoding......................................................................................... 25 3.1 Scheme of image capture............................................................................................ 28 3.2 Image sensor chip ....................................................................................................... 29 3.3 Scheme of CCD with value of each photosite ............................................................ 29 3.4 Sample code of fixed device driver ............................................................................ 31 3.5 Sample code of opening video device ........................................................................ 31 3.6 Getting information from device ................................................................................ 32 3.7 160x120 dpi ................................................................................................................ 33 3.8 640x480 dpi ................................................................................................................ 33 3.9 Sample code of setting image capture window........................................................... 34 3.10 Test the capability of scaling .................................................................................... 34 3.11 Set the image’s properties......................................................................................... 35 3.12 Replacement value of depth and palette ................................................................... 35 3.13 Definition of palette .................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages62 Page
-
File Size-