KR102158967B1 - Image analysis apparatus, image analysis method and recording medium - Google Patents

Image analysis apparatus, image analysis method and recording medium Download PDF

Info

Publication number
KR102158967B1
KR102158967B1 KR1020190161515A KR20190161515A KR102158967B1 KR 102158967 B1 KR102158967 B1 KR 102158967B1 KR 1020190161515 A KR1020190161515 A KR 1020190161515A KR 20190161515 A KR20190161515 A KR 20190161515A KR 102158967 B1 KR102158967 B1 KR 102158967B1
Authority
KR
South Korea
Prior art keywords
image
region
detailed
regions
hierarchical structure
Prior art date
Application number
KR1020190161515A
Other languages
Korean (ko)
Other versions
KR20200071021A (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 (주)제이엘케이
Publication of KR20200071021A publication Critical patent/KR20200071021A/en
Application granted granted Critical
Publication of KR102158967B1 publication Critical patent/KR102158967B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06K9/4609
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • 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/90Determination of colour characteristics
    • 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
    • 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
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30112Baggage; Luggage; Suitcase

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Tourism & Hospitality (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

영상 분석 방법 및 영상 분석 장치가 제공된다. 본 발명의 영상 분석 방법은, 하나 이상의 객체를 포함하는 영상을 획득하는 단계, 상기 영상으로부터 복수의 세부 영역을 추출하는 단계, 상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계, 및 상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계를 포함할 수 있다.An image analysis method and an image analysis apparatus are provided. The image analysis method of the present invention includes obtaining an image including one or more objects, extracting a plurality of detailed regions from the image, analyzing a hierarchical structure between the plurality of detailed regions, and the hierarchical structure It may include classifying the object included in the image by using.

Description

영상 분석 장치, 영상 분석 방법 및 기록 매체{IMAGE ANALYSIS APPARATUS, IMAGE ANALYSIS METHOD AND RECORDING MEDIUM}Image analysis device, image analysis method and recording medium {IMAGE ANALYSIS APPARATUS, IMAGE ANALYSIS METHOD AND RECORDING MEDIUM}

본 개시는 영상 분석 장치 및 방법에 관한 것이다. 보다 구체적으로, 본 개시는 입력 영상에 포함된 객체를 검출하고 분류하는 장치 및 방법에 관한 것이다. 상기 입력 영상은 예컨대, 3차원 영상일 수 있다. 상기 3차원 영상은 예컨대, 3차원 보안 CT 영상일 수 있다.The present disclosure relates to an image analysis apparatus and method. More specifically, the present disclosure relates to an apparatus and method for detecting and classifying an object included in an input image. The input image may be, for example, a 3D image. The 3D image may be, for example, a 3D security CT image.

항만, 공항 또는 연구 시설 등의 보안 시설에서는 보안을 강화하고 기술 유출 등을 방지하고자, 통행자의 소지품을 검색해야 하는 필요성이 야기된다. 이때, 다수의 통행자에 대한 소지품을 보다 빠르고 효율적으로 검색하기 위한 기술로서, 방사선(X-ray) 등을 이용한 물품 검색 시스템이 활용되곤 한다.In security facilities such as ports, airports, or research facilities, there is a need to search for the belongings of passers-by in order to strengthen security and prevent technology leakage. At this time, as a technology for more quickly and efficiently searching for belongings for a large number of passengers, an article search system using radiation (X-ray) or the like is often used.

이러한 물품 검색 시스템은 특히 관세 전자 통관 시스템 혹은 보안 검사 시스템 등에 널리 활용된다. 예컨데, 관세 전자 통관 시스템은 수출입 화물에 대한 통관 업무를 전산화한 것으로서, 이를 통해 다자간에 이루어지는 관세행정 업무의 효율성을 제고할 수 있다.This product retrieval system is particularly widely used in customs electronic customs clearance systems or security inspection systems. For example, the customs electronic customs clearance system is a computerized customs clearance service for import and export cargo, which can improve the efficiency of multilateral customs administration.

또한, 보안 검사 시스템은 통행자의 소지품에 안전 또는 보안 상 문제가 발생 할 수 있는 물품이 있는지 여부를 판단하는 보안 검사 업무를 전산화한 것으로, 이를 통해 보안 구역의 보안 강화를 제고 할 수 있다.In addition, the security inspection system is a computerized security inspection task that determines whether there are items that may cause safety or security problems in the belongings of passers-by, and through this, it is possible to enhance the security of the security area.

한편, 딥러닝(deep learning)은 매우 방대한 양의 데이터를 학습하여, 새로운 데이터가 입력될 경우 학습 결과를 바탕으로 확률적으로 가장 높은 답을 선택하는 것으로서, 영상에 따라 적응적으로 동작할 수 있으며, 데이터에 기초하여 모델을 학습하는 과정에서 특성인자를 자동으로 찾아내기 때문에 최근 인공 지능 분야에서 이를 활용하려는 시도가 늘어나고 있는 추세이다.On the other hand, deep learning is to learn a very large amount of data, and when new data is input, the highest probability is selected based on the learning result, and can be adaptively operated according to the image. In addition, since feature factors are automatically found in the process of learning models based on data, attempts to utilize them in the field of artificial intelligence are increasing.

또한, 근래 3차원 보안 CT 영상을 이용한 보안 검색이 진행되고 있는데, 2차원 영상과 차별화되는 3차원 영상의 특성을 고려한 새로운 방법에 대한 연구가 요구된다.In addition, security search using 3D security CT images is currently in progress, and research on a new method that considers the characteristics of 3D images differentiated from 2D images is required.

본 개시의 기술적 과제는, 영상에 포함된 객체를 분류하는 영상 분석 방법 및 장치를 제공하는 것이다.An object of the present disclosure is to provide an image analysis method and apparatus for classifying objects included in an image.

또한, 본 개시의 기술적 과제는, 영상에 포함된 객체들의 계층 구조를 이용하여 객체를 분류하는 영상 분석 방법 및 장치를 제공하는 것이다.In addition, an object of the present disclosure is to provide an image analysis method and apparatus for classifying objects using a hierarchical structure of objects included in an image.

본 개시에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems that are not mentioned will be clearly understood by those of ordinary skill in the technical field to which the present disclosure belongs from the following description. I will be able to.

본 발명의 일 양상에 따른 영상 분석 방법은 하나 이상의 객체를 포함하는 영상을 획득하는 단계, 상기 영상으로부터 복수의 세부 영역을 추출하는 단계, 상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계, 및 상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계를 포함할 수 있다.An image analysis method according to an aspect of the present invention includes obtaining an image including one or more objects, extracting a plurality of detailed regions from the image, analyzing a hierarchical structure between the plurality of detailed regions, and And classifying the object included in the image using the hierarchical structure.

본 발명에 있어서, 상기 영상은 3차원 영상일 수 있다.In the present invention, the image may be a three-dimensional image.

본 발명에 있어서, 상기 영상으로부터 복수의 세부 영역을 추출하는 단계는, 상기 영상을 이진화하여 초기 세부 영역을 추출하는 단계, 및 상기 초기 세부 영역을 세분화하여 최종 세부 영역을 추출하는 단계를 포함할 수 있다.In the present invention, the step of extracting a plurality of detailed regions from the image may include binarizing the image to extract an initial detailed region, and subdividing the initial detailed region to extract a final detailed region. have.

본 발명에 있어서, 상기 초기 세부 영역을 세분화하는 단계는, 상기 초기 세부 영역에 포함된 복셀들의 값에 기초하여 수행될 수 있다.In the present invention, the subdividing of the initial detailed region may be performed based on values of voxels included in the initial detailed region.

본 발명에 있어서, 상기 초기 세부 영역을 세분화하는 단계는, 상기 복셀들의 값의 분산을 이용하여 수행될 수 있다.In the present invention, the subdividing of the initial detailed region may be performed by using variance of values of the voxels.

본 발명에 있어서, 상기 초기 세부 영역을 세분화하는 단계는, 상기 복셀들의 값의 분산이 소정의 임계치보다 크면, 상기 초기 세부 영역을 둘 이상의 세부 영역으로 세분화하고, 상기 세분화하여 획득된 세부 영역을 초기 세부 영역으로 하여, 상기 초기 영역을 세분화하는 단계를 수행할 수 있다.In the present invention, the subdividing of the initial detailed region comprises, if the variance of values of the voxels is greater than a predetermined threshold, the initial detailed region is subdivided into two or more subregions, and the subregion obtained by subdividing is initially As a detailed region, the initial region may be subdivided.

본 발명에 있어서, 상기 초기 세부 영역을 세분화하는 단계는, 상기 복셀들의 값의 분산이 소정의 임계치 이하이면, 상기 초기 세부 영역을 최종 세부 영역으로 결정할 수 있다.In the present invention, in the subdividing of the initial detailed region, if the variance of values of the voxels is less than or equal to a predetermined threshold, the initial detailed region may be determined as the final detailed region.

본 발명에 있어서, 상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는, 상기 복수의 세부 영역들 중 둘 이상의 세부 영역들이 하나의 영역으로 병합가능한지 판단하는 단계, 병합가능한 경우, 상기 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하는 단계, 및 상기 병합된 영역을 상위 영역으로 하고, 상기 둘 이상의 세부 영역들을 하위 영역으로하는 계층 구조를 결정하는 단계를 포함할 수 있다.In the present invention, the step of analyzing the hierarchical structure between the plurality of sub-areas comprises determining whether two or more sub-areas among the plurality of sub-areas can be merged into one area, and if mergeable, the two or more sub-areas It may include merging regions into the one region, and determining a hierarchical structure in which the merged region is an upper region and the two or more detailed regions are a lower region.

본 발명에 있어서, 상기 계층 구조를 분석하는 단계는, 상기 복수의 세부 영역들이 하나의 영역으로 병합될 때까지 재귀적으로 수행될 수 있다.In the present invention, the step of analyzing the hierarchical structure may be performed recursively until the plurality of detailed regions are merged into one region.

본 발명에 있어서, 상기 복수의 세부 영역들 중 둘 이상의 세부 영역들이 하나의 영역으로 병합가능한지 판단하는 단계는, 세부 영역 내 픽셀 값, 세부 영역의 위치, 세부 영역의 크기, 세부 영역의 형태, 병합된 영역의 형태 및 세부 영역간 인접 부분의 유사도 중 적어도 하나에 기초하여 수행될 수 있다.In the present invention, the step of determining whether two or more detailed regions among the plurality of detailed regions can be merged into one region comprises: pixel values in the detailed region, the location of the detailed region, the size of the detailed region, the shape of the detailed region, and merging It may be performed based on at least one of the shape of the formed area and the degree of similarity of adjacent portions between detailed areas.

본 발명에 있어서, 상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는, 상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과를 이용하여 수행될 수 있다.In the present invention, the step of classifying the object included in the image using the hierarchical structure is performed using a classification result of an object corresponding to an upper region of the object or an object corresponding to a lower region of the object. Can be.

본 발명에 있어서, 상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과에 따라 상기 객체의 분류 결과에 적용될 확률이 기정의되고, 상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는, 상기 확률을 이용하여 상기 객체의 분류를 수행할 수 있다.In the present invention, a probability to be applied to the classification result of the object is predefined according to the classification result of the object corresponding to the upper region of the object or the object corresponding to the lower region of the object, and the image In the step of classifying the object included in, the object may be classified using the probability.

본 발명의 다른 양상에 따른 영상 분석 장치는 본 개시에 따른 영상 분석 방법을 수행하는 하나 이상의 마이크로 프로세서를 포함할 수 있다.An image analysis apparatus according to another aspect of the present invention may include one or more microprocessors that perform the image analysis method according to the present disclosure.

본 발명의 또 다른 양상에 따른 기록 매체는 본 개시에 따른 영상 분석 방법을 실행하기 위한 프로그램을 저장할 수 있다.A recording medium according to another aspect of the present invention may store a program for executing an image analysis method according to the present disclosure.

본 발명에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 발명의 상세한 설명의 예시적인 양상일 뿐이며, 본 발명의 범위를 제한하는 것은 아니다.The features briefly summarized above with respect to the present invention are merely exemplary aspects of the detailed description of the present invention to be described later, and do not limit the scope of the present invention.

본 개시에 따르면, 영상에 포함된 객체를 분류하는 영상 분석 방법 및 장치를 제공될 수 있다.According to the present disclosure, an image analysis method and apparatus for classifying objects included in an image may be provided.

또한, 본 개시에 따르면, 영상에 포함된 객체들의 계층 구조를 이용하여 객체를 분류하는 영상 분석 방법 및 장치가 제공될 수 있다.In addition, according to the present disclosure, an image analysis method and apparatus for classifying an object using a hierarchical structure of objects included in an image may be provided.

본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects that can be obtained in the present disclosure are not limited to the effects mentioned above, and other effects not mentioned can be clearly understood by those of ordinary skill in the art from the following description. will be.

도 1은 본 개시의 일 실시예에 따른 물품 검색 시스템을 설명하기 위한 도면이다.
도 2는 본 개시의 일 실시예에 따른 영상 분석 장치(200)의 구성을 나타내는 블록도이다.
도 3은 영상의 판독 과정을 설명하기 위한 도면이다.
도 4는 본 개시의 일 실시예에 따른 영상 판독 과정에서의 인공지능의 적용 범위를 설명하기 위한 도면이다.
도 5는 본 개시에 따른 영상 강화를 수행하는 영상 강화 장치의 일 실시예를 도시한 도면이다.
도 6은 본 개시의 일 실시예에 따라, 단일 객체를 포함하는 영상으로부터 객체와 배경을 구분하고, 객체의 위치 정보를 생성하는 과정을 설명하기 위한 도면이다.
도 7은 본 개시의 일 실시예에 따른 객체의 물성에 기초하여 색상이 표현된 영상을 나타내는 도면이다.
도 8은 본 개시의 일 실시예에 따른 영상의 색상 분포 정보에 기초하여 출력 영상을 생성하는 과정을 설명하기 위한 도면이다.
도 9는 본 개시의 일 실시예에 따른 색상 분포 정보를 이용하여 획득된 영상과 에지 기반 필터링 또는 평활화 필터링을 적용하여 획득된 영상을 결합한 최종 출력 영상을 획득하는 과정을 설명하기 위한 도면이다.
도 10은 본 개시의 일 실시예에 따른 그래피컬 모델을 이용하여 최종 출력 영상을 획득하는 과정을 설명하기 위한 도면이다.
도 11은 본 개시의 일 실시예에 따른 영상 강화 방법을 설명하기 위한 도면이다.
도 12는 본 개시의 일 실시예에 따른 맥락 분석을 설명하기 위한 도면이다.
도 13은 본 개시의 일 실시예에 따른 영상의 맥락 정보를 생성하고 분석하는 과정을 나타내는 도면이다.
도 14는 본 개시의 일 실시예에 따른 영상 분석 장치가 영상을 분석하여 객체를 식별하는 과정을 설명하기 위한 도면이다.
도 15는 본 개시의 일 실시예에 따른 영상 분석 장치의 동작을 설명하기 위한 도면이다.
도 16은 다채널 특징맵을 생성하는 합성곱 신경망의 일 실시예를 설명하기 위한 도면이다.
도 17은 풀링 기법의 일 실시예를 설명하기 위한 도면이다.
도 18은 본 개시의 일 실시예에 따른 영상 합성 장치의 구성을 나타내는 블록도이다.
도 19는 본 개시의 일 실시예에 따른 단일 객체를 포함하는 두 개의 영상을 이용하여 다중 객체 영상을 생성하는 과정을 나타내는 도면이다.
도 20은 본 개시의 일 실시예에 따른 다중 객체 영상을 이용하여 합성곱 신경망을 학습시키는 과정을 나타내는 도면이다.
도 21은 본 개시의 일 실시예에 따른 영상 합성 장치를 이용하여 실제 영상을 분석하는 과정을 설명하기 위한 도면이다.
도 22는 본 개시의 일 실시예에 따른 영상 합성 방법을 설명하기 위한 도면이다.
도 23은 3차원 영상에 포함된 객체를 검출하는 본 발명의 실시예를 설명하기 위한 도면이다.
도 24는 세부 영역을 병합 및/또는 분할하는 실시예를 설명하기 위한 도면이다.
도 25는 본 발명에 따라 여행자 가방으로부터 객체를 검출하는 실시예를 설명하기 위한 도면이다.
1 is a diagram illustrating an article search system according to an exemplary embodiment of the present disclosure.
2 is a block diagram illustrating a configuration of an image analysis apparatus 200 according to an embodiment of the present disclosure.
3 is a diagram for explaining an image reading process.
4 is a diagram for explaining an application range of artificial intelligence in an image reading process according to an embodiment of the present disclosure.
5 is a diagram showing an embodiment of an image enhancement apparatus for performing image enhancement according to the present disclosure.
6 is a diagram illustrating a process of classifying an object and a background from an image including a single object, and generating location information of the object, according to an embodiment of the present disclosure.
7 is a diagram illustrating an image in which colors are expressed based on physical properties of an object according to an embodiment of the present disclosure.
8 is a diagram for describing a process of generating an output image based on color distribution information of an image according to an exemplary embodiment of the present disclosure.
FIG. 9 is a diagram for describing a process of obtaining a final output image obtained by combining an image obtained by using color distribution information and an image obtained by applying edge-based filtering or smoothing filtering according to an embodiment of the present disclosure.
10 is a diagram for explaining a process of obtaining a final output image using a graphical model according to an embodiment of the present disclosure.
11 is a diagram for describing an image enhancement method according to an embodiment of the present disclosure.
12 is a diagram for describing a context analysis according to an embodiment of the present disclosure.
13 is a diagram illustrating a process of generating and analyzing context information of an image according to an embodiment of the present disclosure.
14 is a diagram illustrating a process of identifying an object by analyzing an image by an image analysis apparatus according to an embodiment of the present disclosure.
15 is a diagram for describing an operation of an image analysis apparatus according to an exemplary embodiment of the present disclosure.
16 is a diagram for explaining an embodiment of a convolutional neural network that generates a multi-channel feature map.
17 is a diagram for describing an embodiment of a pooling technique.
18 is a block diagram illustrating a configuration of an image synthesizing apparatus according to an embodiment of the present disclosure.
19 is a diagram illustrating a process of generating a multi-object image using two images including a single object according to an embodiment of the present disclosure.
20 is a diagram illustrating a process of learning a convolutional neural network using a multi-object image according to an embodiment of the present disclosure.
21 is a diagram for explaining a process of analyzing an actual image using an image synthesizing apparatus according to an embodiment of the present disclosure.
22 is a diagram for describing an image synthesis method according to an embodiment of the present disclosure.
23 is a diagram illustrating an embodiment of the present invention for detecting an object included in a 3D image.
24 is a diagram for describing an embodiment of merging and/or dividing detailed regions.
25 is a diagram for describing an embodiment of detecting an object from a traveler's bag according to the present invention.

이하에서는 첨부한 도면을 참고로 하여 본 개시의 실시예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나, 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those of ordinary skill in the art may easily implement the embodiments. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.

본 개시의 실시예를 설명함에 있어서 공지 구성 또는 기능에 대한 구체적인 설명이 본 개시의 요지를 흐릴 수 있다고 판단되는 경우에는 그에 대한 상세한 설명은 생략한다. 그리고, 도면에서 본 개시에 대한 설명과 관계없는 부분은 생략하였으며, 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.In describing an embodiment of the present disclosure, when it is determined that a detailed description of a known configuration or function may obscure the subject matter of the present disclosure, a detailed description thereof will be omitted. In addition, parts not related to the description of the present disclosure in the drawings are omitted, and similar reference numerals are attached to similar parts.

본 개시에 있어서, 어떤 구성요소가 다른 구성요소와 "연결", "결합" 또는 "접속"되어 있다고 할 때, 이는 직접적인 연결관계뿐만 아니라, 그 중간에 또 다른 구성요소가 존재하는 간접적인 연결관계도 포함할 수 있다. 또한 어떤 구성요소가 다른 구성요소를 "포함한다" 또는 "가진다"고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 배제하는 것이 아니라 또 다른 구성요소를 더 포함할 수 있는 것을 의미한다.In the present disclosure, when a component is said to be "connected", "coupled" or "connected" with another component, it is not only a direct connection relationship, but an indirect connection relationship in which another component exists in the middle. It can also include. In addition, when a certain component "includes" or "have" another component, it means that other components may be further included rather than excluding other components unless otherwise stated. .

본 개시에 있어서, 제1, 제2 등의 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용되며, 특별히 언급되지 않는 한 구성요소들간의 순서 또는 중요도 등을 한정하지 않는다. 따라서, 본 개시의 범위 내에서 일 실시예에서의 제1 구성요소는 다른 실시예에서 제2 구성요소라고 칭할 수도 있고, 마찬가지로 일 실시예에서의 제2 구성요소를 다른 실시예에서 제1 구성요소라고 칭할 수도 있다. In the present disclosure, terms such as first and second are used only for the purpose of distinguishing one component from other components, and do not limit the order or importance of the components unless otherwise stated. Accordingly, within the scope of the present disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment is a first component in another embodiment. It can also be called.

본 개시에 있어서, 서로 구별되는 구성요소들은 각각의 특징을 명확하게 설명하기 위함이며, 구성요소들이 반드시 분리되는 것을 의미하지는 않는다. 즉, 복수의 구성요소가 통합되어 하나의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있고, 하나의 구성요소가 분산되어 복수의 하드웨어 또는 소프트웨어 단위로 이루어질 수도 있다. 따라서, 별도로 언급하지 않더라도 이와 같이 통합된 또는 분산된 실시예도 본 개시의 범위에 포함된다. In the present disclosure, components that are distinguished from each other are intended to clearly describe each feature, and do not necessarily mean that the components are separated. That is, a plurality of components may be integrated to be formed in one hardware or software unit, or one component may be distributed in a plurality of hardware or software units. Therefore, even if not stated otherwise, such integrated or distributed embodiments are also included in the scope of the present disclosure.

본 개시에 있어서, 다양한 실시예에서 설명하는 구성요소들이 반드시 필수적인 구성요소들은 의미하는 것은 아니며, 일부는 선택적인 구성요소일 수 있다. 따라서, 일 실시예에서 설명하는 구성요소들의 부분집합으로 구성되는 실시예도 본 개시의 범위에 포함된다. 또한, 다양한 실시예에서 설명하는 구성요소들에 추가적으로 다른 구성요소를 포함하는 실시예도 본 개시의 범위에 포함된다. In the present disclosure, components described in various embodiments do not necessarily mean essential components, and some may be optional components. Accordingly, an embodiment consisting of a subset of components described in an embodiment is also included in the scope of the present disclosure. In addition, embodiments including other elements in addition to the elements described in the various embodiments are included in the scope of the present disclosure.

이하, 첨부한 도면을 참조하여 본 개시의 실시예들에 대해서 설명한다.Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings.

도 1은 본 개시의 일 실시예에 따른 물품 검색 시스템을 설명하기 위한 도면이다.1 is a diagram illustrating an article search system according to an exemplary embodiment of the present disclosure.

물품 검색 시스템(100)은 판독부(110) 및/또는 학습부(120)를 포함할 수 있다. 판독부(110)는 영상 분석 장치(112) 및/또는 출력 장치(114)를 포함할 수 있다. 학습부(120)는 데이터 베이스(122), 딥러닝 학습부(124), 알고리즘 검증부(126) 및/또는 학습된 모델 저장부(128)를 포함할 수 있다. 판독부(110)는 판독 인터페이스로서 기능할 수 있으며, 학습부(120)는 중앙 관리되는 인공지능 데이터 센터로서 기능할 수 있다.The article retrieval system 100 may include a reading unit 110 and/or a learning unit 120. The reading unit 110 may include an image analysis device 112 and/or an output device 114. The learning unit 120 may include a database 122, a deep learning learning unit 124, an algorithm verification unit 126, and/or a learned model storage unit 128. The reading unit 110 can function as a reading interface, and the learning unit 120 can function as a centrally managed AI data center.

이하에서는, 본 개시에 따른 물품 검색 시스템이 전자 통관 시스템 혹은 보안 검색 시스템에 활용되는 경우를 예를 들어 설명한다. 하지만 본 개시에 따른 물품 검색 시스템이 이러한 활용에만 한정되는 것은 아니다. 이외에도, 본 개시에 따른 물품 검색 시스템은 다양한 목적에 따라 특정 물품을 식별하는 역할을 수행하는 시스템에서 활용 될 수 있다.Hereinafter, a case where the article retrieval system according to the present disclosure is used in an electronic customs clearance system or a security retrieval system will be described as an example. However, the product search system according to the present disclosure is not limited to such use. In addition, the product search system according to the present disclosure may be utilized in a system that performs a role of identifying a specific product according to various purposes.

물품 검색 시스템(100)의 입력(130)은 영상, 물품 정보 및/또는 제어 정보를 포함할 수 있다. The input 130 of the product search system 100 may include an image, product information and/or control information.

상기 영상은 적어도 하나의 객체를 포함하는 물품에 관한 영상일 수 있다. 예컨대, X-Ray 판독 기기가 촬영한 물품에 관한 X-Ray 영상일 수 있다. 상기 영상은 X-Ray 영상 기기가 촬영한 로(raw) 이미지이거나 상기 로 이미지를 저장 또는 전송하기 위한 임의의 형태(포맷)의 이미지일 수 있다. 상기 영상은 X-Ray 판독 기기가 촬영하여 모니터와 같은 출력 장치로 전송하는 영상 정보를 캡쳐하여 데이터화함으로써 획득될 수도 있다. 영상은 출력 장치(114)에 출력되기 전, 또는 영상 분석 장치(112)에 입력되기 전에 강화될 수 있다. 영상을 강화하는 방법에 대해서는 후술한다. 출력 장치(114)는 영상 또는 강화된 영상을 출력할 수 있다. 영상 분석 장치(112)는 영상 또는 강화된 영상을 입력 받아 후술하는 영상 분석 장치(112)의 동작을 수행할 수 있다. The image may be an image of an article including at least one object. For example, it may be an X-ray image of an article photographed by an X-ray reading device. The image may be a raw image captured by an X-ray imaging device, or may be an image in any form (format) for storing or transmitting the raw image. The image may be obtained by capturing image information that is captured by an X-ray reader and transmitted to an output device such as a monitor, and converting it into data. The image may be enhanced before being output to the output device 114 or before being input to the image analysis device 112. A method of enhancing the image will be described later. The output device 114 may output an image or an enhanced image. The image analysis device 112 may receive an image or an enhanced image and perform an operation of the image analysis device 112 to be described later.

상기 물품 정보는 대응하는 영상에 포함된 물품에 관한 정보일 수 있다. 예를 들어, 영상 분석 장치로 입력되는 물품이 전자 통관 시스템에서의 화물인 경우, 물품 정보는 수입 신고된 정보 및/또는 통관 목록 리스트 정보를 포함할 수 있다. 다른 예로, 영상 분석 장치로 입력되는 물품이 보안 검사 시스템에서의 물품인 경우, 물품 정보는 통행자의 식별 정보, 통행자의 보안 레벨 및/또는 통행자의 인가 품목 정보를 포함 할 수 있다.The article information may be information on an article included in a corresponding image. For example, when an article input to the image analysis device is a cargo in an electronic customs clearance system, the article information may include import declaration information and/or customs clearance list list information. As another example, when the article input to the video analysis device is an article in the security inspection system, the article information may include identification information of a passerby, security level of a passerby, and/or information on an authorized item of the passerby.

물품 정보는 영상 분석 장치(112)에 입력되기 전에 소정의 전처리 과정을 거칠 수 있다. 예컨대, 물품 정보에 포함된 물품 목록, 반입 정보 등에 대해 품명의 정제 작업이 수행될 수 있다. 품명의 정제 작업이란 동일 또는 유사한 물품에 대해 입력되는 다양한 물품의 명칭을 통일하는 작업을 의미할 수 있다. The product information may undergo a predetermined pre-processing process before being input to the image analysis device 112. For example, an item name refinement operation may be performed on an item list, carry-in information, etc. included in the item information. The refining operation of the product name may refer to an operation of unifying the names of various items entered for the same or similar items.

물품 정보의 입력은 선택적일 수 있다. 예컨대, 본 개시의 물품 검색 시스템(100)은 물품 정보의 입력이 없어도 영상만을 입력으로 받아 동작할 수 있다. 상기 물품은 검사 또는 판독 대상의 물품으로서 모든 종류의 물품을 포함할 수 있다. 예컨대, 본 개시에 따른 영상 분석 장치가 전자 통관 시스템에 사용되는 경우, 상기 물품은 특송 화물, 우편 화물, 컨테이너 화물, 여행자 수송 화물 및 여행자 자신 중 적어도 하나일 수 있다. 다른 예로, 본 개시에 따른 영상 분석 장치가 보안 검색 시스템에 사용되는 경우, 상기 물품은 통행자 소지품 및 통행자 자신 중 적어도 하나 일 수 있다.Entry of the article information may be optional. For example, the product retrieval system 100 of the present disclosure may operate by receiving only an image as an input even without input of product information. The article may be an article to be inspected or read, and may include all kinds of articles. For example, when the image analysis device according to the present disclosure is used in an electronic customs clearance system, the article may be at least one of express cargo, mail cargo, container cargo, traveler transport cargo, and traveler himself. As another example, when the image analysis device according to the present disclosure is used in a security search system, the article may be at least one of a passerby's belongings and a passerby himself.

예를 들어, 전자 통관 시스템이 여행자를 판독한 결과, 판독된 여행자가 이상이 있거나 위험한 객체를 과거에 운송한 이력이 있는 요주의 여행자인 경우, 해당 여행자의 화물에 대해서는 다른 여행자의 화물보다 높은 수준의 분석 및/또는 판독을 수행하도록 할 수 있다. 예컨대, 특정 물품이 요주의 여행자의 화물이라는 정보를 판독원에게 제공할 수 있다.For example, if the electronic customs clearance system reads the traveler, and the read traveler is a critical traveler with a history of transporting abnormal or dangerous objects in the past, the traveler's cargo will be at a higher level than that of other travelers. Analysis and/or reading may be performed. For example, information that a specific article is a cargo of a tourist of interest may be provided to the reader.

다른 예로, 통행자를 판독한 결과, 통행자가 보안 레벨이 높은 통행자인 경우, 해당 통행자의 소지품에 대해서는 다른 통행자보다 높은 수준의 분석 및/또는 판독을 수행하도록 할 수 있다. 예컨대, 특정 물품이 보안 레벨이 높은 통행자의 소지품이라는 정보를 판독원에게 제공 할 수 있다.As another example, as a result of reading a passer-by, if the passerby is a passerby with a high security level, the passer's belongings may be analyzed and/or read at a higher level than other passers-by. For example, it is possible to provide information to the reader that a specific article is a possession of a passerby with a high level of security.

상기 제어 정보는 영상 판독을 제어하거나, 판독된 영상을 제어하는 정보 일 수 있다. 일예로, 제어 정보는 판독원(140)에 의해 입력될 수 있다. 예를 들어 제어 정보는 판독원 정보, 관리자 정보, 동작 모드 정보, 판독 민감도 정보 및/또는 유저 인터페이스 정보를 포함 할 수 있다. 제어 정보의 구체적인 활용에 대해서는 후술 하도록 한다.The control information may be information for controlling image reading or for controlling the read image. As an example, the control information may be input by the reader 140. For example, the control information may include reader information, manager information, operation mode information, read sensitivity information and/or user interface information. The specific use of the control information will be described later.

물품 검색 시스템(100)은 영상, 물품 정보 및/또는 제어 정보(130)를 입력 받아 출력 장치(114)에 전송하거나, 영상 분석 장치(112)에 전송할 수 있다. 영상 분석 장치(112)는 미리 학습된 딥러닝 기반의 모델을 이용하여 입력된 영상을 분석할 수 있다. 영상 분석 장치(112)는 분석된 결과를 출력 장치(114)로 전송할 수 있다. 출력 장치(114)는 입력된 영상, 물품 정보 및/또는 제어 정보(130), 영상 분석 장치(112)로부터 전송 받은 영상 분석 결과 및/또는 유저 인터페이스를 출력하고, 판독원(140)은 출력 장치(114)의 출력 결과를 판독할 수 있다. 전술한 바와 같이, 물품 정보(130)에 대해 정제 작업이 수행될 수 있으며, 또한, 영상 분석 장치(112)에 입력되기 전 및/또는 출력 장치(114)에 출력되기 전에 분석 대상 영상에 대해 영상 강화가 수행될 수 있다.The product search system 100 may receive an image, product information, and/or control information 130 and transmit it to the output device 114 or to the image analysis device 112. The image analysis device 112 may analyze the input image using a deep learning-based model that has been learned in advance. The image analysis device 112 may transmit the analyzed result to the output device 114. The output device 114 outputs the input image, product information and/or control information 130, the image analysis result and/or user interface transmitted from the image analysis device 112, and the reader 140 is an output device. The output result of (114) can be read. As described above, the refining operation may be performed on the product information 130, and the image to be analyzed is imaged before being input to the image analysis device 112 and/or before being output to the output device 114. Reinforcement can be performed.

출력 장치(114)는 모니터, 경고등 등의 시각 정보를 출력하는 장치, 스피커 등의 음향 정보를 출력하는 장치, 바이브레이터 등의 촉각 정보를 출력하는 장치 등 인간이 감지할 수 있는 모든 형태의 신호를 출력할 수 있는 장치를 포함한다. 출력 장치(114)를 통해 유저 인터페이스가 제공 될 수 있으며, 판독원은 상기 유저 인터페이스를 이용하여 물품 검색 시스템(100)의 동작을 제어 할 수 있다. 예를 들어, 판독원(140)은 출력되는 유저 인터페이스를 이용하여 제어 정보를 입력함으로써, 영상 분석 장치의 동작을 제어 할 수 있다.The output device 114 outputs all types of signals that can be detected by humans, such as a device that outputs visual information such as a monitor and a warning light, a device that outputs sound information such as a speaker, and a device that outputs tactile information such as a vibrator. Includes devices capable of. A user interface may be provided through the output device 114, and the reader may control the operation of the product retrieval system 100 using the user interface. For example, the reader 140 may control the operation of the image analysis apparatus by inputting control information using an output user interface.

상기 영상 분석 장치(112)의 영상 분석 결과, 해당 영상에 검출 대상인 객체, 이상이 있는 객체 또는 위험도가 임계치 이상인 객체가 포함된 경우, 이와 관련된 정보가 영상 분석 결과로서 출력 장치(114)를 통해 출력되고, 판독원(140)은 이를 확인할 수 있다. 상기 영상 분석 장치(112)는 분석 대상 영상을 분석하는 다양한 과정을 수행할 수 있다. 예컨대, 영상 분석 장치(112)는 분석 대상 영상을 보다 정확히 분석하기 위해, 맥락 분석을 수행할 수 있다. 상기 영상 분석 장치(112)가 수행하는 다양한 과정 및 맥락 분석에 대해서는 후술한다. When the image analysis result of the image analysis device 112 includes an object to be detected, an object with an abnormality, or an object with a risk greater than or equal to a threshold in the corresponding image, related information is output through the output device 114 as the image analysis result. And the reader 140 can confirm this. The image analysis device 112 may perform various processes of analyzing an image to be analyzed. For example, the image analysis device 112 may perform context analysis in order to more accurately analyze an image to be analyzed. Various processes and context analysis performed by the image analysis device 112 will be described later.

판독원(140)은 출력 장치(114)를 통해 출력된 영상 분석 결과에 기초하여 추가적인 검사의 수행 여부를 결정할 수 있다. 상기 추가적인 검사는 해당 영상에 관한 물품을 직접 열어 해당 물품에 포함된 객체를 확인하는 개장 검사를 포함할 수 있다. 본 명세서에서 검색 대상 객체는 전술한 바와 같이 이상이 있는 객체 또는 위험도가 임계치 이상인 객체를 의미할 수 있다. 그러나 이에 한정되지 않으며, 본 개시의 시스템에 의해 검출 또는 검색하고자 하는 다양한 객체를 포함할 수 있다.The reader 140 may determine whether to perform an additional test based on the image analysis result output through the output device 114. The additional inspection may include a retrofit inspection of directly opening an article related to the image to check an object included in the article. In the present specification, the object to be searched may mean an object having an abnormality or an object having a risk of a threshold value or more, as described above. However, the present disclosure is not limited thereto, and various objects to be detected or searched for by the system of the present disclosure may be included.

영상 분석 장치의 영상 분석 결과, 판독원이 직접 개장 검사를 수행한 후 입력하는 개장 검사 결과 및/또는 영상 분석 장치가 영상과 물품 정보를 매칭한 매칭 결과 정보 등은 학습부(120)에 전송될 수 있다. 학습부(120)는 새롭게 수신한 정보를 데이터 베이스(122)에 저장하고, 딥러닝 학습부(124)는 데이터 베이스(122)에 저장된 정보를 이용하여 딥러닝 학습을 수행할 수 있다. 또는 데이터 베이스(122)에 저장됨이 없이, 딥러닝 학습부(124)가 상기 학습 데이터의 전부 또는 일부를 직접 수신할 수도 있다. 딥러닝 학습부(124)에서 학습된 결과는 알고리즘 검증부(126)에서 검증되고, 검증된 모델은 학습된 모델 저장부(128)에 업데이트된 모델로서 저장될 수 있다. 학습된 모델 저장부(128)에 저장된 모델은 다시 영상 분석 장치(112)로 전송되고, 영상 분석 장치(112)는 수신한 모델을 전술한 미리 학습된 딥러닝 기반의 모델로서 업데이트하여 이용할 수 있다. 학습부(120)는 복수의 영상을 수신하여 합성함으로써 하나의 합성 영상을 생성할 수 있다. 또한 상기 복수의 영상의 각각에 대한 영상 분석 결과, 개장 검사 결과 및/또는 매칭 결과 정보 등을 이용하여 상기 합성 영상에 대응하는 가상의 영상 분석 결과, 개장 검사 결과 및/또는 매칭 결과 정보를 생성할 수 있다. 학습부(120)는 상기 합성 영상 및 상기 생성된 가상의 정보 등을 학습 데이터로서 이용할 수 있다. 이에 따르면 학습 데이터의 수가 절대적으로 적다고 하더라도, 이들 학습 데이터를 합성하거나 병합함으로써, 인공 지능 모델의 학습에 필요한 충분한 양의 학습 데이터를 생성해 낼 수 있다. 영상의 합성 및 합성 영상에 대한 가상의 정보의 생성에 대해서는 후술한다.The image analysis result of the image analysis device, the remodeling test result input after the reader directly performs the refurbishment test, and/or the matching result information obtained by matching the image and product information by the image analysis device will be transmitted to the learning unit 120. I can. The learning unit 120 may store newly received information in the database 122, and the deep learning learning unit 124 may perform deep learning learning using information stored in the database 122. Alternatively, the deep learning learning unit 124 may directly receive all or part of the training data without being stored in the database 122. The result learned by the deep learning learning unit 124 is verified by the algorithm verification unit 126, and the verified model may be stored as an updated model in the learned model storage unit 128. The model stored in the learned model storage unit 128 is transmitted to the image analysis device 112 again, and the image analysis device 112 may update and use the received model as the previously learned deep learning-based model. . The learning unit 120 may generate one synthesized image by receiving and synthesizing a plurality of images. In addition, a virtual image analysis result corresponding to the composite image, remodeling test result and/or matching result information may be generated using image analysis results, remodeling test results, and/or matching result information for each of the plurality of images. I can. The learning unit 120 may use the synthesized image and the generated virtual information as learning data. According to this, even if the number of training data is absolutely small, by synthesizing or merging these training data, a sufficient amount of training data required for training of an artificial intelligence model can be generated. Synthesis of images and generation of virtual information on the synthesized images will be described later.

판독부(110)와 학습부(120)는 별개의 장치로 구현될 수도 있고, 동일한 장치 내에서 구현될 수도 있다. 또한 판독부(110)와 학습부(120)가 포함하는 구성의 일부 또는 전부는 하드웨어로 구성되거나 소프트웨어로 구성될 수 있다.The reading unit 110 and the learning unit 120 may be implemented as separate devices, or may be implemented in the same device. In addition, some or all of the configurations included in the reading unit 110 and the learning unit 120 may be composed of hardware or software.

인공지능 기술은 컴퓨터에게 데이터를 학습시켜 마치 사람처럼 스스로 의사결정을 할 수 있게 하는데, 인공 신경망(artificial neural network)은 생물학의 신경망에서 영감을 얻은 수학적 모델로서, 시냅스의 결합으로 네트워크를 형성한 인공 뉴런이 학습을 통해 시냅스의 결합 세기를 변화시킴으로써 문제 해결 능력을 가지는 모델 전반을 의미할 수 있다. 인공 신경망은 일반적으로 입력층(input layer), 은닉층(hidden layer) 및 출력층(output layer)로 구성되어 있으며 각 층에 포함된 뉴런들이 가중치를 통해 연결되어 있으며, 가중치와 뉴런값의 선형 결합과 비선형 활성화 함수를 통해 인공 신경망은 복잡한 함수를 근사화할 수 있는 형태를 가질 수 있다. 인공 신경망 학습의 목적은 출력층에서 계산된 출력과 실제 출력의 값 차이를 최소화 시키는 가중치를 찾는데 있다.Artificial intelligence technology allows computers to learn data and make decisions on their own like humans. Artificial neural networks are mathematical models inspired by neural networks in biology, and artificial neural networks are formed by combining synapses. By changing the strength of synaptic coupling through learning, neurons can mean the overall model with problem solving ability. Artificial neural networks are generally composed of an input layer, a hidden layer, and an output layer, and neurons included in each layer are connected through weights, and linear combination of weights and neuron values and nonlinearity. Through the activation function, the artificial neural network can have a form that can approximate complex functions. The purpose of artificial neural network training is to find a weight that minimizes the difference between the calculated output and the actual output in the output layer.

심층 신경망(deep neural network)은 입력층과 출력층 사이에 여러 개의 은닉층들로 이루어진 인공 신경망으로서, 많은 은닉층을 통해 복잡한 비선형 관계들을 모델링할 수 있으며, 이처럼 층의 개수를 늘림으로써 고도화된 추상화가 가능한 신경망 구조를 딥러닝(deep learning)이라고 부른다. 딥러닝은 매우 방대한 양의 데이터를 학습하여, 새로운 데이터가 입력될 경우 학습 결과를 바탕으로 확률적으로 가장 높은 답을 선택하기 때문에 영상에 따라 적응적으로 동작할 수 있으며, 데이터에 기초하여 모델을 학습하는 과정에서 특성인자를 자동으로 찾아낼 수 있다.A deep neural network is an artificial neural network consisting of several hidden layers between the input layer and the output layer. Complex nonlinear relationships can be modeled through many hidden layers, and advanced abstraction is possible by increasing the number of layers. The structure is called deep learning. Deep learning learns a very large amount of data, and when new data is input, it selects the highest probabilistic answer based on the learning result, so it can operate adaptively according to the image and build a model based on the data. Feature factors can be found automatically during the learning process.

본 개시의 일 실시예에 따르면, 딥러닝 기반의 모델은 완전 합성곱 신경망(완전 컨볼루션 뉴럴 네트워크, fully convolutional neural network), 합성곱 신경망(컨볼루션 뉴럴 네트워크, convolutional neural network), 순환 신경망(회귀 뉴럴 네트워크, recurrent neural network), 제한 볼츠만 머신(restricted Boltzmann machine, RBM) 및 심층 신뢰 신경망(deep belief neural network, DBN) 중 적어도 하나를 포함할 수 있으나, 이에 제한되지 않는다. 또는, 딥러닝 이외의 머신 러닝 방법도 포함할 수 있다. 또는 딥러닝과 머신 러닝을 결합한 하이브리드 형태의 모델도 포함할 수 있다. 예컨대, 딥러닝 기반의 모델을 적용하여 영상의 특징을 추출하고, 상기 추출된 특징에 기초하여 영상을 분류하거나 인식할 때는 머신 러닝 기반의 모델을 적용할 수도 있다. 머신 러닝 기반의 모델은 서포트 벡터 머신(Support Vector Machine, SVM), 에이다부스트(AdaBoost) 등을 포함할 수 있으나, 이에 한정되지 않는다.According to an embodiment of the present disclosure, a deep learning-based model is a fully convolutional neural network (a fully convolutional neural network), a convolutional neural network (convolutional neural network), a recurrent neural network (regression It may include at least one of a neural network, a recurrent neural network, a restricted Boltzmann machine (RBM), and a deep belief neural network (DBN), but is not limited thereto. Alternatively, machine learning methods other than deep learning may also be included. Alternatively, a hybrid model that combines deep learning and machine learning may be included. For example, a deep learning-based model may be applied to extract features of an image, and a machine learning-based model may be applied when classifying or recognizing an image based on the extracted features. The machine learning-based model may include, but is not limited to, a support vector machine (SVM), AdaBoost, and the like.

또한, 본 개시의 일 실시예에 따르면, 딥러닝 기반의 모델을 학습하는 방법은 지도 학습(supervised learning), 비지도 학습(unsupervised learning) 또는 강화 학습(reinforcement learning) 중 적어도 하나를 포함할 수 있으나, 이에 제한되지 않는다. 지도 학습은 일련의 학습 데이터와 그에 상응하는 레이블(label, 목표 출력값)을 이용하여 학습이 이루어지며, 지도 학습에 기초한 신경망 모델은 훈련용 데이터(training data)로부터 함수를 추론해내는 형태의 모델일 수 있다. 지도 학습은 일련의 학습 데이터와 그에 상응하는 목표 출력 값을 수신하고, 입력되는 데이터에 대한 실제 출력 값과 목표 출력 값을 비교하는 학습을 통해 오류를 찾아내고, 해당 결과를 근거로 모델을 수정하게 된다. 지도 학습은 결과물의 형태에 따라 다시 회귀(regression), 분류(classification), 검출(detection), 시멘틱 세그멘테이션(semantic segmentation) 등으로 구분될 수 있다. 지도 학습을 통해 도출된 함수는 다시 새로운 결과값을 예측하는데 사용될 수 있다. 이처럼, 지도 학습에 기초한 신경망 모델은 수많은 학습 데이터의 학습을 통해, 신경망 모델의 파라미터를 최적화하게 된다.In addition, according to an embodiment of the present disclosure, a method of learning a deep learning-based model may include at least one of supervised learning, unsupervised learning, and reinforcement learning. , Is not limited thereto. Supervised learning is performed by using a series of training data and a corresponding label (label, target output value), and a neural network model based on supervised learning is a model that infers a function from training data. I can. Supervised learning receives a series of training data and the corresponding target output value, finds errors through learning that compares the actual output value of the input data with the target output value, and corrects the model based on the result. do. Supervised learning can be further divided into regression, classification, detection, semantic segmentation, and the like according to the shape of the result. Functions derived through supervised learning can be used to predict new outcomes again. In this way, the neural network model based on supervised learning optimizes the parameters of the neural network model through learning a number of training data.

본 개시의 일 실시예에 따르면, 딥러닝 기반의 모델은 입력 영상과 물품에 대한 정보를 학습에 이용할 수 있으며, 학습된 모델을 생성한 후에도 본 개시의 장치에서 획득된 영상과 물품에 대한 정보를 이용하여 신경망 모델을 업데이트할 수 있다. 또한, 본 개시의 일 실시예에 따른 딥러닝 기반의 모델은 본 개시의 방법에 의해 출력되는 분석 결과, 예를 들어 식별된 객체에 대한 이상 유무 또는 위험도, 객체에 관한 정보, 식별된 객체가 검색 대상 객체인지의 여부 등의 예측 결과, 상기 예측 결과와 최종 개장 검사 결과에 대한 비교 정보, 상기 예측 결과에 대한 평가도 또는 신뢰도 정보 등을 이용하여 신경망 모델을 업데이트할 수 있다.According to an embodiment of the present disclosure, a deep learning-based model may use input images and information on an article for learning, and even after generating the learned model, the image and information on the article acquired by the device of the present disclosure are Can be used to update the neural network model. In addition, the deep learning-based model according to an embodiment of the present disclosure searches for an analysis result output by the method of the present disclosure, for example, whether there is an abnormality or risk of an identified object, information about the object, and the identified object. The neural network model may be updated using a prediction result such as whether or not the object is a target object, comparison information on the prediction result and the final remodeling test result, and evaluation or reliability information on the prediction result.

도 2는 본 개시의 일 실시예에 따른 영상 분석 장치(200)의 구성을 나타내는 블록도이다. 도 2의 영상 분석 장치(200)는 도 1의 영상 분석 장치(112)의 일 실시예다.2 is a block diagram illustrating a configuration of an image analysis apparatus 200 according to an embodiment of the present disclosure. The image analysis apparatus 200 of FIG. 2 is an embodiment of the image analysis apparatus 112 of FIG. 1.

영상 분석 장치(200)는 영상 수신부(210), 물품 정보 매칭부(220) 및/또는 영상 분석부(230)를 포함할 수 있다. 전술한 바와 같이, 물품 정보의 입력은 선택적이므로, 영상 분석 장치(200)는 물품 정보 매칭부(220)를 포함하지 않을 수 있다. 물품 정보의 입력에 관한 설명은 도 1을 참조하여 설명된 바와 같다.The image analysis apparatus 200 may include an image reception unit 210, an article information matching unit 220 and/or an image analysis unit 230. As described above, since the input of the article information is optional, the image analysis apparatus 200 may not include the article information matching unit 220. Description of the input of the article information is as described with reference to FIG.

영상 수신부(210)는 하나 이상의 객체를 포함하는 물품에 관한 영상을 수신할 수 있다. 영상 수신부(210)가 수신하는 영상에 관한 설명은 도 1을 참조하여 설명된 바와 같다.The image receiver 210 may receive an image of an article including one or more objects. A description of the image received by the image receiving unit 210 is as described with reference to FIG. 1.

물품 정보 매칭부(220)는 물품 정보 및 영상 수신부(210)에서 수신한 영상을 입력으로 수신하여 물품 정보와 영상의 매칭을 수행할 수 있다. 상기 물품 정보에 대한 설명은 도 1을 참조하여 설명된 바와 같다. 매칭된 영상과 물품 정보는 판독원에게 출력되어 판독원의 판독 업무를 보조할 수 있다. 또는 매칭된 영상과 물품 정보는 도 1의 학습부(120)에 전송되어, 딥러닝 모델의 학습에 이용될 수도 있다. 매칭된 영상과 물품 정보는 도 1의 학습부(120)의 데이터 베이스(122)에 저장되고, 이후, 판독 대상별 및/또는 판독 업무별로 정제되고, 딥러닝 학습부(124)는 판독 대상별 및/또는 적용될 판독 업무별로 정제된 데이터를 이용하여 학습을 수행할 수 있다. 상기 판독 대상은 특송 화물, 우편 화물, 컨테이너 화물, 여행자 수송 화물 및 여행자를 포함할 수 있다. 또한 상기 판독 대상은 통행자 소지품 및 통행자를 포함 할 수 있다. 상기 판독 업무는 물체에 포함된 객체의 이상 유무 또는 위험 여부 판단, 식별된 객체가 검색 대상 객체인지의 여부 판단, 식별된 객체와 물체에 대한 정보의 매칭 여부에 대한 판단, 물체가 신고된 것인지 또는 신고되지 않은 것인지에 대한 판단을 포함할 수 있다. 전술한 바와 같이 학습부(124)에서 학습된 모델은 영상 분석부(230)에 입력되어 기존의 모델을 업데이트할 수 있다. 이 때, 판독 대상에 따라 적합한 인공 지능이 업데이트될 수 있다. 또한, 전술한 바와 같이, 학습부(124)는 기존의 학습 데이터를 활용하여 새로운 학습 데이터를 생성하고 이를 학습에 이용할 수도 있다. 새로운 학습 데이터는 기존의 영상의 합성 및 데이터의 병합에 의해 생성될 수 있음은 전술한 바와 같다.The article information matching unit 220 may perform matching between article information and the image by receiving article information and an image received from the image receiving unit 210 as inputs. Description of the article information is as described with reference to FIG. Matched images and article information can be output to the reader to assist the reader's reading task. Alternatively, the matched image and product information may be transmitted to the learning unit 120 of FIG. 1 and used for learning a deep learning model. The matched image and product information are stored in the database 122 of the learning unit 120 of FIG. 1, and then refined for each reading object and/or reading task, and the deep learning learning unit 124 is used for each reading object and/or Alternatively, learning can be performed using data refined for each reading task to be applied. The reading object may include express cargo, postal cargo, container cargo, traveler transport cargo, and traveler. In addition, the reading object may include passer-by's belongings and passer-by. The reading task is to determine whether the object contained in the object is abnormal or dangerous, determine whether the identified object is the object to be searched, determine whether the identified object matches information on the object, whether the object has been reported, or It may include a judgment as to whether it has not been reported. As described above, the model learned by the learning unit 124 is input to the image analysis unit 230 to update the existing model. At this time, appropriate artificial intelligence may be updated according to the object to be read. In addition, as described above, the learning unit 124 may generate new learning data using existing learning data and use it for learning. As described above, new learning data can be generated by synthesizing an existing image and merging data.

영상 분석부(230)는 영상(분석 대상 영상) 또는 영상과 물품 정보를 수신하고, 미리 학습된 딥러닝 기반의 모델을 이용하여 상기 영상을 분석한 후, 분석된 결과를 출력 장치로 출력할 수 있다.The image analysis unit 230 may receive an image (analysis target image) or image and product information, analyze the image using a pre-learned deep learning-based model, and output the analyzed result to an output device. have.

영상만이 수신되는 경우, 영상 분석부(230)는 영상에 포함된 객체를 식별하고, 식별된 객체에 대한 이상 유무 또는 위험도를 판단할 수 있다. 영상 분석부(230)는 후술하는 맥락 분석 과정을 수행하여 객체 식별의 정확도를 향상시킬 수 있다. When only an image is received, the image analysis unit 230 may identify an object included in the image and determine whether there is an abnormality or a risk of the identified object. The image analysis unit 230 may improve the accuracy of object identification by performing a context analysis process to be described later.

예컨대, 식별된 객체가 금지되거나 부적합하다고 판단되는 경우, 영상 분석부(230)는 해당 객체는 이상이 있거나 위험하다고 판단될 수 있다. 상기 위험도는 수치로 표현될 수 있고, 소정의 임계치와의 비교를 통해 위험한 객체인지 여부가 판단될 수 있다. 상기 위험도에 관한 수치 및/또는 상기 소정의 임계치는 판독 대상 및/또는 판독 업무에 따라 적응적으로 결정될 수 있다.For example, when it is determined that the identified object is prohibited or inappropriate, the image analysis unit 230 may determine that the object is abnormal or dangerous. The risk may be expressed as a numerical value, and it may be determined whether the object is a dangerous object through comparison with a predetermined threshold. The risk value and/or the predetermined threshold may be adaptively determined according to a reading object and/or a reading task.

영상과 물품 정보가 함께 수신되는 경우, 영상 분석부(230)는 영상과 물품 정보를 이용하여 영상에 포함된 객체에 대한 분석을 보다 정밀하게 수행할 수 있다. 예컨대, 물품 목록 리스트에 기재된 물품의 종류, 수량 및/또는 크기 정보, 통행자의 보안 레벨 및/또는 통행자의 인가 품목 정보 등을 영상으로부터 객체를 식별하는데 추가적으로 이용할 수 있다. 영상을 분석하여 식별한 객체와 물품 정보 사이에 불일치가 있는 경우, 이를 영상 분석 결과로서 출력할 수 있다.When the image and product information are received together, the image analysis unit 230 may perform more precise analysis on an object included in the image by using the image and product information. For example, the type, quantity, and/or size information of the item listed in the item list list, the security level of the passerby, and/or the passer's authorized item information may be additionally used to identify the object from the image. When there is a discrepancy between the object and product information identified by analyzing the image, it may be output as a result of the image analysis.

영상 분석부(230)가 출력하는 영상 분석 결과는 객체의 위험도, 종류, 양, 수, 크기 및 위치 중 적어도 하나를 포함할 수 있다. 영상 분석 결과가 객체의 위치인 경우, 분석 대상 영상에 해당 객체의 위치를 표시하여 출력 장치로 출력할 수 있다. 해당 객체의 위치는 좌표로 표시될 수도 있으나, 판독원이 용이하게 판독할 수 있도록 출력 영상 내의 해당 위치에 객체를 강조하여 표시할 수 있다. 예컨대, 객체의 에지를 강조하거나 객체를 둘러싸는 사각 박스를 표시하여 객체를 강조할 수도 있다. 또한, 후술하는 영상 강화 과정을 통해 판독원이 보다 용이하게 객체를 식별할 수 있도록 소정의 객체 영역을 강화할 수 있다. 예컨대, 소정의 색상에 해당하는 영역을 강화하여, 영역이 보다 명확히 식별될 수 있도록 영상을 변환할 수 있다.The image analysis result output by the image analysis unit 230 may include at least one of a risk, type, amount, number, size, and location of the object. When the image analysis result is the location of the object, the location of the corresponding object may be displayed on the analysis target image and output to an output device. The location of the object may be displayed in coordinates, but the object can be highlighted and displayed at the corresponding location in the output image so that the reader can easily read it. For example, the edge of the object may be emphasized or the object may be emphasized by displaying a rectangular box surrounding the object. In addition, a predetermined object area may be strengthened so that the reader can more easily identify the object through the image enhancement process described later. For example, by enhancing an area corresponding to a predetermined color, the image may be transformed so that the area can be more clearly identified.

또는, 영상 분석부(230)는 분석 대상 영상에 검색 대상 객체(예컨대, 통관이 금지되거나 부적합한 객체)가 포함되는지 여부를 판단할 수 있다. 이를 위해, 영상 분석부(230)는 검색 대상 객체에 관한 정보를 수신하거나 미리 저장할 수 있다. 또한, 영상 분석부(230)는 영상에 포함된 객체를 식별하고, 식별된 객체가 검색 대상 객체인지 여부를 판단할 수 있다.Alternatively, the image analysis unit 230 may determine whether an object to be searched (eg, an object for which customs clearance is prohibited or inappropriate) is included in the image to be analyzed. To this end, the image analysis unit 230 may receive or store information on the object to be searched in advance. Also, the image analysis unit 230 may identify an object included in the image and determine whether the identified object is a search target object.

도 3은 영상의 판독 과정을 설명하기 위한 도면이다.3 is a diagram for explaining an image reading process.

도 3의 (a)는 종래의 판독 과정에 관한 흐름도이고, 도 3의 (b)는 본 개시의 일 실시예에 따른 판독 과정에 관한 흐름도이다.3A is a flowchart illustrating a conventional reading process, and FIG. 3B is a flowchart illustrating a reading process according to an embodiment of the present disclosure.

도 3의 (a)에 도시된 바와 같이, 기존의 판독 과정에 따르면, 영상 및/또는 물품 정보가 입력(311)되면, 판독자에게 정보로서 제공(312)된다. 판독자는 영상 및/또는 물품 정보에 기초하여, 개장 검사가 필요한 물품을 선별(313)한다. 개장 검사를 수행한 결과는 검사 결과로서 입력(314)된다.As shown in (a) of FIG. 3, according to the existing reading process, when image and/or product information is input 311, it is provided 312 as information to the reader. The reader selects (313) an article requiring remodeling inspection based on the image and/or article information. The result of performing the retrofit inspection is input 314 as the inspection result.

도 3의 (b)에 도시된 바와 같이, 본 개시의 일 실시예에 따른 판독 과정에 따르면, 영상 및/또는 물품 정보가 입력(321)되면, 영상 분석 장치(322)는 미리 학습된 딥러닝 기반의 모델을 이용하여 영상을 분석하고, 분석된 결과를 판독자에게 정보로서 제공(324)한다. 또한 영상 분석 장치(322)는 학습 데이터를 인공지능 데이터 센터(323)로 전송하고, 인공지능 데이터 센터(323)는 학습 데이터를 학습할 수 있다. 인공지능 데이터 센터(323)는 추후 판독 대상별 판독 업무 보조 인공지능으로서 학습된 모델을 영상 분석 장치(322)에 전송할 수 있다. As shown in (b) of FIG. 3, according to the reading process according to an embodiment of the present disclosure, when an image and/or product information is input 321, the image analysis device 322 is pre-learned deep learning. The image is analyzed using the base model, and the analyzed result is provided as information to the reader (324). In addition, the image analysis device 322 may transmit the training data to the artificial intelligence data center 323, and the artificial intelligence data center 323 may learn the training data. The artificial intelligence data center 323 may transmit the learned model to the image analysis device 322 as an auxiliary artificial intelligence for reading tasks for each reading object in the future.

판독자는 상기 영상 분석 장치(322)의 분석 결과, 영상 및/또는 물품 정보에 기초하여, 개장 검사가 필요한 물품을 선별(325)할 수 있다. 개장 검사를 수행한 결과는 검사 결과로서 입력(326)될 수 있다. 상기 검사 결과는 인공지능 데이터 센터(323)로 전송되어 학습 데이터로 이용될 수도 있다.The reader may select 325 an article requiring remodeling inspection based on an analysis result of the image analysis device 322, an image and/or article information. The result of performing the retrofit inspection may be input 326 as an inspection result. The test result may be transmitted to the artificial intelligence data center 323 and used as learning data.

도 4는 본 개시의 일 실시예에 따른 영상 판독 과정에서의 인공지능의 적용 범위를 설명하기 위한 도면이다.4 is a diagram for explaining an application range of artificial intelligence in an image reading process according to an embodiment of the present disclosure.

도 4에 도시된 바와 같이, 모든 물품(410) 중 랜덤하게 추출된 샘플(420)을 관리 대상으로 선별(450)할 수 있다. 또는 관리 대상을 선별하기 위한 선별 보조 인공지능(430)을 이용하여, 모든 물품(410)에 대한 위험 분석(440)을 수행할 수 있고, 이를 통해 관리 대상을 선별(450)할 수 있다. As shown in FIG. 4, a sample 420 randomly extracted from among all the articles 410 may be selected 450 as a management target. Alternatively, a risk analysis 440 may be performed on all items 410 by using the screening auxiliary artificial intelligence 430 for selecting a management target, through which the management target may be selected 450.

인공지능의 활용은 전술한 물품의 위험 분석(440)에만 국한되지 않는다. 예컨대, 관리 대상이 선별(450)되면, 이후, 검사를 보조하기 위한 검사 보조 인공지능(460)으로서 활용될 수 있다. 예컨대, 검사 보조 인공지능(460)을 적용함으로써, 객체의 식별, 식별된 객체의 이상 유무 또는 위험도 판단 및/또는 검색 대상 객체에 관한 정보를 판독원에게 제공함으로써 판독원의 검사를 보조할 수 있다. 판독원은 검사 보조 인공지능이 제공한 정보를 활용하여 정밀 검사(470)를 수행할 수 있다.The use of artificial intelligence is not limited to the risk analysis 440 of the above-described article. For example, if the management target is selected 450, it may be used as a test assistant artificial intelligence 460 to assist the test. For example, by applying the inspection assistant artificial intelligence 460, it is possible to assist the inspection of the reader by identifying the object, determining the existence of an abnormality or the risk of the identified object, and/or providing information on the object to be searched to the reader. . The reader may perform a detailed inspection 470 using information provided by the inspection assistant artificial intelligence.

이하, 도 5 내지 도 11을 참조하여, 도 1의 영상 분석 장치(112)에 입력되기 전 및/또는 출력 장치(114)에 출력되기 전에 영상을 강화하는 방법의 일 실시예를 설명한다.Hereinafter, an embodiment of a method of enhancing an image before being input to the image analysis device 112 of FIG. 1 and/or before being output to the output device 114 will be described with reference to FIGS. 5 to 11.

도 5는 본 개시에 따른 영상 강화를 수행하는 영상 강화 장치의 일 실시예를 도시한 도면이다.5 is a diagram showing an embodiment of an image enhancement apparatus for performing image enhancement according to the present disclosure.

도 5의 영상 강화 장치는 도 1의 영상 분석 장치(112)과는 별개로 구성되거나 또는 그 일부로서 구성될 수 있다.The image enhancement device of FIG. 5 may be configured separately from the image analysis device 112 of FIG. 1 or may be configured as a part thereof.

영상 강화 장치(500)는 영상 수신부(510), 객체 영상 추출부(520), 색상 분포 분석부(530) 및/또는 영상 강화부(540)를 포함할 수 있다. 다만, 이는 본 실시예를 설명하기 위해 필요한 일부 구성요소만을 도시한 것일 뿐, 영상 강화 장치(500)에 포함된 구성요소가 전술한 예에 한정되는 것은 아니다. 예컨대, 둘 이상의 구성부가 하나의 구성부 내에서 구현될 수도 있고, 하나의 구성부에서 실행되는 동작이 분할되어 둘 이상의 구성부에서 실행되도록 구현될 수도 있다. 또한, 일부 구성부가 생략되거나 부가적인 구성부가 추가될 수도 있다.The image enhancing apparatus 500 may include an image receiving unit 510, an object image extracting unit 520, a color distribution analysis unit 530 and/or an image enhancing unit 540. However, this is only showing some components necessary for describing the present embodiment, and components included in the image enhancement apparatus 500 are not limited to the above-described examples. For example, two or more constituent units may be implemented in one constituent unit, or an operation executed in one constituent unit may be divided and implemented to be executed in two or more constituent units. In addition, some components may be omitted or additional components may be added.

본 개시의 일 실시예에 따른 영상 강화 장치(500)는 입력 영상(550)을 수신하고, 입력 영상(550)에 포함되어 있는 객체를 추출하고, 객체를 포함하는 객체 영상을 하나 이상의 영역들로 분할하고, 하나 이상의 영역들 각각에 대해 색상 분포 정보를 획득하고, 색상 분포 정보에 기초하여, 하나 이상의 영역들 중 적어도 일부에 대해 하나 이상의 가중치를 결정하고, 결정된 하나 이상의 가중치를 하나 이상의 영역들 중 적어도 일부에 적용하여 객체 영상에 대한 제1 출력 영상(560)을 생성할 수 있다.The image enhancement apparatus 500 according to an embodiment of the present disclosure receives the input image 550, extracts an object included in the input image 550, and converts the object image including the object into one or more regions. Segmentation, obtaining color distribution information for each of the one or more regions, determining one or more weights for at least some of the one or more regions based on the color distribution information, and determining one or more weights among the one or more regions The first output image 560 for the object image may be generated by applying it to at least a portion.

영상을 구성하는 각 픽셀은 휘도(밝기)를 나타내는 휘도 값과 색상을 나타내는 색상 값의 조합에 의해 소정의 밝기와 색상을 가질 수 있다. 이때, 색상 값은 색상을 표현하는 다양한 방식에 따라, 3개 또는 그 이상의 색요소의 값의 조합에 의해 나타내어질 수 있다. 예컨대, 색상 값은 3개의 색요소(Red(R), Green(G), Blue(B))의 조합인 RGB 값으로 표현될 수 있다. 예컨대, R, G, B의 각각은 0 내지 255 중 하나의 값을 가짐으로써, 해당 색요소 각각의 강도를 표현할 수 있다. R, G, B의 각각이 가질 수 있는 값의 범위는 R, G, B의 각각을 표현하는 비트 수에 기초하여 결정될 수 있다. 예컨대, 8 비트로 표현되는 경우, R, G, B의 각각은 0 내지 255 중 하나의 값을 가질 수 있다.Each pixel constituting an image may have a predetermined brightness and color by a combination of a luminance value indicating luminance (brightness) and a color value indicating color. In this case, the color value may be expressed by a combination of values of three or more color elements according to various ways of expressing the color. For example, the color value may be expressed as an RGB value that is a combination of three color elements (Red(R), Green(G), Blue(B)). For example, each of R, G, and B has a value of 0 to 255, and thus the intensity of each color element may be expressed. The range of values that each of R, G, and B can have may be determined based on the number of bits representing each of R, G, and B. For example, when represented by 8 bits, each of R, G, and B may have a value of 0 to 255.

색상 분포 정보를 획득한다는 것은 해당 영역에 포함된 픽셀들의 색상 값의 색요소를 분석함으로써, 그로부터 획득될 수 있는 다양한 통계값을 획득한다는 것을 의미할 수 있다. 예컨대, 상기 통계값은 해당 영역에 포함된 픽셀들의 색상 값의 색요소 중 평균적으로 가장 큰 값을 갖는 색요소가 무엇인지에 관한 정보일 수 있다. 예컨대, 해당 영역에 포함된 모든 픽셀들의 R, G 및 B 각각의 값을 더한 값에 기초하여, R, G, B 중 총합 또는 평균이 가장 큰 색요소가 무엇인지 결정될 수 있다. 또는, 각 픽셀마다, R, G, B 중 가장 큰 값을 갖는 색요소를 해당 픽셀의 지배적 색상으로 결정하고, 해당 영역에 포함된 모든 픽셀들에 대해 어떤 색상이 지배적 색상으로 가장 많이 결정되었는지를 판단할 수 있다. 이와 같은 방법으로, 소정 영역의 지배적 색상이 무엇인지가 결정될 수 있다. 예컨대, 소정 영역에 포함된 대다수의 픽셀들의 색상 값들에 대해, 3 개의 색요소(R, G, B) 중 R이 가장 큰 값을 갖는다면, 해당 소정 영역의 지배적 색상은 적색(Red)인 것으로 판단할 수 있다. 상기 설명에서는, R, G, B의 각각을 기준으로 색상 분포 정보 또는 지배적인 색상을 분석하였다. 그러나, 이에 한정되지 않으며, R, G, B 중 둘 이상의 조합에 의해 표현되는 다양한 색상을 기준으로 분석할 수도 있다. 예컨대, 식별하고자하는 색상이 오렌지색이라면, 오렌지색을 표현하는 R, G, B의 일부 또는 전부의 조합을 기준으로하여 해당 영역 내의 픽셀의 지배적 색상이 오렌지색인지 여부를 판단할 수 있다. Acquiring color distribution information may mean that various statistical values that can be obtained are obtained by analyzing color elements of color values of pixels included in the corresponding region. For example, the statistic value may be information on which color element has the largest average value among color elements of color values of pixels included in the corresponding area. For example, based on a value obtained by adding values of R, G, and B of all pixels included in the corresponding region, it may be determined which color element has the largest sum or average among R, G, and B. Alternatively, for each pixel, the color element having the largest value among R, G, and B is determined as the dominant color of the corresponding pixel, and which color is most often determined as the dominant color for all pixels included in the corresponding area. I can judge. In this way, it may be determined what the dominant color of the predetermined area is. For example, if R has the largest value among the three color elements (R, G, B) for color values of the majority of pixels included in a predetermined area, the dominant color of the predetermined area is considered to be red. I can judge. In the above description, color distribution information or dominant color was analyzed based on each of R, G, and B. However, the present invention is not limited thereto, and analysis may be performed based on various colors expressed by a combination of two or more of R, G, and B. For example, if the color to be identified is orange, it may be determined whether or not the dominant color of a pixel in the corresponding region is orange based on a combination of some or all of R, G, and B representing orange color.

이하에서, 지배적 색상이 적색인 영역이 영상 강화의 대상인 경우를 가정하고, 가중치를 적용하여 영상을 강화하는 과정의 일 실시예를 구체적으로 설명한다. 색상 분포 정보에 기초하여 소정 영역의 지배적 색상이 적색인 것으로 판단되면, 해당 영역에 대해 하나 이상의 가중치가 결정될 수 있다. 가중치는 R, G, B 및 휘도의 전부 또는 일부에 대해 결정될 수 있다. 예컨대, 적색을 강화하는 경우, R에 대한 가중치는 1보다 큰 값일 수 있다. 가중치를 적용한다는 것은 해당 영역의 픽셀의 색요소 값에 해당 가중치를 곱한다는 의미일 수 있다. 이 경우, G 및/또는 B에 대한 가중치는 1보다 작은 값일 수 있다. 그럼으로써, 적색이 지배적인 영역은 보다 적색인 영역으로 강화할 수 있다. Hereinafter, it is assumed that the red region of the dominant color is the target of the image enhancement, and an embodiment of a process of enhancing the image by applying a weight will be described in detail. If it is determined that the dominant color of a predetermined area is red based on the color distribution information, one or more weights may be determined for the corresponding area. The weights can be determined for R, G, B and all or part of the luminance. For example, in the case of enhancing red, the weight for R may be greater than 1. Applying a weight may mean multiplying a color element value of a pixel of a corresponding region by a corresponding weight. In this case, the weight for G and/or B may be a value less than 1. By doing so, the red dominant region can be reinforced to a redder region.

상기에서는 영상의 특정 색상을 강화하는 것에 대해서 설명하였다. 그러나, 본 개시의 영상의 강화는 이에 한정되지 않으며, 색상 값의 변화 또는 밝기 값의 변화를 모두 포함할 수 있다. 따라서, 필요에 따라서는 휘도 값에 대해서도 가중치를 적용하여 영상을 강화할 수 있다.In the above, enhancement of a specific color of an image has been described. However, the enhancement of the image of the present disclosure is not limited thereto, and may include all changes in color values or changes in brightness values. Therefore, if necessary, the image can be enhanced by applying a weight to the luminance value as well.

이하, 영상 강화 장치(500)의 각 구성부에 대해 설명한다.Hereinafter, each component of the image enhancement device 500 will be described.

영상 수신부(510)는 하나 이상의 객체를 포함하는 입력 영상(550)을 수신할 수 있다. 입력 영상(550)은 영상 분석 장치(112)에 입력되기 전의 영상 및/또는 출력 장치(114)에 출력되기 전의 영상일 수 있다.The image receiver 510 may receive an input image 550 including one or more objects. The input image 550 may be an image before being input to the image analysis device 112 and/or an image before being output to the output device 114.

객체 영상 추출부(520)는 영상 수신부(510)에서 수신된 입력 영상에 포함되어 있는 객체를 추출하고, 객체를 포함하는 객체 영상을 하나 이상의 영역들로 분할할 수 있다. 예컨대 객체 영상 추출부(520)는 분석 대상 영상의 픽셀값과 소정의 임계값을 비교하여 픽셀값을 이진화하고, 이진화된 픽셀값을 그룹핑함으로써 입력 영상에 포함된 객체를 추출할 수 있다. 여기서 객체를 추출한다는 것은 객체와 배경을 구분한다는 의미일 수 있고, 객체는 영상 내의 특정한 물체를 의미하며 또한 배경은 영상에서 객체를 제외한 부분을 의미할 수 있다. 영상의 배경은 영상의 촬영 방법 또는 촬영 장치에 따라 소정의 색상으로 표현될 수 있다. 예컨대, 상기 소정의 색상은 흰색일 수 있다. 영상의 배경을 표현하는 색상이 특정된 경우, 특정된 배경 색상에 기초하여 배경과 객체를 분리할 수도 있다. 예컨대, 특정된 배경 색상 영역을 입력 영상(550)에서 삭제함으로써 객체를 구분할 수도 있다.The object image extraction unit 520 may extract an object included in the input image received by the image receiving unit 510 and divide the object image including the object into one or more regions. For example, the object image extractor 520 may compare the pixel value of the analysis target image with a predetermined threshold value to binarize the pixel value, and then group the binarized pixel values to extract the object included in the input image. Here, extracting an object may mean that the object and the background are distinguished, the object may mean a specific object in the image, and the background may mean a portion of the image excluding the object. The background of the image may be expressed in a predetermined color according to the image capturing method or the capturing device. For example, the predetermined color may be white. When a color representing the background of the image is specified, the background and the object may be separated based on the specified background color. For example, an object may be identified by deleting a specified background color region from the input image 550.

또한 예컨대 객체 영상은 객체 영역을 둘러싸는 사각형 박스(bounding box)를 특정함으로써 획득될 수 있으며, 객체 영상 추출부(520)는 특정된 사각형 박스에 기초하여, 구분된 객체의 위치 정보를 생성할 수 있다. 즉 사각형 박스는 객체 인식 박스를 의미 할 수 있다.Also, for example, the object image may be obtained by specifying a bounding box surrounding the object area, and the object image extracting unit 520 may generate location information of the divided object based on the specified rectangular box. have. That is, the square box may mean an object recognition box.

본 개시의 일 실시예에 따를 때, 입력 영상이 X-Ray 판독 기기가 촬영한 물품에 관한 X-Ray 영상이라고 하면, 물품이 아닌 배경 부분은 불필요하기 때문에 해당 배경 부분은 잘라내고 물품이 존재하는 영역만으로 분석할 수 있다. 특히, 물품들이 컨베이어 벨트를 통해 계속적으로 X-Ray 판독 기기를 통과하는 실제 환경에서는 물품에 대한 영역을 획득하는 것이 중요하다고 할 수 있다. 객체와 배경을 구분하고 객체의 위치 정보를 생성하는 구체적인 과정은 도 6을 참고하여 자세히 설명한다.According to an embodiment of the present disclosure, if the input image is an X-ray image of an article photographed by an X-ray reading device, the background portion other than the article is unnecessary, so the background portion is cut out and the article is present. It can be analyzed only by domain. In particular, it can be said that it is important to acquire an area for an article in a real environment where articles are continuously passed through an X-ray reader through a conveyor belt. A detailed process of classifying an object and a background and generating location information of the object will be described in detail with reference to FIG. 6.

도 6은 본 개시의 일 실시예에 따라, 단일 객체를 포함하는 영상으로부터 객체와 배경을 구분하고, 객체의 위치 정보를 생성하는 과정을 설명하기 위한 도면이다. 도 6의 객체 영상 추출부(600)는 도 5의 객체 영상 추출부(520)의 일 실시예일 수 있다. 입력 영상(610)은 도 5를 참조하여 설명한 입력 영상(550)일 수 있으며, 예컨대, 단일 객체로서 가방(612)을 포함하는 물품에 관한 영상일 수 있다. 6 is a diagram illustrating a process of classifying an object and a background from an image including a single object, and generating location information of the object, according to an embodiment of the present disclosure. The object image extracting unit 600 of FIG. 6 may be an embodiment of the object image extracting unit 520 of FIG. 5. The input image 610 may be the input image 550 described with reference to FIG. 5, and may be, for example, an image of an article including the bag 612 as a single object.

객체 영상 추출부(600)는 먼저 하나의 가방(612)을 포함하는 입력 영상(610)에 대해 크로핑(cropping) 연산을 수행함으로써 가방(612)을 기준으로 주변 영역을 대략적으로(roughly) 잘라버린, 크로핑된 영상(620)을 획득할 수 있다. 그런 다음 객체 영상 추출부(600)는 크로핑된 영상(620)의 픽셀값과 소정의 임계값을 비교(thresholding)하여 픽셀값을 이진화함으로써 이진화된 영상(630)을 획득할 수 있다. 그리고, 객체 영상 추출부(600)는 이진화된 영상(630)에서 객체에 대한 부분을 선택하기 위해 근접한 픽셀끼리 그룹핑(군집화, morphology, closing)함으로써, 그룹핑된 영상(640)을 획득할 수 있다. 그런 다음, 객체 영상 추출부(600)는 그룹핑된 영상(640)에 대해 라벨링(labeling) 및 홀 채우기(hole filling) 연산을 수행하여 가장 큰 형태로 형성된 픽셀 그룹을 객체에 대한 영역(652)으로 결정하고, 나머지를 배경에 대한 영역(654)으로 결정함으로써 객체가 추출된 영상(650)을 획득할 수 있다. 또한, 객체 영상 추출부(600)는 추출된 객체 영상에 대한 정보를 이용하여 입력 영상(610) 내에서의 객체의 위치를 결정할 수 있다. 예컨대, 객체 영상 추출부(600)는 객체 영역을 둘러싸는 사각형 박스를 특정하고, 특정된 사각형 박스에 기초하여, 객체의 위치 정보를 생성할 수 있다. 도 6을 참조하면, 객체 영상 추출부(600)는 가방(612)을 둘러싸는 사각형 박스(662)를 특정하고, 특정된 사각형 박스에 기초하여, 가방(612)의 위치 정보를 획득할 수 있다. 예컨대, 가방(612)의 위치 정보는 사각형 박스(662)를 형성하는 네 개의 꼭지점의 위치 정보일 수 있으나, 이에 제한되지 않는다. 예컨대, 위치 정보는 사각형 박스(662)의 하나의 꼭지점의 좌표 (x, y) 및 사각형 박스의 가로 길이(width), 세로 길이(height)에 의해 표현될 수도 있다. 상기 하나의 꼭지점의 좌표 (x, y)는 사각형 박스(662)의 좌측 상단 꼭지점의 좌표일 수 있다. 상기 꼭지점의 좌표 (x, y)는 입력 영상(610)의 좌측 상단 꼭지점의 좌표 (0, 0)을 기준으로 특정될 수 있다.The object image extracting unit 600 first roughly cuts the surrounding area based on the bag 612 by performing a cropping operation on the input image 610 including one bag 612. A discarded and cropped image 620 may be obtained. Then, the object image extractor 600 may obtain the binarized image 630 by comparing the pixel value of the cropped image 620 with a predetermined threshold value to binarize the pixel value. In addition, the object image extracting unit 600 may obtain a grouped image 640 by grouping (clustering, morphology, closing) adjacent pixels in order to select a portion of an object in the binarized image 630. Then, the object image extracting unit 600 performs labeling and hole filling operations on the grouped images 640 and converts the pixel group formed in the largest shape into the area 652 for the object. The image 650 from which the object is extracted may be obtained by determining and determining the remainder as the region 654 for the background. In addition, the object image extractor 600 may determine the location of the object in the input image 610 by using information on the extracted object image. For example, the object image extractor 600 may specify a rectangular box surrounding the object area, and generate location information of the object based on the specified rectangular box. Referring to FIG. 6, the object image extraction unit 600 may specify a rectangular box 662 surrounding the bag 612 and obtain location information of the bag 612 based on the specified rectangular box. . For example, the location information of the bag 612 may be location information of four vertices forming the rectangular box 662, but is not limited thereto. For example, the location information may be expressed by the coordinates (x, y) of one vertex of the rectangular box 662 and the width and height of the rectangular box. The coordinates (x, y) of the one vertex may be the coordinates of the upper left vertex of the rectangular box 662. The coordinates (x, y) of the vertex may be specified based on the coordinates (0, 0) of the upper left vertex of the input image 610.

다시 도 5를 참조하여, 객체 영상 추출부(520)는 객체 영상의 크기에 기초하여 객체 영상을 하나 이상의 영역들로 분할할 수 있다. 상기 하나 이상의 영역들의 각각은 정방형일 수 있다. 예컨대, 객체 영상 추출부(520)는 객체 영상의 크기에 기초하여 객체 영상을 분할하는 영역들의 개수나 크기를 결정할 수 있다. 예컨대, 객체 영상이 상대적으로 크거나 소정의 임계치 이상의 크기를 갖는 경우, 더 많은 분할 영역을 갖도록 분할될 수 있다. 또한, 객체 영상을 분할하는 영역들 각각의 크기는 서로 동일하지 않을 수 있다.Referring again to FIG. 5, the object image extractor 520 may divide the object image into one or more regions based on the size of the object image. Each of the one or more regions may be square. For example, the object image extractor 520 may determine the number or size of regions for dividing the object image based on the size of the object image. For example, when the object image is relatively large or has a size greater than or equal to a predetermined threshold, it may be divided to have more divided areas. Also, the sizes of regions that divide the object image may not be the same.

또한 객체 영상 추출부(520)는 객체 영상이 정방형이 아닌 경우, 객체 영상을 업샘플링(up-sampling) 또는 다운샘플링(down-sampling)하여 객체 영상을 정방형으로 변환한 후, 객체 영상을 하나 이상의 영역들로 분할할 수 있다. 예컨대, 객체 영상은 객체 영상 추출부(520)에서 추출된 객체에 대해 해당 객체를 둘러싸는 사각형 박스를 기초로 획득되므로 객체 영상이 정방형이 아닐 수 있다. 이 경우에 객체 영상 추출부(520)는 해당 객체 영상에 대해 하나 이상의 영역들로 분할할 수도 있겠으나, 객체 영상의 가로나 세로 방향으로 업샘플링 또는 다운샘플링 함으로써 정방형의 객체 영상을 획득하고, 획득된 정방형의 객체 영상을 하나 이상의 영역들로 분할할 수도 있다.In addition, when the object image is not square, the object image extracting unit 520 converts the object image to a square by up-sampling or down-sampling the object image, and then converts one or more object images. Can be divided into areas. For example, the object image is obtained based on a rectangular box surrounding the object with respect to the object extracted by the object image extracting unit 520, so the object image may not be square. In this case, the object image extraction unit 520 may divide the object image into one or more regions, but obtains and acquires a square object image by upsampling or downsampling the object image in the horizontal or vertical direction. The square object image may be divided into one or more regions.

예컨대, 도 8을 참조하면, 객체 영상(800)은 가로 9픽셀 및 세로 12픽셀로 구성되어 정방형이 아닐 수 있다. 이 경우, 본 개시에 따르면, 객체 영상(800)을 3x3 크기의 정방형 영역으로 분할할 수도 있으나(이 경우, (객체 영상의 가로 크기/분할 영역의 가로 크기) x (객체 영상의 세로 크기/분할 영역의 세로 크기) = (9/3) x (12/3) = 12, 총 12개의 영역들을 가진다), 객체 영상(800)의 가로를 업샘플링 하여 가로 12픽셀 및 세로 12픽셀로 구성되는 영상을 획득하고, 이를 3x3 크기의 영역으로 분할하여 총 16개의 영역으로 분할할 수도 있다. 객체 영상을 분할하는 하나 이상의 영역들의 형태는 정방형으로 한정되지 않는다. 예컨대, 상기 영역은 n과 m이 상이한 양의 정수인 n x m의 형태를 가질 수도 있다. 이러한 경우, 전술한 업샘플링 또는 다운 샘플링이 수행되지 않을 수도 있다.For example, referring to FIG. 8, the object image 800 may be composed of 9 pixels horizontally and 12 pixels vertically, and thus may not be a square. In this case, according to the present disclosure, the object image 800 may be divided into a 3x3 square area (in this case, (the horizontal size of the object image/the horizontal size of the divided area) x (the vertical size/division of the object image) The vertical size of the area) = (9/3) x (12/3) = 12, has a total of 12 areas), an image consisting of 12 horizontal pixels and 12 vertical pixels by upsampling the horizontal of the object image 800 It is also possible to obtain and divide it into a 3x3 sized area and divide it into a total of 16 areas. The shape of one or more areas for dividing the object image is not limited to a square shape. For example, the region may have a shape of n x m in which n and m are different positive integers. In this case, the above-described up-sampling or down-sampling may not be performed.

다시 도 5를 참조하여, 색상 분포 분석부(530)는 객체 영상 추출부(520)에서 분할된 영역들 각각에 대해 색상 분포 정보를 획득하고, 색상 분포 정보에 기초하여 영역들 중 적어도 일부에 대해 하나 이상의 가중치를 결정할 수 있다.Referring back to FIG. 5, the color distribution analysis unit 530 obtains color distribution information for each of the areas divided by the object image extracting unit 520, and determines at least some of the areas based on the color distribution information. One or more weights can be determined.

색상 분포 정보는 n(n은 1보다 큰 정수)개의 색상 표현 범위의 각각에 대한 정보를 포함할 수 있다. 색상 표현 범위는 영상 획득 장치의 종류, 성능 등에 따라 달라질 수 있다. 또한, 예컨대, R(red)에 대한 "색상"은 8비트의 영상에서 픽셀값이 (R, G, B) = (255,0,0)을 가지는 픽셀의 색상만을 의미할 수 있으나, R에 대한 "색상 표현 범위"는 상기 픽셀값이 (R, G, B)= (255,0,0)인 경우뿐만 아니라 상기 픽셀값을 기준으로 소정의 범위 내에 있는 유사 색상을 포함하는 의미이다. 예컨대, R에 대한 "색상 표현 범위"는 (R, G, B) = (150~255, 0~100, 0~100)의 범위일 수 있다. 즉, (R, G, B) = (150, 100, 100)인 픽셀도 적색(R)의 색상 표현 범위에 포함되는 것으로 정의할 수 있다. 상기 "색상 표현 범위"는 식별하고자 하는 색상에 대해 정의될 수 있다. 전술한 예에서는 적색의 색상 표현 범위를 기준으로 설명하였으나, 녹색(G) 또는 청색(B)의 색상 표현 범위가 정의될 수도 있다. 또는 R, G, B 중 일부 또는 전부를 조합하여 표현되는 임의의 색상(황색, 주황색, 하늘색 등)에 대한 색상 표현 범위를 정의할 수도 있다. 영상에 포함된 객체 중 예컨대, 주황색으로 표현되는 객체의 영역을 강화하고자 할 경우, 색상 분포 정보의 분석 결과, 주황색의 색상 표현 범위에 포함되는 픽셀이 다수이거나 지배적인 영역에 대해 가중치를 적용함으로써, 본 개시에 따른 영상 강화를 수행할 수 있다. 가중치를 적용하는 방법은 전술한 바와 같다.The color distribution information may include information on each of n (n is an integer greater than 1) color expression ranges. The color expression range may vary depending on the type and performance of the image acquisition device. In addition, for example, "color" for R(red) may mean only the color of a pixel having a pixel value of (R, G, B) = (255,0,0) in an 8-bit image. For "color expression range", it is meant not only when the pixel value is (R, G, B) = (255, 0, 0), but also includes a similar color within a predetermined range based on the pixel value. For example, the "color expression range" for R may be in the range of (R, G, B) = (150 to 255, 0 to 100, 0 to 100). That is, a pixel with (R, G, B) = (150, 100, 100) may also be defined as being included in the color expression range of red (R). The "color expression range" may be defined for a color to be identified. In the above example, the description has been made based on the color expression range of red, but the color expression range of green (G) or blue (B) may be defined. Alternatively, a color expression range for an arbitrary color (yellow, orange, sky blue, etc.) expressed by combining some or all of R, G, and B may be defined. In the case of reinforcing the area of an object expressed in orange, for example, among the objects included in the image, as a result of analyzing the color distribution information, by applying a weight to the area where the number of pixels included in the color expression range of orange is multiple or dominant Image enhancement according to the present disclosure may be performed. The method of applying the weight is as described above.

영상 획득 장치가 R, G(green), B(blue)의 3가지 색요소의 조합에 의해 색상을 표현한다면, 색상 분포 정보는 3개의 색요소의 일부 또는 전부에 대한 정보를 포함할 수 있다. 색요소가 R, G, B, Y(yellow), P(purple) 5가지라면 색상 분포 정보는 5개의 색요소의 일부 또는 전부에 대한 정보를 포함할 수 있다. If the image acquisition apparatus expresses color by a combination of three color elements of R, G (green), and B (blue), the color distribution information may include information on some or all of the three color elements. If the color elements are R, G, B, Y (yellow), and P (purple), the color distribution information may include information on some or all of the five color elements.

X-Ray 판독 기기가 촬영한 물품에 관한 X-Ray 영상에 있어서, 영상에 포함되어 있는 객체들의 물성(예를 들어, 해당 객체가 유기물, 무기물, 금속 등인지 여부)에 따라 다른 색상 표현 범위를 적용한 X-Ray 영상이 사용되고 있다. 판독원은 색상이 부가된 X-Ray 영상을 판독함으로써, 영상에 포함된 객체의 형태뿐만 아니라, 객체의 물성에 대해서도 어느 정도의 식별이 가능하다. 본 개시의 영상 강화는 객체의 물성에 따른 색상이 부가된 X-Ray 영상을 입력 영상으로 하여, 색상 분포 정보를 분석하고, 이에 기초하여 특정 색상의 영역을 강화함으로써, 영상에 포함된 객체 검출의 정확도와 영상을 판독하는 판독원의 가독성을 향상시킬 수 있다.In the X-ray image of an article photographed by an X-ray reader, different color expression ranges are determined depending on the physical properties of the objects included in the image (for example, whether the object is an organic material, inorganic material, metal, etc.). The applied X-ray image is being used. By reading the color-added X-ray image, the reader can identify not only the shape of the object included in the image, but also the physical properties of the object to some extent. The image enhancement of the present disclosure uses an X-ray image to which a color according to the physical property of an object is added as an input image, analyzes color distribution information, and reinforces a specific color region based on this, thereby detecting objects included in the image. It can improve the accuracy and readability of the reader reading the image.

도 7은 본 개시의 일 실시예에 따른 객체의 물성에 기초하여 색상이 표현된 영상을 나타내는 도면이다.7 is a diagram illustrating an image in which colors are expressed based on physical properties of an object according to an embodiment of the present disclosure.

도 7을 참조하면, X-Ray 판독 기기에 의해 촬영된 가방 영상(700), 의약품용기 영상(710) 및 여행자수화물 캐리어 영상(720)을 나타낸다. 가방 고리(702), 가방 지퍼(704), 의약품(712) 및 병(722)의 경우 각각 객체의 물성에 따라 색상 표현 범위(적용된 색상)가 상이함을 확인할 수 있다. 한편, 가방 고리(702), 가방 지퍼(704), 의약품(712) 및 병(722)은 다른 객체들과 구분될 수 있도록 비교적 선명하게 색상이 표현되어 있는 반면에, 수화물 내의 임의의 내용물(724)의 경우에는 여행자 수화물 영상(720)에서 그 임의의 내용물(724)이 무엇인지도 확인하기 어렵고 다른 객체들과 구분하기에도 용이하지 않음을 알 수 있다. 이것은 객체의 물성에 기인한 것이다. 예컨대, 금속이나 무기물은 배경과 뚜렷이 구분될 수 있도록 비교적 선명하고 뚜렷한 색상으로 표현되는 반면, 유기물은 옅은 색상으로 표현되어 배경과의 구분이 뚜렷하지 않게 된다. 유기물을 표현하는 색상의 영역에 대해서는 해당 색상을 강화하는 방법을 통해 배경과 뚜렷하게 구분될 수 있는 선명하고 뚜렷한 색상으로 강화할 수 있다.Referring to FIG. 7, a bag image 700, a medicine container image 710, and a traveler's luggage carrier image 720 captured by an X-ray reader are shown. In the case of the bag loop 702, the bag zipper 704, the medicine 712, and the bottle 722, it can be seen that the color expression range (applied color) is different according to the physical properties of the object. On the other hand, the bag loop 702, the bag zipper 704, the medicine 712, and the bottle 722 are colored relatively clearly so that they can be distinguished from other objects, while any contents 724 in the luggage In the case of ), it can be seen that it is difficult to confirm what the arbitrary contents 724 are in the traveler's luggage image 720 and it is not easy to distinguish them from other objects. This is due to the physical properties of the object. For example, metals or inorganic materials are expressed in a relatively clear and clear color so that they can be clearly distinguished from the background, while organic materials are expressed in a light color, so that the distinction from the background is not clear. In the area of the color expressing organic matter, the color can be strengthened to a clear and distinct color that can be clearly distinguished from the background by enhancing the color.

다시 말해, 객체의 물성에 따라 색상 표현 범위가 상이하다는 특징을 이용하여, 색상 표현 범위에 따라 영상의 강화 정도를 다르게 할 필요가 있다. 이를 위해, 분할된 영역들 각각에 대한 색상 분포를 분석하여 적어도 일부의 영역에 대해 가중치를 적용할 수 있다.In other words, it is necessary to vary the degree of enhancement of the image according to the color expression range by using the feature that the color expression range is different according to the physical properties of the object. To this end, a weight may be applied to at least some of the regions by analyzing a color distribution for each of the divided regions.

상기 하나 이상의 가중치는 n개의 색상 표현 범위 또는 색상을 표현하는 n개의 색요소 중 적어도 일부에 대한 가중치를 포함할 수 있다. 예컨대, 하나의 영역이 n개의 색상 표현 범위 또는 색요소를 가진다고 하면, 해당 영역에서의 가중치의 개수는 1부터 n개를 가질 수 있다.The one or more weights may include weights for at least some of n color expression ranges or n color elements representing colors. For example, if one region has n color expression ranges or color elements, the number of weights in the corresponding region may have from 1 to n.

예컨대, 하나의 영역에 대해 하나의 가중치가 결정되는 경우, 상기 하나의 영역에 포함된 모든 색요소 또는 모든 색상 표현 범위에 대해 상기 결정된 가중치를 적용할 수 있다. 또는 상기 하나의 영역에 포함된 모든 색요소 또는 모든 색상 표현 범위 중 적어도 일부에 대해 상기 결정된 가중치를 적용할 수도 있다. 예컨대, 영상 강화를 위해, n개의 색요소 중 소정의 색요소 또는 n 개의 색상 표현 범위 중 소정의 색상 표현 범위에 대해서만 상기 결정된 가중치를 적용할 수 있다.For example, when one weight is determined for one region, the determined weight may be applied to all color elements or all color expression ranges included in the one region. Alternatively, the determined weight may be applied to at least a part of all color elements or all color expression ranges included in the one area. For example, in order to enhance an image, the determined weight may be applied only to a predetermined color element among n color elements or a predetermined color expression range among n color expression ranges.

또는 예컨대, n개의 색요소 또는 n개의 색상 표현 범위의 각각에 대해 가중치가 결정될 수 있다. 즉, 하나의 영역에 대한 가중치의 개수는 n일 수 있다. 이 경우, 상기 영역에 포함된 모든 색요소 또는 색상 표현 범위의 각각에 대응되는 가중치를 해당하는 색요소 또는 색상 표현 범위에 적용할 수 있다. 가중치는 영상 강화의 대상이 되는 소정의 색요소 또는 색상 표현 범위에 대해 상대적으로 높은 가중치가 부여될 수 있다. 예컨대, 1보다 큰 가중치가 부여되어 해당 색요소의 값 또는 해당 색상 표현 범위에 속하는 픽셀값에 곱해질 수 있다.Or, for example, a weight may be determined for each of n color elements or n color expression ranges. That is, the number of weights for one region may be n. In this case, a weight corresponding to each of all color elements or color expression ranges included in the region may be applied to a corresponding color element or color expression range. As for the weight, a relatively high weight may be assigned to a predetermined color element or a color expression range that is an object of image enhancement. For example, a weight greater than 1 may be assigned and multiplied by a value of a corresponding color element or a pixel value belonging to a corresponding color expression range.

또는 예컨대, 1보다 크고 n보다 작은 m개의 색요소 또는 색상 표현 범위의 각각에 대해 가중치가 결정될 수 있다. 즉, 하나의 영역에 대한 가중치의 개수는 m일 수 있다. 이 경우, 상기 영역에 포함된 색요소 또는 색상 표현 범위 중 가중치가 부여된 색요소 또는 색상 표현 범위에 대해서만 상기 부여된 가중치를 적용할 수 있다. 영상 강화의 대상이 되는 소정의 색요소 또는 색상 표현 범위에 대해 상대적으로 높은 가중치가 부여되는 것은 전술한 바와 같다.Alternatively, for example, a weight may be determined for each of m color elements or color expression ranges greater than 1 and less than n. That is, the number of weights for one region may be m. In this case, the assigned weight may be applied only to a color element or color expression range to which a weight is assigned among the color elements or color expression ranges included in the area. As described above, a relatively high weight is assigned to a predetermined color element or color expression range that is an object of image enhancement.

전술한 바와 같이, n개의 색요소 또는 색상 표현 범위 중 소정의 색요소 또는 색상 표현 범위에 대해서는 가중치를 상대적으로 높게 결정할 수 있다. 예컨대, X-Ray 영상에 포함된 객체가 유기물인 경우 다른 물성(금속, 무기물 등)을 가진 객체에 비해 상대적으로 경계가 덜 선명하게 영상에 표현되는 경우가 많다. 이는 유기물인 객체의 색상이 주변의 다른 객체 또는 배경과 구분될 수 있을 정도로 선명하게 표현되지 않기 때문이다. 예컨대, 연한 주황색으로 표현됨으로써, 백색의 배경과 잘 구분되지 않는 경우가 있다. 따라서, 분할 영역 중 유기물을 나타내는 색상 표현 범위에 해당하는 부분에 대해서 상대적으로 높은 가중치를 부여함으로써, 해당 색상을 강화하여, 예컨대, 연한 주황색을 진한 주황색으로 변경할 수 있다. 이와 같은 방식으로 영상을 강화하여, 주변 객체 또는 배경과, 강화의 대상이 되는 객체의 구분을 보다 명확히 할 수 있다.As described above, the weight may be determined to be relatively high for a predetermined color element or color expression range among n color elements or color expression ranges. For example, when an object included in an X-ray image is an organic material, it is often expressed in an image with a relatively less clear boundary than an object having other physical properties (metal, inorganic, etc.). This is because the colors of organic objects are not clearly expressed so that they can be distinguished from other objects or backgrounds around them. For example, by being expressed in light orange, there are cases where it is difficult to distinguish well from a white background. Accordingly, by assigning a relatively high weight to a portion of the divided area corresponding to the color expression range representing the organic matter, the corresponding color can be enhanced, and, for example, light orange can be changed to dark orange. By reinforcing the image in this way, it is possible to more clearly distinguish between the surrounding object or the background and the object to be reinforced.

상대적으로 높은 가중치가 부여되는 상기 소정의 색요소 또는 색상 표현 범위는 하나 이상일 수 있다. 예컨대, 전체 색요소 또는 색상 표현 범위가 n개일 때, 상대적으로 높은 가중치가 부여되는 상기 소정의 색요소 또는 색상 표현 범위는 1 내지 n개일 수 있다. 상기 소정의 색요소 또는 색상 표현 범위가 복수 개일 때, 각각에 대해 요구되는 영상 강화의 정도는 상이할 수 있으며, 그에 따라 각각에 대해 상이한 가중치가 부여될 수 있다. 예컨대, 금속->무기물->유기물의 순서로 영상이 선명하게 표현될 때, 유기물에 대한 색요소 또는 색상 표현 범위에 대해서만 상대적으로 높은 가중치를 부여할 수도 있으나, 무기물과 유기물에 대해 금속보다 상대적으로 높은 가중치를 부여할 수도 있다. 이때, 무기물보다는 유기물에 상대적으로 높은 가중치가 부여될 수 있다.The predetermined color element or color expression range to which a relatively high weight is assigned may be one or more. For example, when the total number of color elements or color expression ranges is n, the predetermined color elements or color expression ranges to which a relatively high weight is assigned may be 1 to n. When there are a plurality of predetermined color elements or color expression ranges, the degree of image enhancement required for each may be different, and different weights may be assigned to each accordingly. For example, when images are clearly expressed in the order of metal->inorganic->organic substances, a relatively high weight may be given only to the color element or color expression range for organic substances, but for inorganic substances and organic substances It can also be given a high weight. In this case, a relatively high weight may be given to organic substances rather than inorganic substances.

분할된 영역들 각각에 대해 색상 분포 정보를 획득하고, 가중치를 결정하는 구체적인 과정은 도 8을 참고하여 자세히 설명한다.A detailed process of obtaining color distribution information for each of the divided regions and determining a weight will be described in detail with reference to FIG. 8.

도 8은 본 개시의 일 실시예에 따른 영상의 색상 분포 정보에 기초하여 출력 영상을 생성하는 과정을 설명하기 위한 도면이다.8 is a diagram for describing a process of generating an output image based on color distribution information of an image according to an exemplary embodiment of the present disclosure.

도 8을 참조하면, 객체 영상(800)은 제1 영역(810), 제2 영역(820) 등 하나 이상의 영역들로 분할될 수 있다. 객체 영상(800)에서 영역들을 분할하는 과정에 대해서는 도 5의 객체 영상 추출부(520)에 대해서 설명한 바와 같다. 이하에서 제1 영역(810)에서 색상 분포 정보가 획득되고 가중치가 결정되는 과정에 대해 자세히 설명한다. 제1 영역(810)은 3x3 크기의 영역으로서 총 9개의 픽셀을 가지고, 5개(n=5)의 색상 표현 범위(이하, 색상 표현 범위는 색요소로 치환될 수 있음)들을 가지는 것으로 가정한다. 일 실시예에 따른 영상 강화 장치는 제1 영역(810)에 대해 5개의 색상 표현 범위에 대한 정보를 포함하는 색상 분포 정보를 획득하고, 획득된 색상 분포 정보에 기초하여 3x3 크기의 영역 중 적어도 일부에 대해 하나 이상의 가중치를 결정할 수 있다. Referring to FIG. 8, the object image 800 may be divided into one or more regions such as a first region 810 and a second region 820. The process of dividing regions in the object image 800 is the same as described for the object image extracting unit 520 of FIG. 5. Hereinafter, a process of obtaining color distribution information and determining a weight in the first region 810 will be described in detail. It is assumed that the first region 810 has a total of 9 pixels as a 3x3 size region and has 5 (n=5) color expression ranges (hereinafter, the color expression range may be replaced by color elements). . The image enhancement apparatus according to an embodiment acquires color distribution information including information on five color expression ranges for the first area 810, and at least a part of the 3x3 sized area based on the acquired color distribution information. One or more weights can be determined for.

또는 영상 강화의 대상이 되는 소정의 색상 표현 범위에 대한 정보만을 색상 분포 정보로서 획득하고 이용할 수도 있다. 예컨대, 소정의 색상 표현 범위에 대한 분포 정보가 소정의 임계치 이상인 경우, 해당 영역은 강화의 대상으로 결정되고, 해당 영역에 상대적으로 높은 가중치가 부여될 수 있다.Alternatively, only information on a predetermined color expression range, which is an object of image enhancement, may be acquired and used as color distribution information. For example, when distribution information on a predetermined color expression range is greater than or equal to a predetermined threshold, the corresponding area is determined as a target for enhancement, and a relatively high weight may be assigned to the corresponding area.

색상 분포 정보에 기초하여 가중치를 결정하는 일 실시예를 보다 구체적으로 살펴보면, 분할된 영역들 각각에 대해서, n개의 색상 표현 범위 각각에 대한 정보를 반영하는 n개의 색상 채널 영상들이 획득될 수 있다. 예컨대, 제1 영역(810)은 5개(n=5)의 색상 표현 범위들에 대한 정보를 가지므로 5개의 색상 채널 영상들이 획득될 수 있으며, 이를 제1 색상 채널 영상(830), 제2 색상 채널 영상(840), 제3 색상 채널 영상(850), 제4 색상 채널 영상(860) 및 제5 색상 채널 영상(870)이라 한다. 또한 예컨대, X-Ray 판독 기기가 R, G, B, Y, P의 5가지 색요소를 지원하는 경우, 제1 색상 채널 영상(830), 제2 색상 채널 영상(840), 제3 색상 채널 영상(840), 제4 색상 채널 영상(860) 및 제5 색상 채널 영상(870)은 각각 R, G, B, Y 및 P의 색요소에 대응될 수 있다.Looking at an embodiment of determining a weight based on color distribution information in more detail, n color channel images reflecting information on each of n color expression ranges may be obtained for each of the divided regions. For example, since the first region 810 has information on five (n=5) color expression ranges, five color channel images can be obtained, and the first color channel image 830 and the second It is referred to as a color channel image 840, a third color channel image 850, a fourth color channel image 860, and a fifth color channel image 870. In addition, for example, when the X-ray reader supports five color elements of R, G, B, Y, and P, the first color channel image 830, the second color channel image 840, and the third color channel The image 840, the fourth color channel image 860, and the fifth color channel image 870 may correspond to color elements of R, G, B, Y, and P, respectively.

제1 내지 제5 색상 채널 영상(830~870)의 각각은 제1 영역(810)의 구성 픽셀들 각각의 색상 정보에 기초하여 해당 색상 정보에 대응하는 색상 채널 영상에 각 픽셀을 매핑시킴으로써 생성될 수 있다. 예컨대, 제1 픽셀(812)은 제3 색상 채널 영상(850)의 해당 위치의 픽셀(852)에 매핑되고, 또한 제2 픽셀(814)은 제1 색상 채널 영상(830)의 해당 위치의 픽셀(832)에 매핑되고, 또한 제3 픽셀(816)은 제5 색상 채널 영상(870)의 해당 위치의 픽셀(872)에 매핑되고, 또한 제4 픽셀(818)은 제2 색상 채널 영상(840)의 해당 위치의 픽셀(842)에 매핑되고, 또한 제5 픽셀(820)은 제5 색상 채널 영상(870)의 해당 위치의 픽셀(874)에 매핑되고, 또한 제6 픽셀(822)은 제5 색상 채널 영상(870)의 해당 위치의 픽셀(876)에 매핑되고, 또한 제7 픽셀(824)은 제2 색상 채널 영상(840)의 해당 위치의 픽셀(844)에 매핑되고, 또한 제8 픽셀(826)은 제5 색상 채널 영상(870)의 해당 위치의 픽셀(878)에 매핑되고, 또한 제9 픽셀(828)은 제5 색상 채널 영상(870)의 해당 위치의 픽셀(880)에 매핑됨으로써, 상기 제1 내지 제5 색상 채널 영상(830~870)이 생성될 수 있다.Each of the first to fifth color channel images 830 to 870 is generated by mapping each pixel to a color channel image corresponding to the corresponding color information based on the color information of each of the constituent pixels of the first region 810. I can. For example, the first pixel 812 is mapped to the pixel 852 at the corresponding position of the third color channel image 850, and the second pixel 814 is the pixel at the corresponding position of the first color channel image 830. 832, and the third pixel 816 is mapped to the pixel 872 at the corresponding position of the fifth color channel image 870, and the fourth pixel 818 is mapped to the second color channel image 840 ), and the fifth pixel 820 is mapped to the pixel 874 at the corresponding position of the fifth color channel image 870, and the sixth pixel 822 is The five color channel image 870 is mapped to the pixel 876 at the corresponding position, and the seventh pixel 824 is mapped to the pixel 844 at the corresponding position of the second color channel image 840, and The pixel 826 is mapped to the pixel 878 at the corresponding position of the fifth color channel image 870, and the ninth pixel 828 is mapped to the pixel 880 at the corresponding position of the fifth color channel image 870. By mapping, the first to fifth color channel images 830 to 870 may be generated.

한편, 색상 표현 범위가 최대 n개인 경우, n보다 적은 수의 색상 채널 영상들이 획득될 수 있는데, 예컨대, 제1 영역(810)의 경우 제4 색상 채널 영상(860)에 해당되는 색상을 가진 픽셀이 존재하지 않기 때문에, 제4 색상 채널 영상(860)을 제외한 총 4개의 색상 채널 영상들이 획득될 수 있다.Meanwhile, when the color expression range is at most n, a number of color channel images less than n may be obtained. For example, in the case of the first region 810, a pixel having a color corresponding to the fourth color channel image 860 Since this does not exist, a total of four color channel images excluding the fourth color channel image 860 may be obtained.

색상 채널 영상들이 획득되면, 제1 색상 채널 영상(830), 제2 색상 채널 영상(840), 제3 색상 채널 영상(850), 제4 색상 채널 영상(860) 및 제5 색상 채널 영상(870)에 가중치 a1, a2, a3, a4 및 a5를 각각 적용할 수 있다.When color channel images are acquired, a first color channel image 830, a second color channel image 840, a third color channel image 850, a fourth color channel image 860, and a fifth color channel image 870 are obtained. ) Can be applied to weights a1, a2, a3, a4, and a5, respectively.

가중치는 각 영역을 구성하는 픽셀들의 색상 분포를 고려하여 결정될 수 있으며, 예컨대, 픽셀들의 색상 분포에 비례하도록 가중치가 결정될 수 있다. 또는, 가중치는 소정의 색상 표현 범위에 대해서는 가중치를 상대적으로 높게, 나머지 색상 표현 범위에 대해서는 가중치를 상대적으로 낮게 결정할 수 있다. The weight may be determined in consideration of the color distribution of pixels constituting each region, and for example, the weight may be determined in proportion to the color distribution of the pixels. Alternatively, the weight may be determined to have a relatively high weight for a predetermined color expression range and a relatively low weight for the remaining color expression range.

다시 도 5를 참조하여, 영상 강화부(540)는 색상 분포 분석부(530)에서 결정된 하나 이상의 가중치를 하나 이상의 영역들 중 적어도 일부에 적용하여 객체 영상에 대한 제1 출력 영상을 생성할 수 있다.Referring back to FIG. 5, the image enhancement unit 540 may generate a first output image for the object image by applying one or more weights determined by the color distribution analysis unit 530 to at least some of the one or more regions. .

도 8을 참조하면, 제1 색상 채널 영상(830), 제2 색상 채널 영상(840), 제3 색상 채널 영상(850), 제4 색상 채널 영상(860) 및 제5 색상 채널 영상(870)에 가중치 a1, a2, a3, a4 및 a5를 적용하고, 가중치가 적용된 상기 제1 내지 제5 색상 채널 영상을 결합하여 가중치가 적용된 제1 영역(810-1)이 획득될 수 있다. 그리고, 상기 객체 영상(800)의 나머지 영역들에 대해서도 상기 과정을 반복함으로써, 최종적으로 제1 출력 영상이 생성될 수 있다. 가중치는 각 영역을 구성하는 픽셀들의 색상 분포를 고려하여 결정되고 또한 소정의 색상 표현 범위에 대해서는 상대적으로 높은 가중치가, 나머지 색상 표현 범위에 대해서는 상대적으로 낮은 가중치가 결정될 수 있다. 예컨대, 각 분할 영역에서 유기물을 나타내는 색상에 해당되는 부분은 배경과의 구분이 뚜렷하지 않아 경계 부분이 영상에서 상대적으로 명확하게 표현되지 않으므로 가중치가 상대적으로 높게 결정되고, 금속을 나타내는 색상에 해당되는 부분은 배경과의 구분이 비교적 뚜렷하므로 경계 부분이 영상에서 상대적으로 명확하게 표현되기 때문에 가중치가 상대적으로 낮게 결정될 수 있다. 가중치를 적용한다는 것은 전술한 바와 같이, 강화되는 영역 내 픽셀을 가중치가 곱해진 새로운 픽셀값으로 치환하는 것을 의미할 수 있다. Referring to FIG. 8, a first color channel image 830, a second color channel image 840, a third color channel image 850, a fourth color channel image 860, and a fifth color channel image 870. The weights a1, a2, a3, a4, and a5 are applied to, and the weighted first region 810-1 may be obtained by combining the first to fifth color channel images to which the weight is applied. In addition, the first output image may be finally generated by repeating the above process for the remaining areas of the object image 800. The weight may be determined in consideration of color distribution of pixels constituting each region, and a relatively high weight may be determined for a predetermined color expression range, and a relatively low weight may be determined for the remaining color expression range. For example, the part corresponding to the color representing the organic matter in each divided area is not clearly distinguished from the background, so the border part is not expressed relatively clearly in the image, so the weight is determined relatively high, and the color corresponding to the color representing the metal Since the part has a relatively clear distinction from the background, the weight can be determined relatively low because the boundary part is expressed relatively clearly in the image. As described above, applying a weight may mean replacing a pixel in an area to be enhanced with a new pixel value multiplied by the weight.

또는 전술한 바와 같이, 객체 영상(800)에 포함된 영역(810)의 색상 분포 분석 결과, 영상 강화의 대상이 되는 소정의 색상 표현 범위가 지배적이거나 소정의 임계치 이상의 분포를 갖는 경우, 해당 영역(810)에 대해 상대적으로 높은 가중치를 설정할 수 있다. Alternatively, as described above, as a result of analyzing the color distribution of the area 810 included in the object image 800, when a predetermined color expression range to be image enhancement is dominant or has a distribution greater than a predetermined threshold, the corresponding area ( 810) can be set to a relatively high weight.

예를 들어, 강화의 대상이 되는 색상 표현 범위가 적색(R)이고, 소정 영역의 지배적 색상이 적색일 때, 해당 영역에 1 이상의 가중치가 적용될 수 있다. 예컨대, 상기 소정 영역 내 픽셀의 (R, G, B) = (120, 10, 10) 일 때, 가중치 2를 적용함으로써, (R, G, B) = (240, 20, 20)으로 강화할 수 있다. 또는, R, G, B 중 일부, 예컨대, 적색에만 가중치 2가 적용되어, (R, G, B) = (240, 10, 10)으로 강화할 수도 있다. 또는, R, G, B 중 일부, 예컨대, 적색에는 가중치 2가 적용되고, 다른 일부, 예컨대, 녹색과 청색에는 가중치 0.5가 적용되어, (R, G, B) = (240, 5, 5)으로 강화할 수도 있다. 상기 예시는 적색을 강화하는 경우에 관한 것이나, 이에 한정되지 않으며, 임의의 색상을 강화의 대상이 되는 색상으로 결정할 수 있다.For example, when the color expression range to be reinforced is red (R) and the dominant color of a predetermined region is red, one or more weights may be applied to the corresponding region. For example, when (R, G, B) = (120, 10, 10) of a pixel in the predetermined area, by applying a weight of 2, it can be enhanced to (R, G, B) = (240, 20, 20). have. Alternatively, a weight of 2 may be applied only to some of R, G, and B, for example, red, and may be enhanced to (R, G, B) = (240, 10, 10). Alternatively, a weight of 2 is applied to some of R, G, B, such as red, and a weight of 0.5 is applied to other parts, such as green and blue, so that (R, G, B) = (240, 5, 5) It can also be strengthened with. The above example relates to a case of enhancing red, but is not limited thereto, and an arbitrary color may be determined as a color to be enhanced.

상기 소정의 임계치 및/또는 가중치는 임의로 결정될 수도 있고, 축적된 영상 처리 정보에 기초하여 결정될 수도 있다. 또는, 인공지능 기반 학습 모델을 통해 상기 임계치 및/또는 가중치에 관한 학습을 수행함으로써, 최적의 임계치 및/또는 가중치가 계속하여 업데이트될 수 있다.The predetermined threshold and/or weight may be arbitrarily determined or may be determined based on accumulated image processing information. Alternatively, by performing learning on the threshold and/or weight through an artificial intelligence-based learning model, the optimal threshold and/or weight may be continuously updated.

또한, 영상 강화부(540)는 하나 이상의 영역들 중 적어도 일부에 대해 에지 기반 필터링 또는 평활화 필터링을 적용하여 객체 영상에 대한 제2 출력 영상을 생성할 수 있다. 또한, 영상 강화부(540)는 생성된 제1 출력 영상 및 제2 출력 영상에 기초하여 객체 영상에 대한 제3 출력 영상을 생성할 수 있다.Also, the image enhancement unit 540 may generate a second output image for the object image by applying edge-based filtering or smoothing filtering to at least a portion of one or more regions. In addition, the image enhancement unit 540 may generate a third output image for the object image based on the generated first and second output images.

에지 기반 필터링 또는 평활화 필터링은 영상의 컨트라스트(contrast)를 강화하기 위한 기법으로서, 예컨대 Wiener filtering, Unsharp mask filtering, Histogram equalization, linear contrast adjustment의 기법 등을 포함하나, 이에 제한되지 않으며, 영상의 컨트라스트를 강화하기 위한 기법들을 포함할 수 있다.Edge-based filtering or smoothing filtering is a technique for enhancing the contrast of an image, and includes, for example, Wiener filtering, Unsharp mask filtering, Histogram equalization, and linear contrast adjustment techniques, but is not limited thereto. It may include techniques to reinforce.

도 9는 본 개시의 일 실시예에 따른 색상 분포 정보를 이용하여 획득된 영상과 에지 기반 필터링 또는 평활화 필터링을 적용하여 획득된 영상을 결합한 최종 출력 영상을 획득하는 과정을 설명하기 위한 도면이다. 도 9의 객체 영상(900), 제1 영역(910) 및 가중치가 적용된 제1 영역(910-1)은 도 8의 객체 영상(800), 제1 영역(810) 및 가중치가 적용된 제1 영역(810-1)에 각각 대응될 수 있다. 도 9를 참조하면, 영상 강화부(540)는 제1 영역(910)에 대해 상기 필터링이 적용된 제1 영역(910-2)을 생성할 수 있으며, 가중치가 적용된 제1 영역(910-1)과 필터링이 적용된 제1 영역(910-2)을 결합하여 최종 제1 영역(910-3)을 생성할 수 있다. 그리고, 영상 강화부(540)는 나머지 영역들에도 상기와 같은 필터링 기법들이 적용된 제2 출력 영상 및 제1 출력 영상과 제2 출력 영상을 결합한 제3 출력 영상을 생성할 수 있다.FIG. 9 is a diagram for describing a process of obtaining a final output image obtained by combining an image obtained by using color distribution information and an image obtained by applying edge-based filtering or smoothing filtering according to an embodiment of the present disclosure. The object image 900, the first region 910, and the weighted first region 910-1 of FIG. 9 are the object image 800, the first region 810, and the weighted first region of FIG. 8 Each may correspond to (810-1). Referring to FIG. 9, the image enhancement unit 540 may generate a first region 910-2 to which the filtering has been applied for a first region 910, and a first region 910-1 to which a weight is applied. The final first region 910-3 may be generated by combining the filtered first region 910-2. Further, the image enhancement unit 540 may generate a second output image to which the above filtering techniques are applied to the remaining regions as well as a third output image by combining the first output image and the second output image.

가중치가 적용된 영역(예컨대, 910-1), 필터링이 적용된 영역(예컨대, 910-2) 및/또는 상기 둘을 이용한 최종 영역(910-3)을 생성하는 과정은 영역 단위로 수행될 수 있다. 그러나 이에 한정되지 않으며, 상기 과정은 객체 영상 단위로 수행될 수도 있다. 예컨대, 객체 영상에 포함된 영역의 각각에 대해 가중치를 적용하는 과정을 수행하여 가중치가 적용된 객체 영상(제1 출력 영상)을 획득할 수 있다. 또한, 객체 영상에 포함된 영역의 각각에 대해 상기 필터링을 적용하는 과정을 수행하여 객체 영상(제2 출력 영상)을 획득할 수 있다. 또한, 상기 가중치가 적용된 객체 영상과 상기 에지가 강화된 객체 영상을 결합함으로써, 상기 최종 영상(제3 출력 영상)을 생성할 수 있다.A process of generating a weighted area (eg, 910-1), a filtering area (eg, 910-2), and/or the final area 910-3 using the two may be performed in units of areas. However, the present invention is not limited thereto, and the process may be performed on an object image basis. For example, an object image (first output image) to which the weight is applied may be obtained by performing a process of applying a weight to each of the regions included in the object image. In addition, an object image (second output image) may be obtained by performing a process of applying the filtering to each of the regions included in the object image. In addition, the final image (the third output image) may be generated by combining the weighted object image and the edge-enhanced object image.

한편, 예컨대 분할 영역 내 유기물이 다른 물질에 비해 적게 포함된 경우에는, 제1 출력 영상에 제2 출력 영상을 결합함으로써 제1 출력 영상에 대한 영향이 상대적으로 적을 수 있는데, 이 경우 유기물을 나타내는 색상 분포 정보에 대한 가중치를 상대적으로 더 높게 결정할 수 있다. 또한 예컨대, 제1 출력 영상과 제2 출력 영상을 결합함으로써 영상 내 여러 객체가 겹쳐있는 경우에도 보다 정확한 객체 인식이 가능하게 할 수 있다.On the other hand, for example, when less organic matter is contained in the divided area than other materials, the influence on the first output image may be relatively small by combining the second output image with the first output image. In this case, the color representing the organic matter It is possible to determine a relatively higher weight for distribution information. In addition, for example, by combining the first output image and the second output image, even when several objects in the image overlap, more accurate object recognition may be possible.

도 10은 본 개시의 일 실시예에 따른 그래피컬 모델을 이용하여 최종 출력 영상을 획득하는 과정을 설명하기 위한 도면이다.10 is a diagram for explaining a process of obtaining a final output image using a graphical model according to an embodiment of the present disclosure.

일 실시예에 따른 영상 강화 장치는 색상 분포 정보에 포함된 색상 표현 범위들 각각을 개별 노드로 결정하고, 결정된 각 개별 노드간의 상대적인 관계 및 제1 출력 영상, 제2 출력 영상 및 제3 출력 영상과의 상대적인 관계를 이용하여, 계층적(hierarchical) 구조의 그래피컬 모델(graphical model)을 생성할 수 있다.The image enhancement apparatus according to an embodiment determines each of the color expression ranges included in the color distribution information as individual nodes, and determines a relative relationship between the determined individual nodes and a first output image, a second output image, and a third output image. By using the relative relationship of, a hierarchical structure of a graphical model can be created.

도 10을 참조하면, 각각의 분할 영역에서, 색상 분포 정보에 n개의 색상 표현 범위가 포함되어 있으면, 가장 하위 노드는 제1 색상 분포 정보(1010-1)부터 제n 색상 분포 정보(1010-n)까지 최대 n개의 노드를 포함할 수 있다. 그런 다음, 각 색상 분포 정보에 기초하여 해당 분할 영역 또는 해당 분할 영역의 색상 표현 범위들의 각각에 가중치를 적용하여 제1 출력 영상(1020)을 획득할 수 있다. 제1 출력 영상(1020)이 최종 출력 영상으로 결정될 수 있다. 또는 영상의 컨트라스트 강화 기법을 적용하여 획득된 제2 출력 영상(1030)을 더 생성하고, 제1 출력 영상(1020)과 제2 출력 영상(1030)을 기초로 제3 출력 영상(1040)을 생성할 수도 있다.Referring to FIG. 10, in each divided area, when n color expression ranges are included in the color distribution information, the lowest node is the first color distribution information 1010-1 to the nth color distribution information 1010 -n. ) Can contain up to n nodes. Then, the first output image 1020 may be obtained by applying a weight to each of the divided region or color expression ranges of the divided region based on each color distribution information. The first output image 1020 may be determined as the final output image. Alternatively, a second output image 1030 obtained by applying an image contrast enhancement technique is further generated, and a third output image 1040 is generated based on the first output image 1020 and the second output image 1030 You may.

도 11은 본 개시의 일 실시예에 따른 영상 강화 방법을 설명하기 위한 도면이다. 도 11의 영상 강화 방법은 도 5의 영상 강화 장치가 수행하는 방법으로서, 도 5의 영상 강화 장치에 관한 설명은 도 11의 영상 강화 방법에 적용될 수 있다.11 is a diagram for describing an image enhancement method according to an embodiment of the present disclosure. The image enhancement method of FIG. 11 is a method performed by the image enhancement apparatus of FIG. 5, and a description of the image enhancement apparatus of FIG. 5 may be applied to the image enhancement method of FIG. 11.

S1100 단계에서, 입력 영상을 수신할 수 있다.In step S1100, an input image may be received.

S1110 단계에서 입력 영상에 포함되어 있는 객체를 추출할 수 있다. 예컨대, 입력 영상의 픽셀값과 소정의 임계값을 비교하여 픽셀값을 이진화하고, 이진화된 픽셀값을 그룹핑함으로써 분석 대상 영상에 포함된 객체를 추출할 수 있다.In step S1110, an object included in the input image may be extracted. For example, an object included in the analysis target image may be extracted by binarizing the pixel value by comparing the pixel value of the input image with a predetermined threshold value, and grouping the binarized pixel values.

S1120 단계에서 객체를 포함하는 객체 영상을 하나 이상의 영역들로 분할할 수 있다. 예컨대, 객체 영상의 크기에 기초하여 객체 영상을 분할하는 영역들의 개수나 크기를 결정할 수 있다. 또한, 객체 영상을 분할하는 영역들 각각의 크기는 서로 동일하지 않을 수 있다. 또한, 예컨대 객체 영상이 정방형이 아닌 경우, 객체 영상을 업샘플링(up-sampling) 또는 다운샘플링(down-sampling)하여 객체 영상을 정방형으로 변환한 후, 객체 영상을 하나 이상의 영역들로 분할할 수 있다.In step S1120, an object image including an object may be divided into one or more regions. For example, the number or size of regions for dividing the object image may be determined based on the size of the object image. Also, the sizes of regions that divide the object image may not be the same. In addition, for example, when the object image is not square, the object image is converted into a square by up-sampling or down-sampling the object image, and then the object image can be divided into one or more regions. have.

S1130 단계에서 하나 이상의 영역들 각각에 대해 색상 분포 정보를 획득할 수 있다. 예컨대, 색상 분포 정보는 n(n은 1보다 큰 정수)개의 색상 표현 범위의 각각에 대한 정보를 포함할 수 있다.In step S1130, color distribution information may be obtained for each of one or more areas. For example, the color distribution information may include information on each of n (n is an integer greater than 1) color expression ranges.

S1140 단계에서, 색상 분포 정보에 기초하여, 하나 이상의 영역들 중 적어도 일부에 대해 하나 이상의 가중치를 결정할 수 있다. 예컨대, 하나 이상의 가중치는 n개의 색상 표현 범위 중 적어도 일부에 대한 가중치를 포함할 수 있다. 예컨대, 하나의 영역이 n개의 색상 표현 범위를 가진다고 하면, 해당 영역에서의 가중치의 개수는 1부터 n개를 가질 수 있다.In operation S1140, one or more weights may be determined for at least some of the one or more regions based on the color distribution information. For example, one or more weights may include weights for at least some of the n color expression ranges. For example, if one region has n color expression ranges, the number of weights in the corresponding region may range from 1 to n.

S1150 단계에서, 결정된 하나 이상의 가중치를 하나 이상의 영역들 중 적어도 일부에 적용하여 객체 영상에 대한 제1 출력 영상을 생성할 수 있다. In step S1150, a first output image for an object image may be generated by applying the determined one or more weights to at least a portion of one or more regions.

도 11에는 도시되지 않았으나, 하나 이상의 영역들 중 적어도 일부에 대해 에지 기반 필터링 또는 평활화 필터링을 적용하여 객체 영상에 대한 제2 출력 영상을 생성할 수 있다. 또한 예컨대, 생성된 제1 출력 영상 및 제2 출력 영상에 기초하여 객체 영상에 대한 제3 출력 영상을 생성할 수 있다Although not illustrated in FIG. 11, a second output image for an object image may be generated by applying edge-based filtering or smoothing filtering to at least a portion of one or more regions. In addition, for example, a third output image for an object image may be generated based on the generated first and second output images.

도 5 내지 도 11을 참조하여 설명한 실시예에서는 단일 객체를 포함하는 영상을 입력 받아, 객체와 배경을 분리하는 예를 설명하였다. 그러나, 반드시 이에 한정되지 않으며, 입력 영상이 둘 이상의 객체를 포함하는 영상일 수도 있다. 이 경우, 입력 영상으로부터 둘 이상의 객체와 배경을 구분하고, 둘 이상의 객체의 각각에 대해 위치 정보를 생성하여 이용할 수도 있다. 또한, 이 경우, 도 6을 참조한 설명에서, 복수의 픽셀 그룹이 형성된 경우, 가장 큰 형태로 형성된 픽셀 그룹뿐만 아니라 다른 픽셀 그룹에 대해서도 각각 객체에 대한 영역인 것으로 결정할 수 있다. 각각의 결정된 객체의 위치 정보를 생성하는 과정은 하나의 객체를 포함하는 영상에 대해 설명한 바와 동일하다.In the embodiment described with reference to FIGS. 5 to 11, an example of separating an object and a background by receiving an image including a single object has been described. However, the present invention is not necessarily limited thereto, and the input image may be an image including two or more objects. In this case, two or more objects and backgrounds may be distinguished from the input image, and location information may be generated and used for each of the two or more objects. Further, in this case, in the description with reference to FIG. 6, when a plurality of pixel groups are formed, it may be determined that not only the pixel group formed in the largest shape but also the other pixel groups are regions for the object. The process of generating the location information of each determined object is the same as described for an image including one object.

본 개시의 영상 강화 장치의 구성부들 및 영상 강화 방법의 단계들 중 적어도 일부는 인공지능 기반 또는 딥러닝 기반의 모델을 이용하여 수행될 수 있다. 예컨대, 객체 영상을 분할하여 생성되는 영역의 크기, 개수, 색상 분포 정보에 기초하여 결정되는 가중치, 본 개시에서 언급된 각종 임계치, 제2 출력 영상의 생성 여부 등은 인공지능 기반 또는 딥러닝 기반의 모델을 이용하여 학습될 수 있고, 학습된 모델에 따른 정보가 이용될 수 있다.At least some of the components of the image enhancement apparatus of the present disclosure and steps of the image enhancement method may be performed using an artificial intelligence-based or deep learning-based model. For example, the weight determined based on the size, number, and color distribution information of the area generated by dividing the object image, various thresholds mentioned in the present disclosure, whether or not to generate the second output image, etc. are based on artificial intelligence or deep learning. It can be learned using a model, and information according to the learned model can be used.

이하, 도 12 내지 도 17을 참고하여, 영상 분석 장치(112)가 수행하는 맥락 분석 방법의 일 실시예에 대해 설명한다.Hereinafter, an embodiment of a context analysis method performed by the image analysis apparatus 112 will be described with reference to FIGS. 12 to 17.

도 12의 영상 분석 장치(1200)는 도 1의 영상 분석 장치(112)의 일 실시예일 수 있다. 또는 도 12의 영상 분석 장치(1200)는, 도 1 의 영상 분석 장치(112)에 포함되거나, 별개로 구성되어 맥락 분석을 수행하는 장치일 수 있다.The image analysis apparatus 1200 of FIG. 12 may be an embodiment of the image analysis apparatus 112 of FIG. 1. Alternatively, the image analysis apparatus 1200 of FIG. 12 may be a device included in the image analysis apparatus 112 of FIG. 1 or configured separately to perform context analysis.

도 12를 참조하면, 영상 분석 장치(1200)는 특징 추출부(1210), 맥락 생성부(1220) 및/또는 특징 및 맥락 분석부(1230)를 포함할 수 있다. 다만, 이는 본 실시예를 설명하기 위해 필요한 일부 구성요소만을 도시한 것일 뿐, 영상 분석 장치(1200)에 포함된 구성요소가 전술한 예에 한정되는 것은 아니다.Referring to FIG. 12, the image analysis apparatus 1200 may include a feature extraction unit 1210, a context generation unit 1220, and/or a feature and context analysis unit 1230. However, this is only showing some components necessary for describing the present embodiment, and components included in the image analysis apparatus 1200 are not limited to the above-described examples.

영상 분석 장치(1200)는 입력 영상(분석 대상 영상)의 특징을 추출하고, 추출된 특징에 기초하여 맥락 정보를 생성하고, 추출된 특징 및 생성된 맥락 정보에 기초하여 분석 대상 영상을 분석할 수 있다. 예컨대, 영상 분석 장치(1200)는 추출된 특징 및 생성된 맥락 정보를 이용하여 영상을 분류하거나 관심 객체의 위치를 찾아낼 수 있다.The image analysis apparatus 1200 may extract features of an input image (analysis target image), generate context information based on the extracted features, and analyze the analysis target image based on the extracted features and the generated context information. have. For example, the image analysis apparatus 1200 may classify an image or find a location of an object of interest using the extracted feature and the generated context information.

영상 분석 장치(1200)의 입력 영상은 도 1의 영상 분석 장치(112)의 입력 영상과 동일할 수 있다.The input image of the image analysis device 1200 may be the same as the input image of the image analysis device 112 of FIG. 1.

특징 추출부(1210)는 입력 영상을 분석하여 영상의 특징을 추출할 수 있다. 예컨대, 상기 특징은 영상의 각 영역마다의 국소적인 특징일 수 있다. 일 실시예에 따른 특징 추출부(1210)는 일반적인 합성곱 신경망(Convolutional Neural Network, CNN) 기법 또는 풀링(pooling) 기법을 이용하여 입력 영상의 특징을 추출할 수 있다. 상기 풀링 기법은 맥스(max) 풀링 기법 및 평균(average) 풀링 기법 중 적어도 하나를 포함할 수 있다. 그러나, 본 개시에서 언급되는 풀링 기법은 맥스 풀링 기법 또는 평균 풀링 기법에 한정되지 않으며, 소정 크기의 영상 영역의 대표값을 획득하는 임의의 기법을 포함한다. 예컨대, 풀링 기법에 사용되는 대표값은 최대값 및 평균값 외에, 분산값, 표준 편차값, 중간값(mean value), 최빈값(most frequent value), 최소값, 가중 평균값 등 중 적어도 하나일 수 있다.The feature extractor 1210 may analyze the input image and extract features of the image. For example, the feature may be a local feature for each area of an image. The feature extractor 1210 according to an embodiment may extract features of an input image using a general convolutional neural network (CNN) technique or a pooling technique. The pooling technique may include at least one of a max pooling technique and an average pooling technique. However, the pooling technique referred to in the present disclosure is not limited to the max pooling technique or the average pooling technique, and includes any technique for obtaining a representative value of an image region of a predetermined size. For example, the representative value used in the pooling technique may be at least one of a variance value, a standard deviation value, a mean value, a most frequent value, a minimum value, and a weighted average value, in addition to the maximum value and the average value.

본 개시의 합성곱 신경망은 입력 데이터(영상)로부터 테두리, 선 색 등과 같은 "특징들(features)"을 추출하기 위해 이용될 수 있으며, 복수의 계층들(layers)을 포함할 수 있다. 각각의 계층은 입력 데이터를 수신하고, 해당 계층의 입력 데이터를 처리하여 출력 데이터를 생성할 수 있다. 합성곱 신경망은 입력된 영상 또는 입력된 특징맵(feature map)을 필터 커널들(filter kernels)과 컨볼루션하여 생성한 특징맵을 출력 데이터로서 출력할 수 있다. 합성곱 신경망의 초기 계층들은 입력으로부터 에지들 또는 그레디언트들과 같은 낮은 레벨의 특징들을 추출하도록 동작될 수 있다. 신경망의 다음 계층들은 눈, 코 등과 같은 점진적으로 더 복잡한 특징들을 추출할 수 있다. 합성곱 신경망의 구체적인 동작에 대해서는 도 16을 참고하여 후술한다.The convolutional neural network of the present disclosure may be used to extract “features” such as a border, a line color, and the like from input data (image), and may include a plurality of layers. Each layer may receive input data and may generate output data by processing the input data of the layer. The convolutional neural network may output an input image or a feature map generated by convolving an input feature map with filter kernels as output data. The initial layers of the convolutional neural network can be operated to extract low-level features such as edges or gradients from the input. The next layers of the neural network can gradually extract more complex features such as eyes, nose, etc. A detailed operation of the convolutional neural network will be described later with reference to FIG. 16.

합성곱 신경망은 컨볼루션 연산이 수행되는 합성곱 계층 외에도 풀링 연산이 수행되는 풀링 계층도 포함할 수 있다. 풀링 기법은 풀링 계층에서 데이터의 공간적 크기를 축소하는데 사용되는 기법이다. 구체적으로, 풀링 기법에는 해당 영역에서 최대값을 선택하는 맥스 풀링(max pooling) 기법과 해당 영역의 평균값을 선택하는 평균 풀링(average pooling) 기법이 있으며, 이미지 인식 분야에서는 일반적으로 맥스 풀링 기법이 사용된다. 풀링 기법에서는 일반적으로 풀링의 윈도우 크기와 간격(스트라이드, stride)을 같은 값으로 설정한다. 여기서, 스트라이드란 입력 데이터에 필터를 적용할 때 이동할 간격을 조절하는 것, 즉 필터가 이동할 간격을 의미하며, 스트라이드 또한 출력 데이터의 크기를 조절하기 위해 사용될 수 있다. 풀링 기법의 구체적인 동작에 대해서는 도 17을 참고하여 후술한다.The convolutional neural network may include a convolutional layer in which a convolution operation is performed, as well as a pooling layer in which a pooling operation is performed. The pooling technique is a technique used to reduce the spatial size of data in the pooling layer. Specifically, the pooling technique includes a max pooling technique that selects the maximum value in a corresponding area and an average pooling technique that selects an average value of the area. In the image recognition field, the max pooling technique is generally used. do. In the pooling technique, generally, the pooling window size and interval (stride) are set to the same value. Here, the stride refers to an interval to be moved when a filter is applied to input data, that is, an interval to which the filter is moved, and stride may also be used to adjust the size of output data. A detailed operation of the pooling technique will be described later with reference to FIG. 17.

본 개시의 일 실시예에 따른 특징 추출부(1210)는 분석 대상 영상의 특징을 추출하기 위한 전처리(pre-processing)로서, 분석 대상 영상에 필터링을 적용할 수 있다. 상기 필터링은 고속 푸리에 변환(Fast Fourier Transform, FFT), 히스토그램 평활화(histogram equalization), 모션 아티팩트(motion artifact) 제거 또는 노이즈(noise) 제거 등일 수 있다. 그러나, 본 개시의 필터링은 상기 열거한 방법으로 제한되지 않으며, 영상의 품질을 개선할 수 있는 모든 형태의 필터링을 포함할 수 있다. 또는 전처리로서 도 5 내지 도 11을 참조하여 설명한 영상의 강화가 수행될 수도 있다.The feature extractor 1210 according to an embodiment of the present disclosure may apply filtering to an analysis target image as pre-processing for extracting a feature of an analysis target image. The filtering may be Fast Fourier Transform (FFT), histogram equalization, motion artifact removal, or noise removal. However, the filtering of the present disclosure is not limited to the above-described methods, and may include any type of filtering capable of improving image quality. Alternatively, the image enhancement described with reference to FIGS. 5 to 11 may be performed as a pre-processing.

맥락 생성부(1220)는 특징 추출부(1210)로부터 추출된 입력 영상의 특징을 이용하여 입력 영상(분석 대상 영상)의 맥락 정보를 생성할 수 있다. 예컨대, 상기 맥락 정보는 분석 대상 영상의 전체 또는 일부 영역을 나타내는 대표값일 수 있다. 또한 상기 맥락 정보는 입력 영상의 전역적인 맥락 정보일 수 있다. 일 실시예에 따른 맥락 생성부(1220)는 합성곱 신경망 기법 또는 풀링 기법을 특징 추출부(1210)로부터 추출된 특징에 적용하여 맥락 정보를 생성할 수 있다. 상기 풀링 기법은 예컨대, 평균 풀링(average pooling) 기법일 수 있다.The context generator 1220 may generate context information of the input image (analysis target image) by using the features of the input image extracted from the feature extractor 1210. For example, the context information may be a representative value indicating the entire or partial area of the image to be analyzed. Further, the context information may be global context information of the input image. The context generator 1220 according to an embodiment may generate context information by applying a convolutional neural network technique or a pooling technique to a feature extracted from the feature extractor 1210. The pooling technique may be, for example, an average pooling technique.

특징 및 맥락 분석부(1230)는 특징 추출부(1210)에서 추출된 특징 및 맥락 생성부(1220)에서 생성된 맥락 정보에 기초하여 영상을 분석할 수 있다. 일 실시예에 따른 특징 및 맥락 분석부(1230)는 특징 추출부(1210)에서 추출된 영상의 각 영역마다의 국소적인 특징 및 맥락 생성부(1220)에서 재구성된 전역적인 맥락을 결합(concatenate)하는 등의 방식으로 함께 사용하여, 입력 영상을 분류하거나 입력 영상에 포함된 관심 객체의 위치 등을 찾는데 이용할 수 있다. 입력 영상 내 특정 2차원 위치에서의 정보는 국소적인 특징 정보뿐만 아니라 전역적인 맥락 정보까지 포함하게 되므로, 특징 및 맥락 분석부(1230)는 이들 정보를 이용함으로써, 실제 내용은 상이하지만 국소적인 특징 정보가 유사한 입력 영상들에 대해 보다 정확한 인식 또는 분류 등이 가능하게 된다. The feature and context analysis unit 1230 may analyze an image based on the feature extracted from the feature extraction unit 1210 and context information generated by the context generation unit 1220. The feature and context analysis unit 1230 according to an embodiment concatenates the local features of each region of the image extracted by the feature extraction unit 1210 and the global context reconstructed by the context generation unit 1220 It can be used together in such a way as to classify the input image or find the location of an object of interest included in the input image. Since the information at a specific two-dimensional position in the input image includes not only local feature information but also global context information, the feature and context analysis unit 1230 uses these information, so that the actual content is different but local feature information. It is possible to more accurately recognize or classify input images that have similar input images.

전술한 바와 같이, 본 개시의 일 실시예에 따른 발명은, 일반적인 합성곱 신경망 기법이 사용하는 국소적인 특징뿐만 아니라 전역적인 맥락 정보를 함께 사용함으로써, 보다 더 정확하고 효율적인 학습 및 영상 분석이 가능하게 된다. 이러한 관점에서 본 개시에 따른 발명이 적용된 신경망을 '맥락 분석을 통한 심층 신경망'이라 할 수 있다.As described above, the invention according to an embodiment of the present disclosure enables more accurate and efficient learning and image analysis by using global context information as well as local features used by a general convolutional neural network technique. do. From this point of view, the neural network to which the invention according to the present disclosure is applied may be referred to as a'deep neural network through context analysis'.

도 13은 본 개시의 일 실시예에 따른 영상의 맥락 정보를 생성하고 분석하는 과정을 나타내는 도면이다.13 is a diagram illustrating a process of generating and analyzing context information of an image according to an embodiment of the present disclosure.

도 13의 특징 추출부(1310), 맥락 생성부(1320), 및 특징 및 맥락 분석부(1330)는 각각 도 12의 특징 추출부(1210), 맥락 생성부(1220), 및 특징 및 맥락 분석부(1230)의 일 실시예일 수 있다.The feature extraction unit 1310, the context generation unit 1320, and the feature and context analysis unit 1330 of FIG. 13 are each of the feature extraction unit 1210, the context generation unit 1220, and the feature and context analysis of FIG. It may be an embodiment of the unit 1230.

도 13을 참조하면, 특징 추출부(1310)는 입력 영상(1312)을 이용하여 입력 영상(1312)으로부터 특징을 추출하고, 추출된 특징 정보를 포함하는 특징 영상(1314)을 생성할 수 있다. 상기 추출된 특징은 입력 영상의 국소 영역에 대한 특징일 수 있다. 상기 입력 영상(1312)은 영상 분석 장치의 입력 영상 또는 합성곱 신경망 모델 내의 각 계층에서의 특징맵을 포함할 수 있다. 또한 상기 특징 영상(1314)은 입력 영상(1312)에 대해 합성곱 신경망 기법 및/또는 풀링 기법을 적용하여 획득된 특징맵 및/또는 특징 벡터를 포함할 수 있다.Referring to FIG. 13, the feature extractor 1310 may extract a feature from the input image 1312 using the input image 1312 and generate a feature image 1314 including the extracted feature information. The extracted feature may be a feature of a local region of the input image. The input image 1312 may include an input image of an image analysis device or a feature map of each layer in a convolutional neural network model. In addition, the feature image 1314 may include a feature map and/or feature vector obtained by applying a convolutional neural network technique and/or a pooling technique to the input image 1312.

맥락 생성부(1320)는 특징 추출부(1310)에서 추출된 특징 영상(1314)에 대해 합성곱 신경망 기법 및/또는 풀링 기법을 적용하여 맥락 정보를 생성할 수 있다. 예컨대, 맥락 생성부(1320)는 풀링의 간격(stride)을 다양하게 조절함으로써 영상 전체, 4등분 영역, 9등분 영역 등의 다양한 크기(scale)의 맥락 정보를 생성할 수 있다. 도 13을 참조하면, 영상 전체 크기의 영상에 대한 맥락 정보를 포함하는 전체 맥락 정보 영상(1322), 영상 전체를 4등분한 크기의 4등분 영상에 대한 맥락 정보를 포함하는 4등분 맥락 정보 영상(1324) 및 영상 전체를 9등분한 크기의 9등분 영상에 대한 맥락 정보를 포함하는 9등분 맥락 정보 영상(1326)이 획득될 수 있다. The context generator 1320 may generate context information by applying a convolutional neural network technique and/or a pooling technique to the feature image 1314 extracted by the feature extractor 1310. For example, the context generator 1320 may generate context information of various scales, such as the entire image, the quadrant area, and the 9 equal part area by variously adjusting the pooling stride. Referring to FIG. 13, a full context information image 1322 including context information for an image of the entire image size, and a fourth context information image including context information for a quadrant image having a size obtained by dividing the entire image into quarters ( 1324) and a ninth-section contextual information image 1326 including context information for a nine-segmented image having a size obtained by dividing the entire image into nines may be obtained.

특징 및 맥락 분석부(1330)는 상기 특징 영상(1314)과 상기 맥락 정보 영상(1322, 1324, 1326)을 모두 이용하여 분석 대상 영상의 특정 영역에 대한 분석을 보다 정확히 수행할 수 있다. The feature and context analysis unit 1330 may more accurately analyze a specific region of the analysis target image using both the feature image 1314 and the context information images 1322, 1324, and 1326.

예컨대, 자동차(car)와 유사한 형태를 갖는 보트(boat)가 포함된 영상이 입력 영상인 경우, 특징 추출부(1310)가 추출한 국소적인 특징을 포함하는 특징 영상(1314)으로부터는 상기 식별된 객체가 자동차인지 보트인지 정확히 판단할 수 없다. 즉, 특징 추출부(1310)는 국소적인 특징에 기초하여 객체의 형상을 인식할 수 있으나, 해당 객체의 형상만 가지고는 정확히 객체를 식별하고 분류할 수 없는 경우가 있다.For example, when an image including a boat having a shape similar to a car is an input image, the identified object from the feature image 1314 including the local feature extracted by the feature extraction unit 1310 It cannot be accurately determined whether is a car or a boat. That is, although the feature extraction unit 1310 may recognize the shape of an object based on a local feature, there are cases in which it is not possible to accurately identify and classify the object only with the shape of the object.

본 개시의 일 실시예에 따른 맥락 생성부(1320)는 상기 분석 대상 영상 또는 상기 특징 영상(1314)에 기초하여 맥락 정보(1322, 1324, 1326)를 생성함으로써, 보다 정확히 객체를 식별하고 분류할 수 있다. 예컨대, 전체 영상에 대해 추출된 특징이 "자연 경관"으로 인식 또는 분류되고, 4등분 영상에 대해 추출된 특징이 "호수"로 인식 또는 분류되고, 9등분 영상에 대해 추출된 특징이 "물"로 인식 또는 분류되는 경우, 상기 추출된 특징인 "자연 경관", "호수", "물"을 맥락 정보로서 생성하고 활용할 수 있다.The context generator 1320 according to an exemplary embodiment of the present disclosure generates context information 1322, 1324, and 1326 based on the analysis target image or the feature image 1314 to more accurately identify and classify objects. I can. For example, a feature extracted for the entire image is recognized or classified as "natural landscape", a feature extracted for a quadrant image is recognized or classified as a "lake", and a feature extracted for a ninth image is recognized as "water" When recognized or classified as, the extracted features such as "natural landscape", "lake", and "water" can be created and utilized as context information.

본 개시의 일 실시예에 따른 특징 및 맥락 분석부(1330)는 상기 맥락 정보를 활용함으로써, 상기 보트 또는 자동차의 형상을 갖는 객체를 "보트"로 식별할 수 있다.The feature and context analysis unit 1330 according to an embodiment of the present disclosure may identify the object having the shape of the boat or vehicle as a “boat” by utilizing the context information.

도 13을 참조하여 설명한 실시예에서는 전체 영상에 대한 맥락 정보, 4등분 영상에 대한 맥락 정보, 9등분 영상에 대한 맥락 정보를 생성하고 활용하는 것에 대해 설명하였으나, 맥락 정보를 추출하는 영상의 크기는 이에 한정되지 않는다. 예컨대, 전술한 크기의 영상 이외의 크기를 갖는 영상에 대한 맥락 정보를 생성하고 활용할 수도 있다. In the embodiment described with reference to FIG. 13, it has been described that context information for the entire image, context information for a quadrant image, and context information for a 9 segment image are generated and utilized, but the size of the image for extracting the context information is It is not limited to this. For example, context information for an image having a size other than the above-described image may be generated and utilized.

본 개시의 일 실시예에 따른 합성곱 신경망 기법 및 풀링에 대해서는 도 16 및 도 17을 참조하여 후술한다.A convolutional neural network technique and pooling according to an embodiment of the present disclosure will be described later with reference to FIGS. 16 and 17.

도 14는 본 개시의 일 실시예에 따른 영상 분석 장치가 영상을 분석하여 객체를 식별하는 과정을 설명하기 위한 도면이다.14 is a diagram illustrating a process of identifying an object by analyzing an image by an image analysis apparatus according to an embodiment of the present disclosure.

예컨대, 영상 분석 장치(1400)는 영상(1410)을 입력 받고, 다양한 크기의 영상 영역에 대한 정보를 생성함으로써, 영상(1410)에 포함된 객체를 정확히 식별 및/또는 분류할 수 있다. 입력 영상(1410)은 예컨대, 가방을 포함하는 X-ray 영상일 수 있다. 영상 분석 장치(1400)는 전술한 바에 따라 입력 영상(1410)을 분석하여, 영상 전체에 대한 특징, 영상의 일부 영역에 대한 특징을 추출하고 이를 이용하여 영상(1410)에 포함된 객체를 정확히 식별할 수 있다. 상기 영상 전체에 대한 특징(1422)은 예컨대, 가방의 형상에 대한 특징일 수 있다. 상기 영상의 일부 영역에 대한 특징은 예컨대, 손잡이에 대한 특징(1424), 지퍼에 대한 특징(1426, 고리에 대한 특징(1428) 등을 포함할 수 있다. For example, the image analysis apparatus 1400 may accurately identify and/or classify an object included in the image 1410 by receiving the image 1410 and generating information on an image region of various sizes. The input image 1410 may be, for example, an X-ray image including a bag. The image analysis device 1400 analyzes the input image 1410 as described above, extracts features for the entire image and features for a partial area of the image, and accurately identifies the object included in the image 1410 by using the same. can do. The feature 1422 of the entire image may be, for example, a feature of the shape of the bag. The features of the partial area of the image may include, for example, a feature 1424 for a handle, a feature 1426 for a zipper, and a feature 1428 for a ring.

영상 분석 장치(1400)는 상기 생성된 특징들(1422, 1424, 1426, 1428)을 맥락 정보로서 활용함으로써, 상기 영상(1410)에 포함된 객체가 "가방"이라는 것을 정확히 식별할 수 있다.The image analysis apparatus 1400 may accurately identify that the object included in the image 1410 is a "bag" by using the generated features 1422, 1424, 1426, and 1428 as context information.

만약 상기 생성된 특징들 중 일부가 "가방"과 관련이 없는 특징이라면, 영상 분석 장치(1400)는 상기 영상(1410)에 포함된 객체가 "가방"이라고 식별할 수 없거나 또는 상기 영상(1410)에 포함된 객체를 "가방"으로 식별할 수 없다는 분석 결과를 제공할 수 있다. 또는, 맥락 정보 중 일부가 다른 맥락 정보와 관련이 없는 경우, 해당 객체의 이상을 출력할 수 있다. 예컨대, "가방"에 대한 통상의 특징과는 관련이 없는 비정형의 공간, 일정한 두께 이상의 공간 등이 검출되는 경우, 해당 "가방"은 이상이 있는 가방이라는 신호를 출력할 수 있다. If some of the generated features are features that are not related to the "bag", the image analysis apparatus 1400 cannot identify the object included in the image 1410 as a "bag" or the image 1410 It can provide an analysis result that the object included in the "bag" cannot be identified. Alternatively, if some of the context information is not related to other context information, an abnormality of the object may be output. For example, when an atypical space, a space having a certain thickness or more, etc., which are not related to the usual characteristics of the "bag", is detected, a signal indicating that the "bag" is a bag with abnormality may be output.

상기와 같이, 통상의 맥락 정보와는 관련이 없는 맥락 정보가 포함되는 경우, 그러한 사실은 판독원에게 출력될 수 있으며, 판독원은 이에 기초하여 해당 영상의 물품 또는 객체에 대한 정밀 검사 또는 개장 검사를 실시할 수 있다.As described above, if context information that is not related to normal context information is included, such fact may be output to the reader, and the reader may perform a detailed inspection or remodeling inspection of the article or object of the video. You can do it.

도 15는 본 개시의 일 실시예에 따른 영상 분석 장치의 동작을 설명하기 위한 도면이다.15 is a diagram for describing an operation of an image analysis apparatus according to an exemplary embodiment of the present disclosure.

S1500 단계에서 영상 분석 장치는 분석 대상 영상의 특징을 추출할 수 있다.In step S1500, the image analysis apparatus may extract features of an image to be analyzed.

일 실시예에 따른 영상 분석 장치는 일반적인 합성곱 신경망 기법 또는 풀링 기법을 이용하여 입력 영상의 특징을 추출할 수 있다. 상기 분석 대상 영상의 특징은 영상의 각 영역마다의 국소적인 특징일 수 있으며, 또한 상기 풀링 기법은 맥스 풀링 기법 및 평균 풀링 기법 중 적어도 하나를 포함할 수 있다. The image analysis apparatus according to an embodiment may extract features of an input image using a general convolutional neural network technique or a pooling technique. The characteristic of the analysis target image may be a local characteristic for each region of the image, and the pooling technique may include at least one of a max pooling technique and an average pooling technique.

S1510 단계에서 영상 분석 장치는 S1500 단계에서 추출된 특징에 기초하여 맥락 정보를 생성할 수 있다.In step S1510, the image analysis apparatus may generate context information based on the features extracted in step S1500.

일 실시예에 따른 영상 분석 장치는 합성곱 신경망 기법 및/또는 풀링 기법을 S1500 단계에서 추출된 특징에 적용하여 맥락 정보를 생성할 수 있다. 상기 맥락 정보는 분석 대상 영상의 전체 또는 일부 영역을 나타내는 대표값일 수 있다. 또한 상기 맥락 정보는 입력 영상의 전역적인 맥락 정보일 수 있다. 또한, 상기 풀링 기법은 예컨대, 평균 풀링 기법일 수 있다.The image analysis apparatus according to an embodiment may generate context information by applying a convolutional neural network technique and/or a pooling technique to the features extracted in step S1500. The context information may be a representative value indicating the entire or partial region of the image to be analyzed. Further, the context information may be global context information of the input image. In addition, the pooling technique may be, for example, an average pooling technique.

S1520 단계에서 영상 분석 장치는 S1500 단계에서 추출된 특징 및 S1510 단계에서 생성된 맥락 정보에 기초하여 상기 분석 대상 영상을 분석할 수 있다.In step S1520, the image analysis apparatus may analyze the analysis target image based on the feature extracted in step S1500 and the context information generated in step S1510.

예컨대, 영상 분석 장치는 S1500 단계에서 추출된 영상의 각 영역마다의 국소적인 특징 및 S1510 단계에서 재구성된 전역적인 맥락을 결합하여 입력 영상을 분류하거나 입력 영상에 포함된 관심 객체의 위치 등을 찾을 수 있다. 따라서, 입력 영상에서 특정 2차원 위치에서의 정보가 국소적인 정보부터 전역적인 맥락까지 포함됨으로써, 실제 내용은 상이하지만 국소적인 정보가 유사한 입력 영상들에 대해 보다 정확한 인식 또는 분류 등이 가능하다. 또는 다른 맥락 정보와 관련이 없는 맥락 정보를 포함하는 객체에 대한 검출이 가능하다.For example, the image analysis apparatus may classify the input image or find the location of the object of interest included in the input image by combining the local features of each region of the image extracted in step S1500 and the global context reconstructed in step S1510. have. Accordingly, since information at a specific two-dimensional position in an input image is included from local information to a global context, it is possible to more accurately recognize or classify input images that have different actual contents but similar local information. Alternatively, it is possible to detect an object containing context information that is not related to other context information.

도 16은 다채널 특징맵을 생성하는 합성곱 신경망의 일 실시예를 설명하기 위한 도면이다.16 is a diagram for explaining an embodiment of a convolutional neural network that generates a multi-channel feature map.

합성곱 신경망 기반의 영상 처리는 다양한 분야에 활용될 수 있다. 예컨대, 영상의 객체 인식(object recognition)을 위한 영상 처리 장치, 영상 복원(image reconstruction)을 위한 영상 처리 장치, 시맨틱 세그먼테이션(semantic segmentation)을 위한 영상 처리 장치, 장면 인식(scene recognition)을 위한 영상 처리 장치 등에 이용될 수 있다.Image processing based on convolutional neural networks can be used in various fields. For example, an image processing device for object recognition of an image, an image processing device for image reconstruction, an image processing device for semantic segmentation, and image processing for scene recognition It can be used for devices and the like.

입력 영상(1610)은 합성곱 신경망(1600)을 통해 처리됨으로써 특징맵 영상을 출력할 수 있다. 출력된 특징맵 영상은 전술한 다양한 분야에 활용될 수 있다.The input image 1610 may be processed through the convolutional neural network 1600 to output a feature map image. The output feature map image can be used in various fields described above.

합성곱 신경망(1600)은 복수의 계층들(1620, 1630, 1640)을 통해 처리될 수 있으며, 각 계층은 다채널 특징맵 영상들(1625, 1635)을 출력할 수 있다. 일 실시예에 따른 복수의 계층들(1620, 1630, 1640)은 입력 받은 데이터의 좌측 상단으로부터 우측 하단까지 일정한 크기의 필터를 적용하여 영상의 특징을 추출할 수 있다. 예를 들어, 복수의 계층들(1620, 1630, 1640)은 입력 데이터의 좌측 상단 NxM 픽셀에 가중치를 곱해서 특징맵의 좌측 상단의 한 뉴런에 매핑시킨다. 이 경우, 곱해지는 가중치도 NxM가 될 것이다. 상기 NxM은 예컨대, 3x3일 수 있으나, 이에 한정되지 않는다. 이후, 동일한 과정으로, 복수의 계층들(1620, 1630, 1640)은 입력 데이터를 좌측에서 우측으로, 그리고 상단에서 하단으로 k 칸씩 스캔하면서 가중치를 곱하여 특징맵의 뉴런에 매핑한다. 상기 k 칸은 합성곱 수행시 필터를 이동시킬 간격(stride)을 의미하며, 출력 데이터의 크기를 조절하기 위해 적절히 설정될 수 있다. 예컨대, k는 1일 수 있다. 상기 NxM 가중치는 필터 또는 필터 커널이라고 한다. 즉, 복수의 계층들(1620, 1630, 1640)에서 필터를 적용하는 과정은 필터 커널과의 컨볼루션 연산을 수행하는 과정이며, 그 결과 추출된 결과물을 "특징맵(feature map)" 또는 "특징맵 영상"이라고 한다. 또한, 컨볼루션 연산이 수행된 계층을 합성곱 계층이라 할 수 있다.The convolutional neural network 1600 may be processed through a plurality of layers 1620, 1630, and 1640, and each layer may output multi-channel feature map images 1625 and 1635. The plurality of layers 1620, 1630, and 1640 according to an embodiment may extract features of an image by applying a filter having a predetermined size from the upper left to the lower right of the input data. For example, the plurality of layers 1620, 1630, and 1640 multiply the upper left NxM pixel of the input data by a weight and map it to one neuron at the upper left of the feature map. In this case, the weight to be multiplied will also be NxM. The NxM may be, for example, 3x3, but is not limited thereto. Thereafter, in the same process, the plurality of layers 1620, 1630, and 1640 scan the input data from left to right and from top to bottom by k cells, multiplying the weights and map them to neurons in the feature map. The k field denotes a stride to move the filter when performing convolution, and may be appropriately set to adjust the size of output data. For example, k may be 1. The NxM weight is called a filter or filter kernel. That is, the process of applying a filter in the plurality of layers 1620, 1630, 1640 is a process of performing a convolution operation with the filter kernel, and the resultant extracted result is "feature map" or "feature map" It is called "map image". Also, the layer on which the convolution operation is performed may be referred to as a convolutional layer.

“다채널 특징맵(multiple-channel feature map)"의 용어는 복수의 채널에 대응하는 특징맵들의 세트를 의미하고, 예를 들어 복수의 영상 데이터일 수 있다. 다채널 특징맵들은 합성곱 신경망의 임의의 계층에서의 입력일 수 있고, 컨볼루션 연산 등의 특징맵 연산 결과에 따른 출력일 수 있다. 일 실시예에 따르면, 다채널 특징맵들(1625, 1635)은 합성곱 신경망의 "특징 추출 계층들" 또는 "컨볼루션 계층들"이라고도 불리는 복수의 계층들(1620, 1630, 1640)에 의해 생성된다. 각각의 계층은 순차적으로 이전 계층에서 생성된 다채널 특징맵들을 수신하고, 출력으로서 그 다음의 다채널 특징맵들을 생성할 수 있다. 최종적으로 L(L은 정수)번째 계층(1640)에서는 L-1번째 계층(미도시)에서 생성한 다채널 특징맵들을 수신하여 미도시의 다채널 특징맵들을 생성할 수 있다.The term “multiple-channel feature map” refers to a set of feature maps corresponding to a plurality of channels, for example, may be a plurality of image data. The multi-channel feature maps are convolutional neural networks. It may be an input from an arbitrary layer or an output according to a result of a feature map operation such as a convolution operation, etc. According to an embodiment, the multi-channel feature maps 1625 and 1635 are the "feature extraction layer" of the convolutional neural network. Is generated by a plurality of layers 1620, 1630, 1640, also referred to as "convolutional layers" or "convolutional layers." Each layer sequentially receives multi-channel feature maps generated in the previous layer, and then as output Finally, the L (L is an integer)-th layer 1640 receives the multi-channel feature maps generated in the L-1 layer (not shown), and multi-channel feature maps (not shown) are received. You can create maps.

도 16을 참조하면, 채널 K1개를 가지는 특징맵들(1625)은 입력 영상(1610)에 대해 계층 1에서의 특징맵 연산(1620)에 따른 출력이고, 또한 계층 2에서의 특징맵 연산(1630)을 위한 입력이 된다. 또한, 채널 K2개를 가지는 특징맵들(1635)은 입력 특징맵들(1625)에 대해 계층 2에서의 특징맵 연산(1630)에 따른 출력이고, 또한 계층 3에서의 특징맵 연산(미도시)을 위한 입력이 된다.Referring to FIG. 16, feature maps 1625 having K1 channels are output according to a feature map operation 1620 at layer 1 for an input image 1610, and feature map operation 1630 at layer 2 It becomes an input for ). In addition, the feature maps 1635 having K2 channels are output according to the feature map operation 1630 at layer 2 for the input feature maps 1625, and feature map operation at layer 3 (not shown). Becomes the input for

도 16을 참조하면, 첫 번째 계층(1620)에서 생성된 다채널 특징맵들(1625)은 K1(K1은 정수)개의 채널에 대응하는 특징맵들을 포함한다. 또한, 두 번째 계층(1630)에서 생성된 다채널 특징맵들(1635)은 K2(K2은 정수)개의 채널에 대응하는 특징맵들을 포함한다. 여기서, 채널의 개수를 나타내는 K1 및 K2는, 첫 번째 계층(1620) 및 두 번째 계층(1630)에서 각각 사용된 필터 커널의 개수와 대응될 수 있다. 즉, M(M은 1 이상 L-1 이하의 정수)번째 계층에서 생성된 다채널 특징맵들의 개수는 M번째 계층에서 사용된 필터 커널의 개수와 동일할 수 있다.Referring to FIG. 16, multi-channel feature maps 1625 generated in a first layer 1620 include feature maps corresponding to K1 (K1 is an integer) number of channels. In addition, the multi-channel feature maps 1635 generated in the second layer 1630 include feature maps corresponding to K2 (K2 is an integer) number of channels. Here, K1 and K2 representing the number of channels may correspond to the number of filter kernels used in the first layer 1620 and the second layer 1630, respectively. That is, the number of multi-channel feature maps generated in the M-th layer (M is an integer of 1 or more and L-1 or less) may be the same as the number of filter kernels used in the M-th layer.

도 17은 풀링 기법의 일 실시예를 설명하기 위한 도면이다.17 is a diagram for describing an embodiment of a pooling technique.

도 17에 도시된 바와 같이, 풀링의 윈도우 사이즈는 2x2, 스트라이드는 2이며, 맥스 풀링을 입력 영상(1710)에 적용하여 출력 영상(1790)을 생성할 수 있다. As shown in FIG. 17, the window size of the pooling is 2x2 and the stride is 2, and the output image 1790 may be generated by applying max pooling to the input image 1710.

도 17의 (a)에서, 입력 영상(1710)의 좌측 상단에 2x2 윈도우(1710)를 적용하고, 윈도우(1710) 영역 내의 값들 중 대표값(여기서는, 최대값 4)을 계산하여 출력 영상(1790)의 대응 위치(1720)에 입력한다.In (a) of FIG. 17, a 2x2 window 1710 is applied to the upper left of the input image 1710, and a representative value (here, the maximum value 4) among values in the window 1710 is calculated, and the output image 1790 ) In the corresponding position 1720.

이후, 도 17의 (b)에서, 스트라이드만큼, 즉, 2만큼 윈도우를 이동하고, 윈도우(1730) 영역 내의 값들 중 최대값 3을 출력 영상(1790)의 대응 위치(1740)에 입력한다.Thereafter, in FIG. 17B, the window is moved by the stride, that is, by 2, and the maximum value 3 of the values in the area of the window 1730 is input to the corresponding position 1740 of the output image 1790.

더 이상 우측으로 윈도우를 이동시킬 없는 경우, 다시 입력 영상의 좌측에서 스트라이드만큼 아래의 위치부터 상기 과정을 반복한다. 즉, 도 17의 (c)에 도시된 바와 같이, 윈도우(1750) 영역 내의 값들 중 최대값 5를 출력 영상(1790)의 대응 위치(1760)에 입력한다.When it is no longer possible to move the window to the right, the above process is repeated again from the position below the stride from the left side of the input image. That is, as shown in (c) of FIG. 17, the maximum value 5 of the values in the area of the window 1750 is input to the corresponding position 1760 of the output image 1790.

이후, 도 17의 (d)에 도시된 바와 같이, 스트라이드만큼 윈도우를 이동하고, 윈도우(1770) 영역 내의 값들 중 최대값 2를 출력 영상(1790)의 대응 위치(1780)에 입력한다.Thereafter, as shown in (d) of FIG. 17, the window is moved by the stride, and the maximum value 2 of the values in the area of the window 1770 is input to the corresponding position 1780 of the output image 1790.

상기 과정은 입력 영상(1710)의 우측 하단 영역에 윈도우가 위치할 때까지 반복적으로 수행됨으로써, 입력 영상(1710)에 풀링을 적용한 출력 영상(1790)을 생성할 수 있다.The above process is repeatedly performed until a window is positioned in the lower right area of the input image 1710, thereby generating an output image 1790 in which pooling is applied to the input image 1710.

이하, 도 18 내지 도 22를 참고하여, 복수의 영상 및/또는 물품 정보를 활용하여 새로운 합성 영상 및/또는 이에 대응하는 가상의 물품 정보를 생성하는 방법의 일 실시예에 대해 설명한다.Hereinafter, an embodiment of a method of generating a new composite image and/or virtual article information corresponding thereto by using a plurality of images and/or article information will be described with reference to FIGS. 18 to 22.

도 18은 본 개시의 일 실시예에 따른 영상 합성 장치의 구성을 나타내는 블록도이다.18 is a block diagram illustrating a configuration of an image synthesizing apparatus according to an embodiment of the present disclosure.

도 18을 참조하면, 영상 합성 장치(1800)는 객체 영상 추출부(1810), 객체 위치 정보 생성부(1820), 영상 합성부(1830) 및/또는 객체 검출 딥러닝 모델 학습부(1840)를 포함할 수 있다. 다만, 이는 본 실시예를 설명하기 위해 필요한 일부 구성요소만을 도시한 것일 뿐, 영상 합성 장치(1800)에 포함된 구성요소가 전술한 예에 한정되는 것은 아니다. 예컨대, 둘 이상의 구성부가 하나의 구성부 내에서 구현될 수도 있고, 하나의 구성부에서 실행되는 동작이 분할되어 둘 이상의 구성부에서 실행되도록 구현될 수도 있다. 또한, 일부 구성부가 생략되거나 부가적인 구성부가 추가될 수도 있다. 또는, 도 1의 영상 분석 장치(112), 도 5의 영상 강화 장치(500), 도 12의 영상 분석 장치(1200) 및 도 18의 영상 합성 장치(1800)의 구성요소 중, 동일한 기능 또는 유사한 기능을 수행하는 구성부는 하나의 구성요소로서 구현될 수도 있다.Referring to FIG. 18, the image synthesizing apparatus 1800 includes an object image extraction unit 1810, an object location information generation unit 1820, an image synthesis unit 1830 and/or an object detection deep learning model learning unit 1840. Can include. However, this is only showing some components necessary for describing the present embodiment, and components included in the image synthesizing apparatus 1800 are not limited to the above-described example. For example, two or more constituent units may be implemented in one constituent unit, or an operation executed in one constituent unit may be divided and implemented to be executed in two or more constituent units. In addition, some components may be omitted or additional components may be added. Or, among the components of the image analysis device 112 of FIG. 1, the image enhancement device 500 of FIG. 5, the image analysis device 1200 of FIG. 12, and the image synthesis device 1800 of FIG. 18, the same function or similar A component that performs a function may be implemented as one component.

본 개시의 일 실시예에 따른 영상 합성 장치(1800)는 제1 객체를 포함하는 제1 영상 및 제2 객체를 포함하는 제2 영상을 입력 받아, 제1 영상 및 제2 영상의 각각에 대해 객체와 배경을 구분하고, 구분된 제1 객체 및 제2 객체의 위치 정보를 생성하고, 제1 객체의 위치 정보 및 제2 객체의 위치 정보에 기초하여, 제1 객체 및 제2 객체를 포함하는 제3 영상을 생성하고, 제1 객체의 위치 정보, 제2 객체의 위치 정보 및 제3 영상을 이용하여 객체 검출 딥러닝 모델을 학습할 수 있다.The image synthesizing apparatus 1800 according to an embodiment of the present disclosure receives a first image including a first object and a second image including a second object, and provides an object for each of the first image and the second image. And background, generate location information of the first and second objects that are divided, and based on location information of the first object and location information of the second object, a second object including the first object and the second object 3 An image may be generated, and an object detection deep learning model may be trained using the location information of the first object, the location information of the second object, and the third image.

도 18을 참조하면, 입력 영상(1850)은 단일 객체를 포함하는 영상을 포함할 수 있다. 입력 영상(1850)에 대한 설명은 도 1 등을 참조하여 설명한 입력 영상에 대한 설명과 동일하다.Referring to FIG. 18, an input image 1850 may include an image including a single object. The description of the input image 1850 is the same as the description of the input image described with reference to FIG. 1 and the like.

객체 영상 추출부(1810)는 단일 객체를 포함하는 영상(1850)을 수신하고 수신된 영상을 객체와 배경으로 구분할 수 있다. 객체 영상 추출부(1810)에 대한 설명은 도 5 및 도 6을 참조하여 설명한 객체 영상 추출부(520)에 대한 설명과 동일하다.The object image extractor 1810 may receive an image 1850 including a single object and divide the received image into an object and a background. The description of the object image extracting unit 1810 is the same as the description of the object image extracting unit 520 described with reference to FIGS. 5 and 6.

객체 위치 정보 생성부(1820)는 객체 영상 추출부(1810)로부터 추출된 객체의 위치를 결정할 수 있다. 예컨대, 객체 위치 정보 생성부(1820)는 객체 영역을 둘러싸는 사각형 박스(bounding box)를 특정하고, 특정된 사각형 박스에 기초하여, 객체 영상 추출부(1810)에서 구분된 객체의 위치 정보를 생성할 수 있다. 객체의 위치 정보를 생성하는 방법에 대한 설명은 도 6을 참조한 방법에 대한 설명과 동일하다.The object location information generator 1820 may determine the location of the object extracted from the object image extractor 1810. For example, the object location information generation unit 1820 specifies a bounding box surrounding the object area, and generates location information of the object classified by the object image extracting unit 1810 based on the specified rectangular box. can do. The description of the method of generating the location information of the object is the same as the description of the method with reference to FIG. 6.

본 개시의 일 실시예에 따르면, 영상에 포함된 객체의 위치 정보가 자동으로 생성될 수 있으므로, 인공지능 학습을 위해 판독원이 각각의 영상마다 객체의 위치 정보를 직접 입력해야 하는 번거로움을 피할 수 있다.According to an embodiment of the present disclosure, since the location information of the object included in the image can be automatically generated, it is possible to avoid the hassle of the reader having to directly input the location information of the object for each image for artificial intelligence learning. I can.

다시 도 18을 참조하여, 영상 합성부(1830)는 객체 영상 추출부(1810) 및 객체 위치 정보 생성부(1820)를 거쳐 객체의 위치 정보가 획득된 복수의 단일 객체 영상을 이용하여 다중 객체 영상을 생성할 수 있다. 예컨대, 제1 객체를 포함하는 제1 영상 및 제2 객체를 포함하는 제2 영상에 대해, 각각 객체 영상 추출부(1810) 및 객체 위치 정보 생성부(1820)를 거쳐 제1 객체의 위치 정보 및 제2 객체의 위치 정보가 획득되고, 영상 합성부(1830)는 획득된 제1 객체의 위치 정보 및 제2 객체의 위치 정보에 기초하여 제1 객체 및 제2 객체를 포함하는 제3 영상을 생성할 수 있다. 다중 객체 영상을 생성하는 구체적인 과정에 대해 도 19를 참고하여 보다 상세히 설명한다.Referring back to FIG. 18, the image synthesizing unit 1830 uses a plurality of single object images obtained by obtaining location information of the object through the object image extracting unit 1810 and the object location information generating unit 1820. Can be created. For example, for a first image including a first object and a second image including a second object, respectively, through the object image extraction unit 1810 and the object position information generation unit 1820, the location information of the first object and The location information of the second object is obtained, and the image synthesizer 1830 generates a third image including the first object and the second object based on the obtained location information of the first object and the location information of the second object. can do. A detailed process of generating a multi-object image will be described in more detail with reference to FIG. 19.

도 19는 본 개시의 일 실시예에 따른 단일 객체를 포함하는 두 개의 영상을 이용하여 다중 객체 영상을 생성하는 과정을 나타내는 도면이다. 도 19의 영상 합성부(1900)는 도 18의 영상 합성부(1830)의 일 실시예다. 도 19를 참조하면, 영상 합성부(1900)는 객체 영상 추출부 및 객체 위치 정보 생성부를 통해 획득된 제1 단일 객체 영상(1910), 제2 단일 객체 영상(1920) 및 제1 단일 객체 영상(1910)과 제2 단일 객체 영상(1920)의 위치 정보를 이용하여, 제1 단일 객체 영상(1910)과 제2 단일 객체 영상이 합성된 다중 객체 영상(1940) 및 다중 객체 영상(1940)에 포함된 객체들에 대한 위치 정보(1950)를 획득할 수 있다. 한편, 영상 합성부(1900)는 제1 단일 객체 영상(1910)과 제2 단일 객체 영상(1920)의 합성 시 객체로부터 구분된 배경에 대한 영상(1930)도 함께 이용할 수도 있다. 복수의 영상 합성시, 제1 단일 객체 영상(1910)의 위치 정보와 제2 단일 객체 영상(1920)의 위치 정보는 임의로 수정될 수 있다. 또한, 수정된 위치 정보에 기초하여 영상의 합성이 수행될 수 있다. 그럼으로써, 무수히 많은 양의 합성 영상과 가상의 위치 정보를 생성해 낼 수 있다.19 is a diagram illustrating a process of generating a multi-object image using two images including a single object according to an embodiment of the present disclosure. The image synthesizer 1900 of FIG. 19 is an embodiment of the image synthesizer 1830 of FIG. 18. Referring to FIG. 19, the image synthesizing unit 1900 includes a first single object image 1910, a second single object image 1920, and a first single object image acquired through an object image extraction unit and an object location information generation unit. 1910) and the location information of the second single object image 1920, the first single object image 1910 and the second single object image are combined in the multi-object image 1940 and the multi-object image 1940 Location information 1950 on the created objects may be obtained. Meanwhile, the image synthesizing unit 1900 may also use an image 1930 for a background separated from an object when synthesizing the first single object image 1910 and the second single object image 1920. When synthesizing a plurality of images, location information of the first single object image 1910 and location information of the second single object image 1920 may be arbitrarily modified. In addition, image synthesis may be performed based on the modified location information. By doing so, it is possible to generate a myriad of composite images and virtual location information.

전술한 바와 같이, 합성을 통해 학습에 필요한 만큼의 합성 영상 및/또는 그에 대응하는 가상의 위치 정보를 생성해 낼 수 있다. 따라서, 학습에 필요한 영상 및/또는 위치 정보의 절대적인 수가 작은 경우에도 인공지능 모델을 학습시키기에 충분한 수의 학습 데이터를 얼마든지 생성해 낼 수 있다.As described above, it is possible to generate as many synthesized images necessary for learning and/or virtual location information corresponding thereto through synthesis. Therefore, even when the absolute number of images and/or location information required for learning is small, a sufficient number of training data to train the artificial intelligence model can be generated.

다시 도 18을 참조하여, 객체 검출 딥러닝 모델 학습부(1840)는 제1 객체의 위치 정보, 제2 객체의 위치 정보 및 제3 영상을 이용하여 객체 검출 딥러닝 모델을 학습시킬 수 있다. 예컨대, 객체 검출 딥러닝 모델 학습부(1840)는 합성곱 신경망 모델을 학습시킬 수 있다. 합성곱 신경망 모델의 학습을 위해 제1 객체의 위치 정보, 제2 객체의 위치 정보 및 제3 영상이 이용될 수 있다.Referring back to FIG. 18, the object detection deep learning model training unit 1840 may train an object detection deep learning model using location information of a first object, location information of a second object, and a third image. For example, the object detection deep learning model training unit 1840 may train a convolutional neural network model. For training of the convolutional neural network model, location information of the first object, location information of the second object, and a third image may be used.

도 20은 본 개시의 일 실시예에 따른 다중 객체 영상을 이용하여 합성곱 신경망을 학습시키는 과정을 나타내는 도면이다. 도 20의 객체 검출 딥러닝 모델 학습부(2000)는 도 18의 객체 검출 딥러닝 모델 학습부(1840)의 일 실시예다. 도 20을 참조하면, 학습에 필요한 데이터로서 단일 객체 영상들과 객체들의 위치 정보를 이용하여 합성된 다중 객체 영상(2010)을 이용할 수 있다. 객체 검출 딥러닝 모델 학습부(2000)는 다중 객체 영상(2010)에 대해 단일 객체 각각의 위치 정보를 함께 사영시킴으로써 합성곱 신경망(2020)을 학습시킬 수 있다. 일 실시예에 따를 때, 전자 검색 시스템에서 X-Ray 검색기를 통과하는 물체 내에 복수의 객체가 존재하면, 복수의 객체들이 겹쳐진 X-Ray 영상이 획득될 수 있는데, 본 개시에 따르면, 영상 내의 복수의 객체의 위치 정보와 함께 각각의 객체의 형상을 이용하여 합성곱 신경망을 학습시키기 때문에, 객체 간 겹침이 발생하여도 보다 정확한 검출 결과가 획득될 수 있다.20 is a diagram illustrating a process of learning a convolutional neural network using a multi-object image according to an embodiment of the present disclosure. The object detection deep learning model learning unit 2000 of FIG. 20 is an embodiment of the object detection deep learning model learning unit 1840 of FIG. 18. Referring to FIG. 20, as data necessary for learning, a multi-object image 2010 synthesized using single object images and location information of the objects may be used. The object detection deep learning model training unit 2000 may train the convolutional neural network 2020 by projecting position information of each single object on the multi-object image 2010 together. According to an embodiment, when a plurality of objects exist in an object passing through an X-ray scanner in an electronic search system, an X-ray image in which a plurality of objects are overlapped may be obtained. According to the present disclosure, Since the convolutional neural network is trained by using the shape of each object together with the location information of the object of, a more accurate detection result can be obtained even if the overlapping between objects occurs.

도 21은 본 개시의 일 실시예에 따른 영상 합성 장치를 이용하여 실제 영상을 분석하는 과정을 설명하기 위한 도면이다.21 is a diagram illustrating a process of analyzing an actual image using an image synthesizing apparatus according to an embodiment of the present disclosure.

도 21의 영상 합성 장치(2100)는 도 18의 영상 합성 장치(1800)의 일 실시예다. 도 21의 영상 합성 장치(2100)가 포함하는 객체 영상 추출부(2104), 객체 위치 정보 생성부(2106), 영상 합성부(2108) 및 객체 검출 딥러닝 모델 학습부(2110)의 동작은 도 18의 영상 합성 장치(1800)에 포함된 객체 영상 추출부(1810), 객체 위치 정보 생성부(1820), 영상 합성부(1830) 및 객체 검출 딥러닝 모델 학습부(1840)의 동작과 동일하다. 따라서, 영상 합성 장치(2100)는 복수의 단일 객체 영상(2102)에 대해 객체 영상 추출부(2104), 객체 위치 정보 생성부(2106), 영상 합성부(2108) 및 객체 검출 딥러닝 모델 학습부(2110)에서의 동작을 수행함으로써 학습된 합성곱 신경망 모델을 생성할 수 있다. 객체 검출 장치(2120)는 실제 환경의 다중 객체를 포함하는 영상(2122)에 대해 영상 처리 장치(2100)에서 학습된 합성곱 신경망 모델을 이용하여 각각의 객체를 검출할 수 있다. The image synthesizing apparatus 2100 of FIG. 21 is an embodiment of the image synthesizing apparatus 1800 of FIG. 18. The operation of the object image extraction unit 2104, the object location information generation unit 2106, the image synthesis unit 2108, and the object detection deep learning model learning unit 2110 included in the image synthesis apparatus 2100 of FIG. It is the same as the operation of the object image extraction unit 1810, the object location information generation unit 1820, the image synthesis unit 1830, and the object detection deep learning model learning unit 1840 included in the image synthesis apparatus 1800 of 18. . Accordingly, the image synthesizing apparatus 2100 includes an object image extraction unit 2104, an object location information generation unit 2106, an image synthesis unit 2108, and an object detection deep learning model learning unit for a plurality of single object images 2102. By performing the operation at (2110), a learned convolutional neural network model can be generated. The object detection apparatus 2120 may detect each object using a convolutional neural network model learned by the image processing apparatus 2100 for an image 2122 including multiple objects in an actual environment.

일 실시예에 따를 때, 물품 검색 시스템에 본 개시의 발명이 적용되는 경우, 본 개시의 영상 합성 장치(2100)는 X-Ray 영상 내 단일 객체 영역 추출을 기반으로 새롭게 다중 객체 포함 영상을 생성할 수 있다. 또한 객체 검출 장치(2120)는 X-Ray 검색기를 통과하는 물품 내 포함된 다중 객체가 존재하는 영역을 찾을 수 있다. 따라서, X-Ray 영상에 대해 객체의 위치를 자동적으로 추출함으로써, 판독원이 보다 수월하게 영상 검사 작업을 수행할 수 있도록 할 수 있고, 또한 추출된 객체와 물체 내 객체의 수량 정보 등을 포함하는 전산 정보를 비교하는 업무 등에 이용될 수 있다.According to an embodiment, when the invention of the present disclosure is applied to a product retrieval system, the image synthesizing apparatus 2100 of the present disclosure may generate an image including multiple objects newly based on extraction of a single object region in an X-ray image. I can. In addition, the object detection device 2120 may find a region in which multiple objects included in the article passing through the X-ray scanner exist. Therefore, by automatically extracting the position of the object with respect to the X-ray image, the reader can perform the image inspection more easily, and also includes information on the extracted object and the quantity of the object within the object. It can be used for comparing computerized information.

도 22는 본 개시의 일 실시예에 따른 영상 합성 방법을 설명하기 위한 도면이다.22 is a diagram for describing an image synthesis method according to an embodiment of the present disclosure.

S2200 단계에서, 제1 객체를 포함하는 제1 영상 및 제2 객체를 포함하는 제2 영상을 입력 받아, 제1 영상 및 제2 영상의 각각에 대해 객체와 배경을 구분할 수 있다. 예컨대, 입력 영상의 픽셀값과 소정의 임계값을 비교하여 픽셀값을 이진화하고, 이진화된 픽셀값을 그룹핑함으로써 입력 영상에 포함된 객체를 구분할 수 있다.In step S2200, a first image including a first object and a second image including a second object are received, and an object and a background may be distinguished for each of the first image and the second image. For example, by comparing the pixel value of the input image with a predetermined threshold value to binarize the pixel value, and group the binarized pixel values, objects included in the input image may be distinguished.

S2210 단계에서, 구분된 제1 객체 및 제2 객체의 위치 정보를 생성할 수 있다. 예컨대, 객체 영역을 둘러싸는 사각형 박스를 특정하고, 특정된 사각형 박스에 기초하여, S2200 단계에서 구분된 객체의 위치 정보를 생성할 수 있다.In step S2210, location information of the divided first object and second object may be generated. For example, a rectangular box surrounding the object area may be specified, and location information of an object classified in step S2200 may be generated based on the specified rectangular box.

S2220 단계에서, 제1 객체의 위치 정보 및 제2 객체의 위치 정보에 기초하여, 제1 객체 및 제2 객체를 포함하는 제3 영상을 생성할 수 있다. 예컨대, S2210 단계에서 획득된 제1 객체의 위치 정보 및 제2 객체의 위치 정보에 기초하여 제1 객체 및 제2 객체를 포함하는 제3 영상을 생성할 수 있다.In operation S2220, a third image including the first object and the second object may be generated based on the location information of the first object and the location information of the second object. For example, a third image including the first object and the second object may be generated based on the location information of the first object and the location information of the second object acquired in step S2210.

S2230 단계에서, 제1 객체의 위치 정보, 제2 객체의 위치 정보 및 제3 영상을 이용하여 객체 검출 딥러닝 모델을 학습할 수 있다. 예컨대, 합성곱 신경망 모델을 학습시킬 수 있으며, 합성곱 신경망 모델의 학습을 위해 S2210 단계에서 생성된 제1 객체의 위치 정보와 제2 객체의 위치 정보 및 S2220 단계에서 생성된 제3 영상이 이용될 수 있다.In step S2230, an object detection deep learning model may be trained using location information of the first object, location information of the second object, and a third image. For example, a convolutional neural network model may be trained, and the location information of the first object generated in step S2210 and the location information of the second object, and the third image generated in step S2220 may be used for learning the convolutional neural network model. I can.

도 18 내지 도 22를 참조하여 설명한 실시예에서는 단일 객체를 포함하는 영상을 입력 받아, 객체와 배경을 분리하는 예를 설명하였다. 그러나, 반드시 이에 한정되지 않으며, 입력 영상이 둘 이상의 객체를 포함하는 영상일 수도 있다. 이 경우, 입력 영상으로부터 둘 이상의 객체와 배경을 구분하고, 둘 이상의 객체의 각각에 대해 위치 정보를 생성하여 이용할 수도 있다. In the embodiment described with reference to FIGS. 18 to 22, an example of separating an object and a background by receiving an image including a single object has been described. However, the present invention is not necessarily limited thereto, and the input image may be an image including two or more objects. In this case, two or more objects and backgrounds may be distinguished from the input image, and location information may be generated and used for each of the two or more objects.

또한, 상기 설명한 실시예에서는 2개의 단일 객체 영상 및 각 객체의 위치 정보에 기초하여 제3 영상을 생성하는 것으로 설명하였다. 그러나, 반드시 이에 한정되지 않으며, 둘 이상의 단일 객체 영상 및 각 객체의 위치 정보를 이용하여 제3 영상을 생성할 수도 있다. 즉, 본 개시에 따른 영상 처리 방법 및 장치는 각각이 하나 이상의 객체를 포함하는 둘 이상의 영상 및 각 객체의 위치 정보에 기초하여 제3 영상을 생성할 수 있다.In addition, in the above-described embodiment, it has been described that a third image is generated based on two single object images and location information of each object. However, the present invention is not necessarily limited thereto, and a third image may be generated using two or more single object images and location information of each object. That is, the image processing method and apparatus according to the present disclosure may generate a third image based on two or more images each including one or more objects and location information of each object.

상기의 설명에서는 2차원 영상을 대상으로 하는 영상 분석 방법, 객체 검출 방법, 영상 강화 방법 등을 설명하였다. 그러나, 2차원 영상을 대상으로 하는 본 발명에 따른 다양한 실시예는 3차원 영상을 대상으로 할 수도 있다.In the above description, an image analysis method, an object detection method, and an image enhancement method for a 2D image have been described. However, various embodiments of the present invention targeting a 2D image may also target a 3D image.

기존의 2차원 영상(예컨대, 2D X-Ray 영상)과 3차원 영상(예컨대, 3차원 CT 영상)은 아래와 같은 차이를 갖는다. Existing 2D images (eg, 2D X-ray images) and 3D images (eg, 3D CT images) have the following differences.

첫째, 3차원 영상은 2차원 영상에 비해, 차원(dimension)이 증가함에 따라 데이터가 방대해지고 이에 따른 연산량이 매우 크게 증가한다. First, compared to a 2D image, in a 3D image, as the dimension increases, the data becomes vast, and the amount of computation accordingly increases significantly.

둘째, 2차원 영상의 경우, 예컨대, 촬영하는 방향으로 객체들이 중접(superposion)되는 반면, 3차원 영상의 경우 중첩이 발생하지 않는다.Second, in the case of a 2D image, for example, objects are superpositioned in a photographing direction, whereas in the case of a 3D image, overlapping does not occur.

본 발명은 상기 차이점에 착안하여, 3차원 영상에 포함된 객체를 효율적으로 검출하기 위한 다양한 실시예를 제공한다.In view of the above differences, the present invention provides various embodiments for efficiently detecting an object included in a 3D image.

3차원 영상을 대상으로 하는 본 발명의 다양한 실시예는 도 23 내지 도 25를 참조하여 구체적으로 설명된다.Various embodiments of the present invention targeting a 3D image will be described in detail with reference to FIGS. 23 to 25.

예컨대, 3차원 영상이란 3차원 보안 CT 영상을 의미할 수 있다. 그러나, 이에 한정되지 않으며, 3차원의 형태로 표현되는 일체의 영상을 포함할 수 있다. 예컨대, 3차원의 좌표 (x, y, z)를 갖고, 휘도 정보 및/또는 색차 정보를 갖는 하나 이상의 복셀(voxel)들로 구성된 된 영상이 3차원 영상일 수 있다. 복셀이란 3차원 영상을 구성하는 화소를 의미할 수 있으며, 2차원 영상에서의 픽셀에 대응될 수 있다. 복셀과 픽셀은 휘도 정보 및/또는 색차 정보를 포함할 수 있음은 동일하다. 복셀은 3차원 상의 위치를 규정하기 위해 추가적으로 z 좌표를 가질 수 있다.For example, a 3D image may mean a 3D security CT image. However, the present invention is not limited thereto, and may include all images expressed in a three-dimensional form. For example, an image composed of one or more voxels having three-dimensional coordinates (x, y, z) and having luminance information and/or color difference information may be a three-dimensional image. Voxels may mean pixels constituting a 3D image, and may correspond to pixels in a 2D image. It is the same that the voxel and the pixel may include luminance information and/or color difference information. The voxel may additionally have z coordinates to define a position on the 3D.

도 23은 3차원 영상에 포함된 객체를 검출하는 본 발명의 실시예를 설명하기 위한 도면이다.23 is a diagram illustrating an embodiment of the present invention for detecting an object included in a 3D image.

단계 S2300에서 3차원 영상을 획득할 수 있다.In step S2300, a 3D image may be obtained.

단계 S2310에서 영상에 대한 전처리를 수행할 수 있다. 영상에 대한 전처리는 2차원 영상에 대한 전처리 과정을 포함할 수 있다. 2차원 영상에 대한 전처리 과정은 3차원 영상에 그대로 적용되거나, 3차원 영상에 적용될 수 있도록 적응적으로 일부 수정될 수 있다.In step S2310, pre-processing on the image may be performed. The pre-processing of the image may include a pre-processing of the 2D image. The preprocessing process for a 2D image may be applied as it is to a 3D image or may be partially modified so that it may be applied to a 3D image.

단계 S2320에서 세부 영역 추출이 수행될 수 있다. In step S2320, detailed region extraction may be performed.

먼저, 초기 세부 영역이 추출될 수 있다. 초기 세부 영역이란 본 발명에 따른 알고리즘의 시작이 되는 영역들일 수 있다.First, an initial detailed region may be extracted. The initial detailed areas may be areas that start the algorithm according to the present invention.

초기 세부 영역을 추출하기 위해, 영상 이진화 이후 3차원 연결 요소를 추출할 수 있다. 영상 이진화는 2차원 영상에 대한 영상 이진화와 동일 또는 유사할 수 있다. 영상 이진화를 통해 각 복셀은 0 또는 1의 값을 가질 수 있다. 1의 값을 갖는 임의의 복셀에 인접한 복셀들 중 1의 값을 갖는 복셀을 확인할 수 있다. 2차원의 픽셀은 2차원 평면 상에서 4각형 형태로 나타내어 질 수 있다. 복셀은 3차원 공간에서의 화소의 단위이므로, 3차원 공간 상에서 육면체 형태로 나타내어 질 수 있다. 인접한 복셀이란 현재 복셀과 적어도 하나의 면을 공유하거나, 적어도 하나의 선을 공유하거나 또는 적어도 하나의 점을 공유하는 복셀을 의미할 수 있다. 1의 값을 갖는 인접한 복셀들을 모두 확인하고, 이들 확인된 복셀들로 구성된 복셀 그룹을 초기 세부 영역으로 정의하거나 초기 세부 영역으로 추출할 수 있다. In order to extract an initial detailed region, a 3D connection element may be extracted after image binarization. Image binarization may be the same as or similar to image binarization for a 2D image. Each voxel may have a value of 0 or 1 through image binarization. A voxel having a value of 1 among voxels adjacent to an arbitrary voxel having a value of 1 may be identified. A two-dimensional pixel may be represented in a square shape on a two-dimensional plane. Since a voxel is a unit of a pixel in a 3D space, it can be expressed in a hexahedral shape in a 3D space. An adjacent voxel may mean a voxel that shares at least one surface with a current voxel, shares at least one line, or shares at least one point. All adjacent voxels having a value of 1 may be identified, and a voxel group consisting of these identified voxels may be defined as an initial detailed region or extracted as an initial detailed region.

추출된 초기 세부 영역을 기초로 세분화 작업을 진행할 수 있다 세분화 작업은 세부 영역에 포함된 복셀 값을 기준으로 수행될 수 있다. 하나의 세부 영역에 포함된 복셀 값들의 분산이 일정 값(소정의 임계값) 이하가 될 때까지 세분화 작업을 진행할 수 있다. 예컨대, 하나의 세부 영역에 포함된 복셀 값들의 분산이 일정 값 이상일 경우, 소정의 기준에 따라 하나의 세부 영역에 포함된 복셀들을 둘 이상의 세부 영역으로 다시 세분화할 수 있다. A segmentation operation may be performed based on the extracted initial detailed region. The segmentation operation may be performed based on a voxel value included in the detailed region. The subdivision operation may be performed until the variance of voxel values included in one detailed region becomes less than or equal to a predetermined value (a predetermined threshold). For example, when the variance of voxel values included in one detailed region is greater than or equal to a predetermined value, voxels included in one detailed region may be subdivided into two or more detailed regions according to a predetermined criterion.

예컨대, 하나의 세부 영역에 포함된 복셀들의 휘도 값의 분포를 확인한 결과, 한 그룹의 복셀들은 50 내지 60의 휘도 값을 갖고, 다른 그룹의 복셀들은 200 내지 250의 휘도 값을 가지면, 해당 세부 영역에 포함된 복셀들은 제1 그룹(휘도 값 50 내지 60) 및 제2 그룹(휘도 값 200 내지 250)으로 세분화될 수 있다. 이와 같이 세분화된 각각의 복셀 그룹이 구성하는 영역은 다시 세부 영역으로 정의되고, 상기 세분화 작업이 재귀적 및/또는 반복적으로 수행될 수 있다. For example, as a result of checking the distribution of luminance values of voxels included in one sub-region, if voxels of one group have luminance values of 50 to 60, and voxels of another group have luminance values of 200 to 250, the corresponding sub-region Voxels included in may be subdivided into a first group (luminance values 50 to 60) and a second group (luminance values 200 to 250). The region constituting each voxel group subdivided as described above is again defined as a detailed region, and the subdivision operation may be performed recursively and/or repeatedly.

상기 세분화 작업을 수행한 결과로 획득된 세부 영역에 포함된 복셀 값들의 분산은 일정 값 이하가 된다. 따라서, 상기 세분화 작업을 통해, 3차원 영상에서 동일한 물성을 갖는 영역들을 식별해 낼 수 있다. 상기 세분화 작업을 수행한 결과로 획득된 세부 영역은 초기 세부 영역과 구별하기 위해 최종 세부 영역으로 호칭될 수 있다.The variance of voxel values included in the detailed region obtained as a result of performing the subdivision operation becomes less than a certain value. Accordingly, through the subdivision operation, regions having the same physical properties in the 3D image can be identified. The detailed area obtained as a result of performing the subdivision operation may be referred to as a final detailed area to distinguish it from the initial detailed area.

예컨대, 3차원 보안 CT 영상의 경우 단순 연결 요소 추출법만으로 초기 세부 영역을 한정하게 되면, 분해능 등의 장비 한계점으로 인해 다른 성질을 갖는 물체들까지 하나의 영역(객체)으로 합쳐지게 된다. 따라서, 1차로 추출된 연결 요소 기반 세부 영역 내에서, 복셀 값의 차이가 크지 않도록(즉, 분산이 일정 값 이하가 되도록) 세분화할 수 있다. 이를 통해, 해당 물체의 성질, 밀도 등을 고려한 동일/유사한 성질을 갖는 객체 영역들을 비교적 정확히 검출해 낼 수 있다.For example, in the case of a 3D security CT image, if an initial detailed area is limited only by a simple connection element extraction method, objects having different properties are merged into one area (object) due to equipment limitations such as resolution. Therefore, in the sub-region based on the connection element extracted first, it can be subdivided so that the difference in voxel values is not large (that is, the variance is less than a certain value). Through this, it is possible to relatively accurately detect object regions having the same/similar properties in consideration of the properties and density of the object.

그러나, 상기 예에 한정되지 않으며, 3차원 전체 영역에 대해 균일하게 세부 영역을 추출할 수도 있다. 즉, 이진화 이후 연결 요소(Connected Component) 추출법을 통해 추출된 초기 세부 영역을 그대로 최종 세부 영역으로 이용할 수 있다. However, it is not limited to the above example, and detailed regions may be uniformly extracted for the entire three-dimensional region. That is, after binarization, the initial detailed region extracted through the Connected Component extraction method can be used as the final detailed region.

단계 S2330에서 영역 통합 및/또는 영역 분할이 수행될 수 있다.Region integration and/or region division may be performed in step S2330.

세부 영역(초기 세부 영역 또는 최종 세부 영역) 내 복셀들의 측정 값 (예컨대, CT 장비에서 직접 인식된 원본 신호 값) 혹은 표시 값 (예컨대, 측정 값에 기반하여 디스플레이 기기에 출력하기 위한 값), 세부 영역의 3차원 위치, 크기, 형태, 후술하는 병합 이후의 형태, 영역 간 인접 부분의 유사도 등과 같은 기준에 기초하여 세부 영역들을 계층적으로 병합할 수 있다.Measurement values of voxels within a detailed area (initial detailed area or final detailed area) (e.g., the original signal value directly recognized by CT equipment) or display value (e.g., a value to be output to a display device based on the measured value), details Detailed regions may be hierarchically merged based on criteria such as a three-dimensional position, a size, and a shape of the region, a shape after merging to be described later, and similarity of adjacent portions between regions.

도 24는 세부 영역을 병합 및/또는 분할하는 실시예를 설명하기 위한 도면이다.24 is a diagram for describing an embodiment of merging and/or dividing detailed regions.

도 24에 있어서, A 내지 G는 영상에 포함된 세부 영역 또는 병합된 세부 영역을 지시한다.In FIG. 24, A to G indicate a detailed region included in the image or a merged detailed region.

예컨대, bottom-up 접근법의 경우, 도 24의 (a)에서 (d)의 방향으로 영역의 병합이 수행될 수 있다. 반대로, top-down 접근법의 경우, 도 24의 (d)에서 (a)의 방향으로 영역의 분할이 수행될 수 있다. 이러한 과정을 통해, 세부 영역 및 병합(분할)된 세부 영역 간의 계층 구조가 도출될 수 있다.For example, in the case of a bottom-up approach, regions may be merged in the directions of FIGS. 24A to 24D. Conversely, in the case of the top-down approach, division of the region in the direction of (a) from (d) of FIG. 24 may be performed. Through this process, a hierarchical structure between the detailed area and the merged (divided) detailed area may be derived.

도 24의 (a)에 있어서, 예를 들어, 세부 영역 A와 세부 영역 B가 소정의 병합 조건에 부합하면 도 24의 (b)의 세부 영역 E로 병합될 수 있다. 새로운 세부 영역 E는 세부 영역 A 및 세부 영역 B가 포함하는 복셀들을 모두 포함할 수 있다. 또한 세부 영역 E의 하위 영역으로 세부 영역 A와 세부 영역 B가 위치하게 된다. 이러한 계층적 관계는 도 24의 (b)에 해당하는 "계층 구조"로 나타낼 수 있다. In (a) of FIG. 24, if, for example, the detailed area A and the detailed area B meet a predetermined merging condition, they may be merged into the detailed area E of FIG. 24(b). The new detailed area E may include all voxels included in the detailed area A and the detailed area B. In addition, a detailed area A and a detailed area B are located as sub areas of the detailed area E. This hierarchical relationship may be represented by a "hierarchical structure" corresponding to (b) of FIG. 24.

계속하여, 예를 들어, 세부 영역 E와 세부 영역 C가 소정의 병합 조건에 부합하면, 도 24의 (c)의 세부 영역 F로 병합될 수 있다. 새로운 세부 영역 F는 세부 영역 E 및 세부 영역 C가 포함하는 복셀들을 모두 포함할 수 있다. 또한 세부 영역 F의 하위 영역으로 세부 영역 E와 세부 영역 C가 위치하게 된다. 이러한 계층적 관계는 도 24의 (c)에 해당하는 "계층 구조"로 나타낼 수 있다.Subsequently, for example, if the detailed area E and the detailed area C meet a predetermined merging condition, they may be merged into the detailed area F of FIG. 24C. The new detailed area F may include all voxels included in the detailed area E and the detailed area C. In addition, the detailed area E and the detailed area C are located as sub areas of the detailed area F. This hierarchical relationship may be represented by a "hierarchical structure" corresponding to (c) of FIG. 24.

계속하여, 예를 들어, 세부 영역 F와 세부 영역 D가 소정의 병합 조건에 부합하면, 도 24의 (d)의 세부 영역 G로 병합될 수 있다. 새로운 세부 영역 G는 세부 영역 F 및 세부 영역 D가 포함하는 복셀들을 모두 포함할 수 있다. 또한 세부 영역 G의 하위 영역으로 세부 영역 F와 세부 영역 D가 위치하게 된다. 이러한 계층적 관계는 도 24의 (d)에 해당하는 "계층 구조"로 나타낼 수 있다.Subsequently, for example, if the detailed area F and the detailed area D meet a predetermined merging condition, they may be merged into the detailed area G of FIG. 24D. The new detailed area G may include all voxels included in the detailed area F and the detailed area D. In addition, a detailed area F and a detailed area D are located as sub areas of the detailed area G. This hierarchical relationship may be represented by a "hierarchical structure" corresponding to (d) of FIG. 24.

상기와 같이 세부 영역의 병합 과정을 반복적으로 수행함으로써, 모든 작업이 끝날 경우 세부 영역들에 대한 관계가 트리 구조 형태로 표현될 수 있다.By repeatedly performing the process of merging the detailed regions as described above, when all tasks are completed, the relationship to the detailed regions can be expressed in the form of a tree structure.

소정의 병합 조건이란, 각 세부 영역들이 완전히 다른 물체에 해당하는 것이 아닌, 상관 관계를 갖는 영역들끼리 병합되기 위한 기준이다. 소정의 병합 조건은 예컨대, 다음과 같을 수 있다. The predetermined merging condition is a criterion for merging the correlated areas, rather than corresponding to completely different objects. The predetermined merging conditions may be, for example, as follows.

병합은 현재 세부 영역들 중 크기가 작은 세부 영역들을 우선적으로 병합하는 형태로 진행될 수 있다. 예컨대, 도 24의 (a)에서 세부 영역 A와 세부 영역 B가 가장 작으므로, 세부 영역 A와 세부 영역 B에 대한 병합이 먼저 수행될 수 있다. 유사한 이유로, 세부 영역 A와 세부 영역 D를 결합하거나, 세부 영역 A와 세부 영역 C를 결합하는 형태로는 진행되지 않을 수 있다.The merging may be performed in a form of preferentially merging detailed areas having a small size among the current detailed areas. For example, in (a) of FIG. 24, since the detailed area A and the detailed area B are the smallest, merging of the detailed area A and the detailed area B may be performed first. For similar reasons, it may not proceed in the form of combining the detailed area A and the detailed area D, or combining the detailed area A and the detailed area C.

병합은 병합되는 세부 영역들 사이의 위치(거리)에 기초하여 수행될 수 있다. 예컨대, 가까운 거리에 있는 세부 영역들이 우선적으로 병합될 수 있다. 도 24의 (a)에서 세부 영역 A와 세부 영역 B는 가깝고, 세부 영역 B와 세부 영역 C는 멀다. 따라서, 세부 영역 A와 세부 영역 B에 대한 병합이 먼저 수행될 수 있다.Merging may be performed based on the location (distance) between the sub-areas to be merged. For example, detailed regions at a close distance may be preferentially merged. In (a) of FIG. 24, the detailed area A and the detailed area B are close, and the detailed area B and the detailed area C are far. Accordingly, merging of the detailed area A and the detailed area B may be performed first.

병합은 병합되는 세부 영역들 사이의 형태(병합면의 형태 또는 인접 부분의 유사도 등)에 기초하여 수행될 수 있다. 예컨대, 세부 영역 A와 세부 영역 B는 병합면이 특징적이고, 인접 부분의 형태가 유사하다. 따라서, 세부 영역 A와 세부 영역 B에 대한 병합이 우선적으로 수행될 수 있다.Merging may be performed based on a shape between the sub-regions to be merged (the shape of the merged surface or the similarity of adjacent portions). For example, the sub-area A and the sub-area B are characterized by a merge surface, and the shapes of adjacent portions are similar. Accordingly, merging of the detailed area A and the detailed area B may be performed preferentially.

병합은 병합된 후의 형태에 기초하여 수행될 수 있다. 도 24의 (a)에서 세부 영역 A와 세부 영역 B를 병합한 형태는 거의 완벽한 원의 형태(3차원 영상에서는 구의 형태)가 된다. 이 경우, 세부 영역 A와 세부 영역 B는 동일 객체에 포함된 세부 영역들일 확률이 크다. 따라서, 세부 영역 A와 세부 영역 B의 병합이 우선적으로 수행될 수 있다.Merging may be performed based on the shape after merging. In (a) of FIG. 24, the shape in which the detailed area A and the detailed area B are merged becomes an almost perfect circle (a sphere in a 3D image). In this case, there is a high probability that the detailed area A and the detailed area B are detailed areas included in the same object. Accordingly, merging of the detailed area A and the detailed area B may be performed preferentially.

상기 언급한 기준들 이외에도 본 발명의 취지에 부합하는 기준들(즉, 하나의 객체에 포함된다고 판단할 수 있을 만한 기준들)이 적용될 수 있다.In addition to the above-mentioned criteria, criteria conforming to the spirit of the present invention (ie, criteria capable of being judged to be included in one object) may be applied.

본 발명의 다른 실시예에 따르면, 상기 bottom-up 과정을 반대로 수행하여 전체 영역에서 세부 영역으로 분할하는 방식(top-down 방식)으로 진행할 수 있다.According to another embodiment of the present invention, the bottom-up process may be reversed, and the entire area may be divided into detailed areas (top-down method).

도 24의 (c)와 (d)에 있어서, 예를 들어, 영역 G에 포함된 세부 영역 F와 세부 영역 D가 소정의 병합 조건에 부합하면, 도 24의 (d)의 영역 G는 도 24의 (c)의 세부 영역 F와 세부 영역 D로 분할될 수 있다.In (c) and (d) of FIG. 24, for example, if the detailed area F and the detailed area D included in the area G meet a predetermined merging condition, the area G of FIG. 24(d) is It can be divided into a detailed area F and a detailed area D in (c) of.

계속하여, 도 24의 (b)와 (c)에 있어서, 예를 들어, 세부 영역 F에 포함된 세부 영역 E와 세부 영역 C가 소정의 병합 조건에 부합하면, 도 24의 (c)의 세부 영역 F는 도 24의 (b)의 세부 영역 E와 세부 영역 C로 분할될 수 있다.Subsequently, in (b) and (c) of FIG. 24, for example, if the detailed area E and the detailed area C included in the detailed area F meet a predetermined merging condition, the details of FIG. 24(c) The area F may be divided into a detailed area E and a detailed area C of FIG. 24B.

계속하여, 도 24의 (a)와 (b)에 있어서, 예를 들어, 세부 영역 E에 포함된 세부 영역 A와 세부 영역 B가 소정의 병합 조건에 부합하면, 도 24의 (b)의 세부 영역 E는 도 24의 (a)의 세부 영역 A와 세부 영역 B로 분할될 수 있다.Subsequently, in (a) and (b) of FIG. 24, for example, if the detailed area A and the detailed area B included in the detailed area E meet a predetermined merging condition, the details of FIG. 24(b) The area E may be divided into a detailed area A and a detailed area B of FIG. 24A.

도 24는 2차원 영상을 도시하였으나, 본 실시예는 3차원 영상을 대상으로 수행될 수 있다. Bottom-up 방식의 경우, 3차원 영상에 포함된 3차원의 세부 영역들을 상기 기준에 따라 병합하여 나갈 수 있다. top-down 방식의 경우, 3차원 영상으로부터 3차원의 세부 영역들로 분할해 나갈 수 있다.24 shows a 2D image, but this embodiment may be performed on a 3D image. In the case of the bottom-up method, 3D detailed regions included in the 3D image may be merged according to the above criteria. In the case of the top-down method, the 3D image can be divided into 3D detailed regions.

bottom-up 방식의 경우, 예컨대 도 24에 도시된 바와 같이, 세부 영역 A와 세부 영역 B가 세부 영역 E로 병합될 수 있다(도 24의 (b)). 그 후, 세부 영역 E와 세부 영역 C가 세부 영역 F로 병합될 수 있다(도 24의 (c)). 그 후, 세부 영역 F와 세부 영역 D가 세부 영역 G로 병합될 수 있다(도 24의 (d)). 최종적으로 3차원 영상과 동일 크기의 영역 G가 병합에 의해 획득되면, 병합에 순서에 따른 계층 구조가 획득될 수 있다. In the case of the bottom-up method, for example, as shown in FIG. 24, the detailed area A and the detailed area B may be merged into the detailed area E (FIG. 24(b)). After that, the detailed area E and the detailed area C may be merged into the detailed area F (Fig. 24(c)). After that, the detailed area F and the detailed area D may be merged into the detailed area G (Fig. 24(d)). Finally, when the region G having the same size as the 3D image is obtained by merging, a hierarchical structure according to the order of merging may be obtained.

top-down 방식의 경우, 3차원 영상과 동일 크기의 영역 G를 세부 영역 F와 세부 영역 D로 분할할 수 있다(도 24의 (c)). 그 후, 세부 영역 F를 세부 영역 E와 세부 영역 C로 분할할 수 있다(도 24의 (b)). 그 후, 세부 영역 E를 세부 영역 A와 세부 영역 B로 분할할 수 있다(도 24의 (a)). top-down 방식의 경우, 더 이상 분할할 수 없는 단계까지 영역을 분할한 후, 분할의 순서에 따른 계층 구조가 획득될 수 있다. In the case of the top-down method, an area G having the same size as a 3D image can be divided into a detailed area F and a detailed area D (Fig. 24(c)). After that, the detailed area F can be divided into a detailed area E and a detailed area C (Fig. 24(b)). After that, the detailed area E can be divided into a detailed area A and a detailed area B (FIG. 24A). In the case of the top-down method, after dividing an area to a level that cannot be divided anymore, a hierarchical structure according to the order of division may be obtained.

동일한 객체를 포함하는 동일한 3차원 영상에 대해 bottom-up 방식에 따라 획득된 계층 구조와 top-down 방식에 따라 획득된 계층 구조는 동일할 수 있다.For the same 3D image including the same object, a layer structure obtained according to a bottom-up method and a layer structure obtained according to a top-down method may be the same.

단계 S2340에서 세부 영역에 대한 분류가 수행될 수 있다. 또한 단계 S2350에서 영역의 통합/분할에 따른 계층 구조가 분석될 수 있다. 세부 영역에 대한 분류 결과와 계층 구조를 분석한 결과를 이용하여 단계 S2360에서 최종 결과가 출력될 수 있다. 최종 결과(최종 분석 결과)는 목적물(객체)의 종류를 식별하는 것일 수 있다.In step S2340, classification for the detailed area may be performed. In addition, in step S2350, a hierarchical structure according to the integration/division of regions may be analyzed. The final result may be output in step S2360 by using the classification result for the detailed region and the result of analyzing the hierarchical structure. The final result (final analysis result) may be to identify the type of object (object).

보다 구체적으로 설명하면, 단계 S2340에서, 각 세부 영역에 해당하는 객체(목적물)의 종류를 자동 분류할 수 있다. 이를 위해, 전술한 다양한 객체 검출/분류 알고리즘이 적용될 수 있다. 2차원 영상으로부터 객체를 검출하고 분류하는 본 발명의 실시예에 따른 다양한 방법들은 3차원 영상으로부터 객체를 검출하기 위해 동일하게 사용되거나 또는 차원의 증가에 따라 변형된 후 사용될 수 있다. 또는 3차원 영상으로부터 객체를 검출하고 분류하기 위해, 3차원 신경망 구조 혹은 semi-3D 신경망 구조가 이용될 수 있다. 또는, 상기 계층적 트리 구조를 이용하기 위한 재귀 신경망(RNN, Recursive Neural Network) 구조를 적용할 수 있다. 또는, 계층적 트리 구조에 따른 목적물의 포함 관계에 관한 확률을 분류 결과에 대한 가중치로 사용함으로써 신뢰도를 보정할 수 있다. 상기 확률은 사전에 정의될 수 있다.More specifically, in step S2340, the types of objects (objects) corresponding to each detailed area may be automatically classified. To this end, various object detection/classification algorithms described above can be applied. Various methods according to an embodiment of the present invention for detecting and classifying an object from a 2D image may be used identically to detect an object from a 3D image or may be used after being deformed according to an increase in dimension. Alternatively, in order to detect and classify an object from a 3D image, a 3D neural network structure or a semi-3D neural network structure may be used. Alternatively, a recursive neural network (RNN) structure for using the hierarchical tree structure may be applied. Alternatively, the reliability may be corrected by using the probability of the inclusion relationship of the object according to the hierarchical tree structure as a weight for the classification result. The probability can be defined in advance.

본 개시에 따르면, 3차원 영상에 포함된 객체의 분류 성능을 높이기 위해, S2350의 계층적 트리 구조가 이용될 수 있다. 예컨대, 스마트폰은 리튬 배터리를 포함하고 있으므로, 트리의 하위 노드가 리튬 배터리일 때, 상위 노드는 스마트폰일 가능성이 높다. 그러나, 그 반대의 경우는 가능하지 않으므로 분류 후보에서 제외될 수 있다. 예컨대, 하위 노드가 배터리일 때, 상위 노드가 노트북이나 휴대폰일 확률은 높게 정의될 수 있다. 그러나 상위 노드가 칼 또는 USB일 확률은 낮게 정의될 수 있다. 이러한 확률은 각 노드에 해당하는 객체의 분류를 위한 가중치로서 사용될 수 있다. According to the present disclosure, a hierarchical tree structure of S2350 may be used to improve classification performance of objects included in a 3D image. For example, since a smartphone contains a lithium battery, when a lower node of the tree is a lithium battery, the upper node is likely to be a smartphone. However, the reverse case is not possible and thus may be excluded from the classification candidate. For example, when the lower node is a battery, the probability that the higher node is a laptop or mobile phone may be defined high. However, the probability that the upper node is a knife or USB can be defined low. This probability can be used as a weight for classifying an object corresponding to each node.

도 25는 본 발명에 따라 여행자 가방으로부터 객체를 검출하는 실시예를 설명하기 위한 도면이다.25 is a diagram for explaining an embodiment of detecting an object from a traveler's bag according to the present invention.

본 발명에 따라 3차원 영상을 분석한 결과 도 25에 도시된 바와 같은 계층적 트리 구조가 획득될 수 있다. 하위 노드에 배터리와 화약을 포함하고 있는 노드는 폭발물일 확률이 높다. 폭발물에 포함된 또 다른 하위 노드는 뇌관으로 분류될 확률이 높다. 또한 배터리, CPU, 카메라를 하위 노드로서 포함하는 노드는 스마트폰으로 분류될 확률이 높다. 반대로, 스마트폰으로 분류된 노드의 하위 노드는 스마트폰이 일반적으로 포함하는 객체(배터리, CPU, 카메라 등)들 중 하나로 분류될 확률이 높다. As a result of analyzing a 3D image according to the present invention, a hierarchical tree structure as shown in FIG. 25 may be obtained. Nodes that contain batteries and gunpowder in lower nodes are likely to be explosives. Another sub-node included in the explosive is likely to be classified as a detonator. In addition, nodes that include battery, CPU, and camera as sub-nodes are likely to be classified as smartphones. Conversely, a lower node of a node classified as a smartphone is likely to be classified as one of the objects (battery, CPU, camera, etc.) generally included in the smartphone.

이와 같이, 상위 노드의 객체와 하위 노드의 객체는 소정의 포함 관계를 가질 수 있으며, 이러한 포함 관계를 이용하여 객체의 분류를 보다 정확하게 수행할 수 있다. 예컨대, 하위 노드의 객체들의 분류 결과가 상위 노드의 객체를 분류하는데 이용될 수 있다. 또는 상위 노드의 객체의 분류 결과가 하위 노드의 객체들을 분류하는데 이용될 수 있다. 또는 하위 노드의 객체의 분류 결과를 이용하여 상위 노드의 객체를 분류하고, 다시 상위 노드의 객체의 분류 결과를 이용하여 분류가 어려운 하위 노드의 객체의 분류에 이용하거나, 또는 하위 노드의 객체의 분류 결과를 검증할 수도 있다. 전술한 예 이외에, 계층적 트리 구조를 이용하여 트리의 각 노드에 해당하는 객체의 분류 결과를 향상시킬 수 있는 모든 방법들이 본 발명의 범위에 포함될 수 있다.In this way, the object of the upper node and the object of the lower node may have a predetermined containment relationship, and classification of the object can be performed more accurately by using the containment relationship. For example, a result of classifying objects of a lower node may be used to classify an object of an upper node. Alternatively, the result of classifying the objects of the upper node may be used to classify the objects of the lower node. Alternatively, the object of the upper node is classified using the classification result of the object of the lower node, and again, the classification result of the object of the upper node is used to classify the object of the lower node, or the object of the lower node is classified. You can also verify the results. In addition to the above-described examples, all methods capable of improving the classification result of an object corresponding to each node of the tree using a hierarchical tree structure may be included in the scope of the present invention.

이와 같은 접근법은 2차원 영상에 대해서도 적용될 수 있다. 그러나, 본 발명은 3차원 영상에 대해서 최적의 효과를 가질 수 있다. 왜냐하면 비파괴 검사법에 따를 때, 2차원 영상의 경우 세부 영역들이 중첩되는 경우가 많으므로, 동일한 객체라고 하더라도 중첩된 부분과 중첩되지 않은 부분에 투과율의 차이가 발생할 수 있다. 투과율에 차이가 발생하면, 각각의 부분들은 상이한 픽셀 값의 범위로 표현되므로, 결론적으로 각각의 부분들은 서로 다른 세부 영역으로 판단될 수 있기 때문이다. 반면, 3차원 영상의 경우, 세부 영역들이 중첩되지 않으므로, 각각의 세부 영역을 명확히 분리해 낼 수 있다. 따라서, 세부 영역들 간의 포함 관계를 이용하는 본 발명의 실시예가 효과적으로 적용될 수 있다.This approach can also be applied to 2D images. However, the present invention may have an optimal effect on a 3D image. This is because, according to the non-destructive inspection method, in the case of a 2D image, detailed areas are often overlapped, and thus a difference in transmittance may occur in an overlapped portion and a non-overlapping portion even if the object is the same. This is because when a difference in transmittance occurs, each portion is expressed in a range of different pixel values, and consequently, each portion can be determined as a different detailed region. On the other hand, in the case of a 3D image, since detailed areas do not overlap, each detailed area can be clearly separated. Accordingly, an embodiment of the present invention using the inclusion relationship between detailed areas can be effectively applied.

본 개시의 예시적인 방법들은 설명의 명확성을 위해서 동작의 시리즈로 표현되어 있지만, 이는 단계가 수행되는 순서를 제한하기 위한 것은 아니며, 필요한 경우에는 각각의 단계가 동시에 또는 상이한 순서로 수행될 수도 있다. 본 개시에 따른 방법을 구현하기 위해서, 예시하는 단계에 추가적으로 다른 단계를 포함하거나, 일부의 단계를 제외하고 나머지 단계를 포함하거나, 또는 일부의 단계를 제외하고 추가적인 다른 단계를 포함할 수도 있다.Exemplary methods of the present disclosure are expressed as a series of operations for clarity of explanation, but this is not intended to limit the order in which steps are performed, and each step may be performed simultaneously or in a different order if necessary. In order to implement the method according to the present disclosure, the illustrative steps may include additional steps, other steps may be included excluding some steps, or may include additional other steps excluding some steps.

본 개시의 다양한 실시예는 모든 가능한 조합을 나열한 것이 아니고 본 개시의 대표적인 양상을 설명하기 위한 것이며, 다양한 실시예에서 설명하는 사항들은 독립적으로 적용되거나 또는 둘 이상의 조합으로 적용될 수도 있다.Various embodiments of the present disclosure are not intended to list all possible combinations, but to describe representative aspects of the present disclosure, and matters described in the various embodiments may be applied independently or may be applied in combination of two or more.

또한, 본 개시의 다양한 실시예는 하드웨어, 펌웨어(firmware), 소프트웨어, 또는 그들의 결합 등에 의해 구현될 수 있다. 하드웨어에 의한 구현의 경우, 하나 또는 그 이상의 ASICs(Application Specific Integrated Circuits), DSPs(Digital Signal Processors), DSPDs(Digital Signal Processing Devices), PLDs(Programmable Logic Devices), FPGAs(Field Programmable Gate Arrays), 범용 프로세서(general processor), 컨트롤러, 마이크로 컨트롤러, 마이크로 프로세서 등에 의해 구현될 수 있다. In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. For implementation by hardware, one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general purpose It may be implemented by a processor (general processor), a controller, a microcontroller, a microprocessor, or the like.

본 개시의 범위는 다양한 실시예의 방법에 따른 동작이 장치 또는 컴퓨터 상에서 실행되도록 하는 소프트웨어 또는 머신-실행가능한 명령들(예를 들어, 운영체제, 애플리케이션, 펌웨어(firmware), 프로그램 등), 및 이러한 소프트웨어 또는 명령 등이 저장되어 장치 또는 컴퓨터 상에서 실행 가능한 비-일시적 컴퓨터-판독가능 매체(non-transitory computer-readable medium)를 포함한다.The scope of the present disclosure is software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause an operation according to the method of various embodiments to be executed on a device or computer, and such software or It includes a non-transitory computer-readable medium (non-transitory computer-readable medium) which stores instructions and the like and is executable on a device or a computer.

Claims (25)

하나 이상의 객체를 포함하는 영상을 획득하는 단계;
상기 영상으로부터 복수의 세부 영역을 추출하는 단계;
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계; 및
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계를 포함하고,
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는,
상기 세부 영역의 위치, 상기 세부 영역의 크기, 상기 세부 영역의 형태, 병합된 영역의 형태 및 세부 영역간 인접 부분의 유사도를 고려하여, 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하여 상기 계층 구조를 구성하는 단계를 포함하는 영상 분석 방법.
Obtaining an image including one or more objects;
Extracting a plurality of detailed regions from the image;
Analyzing a hierarchical structure between the plurality of detailed regions; And
And classifying the object included in the image using the hierarchical structure,
Analyzing the hierarchical structure between the plurality of detailed regions,
In consideration of the location of the sub-region, the size of the sub-region, the shape of the sub-region, the shape of the merged region, and the similarity of adjacent parts between sub-regions, the hierarchical structure is formed by merging two or more sub-regions into the one region. Image analysis method comprising the step of configuring.
제1항에 있어서,
상기 영상은 3차원 영상인 영상 분석 방법.
The method of claim 1,
The image is a three-dimensional image analysis method.
제1항에 있어서,
상기 영상으로부터 복수의 세부 영역을 추출하는 단계는,
상기 영상을 이진화하여 초기 세부 영역을 추출하는 단계; 및
상기 초기 세부 영역을 세분화하여 최종 세부 영역을 추출하는 단계를 포함하는 영상 분석 방법.
The method of claim 1,
The step of extracting a plurality of detailed regions from the image,
Binarizing the image to extract an initial detailed region; And
And subdividing the initial detailed region to extract a final detailed region.
제3항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 초기 세부 영역에 포함된 복셀들의 값에 기초하여 상기 초기 세부 영역을 세분화하는 영상 분석 방법.
The method of claim 3,
The step of extracting the final detailed region,
An image analysis method for subdividing the initial detailed region based on values of voxels included in the initial detailed region.
제4항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산을 이용하여 수행되는 영상 분석 방법.
The method of claim 4,
The step of extracting the final detailed region,
An image analysis method performed by using the variance of values of the voxels.
제5항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산이 소정의 임계치보다 크면, 상기 초기 세부 영역을 둘 이상의 세부 영역으로 세분화하고,
상기 세분화하여 획득된 세부 영역을 초기 세부 영역으로 하여, 상기 초기 세부 영역을 세분화하는 단계를 수행하는 영상 분석 방법.
The method of claim 5,
The step of extracting the final detailed region,
If the variance of the values of the voxels is greater than a predetermined threshold, the initial detailed region is subdivided into two or more detailed regions,
An image analysis method for performing the step of subdividing the initial detailed region by using the detailed region obtained by subdividing as an initial detailed region.
제5항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산이 소정의 임계치 이하이면, 상기 초기 세부 영역을 최종 세부 영역으로 결정하는 영상 분석 방법.
The method of claim 5,
The step of extracting the final detailed region,
When the variance of the values of the voxels is less than or equal to a predetermined threshold, the initial detailed region is determined as the final detailed region.
제1항에 있어서,
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는,
상기 복수의 세부 영역들 중 둘 이상의 세부 영역들이 하나의 영역으로 병합가능한지 판단하는 단계;
병합가능한 경우, 상기 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하는 단계; 및
상기 병합된 영역을 상위 영역으로 하고, 상기 둘 이상의 세부 영역들을 하위 영역으로하는 계층 구조를 결정하는 단계를 포함하는 영상 분석 방법.
The method of claim 1,
Analyzing the hierarchical structure between the plurality of detailed regions,
Determining whether two or more of the plurality of detailed areas can be merged into one area;
Merging the two or more sub-areas into the one area if mergeable; And
And determining a hierarchical structure including the merged region as an upper region and the two or more detailed regions as a lower region.
제8항에 있어서,
상기 계층 구조를 분석하는 단계는,
상기 복수의 세부 영역들이 하나의 영역으로 병합될 때까지 재귀적으로 수행되는 영상 분석 방법.
The method of claim 8,
Analyzing the hierarchical structure,
An image analysis method performed recursively until the plurality of detailed regions are merged into one region.
삭제delete 제1항에 있어서,
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는,
상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과를 이용하여 수행되는 영상 분석 방법.
The method of claim 1,
Classifying the object included in the image using the hierarchical structure,
An image analysis method performed using a classification result of an object corresponding to an upper area of the object or an object corresponding to a lower area of the object.
제11항에 있어서,
상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과에 따라 상기 객체의 분류 결과에 적용될 확률이 기정의되고,
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는, 상기 확률을 이용하여 상기 객체의 분류를 수행하는 영상 분석 방법.
The method of claim 11,
A probability to be applied to the classification result of the object is predefined according to the classification result of the object corresponding to the upper region of the object or the object corresponding to the lower region of the object,
Classifying the object included in the image using the hierarchical structure may include classifying the object using the probability.
하나 이상의 마이크로 프로세서를 포함하는 영상 분석 장치로서,
상기 프로세서는
하나 이상의 객체를 포함하는 영상을 획득하는 단계;
상기 영상으로부터 복수의 세부 영역을 추출하는 단계;
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계; 및
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계를 수행하고,
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는,
상기 세부 영역의 위치, 상기 세부 영역의 크기, 상기 세부 영역의 형태, 병합된 영역의 형태 및 세부 영역간 인접 부분의 유사도를 고려하여, 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하여 상기 계층 구조를 구성하는 단계를 포함하여 수행하는 영상 분석 장치.
An image analysis apparatus comprising at least one microprocessor,
The processor is
Obtaining an image including one or more objects;
Extracting a plurality of detailed regions from the image;
Analyzing a hierarchical structure between the plurality of detailed regions; And
Classifying the object included in the image using the hierarchical structure,
Analyzing the hierarchical structure between the plurality of detailed regions,
In consideration of the location of the sub-region, the size of the sub-region, the shape of the sub-region, the shape of the merged region, and the similarity of adjacent parts between sub-regions, the hierarchical structure is formed by merging two or more sub-regions into the one region. An image analysis device to perform, including the step of configuring.
제13항에 있어서,
상기 영상은 3차원 영상인 영상 분석 장치.
The method of claim 13,
The image analysis device is a three-dimensional image.
제13항에 있어서,
상기 영상으로부터 복수의 세부 영역을 추출하는 단계는,
상기 영상을 이진화하여 초기 세부 영역을 추출하는 단계; 및
상기 초기 세부 영역을 세분화하여 최종 세부 영역을 추출하는 단계를 포함하는 영상 분석 장치.
The method of claim 13,
The step of extracting a plurality of detailed regions from the image,
Binarizing the image to extract an initial detailed region; And
And subdividing the initial detailed region to extract a final detailed region.
제15항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 초기 세부 영역에 포함된 복셀들의 값에 기초하여 상기 초기 세부 영역을 세분화하는 영상 분석 장치.
The method of claim 15,
The step of extracting the final detailed region,
An image analysis apparatus for subdividing the initial detailed region based on values of voxels included in the initial detailed region.
제16항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산을 이용하여 수행되는 영상 분석 장치.
The method of claim 16,
The step of extracting the final detailed region,
An image analysis apparatus performed by using the variance of values of the voxels.
제17항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산이 소정의 임계치보다 크면, 상기 초기 세부 영역을 둘 이상의 세부 영역으로 세분화하고,
상기 세분화하여 획득된 세부 영역을 초기 세부 영역으로 하여, 상기 초기 세부 영역을 세분화하는 단계를 수행하는 영상 분석 장치.
The method of claim 17,
The step of extracting the final detailed region,
If the variance of the values of the voxels is greater than a predetermined threshold, the initial detailed region is subdivided into two or more detailed regions,
An image analysis apparatus for performing the step of subdividing the initial detailed region by using the subdivided and acquired detailed region as an initial detailed region.
제17항에 있어서,
상기 최종 세부 영역을 추출하는 단계는,
상기 복셀들의 값의 분산이 소정의 임계치 이하이면, 상기 초기 세부 영역을 최종 세부 영역으로 결정하는 영상 분석 장치.
The method of claim 17,
The step of extracting the final detailed region,
When the variance of the values of the voxels is less than or equal to a predetermined threshold, the image analysis apparatus determines the initial detailed region as the final detailed region.
제13항에 있어서,
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는,
상기 복수의 세부 영역들 중 둘 이상의 세부 영역들이 하나의 영역으로 병합가능한지 판단하는 단계;
병합가능한 경우, 상기 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하는 단계; 및
상기 병합된 영역을 상위 영역으로 하고, 상기 둘 이상의 세부 영역들을 하위 영역으로하는 계층 구조를 결정하는 단계를 포함하는 영상 분석 장치.
The method of claim 13,
Analyzing the hierarchical structure between the plurality of detailed regions,
Determining whether two or more of the plurality of detailed areas can be merged into one area;
Merging the two or more sub-areas into the one area if mergeable; And
And determining a hierarchical structure in which the merged region is an upper region and the two or more detailed regions are a lower region.
제20항에 있어서,
상기 계층 구조를 분석하는 단계는,
상기 복수의 세부 영역들이 하나의 영역으로 병합될 때까지 재귀적으로 수행되는 영상 분석 장치.
The method of claim 20,
Analyzing the hierarchical structure,
An image analysis apparatus that is performed recursively until the plurality of detailed regions are merged into one region.
삭제delete 제13항에 있어서,
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는,
상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과를 이용하여 수행되는 영상 분석 장치.
The method of claim 13,
Classifying the object included in the image using the hierarchical structure,
An image analysis apparatus performed by using a classification result of an object corresponding to an upper area of the object or an object corresponding to a lower area of the object.
제23항에 있어서,
상기 객체의 상위 영역에 해당하는 객체 또는 상기 객체의 하위 영역에 해당하는 객체의 분류 결과에 따라 상기 객체의 분류 결과에 적용될 확률이 기정의되고,
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계는, 상기 확률을 이용하여 상기 객체의 분류를 수행하는 영상 분석 장치.
The method of claim 23,
A probability to be applied to the classification result of the object is predefined according to the classification result of the object corresponding to the upper region of the object or the object corresponding to the lower region of the object,
The step of classifying the object included in the image using the hierarchical structure may include classifying the object using the probability.
하나 이상의 객체를 포함하는 영상을 획득하는 단계;
상기 영상으로부터 복수의 세부 영역을 추출하는 단계;
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계; 및
상기 계층 구조를 이용하여 상기 영상에 포함된 상기 객체를 분류하는 단계를 실행하고,
상기 복수의 세부 영역들 간의 계층 구조를 분석하는 단계는,
상기 세부 영역의 위치, 상기 세부 영역의 크기, 상기 세부 영역의 형태, 병합된 영역의 형태 및 세부 영역간 인접 부분의 유사도를 고려하여, 둘 이상의 세부 영역들을 상기 하나의 영역으로 병합하여 상기 계층 구조를 구성하는 단계를 포함하여 수행하는 프로그램을 기록한 컴퓨터 판독 가능한 기록 매체.
Obtaining an image including one or more objects;
Extracting a plurality of detailed regions from the image;
Analyzing a hierarchical structure between the plurality of detailed regions; And
Classifying the object included in the image using the hierarchical structure,
Analyzing the hierarchical structure between the plurality of detailed regions,
In consideration of the location of the sub-region, the size of the sub-region, the shape of the sub-region, the shape of the merged region, and the similarity of adjacent parts between sub-regions, the hierarchical structure is formed by merging two or more sub-regions into the one region. A computer-readable recording medium recording a program to be performed, including the step of configuring.
KR1020190161515A 2018-12-07 2019-12-06 Image analysis apparatus, image analysis method and recording medium KR102158967B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20180157137 2018-12-07
KR1020180157137 2018-12-07

Publications (2)

Publication Number Publication Date
KR20200071021A KR20200071021A (en) 2020-06-18
KR102158967B1 true KR102158967B1 (en) 2020-09-24

Family

ID=70973680

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190161515A KR102158967B1 (en) 2018-12-07 2019-12-06 Image analysis apparatus, image analysis method and recording medium

Country Status (2)

Country Link
KR (1) KR102158967B1 (en)
WO (1) WO2020116988A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102613592B1 (en) * 2021-05-20 2023-12-14 한국전자기술연구원 Method distant ship detection and detailed type identification using images
KR102482262B1 (en) * 2021-10-12 2022-12-28 주식회사 테스트웍스 Apparatus and method for augmenting data using object segmentation and background synthesis

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016018538A (en) * 2014-07-11 2016-02-01 キヤノン株式会社 Image recognition device and method and program
KR101907883B1 (en) * 2017-05-10 2018-10-16 국방과학연구소 Object detection and classification method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8252965B2 (en) * 2008-08-22 2012-08-28 Honeywell International Inc. Method for separating halocarbons
KR101380783B1 (en) * 2008-08-22 2014-04-02 정태우 Method for providing annexed service by indexing object in video
US9501714B2 (en) * 2010-10-29 2016-11-22 Qualcomm Incorporated Systems and methods to improve feature generation in object recognition
JP2014093058A (en) * 2012-11-07 2014-05-19 Panasonic Corp Image management device, image management method, program and integrated circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016018538A (en) * 2014-07-11 2016-02-01 キヤノン株式会社 Image recognition device and method and program
KR101907883B1 (en) * 2017-05-10 2018-10-16 국방과학연구소 Object detection and classification method

Also Published As

Publication number Publication date
WO2020116988A1 (en) 2020-06-11
KR20200071021A (en) 2020-06-18

Similar Documents

Publication Publication Date Title
KR101995294B1 (en) Image analysis apparatus and method
KR101969022B1 (en) Image analysis apparatus and method
Sirmacek et al. Urban-area and building detection using SIFT keypoints and graph theory
AU2021208647A1 (en) Systems for multiclass object detection and alerting and methods therefor
CN110751090B (en) Three-dimensional point cloud labeling method and device and electronic equipment
Xing et al. Traffic sign recognition using guided image filtering
KR102032796B1 (en) Image analysis apparatus and method
KR102158967B1 (en) Image analysis apparatus, image analysis method and recording medium
KR101990123B1 (en) Image analysis apparatus and method
Zou et al. Dangerous objects detection of X-ray images using convolution neural network
Zhang et al. Finding nonrigid tiny person with densely cropped and local attention object detector networks in low-altitude aerial images
Chawda et al. Extracting building footprints from satellite images using convolutional neural networks
Khellal et al. Pedestrian classification and detection in far infrared images
Dumaliang et al. Coin identification and conversion system using image processing
Du et al. Vision-based traffic light detection for intelligent vehicles
Seyfi et al. A literature review on deep learning algorithms for analysis of X-ray images
US20230196748A1 (en) Method and system for training neural network for entity detection
US20210256296A1 (en) Object identification system and computer-implemented method
CN113887652A (en) Remote sensing image dim target detection method based on form and multi-example learning
Kiruthika Devi et al. A deep learning-based residual network model for traffic sign detection and classification
Ghosh et al. Convolutional neural network based on HOG feature for bird species detection and classification
Poobathy¹ et al. Recognizing and Mining Various Objects from Digital Images
Naulia et al. Clustering Cum Polar Coordinate Feature Transformation (C-PCFT) Approach to Identify Pores in Carbonate Rocks
Saranya et al. Object recognition using FPGA and TINY YOLO
Luberg Human body poses recognition using neural networks with class based data augmentation

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant