The application discloses a kind of external key point matching and tracking trajectory calculation method and device based on VGGT.The method comprises: loading configuration file and initializing model;Load external key point coordinates and carry out
standardization and quantity alignment;First, input image is converted into
tensor format, then image features are extracted, and finally L2 normalization is carried out;Depth
feature vector of external key point is extracted from feature map;Calculate
cosine similarity to evaluate matching quality;The average amplitude and standard deviation of
feature vector are calculated to evaluate feature quality, and the matching threshold is dynamically adjusted;The
coordinate difference of matching point is calculated to eliminate the matching that does not meet geometric constraint, and tracking trajectory is generated;Tracking quality analysis and
visualization are carried out.The matching success rate of the application is greatly improved, the false matching rate is obviously reduced, the time consumption of
processing image is obviously shortened, the efficiency is also greatly improved, the tracking stability is obviously improved under dynamic interference, and automatic high-precision inspection without manual intervention is realized.