A computer program element and a device are provided for processing a 2D projection image generated during a procedure of fracture treatment of a bone. The computer program element comprises sets of instructions for detecting the reference body in the 2D projection image, detecting at least one element out of the group consisting of an instrument, an implant and an anatomical structure in the 2D projection image, and identifying a current state of the element, determining a state of progress of the procedure of fracture treatment, and providing information regarding steps to be performed next.