Abstract:The Labview virtual platform,Matlab nodes and three-dimensional control are used to achieve calculation and processing of data and build three-dimensional scene. We calibrate camera accurately by Quantum Particle Swarm Optimization Algorithm, get discrete center by denoising and achieve three-dimensional coordinates by threedimensional matching, obtain a smooth curve by Gaussian fitting. According to fitting curve, we accomplish the build of virtual tennis scene, the running track playback of tennis and the judgement of whether tennis is out of line. By detecting that the system is a reasonable amount of computation and the determine correct rate is higher than 92%.