Development of a Real-Time Detection System for Augmented Reality Driving

. Augmented reality technology is applied so that driving tests may be performed in various environments using a virtual reality scenariowiththeultimategoalofimprovingvisualandinteractiveeffectsofsimulateddrivers.Environmentalconditionssimulating arealscenarioarecreatedusinganaugmentedrealitystructure,whichguaranteesthetesttaker’ssecuritysincetheyarenotsubject toreal-lifeelementsanddangers.Furthermore,theaccuracyoftestsconductedthroughvirtualrealityisnotinfluencedbyeither environmentalorhumanfactors.DriverpostureiscapturedinrealtimeusingKinect’sdepthperceptionfunctionandthenapplied todrivingsimulationeffectsthatareemulatedbyUnity3D’sgamingtechnology.Subsequently,differentdrivingmodelsmaybe collectedthroughdifferentdrivers.Inthisresearch,nearlytrueandrealisticstreetenvironmentsaresimulatedtoevaluatedriver behavior.Avarietyofdifferentvisualeffectsareeasilyavailabletoeffectivelyreduceerrorrates,therebysignificantlyimproving testsecurityaswellasthereliabilityandrealityofthisproject.Differentsituationdesignsaresimulatedandevaluatedtoincrease developmentefficiencyandbuildmoresecurityverificationtestplatformsusingsuchtechnologyinconjunctionwithdrivingtests, vehiclefittings,environmentalfactors,andsoforth.


Introduction
The application of virtual reality to games that are available on computers or mobile phones is currently a very popular topic.Multiple cameras may be utilized to observe a user as that user simulates driving a vehicle.Moreover, to analyze the conditions of operating a vehicle, situation simulations (in addition to environmental factors and external variable conditions) may be employed to test the user's response, action changes, and so forth.Such simulations may even be a criterion for developing vehicle equipment and parts.User habits are obtainable through the direct operation of virtual reality.
The subject of this study is to apply a stereo vision system to a virtual reality system.A computer's vision system may be divided roughly into plane vision and stereo vision, which are different in their capabilities to estimate the depth information of target objects in an image (also referred to as "depth perception"); this division makes a computer vision system more practical.Some of its many practical applications include remote sensing and monitoring, medical image processing, robot vision systems, military reconnaissance, mineral exploration, and cartography.
In recent years, computer vision systems have made big advances in both the theory and algorithms of image processing as well as in practical applications.For example, a 3D stereo object in space may be captured as a 2D plane image by a charge-coupled device camera through image processing methods-such as image transforms, image enhancement, thresholding, filtering, edge detection, and thinning [1,2].That object may then be used as image information for applications of feature extraction, recognition, visual servicing, and so forth [2][3][4].Furthermore, advanced techniques have led to the development of 3D stereo vision systems.However, there are still many core technologies to be achieved before computer vision can be compared to human vision [5,6].
To perform tests in different environments using virtual reality scenarios and create a realistic feel, environmental conditions that simulate real scenarios must be created.Therefore, we employ Unity software to create virtual reality systems and then use those systems in conjunction with various scenarios.Our systems may subsequently be promoted for use to smart phone platforms.Using virtual reality for simulations is not only safe but also convenient.Furthermore, testing accuracy is not affected by environmental factors that may be induced by tests in the real world.

Research Method
This research uses streetscape, which is commonly used in driving, as the scenario.SketchUp software is used to model and map an entire city.After the model is drawn, it is imported to Unity to create a virtual reality interface.Other representative scenarios for testing will be created after discussion of this research to increase the accuracy and sufficiency of multidimensional data collection.
Figure 1 shows a picture an "augmented reality driver test system" is constructed.The functions of this platform include both virtual reality and augmented reality, making it one of the most complex human-computer cooperation machine systems.In the system, the interactive motion simulator allows the behavioral model of the driver to enter the virtual scenario and operate the vehicle with a steering wheel.Active and augmented reality technologies are integrated, and two different interactive models of augmented reality interactions are proposed to invite the driver to perform a practicality test for different emergency conditions.Several streetscape 3D models are established for the project.
Therefore, the project aims to provide unique, prior-todevelopment test operations for a driver behavior test.First, the driver is allowed to perform driving behavior analysis in an emulated environment for driver behavior testing that may also be used as a test platform for vehicle products.Second, virtual reality is used to derive new teaching and learning strategies; such a learning model may be applied although the operator has no prior computer experience.By allowing learners to be immersed in learning content through the use of virtual reality, drivers are allowed to apply information from the test to product development (see Table 1).

Real-Time Detection of Drivers Using Augmented Reality
3.1.Obtaining Gesture Trajectory Information.Kinect separates human hands from the background environment as a division strategy.OpenNI provides the API interface, that is, a multilinguistic and cross platform framework that is capable of communication with external hardware.Additionally, OpenNI includes an intermediate space for processing gesture recognition, tracking, and so forth.Currently, there are four types of hardware supported by OpenNI: 3DSensor, RGBCamera, IRCamera, and Audio Device.
Figure 2 shows a picture that was acquired with a Kinect sensor.First, the skin color is detected; then, the hands are deeply subdivided for separation into 2D and 3D.The hand model is created in 3D, including an appropriately arranged and assembled geometric primitive.Every hand gesture is represented by 27 vector points.With respect to estimation of the hand joints, 27 vector points are specified and tracked to minimize different hypotheses between hands and real observation of model parameters.To quantify such differences, the graphic rendering technology used generates similar skin and constructs depth mapping for given hands.Therefore, an appropriate objective function and a variance of PSO are both defined to obtain the optimal hand configuration.To output the result of such optimization, the hand joints are tracked with time continuity.

Facial Feature Analysis.
Real-time detection is also applied to facial recognition using Kinect's built-in SDK to create a facial recognition structure.The subsequent application incorporates this facial recognition structure into Unity to create an interactive function between the user and the virtual system (as shown in Figure 3).

Eye Recognition Analysis.
Eye recognition generally includes preprocessing, feature extraction, and sample learning and recognition.Many technologies and methods can be used for eye recognition, including the following.
(i) Projection: here, eye location is detected according to the projection distribution feature of a picture in a certain direction.Projection is a statistic method that utilizes the eye's gray-level information to detect the ordinate and abscissa of the pupil through horizontal and vertical projections to obtain an accurate position of human eyes.The most common projection functions are the integral, mean, and variance projection functions.
(ii) Hough transformation: Hough transformation transforms pictures from a spatial domain to a parameter space.Certain parameter forms satisfied by most boundary points are used to illustrate a curve in a picture.The pupil is regarded as a standard circle.We may locate the eye's pupil accurately using Hough transformation through the standard equation of a circle.The robustness of Hough transformation is enhanced considerably because of significant geometric analyticity: (iii) AdaBoost classification: in the machine-learning field, the AdaBoost algorithm is a high-efficiency, iterative computing algorithm that trains different weak classifiers for the same training set, followed by gathering these weak classifiers to construct a strong classifier.This algorithm is advantageous of its higher classification accuracy and rapid human eye recognition.However, the effectiveness of the algorithm depends on the selection of weak classifiers.It is very important for the application of rapid human eye detection.
(iv) Sample matching: the location of the pupil may be searched for dynamically from left to right and from up to down in a different picture window using a circle sample according to pupil shape.Sample matching searches for a small picture of interest within a larger picture.It identifies the location of the target with the most similar location as the matching point by calculating the similarity of the sample and matching zone.A sample matching algorithm exists within the scope of the machine-learning field and is an effective eye recognition algorithm.sequence  under the state at   and   = (  =   ),  = 1, 2, . . ., , which satisfies Σ  = 1  = 1;
The dynamic gesture trajectory feature selects and extracts dynamic gestures that are different from static gestures.For static gestures, the change is only on a spatial location and morphology, whereas, for dynamic gestures, the change relates to both time and space.The experiments show that human motion may be recognized only by motion information; therefore, gestures may be transformed into spatial motion trajectories for recognition.
The basic features of a gesture trajectory are location, speed, and angle.Speed is not practical for our use because there can be large differences in speed for the same gestures.The coordinate locations of points on a gesture trajectory curve may be significant features for gesture trajectory recognition; however, differences are still present even for the same gesture trajectories.Thus, there is a change in coordinate points.The change in the tangential angles of a gesture trajectory at different times is used as a trajectory feature.With Kinect, the sensor may acquire palm locations According to the obtained angle, a 12-direction chain code is used for discretization (see Figure 4).We then use the Unity software to create a virtual reality system in conjunction with using various scenarios to build virtual reality streets and scenarios.Real vehicle operation is simulated through virtual reality, and environmental (capability of simulating special weather, such as rain and snow) and human (e.g., a pedestrian crossing the road suddenly, appearance of an automobile or a motorcycle from a dead sector, or appearance of roadblock) variables are used as criteria for building the system.Furthermore, it is built according to potential sudden conditions in vehicle traveling in conjunction with human factor engineering design (see Table 2).
After the system is built, Unity3D applies the virtual reality scenario to augmented reality in combination with driver detection.The driver operation model is available from  the driving process of a scenario test, and the driver's posture and gaze angle may also be used as test criteria.
Presently, people's requirements of visual enjoyment are increasing with the development of 3D stereo vision (as shown in Figures 5 and 6).For people to perform the test in different environments using virtual reality scenarios and have a realistic feeling, environmental conditions simulating real scenarios may be created.Virtual reality simulation is not only safe but also convenient.Furthermore, the accuracy of tests conducted with virtual reality is not affected by environmental factors that may be induced by tests in the real world.

Conclusion
Streetscape is the main scenario of this study.3D drawing software is employed for modeling and mapping to draw the entire street and for building models.After all building models are drawn, they are imported to Unity to create a virtual reality interface.For greater accuracy and multidimensional data collection, a realistic streetscape is developed, complete with a variety of sudden conditions involving vehicles, pedestrians, roadblocks, and animals.Kinect is used to perform augmented reality effects and improve the system design for feedback regarding the operating behavior of the driver.New 3D technology and program design are utilized to construct lifelike road environments and traffic characteristics, including dynamic traffic flow and cross signal control.Planned future work for additional application is to research the interactions between people, vehicles, and roads; for example, suitable vehicles, road systems, and situations will be studied.Furthermore, both software and hardware will be updated to benefit from the increasing reality of simulated environments and for future extensibility of the driving simulation system.
In the project, a real streetscape is simulated, followed by an evaluation of driver behavior and vehicular products.A variety of different visual effects are easily available to effectively reduce error rates.Moreover, the reliability and reality of this project may be improved and the test security may be increased considerably.Different situation designs are simulated and evaluated to increase development efficiency and add more security verification test platforms using such technology in conjunction with driving tests, vehicle fittings, environment factors, and so forth.

Figure 5 :
Figure 5: Detection of the driver's real-time posture.

Table 1 :
Abstract table of illustrative statistics for different background variable items.

Table 2 :
Creation.The gesture trajectory recognition used in this study is based on the hidden Markov mode (HMM).Single factor variance analysis of individual aspect and entire aspect for different major use purposes with respect to the evaluation test system of improvement for vehicle virtual reality.