Abstract:Aiming at the problems of low accuracy, poor robustness and difficulty in meeting the performance requirements of edge computing equipment in turnout gap detection, a turnout gap detection method based on machine vision and edge and cloud collaboration is proposed; Using the YOLOv8 algorithm for efficient object detection of gaps and detection columns, and accurately obtaining edge information through image processing technology to calculate the offset of gaps; The experimental results show that this method exhibits superior detection performance under normal and camera shake conditions, with an average error controlled within 0.1mm, which meets the practical application in railway field engineering; The adoption of edge and cloud collaboration significantly improves data processing efficiency, optimizes resource utilization, and reduces dependence on a single computing node. The average processing time for a single transaction is 59.16ms, which is 48.99% lower than relying solely on edge devices.