Font Size: a A A

The Research And Implement Of Augmented Reality Game Based On Python

Posted on:2019-01-29Degree:MasterType:Thesis
Country:ChinaCandidate:Z WangFull Text:PDF
GTID:2348330569987588Subject:Engineering
Abstract/Summary:PDF Full Text Request
Augmented Reality(AR)is a new technology that expands the scope and capabilities of human perception by embedding virtual information seamlessly into the real scene.With the continuous development of relevant hardwares,softwares and theories,AR is becoming active in more and more fields.Because AR enables people to interact with surroundings,its application in game field has been a research hotspot.This paper accomplished the design and implementation of AR game.Firstly,taking a man-machine interaction game based on 3D balls as an example,the typical functions and performance requirements of AR game softwares are summarized,and then we proposed the overall design framework of AR game softwares which consists of three main parts: video input and processing,scene fusion and rendering,display and interaction.Then,in consideration of the high real-time performance requirement and high accuracy requirement of AR game,a new L-K optical flow algorithm is introduced as the core of the scene fusion part of AR game software.And related theory and simulation analysis have been conducted.The result shows that the method can match the target and the background pixels respectively in the process of tracking and recognition,reducing the background pixels' interference.Accordingly,the effect of tracking is improved.After that we completed outline design of the AR game software with UML.It mainly includes two parts,the domain model design(static)and the dynamic model design,which assists detailed programming of the software.The domain model mainly includes use case diagram and class diagram,the dynamic model mainly includes time sequence diagram and flowchart diagram of each function module.Next,this paper realized a prototype design of AR game software with 3D balls interactive function based on Python.This system is developed by PyGame toolkit,applying Maya for 3D modeling and rendering.We focus on the setup of development and runtime environment of AR game based on Python,the realization of scene fusion based on geometric consistency,and coding of the main classes in the above domain model.Finally,this paper introduced system testing and verification of the AR game prototype,mainly including the testing of core modules and performance testing of tracking module,and the overall time performance testing of the software.The result shows that the detection and tracking performance of the prototype is satisfied with fine geometric consistency and accurate occlusion relations between virtual and real.Also,the overall time performance of the prototype meets the requirements,and achieved good results.
Keywords/Search Tags:Augmented Reality, Game software, Python, UML
PDF Full Text Request
Related items