The Research of User Scripts and Its Application in Embedded Machine Vision

Author
ZhaoJie
Advisor
BaiRuiLin
School
Jiangnan University
Major
Pattern Recognition and Intelligent Systems
Classification
TP391.41 Image recognition device
Degree
Master's thesis
Year
2011
Downloads
18
Citations
1

Request the full text

Abstract

Application of embedded machine vision into automatic industrialization production plays an important role in improving the intelligence, efficiency and precision of industrial equipments. However, the traditional embedded machine vision system is obviously deficient in process logic controlling, dynamic configuration and remote debugging considering its single script or script blank. Compared with traditional single model, a more appropriate user script which can satisfy industrial need is urgently needed to improve the flexibility and functioning of machine vision.Basing on the in-depth researching of embedded machine vision, combining with the embedded techniques as well as script integrity, virtual machine and network communication, with the DSP DM642 as main control chip, the present study designed and applied componential and cuttable virtual machine as the execution environment of user script.This paper elaborated on the design ideas as well as process regarding the main function module of virtual machine from three aspects including the overall design of virtual machine, portable layer development and functional test. The virtual machine is composed of class loader, interpreter, constant pool resolution, method area, memory management, native interface, run-time environment, and functions-supporting data structure. And embedded virtual machine optimized for the current performance is not an ideal situation, the mechanism from the aspects of the implementation of the virtual machine with a constant pool of early analysis, the method table generation, function table optimization, optimization of the operand stack of virtual machine technology to improve operating efficiency.The continuous internet of things, the virtual machine is widely applied in the embedded system, but less portable virtual machines existing shortcomings limit the application of different terminal equipment. To improve the portability of virtual machine, developed a portable layer which achieve function integration by abstracting the same API together from different platforms. Portability layer combined with the various components of the modules, users can achieve the migration of virtual machine with definitions of several macros relating with platform to adapt different underling systems.Through the native interface of virtual machine, the execution performance of virtual machine is improving. Based on analysis on key technologies of virtual machine and the implementation and optimization each software module in embedded PC and underlying platform, the results meet the requirements of project design in terms of functionality and real-time perspective. According to the experiment, the average single-byte code execution time of virtual machine is 0.12μs, and both of the CPU load and memory loss are within the normal range.

Table of contents

Abstract 3-4 Abstract 4-7 The first chapter 7-13 1.1 research background 7 1.2 user scripts status 7-8 1.3 Java user scripts 8 1.4 Java Virtual Machine Status and Development Trend 8-10 1.4.1 enterprise applications 9 1.4.2 move onto the road 9 1.4.3 Desktop regained positions 9 1.4.4 seize the embedded field 9-10 1.4.5 Virtual machines can be tailored application prospects 10 1.5 main research contents and organization 10-13 1.5.1 main contents 10-11 1.5.2 papers organizational structure 11-13 Chapter embedded machine vision user scripts overall framework designed 13-21 2.1 user scripts frame design 13-16 2.1.1 Traditional machine vision implementation mechanisms 13-14 2.1.2 Machine Vision improved enforcement mechanisms 14-16 2.2 user script execution environment 16-18 2.2.1 script execution environment - a virtual machine 16-17 2.2.2 Virtual machines can cut 17-18 2.2.3 Virtual machines can be tailored structure 18 2.3 Chapter Summary 18-21 Chapter Virtual machines can cut research and development 21-37 3.1 Virtual machines can be tailored enforcement mechanisms 21 3.2 Initialization 21-22 3.3 CRC checksum 22 3.4 dynamic class loading 22-26 3.4.1 object's internal representation 23-24 3.4.2 parsing constant pool 24-25 3.4.3 Method Table 25-26 3.5 memory management 26-30 3.5.1 memory structures 27 3.5.2 Memory Allocation 27-29 3.5.3 memory consolidation 29-30 3.6 run-time stack 30-31 3.7 Execution Engine 31-32 3.8 dynamic array 32 3.9 Native Method 32-33 3.10 interpreter 33-35 3.10.1 traditional interpretation of optimization 33 3.10.2 improved interpreter 33-35 3.11 operand stack optimization 35 3.12 Summary 35-37 Chapter VM portability layer 37-43 4.1 portability layer framework 37-38 4.2 portability layer model 38 4.3 data types 38-39 4.4 instance access 39-41 4.4.1 Network 39-40 4.4.2 Memory 40 4.4.3 thread 40-41 4.5 macro 41-42 4.6 Chapter Summary 42-43 Chapter V virtual machine embedded machine vision test 43-49 5.1 portability layer test 43-44 5.1.1 CPU load testing 43 5.1.2 Memory Test 43-44 5.1.3 bytecode execution time and test 44 5.2 user script example test 44-46 5.3 remote configuration 46-47 5.4 Summary 47-49 Chapter Summary and Outlook 49-51 6.1 Summary 49 6.2 Prospects 49-51 Thanks 51-53 References 53-57 Appendix A master's degree papers and participation during project 57-58 Appendix B dynamic array interface function 58-60 Appendix C of the module interface function 60

Related dissertations

  1. Research on Performance Monitoring Technique of Cluster Management of the Virtual System
    WangXiaoJuan ·Xi'an University of Petroleum ·2013 ·Master's thesis
  2. Design and Implementation of Terminal for Snowflakes Beef Carcass Quality Measurement System Based on Embedded and Machine Vision
    LiuChaoChao ·Nanjing Agricultural College ·2011 ·Master's thesis
  3. The Construction Research of Surface Defects Inspecting System for Small Pipes
    HanWenQiang ·Tianjin University ·2012 ·Master's thesis
  4. Research on Surface Defects Visual Inspection System for Metal Components
    NieZhenYu ·Central South University ·2013 ·Master's thesis
  5. Special Welding Robot Control and Related Visual Function Studies
    LiuYinXiao ·Zhejiang University ·2014 ·Master's thesis
  6. Study on Information Acquisition and Vision Servo Control Method for Agricultural Robot in Natural Environment
    ZhangChunLong ·China Agricultural University ·2014 ·Doctoral dissertation
  7. Development and Application of the Omni-Directional Tilt Sensor Base on Machine Vision
    ChenCaiGuo ·Zhejiang University of Technology ·2013 ·Master's thesis
  8. Research of the Absolute Angular Position Sensor Based on Machine Vision
    ZhangJing ·Beijing Jiaotong University ·2014 ·Master's thesis
  9. Research about the Accuracy of Interaction Based on Machine Vision in Gesture Interaction
    YouLiZuo ·South China University of Technology ·2013 ·Master's thesis
  10. Research on Attacks and Prevention Technology Based on ARP and PPPoE
    ZhangWen ·Sichuan Normal University ·2013 ·Master's thesis
  11. Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
  12. Research and Application of Subpixel Edge Detection in Machine Vision
    FangHangHang ·Northeastern University ·2011 ·Master's thesis
  13. Research on Obstacle Avoidance Smart Car Sytem Based on Machine Vision
    YiLiZhi ·Central South University ·2012 ·Master's thesis
  14. Research on Defect Detection of Printed Matter Based on Image Processing
    LiuHaiJuan ·Harbin Institute of Technology ·2012 ·Master's thesis
  15. Lane Departure Warning System Design Based on the FPGA
    WangRenZhi ·Hebei University of Technology ·2012 ·Master's thesis
  16. Aircraft Skin Damage Detection Based on the Information Fusion of Machine Vision and Ultrasonic Sensor
  17. Research on Image Matching for IC Packaging Equipment
  18. Research on Algorithms of Glass Bottles On-line Inspection Based on Machine Vision and System Implementation
  19. Research on Technology of Machine Vision Inspection and Locating for IC Manufacturing Equipment
  20. Aircraft Skin Damage Detection and Life Cycle Analysis Method Based on Machine Vision