Tracking surgical pin
An example surgical pin configured to be installed in a bone of a patient includes a distal end; a shaft comprising a plurality of longitudinally spaced visually marked regions separated by non-marked regions; and a proximal end.
1. A method comprising:
obtaining, via one or more cameras of a visualization device, an image of a surgical field that depicts a surgical pin that includes one or more longitudinally spaced visually marked regions;
identifying, by one or more processors and in the image, locations of end points of each of the one or more marked regions;
determining, by the one or more processors and based on the identified locations of the end points in the image, a respective three-dimensional (3D) location of each respective end points of the end points of the one or more marked regions; and
determining, by the one or more processors and based on the determined 3D locations, a position and an orientation of the surgical pin within the surgical field.
2. The method of claim 1 , wherein obtaining the image comprises:
obtaining, via one or more RGB cameras of the visualization device, the image.
3. The method of claim 1 , wherein determining the respective 3D location of each respective end point comprises:
obtaining a pre-determined longitudinal length of the one or more marked regions; and
determining, based on the identified locations of the end points in the image and the longitudinal length of the one or more marked regions, the respective 3D location of each respective end point.
4. A computer-readable storage medium storing instructions that, when executed, cause one or more processors to:
obtain, via one or more cameras of a visualization device, an image of a surgical field that depicts a surgical pin that includes one or more longitudinally spaced visually marked regions;
identify, in the image, locations of end points of each of the one or more marked regions;
determine, based on the identified locations of the end points in the image, a respective three-dimensional (3D) location of each respective end points of the end points of the one or more marked regions; and
determine, by the one or more processors and based on the determined 3D locations, a position and an orientation of the surgical pin within the surgical field.