<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="ru"><front><journal-meta><journal-id journal-id-type="publisher-id">isplta</journal-id><journal-title-group><journal-title xml:lang="ru">Известия Санкт-Петербургской лесотехнической академии</journal-title><trans-title-group xml:lang="en"><trans-title>Izvestia Sankt-Peterburgskoj lesotehniceskoj akademii</trans-title></trans-title-group></journal-title-group><issn pub-type="ppub">2079-4304</issn><issn pub-type="epub">2658-5871</issn><publisher><publisher-name>СПбГЛТУ</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.21266/2079-4304.2025.253.244-259</article-id><article-id custom-type="elpub" pub-id-type="custom">isplta-517</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ДРЕВЕСИНОВЕДЕНИЕ, ТЕХНОЛОГИЯ И ОБОРУДОВАНИЕ ДЕРЕВОПЕРЕРАБОТКИ</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>WOOD SCIENCE. MECHANICAL WOODWORKING INDUSTRY</subject></subj-group></article-categories><title-group><article-title>Модель компьютерного зрения для распознавания коры на снимке поперечного распила дерева</article-title><trans-title-group xml:lang="en"><trans-title>Computer vision model for recognizing bark in a digital image of a tree cross-cut</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Богомолов</surname><given-names>А. А.</given-names></name><name name-style="western" xml:lang="en"><surname>Bogomolov</surname><given-names>A. A.</given-names></name></name-alternatives><bio xml:lang="ru"><p>БОГОМОЛОВ Александр Алексеевич – учебный мастер кафедры автоматизации, метрологии и управления в технических системах</p><p>194021, Институтский пер., д. 5, лит. У, Санкт-Петербург</p></bio><bio xml:lang="en"><p>BOGOMOLOV Aleksandr A. – engineer of the Department of Automation, Metrology and Management in Technical Systems</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p></bio><email xlink:type="simple">setalx@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0009-0002-2674-3884</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Сухов</surname><given-names>А. С.</given-names></name><name name-style="western" xml:lang="en"><surname>Sukhov</surname><given-names>A. S.</given-names></name></name-alternatives><bio xml:lang="ru"><p>СУХОВ Артем Сергеевич – магистрант научно-образовательного центра математики</p><p>197101, Кронверкский пр., д. 49, Санкт-Петербург</p></bio><bio xml:lang="en"><p>SUKHOV Artem S. – Master's student of the Scientific and Educational Center of Mathematics</p><p>197101. Kronverkskii av. 49. St. Petersburg</p></bio><email xlink:type="simple">sukhovtema@gmail.com</email><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Иготти</surname><given-names>М. М.</given-names></name><name name-style="western" xml:lang="en"><surname>Igotti</surname><given-names>M. M.</given-names></name></name-alternatives><bio xml:lang="ru"><p>ИГОТТИ Марта Михайловна – аспирант кафедры автоматизации, метрологии и управления в технических системах</p><p>194021, Институтский пер., д. 5, Санкт-Петербург</p></bio><bio xml:lang="en"><p>IGOTTI Marta M. – PhD student of the Department of Automation, Metrology and Management in Technical Systems</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p></bio><email xlink:type="simple">m.igotti@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Молодых</surname><given-names>Е. И.</given-names></name><name name-style="western" xml:lang="en"><surname>Molodykh</surname><given-names>E. I.</given-names></name></name-alternatives><bio xml:lang="ru"><p>МОЛОДЫХ Елизавета Игоревна – аспирант кафедры автоматизации, метрологии и управления в технических системах</p><p>194021, Институтский пер., д. 5, Санкт-Петербург</p></bio><bio xml:lang="en"><p>MOLODYKH Elizaveta I. – PhD student of the Department of Automation, Metrology and Management in Technical Systems</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p></bio><email xlink:type="simple">mmu49@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-1035-9231</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Андронов</surname><given-names>А. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Andronov</surname><given-names>A. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>АНДРОНОВ Александр Вячеславович – доцент кафедры лесного машиностроения, сервиса и ремонта, кандидат технических наук</p><p>194021, Институтский пер., д. 5, лит. У, Санкт-Петербург</p></bio><bio xml:lang="en"><p>ANDRONOV Aleksandr V. – PhD (Technical), Associate Professor of the Department of Forestry Machinery, Service and Repair</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p></bio><email xlink:type="simple">andronovalexandr@gmail.com</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Тарадин</surname><given-names>Г. С.</given-names></name><name name-style="western" xml:lang="en"><surname>Taradin</surname><given-names>G. S.</given-names></name></name-alternatives><bio xml:lang="ru"><p>ТАРАДИН Григорий Сергеевич – доцент кафедры лесного машиностроения, сервиса и ремонта, кандидат технических наук</p><p>194021, Институтский пер., д. 5, Санкт-Петербург</p></bio><bio xml:lang="en"><p>TARADIN Grigory S. – PhD (Technical), Associate Professor of Forestry engineering, service and repair department</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p></bio><email xlink:type="simple">grisha190@mail.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Коваленко</surname><given-names>Т. В.</given-names></name><name name-style="western" xml:lang="en"><surname>Kovalenko</surname><given-names>T. V.</given-names></name></name-alternatives><bio xml:lang="ru"><p>КОВАЛЕНКО Тарас Викторович – доцент кафедры промышленного транспорта, кандидат технических наук</p><p>194021, Институтский пер., д. 5, Санкт-Петербург</p><p>SCOPUS AuthorID: 211015</p></bio><bio xml:lang="en"><p>KOVALENKO Taras V. – PhD (Technical), Associate Professor of Industrial Transport Department</p><p>194021. Institutskiy per. 5. Let. U. St. Petersburg</p><p>SCOPUS AuthorID: 211015</p></bio><email xlink:type="simple">kovalenko.stl.spbftu@yandex.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0003-4569-9508</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Хитров</surname><given-names>Е. Г.</given-names></name><name name-style="western" xml:lang="en"><surname>Khitrov</surname><given-names>E. G.</given-names></name></name-alternatives><bio xml:lang="ru"><p>ХИТРОВ Егор Германович – доцент Высшей школы программной инженерии, доктор технических наук</p><p>195251, ул. Политехническая, д. 29, Санкт-Петербург</p></bio><bio xml:lang="en"><p>KHITROV Egor G. – DSc (Technical), Associate Professor of the Higher School of Software Engineering of Peter</p><p>195251. Politekhnicheskaya str. 29. St. Petersburg</p></bio><email xlink:type="simple">hitrov_eg@spbstu.ru</email><xref ref-type="aff" rid="aff-3"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>Санкт-Петербургский государственный лесотехнический университет имени С.М. Кирова</institution><country>Россия</country></aff><aff xml:lang="en"><institution>St.Petersburg State Forest Technical University</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-2"><aff xml:lang="ru"><institution>ФГАОУ ВО «Национальный исследовательский университет ИТМО»</institution><country>Россия</country></aff><aff xml:lang="en"><institution>National Research University ITMO</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-3"><aff xml:lang="ru"><institution>Санкт-Петербургский политехнический университет Петра Великого</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Great St. Petersburg Polytechnic University</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2025</year></pub-date><pub-date pub-type="epub"><day>23</day><month>06</month><year>2025</year></pub-date><volume>0</volume><issue>253</issue><fpage>244</fpage><lpage>259</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Богомолов А.А., Сухов А.С., Иготти М.М., Молодых Е.И., Андронов А.В., Тарадин Г.С., Коваленко Т.В., Хитров Е.Г., 2025</copyright-statement><copyright-year>2025</copyright-year><copyright-holder xml:lang="ru">Богомолов А.А., Сухов А.С., Иготти М.М., Молодых Е.И., Андронов А.В., Тарадин Г.С., Коваленко Т.В., Хитров Е.Г.</copyright-holder><copyright-holder xml:lang="en">Bogomolov A.A., Sukhov A.S., Igotti M.M., Molodykh E.I., Andronov A.V., Taradin G.S., Kovalenko T.V., Khitrov E.G.</copyright-holder><license xml:lang="ru" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>Данная работа распространяется под лицензией Creative Commons Attribution 4.0.</license-p></license><license xml:lang="en" license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://izvestiya-lta.spbftu.ru/jour/article/view/517">https://izvestiya-lta.spbftu.ru/jour/article/view/517</self-uri><abstract><p>Целью работы является уточнение алгоритма бинаризации цифровых снимков поперечного распила круглых лесоматериалов для автоматизированной оценки доли коры, а также тестирование методики настройки его параметров. Программная реализация уточненного алгоритма и вычисления выполнены на языке Python, основные используемые функции реализованы в библиотеке OpenCV. Алгоритм бинаризации снимков, используемый при оценке доли коры, использует метод бинаризации по одинарному порогу. Настройки параметров метода выполнены для авторских снимков поперечных распилов круглых лесоматериалов. Для полученияэкспериментальных данных произведена съемка поперечного распила круглых лесоматериалов с различных ракурсов. В выборку, предназначенную для тестирования предлагаемого алгоритма и программного решения, вошли 130 снимков торцов диаметром 20 – 30 см; породы древесины – береза, ель, ольха. Съемка выполнена в зимних условиях, на заснеженном фоне при естественном освещении в отсутствие прямых солнечных лучей. Разрешение оригинальных снимков составляло 3024х4032 пикселей (72 dpi). Предложен алгоритм, который включает в себя настройку параметров метода бинаризации по одинарному порогу на основе информации о светочувствительности, уровне яркости снимка и числе экспозиции; обращение к методу выполняется дважды. Приведены эвристические зависимости для определения пороговых значений параметров метода для двух его итераций, выполняемых последовательно при отделении объекта от фона и дальнейшей сегментации коры на снимке. Приведены примеры результатов определения доли коры на снимках с неровным контуром и доминирующим фоном, с относительно ровным контуром поперечного распила на снимке, а также с частично обледенелой поверхностью распила с неровным контуром, и ссылка на репозиторий с экспериментальными снимками и программным решением, реализующим предлагаемый алгоритм. Тестирование методики настройки параметров и алгоритма с учетом различных характеристик снимка и объекта на нем показало, что решение позволяет получить удовлетворительные результаты.</p></abstract><trans-abstract xml:lang="en"><p>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.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>библиотека OpenCV</kwd><kwd>метод одинарного порога</kwd><kwd>число экспозиции</kwd><kwd>сегментация изображения</kwd></kwd-group><kwd-group xml:lang="en"><kwd>OpenCV library</kwd><kwd>single threshold method</kwd><kwd>exposure value</kwd><kwd>image segmentation</kwd></kwd-group></article-meta></front><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Беляев Н.Л. Повышение точности цифрового учёта круглых лесоматериалов: дис. … канд. техн. наук. Петрозаводск: ПетрГУ, 2023. 163 с.</mixed-citation><mixed-citation xml:lang="en">Beliaev N.L. Povyshenie tochnosti tsifrovogo ucheta kruglykh lesomaterialov: Diss. … Candidate of Technical Sciences. Petrozavodsk: PetrSU, 2023. 163 p. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Богомолов А.А., Сухов А.С., Трубников А.В., Хитров Е.Г. Инструменты библиотеки OpenCV для выявления коры на торцевом снимке поперечного распила дерева // Современное программирование: матер. Междунар. науч.-практич. конф. Нижневартовск, 2024. С. 412–416.</mixed-citation><mixed-citation xml:lang="en">Bogomolov A.A., Sukhov A.S., Trubnikov A.V., Khitrov E.G. Instrumenty biblioteki OpenCV dlia vyiavleniia kory na tortsevom snimke poperechnogo raspila dereva. Sovremennoe programmirovanie: materialy mezhdunarodnoi nauchnoprakticheskoi konferentsii Nizhnevartovsk, 2024, pp. 412–416. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Богомолов А.А. Репозиторий программы для автоматического определения доли коры на цифровом снимке торца поперечного распила ствола дерева. 2025. URL: https://clck.ru/3LreKK</mixed-citation><mixed-citation xml:lang="en">Bogomolov A.A. Repozitorii programmy dlia avtomaticheskogo opredeleniia doli kory na tsifrovom snimke tortsa poperechnogo raspila stvola dereva, 2025. URL: https://clck.ru/3LreKK (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Han S., Jiang X., Wu Z. An Improved YOLOv5 Algorithm for Wood Defect Detection Based on Attention // IEEE Access. 2023. Vol. 11. P. 71800–71810. DOI: 10.1109/ACCESS.2023.3293864.</mixed-citation><mixed-citation xml:lang="en">Han S., Jiang X., Wu Z. An Improved YOLOv5 Algorithm for Wood Defect Detection Based on Attention. IEEE Access, 2023, vol. 11, pp. 71800–71810. DOI: 10.1109/ACCESS.2023.3293864.</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Kim T.K., Hong J., Ryu D., Kim S., Byeon S.Y., Huh W., Kim K., Baek G.H., Kim H.S. Identifying and extracting bark key features of 42 tree species using convolutional neural networks and class activation mapping // Sci Rep. 2022. Vol. 12. Art. no. 4772. DOI: 10.1038/s41598-022-08571-9.</mixed-citation><mixed-citation xml:lang="en">Kim T.K., Hong J., Ryu D., Kim S., Byeon S.Y., Huh W., Kim K., Baek G.H., Kim H.S. Identifying and extracting bark key features of 42 tree species using convolutional neural networks and class activation mapping. Sci Rep, 2022, vol. 12, art. no. 4772. DOI: 10.1038/s41598-022-08571-9.</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Kunickaya O., Pomiguev A., Kruchinin I., Storodubtseva T., Voronova A., Levushkin D., Borisov V., Ivanov V. Analysis of modern wood processing techniques in timber terminals // Central European Forestry Journal. 2022. Vol. 68(1). P. 51–59.</mixed-citation><mixed-citation xml:lang="en">Kunickaya O., Pomiguev A., Kruchinin I., Storodubtseva T., Voronova A., Levushkin D., Borisov V., Ivanov V. Analysis of modern wood processing techniques in timber terminals. Central European Forestry Journal, 2022, vol. 68(1), pp. 51–59.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Robert M., Dallaire P., Giguère Ph. Tree bark re-identification using a deeplearning feature descriptor // 17th Conference on Computer and Robot Vision (CRV). 2020. P. 25–32. DOI: 10.1109/CRV50864.2020.00012</mixed-citation><mixed-citation xml:lang="en">Robert M., Dallaire P., Giguère Ph. Tree bark re-identification using a deeplearning feature descriptor. 17th Conference on Computer and Robot Vision (CRV). 2020, pp. 25–32. DOI: 10.1109/CRV50864.2020.00012.</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Wang R., Chen Y., Liang F., Wang B., Mou X., Zhang G. BPN-YOLO: A Novel Method for Wood Defect Detection Based on YOLOv7 // Forests. 2024. Vol. 15, iss. 7. Art. no. 1096. DOI: 10.3390/f15071096.</mixed-citation><mixed-citation xml:lang="en">Wang R., Chen Y., Liang F., Wang B., Mou X., Zhang G. BPN-YOLO: A Novel Method for Wood Defect Detection Based on YOLOv7. Forests, 2024, vol. 15, iss. 7, art. no. 1096. DOI: 10.3390/f15071096.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
