A system for directing the operation of an intervention of extraction or implantation of a hair graft, comprising: an interface adapted to receive image data containing images of a body surface; and a processor (225) comprising a set of instructions for executing operations, where the set of instructions includes instructions for: registering first positions of a plurality of markers (320, 405, 605) that appear in one or more images of body surface; the updating and recording of the updated positions of at least part of the plurality of the markers (320, 405, 605) in one or more updated images of the body surface; the determination of a shift of the updated positions of the at least part of the plurality of the markers (320, 405, 605) with respect to their first positions; characterized in that the instruction set includes instructions for: selecting a new site for extraction or implantation of follicular units in which to perform the intervention of extraction or implantation of a capillary graft based at least in part on the determined displacement and position of a previous intervention site; and instructing a tool (210) to move to the new extraction site or implant selected from follicular units to perform the intervention of extraction or implantation of a hair graft.Un sistema para dirigir el funcionamiento de una intervención de extracción o implante de un injerto capilar, que comprende: una interfaz adaptada para recibir datos de imagen que contienen imágenes de una superficie del cuerpo; y un procesador (225) que comprende un conjunto de instrucciones para ejecutar operaciones, donde el conjunto de instrucciones incluye instrucciones para: el registro de primeras posiciones de una pluralidad de marcadores (320, 405, 605) que aparecen en una o más imágenes de la superficie del cuerpo; la actualización y registro de las posiciones actualizadas de al menos parte de la pluralidad de los marcadores (320, 405, 605) en una o más imágenes actualizadas de la superfi