Infokommunikacionnye tehnologiiInfokommunikacionnye tehnologii2073-3909Povolzhskiy State University of Telecommunications and Informatics55842COUNTER-BASED FOREGROUND-BACKGROUND SEGMENTATION USING FORGRAYSCALE IMAGESDiyazitdinovR Rdicar2088@gmail.com1509201083768120122020Copyright © 2010, Diyazitdinov R.R.2010Railway level crossing crashes are one of the most serious safety issues faced by the rail system. We present a counter-based algorithm for foreground-background segmentation gray-scale images to improve the safety at railway level crossings.gray-scale imagesbackgroundforegroundedgeimage masksполутоновые изображенияфонпосторонний объектконтурные линииизображение-маска[Васин Н.Н., Баранов А.М. Обработка видеосигналов для идентификации объектов на железнодорожном переезде // Компьютерная оптика. Вып. 28, 2005. - С. 152-155.][Bradski G., Kaehler A. Learning OpenCV: Computer Vision with the OpenCV Library. 2008. - P. 287-292.][Bradski G., Kaehler A. Learning OpenCV: Computer Vision with the OpenCV Library. 2008. - P. 271-278.]