IntroductionDistal locking is a challenging and time-consuming step in interlocked intramedullary nailing of long bone fractures. Current methods have limitations in terms of simplicity, universality, accuracy, speed, and safety. We propose a novel device and software for distal locking using computer vision.Methods and materialsThe device consists of an universal ancillary clamp, a telescopic arm, a viewfinder clamp, and a radio-opaque cross. The software uses a camera photo from the C-arm intensifier and adjusts for geometric projection deformities. The software employs edge detection, Hough transform, perspective interpolation, and vector calculation algorithms to locate the distal hole center. The device and software were designed, manufactured, and tested using 3D CAD, FEM, DRR, and performance testing on phantom bones.ResultsThe device and software showed high accuracy and precision of 98.7% and 99.2% respectively in locating the distal hole center and calculating the correctional vector. The device and software also showed high success ratio in drilling the hole and inserting the screw. The device and software reduced the radiation exposure for the surgeon and the patient. The success ratio of the device and software was validated by the physical testing, which simulated the real clinical scenario of distal locking. The radiation exposure was as low as 5 s with a radiation dose of 0.2mSv, drastically reducing radiation exposure during distal locking.DiscussionOur device and software have several advantages over other distal locking methods, such as simplicity, universality, accuracy, speed, and safety. Our device and software also have some disadvantages, such as reliability and legislation. Our device and software can be compared with other distal locking methods based on these criteria. Our device and software have some limitations and challenges that need to be addressed in the future, such as clinical validation, and regulatory approval.ConclusionThe device showed promising results in terms of low-cost, reusability, low radiation exposure, high accuracy, fast distal locking, high stiffness, and adaptability. The device has several advantages over other distal locking techniques, such as free-hand technique, mechanical aiming devices, electromagnetic navigation systems, and computer-assisted systems. We believe that our device and software have the potential to revolutionize the distal locking technique and to improve the outcomes and quality of life of the patients with long bone fractures.