KR101564394B1 - Method and recording medium for day and night recognition of input image - Google Patents

Method and recording medium for day and night recognition of input image

Info

Publication number
KR101564394B1
KR101564394B1 KR1020130163687A KR20130163687A KR101564394B1 KR 101564394 B1 KR101564394 B1 KR 101564394B1 KR 1020130163687 A KR1020130163687 A KR 1020130163687A KR 20130163687 A KR20130163687 A KR 20130163687A KR 101564394 B1 KR101564394 B1 KR 101564394B1
Authority
KR
South Korea
Prior art keywords
roi
rate
nighttime
input image
area
Prior art date
Application number
KR1020130163687A
Other languages
Korean (ko)
Other versions
KR20150075586A (en
Inventor
문창기
Original Assignee
모본주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 모본주식회사 filed Critical 모본주식회사
Priority to KR1020130163687A priority Critical patent/KR101564394B1/en
Publication of KR20150075586A publication Critical patent/KR20150075586A/en
Application granted granted Critical
Publication of KR101564394B1 publication Critical patent/KR101564394B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/37Determination of transform parameters for the alignment of images, i.e. image registration using transform domain methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

본 발명은 차량이 주행하는 다양한 도로 및 주변 환경에 상관없이, 단일 카메라로부터 입력되는 영상에서 주간 및 야간 상태를 정확히 판별할 수 있는 입력영상의 주간 및 야간 인식 방법 및 그 기록 매체에 관한 것이다.
본 발명에 따른 입력영상의 주간 및 야간 인식 방법 및 그 기록 매체는 소정의 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 입력 영상의 주간 및 야간을 판별하는 방법을 제공한다.
The present invention relates to a daytime and nighttime recognition method of an input image and a recording medium thereof, which can accurately identify daytime and nighttime conditions in an image input from a single camera regardless of various roads and surrounding environments on which a vehicle runs.
The method of recognizing day and night of an input image according to the present invention and a recording medium thereof are a method of discriminating day and night of an input image using frequency of occurrence of pixels corresponding to brightness values within a predetermined brightness brightness value range to provide.

Description

입력영상의 주간 및 야간 인식 방법 및 그 기록 매체{METHOD AND RECORDING MEDIUM FOR DAY AND NIGHT RECOGNITION OF INPUT IMAGE}BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for recognizing a day and night of an input image,

본 발명은 입력 영상의 주간 및 야간 인식 방법 및 그 기록 매체에 관한 것으로서, 보다 상세하게는 이미지 센서를 활용한 영상 인식 기반 시스템에 있어서, 주행 중인 도로 환경을 분석하여 현재 주행 환경이 주간 또는 야간 환경인지의 여부를 판단할 수 있고, 이에 따라 객체 인식을 위한 판단 정보를 보다 정확히 제공할 수 있도록 하는 입력영상의 주간 및 야간 인식 방법 및 그 기록 매체에 관한 것이다.
The present invention relates to a daytime and nighttime recognition method of an input image and a recording medium thereof, and more particularly, to an image recognition system using an image sensor, The present invention relates to a day and night recognition method of an input image, and a recording medium thereof, which enable judging whether or not an object is recognized, thereby providing judgment information for object recognition more accurately.

전방 추돌 경고(Forward Collision Warning) 시스템, 차선 이탈 경고(Lane Departure Warning) 시스템 등과 같은 카메라 기반 운전 보조 시스템은 카메라로부터 취득된 영상 분석을 기반으로 동작하며, 주간 및 야간 상태에 따라 차선 및 차량의 모습이 다르며 이들로부터 추출할 수 있는 영상의 특징(feature) 정보가 다르기 때문에 이러한 상황에 적응적으로 객체를 인식하기 위해서는 자동으로 주간 및 야간을 구별하여 인식할 수 있는 시스템의 개발이 필요하다.A camera-based driving assistance system, such as a Forward Collision Warning system and a Lane Departure Warning system, operates based on the image analysis obtained from the camera and displays the lane and vehicle appearance It is necessary to develop a system capable of recognizing the daytime and nighttime automatically in order to adaptively recognize the object in such a situation.

영상에서 주간 및 야간 상태를 인식하기 위해 사용할 수 있는 종래 방법은 다음의 수학식 10을 이용하여 영상의 상단 하늘 영역에 대한 통계적인 평균 밝기 정보를 분석하는 것이 있었다.A conventional method that can be used to recognize daytime and nighttime conditions in an image is to analyze statistical average brightness information for an upper sky region of an image using Equation (10).

<수학식 10>&Quot; (10) &quot;

Figure 112013118831987-pat00001
Figure 112013118831987-pat00001

영상의 상단 하늘 영역은 주간 상태에는 상당히 높은 명암도(Gray Level) 밝기를 가지며, 야간 상태에는 상당히 낮은 명암도 밝기를 가진다. 따라서 평균 밝기값 m이 일정한 임계값 이상인 경우에는 주간으로, 미만인 경우에는 야간으로 판단하여 쉽게 주간 및 야간 상태를 인식할 수 있다. The upper sky area of the image has a fairly high brightness level in the daytime state and a very low brightness level in the nighttime state. Therefore, when the average brightness value m is equal to or greater than a predetermined threshold value, the daytime and nighttime states can be easily recognized by judging to be the daytime and when the average brightness value m is less than the predetermined threshold value, the nighttime.

그러나, 실제적인 주간 및 야간의 도로 주행 환경은 이상적인 장면(scene)만 나타나는 것은 아니며, 차량이 주행하는 다양한 도로 및 주변 환경에 따라 상단 하늘 영역에서 나타나는 명암도 밝기의 패턴은 다양하게 나타날 수 있다. However, actual daytime and nighttime road driving environments do not necessarily represent ideal scenes, and various patterns of lightness and brightness appearing in the upper sky region may vary depending on various roads and surrounding environments on which the vehicle travels.

예컨대, 주간 고속도로 주행 시 고가도로로 인해 상단 하늘 영역이 어두운 경우, 주간 시내도로 주행 시 가로수로 인해 상단 하늘 영역이 어두운 경우, 주간 고속도로 진입 시 산과 같은 자연 풍경으로 인해 상단 하늘 영역이 어두운 경우, 야간 골목도로 주행 시 상가 간판이 밝기 때문에 상단 하늘 영역이 비교적 밝은 경우, 야간 시골도로 주행 시 신호등 및 가로등 불빛의 번짐으로 인해 상단 하늘 영역이 비교적 밝은 경우와 같이, 주간 및 야간의 다양한 도로 주행 상황에서는 단순하게 수학식 10의 평균 밝기 정보를 이용하여 주간 상태와 야간 상태를 정확히 인식하는 것은 불가능한 한계가 있었다.
For example, when the upper sky area is dark due to the overpass during the interstate highway, when the road is running in the city during the daytime, the upper sky area is dark due to the roadside trees, when the interstate highway is entered, Since the signboard is bright when traveling on the road, when the upper sky area is relatively bright, and when the traffic light and the street light are blurred during the nighttime driving on the country road, the upper sky area is relatively bright. There is a limitation that it is impossible to accurately recognize the daytime state and the nighttime state by using the average brightness information of Equation (10).

본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, 본 발 명의 목적은 차량이 주행하는 다양한 도로 및 주변 환경에 상관없이, 단일 카메라로부터 입력되는 영상에서 주간 및 야간 상태를 정확히 판별할 수 있는 입력영상의 주간 및 야간 인식 방법 및 그 기록 매체를 제공하는 것이다.
SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-mentioned problems, and it is an object of the present invention to provide an image display apparatus and a display method thereof that can accurately identify daytime and nighttime conditions in an image input from a single camera, A day and night recognition method of an input image, and a recording medium therefor.

상기 목적을 달성하기 위한 본 발명에 따른 입력영상의 주간 및 야간 인식 방법은, 하늘 영역과 지상 영역을 포함하고 있는 영상을 입력받는 제1 단계와; 상기 입력 영상에서 적어도 상기 하늘 영역을 포함하는 영역을 제1 관심영역으로 설정하는 제2 단계와; 제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하는 제3 단계와; 상기 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교하는 제4 단계와; 상기 제4 단계의 비교결과 상기 제1 관심영역의 주간 비율이 상기 제1 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 상기 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하는 제5 단계; 및 상기 제5 단계의 비교결과 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 클 경우 상기 입력 영상을 야간 상태로 인식하는 제6 단계를 포함하는 것을 특징으로 한다.
According to an aspect of the present invention, there is provided a method of recognizing day and night of an input image, the method including: a first step of receiving an image including a sky area and a terrestrial area; A second step of setting an area including at least the sky area in the input image as a first area of interest; Calculating a weekly rate of the first ROI by using the frequency of occurrence of pixels corresponding to the respective BRI values within the first brightness level value range, and calculating a weekly ratio of the pixels corresponding to the brightness values within the second brightness level range, A third step of calculating a nighttime rate of the first ROI using the frequency of occurrence of the first ROI; A fourth step of comparing the calculated weekly rate of the first ROI with a predetermined first threshold; If the daytime rate of the first area of interest is greater than the first threshold value as a result of the comparison in the fourth step, recognizes the input image as a daytime state, and if the ratio is smaller than the first threshold value, A fifth step of comparing the threshold value with a threshold value; And a sixth step of recognizing the input image as a night scene when the nighttime ratio of the first ROI is greater than the second threshold as a result of the comparison of the fifth step.

본 발명에 따른 입력영상의 주간 및 야간 인식 방법에 의하면, 다양한 도로 주행 환경을 고려하여 다양한 선택적 단계를 적응적으로 적용함으로써 일반적인 주간 및 야간 환경뿐만 아니라, 주간 및 야간 상태의 인식이 어려운 환경들에 대해서도 정상적인 인식이 가능하게 되었다.
According to the day and night recognition method of the input image according to the present invention, various optional steps are adaptively applied in consideration of various road driving environments, so that not only general daytime and nighttime environments but also daytime and nighttime conditions are difficult to recognize It is now possible to recognize normal.

도 1은 본 발명에 따른 입력영상의 주간 및 야간 인식 방법의 처리 흐름을 도시한 블록 순서도.
도 2는 본 발명에 따라 분할된 하늘 영역과 지상 영역의 일례.
도 3은 본 발명의 평균 보간법을 이용한 입력 영상 크기 축소 단계를 설명하기 위한 일례.
도 4는 본 발명에 따라 인식된 주간 상태(좌측) 및 제1 관심영역(우상측)에 대한 히스토그램(우하측)을 나타낸 일례.
도 5는 본 발명에 따라 인식된 야간 상태(좌측) 및 제1 관심영역(우상측)에 대한 히스토그램(우하측)을 나타낸 일례.
도 6은 본 발명에 따라 인식된 우천 주행시의 주간 상태 및 제1 관심영역에 대한 히스토그램을 나타낸 일례.
도 7은 본 발명에 따라 인식된 터널 진입시의 주간 상태 및 제1 관심영역에 대한 히스토그램을 나타낸 일례.
도 8은 본 발명에 따라 인식된 고가다리 출현시의 주간 상태 및 제1 관심영역에 대한 히스토그램을 나타낸 일례.
도 9는 주간 일반 도로 영역의 히스토그램(좌측) 및 그림자 도로 영역의 히스토그램(우측)을 나타낸 일례.
도 10은 야간 차량 도로 영역의 히스토그램(좌측) 및 비차량 도로 영역의 히스토그램(우측)을 나타낸 일례.
도 11은 본 발명에 따라 인식된 주간 상태(좌측) 및 제2 관심영역(우하측)에 대한 히스토그램(우상측)을 나타낸 일례.
도 12는 본 발명에 따라 인식된 야간 상태(좌측) 및 제2 관심영역(우하측)에 대한 히스토그램(우상측)을 나타낸 일례.
1 is a block flow diagram illustrating a process flow of a day and night recognition method of an input image according to the present invention.
2 is an example of a sky area and a ground area divided according to the present invention;
3 is an example for explaining an input image size reduction step using the average interpolation method of the present invention.
4 is an example showing a histogram (right lower side) for the daytime state (left side) and the first ROI (upper right side) recognized according to the present invention.
5 is an example showing a histogram (lower right) for the nighttime state (left side) and the first ROI (upper right side) recognized according to the present invention.
6 is an example showing a histogram of the first state of interest and the daytime state at the time of the rainy day running recognized according to the present invention.
FIG. 7 is an example showing a histogram of a first state of interest and a daytime state at the time of entering a tunnel recognized according to the present invention;
FIG. 8 is an example showing a histogram of a first state of interest and a daytime state at the time of appearance of a leg with a high leg recognized according to the present invention.
9 is an example showing a histogram (left side) of a daytime general road area and a histogram (right side) of a shadow road area.
10 is an example showing a histogram (left side) of a nighttime vehicle road region and a histogram (right side) of a non-vehicle road region.
11 is an example showing a histogram (upper right side) for the daytime state (left side) and the second attention area (lower right side) recognized according to the present invention.
12 is an example showing a histogram (upper right side) for the nighttime state (left side) and the second attention area (lower right side) recognized according to the present invention.

본 명세서에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

또한, 본 명세서에서 제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. Furthermore, although the terms first, second, etc. may be used herein to describe various components, the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.

이하에서, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예, 장점 및 특징에 대하여 상세히 설명하도록 한다.In the following, preferred embodiments, advantages and features of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명에 따른 입력영상의 주간 및 야간 인식 방법의 처리 흐름을 도시한 블록 순서도이다.1 is a block flow diagram illustrating a process flow of a day and night recognition method of an input image according to the present invention.

도 1을 참조하면, 본 발명의 입력영상의 주간 및 야간 인식 방법은 영상 입력 단계(단계 1)와, 하늘 영역을 제1 관심영역으로 설정하는 단계(단계 2)와, 명암도 밝기값을 이용하여 제1 관심영역의 주간 비율과 야간 비율을 산출하는 단계(단계 3)와, 제1 관심영역의 주간 비율과 제1 임계값을 비교하는 단계(단계 4)와, 단계 4의 비교 결과에 따라, 해당 입력 영상을 주간으로 인식하거나 또는 제1 관심영역의 야간 비율과 제2 임계값을 비교하는 단계(단계 5)와, 단계 5의 비교 결과에 따른 야간 인식 단계(단계 6)를 포함하여 구성되는 것을 특징으로 한다.Referring to FIG. 1, a day and night recognition method of an input image according to the present invention includes an image input step (step 1), a step of setting a sky area as a first ROI (step 2) (Step 3) of calculating a daytime rate and a nighttime rate of the first ROI, comparing the weekly rate of the first ROI with the first threshold (step 4), and comparing the result of step 4 with the first threshold, (Step 5) of recognizing the input image as a daytime or comparing a nighttime ratio of the first ROI with a second threshold value, and a night recognition step according to the comparison result of step 5 (step 6) .

본 발명의 단계 2는 지상 영역을 제2 관심영역으로 설정하는 단계를 더 포함할 수 있고, 상기 단계 6은 단계 5의 비교 결과에 따라 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하는 단계 더 포함할 수 있다.Step 2 of the present invention may further comprise setting the terrestrial region as a second ROI, wherein the step 6 calculates a difference value between the weekly rate and the nighttime rate of the first ROI according to the comparison result of Step 5 .

상기 경우, 본 발명의 입력영상의 주간 및 야간 인식 방법은 제6 단계의 차이값을 기설정된 제3 임계값과 비교하는 단계(단계 7)와, 상기 단계 6의 차이값에 따라, 제2 관심영역의 주간 비율과 야간 비율을 산출하거나 또는 제1 관심영역의 무질서도를 산출하는 단계(단계 8)를 더 포함할 수 있다.In the above case, the method of recognizing day and night of the input image according to the present invention may further comprise a step (step 7) of comparing the difference value of the sixth step with a predetermined third threshold value, Calculating the weekly and nighttime ratio of the region, or calculating the degree of the disorder of the first region of interest (Step 8).

그리고, 단계 8에서 무질서도를 산출할 경우, 산출된 무질서도와 제4 임계값을 비교하는 단계(단계 8b)와, 단계 8b의 비교 결과에 따라 주간 인식 또는 야간 인식을 판단하는 단계(단계 9b)를 더 포함할 수 있다.(Step 8b) of comparing the calculated disorder and the fourth threshold value in step 8, and step 9b of judging the daytime recognition or the nighttime recognition according to the comparison result of step 8b, As shown in FIG.

그리고, 단계 8에서 제2 관심영역의 주간 비율과 야간 비율을 산출할 경우, 이를 상호 비교하는 단계(단계 8a)와, 단계8a의 비교 결과에 따라 주간 인식 또는 야간 인식을 판단하는 단계(단계 9a)를 더 포함할 수 있다.If the weekly rate and the nighttime rate of the second area of interest are calculated in step 8, the step of comparing the weekly rate and the nighttime rate is performed (step 8a). In step 8a, ).

또한, 바람직하게는 단계 1과 단계 2 사이에는 단계 1의 입력 영상을 축소하는 단계(단계 1-1)를 더 포함할 수 있다.Further, preferably, between step 1 and step 2, a step of reducing the input image of step 1 (step 1-1) may be further included.

이하에서는 각 단계에 따른 바람직한 실시예를 들어 보다 구체적으로 설명하도록 한다.Hereinafter, preferred embodiments according to the respective steps will be described in more detail.

<단계 1><Step 1>

본 발명의 단계 1은 본 발명의 특히 차량에 설치된 카메라가 전방의 전경을 촬상하고, 이렇게 촬영된 전방 영상을 입력받는 단계이다. 따라서, 입력 영상에는 도로, 도로 상의 건물 내지 자동차를 포함하는 지상 영역과, 하늘에 해당하는 하늘 영역이 함께 표시되어 있게 된다.Step 1 of the present invention is a step in which the camera installed in the vehicle of the present invention picks up the foreground of the front and receives the captured forward image. Therefore, the input image is displayed together with a ground area including a road, a building on the road or a car, and a sky area corresponding to the sky.

<단계 2><Step 2>

본 발명의 단계 2는 입력 영상(10)에 함계 표현되어 있는 하늘 영역과 지상 영역을 분할하고, 하늘 영역을 제1 관심영역(11)으로 설정하도록 구성된다.Step 2 of the present invention is configured to divide the sky area and the ground area represented in the input image 10 and set the sky area as the first area of interest 11.

도 2는 본 발명의 단계 2에 따라 분할된 하늘 영역과 지상 영역의 일례이다. 도 2를 참조하면, 단계 1의 미리 정의된 하늘 영역과 지상 영역 사이의 분할선 (Segment Line,20)에 대한 세로 좌표값을 이용하여, 입력 영상(10)로부터 하늘 영역과 지상 영역을 각각 제1 관심영역(Region Of Interest)(11)과 제2 관심영역(13)으로 설정한 후 영상을 분할한다.2 is an example of a sky area and a ground area divided according to step 2 of the present invention. Referring to FIG. 2, a sky area and a ground area are respectively extracted from the input image 10 using the ordinate values of the segment line 20 between the predefined sky area and the ground area of step 1, 1 region of interest (11) and a second region of interest (13), and then the image is divided.

여기서, 분할선(20)은 소실선과 같거나 또는 더 낮은 위치의 해당하는 세로 좌표값을 갖는 세로 방향 라인으로 구성될 수 있다. 따라서, 제1 관심영역(11)에는 단지 하늘 영역만 포함될 수도 있고 또는 지상 영역의 상단의 일부가 포함될 수도 있다.Here, the dividing line 20 may be constituted by a longitudinal line having a corresponding ordinate value at a position equal to or lower than the missing line. Thus, only the sky area may be included in the first area of interest 11, or a part of the top area of the terrestrial area may be included.

즉, 입력 영상에서 적어도 전체 하늘 영역을 포함하는 영역이 제1 관심영역(11)으로 설정되고, 입력 영상에서 상기 제1 관심영역(11)을 제외한 나머지 영역이 제2 관심영역(13)으로 설정될 수 있다.That is, an area including at least the entire sky area in the input image is set as the first area of interest 11, and an area excluding the first area of interest 11 in the input image is set as the second area of interest 13 .

참고로, 소실선은 전체 관심영역의 세로축을 따라 가로 방향으로 분할하는 다수의 라인 중 지평선과 만나는 지점(소실점)에 대응되는 라인을 의미한다.For reference, the disappearance line means a line corresponding to a point (vanishing point) that meets with the horizon among a plurality of lines dividing in the horizontal direction along the vertical axis of the entire area of interest.

소실선의 세로 좌표는 월드 좌표계의 YW 가 무한대(∞) 값으로 수렴할 때의 yP값이므로 아래의 같은 수학식 1에 의해 산출될 수 있다.The ordinate of the line is lost, so when the value y P Y W of the world coordinate system to converge to the infinity (∞) values can be calculated by Equation 1 as below.

Figure 112013118831987-pat00002
Figure 112013118831987-pat00002

Figure 112013118831987-pat00003
Figure 112013118831987-pat00003

바람직한 실시예에 따르면, 분할선(20)에 대한 세로 좌표값은 오르막 도로 및 내리막 도로 환경을 고려하여 도 2 예시의 분할선(20)과 같이 소실선(Vanishing Line)보다 약간 낮은 위치의 세로 좌표값을 갖도록 설정하는 것이 좋다.According to a preferred embodiment, the ordinate value for the dividing line 20 is set to the ordinate of a position slightly lower than the vanishing line as in the example of the dividing line 20 of Fig. 2 in consideration of the uphill road and the downhill road environment It is good to set it to have value.

한편, 바람직하게는 단계 1과 단계 2 사이에는 단계 1의 입력 영상을 축소하는 단계를 더 포함할 수 있다.Preferably, the step 1 further includes a step of reducing the input image between the step 1 and the step 2.

도 3은 본 발명의 평균 보간법을 이용한 입력 영상 크기 축소 단계를 설명하기 위한 일례이다. 참고로, 도 3의 일례는 입력 영상(명암도) 및 평균 보간법을 이용하여 1/2 배 크기로 축소된 영상을 나타낸다. 3 is an example for explaining an input image size reduction step using the average interpolation method of the present invention. For reference, an example of FIG. 3 shows an image reduced to 1/2 size by using an input image (intensity) and an average interpolation method.

도 3을 참조하면, 차선 인식과 같은 입력 영상의 실시간 인식을 위해서는 신속한 영상 처리가 요구된다. 따라서, 알고리즘의 처리 속도를 빠르게 하기 위해서 카메라로부터 취득된 입력 영상의 전체 크기를 1/N(바람직하게는 1/2) 배로 축소하도록 구성하는 것이 바람직하다.Referring to FIG. 3, rapid image processing is required for real-time recognition of input images such as lane recognition. Therefore, in order to speed up the processing speed of the algorithm, it is preferable to reduce the total size of the input image acquired from the camera by 1 / N (preferably 1/2) times.

이 때, 영상 축소 시 새롭게 결정되는 픽셀의 밝기값은 도 3과 같이 처리 속도가 빠르고 스무딩(Smoothing) 현상으로 인해 잡음 감소 효과가 있는 평균 보간법 (Average Interpolation)을 이용하도록 구성할 수 있다.At this time, the brightness value of the pixel newly determined at the time of image reduction can be configured to use Average Interpolation, which has a fast processing speed as shown in FIG. 3 and noise reduction effect due to smoothing phenomenon.

입력 영상 축소 후 새롭게 결정되는 픽셀의 밝기값(P)는 2×2 크기의 블록 (block) 내 평균 밝기값으로 계산될 수 있다. 즉, 도 3의 일례와 같이 2×2 크기의 블록 (block) 내 각 픽셀의 밝기값이 도 3과 같이 "25,30,15,50"이라고 가정하면, 이들의 평균값인 "30"((25,30,15,50)/4" )이 입력 영상 축소 후 새롭게 결정되는 픽셀의 밝기값(P)이 된다.The brightness value (P) of the newly determined pixel after the reduction of the input image can be calculated as an average brightness value in a block of 2x2 size. That is, assuming that the brightness values of each pixel in a block of 2x2 size are "25, 30, 15, 50" as shown in FIG. 3, 25, 30, 15, 50) / 4 ") becomes the brightness value (P) of the newly determined pixel after the reduction of the input image.

전술한 바와 같이 입력 영상을 축소하는 단계를 더 포함할 경우, 단계 2는 축소된 영상을 갖고 상기의 제1 관심영역과 제2 관심영역을 설정하게 된다.If the method further includes a step of reducing the input image as described above, step 2 sets the first ROI and the second ROI with the reduced image.

<단계 3><Step 3>

본 발명의 단계 3은 제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하도록 구성된다.In the step 3 of the present invention, the weekly rate of the first ROI is calculated using the frequency of occurrence of the pixels corresponding to the BRI values within the first brightness level, and in the second BR lightness value range, And calculates the nighttime rate of the first ROI using the frequency of occurrence of the pixel corresponding to the brightness value.

여기서, 상기 제1 명암도 밝기값 범위는 제1 명암도 밝기값; 및 상기 제1 명암도 밝기값보다 작은 제2 명암도 밝기값 사이의 범위로 구성될 수 있다.Here, the first brightness level value range may be a first brightness level value; And a second brightness level value smaller than the first brightness level value.

그리고, 상기 제2 명암도 밝기값 범위는 제3 명암도 밝기값; 및 상기 제3 명암도 밝기값보다 작은 제4 명암도 밝기값 사이의 범위로 구성될 수 있다.The second brightness level value range may be a third brightness level value; And a fourth brightness level value smaller than the third brightness level value.

그리고, 상기 제2 명암도 밝기값은 최소 상기 제4 명암도 밝기값보다는 크고, 상기 제3 명암도 밝기값은 최대 상기 제1 명암도 밝기값보다는 작도록 구성될 수 있다.The second brightness level value may be greater than the fourth brightness level value, and the third brightness level value may be less than the first brightness level value.

이하에서는 도 4 및 도 5를 참조하여, 단계 3 내지 단계 6a의 바람직한 실시예에 대하여 상세히 설명하도록 한다.Hereinafter, with reference to Figs. 4 and 5, the preferred embodiments of steps 3 to 6a will be described in detail.

도 4는 본 발명에 따라 인식된 주간 상태 및 제1 관심영역에 대한 히스토그램을 나타낸 일례이고, 도 5는 본 발명에 따라 인식된 야간 상태 및 제1 관심영역에 대한 히스토그램을 나타낸 일례이다.FIG. 4 illustrates an example of a histogram of a first state of interest and a state of a week recognized according to the present invention, and FIG. 5 illustrates an example of a histogram of a night state and a first state of interest recognized according to the present invention.

전술한 바와 같이, 단계 3은 단계 2를 통해서 분할된 제1 관심영역에 대해 주간의 비율과 야간의 비율을 계산하는 단계인데, 이 때, 해당 비율을 계산하기 위해서 명암도 밝기의 통계적인 특성 정보를 이용하도록 구성되는 것을 특징으로 한다.As described above, Step 3 is a step of calculating the ratio of the daytime to the daytime for the first ROI divided through Step 2. At this time, the statistical characteristic information of the BRI is calculated And the like.

이를 위해, 영상의 히스토그램(Histogram)을 계산하며 이는 다음의 수학식 2와 같이 표현이 가능하다.To do this, the histogram of the image is calculated, which can be expressed by the following equation (2).

Figure 112013118831987-pat00004
Figure 112013118831987-pat00004

수학식 2에서 'g'가 가질 수 있는 값의 표현 범위는 명암도 밝기의 표현 범위인 '0'부터 '255'까지일 수 있다. 위 함수의 결과 값은 영상의 크기에 따라 작거나 커질 수 있기 때문에, 'ng'를 영상의 전체 픽셀의 개수로 나누어 정규화 (Normalization)를 하여 다음의 수학식 3과 같이 정규화 히스토그램을 계산한다. The expression range of 'g' in Equation (2) may range from '0' to '255', which is a range of brightness brightness. Since the result of the above function may be small or large according to the size of the image, normalization is performed by dividing 'n g ' by the total number of pixels of the image, and a normalized histogram is calculated as shown in Equation 3 below.

Figure 112013118831987-pat00005
Figure 112013118831987-pat00005

수학식 3의 정규화 히스토그램은 다음의 수학식 4와 같이 해당 픽셀이 명암도 밝기의 표현 범위 내에서 발생한 빈도를 나타내기 때문에 확률(Probability)로 표현이 가능하며, 전체 명암도 밝기값에 대한 함수 값을 더했을 경우 1을 만족하는 특성을 가지게 된다.The normalized histogram of Equation (3) can be expressed as Probability because the corresponding pixel shows the frequency occurring within the expression range of intensity brightness as shown in Equation (4) below, and the function value for the entire intensity luminance value is added Case 1 is satisfied.

Figure 112013118831987-pat00006
Figure 112013118831987-pat00006

제1 관심영역(즉, 하늘 영역)의 주간 비율(sky_daytime_ratio)은 다음의 수학식 5를 이용하여 산출될 수 있고, 제1 관심영역(즉, 하늘 영역)의 야간 비율 (sky_nighttime_ratio)은 다음의 수학식 6을 이용하여 산출될 수 있다.The sky_daytime_ratio of the first area of interest (i.e., the sky area) can be calculated using Equation (5), and the night ratio sky_nighttime_ratio of the first area of interest (i.e., sky area) Can be calculated using Equation (6).

Figure 112013118831987-pat00007
Figure 112013118831987-pat00007

여기서, TDSMin : 제1 관심영역의 주간 비율 계산 시 사용되는 최소 밝기값(제2 명암도 밝기값)Here, T DSMin is the minimum brightness value (second brightness brightness value) used in calculating the weekly ratio of the first ROI,

TDSMax : 제1 관심영역의 주간 비율 계산 시 사용되는 최대 밝기값(제1 명암도 밝기값)
T DSMax : the maximum brightness value (first brightness brightness value) used in calculating the weekly ratio of the first ROI,

Figure 112013118831987-pat00008
Figure 112013118831987-pat00008

여기서, TNSMin : 제1 관심영역의 야간 비율 계산 시 사용되는 최소 밝기값(제4 명암도 밝기값)Here, T NSMin : the minimum brightness value (fourth brightness brightness value) used in calculating the nighttime ratio of the first ROI,

TNSMax : 제1 관심영역의 야간 비율 계산 시 사용되는 최대 밝기값(제3 명암도 밝기값)T NSMax : maximum brightness value (third brightness brightness value) used in calculating the nighttime ratio of the first ROI

수학식 5에서, 제1 관심영역의 주간 비율 계산 시 사용되는 최소 밝기값 (TDSMin,제2 명암도 밝기값) 및 최대 밝기값(TDSMax,제1 명암도 밝기값)의 범위(즉, 제1 명암도 밝기값 범위)는 주간 하늘의 밝은 명암도 밝기값의 특성을 고려하여 높은 범위의 값들로 설정된다.In Equation (5), the range of the minimum brightness value (T DSMin , second brightness brightness value) and maximum brightness value (T DSMax , first brightness brightness value) used in the calculation of the weekly rate of the first ROI Brightness intensity value range) is set to a high range of values in consideration of the characteristics of the brightness intensity value of the bright sky in the daytime sky.

반면, 수학식 6에서 제1 관심영역의 야간 비율 계산 시 사용되는 최소 밝기값(TNSMin,제4 명암도 밝기값) 및 최대 밝기값(TNSMax,제3 명암도 밝기값)의 범위(즉, 제2 명암도 밝기값)는 야간 하늘의 어두운 명암도 밝기값의 특성을 고려하여 낮은 범위의 값들로 설정된다.
On the other hand, the range of the minimum brightness value (T NSMin , the fourth brightness brightness value) and the maximum brightness value (T NSMax , the third brightness brightness value) used in calculating the nighttime ratio of the first ROI in Equation 2 contrast level brightness value) is set to a low range value in consideration of the characteristic of the dark intensity brightness value of night sky.

<단계 4 내지 단계 6>&Lt; Step 4 to Step 6 >

본 발명의 단계 4 및 단계 5는 단계 3에서 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교한 후, 그 비교 결과에 따라 해당 입력 영상을 주간 상태로 최종 판단하거나 또는 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하도록 구성된다.Step 4 and Step 5 of the present invention compare the weekly rate of the first region of interest calculated in Step 3 with a predetermined first threshold value and finally determine the input image as a daytime state according to the comparison result, 1 nighttime ratio of the area of interest to a predetermined second threshold value.

구체적으로는, 전술한 단계 3에서 산출된 제1 관심영역의 주간 비율이 조건 1 "주간 비율 > 제1 임계값" 을 만족하면 최종 인식 상태를 주간으로 판단하며, 그렇지 않은 경우(즉, 주간 비율이 제1 임계값보다 작거나 같은 경우)에는 단계 3에서 산출된 제1 관심영역의 야간 비율이 조건 2 "야간 비율 > 제2 임계값" 를 만족하는지 여부를 비교하게 된다.Specifically, if the weekly rate of the first ROI calculated in the step 3 satisfies the condition 1 "week rate> first threshold ", it is determined that the final recognition status is the week, and otherwise, Is less than or equal to the first threshold value), it is determined whether or not the nighttime rate of the first ROI calculated in Step 3 satisfies Condition 2 "nighttime rate > second threshold ".

여기서, 조건 1의 제1 임계값과 조건 2의 제2 임계값은 수학식 4의 특성을 만족하는 '0' 부터 '1' 사이의 확률에 대한 임계값으로서, 상당히 밝거나 어두운 경우에 대해서만 판단을 하기 위해 제1 임계값은 비교적 낮은 값으로 설정하고, 제2 임계값은 비교적 높은 값으로 설정하는 것이 바람직하다.Here, the first threshold value of the condition 1 and the second threshold value of the condition 2 are thresholds for the probability between '0' and '1' satisfying the characteristic of the equation (4) It is preferable that the first threshold value is set to a relatively low value and the second threshold value is set to a relatively high value.

그리고, 본 발명의 단계 6은 단계 5의 조건 2에 따른 비교결과 제1 관심영역의 야간 비율이 제2 임계값보다 클 경우 해당 입력 영상을 야간 상태로 인식하도록 구성된다.The step 6 of the present invention is configured to recognize the input image as a night scene when the nighttime ratio of the first ROI is greater than the second threshold as a result of the comparison according to the condition 2 of the step 5.

한편, 상기의 조건 1 및 조건 2 모두를 만족하지 않는 경우는 히스토그램의 밝기 분포가 너무 밝거나 너무 어둡지 않은 범위에 나타나며, 상기 경우 인식하기 모호한 경우로 판단하고 보다 정교한 검사를 위한 세부 단계로 진입하게 된다.On the other hand, when both of the conditions 1 and 2 are not satisfied, the brightness distribution of the histogram is displayed in a range that is too bright or too dark. In this case, it is determined that the recognition is ambiguous and the detailed step for more detailed inspection is entered do.

즉 전술한 과정을 통해 주간 및 야간 상태를 판단하지 못한 경우, 즉, 단계 5의 조건 2를 만족하는지 여부에 대한 비교 결과 제1 관심영역의 야간 비율이 제2 임계값보다 작거나 같은 경우, 상기 산출된 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하도록 구성된다.That is, if it is determined that the daytime and nighttime conditions are not determined through the above-described process, that is, if the nighttime rate of the first ROI is less than or equal to the second threshold value, And calculate a difference value between the calculated weekly rate and the nighttime rate of the first ROI.

구체적으로는, 입력 영상에 대한 주간 및 야간 상태 판단이 모호할 경우, 단계 3을 통해 산출된 제1 관심영역의 주간 비율(sky_daytime_ratio)과 야간 비율 (sky_nighttime_ratio)간의 차이에 대한 절대값을 계산하도록 구성된다.Specifically, when the determination of the daytime and nighttime state of the input image is ambiguous, the absolute value of the difference between the daytime rate (sky_daytime_ratio) and the nighttime rate (sky_nighttime_ratio) of the first ROI calculated through Step 3 is calculated do.

<단계 7 및 단계 8>&Lt; Step 7 and Step 8 &

본 발명의 단계 7 및 단계 8은 단계 6의 세부 단계에서 산출된 비율 차이값에 근거하여, 제1 관심영역의 무질서도를 계산하는 단계로 진입하거나 또는 제2 관심영역의 주간/야간 비율을 계산하는 단계로 진입하는 단계이다.Step 7 and Step 8 of the present invention are based on the ratio difference value calculated in the detailed step of Step 6 to enter the step of calculating the degree of disorder of the first region of interest or calculate the daytime / nighttime ratio of the second region of interest .

먼저, 단계 6에서 계산된 비율 차이값 (difference_ratio)이 조건 3 “비율 차이값 < 제3 임계값”을 만족하는 경우에는 주간 및 야간 비율 차이가 작다고 간주하여 제1 관심영역의 무질서도를 계산하도록 구성된다. 여기서, 제3 임계값은 '0'부터 '1'사이의 확률로 표현되는 값일 수 있다.First, when the ratio difference value (difference_ratio) calculated in step 6 satisfies the condition 3 &quot; ratio difference value <the third threshold value &quot;, it is determined that the daytime and nighttime ratio difference is small and the degree of disorder of the first ROI is calculated . Here, the third threshold value may be a value represented by a probability of '0' to '1'.

제1 관심영역의 무질서도를 산출하는 방법에 대해 상세히 설명하도록 한다.A method for calculating the degree of disorder of the first region of interest will be described in detail.

비율 차이값이 제3 임계값 미만인 경우에는 제1 관심영역의 주간 및 야간의 비율 차이가 작아 주간 및 야간을 구별하기 모호한 경우이기 때문에 제1 관심영역에 대해 좀 더 정교한 검사를 필요로 한다. If the ratio difference value is less than the third threshold value, it is necessary to perform a more sophisticated inspection on the first ROI since the difference in the ratio between the daytime and the nighttime of the first ROI is small and it is ambiguous to distinguish between the daytime and the nighttime.

특히, 주간 상황에는 야간 상황보다 명암도 밝기 변화의 분포가 다양한 장면들이 나타나기 때문에 인식이 어렵다. 이러한 상황에서도 강건한 인식이 가능하도록 다음의 수학식 7을 이용하여 해당 하늘 영역(즉, 해당 제1 관심영역)에 대해 통계적인 특성 정보인 무질서도를 계산한다.Especially, in the daytime situation, it is hard to recognize because there are scenes in which the distribution of brightness variation is varied rather than the nighttime situation. In order to enable robust recognition even in such a situation, the randomness degree, which is statistical characteristic information, is calculated for the corresponding sky area (i.e., the first ROI) using the following Equation (7).

Figure 112013118831987-pat00009
Figure 112013118831987-pat00009

여기서, e(z) : 무질서도Here, e (z)

z : 밝기를 나타내는 랜덤 변수 z: random variable representing brightness

p(zi ) : 해당 히스토그램 확률, i =[0,1,2,…,255]
p (z i ): corresponding histogram probability, i = [0, 1, 2, ... , 255]

이후, 수학식 7을 통해 계산된 무질서도 값이 조건 4 “무질서도 값 < 제4 임계값”을 만족하는지 여부를 비교하는 단계 8b를 더 포함하고, 상기 단계 8b의 비교 결과 조건 4를 만족할 경우 해당 제1 관심영역은 무질서도가 낮다고 판단하여 최종 인식 상태를 주간으로 판단(단계 9b)한다.Thereafter, the method further includes the step 8b of comparing whether the randomness value calculated by the equation (7) satisfies the condition 4 &quot; disorder value &quot; fourth threshold value &quot;, and if the comparison result in the step 8b satisfies the condition 4 It is determined that the first ROI is low and the final recognition state is determined as the week (step 9b).

만약, 상기 단계 8b의 비교 결과 조건 4를 만족하지 않을 경우(즉, 무질서도 값이 제4 임계값보다 크거나 같은 경우)에는 무질서도가 높다고 판단하여 최종 인식 상태를 야간으로 판단(단계 9b)한다.If the comparison result in step 8b does not satisfy the condition 4 (i.e., if the disorder value is greater than or equal to the fourth threshold value), it is determined that the disorder degree is high and the final recognition state is judged as night (step 9b) do.

전술한 방법을 적용함으로써 도 6 내지 도 8과 같이 주간 상황에서 인식하기 어려운 장면들에 대해서도 정상적인 인식이 가능한 것을 알 수 있다. 참고로, 도 6 내지 도 8 각각에서 좌측 사진은 주간 인식 결과를 나타내고, 우측 사진의 상단 영역은 제1 관심영역을 나타내고, 우측 사진의 하단 영역은 해당 제1 관심영역에 대한 히스토그램을 나타내는 것이다.By applying the above-described method, it can be seen that normal scenes can be recognized even in scenes that are difficult to recognize in the daytime situation as shown in FIGS. 6 to 8, the upper portion of the right photograph shows the first region of interest, and the lower portion of the right photograph shows the histogram of the first region of interest.

구체적으로, 도 6은 주간에 고속도로 주행 시 우천으로 인해 와이퍼가 동작하는 상황이며, 하늘 영역(제1 관심영역)이 어두운 경우에도 정상적으로 주간 상태를 인식한 결과를 알 수 있다. 도 7은 주간에 고속도로 주행 시 터널 위에 있는 산으로 인해 제1 관심영역이 어두운 경우에도 정상적으로 주간 상태를 인식한 결과를 알 수 있다. 도 8은 고속도로 주행 시 고가다리가 있는 상황이며, 제1 관심영역이 어두운 경우에도 정상적으로 주간 상태를 인식한 결과를 알 수 있다.
Specifically, FIG. 6 illustrates a situation in which the wiper operates due to rain during highway driving in the daytime, and the result of recognizing the state of the weekday normally even when the sky area (first ROI) is dark. FIG. 7 shows the result of recognizing the daytime state normally even when the first area of interest is dark due to the mountains on the tunnel during the daytime on the highway. FIG. 8 shows a state in which there is a high-priced leg when traveling on a highway, and a result of recognizing the state of the weekday normally even when the first area of interest is dark.

만약, 단계 6에서 계산된 비율 차이값(difference_ratio)이 조건 3 “비율 차이값 < 제3 임계값”을 만족하지 않은 경우(즉, 비율 차이값이 제3 임계값보다 더 크거나 같은 경우)에는 제2 관심영역의 주간 비율과 야간 비율을 계산하도록 구성되는데, 이는 전술한 제1 관심영역의 주간 비율 산출 단계와 같이 명암도 밝기의 통계적인 특성 정보를 이용할 수 있다.If the ratio difference value (difference_ratio) calculated in step 6 does not satisfy the condition 3 &quot; ratio difference value <third threshold value &quot; (i.e., the ratio difference value is greater than or equal to the third threshold value) And calculate the daytime rate and the nighttime rate of the second area of interest, which can use the statistical property information of the intensity of brightness such as the daytime rate calculation step of the first area of interest described above.

여기서, 제2 관심영역의 주간 비율은 제1' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 산출되도록 구성된다.Here, the weekly ratio of the second ROI is calculated using the frequency of occurrence of the pixels corresponding to the brightness values within the first 'lightness brightness value range.

제2 관심영역의 야간 비율은 제2' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 산출되도록 구성된다.And the nighttime ratio of the second ROI is calculated using the frequency of occurrence of the pixels corresponding to the brightness values within the second range of brightness values.

여기서, 상기 제1' 명암도 밝기값 범위는 제1' 명암도 밝기값; 및 상기 제1' 명암도 밝기값보다 작은 제2' 명암도 밝기값 사이의 범위로 구성될 수 있다.Here, the first 'lightness brightness value range is defined as a first' lightness brightness value; And a second intensity of lightness value less than the first intensity of lightness value.

그리고, 상기 제2' 명암도 밝기값 범위는 제3' 명암도 밝기값; 및 상기 제3' 명암도 밝기값보다 작은 제4' 명암도 밝기값 사이의 범위로 구성될 수 있다.The second 'brightness level brightness value range is a third brightness level brightness value; And a fourth brightness level brightness value smaller than the third brightness level brightness value.

그리고, 상기 제2' 명암도 밝기값은 최소 상기 제4' 명암도 밝기값보다는 크고, 상기 제3' 명암도 밝기값은 최대 상기 제1' 명암도 밝기값보다는 작도록 구성될 수 있다.In addition, the second 'lightness brightness value may be set to be larger than the fourth' lightness brightness value, and the third 'lightness brightness value may be less than the maximum' first 'lightness brightness value.

보다 구체적으로 설명하면, 전술한 수학식 2 내지 수학식 4를 이용하여 정규화 히스토그램의 확률 분포를 계산하게 된다.More specifically, the probability distribution of the normalized histogram is calculated using Equations (2) to (4).

이를 바탕으로 제2 관심영역의 주간 비율(ground_daytime_ratio)을 다음의 수학식 8을 통해 산출할 수 있다.Based on this, the week-to-day ratio (ground_daytime_ratio) of the second ROI can be calculated by the following equation (8).

Figure 112013118831987-pat00010
Figure 112013118831987-pat00010

여기서, TDGMin : 제2 관심영역의 주간 비율 계산 시 사용되는 최소 밝기값(제2' 명암도 밝기값)Here, T DGMin is the minimum brightness value (second 'brightness level brightness value) used in calculating the weekly rate of the second ROI,

TDGMax : 제2 관심영역의 주간 비율 계산 시 사용되는 최대 밝기값(제1' 명암도 밝기값)T DGMax : the maximum brightness value (the first 'brightness intensity value') used in calculating the weekly rate of the second ROI,

한편, 제2 관심영역의 주간 비율 계산 시 사용되는 최소(TDGMin) 및 최대 밝기값(TDGMax)의 범위(즉, 제1' 명암도 밝기값 범위)는 일반적인 지상의 도로 영역뿐만 아니라, 건물 및 가로수 등의 그림자를 포함한 지상 도로 영역의 밝기 분포를 함께 고려하여 너무 밝거나 너무 어두운 밝기 범위는 제외한 범위의 값들로 설정하는 것이 바람직하다.On the other hand, the range of the minimum (T DGMin ) and the maximum brightness value (T DGMax ) used in calculating the weekly ratio of the second ROI (i.e., the first ' It is preferable to set the values of the range excluding the brightness range that is too bright or too dark by considering the brightness distribution of the ground road area including the shadows of the trees and the like.

도 9는 주간 상황에서 일반적인 지상의 도로 영역 및 건물이나 가로수 등의 그림자를 포함한 지상 영역의 밝기 분포를 나타낸다. 도 9에서 알 수 있듯이 히스토그램의 봉우리(peak)를 이루는 밝기 분포가 중앙 부근에 집중되어 있음을 확인할 수 있다.FIG. 9 shows the brightness distribution of a land area including a shadow area such as a building or a tree line, which is common in the daytime. As can be seen from FIG. 9, it can be seen that the brightness distribution that forms the peak of the histogram is concentrated in the vicinity of the center.

제2 관심영역의 주간 비율(ground_nighttime_ratio)은 다음의 수학식 9를 통해 산출할 수 있다.The weekly ratio (ground_nighttime_ratio) of the second ROI can be calculated by the following equation (9).

Figure 112013118831987-pat00011
Figure 112013118831987-pat00011

여기서, TNGMin : 제2 관심영역의 야간 비율 계산 시 사용되는 최소 밝기값(제4' 명암도 밝기값)Here, T NGMin : the minimum brightness value (the fourth brightness intensity value) used in the calculation of the nighttime ratio of the second ROI,

TNGMax : 제2 관심영역의 야간 비율 계산 시 사용되는 최대 밝기값(제3' 명암도 밝기값)
T NGMax : the maximum brightness value (the third brightness intensity value) used in the calculation of the nighttime ratio of the second ROI,

야간 상황의 지상 도로 영역은 도 10의 좌측 사진과 같이 선행 차량 및 대항 차량이 도로 영역에 있는 경우에는 전조등 및 후미등의 영향으로 인해 어두운 밝기 분포의 범위가 비교적 넓지만, 도 10의 우측 사진과 같이 차량이 없는 경우에는 어두운 밝기 분포의 범위가 비교적 좁다. 이러한 점을 고려하여 제2 관심영역의 야간 비율 계산 시 사용되는 최소(TNGMin, 제4' 명암도 밝기값) 및 최대 밝기값(TNGMax, 제3' 명암도 밝기값)의 범위(즉, 제2' 명암도 밝기값 범위)는 어두운 밝기 분포를 충분히 넓게 허용할 수 있도록 설정한다. 10, when the preceding vehicle and the opposing vehicle are located in the road area, the range of the dark brightness distribution is relatively wide due to the influence of the headlights and tail lights. However, as shown in the right- In the absence of a vehicle, the range of dark brightness distribution is relatively narrow. Taking this into consideration, the range of the minimum (T NGMin , the fourth ' darkness brightness value) and the maximum brightness value (T NGMax , the third' darkness brightness value) used in the calculation of the nighttime ratio of the second ROI 'Intense brightness value range) is set to allow the dark brightness distribution to be wide enough.

전술한 수학식 8과 수학식 9를 이용하여 산출된 제2 관심영역의 주간 및 야간 비율이 조건 5“주간 비율 > 야간 비율"를 만족하는지 여부를 비교(단계 8a)한 후, 만약 조건 5를 만족하면 해당 입력 영상에 대한 최종 인식 상태를 주간으로 판단하고, 그렇지 않은 경우(즉, 주간 비율이 야간 비율보다 작거나 같은 경우)에는 최종 인식 상태를 야간으로 판단(단계 9a)한다.(Step 8a) whether the daytime and nighttime ratios of the second ROI calculated using equations (8) and (9) satisfy Condition 5 &quot; daytime rate> nighttime rate & If it is satisfied, the final recognition state of the input image is determined as a week. If not, the final recognition state is determined to be night (step 9a) if the daytime ratio is less than or equal to the night ratio.

도 11 및 도 12는 단계 7, 8a, 및 9a을 통해서 최종적으로 인식된 주간 및 야간 상태와 해당 지상 영역(즉 제2 관심영역)에 대한 히스토그램을 각각 보여준다. 도 11 및 도 12에서 알 수 있듯이 지상 도로 영역의 밝기 분포가 너무 밝거나 어둡지 않은 상황에서도 주간 및 야간 상태의 정상적인 인식이 가능한 것을 확인할 수 있다.Figs. 11 and 12 show the histograms of the finally recognized weekly and nighttime states and the corresponding terrestrial regions (i.e., the second ROI) through steps 7, 8a, and 9a, respectively. As can be seen from FIGS. 11 and 12, it can be confirmed that the daytime and nighttime conditions can be normally recognized even when the brightness distribution of the ground road area is not very bright or dark.

상기에서 설명 및 도시한 본 발명에 따른 입력영상의 주간 및 야간 인식 방법은 프로그램 형태로 기록되어 전기 전자 장치를 통해 실현될 수 있다. 여기서 전기 전자 장치란 컴퓨터를 비롯하여, 스마트 단말기와 같이 중앙처리장치와 메모리를 포함하고 있는 전기 전자 기기라면 이를 모두 포함한다.The method of recognizing day and night of an input image according to the present invention described and illustrated above can be realized in a program form and realized through an electric / electronic device. The term &quot; electric &lt; RTI ID = 0.0 &gt; electronic &lt; / RTI &gt; device includes both a computer and an electrical and electronic device including a central processing unit and a memory such as a smart terminal.

상기 경우, 본 발명의 기록 매체는 전기 전자 장치에, 하늘 영역과 지상 영역을 포함하고 있는 영상을 입력받는 기능과; 상기 입력 영상에서 적어도 상기 하늘 영역을 포함하는 영역을 제1 관심영역으로 설정하는 기능과; 제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하는 기능과; 상기 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교하는 기능과; 상기 비교결과 상기 제1 관심영역의 주간 비율이 상기 제1 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 상기 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하는 기능과; 상기 비교결과 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 클 경우 상기 입력 영상을 야간 상태로 인식하는 기능을 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체로 제공될 수 있다.In the above case, the recording medium of the present invention includes: an electric / electronic device having a function of receiving an image including a sky area and a ground area; Setting an area including at least the sky area as a first area of interest in the input image; Calculating a weekly rate of the first ROI by using the frequency of occurrence of pixels corresponding to the respective BRI values within the first brightness level value range, and calculating a weekly ratio of the pixels corresponding to the brightness values within the second brightness level range, Calculating a nighttime rate of the first ROI using the frequency of occurrence of the first ROI; Comparing the calculated weekly rate of the first ROI with a predetermined first threshold; If the daytime rate of the first ROI is greater than the first threshold value, recognizing the input image as a daytime state, and comparing the nighttime rate of the first ROI with a predetermined second threshold value Function; And a program for realizing a function of recognizing the input image as a nighttime state when the nighttime rate of the first ROI is greater than the second threshold value as a result of the comparison, .

바람직한 실시예에 따르면, 본 발명의 기록 매체는 상기 입력 영상에서 상기 제1 관심영역을 제외한 나머지 영역을 제2 관심영역으로 설정하는 기능과; 상기 비교결과 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 작을 경우 상기 산출된 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하는 기능과; 상기 차이값을 기설정된 제3 임계값과 비교하는 기능과; 상기 비교결과 상기 차이값이 제3 임계값보다 작을 경우 상기 제1 관심영역의 무질서도를 산출하고, 더 클 경우 제1' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 주간 비율을 산출하고, 제2' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 야간 비율을 산출하는 기능을 더 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체일 수 있다.According to a preferred embodiment, the recording medium of the present invention further comprises: a function of setting a remaining region of the input image excluding the first region of interest as a second region of interest; Calculating a difference value between the calculated weekly rate and the nighttime rate of the first ROI when the comparison result indicates that the nighttime rate of the first ROI is less than the second threshold; Comparing the difference value with a predetermined third threshold value; If the difference is smaller than the third threshold value, the degree of disorder of the first region of interest is calculated. If the difference is larger than the third threshold value, the frequency of occurrence of the pixels corresponding to the brightness values within the first ' And calculating the nighttime rate of the second ROI using the frequency of occurrence of the pixels corresponding to the brightness values within the second ' And may be a medium that can be read by an electric / electronic apparatus in which a program for realizing the present invention is recorded.

또한, 상기 제1 관심영역의 무질서도를 산출할 경우, 상기 산출된 제1 관심영역의 무질서도를 기설정된 제4 임계값과 비교하는 기능과; 상기 비교결과 상기 제1 관심영역의 무질서도가 상기 제4 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 기능을 더 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체일 수 있다.Comparing the calculated degree of chaos of the first ROI with a predetermined fourth threshold when calculating the degree of chaos of the first ROI; And a program for realizing a function of recognizing the input image as a daytime state when the degree of disorder of the first ROI is greater than the fourth threshold value and recognizing the input image as a nighttime state when the comparison is less than the fourth threshold, Lt; / RTI &gt;

또한, 상기 제2 관심영역의 주간 비율 및 야간 비율을 산출할 경우, 상기 산출된 제2 관심영역의 주간 비율 및 야간 비율의 크기를 비교하는 기능과; 상기 비교결과 상기 제2 관심영역의 주간 비율이 제2 관심영역의 야간 비율보다 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 기능을 더 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체일 수 있다.A function of comparing the calculated weekly rate and the nighttime rate of the second ROI when calculating the weekly rate and the nighttime rate of the second ROI; A program for realizing a function of recognizing the input image as a daytime state when the daytime rate of the second area of interest is greater than the nighttime rate of the second area of interest as a result of the comparison, Lt; / RTI &gt; readable medium.

전술한 각 기능의 세부적인 구성 및 특징은 도 1 내지 도 12에서 설명 및 도시한 바와 동일하므로 자세한 설명은 생략하기로 한다.
The detailed configurations and features of the above-described functions are the same as those described and illustrated in FIG. 1 to FIG. 12, and a detailed description thereof will be omitted.

상기에서 본 발명의 바람직한 실시예가 특정 용어들을 사용하여 설명 및 도시되었지만 그러한 용어는 오로지 본 발명을 명확히 설명하기 위한 것일 뿐이며, 본 발명의 실시예 및 기술된 용어는 다음의 청구범위의 기술적 사상 및 범위로부터 이탈되지 않고서 여러가지 변경 및 변화가 가해질 수 있는 것은 자명한 일이다. While the preferred embodiments of the present invention have been described and illustrated above using specific terms, such terms are used only for the purpose of clarifying the invention, and it is to be understood that the embodiment It will be obvious that various changes and modifications can be made without departing from the spirit and scope of the invention.

예컨대, 제1 관심영역의 야간비율을 전술한 제3 단계에서 산출하지 않고, 대신 전술한 제5 단계에서 산출한 후 상기 산출된 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하도록 구성하여도 동일한 목적을 달성할 수 있음은 물론이다.For example, the nighttime rate of the first area of interest may not be calculated in the third step, but may be calculated in the fifth step described above, and then compared with the predetermined second threshold value in the calculated nighttime rate of the first area of interest It goes without saying that the same object can be achieved.

이와 같이 변형된 실시예들은 본 발명의 사상 및 범위로부터 개별적으로 이해되어져서는 안되며, 본 발명의 청구범위 안에 속한다고 해야 할 것이다.
Such modified embodiments should not be understood individually from the spirit and scope of the present invention, but should be regarded as being within the scope of the claims of the present invention.

10: 입력 영상
11: 제1 관심영역
13: 제2 관심영역
20: 분할선
10: input image
11: First area of interest
13: second region of interest
20: Splitting line

Claims (16)

삭제delete 하늘 영역과 지상 영역을 포함하고 있는 영상을 입력받는 제1 단계;
상기 입력 영상에서 적어도 상기 하늘 영역을 포함하는 영역을 제1 관심영역으로 설정하는 제2 단계;
제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하는 제3 단계;
상기 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교하는 제4 단계;
상기 제4 단계의 비교결과, 상기 제1 관심영역의 주간 비율이 상기 제1 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 상기 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하는 제5 단계; 및
상기 제5 단계의 비교결과, 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 클 경우 상기 입력 영상을 야간 상태로 인식하는 제6 단계;를 포함하고,
상기 제1 명암도 밝기값 범위는 제1 명암도 밝기값; 및 상기 제1 명암도 밝기값보다 작은 제2 명암도 밝기값 사이의 범위이고,
상기 제2 명암도 밝기값 범위는 제3 명암도 밝기값; 및 상기 제3 명암도 밝기값보다 작은 제4 명암도 밝기값 사이의 범위이며,
상기 제2 명암도 밝기값은 최소 상기 제4 명암도 밝기값보다는 크고, 상기 제3 명암도 밝기값은 최대 상기 제1 명암도 밝기값보다는 작도록 구성되는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
A first step of receiving an image including a sky area and a ground area;
A second step of setting at least an area including the sky area in the input image as a first ROI;
Calculating a weekly rate of the first ROI by using the frequency of occurrence of pixels corresponding to the respective BRI values within the first brightness level value range, and calculating a weekly ratio of the pixels corresponding to the brightness values within the second brightness level range, A third step of calculating a nighttime rate of the first ROI using the frequency of occurrence of the first ROI;
A fourth step of comparing the calculated weekly rate of the first ROI with a predetermined first threshold value;
If the daytime rate of the first ROI is greater than the first threshold value as a result of the comparison of the fourth ROI, recognizes the input image as a daytime state, and if the input image is smaller than the first threshold, 2 &gt; threshold value; And
And a sixth step of recognizing the input image as a night scene when the nighttime ratio of the first ROI is greater than the second threshold as a result of the fifth step,
The first brightness level value range is a first brightness level value; And a second brightness level value smaller than the first brightness level value,
The second brightness brightness value range is a third brightness brightness value; And a fourth brightness level value smaller than the third brightness level value,
Wherein the second intense brightness value is greater than the fourth intense brightness value and the third intense brightness value is less than the first intense brightness value.
제2 항에 있어서,
상기 제1 관심영역의 주간 비율과 야간 비율, 상기 제1 임계값, 및 상기 제2 임계값은 '0'부터 '1'사이의 확률로 표현되는 값인 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
3. The method of claim 2,
Wherein the daytime rate and the nighttime rate of the first area of interest, the first threshold value, and the second threshold value are values represented by a probability of '0' to '1'. Way.
하늘 영역과 지상 영역을 포함하고 있는 영상을 입력받는 제1 단계;
상기 입력 영상에서, 적어도 상기 하늘 영역을 포함하는 영역을 제1 관심영역으로 설정하고, 상기 제1 관심영역을 제외한 나머지 영역을 제2 관심영역으로 설정하는 제2 단계;
제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하는 제3 단계;
상기 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교하는 제4 단계;
상기 제4 단계의 비교결과, 상기 제1 관심영역의 주간 비율이 상기 제1 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 상기 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하는 제5 단계;
상기 제5 단계의 비교결과, 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 클 경우 상기 입력 영상을 야간 상태로 인식하고, 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 작을 경우 상기 산출된 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하는 제6 단계;
상기 제6 단계의 차이값을 기설정된 제3 임계값과 비교하는 제7 단계; 및
상기 제7 단계의 비교결과 상기 차이값이 제3 임계값보다 작을 경우 상기 제1 관심영역의 무질서도를 산출하고, 더 클 경우 제1' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 주간 비율을 산출하고, 제2' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 야간 비율을 산출하는 제8 단계;를 더 포함하는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
A first step of receiving an image including a sky area and a ground area;
A second step of setting an area including at least the sky area as a first area of interest in the input image and setting an area other than the first area of interest as a second area of interest;
Calculating a weekly rate of the first ROI by using the frequency of occurrence of pixels corresponding to the respective BRI values within the first brightness level value range, and calculating a weekly ratio of the pixels corresponding to the brightness values within the second brightness level range, A third step of calculating a nighttime rate of the first ROI using the frequency of occurrence of the first ROI;
A fourth step of comparing the calculated weekly rate of the first ROI with a predetermined first threshold value;
If the daytime rate of the first ROI is greater than the first threshold value as a result of the comparison of the fourth ROI, recognizes the input image as a daytime state, and if the input image is smaller than the first threshold, 2 &gt; threshold value;
If the nighttime ratio of the first ROI is greater than the second threshold value as a result of the comparison of the fifth ROI, A sixth step of calculating a difference value between the calculated weekly rate and the nighttime rate of the first ROI;
A seventh step of comparing the difference value of the sixth step with a predetermined third threshold value; And
If the difference is smaller than the third threshold, the degree of disorder of the first ROI is calculated. If the difference is greater than the third threshold, Calculates a daytime rate of the second ROI using the frequency of occurrence of the first ROI, and calculates a nighttime rate of the second ROI using the frequency of occurrence of pixels corresponding to the brightness values of the second ROI within the second ' The method comprising the steps of: (a) inputting an input image;
제4 항에 있어서,
상기 제8 단계에서 상기 제1 관심영역의 무질서도를 산출할 경우,
상기 산출된 제1 관심영역의 무질서도를 기설정된 제4 임계값과 비교하는 제8b 단계; 및
상기 제8b 단계의 비교결과 상기 제1 관심영역의 무질서도가 상기 제4 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 제9b 단계를 더 포함하는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
5. The method of claim 4,
If the randomness degree of the first ROI is calculated in the eighth step,
8b) comparing the calculated degree of chaos of the first ROI with a predetermined fourth threshold; And
Further comprising the step of recognizing the input image as a daytime state when the degree of abnormality of the first ROI is greater than the fourth threshold value and recognizing the input image as a nighttime state when the degree of abnormality of the first ROI is greater than the fourth threshold value as a result of the comparison of step 8b A method for recognizing day and night of an input image.
제4 항에 있어서,
상기 제8 단계에서 상기 제2 관심영역의 주간 비율 및 야간 비율을 산출할 경우,
상기 산출된 제2 관심영역의 주간 비율 및 야간 비율의 크기를 비교하는 제8a 단계; 및
상기 제8a 단계의 비교결과 상기 제2 관심영역의 주간 비율이 상기 제2 관심영역의 야간 비율보다 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 제9a 단계를 더 포함하는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
5. The method of claim 4,
In the eighth step, when calculating the weekly rate and the nighttime rate of the second ROI,
Comparing the calculated weekly rate and the nightly rate of the second ROI; And
If it is determined in step 8a that the daytime rate of the second area of interest is greater than the nighttime rate of the second area of interest, recognizing the input image as a daytime state; And the day and night recognition method of the input image.
제4 항에 있어서,
상기 제1 단계와 제2 단계 사이에,
상기 제1 단계의 입력 영상의 전체 크기를 1/N 로 축소하는 단계를 더 포함하는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
5. The method of claim 4,
Between the first step and the second step,
Further comprising reducing the total size of the input image in the first step to 1 / N.
제7 항에 있어서,
상기 입력 영상의 축소는 평균 보간법을 이용하여 수행되는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
8. The method of claim 7,
Wherein the reduction of the input image is performed using an average interpolation method.
제2 항에 있어서,
상기 제1 관심영역의 야간비율은 상기 제3 단계에서 산출함을 대체하여 상기 제5 단계에서 산출한 후 상기 산출된 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하도록 구성되는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
3. The method of claim 2,
Wherein the nighttime rate of the first ROI is calculated by comparing the nighttime rate of the first ROI calculated in the fifth step with a predetermined second threshold value A method for recognizing day and night of an input image.
제4 항에 있어서,
상기 제1 관심영역과 제2 관심영역은 상기 입력 영상의 소실선 보다 낮은 위치의 세로 좌표값을 갖는 분할선에 의해 분할되도록 구성되고,
상기 제1 관심영역에는 상기 지상 영역의 상단 일부가 포함되어 있는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
5. The method of claim 4,
Wherein the first ROI and the second ROI are divided by a dividing line having a vertical coordinate value lower than a vanishing line of the input image,
Wherein the first area of interest includes a top portion of the land area.
제2 항에 있어서,
상기 제5 단계는, 상기 제1 관심영역의 주간 비율이 상기 제1 임계값과 같을 경우에도, 상기 산출된 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교하도록 구성되는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
3. The method of claim 2,
Wherein the fifth step is configured to compare the calculated nighttime rate of the first ROI with a predetermined second threshold even if the weekly rate of the first ROI is equal to the first threshold, The day and night recognition method of the input image.
제4 항에 있어서,
상기 제6 단계는, 상기 산출된 제1 관심영역의 야간 비율이 상기 제2 임계값과 같을 경우에도, 상기 산출된 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하도록 구성되고,
상기 제8 단계는, 상기 차이값이 제3 임계값과 같을 경우에도, 상기 제2 관심영역의 주간 비율과 야간 비율을 산출하도록 구성되는 것을 특징으로 하는 입력영상의 주간 및 야간 인식 방법.
5. The method of claim 4,
The sixth step is configured to calculate a difference value between the calculated weekly rate and the nighttime rate of the first ROI even if the calculated nighttime rate of the first ROI is equal to the second threshold,
Wherein the eighth step is configured to calculate a daytime rate and a nighttime rate of the second ROI even when the difference is equal to a third threshold value.
삭제delete 전기 전자 장치에,
하늘 영역과 지상 영역을 포함하고 있는 영상을 입력받는 기능;
상기 입력 영상에서, 적어도 상기 하늘 영역을 포함하는 영역을 제1 관심영역으로 설정하고, 상기 제1 관심영역을 제외한 나머지 영역을 제2 관심영역으로 설정하는 기능;
제1 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 주간 비율을 산출하고, 제2 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제1 관심영역의 야간 비율을 산출하는 기능;
상기 산출된 제1 관심영역의 주간 비율을 기설정된 제1 임계값과 비교(이하, '제1 비교' 라 함)하는 기능;
상기 제1 비교 결과, 상기 제1 관심영역의 주간 비율이 상기 제1 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 상기 제1 관심영역의 야간 비율을 기설정된 제2 임계값과 비교(이하, '제2 비교' 라 함)하는 기능;
상기 제2 비교 결과, 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 클 경우 상기 입력 영상을 야간 상태로 인식하는 기능;
상기 제2 비교 결과, 상기 제1 관심영역의 야간 비율이 상기 제2 임계값보다 작을 경우 상기 산출된 제1 관심영역의 주간 비율과 야간 비율의 차이값을 계산하는 기능;
상기 차이값을 기설정된 제3 임계값과 비교(이하, '제3 비교' 라 함)하는 기능; 및
상기 제3 비교 결과, 상기 차이값이 제3 임계값보다 작을 경우 상기 제1 관심영역의 무질서도를 산출하고, 더 클 경우 제1' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 주간 비율을 산출하고, 제2' 명암도 밝기값 범위 내에서 각 명암도 밝기값에 해당하는 픽셀이 발생한 빈도수를 이용하여 상기 제2 관심영역의 야간 비율을 산출하는 기능;을 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체.
In electrical and electronic devices,
Receiving a video including a sky area and a ground area;
Setting an area including at least the sky area as a first area of interest in the input image and setting an area other than the first area of interest as a second area of interest;
Calculating a weekly rate of the first ROI by using the frequency of occurrence of pixels corresponding to the respective BRI values within the first brightness level value range, and calculating a weekly ratio of the pixels corresponding to the brightness values within the second brightness level range, Calculating a nighttime rate of the first ROI using the frequency of occurrence of the first ROI;
A function of comparing the calculated weekly rate of the first ROI with a predetermined first threshold value (hereinafter referred to as 'first comparison');
Wherein the input image is recognized as a daytime state when the weekly rate of the first ROI is greater than the first threshold value and the nighttime rate of the first ROI is smaller than a second predetermined threshold (Hereinafter, referred to as &quot; second comparison &quot;);
Recognizing the input image as a night scene when the nighttime ratio of the first ROI is greater than the second threshold as a result of the second comparison;
A function of calculating a difference value between the calculated weekly rate and the nighttime rate of the first ROI when the nighttime rate of the first ROI is smaller than the second threshold as a result of the second comparison;
Comparing the difference value with a predetermined third threshold value (hereinafter, referred to as 'third comparison'); And
As a result of the third comparison, when the difference is smaller than the third threshold value, the degree of disorder of the first ROI is calculated. If the difference is larger than the third threshold, the pixels corresponding to the brightness values within the first ' Calculates a daytime rate of the second ROI using the frequency of occurrence, and calculates a nighttime rate of the second ROI using the frequency of occurrence of pixels corresponding to the brightness values of the respective intensities within the second ' A program for realizing the functions of the present invention.
제14 항에 있어서,
상기 제1 관심영역의 무질서도를 산출할 경우, 상기 산출된 제1 관심영역의 무질서도를 기설정된 제4 임계값과 비교(이하, '제4 비교' 라 함)하는 기능; 및
상기 제4 비교 결과, 상기 제1 관심영역의 무질서도가 상기 제4 임계값보다 더 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 기능을 더 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체.
15. The method of claim 14,
Comparing the calculated degree of disorder of the first ROI with a predetermined fourth threshold (hereinafter referred to as 'fourth comparison') when calculating the degree of disorder of the first ROI; And
Recording a program for further realizing a function of recognizing the input image as a daytime state when the degree of anarchy of the first ROI is greater than the fourth threshold value and recognizing the input image as a nighttime state when the degree of abnormality of the first ROI is larger than the fourth threshold value as a result of the fourth comparison A medium readable by an electric or electronic device.
제14 항에 있어서,
상기 제2 관심영역의 주간 비율 및 야간 비율을 산출할 경우, 상기 산출된 제2 관심영역의 주간 비율 및 야간 비율의 크기를 비교(이하, '제5 비교' 라 함)하는 기능; 및
상기 제5 비교 결과, 상기 제2 관심영역의 주간 비율이 상기 제2 관심영역의 야간 비율보다 클 경우 상기 입력 영상을 주간 상태로 인식하고, 작을 경우 야간 상태로 인식하는 기능을 더 실현시키기 위한 프로그램을 기록한 전기 전자 장치로 읽을 수 있는 매체.
15. The method of claim 14,
A function of comparing the calculated weekly rate and the nighttime rate of the calculated second interest area (hereinafter, referred to as 'fifth comparison') when calculating the weekly rate and the night rate of the second interest area; And
A program for further realizing a function of recognizing the input image as a daytime state when the weekly rate of the second ROI is greater than the nighttime rate of the second ROI as a result of the fifth comparison, In the electronic device.
KR1020130163687A 2013-12-26 2013-12-26 Method and recording medium for day and night recognition of input image KR101564394B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020130163687A KR101564394B1 (en) 2013-12-26 2013-12-26 Method and recording medium for day and night recognition of input image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020130163687A KR101564394B1 (en) 2013-12-26 2013-12-26 Method and recording medium for day and night recognition of input image

Publications (2)

Publication Number Publication Date
KR20150075586A KR20150075586A (en) 2015-07-06
KR101564394B1 true KR101564394B1 (en) 2015-10-30

Family

ID=53788674

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020130163687A KR101564394B1 (en) 2013-12-26 2013-12-26 Method and recording medium for day and night recognition of input image

Country Status (1)

Country Link
KR (1) KR101564394B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102383066B1 (en) * 2020-05-19 2022-04-06 한국도로공사 Method and system for removing haze in image using polarization image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165743A (en) 2006-12-29 2008-07-17 Alpine Electronics Inc Day and night image discriminating method, and device
KR101154552B1 (en) 2009-12-04 2012-06-08 서강대학교산학협력단 Climate situation sensing method of car using front camera

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165743A (en) 2006-12-29 2008-07-17 Alpine Electronics Inc Day and night image discriminating method, and device
KR101154552B1 (en) 2009-12-04 2012-06-08 서강대학교산학협력단 Climate situation sensing method of car using front camera

Also Published As

Publication number Publication date
KR20150075586A (en) 2015-07-06

Similar Documents

Publication Publication Date Title
CN107862290B (en) Lane line detection method and system
CN105981042B (en) Vehicle detection system and method
US7656277B2 (en) Apparatus for detecting the presence of fog for automotive vehicle
US7209832B2 (en) Lane recognition image processing apparatus
Mu et al. Lane detection based on object segmentation and piecewise fitting
US10552706B2 (en) Attachable matter detection apparatus and attachable matter detection method
CN104657735A (en) Lane line detection method and system, as well as lane departure early warning method and system
CN107844761B (en) Traffic sign detection method and device
KR101224027B1 (en) Method for dectecting front vehicle using scene information of image
JP2009298344A (en) Apparatus and program for determining lights of vehicle
CN110782409A (en) Method for removing shadow of multi-motion object
CN111046741A (en) Method and device for identifying lane line
CN104156727B (en) Lamplight inverted image detection method based on monocular vision
CN110276318A (en) Nighttime road rains recognition methods, device, computer equipment and storage medium
Sultana et al. Vision-based robust lane detection and tracking in challenging conditions
KR20080004833A (en) Apparatus and method for detecting a navigation vehicle in day and night according to luminous state
US10417518B2 (en) Vehicle camera system
KR101564394B1 (en) Method and recording medium for day and night recognition of input image
CN111688568B (en) Brightness detection method, vehicle lamp control method, system thereof and storage medium
Boonsim et al. An algorithm for accurate taillight detection at night
CN109800693B (en) Night vehicle detection method based on color channel mixing characteristics
Zarbakht et al. Lane detection under adverse conditions based on dual color space
Dai et al. A driving assistance system with vision based vehicle detection techniques
KR101875786B1 (en) Method for identifying vehicle using back light region in road image
JP2020098389A (en) Road sign recognition device and program thereof

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20181016

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20191008

Year of fee payment: 5