An ophthalmic surgical tool has a marker positioned at a distal portion of the ophthalmic surgical tool. The distal portion of the ophthalmic surgical tool is inserted into an eye along with the marker to perform surgeries in the eye. An imaging device captures images of the fundus of the eye including the distal portion of the ophthalmic surgical tool. An image processor processes the captured images to identify and extract the marker from the captured images. The marker has a high-contrast feature in a visible light or infrared light range or other spectral ranges. Thus, the image processor may identify and extract the marker from the captured images. Indicators may be generated based on the marker and be overlaid with the captured or processed images of the fundus and displayed to a user to indicate surgical information to the user.