KR20230035814A - Apparatus and method for detecting disaster based on artificial intelligence model - Google Patents

Apparatus and method for detecting disaster based on artificial intelligence model Download PDF

Info

Publication number
KR20230035814A
KR20230035814A KR1020210118275A KR20210118275A KR20230035814A KR 20230035814 A KR20230035814 A KR 20230035814A KR 1020210118275 A KR1020210118275 A KR 1020210118275A KR 20210118275 A KR20210118275 A KR 20210118275A KR 20230035814 A KR20230035814 A KR 20230035814A
Authority
KR
South Korea
Prior art keywords
fire
electronic device
determining
index
image
Prior art date
Application number
KR1020210118275A
Other languages
Korean (ko)
Other versions
KR102566617B1 (en
Inventor
서범석
허영수
Original Assignee
(주)아이아이에스티
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)아이아이에스티 filed Critical (주)아이아이에스티
Priority to KR1020210118275A priority Critical patent/KR102566617B1/en
Publication of KR20230035814A publication Critical patent/KR20230035814A/en
Application granted granted Critical
Publication of KR102566617B1 publication Critical patent/KR102566617B1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/10Alarms for ensuring the safety of persons responsive to calamitous events, e.g. tornados or earthquakes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V1/00Seismology; Seismic or acoustic prospecting or detecting
    • G01V1/28Processing seismic data, e.g. analysis, for interpretation, for correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0007Image acquisition
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/10Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using wireless transmission systems
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/14Central alarm receiver or annunciator arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The present disclosure relates to a method for detecting a disaster and an electronic device for performing the same. According to an embodiment, a method for detecting a disaster by an electronic device comprises the steps of: obtaining an image by photographing an area to be monitored; obtaining seismic wave information by sensing seismic waves at a location in which the electronic device is installed using at least one sensor; determining at least one fire index based on the obtained image analysis result; obtaining a fire occurrence probability value for the image from an artificial intelligence model by inputting the obtained image into the artificial intelligence model which outputs a probability value for whether or not a fire occurs when the image is input; determining whether the fire has occurred based on the determined fire index and the fire occurrence probability value; determining at least one seismic index based on the seismic wave information and determining whether an earthquake will occur based on the determined seismic index; and outputting notification information depending on whether the fire occurs or the earthquake occurs. According to the present invention, notification information can be effectively output when the disaster occurs.

Description

인공지능 모델을 기반으로 재난을 감지하는 방법 및 이를 수행하는 전자 장치 {APPARATUS AND METHOD FOR DETECTING DISASTER BASED ON ARTIFICIAL INTELLIGENCE MODEL}Disaster detection method based on artificial intelligence model and electronic device performing it {APPARATUS AND METHOD FOR DETECTING DISASTER BASED ON ARTIFICIAL INTELLIGENCE MODEL}

본 개시는 재난을 감지하는 방법 및 이를 수행하는 전자 장치에 관한 것이다. 보다 상세하게는 화재 및 지진을 감지하는 방법 및 이를 수행하는 전자 장치에 관한 것이다.The present disclosure relates to a method for detecting a disaster and an electronic device for performing the same. More specifically, it relates to a method for detecting fire and earthquake and an electronic device for performing the same.

최근 기후 변화 등과 같은 환경 이슈로 다양한 재난들이 발생하고 있다. 이러한 재난들에 따른 피해를 줄이기 위해 다양한 재난 감시 기술들이 개발되고 있다. 특히, 현대 사회에서는 인구 증가에 따라 주택, 회사, 빌딩 및 공장 등 과 같이 생활 관련 시설들의 밀도가 증가하고 있고, 밀도가 증가함에 따라 재난 발생 시 재난으로 인한 피해 규모 역시 커지는 문제점이 있다.Recently, various disasters have occurred due to environmental issues such as climate change. In order to reduce the damage caused by these disasters, various disaster monitoring technologies are being developed. In particular, in modern society, the density of life-related facilities such as houses, companies, buildings, and factories increases as the population increases, and as the density increases, the scale of damage caused by disasters also increases.

따라서, 어느 곳에나 쉽게 설치 가능하고, 지진 및 화재와 같은 재난을 쉽고 정확하게 감지할 수 있는 기술 개발이 요구되고 있다.Therefore, there is a demand for the development of technology that can be easily installed anywhere and can easily and accurately detect disasters such as earthquakes and fires.

한국공개특허 제2019-0142843호Korean Patent Publication No. 2019-0142843

일 실시 예에 의하면, 재난을 감지하는 방법 및 이를 수행하는 전자 장치가 제공될 수 있다.According to an embodiment, a method for detecting a disaster and an electronic device performing the same may be provided.

보다 상세하게는 이미지 분석 결과 및 지진파 정보에 기초하여 화재 또는 지진을 감지할 수 있는 전자 장치가 제공될 수 있다.More specifically, an electronic device capable of detecting a fire or an earthquake based on an image analysis result and seismic wave information may be provided.

상술한 기술적 과제를 달성하기 위한 기술적 수단으로서, 일 실시 예에 의하면, 전자 장치가 재난을 감지하는 방법은 감시 대상 영역을 촬영함으로써 이미지를 획득하는 단계; 적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하는 단계; 상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하는 단계;As a technical means for achieving the above-described technical problem, according to an embodiment, a method for detecting a disaster by an electronic device includes acquiring an image by photographing an area to be monitored; obtaining seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor; determining at least one fire index based on the obtained image analysis result;

이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하는 단계;obtaining a fire occurrence probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether a fire occurs when an image is input;

상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계; 상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하는 단계; 및 상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는 단계; 를 포함할 수 있다.determining whether a fire occurs based on the determined fire index and the fire occurrence probability value; determining at least one earthquake index based on the seismic wave information, and determining whether an earthquake has occurred based on the determined earthquake index; and outputting notification information according to whether the fire or the earthquake has occurred. can include

상술한 기술적 과제를 달성하기 위한 기술적 수단으로서, 또 다른 실시 예에 의하면, 카메라; 네트워크 인터페이스; 하나 이상의 인스트럭션을 저장하는 메모리; 및 상기 하나 이상의 인스트럭션을 실행하는 적어도 하나의 프로세서; 를 포함하고, 상기 적어도 하나의 프로세서는 상기 하나 이상의 인스트럭션을 실행함으로써, 감시 대상 영역을 촬영함으로써 이미지를 획득하고, 적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하고, 상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하고, 이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하고, 상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계; 상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하고, 상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는, 전자 장치가 제공될 수 있다.As a technical means for achieving the above technical problem, according to another embodiment, a camera; network interface; a memory that stores one or more instructions; and at least one processor executing the one or more instructions; The at least one processor obtains an image by photographing an area to be monitored by executing the one or more instructions, and obtains seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor. By inputting the obtained image to an artificial intelligence model that acquires, determines at least one fire index based on the obtained image analysis result, and outputs a probability value for whether a fire occurs when the image is input, the artificial intelligence obtaining a fire occurrence probability value for the image from a model, and determining whether a fire occurs based on the determined fire index and the fire occurrence probability value; An electronic device that determines at least one earthquake index based on the seismic wave information, determines whether an earthquake has occurred based on the determined earthquake index, and outputs notification information according to whether the fire or the earthquake has occurred It can be.

상술한 기술적 과제를 달성하기 위한 또 다른 실시 예에 의하면, 전자 장치가 재난을 감지하는 방법에 있어서, 감시 대상 영역을 촬영함으로써 이미지를 획득하는 단계; 적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하는 단계; 상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하는 단계; 이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하는 단계; 상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계; 상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하는 단계; 및 상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는 단계; 를 포함하는, 방법을 수행하도록 하는 프로그램이 저장된 컴퓨터로 읽을 수 있는 기록매체가 제공될 수 있다.According to another embodiment for achieving the above technical problem, a method for detecting a disaster by an electronic device includes acquiring an image by photographing an area to be monitored; obtaining seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor; determining at least one fire index based on the obtained image analysis result; obtaining a fire occurrence probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether a fire occurs when an image is input; determining whether a fire occurs based on the determined fire index and the fire occurrence probability value; determining at least one earthquake index based on the seismic wave information, and determining whether an earthquake has occurred based on the determined earthquake index; and outputting notification information according to whether the fire or the earthquake has occurred. A computer-readable recording medium in which a program for performing the method including a may be provided.

일 실시 예에 의하면 카메라 장치를 이용하여 지진 및 화재 발생 여부를 효과적으로 예측할 수 있다.According to an embodiment, it is possible to effectively predict whether an earthquake or a fire will occur by using a camera device.

일 실시 예에 의하면, 재난 발생 시 알림 정보를 효과적으로 출력할 수 있다.According to an embodiment, notification information can be effectively output when a disaster occurs.

도 1은 일 실시 예에 따른 전자 장치가 재난을 감지하는 동작을 개략적으로 설명하기 위한 도면이다.
도 2는 일 실시 예에 따른 전자 장치가 소정의 감시 대상 영역을 모니터링하는 동작을 설명하기 위한 도면이다.
도 3은 일 실시 예에 따른 재난을 감지하는 방법의 흐름도이다.
도 4는 일 실시 예에 따른 전자 장치가 지진 발생 여부를 결정하는 과정을 구체적으로 설명하기 위한 도면이다.
도 5는 일 실시 예에 따른 전자 장치가 3축 가속도 정보를 처리하는 과정을 설명하기 위한 도면이다.
도 6은 일 실시 예에 따른 전자 장치가 최대 지반 가속도에 기초하여 진도를 결정하는 과정을 설명하기 위한 도면이다.
도 7은 일 실시 예에 따른 전자 장치가 지진 발생 위치를 식별하기 위한 과정을 설명하기 위한 도면이다.
도 8은 또 다른 실시 예에 따른 전자 장치가 이미지 분석 결과에 기초하여 지진 발생 여부를 결정하는 과정을 설명하기 위한 도면이다.
도 9는 일 실시 예에 따른 전자 장치가 화재 발생 여부를 결정하는 과정을 구체적으로 설명하기 위한 도면이다.
도 10은 일 실시 예에 따른 전자 장치가 화재 후보 영역을 결정하는 과정을 설명하기 위한 도면이다.
도 11은 일 실시 예에 따른 전자 장치가 적어도 하나의 화재 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 12는 일 실시 예에 따른 전자 장치가 제로 크로스 카운트 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 13은 일 실시 예에 따른 전자 장치가 하이패스 필터 면적 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 14는 일 실시 예에 따른 전자 장치가 주기성 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 15는 일 실시 예에 따른 전자 장치가 움직임 영역 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 16은 일 실시 예에 따른 전자 장치가 무빙 오브젝트 지수를 결정하는 과정을 설명하기 위한 도면이다.
도 17은 또 다른 실시 예에 따른 전자 장치가 재난을 감지하는 방법의 흐름도이다.
도 18은 일 실시 예에 따른 전자 장치의 블록도이다.
도 19는 또 다른 실시 예에 따른 전자 장치의 블록도이다.
도 20은 일 실시 예에 따라 전자 장치와 연결되는 서버의 블록도이다.
도 21은 일 실시 예에 따른 전자 장치 및 서버가 서로 연동함으로써 재난을 감지하는 방법을 수행하는 과정을 설명하기 위한 도면이다.
도 22는 또 다른 실시 예에 따른 전자 장치 및 서버가 서로 연동함으로써 재난을 감지하는 방법을 수행하는 과정을 설명하기 위한 도면이다.
도 23은 일 실시 예에 따른 전자 장치가 인공 지능 모델을 학습시키기 위한 학습 데이터를 생성하는 과정을 설명하기 위한 도면이다.
도 24는 일 실시 예에 따른 전자 장치가 인공 지능 모델을 이용하여 알람 이벤트를 생성하는 과정을 설명하기 위한 도면이다.
1 is a diagram schematically illustrating an operation of detecting a disaster by an electronic device according to an exemplary embodiment.
2 is a diagram for explaining an operation of monitoring a predetermined surveillance target area by an electronic device according to an exemplary embodiment.
3 is a flowchart of a method for detecting a disaster according to an embodiment.
4 is a diagram for explaining in detail a process of determining whether an earthquake has occurred by an electronic device according to an exemplary embodiment.
5 is a diagram for explaining a process of processing 3-axis acceleration information by an electronic device according to an embodiment.
6 is a diagram for explaining a process of determining a progress based on a maximum ground acceleration by an electronic device according to an exemplary embodiment.
7 is a diagram for explaining a process for identifying an earthquake occurrence location by an electronic device according to an exemplary embodiment.
8 is a diagram for explaining a process in which an electronic device determines whether an earthquake has occurred based on an image analysis result according to another embodiment.
9 is a diagram for explaining in detail a process of determining whether an electronic device generates a fire according to an embodiment.
10 is a diagram for explaining a process of determining a fire candidate area by an electronic device according to an exemplary embodiment.
11 is a diagram for explaining a process of determining at least one fire index by an electronic device according to an exemplary embodiment.
12 is a diagram for explaining a process of determining a zero cross count index by an electronic device according to an exemplary embodiment.
13 is a diagram for explaining a process of determining a high pass filter area index by an electronic device according to an exemplary embodiment.
14 is a diagram for explaining a process of determining a periodicity index by an electronic device according to an exemplary embodiment.
15 is a diagram for explaining a process of determining a motion region index by an electronic device according to an embodiment.
16 is a diagram for explaining a process of determining a moving object index by an electronic device according to an embodiment.
17 is a flowchart of a method of detecting a disaster by an electronic device according to another embodiment.
18 is a block diagram of an electronic device according to an embodiment.
19 is a block diagram of an electronic device according to another embodiment.
20 is a block diagram of a server connected to an electronic device according to an embodiment.
21 is a diagram for explaining a process of performing a method of detecting a disaster by interworking an electronic device and a server according to an embodiment.
22 is a diagram for explaining a process of performing a method of detecting a disaster by interworking an electronic device and a server according to another embodiment.
23 is a diagram for explaining a process of generating learning data for learning an artificial intelligence model by an electronic device according to an embodiment.
24 is a diagram for explaining a process of generating an alarm event by using an artificial intelligence model by an electronic device according to an embodiment.

본 명세서에서 사용되는 용어에 대해 간략히 설명하고, 본 개시에 대해 구체적으로 설명하기로 한다.Terms used in this specification will be briefly described, and the present disclosure will be described in detail.

본 개시에서 사용되는 용어는 본 개시에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 발명의 설명 부분에서 상세히 그 의미를 기재할 것이다. 따라서 본 개시에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 개시의 전반에 걸친 내용을 토대로 정의되어야 한다. The terms used in the present disclosure have been selected from general terms that are currently widely used as much as possible while considering the functions in the present disclosure, but they may vary according to the intention or precedent of a person skilled in the art, the emergence of new technologies, and the like. In addition, in a specific case, there is also a term arbitrarily selected by the applicant, and in this case, the meaning will be described in detail in the description of the invention. Therefore, terms used in the present disclosure should be defined based on the meaning of the term and the general content of the present disclosure, not simply the name of the term.

명세서 전체에서 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있음을 의미한다. 또한, 명세서에 기재된 "...부", "모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다.When it is said that a certain part "includes" a certain component throughout the specification, it means that it may further include other components without excluding other components unless otherwise stated. In addition, terms such as "...unit" and "module" described in the specification mean a unit that processes at least one function or operation, which may be implemented as hardware or software or a combination of hardware and software. .

아래에서는 첨부한 도면을 참고하여 본 개시의 실시 예에 대하여 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그러나 본 개시는 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시 예에 한정되지 않는다. 그리고 도면에서 본 개시를 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다.Hereinafter, with reference to the accompanying drawings, embodiments of the present disclosure will be described in detail so that those skilled in the art can easily carry out the present disclosure. However, the present disclosure may be implemented in many different forms and is not limited to the embodiments described herein. And in order to clearly describe the present disclosure in the drawings, parts irrelevant to the description are omitted, and similar reference numerals are attached to similar parts throughout the specification.

도 1은 일 실시 예에 따른 전자 장치가 재난을 감지하는 동작을 개략적으로 설명하기 위한 도면이다.1 is a diagram schematically illustrating an operation of detecting a disaster by an electronic device according to an exemplary embodiment.

일 실시 예에 의하면, 전자 장치(1000)는 적어도 하나의 프레임 이미지(102) 또는 지진파 정보(104) 중 적어도 하나를 획득할 수 있다. 전자 장치(1000)는 적어도 하나의 프레임 이미지(102)를 분석하고, 이미지 분석 결과에 기초하여 화재 발생 여부를 결정할 수 있다. 또한, 전자 장치(1000)는 지진파 정보(104)를 획득하고, 지진파 정보의 분석 결과에 기초하여 지진 발생 여부를 결정할 수 있다. 전자 장치(1000)는 화재 또는 지진 중 적어도 하나의 재난이 발생하는 경우, 발생한 것으로 결정한 재난에 관한 정보를 재난 알림 정보(144)로써 출력할 수 있다.According to an embodiment, the electronic device 1000 may obtain at least one of at least one frame image 102 or seismic wave information 104 . The electronic device 1000 may analyze at least one frame image 102 and determine whether or not a fire has occurred based on the image analysis result. In addition, the electronic device 1000 may acquire seismic wave information 104 and determine whether an earthquake has occurred based on an analysis result of the seismic wave information. When at least one of a fire or an earthquake occurs, the electronic device 1000 may output information about the disaster determined to have occurred as disaster notification information 144 .

일 실시 예에 의하면, 전자 장치(1000)는 서버(2000)와 연동함으로써, 재난 알림 정보(144)를 출력할 수도 있다. 일 실시 예에 의하면, 전자 장치(1000)는 서버(2000)를 통하여 적어도 하나의 프레임 이미지 또는 지진파 정보를 획득할 수도 있다. 일 실시 예에 의하면, 서버(2000)는 전자 장치(1000)와 네트워크를 통하여 통신 연결되고, 데이터를 송수신할 수 있는 기타 컴퓨팅 장치를 포함할 수 있다. 일 실시 예에 의하면, 네트워크는 근거리 통신망(Local Area Network; LAN), 광역 통신망(Wide Area Network; WAN), 부가가치 통신망(Value Added Network; VAN), 이동 통신망(mobile radio communication network), 위성 통신망 및 이들의 상호 조합을 포함하며, 도 1에 도시된 각 네트워크 구성 주체가 서로 원활하게 통신을 할 수 있도록 하는 포괄적인 의미의 데이터 통신망이며, 유선 인터넷, 무선 인터넷 및 모바일 무선 통신망을 포함할 수 있다.According to an embodiment, the electronic device 1000 may output disaster notification information 144 by interworking with the server 2000 . According to an embodiment, the electronic device 1000 may obtain at least one frame image or seismic wave information through the server 2000 . According to an embodiment, the server 2000 may include other computing devices that are communicatively connected to the electronic device 1000 through a network and capable of transmitting and receiving data. According to an embodiment, the network includes a local area network (LAN), a wide area network (WAN), a value added network (VAN), a mobile radio communication network, a satellite communication network, and It includes a mutual combination of these, and is a comprehensive data communication network that enables each network constituent entity shown in FIG. 1 to communicate smoothly with each other, and may include wired Internet, wireless Internet, and mobile wireless communication network.

일 실시 예에 의하면, 전자 장치(1000)는 다양한 형태로 구현될 수 있다. 예를 들어, 본 명세서에서 기술되는 전자 장치(1000)는, 디지털 카메라, 모바일 단말, 스마트 폰(smart phone), CCTV, 카메라 장치, 노트북 컴퓨터(laptop computer), 태블릿 PC, 전자북 단말기, 디지털방송용 단말기, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 네비게이션, MP3 플레이어 등이 있을 수 있으나, 이에 한정되는 것은 아니다. 일 실시 예에 의하면 편의상 본 개시에 따른 전자 장치(1000)는 CCTV 장치 또는 CCT 장치를 제어하기 위한 프로세서를 포함하는 컴퓨팅 장치일 수 있다.According to an embodiment, the electronic device 1000 may be implemented in various forms. For example, the electronic device 1000 described in this specification includes a digital camera, a mobile terminal, a smart phone, a CCTV, a camera device, a laptop computer, a tablet PC, an electronic book terminal, and a digital broadcasting device. There may be terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, MP3 players, etc., but are not limited thereto. According to an embodiment, for convenience, the electronic device 1000 according to the present disclosure may be a computing device including a processor for controlling a CCTV device or a CCT device.

일 실시 예에 의하면, 전자 장치(1000)는 카메라(110), 적어도 하나의 센서(112), 네트워크 인터페이스(114), 프로세서(120) 및 메모리(122)를 포함할 수 있다. 그러나 상술한 구성에 한정되는 것은 아니며, 전자 장치(1000)는 더 적은 구성 요소를 포함할 수도 있고, 상술한 구성 외에 더 많은 구성을 포함할 수도 있다.According to an embodiment, the electronic device 1000 may include a camera 110, at least one sensor 112, a network interface 114, a processor 120, and a memory 122. However, the electronic device 1000 is not limited to the above-described configuration, and the electronic device 1000 may include fewer components or may include more configurations in addition to the above-described configurations.

일 실시 예에 의하면, 프로세서(120)는 메모리(122)에 저장된 하나 이상의 인스트럭션을 수행함으로써 전자 장치(1000)으 전반적인 동작을 제어할 수 있다. 일 실시 예에 의하면, 카메라(110)는 프로세서(120)의 제어에 의해 소정의 감시 대상 영역을 촬영함으로써 복수의 프레임 이미지들을 획득할 수 있다. 일 실시 예에 의하면, 카메라(110)는 소정의 감시 대상 영역을 모니터링함으로써 감시 영상을 획득할 수도 있다. 감시 대상 영상은 미리 설정된 주기로 촬영된 복수의 프레임 이미지들을 포함할 수 있다.According to an embodiment, the processor 120 may control the overall operation of the electronic device 1000 by executing one or more instructions stored in the memory 122 . According to an embodiment, the camera 110 may acquire a plurality of frame images by capturing a predetermined area to be monitored under the control of the processor 120 . According to an embodiment, the camera 110 may acquire a surveillance image by monitoring a predetermined surveillance target area. An image to be monitored may include a plurality of frame images captured at a preset period.

일 실시 예에 의하면, 적어도 하나의 센서(112)는 이미지 센서, 3축 가속도 센서, 지자기 센서 중 적어도 하나를 포함할 수 있다. 적어도 하나의 센서(112)는 프로세서(120)의 제어에 의해, 이미지 센서 값을 획득하거나, 3축 가속도 정보를 획득하거나, 지자기 정보를 획득하고, 획득된 센서 값들을 프로세서(120)로 전달할 수 있다.According to an embodiment, the at least one sensor 112 may include at least one of an image sensor, a 3-axis acceleration sensor, and a geomagnetic sensor. At least one sensor 112 may obtain an image sensor value, 3-axis acceleration information, or geomagnetic information under the control of the processor 120, and transmit the acquired sensor values to the processor 120. there is.

일 실시 예에 의하면, 네트워크 인터페이스(114)는 적어도 하나의 센서(112)가 획득한 센서 값들을 전자 장치와 연결된 다른 전자 장치로 전송할 수 있다. 또 다른 실시 예에 의하면, 네트워크 인터페이스(114)는 서버(2000)로부터 이미지 또는 지진파 정보를 수신할 수도 있고, 전자 장치(1000)가 분석한 재난 알림 정보를 서버(2000)로 전송할 수도 있다. 또한, 네트워크 인터페이스(114)는 전자 장치가 분석한 재난 알림 정보를 전자 장치와 연결된 다른 전자 장치로 전송할 수도 있다. 또한, 네트워크 인터페이스(114)는 전자 장치와 연결된 다른 전자 장치로부터 지진파 정보, 지진 위치 정보(예컨대 진앙지 정보, PS시 정보) 등을 더 수신할 수도 있다.According to an embodiment, the network interface 114 may transmit sensor values acquired by at least one sensor 112 to another electronic device connected to the electronic device. According to another embodiment, the network interface 114 may receive image or seismic wave information from the server 2000 and transmit disaster notification information analyzed by the electronic device 1000 to the server 2000 . Also, the network interface 114 may transmit disaster notification information analyzed by the electronic device to another electronic device connected to the electronic device. In addition, the network interface 114 may further receive seismic wave information and earthquake location information (eg, epicenter information and PS time information) from other electronic devices connected to the electronic device.

일 실시 예에 의하면, 전자 장치(1000)가 출력하는 재난 알림 정보(144)는 화재 발생 정보 또는 지진 발생 정보 중 적어도 하나를 포함할 수 있다. 일 실시 예에 의하면, 화재 발생 정보는 화재 발생 위치 정보, 화재 발생 규모, 화재 발생에 따른 긴급 구호 정보, 화재 발생에 관한 실시간 뉴스 정보 중 적어도 하나를 포함할 수 있다. 또한, 일 실시 예에 의하면, 지진 발생 정보는 지진 발생 위치, 지진 규모, 지진 강도, 지진 발생에 따른 긴급 구호 정보, 지진 발생에 관한 실시간 뉴스 정보 중 적어도 하나를 포함할 수 있다.According to an embodiment, the disaster notification information 144 output by the electronic device 1000 may include at least one of fire occurrence information and earthquake occurrence information. According to an embodiment, the fire occurrence information may include at least one of fire occurrence location information, fire occurrence scale, emergency relief information according to fire occurrence, and real-time news information regarding fire occurrence. Also, according to an embodiment, the earthquake occurrence information may include at least one of an earthquake occurrence location, an earthquake magnitude, an earthquake intensity, emergency relief information according to an earthquake occurrence, and real-time news information related to an earthquake occurrence.

도 2는 일 실시 예에 따른 전자 장치가 소정의 감시 대상 영역을 모니터링하는 동작을 설명하기 위한 도면이다.2 is a diagram for explaining an operation of monitoring a predetermined surveillance target area by an electronic device according to an exemplary embodiment.

일 실시 예에 의하면, 전자 장치(1000)는 건물 또는 소정의 외벽(220)에 설치되는 CCTV 장치일 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 건물 또는 소정의 공간 내 외벽(220)에 부착되어 감시 대상 영역(230)을 모니터링할 수 있다. 전자 장치(1000)는 감시 대상 영역을 모니터링함으로써 미리 설정된 간격의 복수의 프레임 이미지를 포함하는 영상을 획득할 수 있다.According to an embodiment, the electronic device 1000 may be a CCTV device installed on a building or a predetermined outer wall 220 . According to an embodiment, the electronic device 1000 may be attached to an outer wall 220 inside a building or a predetermined space to monitor the surveillance target area 230 . The electronic device 1000 may obtain an image including a plurality of frame images at preset intervals by monitoring the surveillance target region.

또한, 전자 장치(1000)는 건물 또는 소정의 외벽(220)에 설치된 후, 지진 발생에 따른 지진파 정보를 센싱할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 지진이 발생하지 않는 경우에도, 기 설정된 주기에 따라 건물 또는 외벽의 진동을 센싱할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 미리 설정된 주기에 따라 건물 또는 외벽의 진동을 센싱함으로써, 전자 장치(1000)가 설치된 건물 또는 외벽의 공진 주파수를 결정하고, 결정된 공진 주파수에 대한 정보를 전자 장치와 연결된 다른 전자 장치로 미리 전송할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 전자 장치(1000)가 설치된 건물의 공진 주파수를 미리 저장해 둔 후, 공진 주파수에 대응되는 지진파 정보가 센싱되는 경우, 알림 정보를 더 강하게 출력할 수도 있다.In addition, the electronic device 1000 may sense seismic wave information according to the occurrence of an earthquake after being installed on a building or a predetermined outer wall 220 . According to an embodiment, the electronic device 1000 may sense vibration of a building or an exterior wall according to a predetermined cycle even when an earthquake does not occur. According to an embodiment, the electronic device 1000 determines the resonance frequency of the building or exterior wall in which the electronic device 1000 is installed by sensing the vibration of the building or exterior wall according to a preset period, and transmits information on the determined resonance frequency. It may be transmitted in advance to another electronic device connected to the electronic device. According to an embodiment, after the electronic device 1000 stores the resonance frequency of the building in which the electronic device 1000 is installed in advance, when seismic wave information corresponding to the resonance frequency is sensed, notification information may be output stronger. .

도 3은 일 실시 예에 따른 재난을 감지하는 방법의 흐름도이다.3 is a flowchart of a method for detecting a disaster according to an embodiment.

S310에서, 전자 장치(1000)는 감시 대상 영역을 촬영함으로써 이미지를 획득할 수 있다. 예를 들어, 전자 장치(1000)는 카메라 장치를 포함하고, 카메라를 이용하여 소정의 주기로 이미지들을 획득할 수 있다. 전자 장치(1000)가 획득하는 이미지들은 복수의 프레임으로 구성된 영상 중 하나의 프레임 이미지일 수 있다.In S310, the electronic device 1000 may obtain an image by photographing the area to be monitored. For example, the electronic device 1000 may include a camera device and acquire images at predetermined cycles using the camera. Images obtained by the electronic device 1000 may be one frame image among images composed of a plurality of frames.

S320에서, 전자 장치(1000)는 적어도 하나의 센서를 이용하여 전자 장치(1000)가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 3축 가속도 센서 및 지자기 센서 중 적어도 하나를 이용하여 3축 가속도 정보 및 지자기 정보를 획득할 수 있다.In S320, the electronic device 1000 may acquire seismic wave information by sensing seismic waves at a location where the electronic device 1000 is installed using at least one sensor. According to an embodiment, the electronic device 1000 may obtain 3-axis acceleration information and geomagnetism information using at least one of a 3-axis acceleration sensor and a geomagnetism sensor.

S330에서, 전자 장치(1000)는 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정할 수 있다. 화재 지수는 전자 장치(1000)가 화재 발생 여부를 판단하는데 이용되는 이미지 또는 영상에 대한 파라미터일 수 있다.In S330, the electronic device 1000 may determine at least one fire index based on the image analysis result. The fire index may be a parameter for an image or video used by the electronic device 1000 to determine whether a fire has occurred.

S340에서, 전자 장치(1000)는 이미지가 입력되면, 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 이미지에 대한 화재 발생 확률 값을 획득할 수 있다.In S340, when the image is input, the electronic device 1000 obtains a fire probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether or not a fire occurs. can do.

S350에서, 전자 장치(1000)는 상기 결정된 화재 지수 또는 상기 화재 발생 확률 값 중 적어도 하나에 기초하여 화재 발생 여부를 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 적어도 하나의 화재 지수를 결정하고, 결정된 적어도 하나의 화재 지수가 각각의 지수 조건을 만족하는지 여부를 식별한 후, 모든 지수 조건이 만족되는지 여부에 기초하여, 화재 발생 여부를 결정할 수 있다. 그러나, 또 다른 실시 예에 의하면, 전자 장치(1000)는 모든 지수 조건이 만족되고, 인공 지능 모델에서 출력되는 화재 발생 확률 값이 기 설정된 임계 확률 값 이상인 경우에만 화재가 발생한 것으로 결정할 수도 있다.In S350, the electronic device 1000 may determine whether a fire occurs based on at least one of the determined fire index and the fire occurrence probability value. According to an embodiment, the electronic device 1000 determines at least one fire index, identifies whether the determined at least one fire index satisfies each index condition, and then determines whether all index conditions are satisfied. Thus, it is possible to determine whether a fire has occurred. However, according to another embodiment, the electronic device 1000 may determine that a fire has occurred only when all index conditions are satisfied and a fire occurrence probability value output from the artificial intelligence model is greater than or equal to a preset threshold probability value.

S360에서, 전자 장치(1000)는 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 결정된 지진 지수에 기초하여 지진 발생 여부를 결정할 수 있다. S370에서, 전자 장치(1000)는 화재 발생 여부 또는 지진 발생 여부에 따라 알림 정보를 출력할 수 있다.In S360, the electronic device 1000 may determine at least one earthquake index based on the seismic wave information, and determine whether an earthquake has occurred based on the determined earthquake index. In S370, the electronic device 1000 may output notification information according to whether a fire or an earthquake has occurred.

도 4는 일 실시 예에 따른 전자 장치가 지진 발생 여부를 결정하는 과정을 구체적으로 설명하기 위한 도면이다.4 is a diagram for explaining in detail a process of determining whether an earthquake has occurred by an electronic device according to an exemplary embodiment.

S410에서, 전자 장치(1000)는 지자기 정보에 기초하여 전자 장치가 설치된 위치에서 지자기 방향을 식별할 수 있다. 일 실시 예에 의하면, 지자기 정보는 동서남북 방향에 관한 정보를 포함할 수 있다. S420에서, 전자 장치(1000)는 3축 가속도 정보에 기초하여 3축 가속도 방향을 식별할 수 있다. 일 실시 예에 의하면 전자 장치(1000)는 3축 가속도 센서를 포함하고, 3축 가속도 센서로부터 획득되는 3축 가속도 정보에 기초하여 3축 가속도 방향을 식별할 수 있다. 일 실시 예에 의하면 3축 가속도 방향은, 3축 가속도 정보 내 각축에 대한 가속도 값에 기초하여 결정될 수 있다. 일 실시 예에 의하면 3축 가속도 방향은 지자기 방향과 매칭되지 않은 상태일 수 있다.In operation S410, the electronic device 1000 may identify a direction of the geomagnetism at a location where the electronic device is installed based on the geomagnetism information. According to an embodiment, the geomagnetic information may include information about north, south, east, west, and west directions. In S420, the electronic device 1000 may identify the direction of the 3-axis acceleration based on the 3-axis acceleration information. According to an embodiment, the electronic device 1000 may include a 3-axis acceleration sensor and identify a 3-axis acceleration direction based on 3-axis acceleration information obtained from the 3-axis acceleration sensor. According to an embodiment, the 3-axis acceleration direction may be determined based on acceleration values for each axis in 3-axis acceleration information. According to an embodiment, the direction of the 3-axis acceleration may be in a state that does not match the direction of the geomagnetic field.

일 실시 예에 의하면 도 4에는 도시되지 않았지만, 일 실시 예에 의하면, 전자 장치(1000)는 전자 장치에 설치된 3축 가속도의 가속도 정보를 보정할 수 있다. 일 실시 예에 의하면, 전자 장치 내 3축 가속도 센서는 지면에 평행하게 설치되지 않고, 기준축으로부터 기울어지게 설치될 수 있다. 전자 장치(1000)는 3축 가속도 정보를 획득하고, 획득된 3축 가속도 정보 내 각축에 대한 가속도 값을 보정하는 과정을 더 수행할 수도 있다.According to an embodiment, although not shown in FIG. 4 , according to an embodiment, the electronic device 1000 may correct acceleration information of three-axis acceleration installed in the electronic device. According to an embodiment, the 3-axis acceleration sensor in the electronic device may not be installed parallel to the ground, but may be installed inclined from a reference axis. The electronic device 1000 may further perform a process of obtaining 3-axis acceleration information and correcting acceleration values for each axis in the obtained 3-axis acceleration information.

S430에서, 전자 장치(1000)는 3축 가속도 방향을 상기 식별된 지자기 방향에 매칭할 수 있다. 예를 들어, 3축 가속도의 방향과 지자기 방향은 매칭되지 않는 상태일 수 있다. 전자 장치(1000)는 3축 가속도의 방향을 지자기 방향과 매칭함으로써, 3축 가속도 방향이 실제 지자기 방향을 기준으로 어떤 방향에 해당하는지 여부를 식별할 수 있다.In S430, the electronic device 1000 may match the 3-axis acceleration direction to the identified geomagnetic direction. For example, the direction of the three-axis acceleration and the direction of the geomagnetic field may not match. The electronic device 1000 may identify which direction the 3-axis acceleration direction corresponds to with respect to the actual geomagnetic direction by matching the direction of the 3-axis acceleration with the direction of the earth's magnetic field.

S440에서, 전자 장치(1000)는 지자기 방향에 매칭된 3축 가속도 방향을 기준으로 3축 가속도 크기를 모니터링함으로써 최대 지반 가속도를 결정할 수 있다. 일 실시 예에 의하면, 최대지반 가속도는 순수 지진파에서 계측되는 최대 가속도 값일 수 있다. 일 실시 예에 의하면, 최대지반가속도에 기초하여, 전자 장치(1000)는 현재 측정되는 지진의 진도를 결정할 수 있다. S450에서, 전자 장치(1000)는 지자기 방향에 매칭된 3축 가속도 방향 및 상기 결정된 최대 지반 가속도에 기초하여 지진 발생 여부를 결정할 수 있다.In S440, the electronic device 1000 may determine the maximum ground acceleration by monitoring the magnitude of the 3-axis acceleration based on the 3-axis acceleration direction matched to the direction of the geomagnetic field. According to an embodiment, the maximum ground acceleration may be a maximum acceleration value measured from pure seismic waves. According to an embodiment, based on the maximum ground acceleration, the electronic device 1000 may determine the magnitude of the currently measured earthquake. In S450, the electronic device 1000 may determine whether an earthquake has occurred based on the 3-axis acceleration direction matched to the geomagnetic direction and the determined maximum ground acceleration.

도 5는 일 실시 예에 따른 전자 장치가 3축 가속도 정보를 처리하는 과정을 설명하기 위한 도면이다.5 is a diagram for explaining a process of processing 3-axis acceleration information by an electronic device according to an embodiment.

도 5를 참조하여, 전자 장치(1000)내 기울어지게 배치된 3축 가속도 센서의 3축 가속도 정보를 보정하는 과정을 설명하기로 한다. 일 실시 예에 의하면, 전자 장치(1000)내 3축 가속도 센서는 전자 장치의 수평면 또는 수직면으로부터 기울어지게 배치될 수 있다. 예를 들어, 지면과 수평인 축(510)을 기준으로 가속도 센서의 Y축(530)과 가속도 센서의 Z축(540)은 수평 및 수직에 각각 평행한 Y 기준축(510) 및 Z 기준축(520)으로부터 소정의 각도만큼 기울어진 상태일 수 있다.Referring to FIG. 5 , a process of correcting 3-axis acceleration information of a 3-axis acceleration sensor disposed inclined in the electronic device 1000 will be described. According to an embodiment, the 3-axis acceleration sensor in the electronic device 1000 may be disposed inclined from a horizontal or vertical plane of the electronic device. For example, the Y-axis 530 of the acceleration sensor and the Z-axis 540 of the acceleration sensor based on the axis 510 that is horizontal to the ground are the Y reference axis 510 and the Z reference axis parallel to the horizontal and vertical axes, respectively. It may be inclined by a predetermined angle from (520).

전자 장치(1000)는 3축 가속도 센서로부터 x축 출력 값, y축 출력 값을 획득할 수 있다. 전자 장치(1000)는

Figure pat00001
와 같은 식을 이용하여 현재 가속도 센서의 z축 출력 값을 결정할 수 있다. 전자 장치(1000)는 가속도 센서의 y축 출력 값 및 z축 출력 값을
Figure pat00002
와 같은 수식에 적용함으로써 x축이 지면과 이루는 각도를 측정할 수 있다. 또한, 전자 장치(1000)는 가속도 센서 x축 출력 값 및 z축 출력 값을
Figure pat00003
와 같은 수식에 적용함으로써, y축에 대한 각도를 결정할 수 있다. 일 실시 예에 의하면 z축에 대한 각도를 결정되지 않을 수 있다. 일 실시 예에 의하면, 재난감지 카메라 내 3축 가속도 센서의 z축은 실제 z축 방향과 일치하도록 마련될 수 있다. 전자 장치(1000)는 가속도 센서의 각 축에 대한 각도 값을 상술한 바와 같이 결정한 다음, 결정된 가속도 센서의 각축에 대한 각도 값을 수평인 각도로 치환하여 보정된 3축 가속도 센서의 출력 값을 획득할 수 있다.The electronic device 1000 may obtain an x-axis output value and a y-axis output value from the 3-axis acceleration sensor. The electronic device 1000
Figure pat00001
The z-axis output value of the current acceleration sensor can be determined using the same equation. The electronic device 1000 determines the y-axis output value and the z-axis output value of the acceleration sensor.
Figure pat00002
By applying the same formula, the angle formed by the x-axis with the ground can be measured. In addition, the electronic device 1000 calculates an x-axis output value and a z-axis output value of the acceleration sensor.
Figure pat00003
By applying an equation such as , the angle with respect to the y-axis can be determined. According to an embodiment, an angle with respect to the z-axis may not be determined. According to an embodiment, the z-axis of the 3-axis acceleration sensor in the disaster detection camera may be provided to coincide with the actual z-axis direction. The electronic device 1000 determines the angular value of each axis of the acceleration sensor as described above, and then obtains a calibrated output value of the 3-axis acceleration sensor by replacing the determined angular value of each axis of the acceleration sensor with a horizontal angle. can do.

도 6은 일 실시 예에 따른 전자 장치가 최대 지반 가속도에 기초하여 진도를 결정하는 과정을 설명하기 위한 도면이다.6 is a diagram for explaining a process of determining a progress based on a maximum ground acceleration by an electronic device according to an exemplary embodiment.

도 6을 참조하면, 최대지반가속도(620)별 지진의 진도(610)가 매칭된 표가 도시된다. 일 실시 예에 의하면, 전자 장치(1000)는 3축 가속도 센서의 출력 값을 이용하여 최대지반가속도(620)를 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 지면에서 수평 방향을 기준으로 최대지반 가속도(620)를 측정할 수도 있다. 전자 장치(1000)는 도 6에 도시된 차트에 기초하여, 상기 결정된 최대지반 가속도에 기초하여 진도를 결정할 수 있다. 전자 장치(1000)는 결정된 진도가 기 설정된 임계 진도 이상인 경우, 지자기 방향에 매칭된 3축 가속도 방향을 기준으로 지진이 발생한 것으로 결정할 수 있다. 또한, 일 실시 예에 의하면, 전자 장치(1000)는 3축 가속도 정보를 이용하여 지진파를 실시간으로 이미지화할 수 있다. 전자 장치(1000)는 실시간으로 이미지화된 지진파의 진폭을 직접 측정함으로써 최대지반 가속도를 측정할 수도 있다.Referring to FIG. 6 , a table in which earthquake magnitudes 610 are matched for each maximum ground acceleration 620 is shown. According to an embodiment, the electronic device 1000 may determine the maximum ground acceleration 620 using output values of the 3-axis acceleration sensor. According to an embodiment, the electronic device 1000 may measure the maximum ground acceleration 620 based on a horizontal direction on the ground. The electronic device 1000 may determine the progress based on the determined maximum ground acceleration based on the chart shown in FIG. 6 . The electronic device 1000 may determine that an earthquake has occurred based on the three-axis acceleration direction matched to the geomagnetic direction when the determined magnitude is equal to or greater than a preset threshold magnitude. Also, according to an embodiment, the electronic device 1000 may image seismic waves in real time using 3-axis acceleration information. The electronic device 1000 may measure the maximum ground acceleration by directly measuring the amplitude of the imaged seismic wave in real time.

도 7은 일 실시 예에 따른 전자 장치가 지진 발생 위치를 식별하기 위한 과정을 설명하기 위한 도면이다. 일 실시 예에 의하면, 전자 장치(1000)는 3축 가속도 센서를 이용하여 P파(710) 및 S파(720)가 도달하는 시간의 차이인 PS 시를 측정할 수 있다. 일 실시 예에 의하면, 도 7에서 전자 장치(1000)가 설치된 지점 은 지점 (732), 전자 장치(1000)와 연결된 다른 2개의 전자 장치가 설치된 지점은 각각 지점 (734) 및 지점 (736)으로 가정한다.7 is a diagram for explaining a process for identifying an earthquake occurrence location by an electronic device according to an exemplary embodiment. According to an embodiment, the electronic device 1000 may measure the PS time, which is the difference between the arrival times of the P wave 710 and the S wave 720, by using a 3-axis acceleration sensor. According to an embodiment, a point where the electronic device 1000 is installed in FIG. 7 is a point 732, and a point where two other electronic devices connected to the electronic device 1000 are installed are points 734 and 736, respectively. Assume.

전자 장치(1000)는 PS시가 측정되면, 측정된 PS시를 이용하여 현재 전자 장치가 설치된 위치에서 진앙까지의 거리를 결정할 수 있다. 전자 장치(1000)는 진앙까지의 거리를 반지름으로 하는 제1 진앙원(838)을 결정할 수 있다. 또한, 전자 장치(1000)는 전자 장치와 연결된 다른 2이상의 전자 장치로부터, 다른 전자 장치의 위치 정보 및 다른 전자 장치가 결정한, 다른 전자 장치로부터 상기 진앙지까지 거리에 관한 진앙지 정보를 획득할 수 있다. 전자 장치(1000)는 다른 전자 장치로부터 획득된 진앙지 정보에 기초하여 제2 진앙원(740) 및 제3 진앙원(736)을 결정할 수 있다.When the PS time is measured, the electronic device 1000 may determine the distance from the location where the electronic device is currently installed to the epicenter by using the measured PS time. The electronic device 1000 may determine the first epicenter 838 whose radius is the distance to the epicenter. In addition, the electronic device 1000 may obtain, from two or more other electronic devices connected to the electronic device, location information of the other electronic device and epicenter information about the distance from the other electronic device to the epicenter determined by the other electronic device. The electronic device 1000 may determine the second epicenter 740 and the third epicenter 736 based on epicenter information obtained from other electronic devices.

일 실시 예에 의하면, 전자 장치(1000)는 3개의 진앙 거리를 반지름으로 하는 각 진앙원의 공통 현의 교차점을 실제 진앙지로 식별할 수 있다. 또한, 전자 장치(1000)는 진앙을 지나는 최단 공통현의 길이의 1/2 값을 진앙지로부터 진원까지의 깊이로 결정할 수 있다. 전자 장치(1000)는 진앙지의 위치 및 진앙지로부터 진원지까지의 깊이 정보를 진원지 정보로 결정할 수 있다. 전자 장치(1000)는 진원지 정보, 진앙지 정보, 상기 최대지반가속도에 기초하여 결정된 지진의 진도에 관한 정보를 알림 정보로써 출력할 수 있다.According to an embodiment, the electronic device 1000 may identify an intersection point of a common chord of each epicenter having a radius of three epicenter distances as an actual epicenter. Also, the electronic device 1000 may determine a value of 1/2 of the length of the shortest common chord passing through the epicenter as the depth from the epicenter to the epicenter. The electronic device 1000 may determine the location of the epicenter and depth information from the epicenter to the epicenter as the epicenter information. The electronic device 1000 may output epicenter information, epicenter information, and information about the magnitude of an earthquake determined based on the maximum ground acceleration as notification information.

도 8은 또 다른 실시 예에 따른 전자 장치가 이미지 분석 결과에 기초하여 지진 발생 여부를 결정하는 과정을 설명하기 위한 도면이다.8 is a diagram for explaining a process in which an electronic device determines whether an earthquake has occurred based on an image analysis result according to another embodiment.

일 실시 예에 의하면, 전자 장치(1000)는 복수의 프레임 이미지를 포함하는 영상 또는 영상 내 소정의 프레임 이미지를 분석함으로써 지진 발생 여부를 결정할 수도 있다. 일 실시 예에 의하면, 전자 장치(1000)는 복수의 프레임 이미지들(802)을 획득한다.According to an embodiment, the electronic device 1000 may determine whether an earthquake has occurred by analyzing an image including a plurality of frame images or a predetermined frame image within the image. According to an embodiment, the electronic device 1000 acquires a plurality of frame images 802 .

일 실시 예에 의하면 전자 장치(1000)는 복수의 프레임 이미지 중 기준 프레임(822)상에서 기준 객체에 대한 픽셀을 결정할 수 있다. 전자 장치(1000)는 기준 객체에 대한 픽셀의 움직임을 추적함으로써, 기준 프레임 다음 프레임(824) 또는 다음 프레임(824)의 다음 프레임(826)에서 기준 객체에 대응되는 픽셀의 위치를 식별할 수 있다. 전자 장치는 프레임 간 객체에 대응되는 픽셀의 움직임을 추적함으로써 적어도 하나의 벡터를 결정할 수 있다.According to an embodiment, the electronic device 1000 may determine a pixel for a reference object on a reference frame 822 among a plurality of frame images. The electronic device 1000 may identify a position of a pixel corresponding to the reference object in a frame 824 following the reference frame or a frame 826 following the reference frame 824 by tracking the motion of the pixel with respect to the reference object. . The electronic device may determine at least one vector by tracking a motion of a pixel corresponding to an object between frames.

일 실시 예에 의하면, 전자 장치(1000)는 기준 객체에 대한 픽셀의 움직임에 기초하여 결정되는 벡터의 방향 및 크기 변화를 식별할 수 있다. 전자 장치(1000)는 상기 식별된 저거도 하나의 벡터의 방향, 크기 변화 및 상기 결정된 최대 지반 가속도에 기초하여 지진 발생 여부를 결정할 수도 있다. 즉 본 개시에 따른 전자 장치(1000)는 최대지반 가속도에 더하여, 이미지 분석 결과를 더 이용함으로써 지진 발생 여부를 더 정확하게 결정할 수 있다.According to an embodiment, the electronic device 1000 may identify a change in direction and magnitude of a vector determined based on a motion of a pixel with respect to a reference object. The electronic device 1000 may determine whether an earthquake has occurred based on the direction and magnitude change of the identified vector and the determined maximum ground acceleration. That is, the electronic device 1000 according to the present disclosure may more accurately determine whether an earthquake has occurred by further using an image analysis result in addition to the maximum ground acceleration.

도 9는 일 실시 예에 따른 전자 장치가 화재 발생 여부를 결정하는 과정을 구체적으로 설명하기 위한 도면이다.9 is a diagram for explaining in detail a process of determining whether an electronic device generates a fire according to an embodiment.

S910에서, 전자 장치(1000)는 획득된 이미지 내 픽셀들의 RGB 데이터를 HSL 데이터로 변환할 수 있다. 일 실시 예에 의하면, HSL 데이터는 색상(HUE), 채도(SATURATION) 및 명도(LIGHTNESS) 값을 포함할 수 있다. S920에서, 전자 장치(1000)는 HSL 데이터에 기초하여 이미지 내 화재 후보 영역을 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 이미지 내 화재 후보 영역을 결정함에 있어 서로 다른 수준의 임계치를 이용함으로써, 보다 정확한 화재 후보 영역을 결정할 수 있다.In S910, the electronic device 1000 may convert RGB data of pixels in the obtained image into HSL data. According to an embodiment, HSL data may include hue, saturation, and lightness values. In S920, the electronic device 1000 may determine a fire candidate region in the image based on the HSL data. According to an embodiment, the electronic device 1000 may more accurately determine a fire candidate region by using thresholds of different levels in determining a fire candidate region in an image.

S930에서, 전자 장치(1000)는 화재 후보 영역에 대하여 적어도 하나의 화재 지수를 결정할 수 있다. S940에서, 전자 장치(1000)는 적어도 하나의 화재 지수에 기초하여 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 식별할 수 있다. 예를 들어 전자 장치(1000)는 적어도 하나의 화재 지수가 각각에 대한 화재 지수 조건을 모두 만족하는 경우, 해당 화재 후보 영역을 화재 의심영역으로 식별하고, 화재 의심 카운트 수를 1만큼 증가시킬 수 있다.In S930, the electronic device 1000 may determine at least one fire index for the fire candidate region. In S940, the electronic device 1000 may identify the number of times that the fire candidate area is identified as a suspected fire area based on at least one fire index. For example, when at least one fire index satisfies all of the fire index conditions, the electronic device 1000 may identify the corresponding fire candidate area as a fire suspect area and increase the number of suspected fire counts by 1. .

S950에서, 전자 장치(1000)는 식별된 횟수가 기 설정된 임계치 이상이고, 상기 인공 지능 모델에서 출력된 화재 발생 확률 값이 기 설정된 임계 확률 값 이상인 경우에 화재가 발생한 것으로 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 화재 후보 영역이 화재 의심 영역으로 식별됨에 따라 증가된 화재 의심 카운트수가 6이상이고, 인공 지능 모델로부터 출력된 화재 발생 확률 값이 임계 확률 값 이상인 경우, 화재가 발생한 것으로 결정할 수도 있다.In S950, the electronic device 1000 may determine that a fire has occurred when the number of times the identification is equal to or greater than a preset threshold and the fire occurrence probability value output from the artificial intelligence model is equal to or greater than a preset threshold probability value. According to an embodiment, the electronic device 1000 determines that the number of fire suspect counts increased as the fire candidate area is identified as a fire suspect area is 6 or more and the fire occurrence probability value output from the artificial intelligence model is greater than or equal to the threshold probability value. It may be determined that a fire has occurred.

도 9에는 도시되지 않았지만, 또 다른 실시 예에 의하면, 전자 장치(1000)는 S950에서 화재가 발생한 것으로 결정함에 있어, 전자 장치에 미리 저장된 인공 지능 모델의 출력 값 또는 전자 장치와 연결된 서버(2000)에서 전송되는 인공 지능 모델의 출력 값을 더 이용할 수도 있다.Although not shown in FIG. 9 , according to another embodiment, when the electronic device 1000 determines that a fire has occurred in S950, the output value of the artificial intelligence model previously stored in the electronic device or the server 2000 connected to the electronic device The output value of the artificial intelligence model transmitted from may be further used.

예를 들어, 전자 장치(1000)는 S950단계 이후 서버(2000)로부터 인공 지능 모델의 출력 값을 획득할 수 있다. 일 실시 예에 의하면, 인공 지능 모델은 감시 대상 영역에 대한 이미지 또는 영상이 입력되면, 화재 발생 확률 값을 출력하도록 미리 학습된 신경망 모델일 수 있다. 전자 장치(1000)는 화재 지수에 기초하여 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수가 임계치 이상이고, 서버(2000)로부터 획득된 인공 지능 모델의 출력 값에 포함된 화재 발생 확률이 소정의 임계 확률 값 이상인 경우에 화재가 발생한 것으로 결정할 수도 있다.For example, the electronic device 1000 may obtain an output value of the artificial intelligence model from the server 2000 after step S950. According to an embodiment, the artificial intelligence model may be a neural network model pre-learned to output a fire occurrence probability value when an image or video of an area to be monitored is input. In the electronic device 1000, the number of times that the fire candidate area is identified as a fire suspect area based on the fire index is greater than or equal to a threshold value, and the probability of fire occurrence included in the output value of the artificial intelligence model obtained from the server 2000 is a predetermined threshold value. It may be determined that a fire has occurred if it is greater than the probability value.

도 10은 일 실시 예에 따른 전자 장치가 화재 후보 영역을 결정하는 과정을 설명하기 위한 도면이다.10 is a diagram for explaining a process of determining a fire candidate area by an electronic device according to an exemplary embodiment.

S1010에서, 전자 장치(1000)는 HSL 데이터 내 색상, 채도 및 명도 값을 식별하고, 식별된 색상, 채도 및 명도 값이 모두 소정의 임계치 이상인 픽셀들을 포함하는 제1 후보 영역을 결정할 수 있다.In operation S1010, the electronic device 1000 may identify color, saturation, and brightness values in the HSL data, and determine a first candidate region including pixels having all of the identified color, saturation, and brightness values equal to or greater than a predetermined threshold value.

S1040에서, 전자 장치(1000)는 HSL 데이터 내 상기 색상, 상기 채도 또는 상기 명도 중 적어도 하나가 상기 소정의 임계치 이상인 픽셀들을 식별할 수 있다. 일 실시 예에 의하면, S1040에서 식별된 픽셀들의 수는 제1 후보 영역에 포함된 픽셀의 수 보다 많을 수 있다. S1060에서, 전자 장치(1000)는 S1040에서 식별된 픽셀들 주변의 픽셀들의 색상, 채도 및 명도 값 모두가 상기 소정의 임계치 이상인 경우, 상기 색상, 채도 또는 명도 중 적어도 하나가 소정의 임계치 이상인 픽셀들 및 상기 제1 후보 영역에 포함된 픽셀들을 포함하는 제2 후보 영역을 결정할 수 있다. S1080에서, 전자 장치(1000)는 제2 후보 영역을 화재 후보 영역으로 결정할 수 있다.In operation S1040, the electronic device 1000 may identify pixels having at least one of the color, saturation, and brightness within the HSL data equal to or greater than the predetermined threshold. According to an embodiment, the number of pixels identified in S1040 may be greater than the number of pixels included in the first candidate region. In S1060, the electronic device 1000 determines that, when all of the hue, saturation, and brightness values of pixels around the pixels identified in S1040 are equal to or greater than the predetermined threshold, the electronic device 1000 selects pixels having at least one of the hue, saturation, or brightness equal to or greater than the predetermined threshold. and a second candidate region including pixels included in the first candidate region may be determined. In S1080, the electronic device 1000 may determine the second candidate area as a fire candidate area.

즉, 본 개시에 따른 전자 장치(1000)는 제1 임계 기준(예컨대 이미지 내 각 픽셀의 색상, 채도 및 명도 모두가 임계치 이상일 것)을 이용하여, 이미지로부터 제1 후보 영역을 결정한 후, 제1 임계 기준보다 낮은 제2 임계 기준(예컨대 이미지 내 각 픽셀의 색상, 채도 또는 명도 중 적어도 하나가 임계치 이상일 것)을 이용하여 제2 후보 영역을 결정한 후, 제2 후보 영역을 화재 후보 영역으로 결정할 수 있다. 일 실시 예에 의하면, 제2 후보 영역에는 상기 제1 후보 영역에 포함되지 않았던 픽셀들이 포함될 수 있다.That is, the electronic device 1000 according to the present disclosure determines a first candidate region from an image using a first threshold criterion (eg, all of the color, saturation, and brightness of each pixel in the image must be greater than or equal to the threshold value), and then determines the first candidate region. After determining the second candidate region using a second threshold criterion lower than the threshold criterion (eg, at least one of color, saturation, or brightness of each pixel in the image must be greater than or equal to the threshold value), the second candidate region may be determined as a fire candidate region. there is. According to an embodiment, the second candidate region may include pixels not included in the first candidate region.

바람직하게는, 제1 후보 영역에서는 포함되지 않았던 픽셀이 제2 후보 영역에서는 후보 영역으로 포함될 수 있다. 본 개시에 따른 전자 장치(1000)는 색상, 채도 및 명도 중 명도의 기준은 유지하고, 색상의 기준을 완화하여 임계 기준을 설정함으로써, 화재 후보 영역을 더 정확하게 결정할 수 있다.Preferably, pixels not included in the first candidate region may be included as candidate regions in the second candidate region. The electronic device 1000 according to the present disclosure may more accurately determine a fire candidate region by setting a threshold criterion by maintaining a lightness criterion among color, saturation, and brightness, and relaxing a color criterion.

도 11은 일 실시 예에 따른 전자 장치가 적어도 하나의 화재 지수를 결정하는 과정을 설명하기 위한 도면이다.11 is a diagram for explaining a process of determining at least one fire index by an electronic device according to an exemplary embodiment.

일 실시 예에 의하면, 전자 장치(1000)는 적어도 하나의 화재 지수를 이용하여 화재 발생 여부를 결정할 수 있다. 예를 들어, S1110에서, 전자 장치(1000)는 복수의 프레임 이미지들 중 인접하는 3개의 프레임들 내 화재 후보 영역에 대하여 하이패스 필터링을 수행함으로써 제로 크로스 카운트 지수를 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 제로 크로스 카운트 지수가 소정의 임계치 이상인 경우, 카운트된 화재 의심 영역 식별 횟수를 초기화할 수 있다.According to an embodiment, the electronic device 1000 may determine whether a fire occurs by using at least one fire index. For example, in S1110, the electronic device 1000 may determine a zero cross count index by performing high-pass filtering on a fire candidate region in three adjacent frames among a plurality of frame images. According to an embodiment, the electronic device 1000 may initialize the counted number of times of identifying a suspected fire area when the zero cross count index is equal to or greater than a predetermined threshold value.

일 실시 예에 의하면, S1120에서, 전자 장치(1000)는 하이패스 필터 변수가 0이 아닌 픽셀의 수의 프레임 이미지 별 변화량에 관한 하이패스 필터 면적 지수를 결정할 수 있다. 일 실시 예에 의하면, 하이패스 필터 면적 지수는 하이패스 필터 적용 후 0이 아닌 영역의 넓이에 대응될 수 있다. According to an embodiment, in S1120, the electronic device 1000 may determine a high-pass filter area index related to a variation amount for each frame image of the number of pixels in which the high-pass filter parameter is not 0. According to an embodiment, the high-pass filter area index may correspond to the area of a non-zero region after applying the high-pass filter.

일 실시 예에 의하면 필터링 수행 후 결과 이미지에 대해 화재 후보 영역에 속하면서 0이 아닌 값을 갖는 영역의 면적의 변화량은 크지 않을 수 있다. 전자 장치(1000)는 하이패스 필터 면적 지수가 소정의 임계치 이상인 경우, 화재 의심 카운트 수를 초기화할 수 있다.According to an embodiment, a change in the area of a region belonging to a fire candidate region and having a value other than 0 may not be large in the resulting image after filtering is performed. The electronic device 1000 may initialize the number of suspected fire counts when the high-pass filter area index is greater than or equal to a predetermined threshold value.

S1130에서, 전자 장치(1000)는 복수의 프레임 이미지들 내 화재 후보 영역의 주기성에 관한 주기성 지수를 결정할 수 있다. 일 실시 예에 의하면 빠르게 반복되는 영상의 경우 화재 의심 영역으로 오검출될 수 있다. 따라서, 전자 장치(1000)는 오 검출률을 줄이기 위해 결정된 주기성 지수의 변화량이 소정의 임계치 이하인 경우, 화재 의심 카운트를 초기화할 수 있다.In operation S1130, the electronic device 1000 may determine a periodicity index related to periodicity of a fire candidate region in a plurality of frame images. According to an embodiment, in the case of a rapidly repeated image, it may be erroneously detected as a suspected fire area. Accordingly, the electronic device 1000 may initialize the suspected fire count when the amount of change in the periodicity index determined to reduce the false detection rate is equal to or less than a predetermined threshold value.

S1140에서, 전자 장치(1000)는 복수의 프레임 이미지들 내 픽셀들 중 픽셀 값 변이가 큰 픽셀들의 수의 변화 정도에 관한 움직임 영역 지수를 결정할 수 있다. 예를 들어, 실제 화재 영역의 경우 시간 축에서의 RGB 데이터의 변이(Variation)이 크게 측정될 수 있다. 전자 장치(1000)는 복수의 프레임 이미지들 내 픽셀 값의 변이가 큰 픽셀을 움직임 픽셀로 추출하고, 프레임 별 움직임 픽셀의 수의 평균과 표준 편차를 이용하여 움직임 영역 지수를 결정할 수 있다.In operation S1140, the electronic device 1000 may determine a motion region index regarding a degree of change in the number of pixels having a large pixel value variation among pixels in a plurality of frame images. For example, in the case of an actual fire area, a large variation of RGB data on the time axis can be measured. The electronic device 1000 may extract a pixel having a large variation in pixel value from among the plurality of frame images as a motion pixel, and determine a motion region index using an average and a standard deviation of the number of motion pixels for each frame.

S1150에서, 전자 장치(1000)는 복수의 프레임 이미지들 내에서 특정 픽셀의 변이 값이 소정의 임계치 이상으로 나타나는 횟수가 기 설정된 횟수 이상인 픽셀들의 위치에 관한 무빙 오브젝트 지수를 결정할 수 있다. 예를 들어, 전자 장치(1000)는 프레임을 기준으로 각 프레임 내 움직임 픽셀의 수의 변화를 모니터링할 수도 있지만, 각 프레임 내 특정 위치의 픽셀을 기준으로, 해당 픽셀 값 변이를 모니터링함으로써, 화재 발생 여부를 더 정확하게 결정할 수도 있다.In operation S1150, the electronic device 1000 may determine moving object indices related to positions of pixels whose disparity values of a specific pixel are greater than or equal to a preset number of times within a plurality of frame images. For example, the electronic device 1000 may monitor the change in the number of moving pixels in each frame on a frame-by-frame basis, but by monitoring the corresponding pixel value change on the basis of a pixel at a specific position in each frame, a fire occurs. may be more accurately determined.

본 개시에 따른 전자 장치(1000)는 상술한 제로 크로스 카운트 지수, 하이패스 필터 면적 지수, 조기성 지수, 움직임 영역 지수 및 무빙 오브젝트 지수가 각각의 지수 조건을 만족하는 경우에는 화재 후보 영역에 대한 화재 의심 카운트 수를 1 증가시킬 수 있다. 그러나 또 다른 실시 예에 의하면, 전자 장치(1000)는 상술한 화재 지수 중 하나의 지수라도 지수 조건을 만족하지 못하는 경우, 화재 의심 카운트수를 초기화할 수 있다. 전자 장치(1000)는 화재 의심 카운트수가 기 설정된 임계 카운트 이상인 경우에만 화재가 발생한 것으로 식별하기 때문에, 전자 장치(1000)는 높은 정확도로 화재 발생 여부를 결정할 수 있다.In the electronic device 1000 according to the present disclosure, when the above-described zero cross count index, high-pass filter area index, earlyness index, motion region index, and moving object index satisfy respective index conditions, a fire suspicion for a fire candidate region is determined. The count number can be increased by 1. However, according to another embodiment, the electronic device 1000 may initialize the number of suspected fire counts when even one of the fire indices described above does not satisfy the index condition. Since the electronic device 1000 identifies that a fire has occurred only when the number of suspected fire counts is greater than or equal to a preset threshold count, the electronic device 1000 can determine whether a fire has occurred with high accuracy.

도 12는 일 실시 예에 따른 전자 장치가 제로 크로스 카운트 지수를 결정하는 과정을 설명하기 위한 도면이다.12 is a diagram for explaining a process of determining a zero cross count index by an electronic device according to an exemplary embodiment.

도 12의 그림 (1202)에 도시된 인스트럭션 예시를 참조하여 전자 장치(1000)가 제로 크로스 카운트 지수를 결정하는 과정을 구체적으로 설명하기로 한다. 일 실시 예에 의하면, 화재의 특징 중 하나는 깜빡임(플리커, flicker)이다. 예를 들어, 깜빡임이 있는 픽셀은 시간적으로 하이패스 필터링을 수행하게 되면 0값을 반복적으로 크로싱하는 프레임들을 획득할 수 있다. 전자 장치(1000)는 소정의 프레임 주기 단위로 프레임들이 0을 크로싱하는 수를 제로 크로스 카운트 지수로 결정하고, 결정된 제로 크로스 카운트 지수가 소정의 임계값 보다 큰 경우 화재 의심 카운트 수를 증가시킬 수 있다. 그러나 또 다른 실시 예에 의하면, 결정된 제로 크로스 카운트 지수가 소정의 임계값 보다 작은 경우, 전자 장치(1000)는 화재 의심 카운트 수를 초기화할 수도 있다.A process of determining the zero cross count index by the electronic device 1000 will be described in detail with reference to an example of an instruction shown in drawing 1202 of FIG. 12 . According to one embodiment, one of the characteristics of fire is flicker. For example, if high-pass filtering is temporally performed on a pixel with a flicker, frames repeatedly crossing a value of 0 may be obtained. The electronic device 1000 may determine the number of frames crossing 0 in a predetermined frame period unit as a zero cross count index, and increase the number of suspected fire counts when the determined zero cross count index is greater than a predetermined threshold. . However, according to another embodiment, when the determined zero cross count index is smaller than a predetermined threshold value, the electronic device 1000 may initialize the number of suspected fire counts.

일 실시 예에 의하면, 전자 장치(1000)는 복수의 프레임 이미지들 중 인접하는 3개의 프레임들 내 화재 후보 영역에 대하여 하이패스 필터링을 수행함으로써 제로 크로스 카운트 지수를 결정할 수 있다. According to an embodiment, the electronic device 1000 may determine a zero cross count index by performing high-pass filtering on a fire candidate region in three adjacent frames among a plurality of frame images.

보다 상세하게는, 전자 장치(1000)는 복수의 프레임 이미지들 중 연속하는 N-1 프레임, N프레임, N+1 프레임 각각에 대해 결정되는 -0.25, 0.5 및 -0.25 가중치에 기초하여 프레임별 픽셀 값들을 가중합함으로써 하이패스 필터링을 수행하고, 하이패스 필터링 수행 결과에 따른 플리커 변수를 픽셀 별로 결정할 수 있다. 도 12를 참조하면 플리커 변수(Flick_var)는 대응되는 위치의 N-1 프레임 내 픽셀 값(pre_pre)에 -0.25를 곱하고, N프레임 내 픽셀 값(pre)에 0.5를 곱하며, N+1 프레임 내 대응되는 위치의 픽셀 값(cur)에 -0.25를 곱한 후 모두 더함으로써 결정될 수 있다. 전자 장치(1000)는 대응되는 위치의 인접하는 3개 프레임 내 각 픽셀들에 소정의 가중치를 적용하여 가중합함으로써 하이패스 필터링을 수행할 수 있다. 전자 장치(1000)는 프레임 내 픽셀 별로 플리커 변수를 결정할 수 있다.In more detail, the electronic device 1000 determines each pixel for each frame based on -0.25, 0.5, and -0.25 weights determined for successive N-1 frames, N frames, and N+1 frames among a plurality of frame images, respectively. High-pass filtering may be performed by weighting the values, and a flicker variable according to a result of performing the high-pass filtering may be determined for each pixel. Referring to FIG. 12, the flicker variable (Flick_var) multiplies the pixel value (pre_pre) in frame N-1 of the corresponding position by -0.25, multiplies the pixel value (pre) in frame N by 0.5, and in frame N+1 It can be determined by multiplying the pixel value (cur) of the corresponding position by -0.25 and then adding all of them. The electronic device 1000 may perform high-pass filtering by applying a predetermined weight to each pixel in three adjacent frames at a corresponding position and weighting the pixels. The electronic device 1000 may determine a flicker variable for each pixel within a frame.

전자 장치(1000)는 픽셀 별로 결정된 플리커 변수 및 소정의 임계치를 비교함으로써, 픽셀 별로 하이패스 필터 변수를 결정할 수 있다. 전자 장치(1000)는 결정된 픽셀 별 하이패스 필터 변수가 소정의 조건을 만족하는지 여부에 기초하여, 제로 크로스 카운트 지수를 증가시킬 수 있다. The electronic device 1000 may determine a high-pass filter variable for each pixel by comparing the flicker variable determined for each pixel with a predetermined threshold value. The electronic device 1000 may increase the zero cross count index based on whether the determined high pass filter variable for each pixel satisfies a predetermined condition.

보다 상세하게는, 전자 장치(1000)는 인접하는 3개 프레임 내 픽셀 중 하나라도 화재 후보 영역 내 픽셀로 식별되고, 해당 픽셀의 플리커 변수가 ??threshold(5)보다 작으면 해당 픽셀에 대한 하이패스 필터링 변수(HPFn)를 -127로 설정하고, 플리커 변수가 threshold(5)보다 크면 해당 픽셀에 대한 하이패스 필터링 변수(HPFn)를 128로 설정하며, 플리커 변수가 ??threshold(5)와 threshold(5)사이에 위치하면 하이패스 필터링 변수(HPFn)를 0으로 설정할 수 있다. 또한, 전자 장치(1000)는 인접하는 3개 프레임 내 픽셀들이 모두 화재 후보 영역으로 식별되지 않는 경우, 하이패스 필터링 변수(HPFn)를 0으로 설정할 수 있다. In more detail, the electronic device 1000 identifies even one of the pixels in three adjacent frames as a pixel in the fire candidate region, and if the flicker variable of the corresponding pixel is smaller than ??threshold(5), a high Set the pass filtering parameter (HPFn) to -127, and if the flicker parameter is greater than threshold(5), set the high pass filtering parameter (HPFn) for the corresponding pixel to 128, and set the flicker parameter to ??threshold(5) and threshold (5), the high pass filtering variable (HPFn) can be set to 0. In addition, the electronic device 1000 may set the high-pass filtering variable HPFn to 0 when all pixels in three adjacent frames are not identified as fire candidate regions.

또한, 전자 장치(1000)는 하이패스 필터링 변수(HPFn)가 0이 아니면, 프레임 별 하이패스 필터링 변수(HPFn)가 0이 아닌 픽셀의 수에 관한 변수인 HPF_count를 증가시킬 수 있다. 또한, 전자 장치(1000)는 만약 현재 프레임 내 특정 위치 픽셀의 하이패스 필터링 변수 (HPFn)가 128이고, 이전 프레임에서 대응되는 위치의 픽셀의 하이패스 필터링 변수 (HPFn-1)가 -127이거나, 현재 프레임 내 특정 위치 픽셀의 하이패스 필터링 변수 (HPFn)가 -127이고, 이전 프레임에서 대응되는 위치의 픽셀의 하이패스 필터링 변수(HPFn-1)가 128이거나, 현재 프레임 내 특정 위치 픽셀의 하이패스 필터링 변수 (HPFn)가 0이고, 이전 프레임에서 대응되는 위치의 픽셀의 하이패스 필터링 변수(HPFn-1)가 0 인 경우 제로 크로스 카운트 지수를 증가시킬 수 있다.Also, when the high-pass filtering variable HPFn is not 0, the electronic device 1000 may increase HPF_count, which is a variable related to the number of pixels for which the high-pass filtering variable HPFn is not 0, for each frame. In addition, the electronic device 1000 determines whether a high-pass filtering parameter (HPFn) of a pixel at a specific location in the current frame is 128 and a high-pass filtering parameter (HPFn-1) of a pixel at a corresponding location in the previous frame is -127. The high-pass filtering factor (HPFn) of a pixel at a specific position in the current frame is -127 and the high-pass filtering factor (HPFn-1) of a pixel at a corresponding position in the previous frame is 128, or the high-pass filtering factor (HPFn-1) of a pixel at a specific position in the current frame is high-pass filtering When the filtering variable (HPFn) is 0 and the high-pass filtering variable (HPFn-1) of the corresponding pixel in the previous frame is 0, the zero cross count index may be increased.

상술한 과정에 따라 전자 장치(1000)느 제로 크로스 카운트 지수가 소정의 임계치 보다 큰 경우 화재 후보 영역을 화재 의심 영역으로 식별하고, 화재 의심 카운트 수를 1증가 시킬 수 있다. 그러나 전자 장치(1000)는 제로 크로스 카운트 지수가 소정의 임계치 보다 작은 경우, 화재 의심 카운트를 초기화할 수 있다.According to the above process, the electronic device 1000 may identify a fire candidate area as a fire suspected area and increase the number of suspected fire counts by one when the zero cross count index is greater than a predetermined threshold. However, the electronic device 1000 may initialize a fire suspicion count when the zero cross count index is smaller than a predetermined threshold value.

도 13은 일 실시 예에 따른 전자 장치가 하이패스 필터 면적 지수를 결정하는 과정을 설명하기 위한 도면이다.13 is a diagram for explaining a process of determining a high pass filter area index by an electronic device according to an exemplary embodiment.

일 실시 예에 의하면, 전자 장치(1000)는 도 12에서 상술한 과정에 따라 픽셀 별로 하이패스 필터 변수(HPFn)를 결정할 수 있다. 전자 장치(1000)는 프레임별, 하이패스 필터 변수가 0이 아닌 픽셀의 수를 HPF_Count 변수에 저장할 수 있다. 도 13의 그림 (1204)를 참조하면, 전자 장치(1000)는 프레임 별 하이패스 필터 변수(HPFn)가 0이 아닌 픽셀의 수의 변화를 모니터링할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 0 내지 30프레임 동안, 프레임 별 하이패스 필터 변수(HPFn)가 0이 아닌 픽셀의 수를 식별하고, 식별된 하이패스 필터 변수(HPFn)가 0이 아닌 픽셀의 수의 최소값, 표준편차 및 평균을 결정할 수 있다.According to an embodiment, the electronic device 1000 may determine the high pass filter parameter HPFn for each pixel according to the process described above with reference to FIG. 12 . The electronic device 1000 may store the number of pixels for which the high-pass filter variable is not 0 for each frame in the HPF_Count variable. Referring to drawing 1204 of FIG. 13 , the electronic device 1000 may monitor a change in the number of pixels whose high-pass filter parameter HPFn is not 0 for each frame. According to an embodiment, the electronic device 1000 identifies the number of pixels in which the high pass filter variable HPFn is not 0 for each frame during frames 0 to 30, and the identified high pass filter variable HPFn is 0. It is possible to determine the minimum value, standard deviation and average of the number of pixels that are not

일 실시 예에 의하면, 전자 장치(1000)는 프레임 별 하이패스 필터 변수가 0이 아닌 픽셀의 수가 가장 적은 최소 값이 소정의 임계치 보다 작은 경우, 하이패스 필터 면적 지수를 결정하지 않을 수 있다. 그러나, 프레임 별 하이패스 필터 변수가 0이 아닌 픽셀의 수가 가장 적은 최소 값이 소정의 임계치 보다 큰 경우에는, 전자 장치(1000)는 프레임 별 하이패스 필터 변수가 0이 아닌 픽셀의 수의 표준편차를 평균으로 나눔으로써 하이패스 필터 면적 지수를 결정할 수 있다. 전자 장치(1000)는 하이패스 필터 면적 지수가 소정의 임계치 보다 작은 경우, 화재 의심 카운트수를 증가시킬 수 있다. 그러나, 전자 장치(1000)는 하이패스 필터 면적 지수가 소정의 임계치 보다 큰 경우에는 화재의심 카운트를 초기화할 수 있다.According to an embodiment, the electronic device 1000 may not determine the high-pass filter area index when the minimum number of pixels in which the high-pass filter parameter is not 0 for each frame is smaller than a predetermined threshold value. However, when the minimum value of the smallest number of pixels with a high-pass filter variable for each frame is greater than a predetermined threshold value, the electronic device 1000 calculates the standard deviation of the number of pixels with a high-pass filter variable for each frame that is not 0. Dividing by the average can determine the high-pass filter area index. The electronic device 1000 may increase the number of suspected fire counts when the high-pass filter area index is less than a predetermined threshold value. However, the electronic device 1000 may initialize the count of suspected fire when the high-pass filter area index is greater than a predetermined threshold value.

도 14는 일 실시 예에 따른 전자 장치가 주기성 지수를 결정하는 과정을 설명하기 위한 도면이다.14 is a diagram for explaining a process of determining a periodicity index by an electronic device according to an exemplary embodiment.

도 14의 그림 (1206)을 참조하면, 전자 장치(1000)는 복수의 프레임 이미지들 중 하나의 프레임을 기준 프레임으로 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 기준 프레임을 Backup 프레임으로 결정할 수 있다. 전자 장치(1000)는 기준 프레임 및 기준 프레임을 포함하는 복수의 프레임 이미지들(예컨대 1 내지 30프레임들 또는 1 내지 59 프레임들) 사이에 period check inter-frame difference를 수행할 수 있다.Referring to the drawing 1206 of FIG. 14 , the electronic device 1000 may determine one frame among a plurality of frame images as a reference frame. According to an embodiment, the electronic device 1000 may determine a reference frame as a backup frame. The electronic device 1000 may perform period check inter-frame difference between a reference frame and a plurality of frame images (eg, 1 to 30 frames or 1 to 59 frames) including the reference frame.

예를 들어, 전자 장치(1000)는 기준 프레임 및 상기 복수의 프레임 이미지들 중 하나의 프레임에 대해 서로 다른 마스크 연산을 수행함으로써, 복수의 프레임 이미지들 내 픽셀 별 차이 변수(diff)를 결정할 수 있다. 보다 상세하게는, 주기성 지수를 30 프레임을 기준으로 결정하고, 기준 프레임을 1번 프레임으로 설정하는 경우를 가정한다. For example, the electronic device 1000 may determine a difference variable (diff) for each pixel in a plurality of frame images by performing different mask operations on a reference frame and one frame among the plurality of frame images. . More specifically, it is assumed that the periodicity index is determined based on 30 frames and the reference frame is set to frame number 1.

전자 장치(1000)는 기준 프레임인 1번 프레임과, 복수의 프레임 이미지들(기준 프레임을 1번 프레임으로 포함) 내 1번 프레임 사이에 period check inter-frame difference를 수행할 수 있다. 또한, 전자 장치(1000)는 기준 프레임인 1번 프레임과 2번 프레임에 대해서, period check inter-frame difference를 수행한 후, 상술한 과정을 반복하여 1번 프레임과 30번 프레임까지 period check inter-frame difference를 수행할 수 있다. The electronic device 1000 may perform period check inter-frame difference between frame 1, which is a reference frame, and frame 1 in a plurality of frame images (including the reference frame as frame 1). In addition, the electronic device 1000 performs period check inter-frame difference for frame 1 and frame 2, which are reference frames, and then repeats the above-described process until frame 1 and frame 30, period check inter-frame. Frame difference can be performed.

전자 장치(1000)는 30개 프레임들 중, 기준 프레임을 포함하는 임의 2개 프레임에 대해 period check inter-frame difference를 수행하는데, 2개 프레임에 대해서 서로 다른 마스크 연산을 적용한다. 예를 들어, 전자 장치(1000)는 -1을 원소(element)로 가지는 2 by 2 마스크 및 1을 원소(element)로 가지는 2 by 2 마스크를 30프레임 내, 기준 프레임을 포함하는 2개의 프레임에 각각 적용함으로써, period check inter-frame difference를 수행할 수 있다. The electronic device 1000 performs period check inter-frame difference on two arbitrary frames including a reference frame among 30 frames, and applies different mask operations to the two frames. For example, the electronic device 1000 applies a 2 by 2 mask having -1 as an element and a 2 by 2 mask having 1 as an element to two frames including a reference frame within 30 frames. By applying each, period check inter-frame difference can be performed.

전자 장치(1000)는 기준 프레임에 대해 -1을 원소(element)로 가지는 2 by 2 마스크를 적용함으로써 result 1를 결정하고, 30프레임들 중, 기준 프레임이 아닌 다른 하나의 프레임에 대해 1을 원소(element)로 가지는 2 by 2 마스크를 적용함으로써 result 2 를 결정할 수 있다. 전자 장치(1000)는 result 1 및 result 2의 평균 값에 128을 더함으로써, diff 값을 결정할 수 있다. The electronic device 1000 determines result 1 by applying a 2 by 2 mask having -1 as an element to the reference frame, and sets 1 as an element to one frame other than the reference frame among 30 frames. Result 2 can be determined by applying a 2 by 2 mask with (element). The electronic device 1000 may determine the diff value by adding 128 to the average values of result 1 and result 2.

또한, 일 실시 예에 의하면, 전자 장치(1000)는 픽셀 별로 결정된 차이 변수(diff) 값을 소정의 임계치와 비교함으로써 차이 변수를 양자화할 수 있다. 예를 들어, 전자 장치(1000)는 차이 변수값이 128-threshold(5)보다 작은 경우, 해당 차이 변수를 0으로 설정하고, 차이 변수 값이 128+threshold(5)보다 큰 경우, 해당 차이 변수를 255로 설정하며, 기타의 경우에는 차이 변수를 128로 설정함으로써, 차이 변수를 소정의 양자 값으로 양자화할 수 있다.Also, according to an embodiment, the electronic device 1000 may quantize the difference variable (diff) by comparing the value of the difference variable (diff) determined for each pixel with a predetermined threshold value. For example, when the difference variable value is smaller than 128-threshold(5), the electronic device 1000 sets the corresponding difference variable to 0, and when the difference variable value is greater than 128+threshold(5), the corresponding difference variable is set to 255, and in other cases, the difference variable can be quantized to a predetermined quantum value by setting the difference variable to 128.

전자 장치(1000)는 양자화된 차이 변수 값이 소정의 양자 값과 일치하지 않는 프레임 이미지 별 픽셀의 수의 표준 편차 및 평균에 기초하여, 주기성 지수를 결정할 수 있다. 예를 들어, 전자 장치(1000)는 프레임 별로, 양자화된 차이 변수 값(diff)이 128이 아닌 픽셀의 수를 카운트하고, 프레임 별로 카운트된 128이 아닌 양자화된 차이 변수(diff) 값의 수들의 표준 편차 및 평균을 구할 수 있다. The electronic device 1000 may determine the periodicity index based on the standard deviation and average of the number of pixels of each frame image in which the quantized difference variable value does not match the predetermined quantum value. For example, the electronic device 1000 counts the number of pixels for which the quantized difference variable value (diff) is not 128 per frame, and counts the number of quantized difference variable (diff) values other than 128 counted for each frame. Standard deviations and averages are available.

전자 장치(1000)는 프레임 별로, 양자화된 차이 변수 값이 128이 아닌 픽셀의 수들의 표준편차를 평균으로 나눔으로써 주기성 지수를 결정할 수 있다. 전자 장치(1000)는 주기성 지수가 소정의 임계치 보다 작으면 화재 후보 영역을 화재 의심 영역으로 식별하고 화재 의심 카운트 수를 1 증가시킬 수 있다. 그러나, 전자 장치(1000)는 주기성 지수가 소정의 임계치 보다 큰 경우, 화재 의심 카운트수를 초기화할 수 있다.The electronic device 1000 may determine the periodicity index by dividing the standard deviation of the number of pixels whose quantized difference variable value is not 128 for each frame by the average. If the periodicity index is less than a predetermined threshold, the electronic device 1000 may identify the fire candidate area as a fire suspect area and increase the number of suspected fire counts by 1. However, when the periodicity index is greater than a predetermined threshold value, the electronic device 1000 may initialize the number of suspected fire counts.

도 15는 일 실시 예에 따른 전자 장치가 움직임 영역 지수를 결정하는 과정을 설명하기 위한 도면이다.15 is a diagram for explaining a process of determining a motion region index by an electronic device according to an embodiment.

도 15의 그림 (1208)을 참조하면, 전자 장치(1000)가 프레임 별 움직임 픽셀의 수를 결정하고, 프레임 별 움직임 픽셀의 수의 평균 및 표준 편차를 결정하며, 프레임 별 움직임 픽셀의 수의 표준편차를 평균으로 나눔으로써 움직임 영역 지수를 결정하는 과정이 도시된다. 전자 장치(1000)는 움직임 영역 지수가 소정의 임계치 보다 작은 경우, 화재 후보 영역을 화재 의심 영역으로 식별하고, 화재 의심 카운트 수를 1 증가시키나, 움직임 영역 지수가 소정의 임계치 보다 큰 경우, 화재 의심 카운트 수를 초기화할 수 있다.Referring to a drawing 1208 of FIG. 15 , the electronic device 1000 determines the number of motion pixels for each frame, determines the average and standard deviation of the number of motion pixels for each frame, and determines the standard number of motion pixels for each frame. The process of determining the motion range index by dividing the deviation by the mean is shown. When the motion area index is less than a predetermined threshold, the electronic device 1000 identifies the fire candidate area as a suspected fire area and increases the number of suspected fire counts by 1. The count number can be initialized.

보다 상세하게는, 전자 장치(1000)는 프레임 이미지 내 픽셀 값들의 R,G,B값들의 평균을 픽셀 값 (Pixel_value)으로 결정할 수 있다. 전자 장치(1000)는 픽셀 값과, 기준이 되는 프레임 내 대응되는 위치의 픽셀 값의 차를 픽셀 값 변이(variance)로 결정할 수 있다. More specifically, the electronic device 1000 may determine the average of R, G, and B values of pixel values in the frame image as the pixel value (Pixel_value). The electronic device 1000 may determine a difference between a pixel value and a pixel value at a corresponding location in a reference frame as a pixel value variance.

전자 장치(1000)는 프레임 별 픽셀 값 변이가 소정의 임계치 이상인 픽셀들을 움직임 픽셀로 식별할 수 있다. 전자 장치(1000)는 복수의 프레임 이미지들 각각에서 식별되는 움직임 픽셀들의 수의 표준 편차를 평균값으로 나눔으로써 움직임 영역 지수를 결정할 수 있다.The electronic device 1000 may identify pixels whose pixel value variation per frame is greater than or equal to a predetermined threshold value as motion pixels. The electronic device 1000 may determine the motion region index by dividing the standard deviation of the number of motion pixels identified in each of the plurality of frame images by an average value.

한편, 전자 장치(1000)는 프레임 별 픽셀 값의 변이가 소정의 임계치 이상인 경우, 해당 픽셀에 대한 무빙 오브젝트 지수(Moving object)를 1만큼 증가시킬 수 있다. 전자 장치(1000)는 무빙 오브젝트 지수를 1만큼 증가 시킨 후에, 기준이 되는 프레임 내 대응되는 위치의 픽셀 값(Background)을 업데이트할 수 있다.Meanwhile, the electronic device 1000 may increase a moving object index (moving object) for a corresponding pixel by 1 when the variation of a pixel value for each frame is greater than or equal to a predetermined threshold value. After increasing the moving object index by 1, the electronic device 1000 may update a pixel value (Background) of a corresponding position within a reference frame.

도 16은 일 실시 예에 따른 전자 장치가 무빙 오브젝트 지수를 결정하는 과정을 설명하기 위한 도면이다.16 is a diagram for explaining a process of determining a moving object index by an electronic device according to an embodiment.

도 16의 그림 (1212)를 참조하면 전자 장치가 픽셀 별로 무빙 오브젝트 지수를 결정하는 과정이 도시된다. 예를 들어, 전자 장치(1000)는 복수의 프레임 이미지들 내에서 대응되는 위치의 특정 픽셀들의 변이(variance) 값이 소정의 임계치 이상으로 식별되는 횟수를 식별할 수 있다. 예를 들어, 전자 장치(1000)가 30 프레임 단위로 무빙 오브젝트 지수를 결정하는 경우를 가정하여 설명하기로 한다.Referring to figure 1212 of FIG. 16 , a process of determining a moving object index for each pixel of the electronic device is illustrated. For example, the electronic device 1000 may identify the number of times that variance values of specific pixels at corresponding positions within a plurality of frame images are identified as being equal to or greater than a predetermined threshold value. For example, a case in which the electronic device 1000 determines a moving object index in units of 30 frames will be described.

예를 들어, 전자 장치(1000)는 (1,1) 위치에 있는 픽셀의 변이 값을 1 내지 30 프레임 동안 추적할 수 있다. 예를 들어, 전자 장치(1000)는 (1,1) 위치에 있는 픽셀의 변이 값이 1 내지 30프레임 동안 임계치 이상으로 식별되는 횟수를 결정할 수 있다. 전자 장치(1000)는 (1,1) 위치에 있는 픽셀의 변이 값이 1 내지 30프레임 동안 임계치 이상으로 식별되는 경우의 횟수가 소정의 임계치 이상인 경우, Moving object(1,1)을 high로 결정할 수 있다. 그러나 전자 장치(1000)는 (1,1) 위치에 있는 픽셀의 변이 값이 1 내지 30프레임 동안 임계치 이상으로 식별되는 횟수가 소정의 임계치 보다 작은 경우 Moving object(1,1)을 low로 결정할 수 있다. For example, the electronic device 1000 may track the disparity value of a pixel at a position (1,1) for 1 to 30 frames. For example, the electronic device 1000 may determine the number of times that a disparity value of a pixel at position (1,1) is identified as being greater than or equal to a threshold value during frames 1 to 30. The electronic device 1000 determines Moving object(1,1) as high when the number of cases in which the disparity value of the pixel at position (1,1) is identified as being higher than or equal to a threshold value for frames 1 to 30 is equal to or greater than a predetermined threshold value. can However, the electronic device 1000 may determine Moving object(1,1) as low when the number of times that the disparity value of the pixel at position (1,1) is identified as being equal to or higher than a threshold value for frames 1 to 30 is less than a predetermined threshold value. there is.

상술한 방식에 따라, 전자 장치(1000)는 프레임 내 모든 픽셀에 대하여 픽셀 별 변이 값이 임계치 이상인 횟수를 식별한 후, 각 프레임 별 픽셀들에 대하여 무빙 오브젝트 지수를 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 30프레임 동안, 대응되는 위치의 픽셀 별 변이 값이 임계치 이상인 횟수가, 소정의 임계 횟수 이상인 픽셀들의 위치 정보를 무빙 오브젝트 지수에 더 포함시킬 수도 있다.According to the method described above, the electronic device 1000 may determine the number of times that the disparity value per pixel is greater than or equal to a threshold value for all pixels within a frame, and then determine the moving object index for pixels per frame. According to an embodiment, the electronic device 1000 may further include, in the moving object index, location information of pixels for which the number of disparity values per pixel of the corresponding location is equal to or greater than a predetermined threshold number during 30 frames.

일 실시 예에 의하면, 전자 장치(1000)는 무빙 오브젝트 지수가 결정되면, 무빙 오브젝트 지수를 결정하는데 사용된 맨 마지막 프레임(예컨대 30프레임 단위로 판단한 경우, 마지막 프레임은 30번째 프레임)에서 무빙 오브젝트 지수가 high로 판단된 픽셀들의 위치를 식별할 수 있다. 전자 장치(1000)는 무빙 오브젝트 지수가 high로 판단된 픽셀들의 RGB 데이터 평균 값을 결정할 수 있다. 전자 장치(1000)는 무빙 오브젝트 지수가 high로 판단된 픽셀들의 RGB 데이터 평균 값 각각이 소정의 임계치 보다 큰 경우, 화재 의심 카운트 수를 증가시킬 수 있다. 그러나 전자 장치(1000)는 무빙 오브젝트 지수가 high로 판단된 픽셀들의 RGB 데이터 평균 값 각각 중 적어도 하나라도 소정의 임계치 보다 크지 않은 경우 화재 의심 카운트를 초기화할 수 있다.According to an embodiment, when the moving object index is determined, the electronic device 1000 determines the moving object index in the last frame used to determine the moving object index (for example, if the determination is made in units of 30 frames, the last frame is the 30th frame). It is possible to identify the positions of pixels determined to be high. The electronic device 1000 may determine an average value of RGB data of pixels for which the moving object index is determined to be high. The electronic device 1000 may increase the number of suspected fire counts when each average value of RGB data of pixels for which the moving object index is determined to be high is greater than a predetermined threshold. However, the electronic device 1000 may initialize the fire suspicion count when at least one of RGB data average values of pixels for which the moving object index is determined to be high is not greater than a predetermined threshold.

또한, 일 실시 예에 의하면, 전자 장치(1000)는 무빙 오브젝트 지수가 high인 픽셀들의 위치와, 프레임 각 픽셀들의 채도(Saturation)값이 소정의 임계치 이상인 픽셀들의 위치 사이의 최소 거리(예컨대 좌표 값의 차이)의 합과 그 평균 값을 결정할 수 있다. 전자 장치(1000)는 무빙 오브젝트 지수가 high인 픽셀들의 위치와, 프레임 각 픽셀들의 채도(Saturation)값이 소정의 임계치 이상인 픽셀들의 위치 사이의 최소 거리가 소정의 임계치 미만인 경우, 화재 의심 카운트 수를 초기화할 수 있다. 그러나, 전자 장치(1000)는 무빙 오브젝트 지수가 high인 픽셀들의 위치와, 프레임 각 픽셀들의 채도(Saturation)값이 소정의 임계치 이상인 픽셀들의 위치 사이의 최소 거리가 소정의 임계치보다 큰 경우, 화재 의심 카운트 수를 증가시킬 수 있다.In addition, according to an embodiment, the electronic device 1000 determines the minimum distance between the positions of pixels having a high moving object index and the positions of pixels having a saturation value greater than or equal to a predetermined threshold (eg, coordinate value of each pixel of the frame). difference) and its average value can be determined. The electronic device 1000 determines the number of suspected fire counts when the minimum distance between the positions of pixels having a high moving object index and the positions of pixels having a saturation value of each pixel of each frame is less than a predetermined threshold. can be initialized. However, the electronic device 1000 suspects a fire when the minimum distance between the positions of pixels having a high moving object index and the positions of pixels having a saturation value of each pixel in the frame is greater than a predetermined threshold. The number of counts can be increased.

또한, 일 실시 예에 의하면, 전자 장치(1000)는 현재 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치와 소정의 주기(예컨대 30프레임)이전 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치 사이의 최소 거리의 합과 그 평균을 결정할 수 있다. 전자 장치(1000)는 현재 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치와 소정의 주기(예컨대 30프레임)이전 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치 사이의 최소 거리가 소정의 임계치 미만인 경우 화재 의심 카운트수를 초기화할 수 있다. 그러나, 전자 장치(1000)는 현재 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치와 소정의 주기(예컨대 30프레임)이전 프레임 내 무빙 오브젝트 지수가 high인 픽셀들의 위치 사이의 최소 거리가 소정의 임계치 보다 큰 경우, 화재 의심 카운트수를 증가시킬 수 있다.Also, according to an embodiment, the electronic device 1000 determines the minimum distance between the positions of pixels having a high moving object index in the current frame and the positions of pixels having a high moving object index in a frame prior to a predetermined period (eg, 30 frames). The sum of the distances and their average can be determined. The electronic device 1000 fires when the minimum distance between the positions of pixels with a high moving object index in the current frame and the positions of pixels with a high moving object index in a frame prior to a predetermined period (eg, 30 frames) is less than a predetermined threshold. The number of suspect counts can be reset. However, the electronic device 1000 determines that the minimum distance between the positions of pixels with a high moving object index in the current frame and the positions of pixels with a high moving object index in a frame prior to a predetermined period (eg, 30 frames) is greater than a predetermined threshold. If it is large, the number of suspected fire counts can be increased.

도 17은 또 다른 실시 예에 따른 전자 장치가 재난을 감지하는 방법의 흐름도이다.17 is a flowchart of a method of detecting a disaster by an electronic device according to another embodiment.

도 17을 참조하면 또 다른 실시 예에 따른 전자 장치가 재난을 감지하는 방법의 흐름도가 도시된다.Referring to FIG. 17 , a flowchart of a method of detecting a disaster by an electronic device according to another embodiment is shown.

마크 (1701)은 영상 입력 대기 상태를 나타낼 수 있다. S1702에서, 전자 장치(1000)는 이미지 내 RGB 데이터를 HSL 데이터로 변환한다. S1706에서, 전자 장치(1000)는 이미지로부터 화재 후보 영역(예컨대 불 색상 영역)을 추출한다. S1708에서, 전자 장치(1000)는 화재 후보 영역으로부터 주기성 지수를 결정할 수 있다. A mark 1701 may indicate an image input standby state. In S1702, the electronic device 1000 converts RGB data in the image into HSL data. In S1706, the electronic device 1000 extracts a fire candidate region (eg, a fire color region) from the image. In S1708, the electronic device 1000 may determine a periodicity index from the fire candidate region.

S1710에서, 전자 장치(1000)는 화재 후보 영역의 움직임 영역을 결정한다. S1712에서, 전자 장치(1000)는 프레임 별 화재 후보 영역에서 움직임 영역의 넓이를 결정하고, 움직임 영역의 넓이 변화 정도를 결정한다. 전자 장치(1000)는 S1710 및 S1712를 통하여 움직임 영역 지수를 결정할 수 있다. 또한, 일 실시 예에 의하면, 전자 장치(1000)는 픽셀 별로 무빙 오브젝트 지수를 더 결정할 수도 있다.In S1710, the electronic device 1000 determines a motion area of the fire candidate area. In S1712, the electronic device 1000 determines the width of the motion area in the fire candidate area for each frame and determines the degree of change in the area of the motion area. The electronic device 1000 may determine the motion region index through S1710 and S1712. Also, according to an embodiment, the electronic device 1000 may further determine a moving object index for each pixel.

S1714에서, 전자 장치(1000)는 화자ㅐ 후보 영역에서 시간적 웨이블렛 수행 후 픽셀 별 0을 크로싱하는 픽셀들의 수를 카운트함으로써 제로 크로스 카운트 지수를 결정한다. S1716에서, 전자 장치(1000)는 프레임 별 화재 후보 영역에서 시간적 웨이블렛 변환을 수행함으로써 0이 아닌 영역의 넓이를 체크함으로써 하이패스 필터 면적 지수를 결정한다.In operation S1714, the electronic device 1000 determines a zero cross count exponent by counting the number of pixels crossing 0 for each pixel after performing the temporal wavelet in the candidate region. In S1716, the electronic device 1000 determines a high-pass filter area index by performing temporal wavelet transform on the fire candidate area for each frame and checking the width of a non-zero area.

S1718에서, 전자 장치(1000)는 프레임 넘버수가 30이 되었는지 여부를 식별한다. 예를 들어, 전자 장치(1000)는 프레임 넘버수가 30이 되지 않은 경우, 화재 의심 카운트 초기화 상태(1720)로 진입할 수 있다. 그러나, 전자 장치(1000)는 프레임 넘버수가 30이 된 경우, 30 프레임 동안, 픽셀 별로 변이 값이 소정의 임계치 이상으로 식별된 횟수가, 소정의 임계값 이상인지 여부를 식별한다. S1724에서, 전자 장치(1000)는 30 프레임 동안 픽셀 별, 변이 값이 소정의 임계치 이상으로 식별된 횟수가 소정의 임계값 이상인 경우, 해당 픽셀의 무빙 오브젝트 지수를 HIGH로 결정한다. 그러나, S1726에서, 전자 장치(1000)는 30 프레임 동안 픽셀 별, 변이 값이 소정의 임계치 이상으로 식별된 횟수가 소정의 임계값 보다 작은 경우, 해당 픽셀의 무빙 오브젝트 지수를 LOW로 결정한다.In S1718, the electronic device 1000 identifies whether or not the number of frames has reached 30. For example, when the number of frames does not reach 30, the electronic device 1000 may enter a fire suspicion count initialization state 1720 . However, when the number of frames reaches 30, the electronic device 1000 identifies whether or not the number of times that the disparity value for each pixel is identified as greater than or equal to a predetermined threshold is greater than or equal to a predetermined threshold during 30 frames. In operation S1724, the electronic device 1000 determines the moving object index of the corresponding pixel as HIGH when the number of times that the disparity value of each pixel is identified as being equal to or greater than the predetermined threshold value is equal to or greater than the predetermined threshold value for 30 frames. However, in S1726, the electronic device 1000 determines the moving object index of the corresponding pixel as LOW when the number of times that the disparity value of each pixel is identified as greater than or equal to a predetermined threshold value is less than the predetermined threshold value during 30 frames.

S1728에서, 전자 장치(1000)는 무빙 오브젝트 지수가 LOW인 경우, S1736으로 진입하여 화재 의심 카운트를 초기화하고, 화재 의심 카운트 초기화 상태(1720)로 진입한다. 그러나, S1730에서, 전자 장치(1000)는 무빙 오브젝트 지수가 HIGH로 식별되는 경우, 무빙 오브젝트 지수가 HIGH로 식별된 픽셀의 RGB 데이터의 평균을 구할 수 있다. S1732에서, 전자 장치(1000)는 RGB 데이터의 평균 값 각각이 소정의 임계 값 보다 큰 경우, 연결 단계(1734)로 진입하나, RGB 데이터의 평균 값 중 하나라도 소정의 임계값 보다 크지 않은 경우, S1736 단계로 진입하여 화재 의심 카운트를 초기화할 수 있다.In S1728, when the moving object index is LOW, the electronic device 1000 enters S1736, initializes a suspected fire count, and enters a suspected fire count initialization state 1720. However, in S1730, when the moving object index is identified as HIGH, the electronic device 1000 may obtain an average of RGB data of pixels identified as HIGH. In S1732, the electronic device 1000 enters the connection step 1734 when each average value of the RGB data is greater than a predetermined threshold value, but if even one of the average values of the RGB data is not greater than a predetermined threshold value, Step S1736 is entered to initialize the suspected fire count.

S1704에서, 전자 장치(1000)는 무빙 오브젝트 지수가 HIGH로 판단된 픽셀들의 위치와 각 픽셀들의 채도값이 소정의 임계치 이상인 픽셀들의 위치 사이의 최소 거리를 결정할 수 있다. S1742에서, 전자 장치(1000)는 S1704에서 결정된 최소 거리가 소정의 임계치 보다 작은 경우, 화재 의심 카운트를 초기화하나, 최소 거리가 소정의 임계치 보다 큰 경우, S1748 단계로 진입할 수 있다.In operation S1704, the electronic device 1000 may determine a minimum distance between the positions of pixels whose moving object index is determined to be HIGH and the positions of pixels whose saturation values are greater than or equal to a predetermined threshold. In S1742, when the minimum distance determined in S1704 is smaller than a predetermined threshold value, the electronic device 1000 initializes a fire suspicion count. However, if the minimum distance is greater than a predetermined threshold value, the electronic device 1000 may proceed to step S1748.

S1748에서, 전자 장치(1000)는 제로 크로스 카운트 지수가 소정의 임계치 보다 큰 경우, S1750 단계로 진입하나, 제로 크로스 카운트 지수가 소정의 임계치 보다 작은 경우 S1736 단계로 진입하여 화재 의심 카운트를 초기화할 수 있다.In S1748, when the zero cross count index is greater than a predetermined threshold, the electronic device 1000 enters step S1750, but when the zero cross count index is less than a predetermined threshold, the electronic device 1000 enters step S1736 to initialize the suspected fire count. there is.

S1750에서, 전자 장치(1000)는 도 13에서 상술한 과정을 수행함으로써 하이패스 필터 면적 지수를 결정할 수 있다. S1752에서, 전자 장치(1000)는 결정된 하이패스 필터 면적 지수가 소정의 임계치 보다 큰 경우 S1736 단계로 진입하여 화재 의심 카운트 수를 초기화한다. 그러나 전자 장치(1000)는 결정된 하이패스 필터 면적 지수가 소정의 임계치 보다 작은 경우, S1754 단계로 진입할 수 있다.In S1750, the electronic device 1000 may determine the high pass filter area index by performing the process described above with reference to FIG. 13 . In S1752, when the determined high-pass filter area index is greater than a predetermined threshold, the electronic device 1000 enters step S1736 to initialize the number of suspected fire counts. However, when the determined high-pass filter area index is smaller than a predetermined threshold value, the electronic device 1000 may enter step S1754.

S1754에서, 전자 장치(1000)는 프레임 별 주기성 체크에 의한 주기성 지수를 결정할 수 있다. S1756에서, 전자 장치(1000)는 주기성 지수가 소정의 임계치 보다 작은 경우, S1736 단계로 진입하여 화재 의심 카운트수를 초기화할 수 있다. 그러나 전자 장치(1000)는 주기성 지수가 소정의 임계치 보다 큰 경우, S1758 단계로 진입할 수 있다.In S1754, the electronic device 1000 may determine a periodicity index by checking periodicity for each frame. In S1756, when the periodicity index is less than a predetermined threshold value, the electronic device 1000 may initialize the number of suspected fire counts by entering step S1736. However, when the periodicity index is greater than a predetermined threshold value, the electronic device 1000 may enter step S1758.

S1758에서, 전자 장치(1000)는 프레임 별 움직임 영역의 면적 평균 및 면적 변화량을 계산함으로써 움직임 영역 지수를 결정한다. S1760에서, 전자 장치(1000)는 움직임 영역 지수가 소정의 임계치 보다 큰 경우, S1764로 진입하여 움직임 영역 변화량 카운트를 증가시킬 수 있다. S1750에서, 전자 장치(1000)는 움직임 영역 지수가 소정의 임계치 보다 작은 경우 S1766으로 진입하여 화재 의심 카운트 수를 증가시킬 수 있다.In S1758, the electronic device 1000 determines a motion region index by calculating an area average and an area change amount of the motion region for each frame. In S1760, when the motion region index is greater than a predetermined threshold value, the electronic device 1000 may increase the movement region variation count in step S1764. In S1750, when the motion area index is less than a predetermined threshold value, the electronic device 1000 may increase the number of suspected fire counts by proceeding to S1766.

S1768에서, 전자 장치(1000)는 움직임 영역 변화량 카운트가 소정의 임계치 보다 큰 경우, S1736 단계로 진입하여 화재 의심 카운트를 초기화한다. 그러나 S1768에서, 전자 장치(1000)는 움직임 영역 변화량 카운트가 소정의 임계치 보다 작거나, S1772에서, 증가된 화재 의심 카운트 수가 6보다 크지 않은 경우, 화재 의심 카운트 초기화 상태(1720)으로 진입할 수 있다. 그러나, S1772에서, 전자 장치(1000)는 화재 의심 카운트 수가 6보다 큰 경우, S1174로 진입하여 화재 알람 정보를 출력할 수 있다. 전자 장치(1000)는 화재 알람 정보를 출력한 이후에는 다시 화재 의심 카운트 초기화 상태(1720)로 진입할 수 있다.In S1768, when the motion area variation count is greater than a predetermined threshold, the electronic device 1000 enters step S1736 to initialize a fire suspicion count. However, in S1768, the electronic device 1000 may enter the suspected fire count initialization state 1720 when the motion region variation count is less than a predetermined threshold or in S1772, when the increased number of suspected fire counts is not greater than 6. . However, in S1772, when the number of suspected fire counts is greater than 6, the electronic device 1000 may output fire alarm information by entering S1174. After outputting the fire alarm information, the electronic device 1000 may enter the fire suspicion count initialization state 1720 again.

즉 본 개시에 따른 전자 장치(1000)는 화재에 관한 적어도 하나의 지수들로써, 결정된 제로 크로스 카운트 지수, 상기 하이패스 필터 면적 지수, 상기 주기성 지수, 상기 움직임 영역 지수 또는 상기 무빙 오브젝트 지수 중 적어도 하나에 대한 지수 조건 만족 여부를 식별하고, 상기 적어도 하나의 화재 지수들 중 하나라도 지수 조건을 만족하지 않는 경우에는, 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수(예컨대 화재 의심 카운트 수)를 초기화할 수 있다. 그러나 전자 장치(1000)는 상기 적어도 하나의 화재 지수들에 대한 소정의 지수 조건이 모두 만족되는 경우, 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 증가시키고, 상기 증가된 횟수가 기 설정된 임계치 이상(예컨대 6)인 경우, 화재가 발생한 것으로 결정할 수 있다.That is, the electronic device 1000 according to the present disclosure may determine at least one of the determined zero cross count index, the high-pass filter area index, the periodicity index, the motion region index, or the moving object index as at least one fire index. It identifies whether an index condition is satisfied for the at least one fire index, and if even one of the at least one fire index does not satisfy the index condition, the number of times (eg, the number of suspected fire counts) in which a fire candidate region is identified as a fire suspect region may be initialized. there is. However, the electronic device 1000 increases the number of times a fire candidate area is identified as a fire suspect area when all predetermined index conditions for the at least one fire index are satisfied, and the increased number is equal to or greater than a preset threshold. (For example, 6), it can be determined that a fire has occurred.

또한, 일 실시 예에 의하면, 전자 장치(1000)는 소정의 주기에 따라 화재 발생 지수를 결정하거나, 화재 발생 여부를 판단할 수 있다. 예를 들어, 전자 장치(1000)는 복수의 프레임 이미지들 별 또는 복수의 프레임 이미지들 중 소정의 프레임 주기에 따른 프레임에 대해서, 상기 적어도 하나의 화재 지수를 결정할 수도 있다.Also, according to an embodiment, the electronic device 1000 may determine a fire occurrence index or determine whether a fire occurs according to a predetermined cycle. For example, the electronic device 1000 may determine the at least one fire index for each of a plurality of frame images or for a frame according to a predetermined frame period among a plurality of frame images.

도 18은 일 실시 예에 따른 전자 장치의 블록도이다.18 is a block diagram of an electronic device according to an embodiment.

도 19은 또 다른 실시 예에 따른 전자 장치의 블록도이다.19 is a block diagram of an electronic device according to another embodiment.

도 18에 도시된 바와 같이, 일 실시 예에 따른 전자 장치(1000)는 프로세서(1300) 및 메모리(1700)를 포함할 수 있다. 그러나, 도시된 구성 요소가 모두 필수구성요소인 것은 아니다. 도시된 구성 요소보다 많은 구성 요소에 의해 전자 장치(1000)가 구현될 수도 있고, 그 보다 적은 구성 요소에 의해서도 전자 장치(1000)는 구현될 수도 있다.As shown in FIG. 18 , an electronic device 1000 according to an embodiment may include a processor 1300 and a memory 1700. However, not all illustrated components are essential components. The electronic device 1000 may be implemented with more components than those illustrated, or the electronic device 1000 may be implemented with fewer components.

예를 들어, 도 19에 도시된 바와 같이, 전자 장치(1000)는 프로세서(1300) 및 메모리(1700)외에, 사용자 입력 인터페이스(1100), 출력부(1200), 센싱부(1400), 네트워크 인터페이스(1500), A/V 입력부(1600) 및 메모리(1700)를 더 포함할 수도 있다.For example, as shown in FIG. 19 , the electronic device 1000 includes a processor 1300 and a memory 1700, a user input interface 1100, an output unit 1200, a sensing unit 1400, and a network interface. 1500, an A/V input unit 1600, and a memory 1700 may be further included.

사용자 입력부(1100)는, 사용자가 전자 장치(1000)를 제어하기 위한 데이터를 입력하는 수단을 의미한다. 예를 들어, 사용자 입력부(1100)에는 키 패드(key pad), 돔 스위치 (dome switch), 터치 패드(접촉식 정전 용량 방식, 압력식 저항막 방식, 적외선 감지 방식, 표면 초음파 전도 방식, 적분식 장력 측정 방식, 피에조 효과 방식 등), 조그 휠, 조그 스위치 등이 있을 수 있으나 이에 한정되는 것은 아니다.The user input unit 1100 means a means through which a user inputs data for controlling the electronic device 1000 . For example, the user input unit 1100 includes a key pad, a dome switch, a touch pad (contact capacitance method, pressure resistive film method, infrared sensing method, surface ultrasonic conduction method, integral type tension measuring method, piezo effect method, etc.), a jog wheel, a jog switch, and the like, but are not limited thereto.

사용자 입력부(1100)는, 전자 장치(1000)를 제어하기 위한 기타 사용자 입력들을 획득할 수 있다. 또한, 사용자 입력부(1100)는 소정의 오디오 콘트롤 패널을 터치하는 사용자 입력을 수신할 수도 있다.The user input unit 1100 may obtain other user inputs for controlling the electronic device 1000 . Also, the user input unit 1100 may receive a user input of touching a predetermined audio control panel.

출력부(1200)는, 오디오 신호 또는 비디오 신호 또는 진동 신호를 출력할 수 있으며, 출력부(1200)는 디스플레이부(1210), 음향 출력부(1220), 및 진동 모터(1230)를 포함할 수 있다.The output unit 1200 may output an audio signal, a video signal, or a vibration signal, and the output unit 1200 may include a display unit 1210, a sound output unit 1220, and a vibration motor 1230. there is.

디스플레이부(1210)는 전자 장치(1000)에서 처리되는 정보를 표시 출력하기 위한 화면을 포함한다. 또한, 화면은 영상을 디스플레이 할 수 있다. 예를 들면, 디스플레이부(1210)는 재난 알림 정보, 지진 알림 정보, 화재 알림 정보, 뉴스 화면 중 적어도 하나를 표시할 수 있다.The display unit 1210 includes a screen for displaying and outputting information processed by the electronic device 1000 . Also, the screen may display an image. For example, the display unit 1210 may display at least one of disaster notification information, earthquake notification information, fire notification information, and a news screen.

음향 출력부(1220)는 네트워크 인터페이스(1500)로부터 수신되거나 메모리(1700)에 저장된 오디오 데이터를 출력한다. 또한, 음향 출력부(1220)는 재난 알림 정보 출력과 함께 소정의 경고음 등을 출력할 수 있다. 또한, 음향 출력부(1220)는 전자 장치(1000)에서 수행되는 기능(예를 들어, 호신호 수신음, 메시지 수신음, 알림음)과 관련된 음향 신호를 출력한다.The audio output unit 1220 outputs audio data received from the network interface 1500 or stored in the memory 1700 . In addition, the sound output unit 1220 may output a predetermined warning sound or the like along with outputting disaster notification information. Also, the sound output unit 1220 outputs sound signals related to functions performed by the electronic device 1000 (eg, a call signal reception sound, a message reception sound, and a notification sound).

프로세서(1300)는 통상적으로 전자 장치(1000)의 전반적인 동작을 제어한다. 예를 들어, 프로세서(1300)는, 메모리(1700)에 저장된 프로그램들을 실행함으로써, 사용자 입력부(1100), 출력부(1200), 센싱부(1400), 네트워크 인터페이스(1500), A/V 입력부(1600) 등을 전반적으로 제어할 수 있다. 또한, 프로세서(1300)는 메모리(1700)에 저장된 프로그램들을 실행함으로써, 도 1 내지 도 17에 기재된 전자 장치(1000)의 기능을 수행할 수 있다.The processor 1300 typically controls overall operations of the electronic device 1000 . For example, the processor 1300 executes programs stored in the memory 1700, so that the user input unit 1100, the output unit 1200, the sensing unit 1400, the network interface 1500, and the A/V input unit ( 1600) can be controlled overall. Also, the processor 1300 may perform the functions of the electronic device 1000 described in FIGS. 1 to 17 by executing programs stored in the memory 1700 .

일 실시 예에 의하면, 프로세서(1300)는 상기 적어도 하나의 프로세서는 상기 하나 이상의 인스트럭션을 실행함으로써, 감시 대상 영역을 촬영함으로써 이미지를 획득하고, 적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하고, 상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하고, 상기 결정된 화재 지수에 기초하여 화재 발생 여부를 결정하고, 상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하고, 상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력할 수 있다.According to an embodiment, the processor 1300 acquires an image by photographing an area to be monitored by executing the one or more instructions, and at a location where the electronic device is installed using at least one sensor. Seismic wave information is acquired by sensing seismic waves, at least one fire index is determined based on the obtained image analysis result, whether or not a fire occurs is determined based on the determined fire index, and at least one fire index is determined based on the seismic wave information. It is possible to determine an earthquake index of , determine whether an earthquake has occurred based on the determined earthquake index, and output notification information according to whether the fire or the earthquake has occurred.

일 실시 예에 의하면, 프로세서(1300)는 상기 감시 대상 영역을 촬영하는 카메라 장치를 통하여 기 설정된 프레임 간격을 가지는 복수의 프레임 이미지들을 획득할 수 있다.According to an embodiment, the processor 1300 may obtain a plurality of frame images having a predetermined frame interval through a camera device that captures the surveillance target area.

일 실시 예에 의하면, 프로세서(1300)는 상기 적어도 하나의 센서 중 3축 가속도 센서로부터 3축 가속도 정보를 획득하고, 상기 적어도 하나의 센서 중 지자기 센서로부터 지자기 정보를 획득할 수 있다.According to an embodiment, the processor 1300 may obtain 3-axis acceleration information from a 3-axis acceleration sensor among the at least one sensor, and obtain geomagnetic information from a geomagnetic sensor among the at least one sensor.

일 실시 예에 의하면 프로세서(1300)는 상기 지자기 정보에 기초하여 상기 전자 장치가 설치된 위치에서 지자기 방향을 식별하고, 상기 3축 가속도 정보에 기초하여 3축 가속도 방향을 식별하고, 상기 3축 가속도 방향을 상기 식별된 지자기 방향에 매칭시키고, 상기 지자기 방향에 매칭된 상기 3축 가속도 방향을 기준으로, 상기 3축 가속도 크기를 모니터링함으로써 최대 지반 가속도를 결정하고, 상기 지자기 방향에 매칭된 3축 가속도 방향 및 상기 결정된 최대 지반 가속도에 기초하여 지진 발생 여부를 결정할 수 있다.According to an embodiment, the processor 1300 identifies the direction of the earth's magnetism at the location where the electronic device is installed based on the geomagnetism information, identifies the direction of the 3-axis acceleration based on the 3-axis acceleration information, and the direction of the 3-axis acceleration. is matched with the identified geomagnetic direction, and based on the three-axis acceleration direction matched to the geomagnetic direction, the maximum ground acceleration is determined by monitoring the magnitude of the three-axis acceleration, and the three-axis acceleration direction matched with the geomagnetic direction. And it is possible to determine whether or not an earthquake has occurred based on the determined maximum ground acceleration.

일 실시 예에 의하면, 프로세서(1300)는 최대 지반 가속도에 기초하여 진도를 결정하고, 상기 결정된 진도가 기 설정된 임계 진도 이상인 경우, 상기 지자기 방향에 매칭된 3축 가속도 방향을 기준으로, 지진이 발생한 것으로 결정할 수 있다.According to an embodiment, the processor 1300 determines the seismic intensity based on the maximum ground acceleration, and when the determined seismic intensity is greater than or equal to a preset threshold magnitude, based on the 3-axis acceleration direction matched to the geomagnetic direction, an earthquake occurred. can be determined as

일 실시 예에 의하면, 프로세서(1300)는 상기 지진이 발생한 것으로 결정되는 경우, 상기 3축 가속도 정보에 기초하여 PS시를 결정하고, 상기 결정된 PS시에 기초하여 진앙지를 결정하고, 상기 전자 장치와 연결된 다른 2이상의 전자 장치로부터 진앙지 정보를 획득하고, 상기 결정된 진앙지 및 상기 다른 전자 장치로부터 획득된 진앙지 정보에 기초하여, 지진이 발생한 진원지 정보를 결정하고, 상기 결정된 진원지 정보 및 상기 결정된 진도에 관한 정보를 상기 알림 정보로써 출력할 수 있다.According to an embodiment, when it is determined that the earthquake has occurred, the processor 1300 determines a PS time based on the three-axis acceleration information, determines an epicenter based on the determined PS time, and communicates with the electronic device Obtain epicenter information from two or more connected electronic devices, determine epicenter information on which an earthquake occurred based on the determined epicenter and the epicenter information obtained from the other electronic devices, and determine the determined epicenter information and information about the determined seismic intensity. may be output as the notification information.

일 실시 예에 의하면, 프로세서(1300)는 상기 이미지 및 상기 이미지 전후의 프레임에서 나타나는 이미지 내 기준 객체의 위치 변화에 기초하여 적어도 하나의 벡터를 결정하고, 상기 적어도 하나의 벡터의 방향 및 크기 변화를 식별하고, 상기 식별된 적어도 하나의 벡터의 방향, 크기 변화 및 상기 결정된 최대 지반 가속도에 기초하여 상기 지진 발생 여부를 결정할 수 있다.According to an embodiment, the processor 1300 determines at least one vector based on the image and a change in position of a reference object in the image appearing in frames before and after the image, and determines a change in direction and size of the at least one vector. It is possible to determine whether or not the earthquake occurred based on the direction and magnitude change of the identified at least one vector and the determined maximum ground acceleration.

일 실시 예에 의하면, 프로세서(1300)는 상기 획득된 이미지 내 픽셀들의 RGB 데이터를 HSL 데이터로 변환하고, 상기 HSL 데이터에 기초하여 상기 이미지 내 화재 후보 영역을 결정하고, 상기 결정된 화재 후보 영역에 대하여 상기 적어도 하나의 화재 지수를 결정하고, 상기 결정된 적어도 하나의 화재 지수에 기초하여, 상기 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 식별하고, 상기 식별된 횟수가 기 설정된 임계치 이상인 경우, 화재가 발생한 것으로 결정할 수 있다.According to an embodiment, the processor 1300 converts RGB data of pixels in the acquired image into HSL data, determines a fire candidate area in the image based on the HSL data, and determines a fire candidate area in the determined fire candidate area. The at least one fire index is determined, based on the determined at least one fire index, a number of times the fire candidate area is identified as a fire suspect area is identified, and when the number of times the identified number is equal to or greater than a preset threshold, a fire has occurred. can be determined to have occurred.

센싱부(1400)는, 전자 장치(1000)의 상태 또는 전자 장치(1000) 주변의 상태를 감지하고, 감지된 정보를 프로세서(1300)로 전달할 수 있다. 센싱부(1400)는 전자 장치(1000)의 사양 정보, 전자 장치(1000)의 상태 정보, 전자 장치(1000)의 주변 환경 정보, 사용자의 상태 정보 및 사용자의 디바이스 사용 이력 정보 중 일부를 생성하는데 이용될 수 있다. The sensing unit 1400 may detect a state of the electronic device 1000 or a state around the electronic device 1000 and transmit the sensed information to the processor 1300 . The sensing unit 1400 generates some of the specification information of the electronic device 1000, the state information of the electronic device 1000, the surrounding environment information of the electronic device 1000, the user's state information, and the user's device use history information. can be used

센싱부(1400)는, 지자기 센서(Magnetic sensor)(1410), 가속도 센서(Acceleration sensor)(1420), 온/습도 센서(1430), 적외선 센서(1440), 자이로스코프 센서(1450), 위치 센서(예컨대, GPS)(1460), 기압 센서(1470), 근접 센서(1480), 및 RGB 센서(illuminance sensor)(1490) 중 적어도 하나를 포함할 수 있으나, 이에 한정되는 것은 아니다. 각 센서들의 기능은 그 명칭으로부터 당업자가 직관적으로 추론할 수 있으므로, 구체적인 설명은 생략하기로 한다.The sensing unit 1400 includes a magnetic sensor 1410, an acceleration sensor 1420, a temperature/humidity sensor 1430, an infrared sensor 1440, a gyroscope sensor 1450, and a position sensor. (eg, GPS) 1460, an air pressure sensor 1470, a proximity sensor 1480, and an RGB sensor (illuminance sensor) 1490, but may include at least one, but is not limited thereto. Since a person skilled in the art can intuitively infer the function of each sensor from its name, a detailed description thereof will be omitted.

네트워크 인터페이스(1500)는 전자 장치(1000)가 다른 장치(미도시) 및 서버(2000)와 통신을 하게 하는 하나 이상의 구성요소를 포함할 수 있다. 다른 장치(미도시)는 전자 장치(1000)와 같은 컴퓨팅 장치이거나, 센싱 장치일 수 있으나, 이에 제한되지 않는다. 예를 들어, 네트워크 인터페이스(1500)는, 근거리 통신부(1510), 이동 통신부(1520), 방송 수신부(1530)를 포함할 수 있다. The network interface 1500 may include one or more components allowing the electronic device 1000 to communicate with other devices (not shown) and the server 2000 . Another device (not shown) may be a computing device such as the electronic device 1000 or a sensing device, but is not limited thereto. For example, the network interface 1500 may include a short-distance communication unit 1510, a mobile communication unit 1520, and a broadcast reception unit 1530.

근거리 통신부(short-range wireless communication unit)(1510)는, 블루투스 통신부, BLE(Bluetooth Low Energy) 통신부, 근거리 무선 통신부(Near Field Communication unit), WLAN(와이파이) 통신부, 지그비(Zigbee) 통신부, 적외선(IrDA, infrared Data Association) 통신부, WFD(Wi-Fi Direct) 통신부, UWB(ultra wideband) 통신부 등을 포함할 수 있으나, 이에 한정되는 것은 아니다. The short-range wireless communication unit 1510 includes a Bluetooth communication unit, a Bluetooth Low Energy (BLE) communication unit, a Near Field Communication unit, a WLAN (Wi-Fi) communication unit, a Zigbee communication unit, and an infrared ( It may include an infrared data association (IrDA) communication unit, a Wi-Fi Direct (WFD) communication unit, an ultra wideband (UWB) communication unit, etc., but is not limited thereto.

이동 통신부(1520)는, 이동 통신망 상에서 기지국, 외부의 단말, 서버 중 적어도 하나와 무선 신호를 송수신한다. 여기에서, 무선 신호는, 음성 호 신호, 화상 통화 호 신호 또는 문자/멀티미디어 메시지 송수신에 따른 다양한 형태의 데이터를 포함할 수 있다.The mobile communication unit 1520 transmits and receives a radio signal with at least one of a base station, an external terminal, and a server on a mobile communication network. Here, the radio signal may include a voice call signal, a video call signal, or various types of data according to text/multimedia message transmission/reception.

방송 수신부(1530)는, 방송 채널을 통하여 외부로부터 방송 신호 및/또는 방송 관련된 정보를 수신한다. 방송 채널은 위성 채널, 지상파 채널을 포함할 수 있다. 구현 예에 따라서 전자 장치(1000)가 방송 수신부(1530)를 포함하지 않을 수도 있다. 또한, 네트워크 인터페이스(1500)는, 카메라 장치를 포함하는 외부 디바이스 또는 서버로부터 대상 객체 이미지 또는 기준 객체 이미지를 획득할 수도 있다. 일 실시예에 따르면, 네트워크 인터페이스(1500)는 전자 장치가 결정한 재난 알람 정보를 서버 또는 외부 디바이스로 전송할 수도 있다. The broadcast receiver 1530 receives a broadcast signal and/or broadcast-related information from the outside through a broadcast channel. Broadcast channels may include satellite channels and terrestrial channels. According to an implementation example, the electronic device 1000 may not include the broadcast reception unit 1530. Also, the network interface 1500 may obtain a target object image or a reference object image from an external device including a camera device or a server. According to an embodiment, the network interface 1500 may transmit disaster alarm information determined by the electronic device to a server or an external device.

A/V(Audio/Video) 입력부(1600)는 오디오 신호 또는 비디오 신호 입력을 위한 것으로, 이에는 카메라(1610)와 마이크로폰(1620) 등이 포함될 수 있다. 카메라(1610)는 화상 통화모드 또는 촬영 모드에서 이미지 센서를 통해 정지영상 또는 동영상 등의 화상 프레임을 얻을 수 있다. 이미지 센서를 통해 캡쳐된 이미지는 프로세서(1300) 또는 별도의 이미지 처리부(미도시)를 통해 처리될 수 있다. An audio/video (A/V) input unit 1600 is for inputting an audio signal or a video signal, and may include a camera 1610 and a microphone 1620. The camera 1610 may obtain an image frame such as a still image or a moving image through an image sensor in a video call mode or a photographing mode. An image captured through the image sensor may be processed through the processor 1300 or a separate image processing unit (not shown).

마이크로폰(1620)은, 외부의 음향 신호를 입력 받아 전기적인 음성 데이터로 처리한다. 예를 들어, 마이크로폰(1620)은 외부 디바이스 또는 사용자로부터 음향 신호를 수신할 수 있다. 마이크로폰(1620)은 사용자의 음성 입력을 수신할 수 있다. 마이크로폰(1620)은 외부의 음향 신호를 입력 받는 과정에서 발생 되는 잡음(noise)을 제거하기 위한 다양한 잡음 제거 알고리즘을 이용할 수 있다. The microphone 1620 receives external sound signals and processes them into electrical voice data. For example, the microphone 1620 may receive a sound signal from an external device or a user. The microphone 1620 may receive a user's voice input. The microphone 1620 may use various noise cancellation algorithms to remove noise generated in the process of receiving an external sound signal.

메모리(1700)는, 프로세서(1300)의 처리 및 제어를 위한 프로그램을 저장할 수 있고, 전자 장치(1000)로 입력되거나 전자 장치(1000)로부터 출력되는 데이터를 저장할 수도 있다. 또한, 메모리(1700)는 전자 장치(1000)가 재난 알람 정보를 출력하기 위해, 화재 발생 여부 또는 지진 발생 여부를 판단하기 위한 일련의 방법들이 인스트럭션의 형태로 저장될 수 있다.The memory 1700 may store programs for processing and control of the processor 1300 and may store data input to or output from the electronic device 1000 . In addition, the memory 1700 may store a series of methods for determining whether a fire or an earthquake has occurred in the form of instructions in order for the electronic device 1000 to output disaster alarm information.

메모리(1700)는 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM, Random Access Memory) SRAM(Static Random Access Memory), 롬(ROM, Read-Only Memory), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. The memory 1700 may include a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (eg SD or XD memory, etc.), RAM (RAM, Random Access Memory) SRAM (Static Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), magnetic memory, magnetic disk , an optical disk, and at least one type of storage medium.

메모리(1700)에 저장된 프로그램들은 그 기능에 따라 복수 개의 모듈들로 분류할 수 있는데, 예를 들어, UI 모듈(1710), 터치 스크린 모듈(1720), 알림 모듈(1730) 등으로 분류될 수 있다. Programs stored in the memory 1700 may be classified into a plurality of modules according to their functions, such as a UI module 1710, a touch screen module 1720, and a notification module 1730. .

UI 모듈(1710)은, 애플리케이션 별로 전자 장치(1000)와 연동되는 특화된 UI, GUI 등을 제공할 수 있다. 터치 스크린 모듈(1720)은 사용자의 터치 스크린 상의 터치 제스처를 감지하고, 터치 제스처에 관한 정보를 프로세서(1300)로 전달할 수 있다. 일부 실시예에 따른 터치 스크린 모듈(1720)은 터치 코드를 인식하고 분석할 수 있다. 터치 스크린 모듈(1720)은 컨트롤러를 포함하는 별도의 하드웨어로 구성될 수도 있다.The UI module 1710 may provide a specialized UI, GUI, or the like that works with the electronic device 1000 for each application. The touch screen module 1720 may detect a user's touch gesture on the touch screen and transmit information about the touch gesture to the processor 1300 . The touch screen module 1720 according to some embodiments may recognize and analyze the touch code. The touch screen module 1720 may be configured as separate hardware including a controller.

알림 모듈(1730)은 전자 장치(1000)의 이벤트 발생을 알리기 위한 신호를 발생할 수 있다. 전자 장치(1000)에서 발생되는 이벤트의 예로는 호 신호 수신, 메시지 수신, 키 신호 입력, 일정 알림 등이 있다. 알림 모듈(1730)은 디스플레이부(1210)를 통해 비디오 신호 형태로 알림 신호를 출력할 수도 있고, 음향 출력부(1220)를 통해 오디오 신호 형태로 알림 신호를 출력할 수도 있고, 진동 모터(1230)를 통해 진동 신호 형태로 알림 신호를 출력할 수도 있다.The notification module 1730 may generate a signal for notifying occurrence of an event of the electronic device 1000 . Examples of events occurring in the electronic device 1000 include reception of a call signal, reception of a message, input of a key signal, and notification of a schedule. The notification module 1730 may output a notification signal in the form of a video signal through the display unit 1210, output a notification signal in the form of an audio signal through the sound output unit 1220, and may output a notification signal in the form of a vibration motor 1230. A notification signal may be output in the form of a vibration signal through

도 20은 일 실시 예에 따라 전자 장치와 연결되는 서버의 블록도이다.20 is a block diagram of a server connected to an electronic device according to an embodiment.

일 실시 예에 의하면, 서버(2000)는 프로세서(2300), 네트워크 인터페이스(2500) 및 데이터 베이스(2700)를 포함할 수 있다. 일 실시 예에 의하면 서버(2000) 내 프로세서(2300), 네트워크 인터페이스(2500) 및 데이터 베이스(2700) 구성은 전자 장치(1000)내 프로세서(1300), 네트워크 인터페이스(1500) 및 메모리(1700)의 구성에 각각 대응될 수 있다.According to one embodiment, the server 2000 may include a processor 2300, a network interface 2500, and a database 2700. According to an embodiment, the configuration of the processor 2300, the network interface 2500, and the database 2700 in the server 2000 includes the processor 1300, the network interface 1500, and the memory 1700 in the electronic device 1000. Each may correspond to a configuration.

일 실시 예에 의하면, 서버(2000)는 전자 장치(1000)로 CCTV 장치로부터 획득된 이미지들을 전송하거나, 지진파 정보등을 전송할 수도 있다. 또한, 서버(2000)는 전자 장치(1000)가 결정한 재난 정보(예컨대 화재 발생 여부, 지진 발생 여부, 화재 알람 정보, 지진 알람 정보, 화재 발생 규모, 화재 발생 위치, 지진 발생 규모, 지진 발생 위치 등에 대한 정보)를 획득하고, 획득된 재난 정보에 기초하여 시각적 또는 청각적 재난 컨텐츠를 생성할 수 있다. 서버(2000)는 생성된 재난 컨텐츠를 전자 장치(1000)로 다시 전송할 수도 있고, 전자 장치와 연결된 다른 전자 장치 또는 서버 장치로 전송할 수도 있다.According to an embodiment, the server 2000 may transmit images acquired from a CCTV device or seismic wave information to the electronic device 1000 . In addition, the server 2000 provides disaster information determined by the electronic device 1000 (for example, whether a fire has occurred, whether an earthquake has occurred, fire alarm information, earthquake alarm information, fire occurrence scale, fire occurrence location, earthquake occurrence magnitude, earthquake occurrence location, etc.) information) may be obtained, and visual or audible disaster content may be generated based on the obtained disaster information. The server 2000 may transmit the generated disaster content back to the electronic device 1000 or to another electronic device or server device connected to the electronic device.

도 21은 일 실시 예에 따른 전자 장치 및 서버가 서로 연동함으로써 재난을 감지하는 방법을 수행하는 과정을 설명하기 위한 도면이다.21 is a diagram for explaining a process of performing a method of detecting a disaster by interworking an electronic device and a server according to an embodiment.

본 개시에 따른 전자 장치(1000) 및 서버(2000)는 인공지능 모델을 기반으로, 서로 연동함으로써 재난을 감지하는 방법 중 적어도 일부를 수행할 수도 있다. 그러나 또 다른 실시 예에 의하면, 서버(2000)에 저장된 인공 지능 모델 또는 상기 인공 지능 모델에 대한 인스트럭션이 전자 장치에 저장됨으로써, 전자 장치(1000)가 단독으로 인공지능 모델을 이용하여 본 명세서에서 상술한 재난을 감지하는 방법을 수행할 수도 있음은 물론이다.The electronic device 1000 and the server 2000 according to the present disclosure may perform at least part of a disaster detection method by interoperating with each other based on an artificial intelligence model. However, according to another embodiment, the artificial intelligence model stored in the server 2000 or the instructions for the artificial intelligence model are stored in the electronic device, so that the electronic device 1000 independently uses the artificial intelligence model described above. Of course, a method of detecting a disaster may be performed.

일 실시 예에 의하면 본 개시에 따른 전자 장치(1000)는 인공 지능 모델을 이용하여 재난을 감지하는 방법을 수행할 수 있다. 예를 들어, 전자 장치(1000)는 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하고, 적어도 하나의 화재 지수에 기초하여 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 식별할 수 있다. 또한, 전자 장치(1000)는 이미지 분석 결과를 통해 화재 의심 영역으로 식별되는 횟수를 식별함과 함께, 감시 대상 영역을 촬영함으로써 획득한 이미지가 입력되면, 화재 발생 확률 정보를 출력하는 인공지능모델에 감시 대상 이미지를 입력함으로써 화재 발생 확률 정보를 획득할 수도 있다.According to an embodiment, the electronic device 1000 according to the present disclosure may perform a disaster detection method using an artificial intelligence model. For example, the electronic device 1000 may determine at least one fire index based on the image analysis result, and identify the number of times the fire candidate region is identified as a fire suspect region based on the at least one fire index. In addition, the electronic device 1000 identifies the number of times it is identified as a suspected fire area through an image analysis result, and when an image obtained by photographing a surveillance target area is input, an artificial intelligence model outputting fire occurrence probability information. Fire occurrence probability information may be obtained by inputting a monitoring target image.

전자 장치(1000)는 화재 지수에 기초하여 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수가 기 설정된 임계횟수 이상이고, 인공 지능 모델로부터 획득된 화재 발생 확률 정보(예컨대 확률 값)가 기 설정된 임계 확률 값 이상인 경우, 화재가 발생한 것으로 결정할 수 있다. 즉, 본 개시에 따른 전자 장치(1000)는 인공 지능 모델을 이용하여 감시 대상 영역에 화재 발생 여부를 더 정확하게 식별할 수 있다. 또한, 일 실시 예에 의하면, 본 개시에 따른 전자 장치(1000)는 지진파 정보가 입력되면, 지진 발생 확률을 출력하는 인공 지능 모델에, 지진파 정보를 입력하고, 인공 지능 모델로부터 획득되는 지진 발생 확률 정보 및 지진 지수에 기초하여 지진 발생 여부를 정확하게 결정할 수도 있다.The electronic device 1000 determines that the number of times that a fire candidate area is identified as a fire suspect area based on the fire index is equal to or greater than a preset threshold number of times, and fire occurrence probability information (eg, a probability value) obtained from an artificial intelligence model is a preset threshold probability value. If it is above the value, it can be determined that a fire has occurred. That is, the electronic device 1000 according to the present disclosure can more accurately identify whether or not a fire has occurred in an area to be monitored by using an artificial intelligence model. Also, according to an embodiment, when seismic wave information is input, the electronic device 1000 inputs the seismic wave information to an artificial intelligence model that outputs an earthquake occurrence probability, and the earthquake occurrence probability obtained from the artificial intelligence model. Based on the information and earthquake indices, it is also possible to accurately determine whether an earthquake has occurred.

일 실시 예에 의하면, 전자 장치(1000)가 이용하는 인공 지능 모델은 복수의 신경망 레이어들로 구성될 수 있다. 복수의 신경망 레이어들 각각은 복수의 가중치들(weight values)을 갖고 있으며, 이전(previous) 레이어의 연산 결과와 복수의 가중치들 간의 연산을 통해 신경망 연산을 수행한다. 복수의 신경망 레이어들이 갖고 있는 복수의 가중치들은 인공지능 모델의 학습 결과에 의해 최적화될 수 있다. 예를 들어, 학습 과정 동안 인공지능 모델에서 획득한 로스(loss) 값 또는 코스트(cost) 값이 감소 또는 최소화되도록 복수의 가중치들이 갱신될 수 있다. According to an embodiment, the artificial intelligence model used by the electronic device 1000 may be composed of a plurality of neural network layers. Each of the plurality of neural network layers has a plurality of weight values, and a neural network operation is performed through an operation between an operation result of a previous layer and a plurality of weight values. A plurality of weights possessed by a plurality of neural network layers may be optimized by a learning result of an artificial intelligence model. For example, a plurality of weights may be updated so that a loss value or a cost value obtained from an artificial intelligence model is reduced or minimized during a learning process.

일 실시 예에 의하면, 전자 장치(1000)가 이용하는 인공 지능 모델은 심층 신경망(DNN:Deep Neural Network)을 포함할 수 있으며, 예를 들어, CNN (Convolutional Neural Network), DNN (Deep Neural Network), RNN (Recurrent Neural Network), RBM (Restricted Boltzmann Machine), DBN (Deep Belief Network), BRDNN(Bidirectional Recurrent Deep Neural Network) 또는 심층 Q-네트워크 (Deep Q-Networks) 등이 있으나, 전술한 예에 한정되지 않는다. 또한, 일 실시 예에 의하면, 전자 장치(1000)가 이용하는 인공 지능 모델은 YOLO, DARKNET 중 적어도 하나를 포함할 수도 있다.According to an embodiment, the artificial intelligence model used by the electronic device 1000 may include a deep neural network (DNN), for example, a convolutional neural network (CNN), a deep neural network (DNN), Recurrent Neural Network (RNN), Restricted Boltzmann Machine (RBM), Deep Belief Network (DBN), Bidirectional Recurrent Deep Neural Network (BRDNN), or Deep Q-Networks, but is not limited to the above examples. don't Also, according to an embodiment, the artificial intelligence model used by the electronic device 1000 may include at least one of YOLO and DARKNET.

본 개시의 일 실시 예에 따라 전자 장치(1000)가 인공 지능 모델을 이용하여 재난을 감지하는 방법을 상술하였으나, 도 21에 도시된 바와 같이, 전자 장치(1000)는 서버(2000)와 연동함으로써, 인공 지능 모델을 이용하여 재난을 감지하는 방법 중 적어도 일부를 수행할 수 있음은 물론이다. Although the method for the electronic device 1000 to detect a disaster using an artificial intelligence model has been described above according to an embodiment of the present disclosure, as shown in FIG. 21 , the electronic device 1000 interworks with the server 2000 to Of course, at least some of the methods for detecting disasters using an artificial intelligence model can be performed.

예를 들어, S2102에서, 전자 장치(1000)는 감시 대상 영역 이미지를 촬영함으로써 감시 대상 영역에 대한 이미지를 획득할 수 있다. 전자 장치(1000)는 소정의 프레임 간격의 복수의 이미지들을 포함하는, 감시 대상에 대한 영상을 획득할 수도 있다.For example, in S2102, the electronic device 1000 may obtain an image of the monitoring target area by capturing an image of the monitoring target area. The electronic device 1000 may acquire an image of a monitoring target including a plurality of images at predetermined frame intervals.

S2104에서, 전자 장치(1000)는 획득된 감시 대상 영역의 이미지를 서버(2000)로 전송할 수 있다. 또 다른 실시 예에 의하면, 전자 장치(1000)는 RTSP Video Data를 서버(2000)로 전송할 수도 있다. S2106에서, 서버(2000)는 전자 장치에서 수신된 이미지를 전처리할 수 있다. 예를 들어, 서버(2000)는 전자 장치(1000)로부터 획득되는 이미지 또는 영상을 전처리함으로써 인공 지능 모델에 최적화된 포맷으로 변환할 수 있다. 보다 상세하게는, 서버(2000)는 전자 장치(1000)로부터 획득되는 이미지 또는 영상을 전처리함으로써, 이미지 타입 별로 학습된 각 인공 지능 모델에 최적화된 포맷으로 변환할 수도 있다.In S2104, the electronic device 1000 may transmit the acquired image of the surveillance target area to the server 2000. According to another embodiment, the electronic device 1000 may transmit RTSP video data to the server 2000. In S2106, the server 2000 may pre-process the image received from the electronic device. For example, the server 2000 may convert an image or video obtained from the electronic device 1000 into a format optimized for an artificial intelligence model by pre-processing the image or video. More specifically, the server 2000 may convert an image or video acquired from the electronic device 1000 into a format optimized for each artificial intelligence model learned for each image type by pre-processing the image or video.

S2108에서, 서버(2000)는 전처리된 이미지 또는 영상을 인공 지능 모델에 입력함으로써, 인공 지능 모델로부터 화재 발생 확률 정보를 획득할 수 있다. 일 실시 예에 의하면, 서버(2000)는 복수의 인공 지능 모델을 저장할 수 있다. 예를 들어, 서버(2000)는 전처리된 이미지 또는 영상의 타입을 식별하고, 식별된 타입에 기초하여 인공지능 모델들 중, 이미지 또는 영상의 타입에 최적화된 인공 지능 모델을 식별하며, 식별된 인공 지능 모델에 전처리된 이미지 또는 영상을 입력할 수도 있다. 일 실시 예에 의하면 서버(2000)는 이미지 또는 영상이 입력되면 화재 발생 확률 값을 출력하도록 인공 지능 모델을 미리 학습시킬 수 있고, 학습된 인공 지능 모델에 전자 장치로부터 획득되는 영상 또는 이미지를 입력할 수 있다.In S2108, the server 2000 may obtain fire occurrence probability information from the artificial intelligence model by inputting the preprocessed image or video to the artificial intelligence model. According to an embodiment, the server 2000 may store a plurality of artificial intelligence models. For example, the server 2000 identifies the preprocessed image or video type, identifies an artificial intelligence model optimized for the image or video type among artificial intelligence models based on the identified type, and identifies the artificial intelligence model. You can also input preprocessed images or videos to the intelligence model. According to an embodiment, the server 2000 may pre-train an artificial intelligence model to output a fire occurrence probability value when an image or video is input, and input an image or image obtained from an electronic device to the learned artificial intelligence model. can

S2110에서, 서버(2000)는 인공 지능 모델로부터 획득되는 화재 발생 확률 정보에 기초하여 알림 정보를 생성할 수 있다. 일 실시 예에 의하면, 서버(2000)는 인공 지능 모델로부터 출력되는 화재 발생 확률 값이 소정의 임계치 이상인 경우, 알림 정보를 생성할 수도 있다. S2112에서, 서버(2000)는 인공 지능 모델로부터 출력된 출력 정보(예컨대 화재 발생 확률 정보) 또는 알림 정보 중 적어도 하나를 전자 장치(1000)로 전송할 수 있다.In S2110, the server 2000 may generate notification information based on fire occurrence probability information obtained from the artificial intelligence model. According to an embodiment, the server 2000 may generate notification information when a fire occurrence probability value output from the artificial intelligence model is equal to or greater than a predetermined threshold value. In S2112, the server 2000 may transmit at least one of output information (eg, fire probability information) output from the artificial intelligence model or notification information to the electronic device 1000.

S2114에서, 전자 장치(1000)는 서버(2000)로부터 수신된 화재 발생 확률 정보 및 알림 정보를 저장할 수 있다. 또 다른 실시 예에 의하면, 전자 장치(1000)는 화재 발생 확률 정보를 서버(2000)로부터 획득하고, 획득된 화재 발생 확률 정보가 소정의 임계 확률 값 이상인 경우, 스스로 알림 정보를 생성할 수도 있다. S2116에서, 전자 장치(1000)는 감시 대상 이미지 분석 결과에 기초하여 결정된 화재 지수, 서버로부터 수신된 화재 발생 확률 정보 또는 알림 정보 중 적어도 하나에 기초하여 화재 발생 여부를 결정할 수 있다. 예를 들어, 전자 장치(1000)는 화재 지수에 기초하여 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수가 임계치 이상이고, 서버로부터 수신된 화재 발생 확률 정보가 기 설정된 임계 확률 이상인 경우에, 화재가 발생한 것으로 결정할 수 있다.In S2114, the electronic device 1000 may store fire occurrence probability information and notification information received from the server 2000. According to another embodiment, the electronic device 1000 may obtain fire occurrence probability information from the server 2000 and generate notification information by itself when the obtained fire occurrence probability information is equal to or greater than a predetermined threshold probability value. In S2116, the electronic device 1000 may determine whether a fire has occurred based on at least one of the fire index determined based on the analysis result of the image to be monitored, fire occurrence probability information received from the server, and notification information. For example, the electronic device 1000 detects a fire when the number of times that the fire candidate area is identified as a fire suspect area based on the fire index is greater than or equal to a threshold and the fire occurrence probability information received from the server is greater than or equal to a predetermined threshold probability. can be determined to have occurred.

도 22는 또 다른 실시 예에 따른 전자 장치 및 서버가 서로 연동함으로써 재난을 감지하는 방법을 수행하는 과정을 설명하기 위한 도면이다.22 is a diagram for explaining a process of performing a method of detecting a disaster by interworking an electronic device and a server according to another embodiment.

도 22를 참조하면 전자 장치(1000)는 FireWatch Camera에 대응될 수 있다. 전자 장치(1000)는 카메라를 이용하여 감시 대상 영역에 대한 입력 비디오(2210)를 획득할 수 있다. S2202에서, 전자 장치(1000)는 도 1 내지 도 20에서 상술한 화재 발생 여부를 결정하는 방법을 수행함으로써 화재 발생 여부에 대한 제1 결과 정보를 결정할 수 있다. S2204에서, 전자 장치(1000)는 감시 대상 영역을 촬영함으로써 획득되는 영상 정보를 비디오 스트리밍할 수 있다. S2206에서, 전자 장치(1000)는 서버(2000)로부터 서버가 인공 지능 모델을 이용하여 판단한 화재 발생 여부에 대한 외부 입력 이벤트 정보를 제2 결과 정보로 획득할 수 있다. S2208에서, 전자 장치(1000)는 제1 결과 정보 및 제2 결과 정보에 기초하여 경보를 발생시킬 수 있다. 예를 들어, 전자 장치(1000)는 제1 결과 정보가, 화재 후보 영역이 화재 의심 영역으로 식별된 횟수가 임계치 이상임을 나타내고, 제2 결과 정보가 소정의 임계 확률 값 이상인 것으로 식별되는 경우 경보를 발생시킬 수도 있다.Referring to FIG. 22 , the electronic device 1000 may correspond to a FireWatch Camera. The electronic device 1000 may obtain an input video 2210 for a surveillance target area using a camera. In S2202, the electronic device 1000 may determine first result information about whether a fire has occurred by performing the method for determining whether a fire has occurred described above with reference to FIGS. 1 to 20 . In S2204, the electronic device 1000 may video stream image information obtained by photographing the area to be monitored. In S2206, the electronic device 1000 may obtain, as second result information, external input event information on whether or not a fire has occurred, determined by the server using an artificial intelligence model, from the server 2000 . In S2208, the electronic device 1000 may generate an alert based on the first result information and the second result information. For example, the electronic device 1000 issues an alarm when the first result information indicates that the number of times the fire candidate area is identified as a fire suspect area is greater than or equal to a threshold value and the second result information is identified as being greater than or equal to a predetermined threshold probability value. may cause

본 개시에 따른 전자 장치(1000)는 감시 대상 영역을 촬영함으로써 획득되는 입력 비디오 데이터(2210)를 RTSP 비디오 데이터(2220) 형식으로 서버(2000)로 전송할 수 있고, 서버(2000)는 전자 장치(1000)에서 획득된 RTSP 비디오 데이터를 인공지능 모델에 입력함으로써 서버(2000)에서 판단한 알람 이벤트를 생성할 수 있다.The electronic device 1000 according to the present disclosure may transmit input video data 2210 obtained by photographing the area to be monitored in the form of RTSP video data 2220 to the server 2000, and the server 2000 may transmit the electronic device ( An alarm event determined by the server 2000 may be generated by inputting the RTSP video data obtained in 1000) to the artificial intelligence model.

예를 들어, S2210에서, 서버(2000)는 전자 장치(1000)에서 획득된 RTSP 비디오 데이터(2220)를 프레임 처리함으로써 인공 지능 모델의 타입에 맞는 포맷을 가지는 이미지 또는 영상을 생성할 수 있다. S2212에서, 서버(2000)는 전처리된 이미지 또는 영상을 학습된 딥러닝 신경망 모델에 입력할 수 있다. S2214에서, 서버(2000)는 딥러닝 신경망 모델의 출력 값에 기초하여, 이미지 또는 영상에서 화재가 발생하였는지 여부를 추론할 수 있다. S2216에서, 서버(2000)는 신경망 모델의 출력 값에 기초하여 추론된 결과 값이 화재가 발생한 상황을 나타내거나, 소정의 임계 확률 이상의 화재 발생 확률을 나타내는 경우 알람 이벤트 데이터를 생성하고, 생성된 알람 이벤트 데이터(2230)를 전자 장치(1000)로 전송할 수 있다. For example, in S2210, the server 2000 may generate an image or video having a format suitable for the type of artificial intelligence model by frame-processing the RTSP video data 2220 obtained from the electronic device 1000. In S2212, the server 2000 may input the preprocessed image or video to the trained deep learning neural network model. In S2214, the server 2000 may infer whether a fire has occurred in the image or video based on the output value of the deep learning neural network model. In S2216, the server 2000 generates alarm event data when the result value deduced based on the output value of the neural network model indicates a situation in which a fire has occurred or indicates a probability of a fire occurring greater than or equal to a predetermined threshold probability, and generates alarm event data. Event data 2230 may be transmitted to the electronic device 1000 .

도 23은 일 실시 예에 따른 전자 장치가 인공 지능 모델을 학습시키기 위한 학습 데이터를 생성하는 과정을 설명하기 위한 도면이다.23 is a diagram for explaining a process of generating learning data for learning an artificial intelligence model by an electronic device according to an embodiment.

본 개시에 따른 전자 장치(1000)는 이미지 또는 영상에서 화재 발생 확률 값을 출력하는 인공 지능 모델을 학습시킬 수 있다. 또한, 일 실시 예에 의하면, 전자 장치(1000)는 영상의 타입 별로 인공 지능 모델을 학습시킬 수 있다. 또한, 전자 장치(1000)는 인공 지능 모델을 학습시키기 위한 학습 데이터를 소정의 타입 별로 생성할 수도 있다.The electronic device 1000 according to the present disclosure may train an artificial intelligence model that outputs a fire occurrence probability value in an image or video. Also, according to an embodiment, the electronic device 1000 may train an artificial intelligence model for each type of image. Also, the electronic device 1000 may generate learning data for each predetermined type for learning the artificial intelligence model.

예를 들어, 전자 장치(1000)는 감시 대상 영역을 촬영함으로써 인공 지능 모델을 학습시키기 위한 학습 비디오 데이터(2302)를 획득할 수 있다. 또 다른 실시 예에 의하면, 전자 장치(1000)는 서버(2000) 또는 기 저장된 데이터 베이스로부터 인공지능 모델 학습을 위한 학습 비디오 데이터(2302)를 획득할 수도 있다. 전자 장치(1000)는 학습 비디오 데이터(2302)를 전처리함으로써, 소정의 영상 타입 별 학습 데이터(2340)를 생성할 수 있다.For example, the electronic device 1000 may acquire training video data 2302 for training an artificial intelligence model by capturing a surveillance target area. According to another embodiment, the electronic device 1000 may obtain training video data 2302 for AI model learning from the server 2000 or a pre-stored database. The electronic device 1000 may generate learning data 2340 for each predetermined video type by pre-processing the training video data 2302 .

예를 들어, 전자 장치(1000)는 학습 비디오 데이터(2302)를 전처리함으로써, 하이패스 필터 영상(2312), 칼라(RGB) 영상(2314), 흑백 영상(2316), 엣지 영상(2318), 모션 영상(2320) 또는 밝기 조절 영상(2322) 중 적어도 하나를 생성할 수 있다. 일 실시 예에 의하면, 모션 영상(2320)은 이미지 또는 영상 내 벡터 및 움직임량을 그레이스케일로 표현한 영상일 수 있다. 일 실시 예에 의하면, 밝기 조절 영상(2322)은 영상 밝기가 조절된 영상일 수 있다. 전자 장치(1000)는 학습 비디오 데이터(2302)를 전처리함으로써 생성된 타입별 학습 데이터 각각 또는 타입 별로 생성된 학습 데이터를 조합함으로써 조합 학습 데이터를 생성할 수 있고, 타입 별로 생성된 학습 데이터 또는 조합 학습 데이터에 기초하여 인공지능 모델을 학습시킬 수 있다. 본 개시에 따른 전자 장치(1000)는 학습 데이터에 기초하여, 인공 지능 모델 내 노드 및 레이어들의 가중치(Weight)를 수정 및 갱신함으로써 인공 지능 모델을 학습시킬 수 있다.For example, the electronic device 1000 pre-processes the learning video data 2302 to generate a high-pass filter image 2312, a color (RGB) image 2314, a black and white image 2316, an edge image 2318, and motion At least one of the image 2320 and the brightness control image 2322 may be generated. According to an embodiment, the motion image 2320 may be an image or an image in which vectors and motions in an image are expressed in gray scale. According to an embodiment, the brightness control image 2322 may be an image for which the image brightness is adjusted. The electronic device 1000 may generate combined learning data by combining each type of learning data generated by preprocessing the learning video data 2302 or the learning data generated by type, and the learning data generated by type or combined learning. AI models can be trained based on data. The electronic device 1000 according to the present disclosure may learn the artificial intelligence model by modifying and updating weights of nodes and layers in the artificial intelligence model based on learning data.

일 실시 예에 의하면, 전자 장치(1000)는 학습 비디오 데이터(2302) 중 사람의 판단에 의해 선별된 비디오 데이터를 이용하여 인공 지능 모델을 학습시킬 수 있다. 또 다른 실시 예에 의하면, 전자 장치(1000)는 도 1 내지 도 20에서 상술한 화재 발생 여부 판단 알고리즘에 기초하여 화재 발생 여부를 판단한 결과, 화재 발생이 아님에도 화재가 발생한 것으로 식별된 이미지 또는 영상은 학습 비디오 데이터에서 제거할 수 있다. 전자 장치(1000)는 도 1 내지 도 20에서 기술된 화재 발생 알고리즘에서 화재 발생 여부가 잘못 판단되는 이미지 또는 영상을 학습 데이터에서 제거하고 남은 학습 데이터에 기초하여 인공 지능 모델을 학습시킴으로써, 인공 지능 모델의 정확도를 더 향상시킬 수 있다.According to an embodiment, the electronic device 1000 may train an artificial intelligence model using video data selected by human judgment among the training video data 2302 . According to another embodiment, the electronic device 1000 determines whether a fire has occurred based on the fire occurrence determination algorithm described above with reference to FIGS. can be removed from the training video data. The electronic device 1000 removes an image or video in which fire occurrence is incorrectly determined in the fire occurrence algorithm described in FIGS. 1 to 20 from the training data and trains an artificial intelligence model based on the remaining training data, so that the artificial intelligence model accuracy can be further improved.

도 24는 일 실시 예에 따른 전자 장치가 인공 지능 모델을 이용하여 알람 이벤트를 생성하는 과정을 설명하기 위한 도면이다.24 is a diagram for explaining a process of generating an alarm event by using an artificial intelligence model by an electronic device according to an embodiment.

일 실시 예에 따른 전자 장치(1000)가 감시 대상 영역을 촬영함으로써 실시간 영상(2402)을 획득하고, 실시간 영상을 전처리한 후 생성되는 전처리 영상을 신경망 모델에 입력함으로써 알람 이벤트를 생성하는 과정을 설명하기로 한다.A process of generating an alarm event by obtaining a real-time image 2402 by capturing a region to be monitored by the electronic device 1000 according to an embodiment, pre-processing the real-time image, and then inputting the generated pre-processed image to a neural network model will be described. I'm going to do it.

S2440에서, 전자 장치(1000)가 실시간 영상(2402)을 전처리함으로써 생성된 전처리 영상을 생성할 수 있다. 예를 들어, 전자 장치(1000)는 실시간 영상(2402)을 전처리함으로써 하이패스 필터 영상(2412), RGB 영상(2414), 흑백 영상(2416), 엣지 영상(2418), 모션 영상(2428) 또는 밝기 조절 영상(2422)을 생성할 수 있다. S2442에서, 전자 장치(1000)는 전처리된 영상을 딥러닝 신경망 모델(2430)에 입력함으로써 추련 결과를 모니터링할 수 있다.In S2440, the electronic device 1000 may generate a pre-processed image generated by pre-processing the real-time image 2402. For example, the electronic device 1000 pre-processes the real-time image 2402 to generate a high-pass filter image 2412, an RGB image 2414, a black and white image 2416, an edge image 2418, a motion image 2428, or A brightness adjustment image 2422 may be generated. In S2442, the electronic device 1000 may monitor the estimation result by inputting the preprocessed image to the deep learning neural network model 2430.

S2444에서, 전자 장치(1000)는 인공지능 모델(예컨대 신경망 모델)의 추론 결과를 미리 설정된 시간 동안 누적한 결과 값의 평균 정확도가 소정의 임계값 이상인지 여부를 결정할 수 있다. 일 실시 예에 의하면, 전자 장치(1000)는 인공 지능 모델의 추론 결과를 1 내지 10초 동안 누적하여 평균 정확도가 임계값 이상인지 여부를 결정할 수 있다. S2446에서, 전자 장치(1000)는 누적 평균 정확도가 임계값 이상으로 식별되는 경우, 알람 이벤트를 생성할 수 있다.In S2444, the electronic device 1000 may determine whether an average accuracy of a value obtained by accumulating inference results of an artificial intelligence model (eg, a neural network model) for a preset time period is equal to or greater than a predetermined threshold value. According to an embodiment, the electronic device 1000 may accumulate inference results of the artificial intelligence model for 1 to 10 seconds to determine whether the average accuracy is greater than or equal to a threshold value. In S2446, the electronic device 1000 may generate an alarm event when the cumulative average accuracy is identified as greater than or equal to a threshold value.

일 실시예에 따른 전자 장치가 재난을 감지하는 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다.A method for detecting a disaster by an electronic device according to an embodiment may be implemented in the form of program instructions that can be executed by various computer means and recorded in a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the medium may be those specially designed and configured for the present invention or those known and usable to those skilled in computer software.

또한, 전자 장치가 재난을 감지하는 방법을 수행하도록 하는 프로그램이 저장된 기록 매체를 포함하는 컴퓨터 프로그램 장치가 제공될 수 있다. In addition, a computer program device including a recording medium storing a program for causing an electronic device to perform a method of detecting a disaster may be provided.

컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다.Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical media such as CD-ROMs and DVDs, and magnetic media such as floptical disks. - includes hardware devices specially configured to store and execute program instructions, such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine language codes such as those produced by a compiler.

일부 실시예는 컴퓨터에 의해 실행되는 프로그램 모듈과 같은 컴퓨터에 의해 실행 가능한 명령어를 포함하는 기록 매체의 형태로도 구현될 수 있다. 컴퓨터 판독 가능 매체는 컴퓨터에 의해 액세스될 수 있는 임의의 가용 매체일 수 있고, 휘발성 및 비휘발성 매체, 분리형 및 비분리형 매체를 모두 포함한다. 또한, 컴퓨터 판독가능 매체는 컴퓨터 저장 매체 및 통신 매체를 모두 포함할 수 있다. 컴퓨터 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보의 저장을 위한 임의의 방법 또는 기술로 구현된 휘발성 및 비휘발성, 분리형 및 비분리형 매체를 모두 포함한다. 통신 매체는 전형적으로 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈, 또는 반송파와 같은 변조된 데이터 신호의 기타 데이터, 또는 기타 전송 메커니즘을 포함하며, 임의의 정보 전달 매체를 포함한다. 또한, 일부 실시예는 컴퓨터에 의해 실행되는 컴퓨터 프로그램과 같은 컴퓨터에 의해 실행 가능한 명령어를 포함하는 컴퓨터 프로그램 또는 컴퓨터 프로그램 제품(computer program product)으로도 구현될 수 있다.Some embodiments may be implemented in the form of a recording medium including instructions executable by a computer, such as program modules executed by a computer. Computer readable media can be any available media that can be accessed by a computer and includes both volatile and nonvolatile media, removable and non-removable media. Also, computer readable media may include both computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave, or other transport mechanism, and includes any information delivery media. Also, some embodiments may be implemented as a computer program or computer program product including instructions executable by a computer, such as a computer program executed by a computer.

이상에서 본 발명의 실시예에 대하여 상세하게 설명하였지만 본 발명의 권리범위는 이에 한정되는 것은 아니고 다음의 청구범위에서 정의하고 있는 본 발명의 기본 개념을 이용한 당업자의 여러 변형 및 개량 형태 또한 본 발명의 권리범위에 속한다.Although the embodiments of the present invention have been described in detail above, the scope of the present invention is not limited thereto, and various modifications and improvements made by those skilled in the art using the basic concept of the present invention defined in the following claims are also included in the scope of the present invention. fall within the scope of the right

Claims (20)

전자 장치가 재난을 감지하는 방법에 있어서,
감시 대상 영역을 촬영함으로써 이미지를 획득하는 단계;
적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하는 단계;
상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하는 단계;
이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하는 단계;
상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계;
상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하는 단계; 및
상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는 단계; 를 포함하는, 방법.
In the method for an electronic device to detect a disaster,
acquiring an image by photographing a region to be monitored;
obtaining seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor;
determining at least one fire index based on the obtained image analysis result;
obtaining a fire occurrence probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether a fire occurs when an image is input;
determining whether a fire occurs based on the determined fire index and the fire occurrence probability value;
determining at least one earthquake index based on the seismic wave information, and determining whether an earthquake has occurred based on the determined earthquake index; and
outputting notification information according to whether the fire or the earthquake has occurred; Including, method.
제1항에 있어서, 상기 이미지를 획득하는 단계는
상기 감시 대상 영역을 촬영하는 카메라 장치를 통하여 기 설정된 프레임 간격을 가지는 복수의 프레임 이미지들을 획득하는 단계; 를 포함하는, 방법.
The method of claim 1, wherein acquiring the image comprises:
obtaining a plurality of frame images having a preset frame interval through a camera device that captures the surveillance target area; Including, method.
제1항에 있어서, 상기 지진파 정보를 획득하는 단계는
상기 적어도 하나의 센서 중 3축 가속도 센서로부터 3축 가속도 정보를 획득하는 단계; 및
상기 적어도 하나의 센서 중 지자기 센서로부터 지자기 정보를 획득하는 단계; 를 포함하는, 방법.
The method of claim 1, wherein acquiring the seismic wave information comprises:
obtaining 3-axis acceleration information from a 3-axis acceleration sensor among the at least one sensor; and
obtaining geomagnetic information from a geomagnetic sensor among the at least one sensor; Including, method.
제3항에 있어서, 상기 지진 발생 여부를 결정하는 단계는
상기 지자기 정보에 기초하여 상기 전자 장치가 설치된 위치에서 지자기 방향을 식별하는 단계;
상기 3축 가속도 정보에 기초하여 3축 가속도 방향을 식별하는 단계;
상기 3축 가속도 방향을 상기 식별된 지자기 방향에 매칭시키는 단계;
상기 지자기 방향에 매칭된 상기 3축 가속도 방향을 기준으로, 상기 3축 가속도 정보 내 가속도의 크기를 모니터링함으로써 최대 지반 가속도를 결정하는 단계; 및
상기 지자기 방향에 매칭된 3축 가속도 방향 및 상기 결정된 최대 지반 가속도에 기초하여 지진 발생 여부를 결정하는 단계; 를 포함하는, 방법.
The method of claim 3, wherein the step of determining whether an earthquake has occurred
identifying a direction of the geomagnetism at a location where the electronic device is installed based on the geomagnetism information;
identifying a 3-axis acceleration direction based on the 3-axis acceleration information;
matching the 3-axis acceleration direction to the identified geomagnetic direction;
determining a maximum ground acceleration by monitoring the magnitude of acceleration in the 3-axis acceleration information based on the 3-axis acceleration direction matched to the geomagnetic direction; and
determining whether an earthquake has occurred based on the 3-axis acceleration direction matched to the geomagnetic direction and the determined maximum ground acceleration; Including, method.
제4항에 있어서, 상기 지진 발생 여부를 결정하는 단계는
상기 최대 지반 가속도에 기초하여 진도를 결정하는 단계;
상기 결정된 진도가 기 설정된 임계 진도 이상인 경우, 상기 지자기 방향에 매칭된 3축 가속도 방향을 기준으로, 지진이 발생한 것으로 결정하는 단계; 를 포함하는, 방법.
The method of claim 4, wherein the step of determining whether the earthquake has occurred
determining a seismic intensity based on the maximum ground acceleration;
determining that an earthquake has occurred based on a three-axis acceleration direction matched to the geomagnetic direction when the determined seismic intensity is greater than or equal to a preset threshold seismic intensity; Including, method.
제5항에 있어서, 상기 알림 정보를 출력하는 단계는
상기 지진이 발생한 것으로 결정되는 경우, 상기 3축 가속도 정보에 기초하여 PS시를 결정하는 단계;
상기 결정된 PS시에 기초하여 진앙지를 결정하는 단계;
상기 전자 장치와 연결된 2이상의 다른 전자 장치로부터 진앙지 정보를 획득하는 단계;
상기 결정된 진앙지 및 상기 다른 전자 장치로부터 획득된 진앙지 정보에 기초하여, 지진이 발생한 진원지 정보를 결정하는 단계; 및
상기 결정된 진원지 정보 및 상기 결정된 진도에 관한 정보를 상기 알림 정보로써 출력하는 단계; 를 포함하는, 방법.
The method of claim 5, wherein outputting the notification information
determining a PS time based on the three-axis acceleration information when it is determined that the earthquake has occurred;
determining an epicenter based on the determined PS time;
obtaining epicenter information from two or more other electronic devices connected to the electronic device;
determining information on an epicenter where an earthquake occurred based on the determined epicenter and epicenter information obtained from the other electronic device; and
outputting the information on the determined epicenter and the information on the determined progress as the notification information; Including, method.
제5항에 있어서, 상기 지진 발생 여부를 결정하는 단계는
상기 이미지 및 상기 이미지 전후의 프레임에서 나타나는 이미지 내 기준 객체의 위치 변화에 기초하여 적어도 하나의 벡터를 결정하는 단계;
상기 적어도 하나의 벡터의 방향 및 크기 변화를 식별하는 단계; 및
상기 식별된 적어도 하나의 벡터의 방향, 크기 변화 및 상기 결정된 최대 지반 가속도에 기초하여 상기 지진 발생 여부를 결정하는 단계; 를 포함하는, 방법.
The method of claim 5, wherein the step of determining whether an earthquake has occurred
determining at least one vector based on a change in position of a reference object in the image and an image appearing in frames before and after the image;
identifying changes in direction and magnitude of the at least one vector; and
determining whether the earthquake occurred based on the direction and magnitude change of the identified at least one vector and the determined maximum ground acceleration; Including, method.
제2항에 있어서, 상기 화재 발생 여부를 결정하는 단계는
상기 획득된 이미지 내 픽셀들의 RGB 데이터를 HSL 데이터로 변환하는 단계;
상기 HSL 데이터에 기초하여 상기 이미지 내 화재 후보 영역을 결정하는 단계;
상기 결정된 화재 후보 영역에 대하여 상기 적어도 하나의 화재 지수를 결정하는 단계;
상기 결정된 적어도 하나의 화재 지수에 기초하여, 상기 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 식별하는 단계; 및
상기 식별된 횟수가 기 설정된 임계치 이상이고, 상기 인공 지능 모델에서 출력된 화재 발생 확률 값이 기 설정된 임계 확률 값 이상인 경우, 화재가 발생한 것으로 결정하는 단계; 를 포함하는, 방법.
The method of claim 2, wherein the step of determining whether the fire occurs
converting RGB data of pixels in the obtained image into HSL data;
determining a fire candidate region in the image based on the HSL data;
determining the at least one fire index for the determined fire candidate area;
identifying the number of times the fire candidate area is identified as a fire suspect area based on the determined at least one fire index; and
determining that a fire has occurred if the number of times the identification is equal to or greater than a preset threshold and a fire occurrence probability value output from the artificial intelligence model is equal to or greater than a preset threshold probability value; Including, method.
제8항에 있어서, 상기 화재 후보 영역을 결정하는 단계는
상기 HSL 데이터 내 색상(Hue), 채도(Saturation) 및 명도(Lightness) 값 모두가 소정의 임계치 이상인 픽셀들을 포함하는 제1 후보 영역을 결정하는 단계;
상기 HSL 데이터 내 상기 색상, 상기 채도 또는 상기 명도 중 적어도 하나가 상기 소정의 임계치 이상인 픽셀들을 식별하는 단계;
상기 식별된 픽셀들 주변의 픽셀들의 색상, 채도 및 명도 값 모두가 상기 소정의 임계치 이상인 경우, 상기 색상, 상기 채도 또는 상기 명도 중 적어도 하나가 상기 소정의 임계치 이상인 픽셀들 및 상기 제1 후보 영역에 포함된 픽셀들을 포함하는 제2 후보 영역을 결정하는 단계; 및
상기 제2 후보 영역을 상기 화재 후보 영역으로 결정하는 단계; 를 포함하는, 방법.
9. The method of claim 8, wherein determining the fire candidate area comprises:
determining a first candidate region including pixels having all of hue, saturation, and lightness values within the HSL data equal to or greater than a predetermined threshold value;
identifying pixels having at least one of the color, saturation, and brightness within the HSL data equal to or greater than the predetermined threshold value;
When all of the hue, saturation, and brightness values of pixels around the identified pixels are equal to or greater than the predetermined threshold, pixels having at least one of the hue, saturation, or brightness equal to or greater than the predetermined threshold and the first candidate region determining a second candidate region including included pixels; and
determining the second candidate area as the fire candidate area; Including, method.
제8항에 있어서, 상기 적어도 하나의 화재 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 중 인접하는 3개의 프레임들 내 화재 후보 영역에 대하여 하이패스 필터링을 수행함으로써 제로 크로스 카운트 지수를 결정하는 단계;
상기 제로 크로스 카운트 지수 및 소정의 임계치를 비교함으로써 상기 화재 후보 영역 별 픽셀 별로 하이패스 필터 변수를 결정하는 단계;
상기 하이패스 필터 변수가 0이 아닌 픽셀의 수의 프레임 이미지 별 변화량에 관한 하이패스 필터 면적 지수를 결정하는 단계; 를 포함하는, 방법.
9. The method of claim 8, wherein determining the at least one fire index comprises:
determining a zero cross count index by performing high-pass filtering on a fire candidate region in three adjacent frames among the plurality of frame images;
determining a high-pass filter variable for each pixel of the fire candidate region by comparing the zero cross count index with a predetermined threshold;
determining a high-pass filter area index related to a variation amount for each frame image of the number of pixels in which the high-pass filter parameter is not 0; Including, method.
제10항에 있어서, 상기 적어도 하나의 화재 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 내 화재 후보 영역의 주기성에 관한 주기성 지수를 결정하는 단계;
상기 복수의 프레임 이미지들 내 픽셀들 중 픽셀 값 변이가 큰 픽셀들의 수의 변화 정도에 관한 움직임 영역 지수를 결정하는 단계; 및
상기 복수의 프레임 이미지들 내에서, 특정 픽셀의 변이 값이 소정의 임계치 이상으로 나타나는 횟수가 기 설정된 횟수 이상인 픽셀들의 위치에 관한 무빙 오브젝트 지수를 결정하는 단계; 를 더 포함하는, 방법.
11. The method of claim 10, wherein determining the at least one fire index comprises:
determining a periodicity index related to periodicity of fire candidate regions in the plurality of frame images;
determining a motion region index related to a degree of change in the number of pixels having a large pixel value variation among pixels in the plurality of frame images; and
determining moving object indices related to positions of pixels whose disparity value of a specific pixel exceeds a predetermined threshold value within the plurality of frame images; Further comprising a method.
제10항에 있어서, 상기 제로 크로스 카운트 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 중 연속하는 N-1 프레임, N프레임, N+1 프레임 각각에 대해 결정되는 -0.25, 0.5 및 -0.25 가중치에 기초하여 프레임별 픽셀 값들을 가중합함으로써 하이패스 필터링을 수행하고, 하이패스 필터링 수행 결과에 따른 플리커 변수를 픽셀 별로 결정하는 단계;
상기 결정된 플리커 변수 및 소정의 임계치를 비교함으로써, 픽셀 별로 하이패스 필터 변수 값을 결정하는 단계; 및
상기 복수의 프레임 이미지 별 상기 하이패스 필터 변수 값에 기초하여 상기 제로크로스 카운트 지수를 결정하는 단계; 를 포함하는, 방법.
11. The method of claim 10, wherein determining the zero cross count index comprises:
High-pass filtering is performed by weighting pixel values for each frame based on -0.25, 0.5, and -0.25 weights determined for successive N-1 frames, N frames, and N+1 frames among the plurality of frame images, respectively. and determining a flicker variable for each pixel according to a result of high-pass filtering;
determining a high-pass filter variable value for each pixel by comparing the determined flicker variable with a predetermined threshold value; and
determining the zero-cross count index based on the high-pass filter variable value for each of the plurality of frame images; Including, method.
제10항에 있어서, 상기 하이패스 필터 면적 지수를 결정하는 단계는
상기 복수의 프레임 이미지 별, 상기 하이패스 필터 변수가 0이 아닌 픽셀의 수를 카운트 하는 단계;
상기 복수의 프레임 이미지 별 카운트된, 하이패스 필터 변수가 0이 아닌 픽셀의 수의 최소값, 표준 편차 및 평균을 결정하는 단계; 및
상기 카운트된 하이패스 필터 변수가 아닌 픽셀의 수의 최소값, 표준편차 또는 평균 중 적어도 하나를 이용하여 상기 하이패스 필터 면적 지수를 결정하는 단계; 를 포함하는, 방법.
11. The method of claim 10, wherein determining the high pass filter area index comprises:
counting the number of pixels for which the high-pass filter parameter is not 0 for each of the plurality of frame images;
determining a minimum value, a standard deviation, and an average of the number of pixels for which the high-pass filter parameter is not 0, counted for each of the plurality of frame images; and
determining the high-pass filter area index using at least one of a minimum value, a standard deviation, and an average of the number of pixels that are not the counted high-pass filter parameters; Including, method.
제11항에 있어서, 상기 주기성 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 중 기준 프레임을 결정하는 단계;
상기 기준 프레임 및 상기 복수의 프레임 이미지들 중 하나의 프레임에 대해 서로 다른 마스크 연산을 수행함으로써, 상기 복수의 프레임 이미지들 내 픽셀 별 차이 변수를 결정하는 단계;
상기 결정된 복수의 프레임 이미지들 내 픽셀들 각각에 대한 차이 변수와 소정의 임계치를 비교함으로써, 상기 픽셀 별로 결정된 차이 변수를 양자화 하는 단계; 및
상기 양자화된 차이 변수 값이 소정의 양자 값과 일치하지 않는 프레임 이미지 별 픽셀의 수의 표준편차 및 평균에 기초하여 상기 주기성 지수를 결정하는 단계; 를 포함하는, 방법.
12. The method of claim 11, wherein determining the periodicity index comprises:
determining a reference frame among the plurality of frame images;
determining a difference variable for each pixel in the plurality of frame images by performing different mask operations on the reference frame and one frame among the plurality of frame images;
quantizing the determined difference variable for each pixel by comparing the difference variable for each of the pixels in the determined plurality of frame images with a predetermined threshold value; and
determining the periodicity index based on a standard deviation and an average of the number of pixels of each frame image in which the quantized difference variable value does not match a predetermined quantum value; Including, method.
제11항에 있어서, 상기 움직임 영역 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 내 픽셀들 중 픽셀 값 변이를 결정하는 단계;
상기 결정된 변이가 기 설정된 임계치 이상인 복수의 프레임 이미지들 내 픽셀들을 움직임 픽셀로 식별하는 단계; 및
상기 복수의 프레임 이미지들 각각에서 식별되는 움직임 픽셀들의 수의 평균 및 표준편차에 기초하여 움직임 영역 지수를 결정하는 단계; 를 포함하는, 방법.
12. The method of claim 11, wherein determining the motion region index comprises:
determining a pixel value variance among pixels in the plurality of frame images;
identifying pixels in a plurality of frame images having the determined disparity greater than or equal to a preset threshold as motion pixels; and
determining a motion region index based on an average and a standard deviation of the number of motion pixels identified in each of the plurality of frame images; Including, method.
제11항에 있어서, 상기 무빙 오브젝트 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 내에서, 대응되는 위치의 특정 픽셀들의 변이 값이 소정의 임계치 이상으로 식별되는 횟수를 식별하는 단계; 및
상기 변이 값이 소정의 임계치 이상으로 식별된 횟수가 기 설정된 횟수 이상인 픽셀들의 위치 정보를 상기 무빙 오브젝트 지수로 결정하는 단계; 를 포함하는, 방법.
12. The method of claim 11, wherein determining the moving object index comprises:
identifying the number of times that disparity values of specific pixels at corresponding positions in the plurality of frame images are identified as being equal to or greater than a predetermined threshold value; and
determining location information of pixels for which the number of times the disparity value is equal to or greater than a predetermined threshold is equal to or greater than a predetermined number as the moving object index; Including, method.
제11항에 있어서, 상기 화재가 발생한 것으로 결정하는 단계는
상기 결정된 제로 크로스 카운트 지수, 상기 하이패스 필터 면적 지수, 상기 주기성 지수, 상기 움직임 영역 지수 또는 상기 무빙 오브젝트 지수 중 적어도 하나에 대한 지수 조건 만족 여부를 식별하는 단계;
상기 적어도 하나의 화재 지수들 중 하나라도 지수 조건을 만족하지 않는 경우, 상기 화재 후보 영역이 상기 화재 의심 영역으로 식별되는 횟수를 초기화 하는 단계;
상기 적어도 하나의 화재 지수들에 대한 소정의 지수 조건이 모두 만족되는 경우, 상기 화재 후보 영역이 화재 의심 영역으로 식별되는 횟수를 증가시키는 단계; 및
상기 증가된 횟수가 상기 기 설정된 임계치 이상인 경우, 상기 화재가 발생한 것으로 결정하는 단계; 를 포함하는, 방법.
12. The method of claim 11, wherein determining that a fire has occurred comprises:
identifying whether an index condition for at least one of the determined zero cross count index, the high-pass filter area index, the periodicity index, the motion region index, or the moving object index is satisfied;
resetting the number of times the fire candidate area is identified as the fire suspect area when even one of the at least one fire indices does not satisfy an index condition;
increasing the number of times that the fire candidate area is identified as a suspected fire area when all predetermined index conditions for the at least one fire index are satisfied; and
determining that the fire has occurred when the increased number of times is greater than or equal to the preset threshold value; Including, method.
제8항에 있어서, 상기 적어도 하나의 화재 지수를 결정하는 단계는
상기 복수의 프레임 이미지들 별 또는 상기 복수의 프레임 이미지들 중 소정의 프레임 주기에 따른 프레임에 대해서 상기 적어도 하나의 화재 지수를 결정하는 단계; 를 포함하는, 방법.
9. The method of claim 8, wherein determining the at least one fire index comprises:
determining the at least one fire index for each of the plurality of frame images or for a frame according to a predetermined frame period among the plurality of frame images; Including, method.
카메라;
네트워크 인터페이스;
하나 이상의 인스트럭션을 저장하는 메모리; 및
상기 하나 이상의 인스트럭션을 실행하는 적어도 하나의 프로세서; 를 포함하고,
상기 적어도 하나의 프로세서는 상기 하나 이상의 인스트럭션을 실행함으로써,
감시 대상 영역을 촬영함으로써 이미지를 획득하고,
적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하고,
상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하고,
이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하고,
상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계;
상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하고,
상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는, 전자 장치.
camera;
network interface;
a memory that stores one or more instructions; and
at least one processor to execute the one or more instructions; including,
By executing the one or more instructions, the at least one processor:
Obtaining an image by photographing the area to be monitored,
obtaining seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor;
Determine at least one fire index based on the obtained image analysis result;
Obtaining a fire probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether a fire occurs when an image is input,
determining whether a fire occurs based on the determined fire index and the fire occurrence probability value;
Determine at least one earthquake index based on the seismic wave information, determine whether an earthquake occurs based on the determined earthquake index,
An electronic device that outputs notification information according to whether the fire or the earthquake has occurred.
전자 장치가 재난을 감지하는 방법에 있어서,
감시 대상 영역을 촬영함으로써 이미지를 획득하는 단계;
적어도 하나의 센서를 이용하여 상기 전자 장치가 설치된 위치에서 지진파를 센싱함으로써 지진파 정보를 획득하는 단계;
상기 획득된 이미지 분석 결과에 기초하여 적어도 하나의 화재 지수를 결정하는 단계;
이미지가 입력되면 화재 발생 여부에 대한 확률 값을 출력하는 인공 지능 모델에 상기 획득된 이미지를 입력함으로써, 상기 인공 지능 모델로부터 상기 이미지에 대한 화재 발생 확률 값을 획득하는 단계;
상기 결정된 화재 지수 및 상기 화재 발생 확률 값에 기초하여 화재 발생 여부를 결정하는 단계;
상기 지진파 정보에 기초하여 적어도 하나의 지진 지수를 결정하고, 상기 결정된 지진 지수에 기초하여 지진 발생 여부를 결정하는 단계; 및
상기 화재 발생 여부 또는 상기 지진 발생 여부에 따라 알림 정보를 출력하는 단계; 를 포함하는, 방법을 수행하도록 하는 프로그램이 저장된 컴퓨터로 읽을 수 있는 기록매체.
In the method for an electronic device to detect a disaster,
acquiring an image by photographing a region to be monitored;
obtaining seismic wave information by sensing seismic waves at a location where the electronic device is installed using at least one sensor;
determining at least one fire index based on the obtained image analysis result;
obtaining a fire occurrence probability value for the image from the artificial intelligence model by inputting the obtained image to an artificial intelligence model that outputs a probability value for whether a fire occurs when an image is input;
determining whether a fire occurs based on the determined fire index and the fire occurrence probability value;
determining at least one earthquake index based on the seismic wave information, and determining whether an earthquake has occurred based on the determined earthquake index; and
outputting notification information according to whether the fire or the earthquake has occurred; A computer-readable recording medium in which a program for performing the method is stored, including a.
KR1020210118275A 2021-09-06 2021-09-06 Apparatus and method for detecting disaster based on artificial intelligence model KR102566617B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210118275A KR102566617B1 (en) 2021-09-06 2021-09-06 Apparatus and method for detecting disaster based on artificial intelligence model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210118275A KR102566617B1 (en) 2021-09-06 2021-09-06 Apparatus and method for detecting disaster based on artificial intelligence model

Publications (2)

Publication Number Publication Date
KR20230035814A true KR20230035814A (en) 2023-03-14
KR102566617B1 KR102566617B1 (en) 2023-08-16

Family

ID=85502407

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210118275A KR102566617B1 (en) 2021-09-06 2021-09-06 Apparatus and method for detecting disaster based on artificial intelligence model

Country Status (1)

Country Link
KR (1) KR102566617B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180105787A (en) * 2017-03-16 2018-10-01 한국기술교육대학교 산학협력단 a Fire Detection Device and method based on the integration of fuzzy logic and deep learning
KR20190142843A (en) 2018-06-19 2019-12-30 박준영 Disaster detection, protection and response apparatus and operating method thereof
KR102242421B1 (en) * 2020-12-04 2021-04-20 (주)아이아이에스티 Apparatus and method for detecting disaster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180105787A (en) * 2017-03-16 2018-10-01 한국기술교육대학교 산학협력단 a Fire Detection Device and method based on the integration of fuzzy logic and deep learning
KR20190142843A (en) 2018-06-19 2019-12-30 박준영 Disaster detection, protection and response apparatus and operating method thereof
KR102242421B1 (en) * 2020-12-04 2021-04-20 (주)아이아이에스티 Apparatus and method for detecting disaster

Also Published As

Publication number Publication date
KR102566617B1 (en) 2023-08-16

Similar Documents

Publication Publication Date Title
KR102242421B1 (en) Apparatus and method for detecting disaster
US11735018B2 (en) Security system with face recognition
US11295139B2 (en) Human presence detection in edge devices
CN110895861B (en) Abnormal behavior early warning method and device, monitoring equipment and storage medium
US9008365B2 (en) Systems and methods for pedestrian detection in images
CN101473207B (en) Identification of people using multiple types of input
US10228360B2 (en) System and method for determining the quality of concrete
US20180096256A1 (en) Method and apparatus for determining probabilistic context awareness of a mobile device user using a single sensor and/or multi-sensor data fusion
KR101953342B1 (en) Multi-sensor fire detection method and system
KR20190034021A (en) Method and apparatus for recognizing an object
KR20180055708A (en) Device and method for image processing
KR20120043845A (en) User equipment and method for cogniting user state thereof
JP2008113442A (en) Event-detection in multi-channel sensor-signal stream
CN110506277B (en) Filter reuse mechanism for constructing robust deep convolutional neural networks
KR20190074011A (en) Method and device for voice recognition
US20230060936A1 (en) Method for identifying an audio signal
CN110544491A (en) Method and device for real-time association of speaker and voice recognition result thereof
CN106297184A (en) The monitoring method of mobile terminal surrounding, device and mobile terminal
CN113723185A (en) Action behavior recognition method and device, storage medium and terminal equipment
KR20190062030A (en) Image display apparatus and operating method thereof
JP2014191616A (en) Method and device for monitoring aged person living alone, and service provision system
KR102465105B1 (en) Apparatus and method for detecting disaster based on artificial intelligence model using thermal image complex data
KR101966198B1 (en) Internet of things-based impact pattern analysis system for smart security window
KR101995799B1 (en) Place recognizing device and method for providing context awareness service
Kalimuthu et al. Human activity recognition based on smart home environment and their applications, challenges

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant