The aim of the work is to develop an automated measuring system in a mechanical gyrocompass with the help of specially developed hardware and software in order to facilitate the operation of the device and minimize observer errors. The developed complex provides automation only for the time method, as for the method of the turning point it is necessary to constantly contact the motion screw of the total station. The project is based on an integrated system, the hardware part of which contains a single-board computer, camera, and lens. The main software is a developed motion recognition algorithm with the help of image processing. This algorithm was created using the Python programming language and the open-source computer vision library OpenCV. With the help of the hardware, a video image of the gyroscope's reference scale is obtained, and with the help of the software, the moving light indicator and its position relative to the scale are identified in this image. The result of the study is a functioning automatic measurement system, which determines the value of the azimuth of the direction with the same accuracy as manual measurements. The system is controlled remotely via a computer and wi-fi network. To test the system, a series of automatic and manual measurements were performed simultaneously at the same point for the same direction. Based on the results obtained, it can be stated that the accuracy of the system is within the limits specified by the manufacturer of the device for manual measurements. The application of computer vision technology, namely the tracking of a moving object in the image for gyroscopic measurements can give a significant impetus to the development of automation systems for a wide range of measuring instruments, which in turn can improve the accuracy of measurement results. The developed system can be used together with the Gyromax AK-2M gyrocompass of GeoMessTechnik for carrying out automated measurements, training of new operators. With the help of the developed model, it is possible to avoid gross errors of the observer, to facilitate the measurement process which will not demand the constant presence of the operator near the device. In some dangerous conditions, this is a significant advantage.