Модель компьютерного зрения для распознавания коры на снимке поперечного распила дерева
А. А. Богомолов, Сухов Артем Сергеевич, М. М. Иготти et al. · Известия СПбЛТА · 2025
Целью работы является уточнение алгоритма бинаризации цифровых снимков поперечного распила круглых лесоматериалов для автоматизированной оценки доли коры, а также тестирование методики настройки его параметров. Программная реализация уточненного алгоритма и вычисления выполнены на языке Python, основные используемые функции реализованы в библиотеке OpenCV. Алгоритм бинаризации снимков, используемый при оценке доли коры, использует метод бинаризации по одинарному порогу. Настройки параметров метода выполнены для авторских снимков поперечных распилов круглых лесоматериалов. Для полученияэкспериментальных данных произведена съемка поперечного распила круглых лесоматериалов с различных ракурсов. В выборку, предназначенную для тестирования предлагаемого алгоритма и программного решения, вошли 130 снимков торцов диаметром 20 – 30 см; породы древесины – береза, ель, ольха. Съемка выполнена в зимних условиях, на заснеженном фоне при естественном освещении в отсутствие прямых солнечных лучей. Разрешение оригинальных снимков составляло 3024х4032 пикселей (72 dpi). Предложен алгоритм, который включает в себя настройку параметров метода бинаризации по одинарному порогу на основе информации о светочувствительности, уровне яркости снимка и числе экспозиции; обращение к методу выполняется дважды. Приведены эвристические зависимости для определения пороговых значений параметров метода для двух его итераций, выполняемых последовательно при отделении объекта от фона и дальнейшей сегментации коры на снимке. Приведены примеры результатов определения доли коры на снимках с неровным контуром и доминирующим фоном, с относительно ровным контуром поперечного распила на снимке, а также с частично обледенелой поверхностью распила с неровным контуром, и ссылка на репозиторий с экспериментальными снимками и программным решением, реализующим предлагаемый алгоритм. Тестирование методики настройки параметров и алгоритма с учетом различных характеристик снимка и объекта на нем показало, что решение позволяет получить удовлетворительные результаты. The aim of the study is refining the algorithm for binarization of digital images of cross-cut round timber for automated assessment of the bark ratio, as well as testing methodology for adjusting its parameters. The program implementation of the refined algorithm and calculations are performed in Python, the main functions used are implemented in the OpenCV library. The image binarization algorithm used to assess the bark ratio bases on the single threshold method. The method parameter settings are made for the author's images of cross-cut round timber. To obtain experimental data, cross-cut round timber was photographed from different angles. The sample intended for testing the proposed algorithm and software solution included 130 images of crosscut timber with a diameter of 20–30 cm; wood species – birch, spruce, alder. The photographing was performed in winter conditions, on a snow-covered background under natural light in the absence of direct sunlight. The resolution of the original images was 3024x4032 pixels (72 dpi). The algorithm proposed includes adjustment of the parameters of the single threshold binarization method basing on information about the photosensitivity, the brightness level of the image, and the exposure value; the method is called twice during the image processing. Heuristic dependencies are given for determining the threshold values of the single threshold method parameters for its two iterations performed sequentially when separating an object from the background and further segmenting the bark in the image. Examples of the results of determining the ratio of bark in images with an uneven contour and a dominant background, with a relatively smooth contour of a cross-cut in the image, as well as with a partially icy surface of a cut with an uneven contour, as well as a link to a repository with experimental images and the program solution implementing the proposed algorithm are given. Testing the method for adjusting the parameters and the algorithm taking into account various characteristics of the image and the object in it showed that the solution allows obtaining satisfactory results.
Cited by 0 works. doi:10.21266/2079-4304.2025.253.244-259 Open-access PDF
Authors
- Сухов Артем Сергеевич
- М. М. Иготти
- Молодых Елизавета Игоревна
- А В Андронов
- G S Taradin
- Т. В. Коваленко
- Egor Germanovich Khitrov
References
- An Improved YOLOv5 Algorithm for Wood Defect Detection Based on Attention
- Analysis of modern wood processing techniques in timber terminals
- Identifying and extracting bark key features of 42 tree species using convolutional neural networks and class activation mapping
- BPN-YOLO: A Novel Method for Wood Defect Detection Based on YOLOv7
- Tree bark re-identification using a deep-learning feature descriptor