KR101798768B1 - Events detection based Image recording device and Method thereof - Google Patents
Events detection based Image recording device and Method thereof Download PDFInfo
- Publication number
- KR101798768B1 KR101798768B1 KR1020160070466A KR20160070466A KR101798768B1 KR 101798768 B1 KR101798768 B1 KR 101798768B1 KR 1020160070466 A KR1020160070466 A KR 1020160070466A KR 20160070466 A KR20160070466 A KR 20160070466A KR 101798768 B1 KR101798768 B1 KR 101798768B1
- Authority
- KR
- South Korea
- Prior art keywords
- image
- size
- event
- space
- event image
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/188—Capturing isolated or intermittent images triggered by the occurrence of a predetermined event, e.g. an object reaching a predetermined position
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/107—Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
- H04N5/77—Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
Description
본 발명은 감시 시스템의 영상 저장 장치에 관한 것이다. 구체적으로는 이벤트 감지기반의 저장영상을 저장하기 위한 장치 및 방법에 관한 것이다.The present invention relates to an image storage device of a surveillance system. And more particularly, to an apparatus and method for storing an event detection based storage image.
카메라와 시스템 서버 등 관련 하드웨어 장비의 발달과 네트워크 환경의 발전에 따라 영상 감시 시스템의 설치가 증가하고 있고, 규모 또한 대규모화 되고 있다. 개인 및 공공의 재산과 시설물에 대한 보호 수유가 증가함에 따라 감시시스템 설치 및 규모는 지속적으로 확장할 것으로 예상된다. 그러나 다수의 카메라로부터 24시간 실시간으로 영상을 전송받는 영상 감시 시스템의 특성상 시스템 대규모화는 영상 저장을 위한 저장공간 부족문제를 유발한다. 실제 64채널(카메라가 64대 연결) 규모의 시스템에서 채널당 8Mbps로 전송되는 영상을 저장할 때 하루에 5TBytes 이상의 저장 공간이 요구된다. 대부분의 영상 감시 시스템이 고객의 요청으로 일정기간(예를 들어, 30일) 이상 영상 저장을 요구받고 있음을 감안하면 실로 엄청난 크기의 저장 공간이 요구됨을 알 수 있다.With the development of related hardware devices such as camera and system server and the development of network environment, the installation of video surveillance system is increasing and the scale is also becoming larger. As protection and feeding of personal and public property and facilities are increasing, the installation and scale of surveillance systems is expected to continue to expand. However, due to the characteristics of the video surveillance system that receives images in real -
저장 공간 부족문제를 해결하기 위한 종래 기술의 경우, 영상 내 이벤트를 감지하여 이벤트가 있는 영상만을 선별하여 저장하는 방법이 있다. 그러나 종래 기술의 경우 저장영상의 크기가 정확히 예측하지 못하는 한계가 있다. 예를 들어, 이벤트가 발생한 영상만을 저장할 때, 이벤트가 하루 1,000건 이상 빈번히 발생할 경우와 하루 1건만 발생할 경우의 저장 영상 크기 및 저장 공간이 달라진다. 종래 기술에서는 이벤트 감지 민감도를 조절하여 이벤트 발생 빈도를 조절하는 방법도 있었으나, 이 또한 영상의 화면 복잡도, 시간적 복잡도, 주간/야간 조명 차이, 실내/실외 환경 차이 등으로 인해 절대적인 빈도 조절은 불가능하며 동일 영상 특성이 유지되는 상황 하에서 상대적인 빈도 조절만이 가능하였다.In the conventional art for solving the insufficient storage space problem, there is a method of detecting an event in an image and selecting only an image having an event. However, in the case of the related art, there is a limit in that the size of the stored image can not be accurately predicted. For example, when storing only the image in which an event occurs, the stored image size and storage space vary when the event occurs more frequently than 1,000 times a day and when only one event occurs per day. In the prior art, there has been a method of adjusting the event occurrence frequency by adjusting the event detection sensitivity. However, it is impossible to adjust the frequency of the event due to the image complexity, temporal complexity, daytime / nighttime illumination difference, indoor / Only relative frequency control was possible under the condition that image characteristics were maintained.
시스템의 신뢰성과 안정성을 높이기 위해서는 저장 공간을 정확히 예측하는 것이 매우 중요하다. 저장영상 크기를 예측하지 못해 목표기간보다 짧은 기간에 저장 공간이 가득 차 더 이상의 영상을 저장하지 못하는 사태가 벌어질 수 있기 때문이다. Accurate prediction of storage space is crucial to increase system reliability and stability. The size of the stored image can not be predicted, and the storage space is filled in a shorter period than the target period, so that the image can not be stored any more.
본 발명은 상술한 문제점을 해결하고자 저장 공간을 정확히 예측할 수 있는 영상 저장 방법을 제공하는 것을 그 목적으로 한다.SUMMARY OF THE INVENTION It is an object of the present invention to provide an image storage method capable of correctly predicting a storage space in order to solve the above-mentioned problems.
또한 본 발명은 감시 카메라를 통한 영상의 저장 공간 부족 문제를 해결하고자 하는 것을 그 목적으로 한다. Another object of the present invention is to solve the shortage of storage space of an image through a surveillance camera.
또한 본 발명은 감시 카메라를 통한 영상 중 이벤트를 감지하여 이벤트 발생 시의 영상만을 저장할 때, 이벤트 발생 빈도와 상관없이 저장영상의 크기를 일정하게 유지할 수 있는 것을 그 목적으로 한다.Another object of the present invention is to maintain a constant size of a stored image regardless of the occurrence frequency of an event when only an image at the time of occurrence of an event is detected by detecting an event among the images through the surveillance camera.
위와 같은 목적을 달성하기 위해, 이벤트 감지 기반 영상 저장 방법은, 외부 카메라 장치로부터 이미지 영상을 전달 받는 A 단계, 상기 이미지 영상으로부터 이벤트 발생 여부를 판단하는 B 단계, 이벤트가 발생되었다고 판단된 경우, 상기 이벤트 발생 구간에 대응되는 이벤트 영상을 영상 저장을 위한 예비 공간에 우선 저장하는 C 단계 및 상기 이벤트 영상이 저장되고 남은 공간이 존재하는 경우 비이벤트 발생 구간에 대응되는 비이벤트 영상을 저장하는 D 단계를 포함한다.In order to achieve the above object, an event detection based image storing method includes: an A step of receiving an image from an external camera device; a B step of determining whether an event is generated from the image; A step C for storing an event image corresponding to an event occurrence period in a preliminary space for storing an image, and a step D for storing a non-event image corresponding to a non-event occurrence period when the event image is stored and a remaining space exists .
상기 A 단계는 상기 카메라로부터 전달받은 스트림을 수신 받아 프레임단위로 구성한다.In the step A, the stream received from the camera is received and configured in frame units.
일 실시예에서, 상기 C 단계는 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하는 C-1 단계, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 큰 경우, 상기 이벤트 영상의 크기를 상기 예비 공간의 크기 이하로 줄이는 C-2 단계 및 상기 줄어든 이벤트 영상을 상기 예비 공간에 저장하는 C-3 단계를 더 포함한다.If the size of the event image is larger than the size of the preliminary space, the step of comparing the size of the event image with the size of the preliminary space may be performed. A step C-2 for reducing the size of the preliminary space or less and a step C-3 for storing the reduced event image in the preliminary space.
다른 실시예에서, 상기 C 단계는 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하는 C-1 단계, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 작은 경우, 상기 이벤트 영상을 상기 예비 공간에 저장하는 C-2 단계 및 상기 기존 예비 공간의 크기에서 상기 저장된 이벤트 영상의 크기를 뺀 용량을 제2 예비 공간으로 정의하는 C-3 단계를 더 포함하며, 상기 D 단계는 상기 비이벤트 영상을 상기 제2 예비 공간으로 저장한다.In another embodiment, the step C includes a step C-1 for comparing the size of the event image with the size of the spare space, and if the size of the event image is smaller than the size of the spare space, And a step C-3 of defining a capacity obtained by subtracting the size of the stored event image from the size of the existing spare space as a second preliminary space, wherein the step (D) And stores it in the second spare space.
일 실시예에서, 상기 D 단계는, 상기 비이벤트 영상의 크기를 계산하는 D-1 단계, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하는 D-2 단계, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 큰 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간의 크기 이하로 줄이는 D-3 단계 및 상기 줄어든 비이벤트 영상을 상기 제2 예비 공간에 저장하는 D-4 단계를 더 포함한다.In one embodiment, the step (D) includes a step D-1 for calculating the size of the non-event image, a step D-2 for comparing the size of the non-event image with the size of the second spare space, Event image to be smaller than the size of the second spare space when the size of the non-event image is larger than the size of the second spare space, and storing the reduced non-event image in the second spare space And further includes step D-4.
다른 실시예에서, 상기 D 단계는, 상기 비이벤트 영상의 크기를 계산하는 D-1 단계, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하는 D-2 단계, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 작은 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간에 저장하는 D-6 단계를 더 포함한다.In another embodiment, the step (D) includes a step (D-1) of calculating the size of the non-event image, a step (D-2) of comparing the size of the non-event image with the size of the second spare space, If the size of the non-event image is smaller than the size of the second spare space, storing the size of the non-event image in the second spare space.
본 발명의 다른 특징에 따르면, 이벤트 감지 기반 영상 저장 장치는, 외부 카메라 장치로부터 이미지 영상을 전달 받기 위한 스트림 수신 장치, 상기 이미지 영상으로부터 이벤트 발생 여부를 판단하는 이벤트 감지 장치 및 상기 이벤트 감지 장치가 상기 이미지 영상으로부터 이벤트가 발생했다고 판단하는 경우, 상기 이벤트 발생 구간에 대응되는 이벤트 영상을 영상 저장을 위한 예비 공간에 우선 저장하며, 상기 이벤트 영상이 저장되고 남은 공간이 존재하는 경우 비이벤트 발생 구간에 대응되는 비이벤트 영상을 저장하기 위한 영상 저장부를 포함한다.According to another aspect of the present invention, there is provided an event detection based video storage device including a stream receiving device for receiving an image from an external camera device, an event detecting device for determining whether an event has occurred from the image, If it is determined that an event has occurred from the image, the event image corresponding to the event occurrence period is first stored in the preliminary space for storing the image, and if the remaining space exists and the event image is stored, And an image storage unit for storing non-event images.
바람직하게는, 상기 스트림 수신 장치는 상기 카메라로부터 전달받은 스트림을 수신 받아 프레임단위로 구성하여 출력한다.Preferably, the stream receiving apparatus receives a stream received from the camera and outputs the stream in units of frames.
일 실시예에서, 상기 이벤트 감지 기반 영상 저장 장치는, 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하여, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 큰 경우, 상기 이벤트 영상의 크기를 상기 예비 공간의 크기 이하로 줄이기 위한 영상 크기 장치를 더 포함하며, 상기 영상 저장부는, 상기 줄어든 이벤트 영상을 상기 예비 공간에 저장한다.In one embodiment, the event detection based image storage apparatus compares the size of the event image with the size of the spare space, and when the size of the event image is larger than the size of the spare space, And an image size device for reducing the size of the preliminary space, wherein the image storage unit stores the reduced event image in the preliminary space.
다른 실시예에서, 상기 이벤트 감지 기반 영상 저장 장치는, 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하기 위한 영상 크기 장치를 더 포함하며, 상기 영상 저장부는, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 작은 경우, 상기 이벤트 영상을 상기 예비 공간에 저장하며, 상기 기존 예비 공간의 크기에서 상기 저장된 이벤트 영상의 크기를 뺀 용량을 제2 예비 공간으로 정의하고, 상기 비이벤트 영상을 상기 제2 예비 공간으로 저장한다.In another embodiment, the event detection based image storage apparatus further includes an image size device for comparing the size of the event image with the size of the preliminary space, and the image storage unit stores the size of the event image, The size of the existing preliminary space minus the size of the stored event image is defined as a second preliminary space, and the non-event image is stored in the preliminary space, 2 Save as a spare space.
일 실시예에서, 상기 영상 저장 장치는, 상기 비이벤트 영상의 크기를 계산하고, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하여, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 큰 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간의 크기 이하로 줄이고, 상기 줄어든 비이벤트 영상을 상기 제2 예비 공간에 저장한다.In one embodiment, the image storage device calculates the size of the non-event image, compares the size of the non-event image with the size of the second spare space, and determines whether the size of the non- The size of the non-event image is reduced to be less than or equal to the size of the second spare space, and the reduced non-event image is stored in the second spare space.
다른 실시예에서, 상기 영상 저장 장치는, 상기 비이벤트 영상의 크기를 계산하고, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하여, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 작은 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간에 저장한다.In another embodiment, the image storage device calculates the size of the non-event image, compares the size of the non-event image with the size of the second spare space, and determines whether the size of the non- If the size of the non-event image is smaller than the size of the space, the size of the non-event image is stored in the second spare space.
본 발명의 실시예에 따른 이벤트 감지 기반 영상 저장 방법 및 장치에 따르면, 이벤트 발생 빈도와 상관없이 저장영상의 크기를 일정하게 유지할 수 있어 시스템의 저장 공간을 정확히 예측하여, 저장 공간 부족문제를 해결할 수 있다.According to the event detection based image storing method and apparatus according to the embodiment of the present invention, the size of the stored image can be kept constant regardless of the frequency of occurrence of the event, so that the storage space of the system can be accurately predicted, have.
도 1은 이벤트 감지를 통해 이벤트를 포함하는 영상만을 저장하는 예를 나타낸다.
도 2는 본 발명에 따른 이벤트 감지 기반 영상 저장 장치의 구성도를 나타낸다.
도 3은 신택스 복호화 장치의 구성을 나타낸 구성도이다.
도 4는 각 프레임 그룹 단위의 이벤트 포함 여부의 예시를 나타낸다.
도 5는 본 발명에 따른 이벤트 감지 기반 영상 저장 방법의 흐름도를 나타낸다.FIG. 1 shows an example in which only an image including an event is stored through event detection.
2 is a block diagram of an event detection based image storage apparatus according to the present invention.
3 is a block diagram showing a configuration of a syntax decoding apparatus.
FIG. 4 shows an example of whether or not an event is included in each frame group unit.
5 is a flowchart illustrating an event detection based image storage method according to the present invention.
본 발명의 목적과 기술적 구성 및 그에 따른 작용 효과에 관한 자세한 사항은 본 발명의 명세서에 첨부된 도면에 의거한 이하의 상세한 설명에 의해 보다 명확하게 이해될 것이다. 첨부된 도면을 참조하여 본 발명에 따른 실시예를 상세하게 설명한다.DETAILED DESCRIPTION OF THE EMBODIMENTS Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail with reference to the accompanying drawings.
본 명세서에서 개시되는 실시예들은 본 발명의 범위를 한정하는 것으로 해석되거나 이용되지 않아야 할 것이다. 이 분야의 통상의 기술자에게 본 명세서의 실시예를 포함한 설명은 다양한 응용을 갖는다는 것이 당연하다. 따라서 본 발명의 상세한 설명에 기재된 임의의 실시예들은 본 발명을 보다 잘 설명하기 위한 예시적인 것이며 본 발명의 범위가 실시예들로 한정되는 것을 의도하지 않는다.The embodiments disclosed herein should not be construed or interpreted as limiting the scope of the present invention. It will be apparent to those of ordinary skill in the art that the description including the embodiments of the present specification has various applications. Thus, it is to be understood that any of the embodiments described in the Detailed Description of the Invention are illustrative of the invention in order to better explain the invention, and the scope of the invention is not intended to be limited to the embodiments.
도면에 표시되고 아래에 설명되는 기능 블록들은 가능한 구현의 예들일 뿐이다. 다른 구현들에서는 상세한 설명의 사상 및 범위를 벗어나지 않는 범위에서 다른 기능 블록들이 사용될 수 있다. 또한, 본 발명의 하나 이상의 기능 블록이 개별 블록들로 표시되지만, 본 발명의 기능 블록들 중 하나 이상은 동일 기능을 실행하는 다양한 하드웨어 및 소프트웨어 구성들의 조합일 수 있다.The functional blocks shown in the drawings and described below are merely examples of possible implementations. In other implementations, other functional blocks may be used without departing from the spirit and scope of the following detailed description. Also, although one or more functional blocks of the present invention are represented as discrete blocks, one or more of the functional blocks of the present invention may be a combination of various hardware and software configurations that perform the same function.
또한, 어떤 구성요소들을 포함한다는 표현은 개방형의 표현으로서 해당 구성요소들이 존재하는 것을 단순히 지칭할 뿐이며, 추가적인 구성요소들을 배제하는 것으로 이해되어서는 안 된다.In addition, the expression "including any element" is merely an expression of an open-ended expression, and is not to be construed as excluding the additional elements.
나아가 어떤 구성요소가 다른 구성요소에 연결되어 있다거나 접속되어 있다고 언급될 때에는, 그 다른 구성요소에 직접적으로 연결 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 한다. Further, when a component is referred to as being connected or connected to another component, it may be directly connected or connected to the other component, but it should be understood that there may be other components in between.
또한 '제1, 제2' 등과 같은 표현은 복수의 구성들을 구분하기 위한 용도로만 사용된 표현으로써, 구성들 사이의 순서나 기타 특징들을 한정하지 않는다. Also, the expressions such as 'first, second', etc. are used only to distinguish a plurality of configurations, and do not limit the order or other features between configurations.
이하에서는 본 발명의 실시예에 따른 이벤트 감지 기반 영상 저장 방법 및 장치에 대하여 설명하도록 한다.Hereinafter, an event detection based image storing method and apparatus according to an embodiment of the present invention will be described.
앞서 설명한 바와 같이, 영상 감시 시스템의 규모가 점차 대규모화됨에 따라 저장 공간 부족문제가 제기되고 있다. 표 1은 30일간 영상 저장 시 비트율관 채널수에 따른 필요 저장 공간(TB 단위)을 나타낸다.As described above, as the size of the video surveillance system gradually becomes larger, a problem of lack of storage space is raised. Table 1 shows the required storage space (in TB units) according to the number of bit rate tube channels for 30 days image storage.
표 1을 참조하면, 4Mbps 또는 8Mbps 영상을 30일간 저장 시 무려 632TB 이상의 저장 공간을 필요함을 확인할 수 있다. Referring to Table 1, when the 4Mbps or 8Mbps image is stored for 30 days, it can be confirmed that a storage space of 632TB or more is required.
저장 공간 부족 문제를 해결하기 위해 종래에는 이벤트를 감지하여 이벤트를 포함하는 영상만을 선별하여 저장하고, 이벤트가 없는 부분은 저장하지 않는 방법이 있다. In order to solve the storage space shortage problem, conventionally, there is a method of detecting only an event and selectively storing only an image including an event, and not storing a part without an event.
도 1은 이벤트 감지를 통해 이벤트를 포함하는 영상만을 저장하는 예를 나타낸다. FIG. 1 shows an example in which only an image including an event is stored through event detection.
도 1을 참조하면, 실제영상에서 회색 또는 검정색으로 표기된 구간이 이벤트를 포함하는 영상임을 의미한다. 그러면 실제 영상이 10GB이더라도, 이벤트 관련 영상은 2.8GB이고 저장영상도 2.8GB가 된다. 도 1에서 확인할 수 있는 바와 같이, 이벤트를 포함하는 영상만을 저장하는 방법으로 저장영상의 크기를 상당히 줄일 수 있다. 그러나 종래 기술에서는 저장 영상의 크기를 정확히 예측하지 못하는 한계가 있다. 예를 들어, 이벤트가 발생한 영상만을 저장할 때, 이벤트가 매우 빈번히 발생할 경우와 거의 발생하지 않는 경우의 저장 영상 크기 및 저장 공간이 달라진다. 이벤트 발생 빈도를 조절하기 위해 종래 기술에서는 이벤트 감지 민감도를 조절하는 방법이 있었으나, 이 또한 영상의 화면복잡도, 시간적 복잡도, 주간/야간 조명차이, 실내/외 환경 차이 등으로 인해 절대적으로 빈도 조절은 불가능하고 동일 영상 특성이 유지되는 상황 하에서 상대적인 빈도 조절만이 가능하여 결과적으로 저장영상의 크기를 정확히 예측하는 못하는 한계는 여전히 존재한다. Referring to FIG. 1, a gray or black area in an actual image means an image including an event. So even if the actual image is 10GB, the event related image will be 2.8GB and the storage image will be 2.8GB. As can be seen in FIG. 1, the size of the stored image can be significantly reduced by storing only the image including the event. However, there is a limitation in accurately estimating the size of a stored image in the prior art. For example, when storing only an image in which an event occurs, the size and storage space of the stored image differ when the event occurs very frequently and when the event occurs rarely. In order to control the frequency of occurrence of events, there has been a method of adjusting the sensitivity of event detection in the related art. However, the frequency can not be controlled absolutely due to image complexity, temporal complexity, daytime / nighttime illumination difference, And only the relative frequency can be adjusted under the condition that the same image characteristics are maintained. As a result, there is still a limitation in accurately estimating the size of the stored image.
시스템의 신뢰성과 안정성을 높이기 위해서는 저장 공간을 정확히 예측할 필요가 있다. 예를 들어 1일간의 영상을 저장하는 데 1TB가 필요하다고 예상하고 30일간의 영상을 저장하기 위해 30TB의 저장 공간을 확보하였으나, 저장영상의 크기를 예측하지 못하고 이벤트가 빈번히 발생하는 경우 30일이 되기 전에 저장 공간이 모두 채워져 더 이상의 영상을 저장하지 못하는 경우가 발생할 수 있기 때문이다.In order to improve the reliability and stability of the system, it is necessary to accurately estimate the storage space. For example, it is estimated that 1TB is needed to store one day of video, and 30TB of storage space is reserved to store 30 days of video. However, if the size of the stored video is not predicted and events occur frequently, The storage space may be filled up before it is stored, so that it is not possible to store any more images.
도 2는 본 발명에 따른 이벤트 감지 기반 영상 저장 장치의 구성도를 나타낸다.2 is a block diagram of an event detection based image storage apparatus according to the present invention.
본 발명에서는 영상의 구간별 이벤트 발생여부를 확인하여, 이벤트 발생 구간의 영상을 우선적으로 저장하고, 저장 공간의 여유가 있는 경우에 한해 이벤트 미발생 구간의 영상을 저장하는 방법을 제시한다. 또한, 영상 저장 시 목표 저장 공간과 잔여 저장 공간 그리고 저장영상의 크기를 고려하여 비트율을 적응적으로 조절함으로써 저장영상의 크기를 조절하는 방법으로, 영상 저장에 필요한 저장 공간을 목표 저장 공간과 일치시키는 방법을 제시한다.In the present invention, a method of checking whether an event is generated for each section of an image, preferentially storing an image of an event occurrence interval, and storing an image of a non-event occurrence interval only when the storage space is available. Also, it is a method to adjust the size of the stored image by adaptively adjusting the bit rate considering the target storage space, the remaining storage space, and the size of the storage image at the time of image storage, and the storage space required for image storage is matched with the target storage space We suggest a method.
도 2를 참조하면, 본 발명에 따른 이벤트 감지 기반 영상 저장 장치(20)는 스트림 수신 장치(21), 신택스 복호화 장치(22), 이벤트 감지장치(23), 영상 크기 변환장치(24) 및 영상 저장부(25)를 포함한다.2, the event-based
스트림 수신 장치(21)는 외부 카메라 장치(10)로부터 이미지 영상을 스트림 형태로 수신 받아 영상 데이터를 프레임 단위로 구성하여 신택스 복호화 장치(22) 및 영상 크기 변환장치(24)로 전달하는 기능을 수행한다.The
신택스 복호화 장치(22)는 스트림 수신 장치(21)로부터 영상 데이터를 프레임 단위로 수신하여, 각 프레임의 신택스(Syntax)를 복호화 하여 신택스 정보를 이벤트 감지장치(23)로 전달하는 기능을 수행하다.The
도 3은 신택스 복호화 장치의 구성을 나타낸 구성도이다.3 is a block diagram showing a configuration of a syntax decoding apparatus.
도 3을 참조하면, 신택스 복호화 장치(22)는 엔트로피 디코딩부(31), 신택스 디코딩부(32), 움직임 보상부(33), 공간 예측부(34), 역양자화부(35), 역변환부(36), 참조 프레임 버퍼부(37) 및 디블록킹 필터부(38)를 포함할 수 있다. 신택스 복호화 장치(22)는 도 3과 같이 영상 복호화기의 일부 장치로 구성되며, 영상 복호화기는 압축 비트 스트림 형태의 영상 데이터로부터 복원 영상을 얻기 위해 엔트로피 디코딩부(31), 신택스 디코딩부(32), 움직임보상부(33), 공간예측부(34), 역양자화부(35), 역변환부(36) 및 디블록킹 필터부(37)를 거쳐야 복원영상이 출력된다. 그러나 신택스 복호화 장치(22)는 실선으로만 표시된 엔트로피 디코딩부(31)와 신택스 디코딩부(32)에서, 엔트로피 디코딩과 신택스 디코딩만을 수행하여 신택스 정보를 얻을 수 있다. 그러므로 도 3에서도 확인할 수 있듯이, 신택스 복호화 장치(22)는 영상 복호화 장치의 일부 장치로 구성될 수도 있다. 아울러, 신택스 복호화는 영상 복호화에 비해 매우 적은 계산량을 요구한다는 장점도 존재한다.3, the
이벤트 감지장치(23)는 신택스 복호화 장치(22)로부터 전달받은 신택스 정보를 이용하여 이미지 영상으로부터 이벤트 발생 여부를 판단하여 그 결과를 영상 크기 변환장치(24)로 전달하는 기능을 한다. 구체적으로 이벤트 감지장치(23)는 신택스 정보 중 움직임 벡터(Motion Vector)와 인트라 MB(Intra MB) 정보를 참조하여, 영상 중 P 프레임에서 매크로 블록의 움직임 벡터가 소정 크기 이상(예를 들어 8화소 크기 이상)이고, 유효계수(Significant Coefficient)가 소정 개수 이상(예를 들어 1개 이상) 존재하거나, P 프레임에서 매크로 블록의 복호화 모드가 인트라 MB(Intra MB)로 결정되는 조건을 만족시키는 액티브 매크로 블록(Active Macro Block)이 있는지를 판단하고, 이러한 조건을 만족시키는 액티브 매크로 블록의 비율이 전체 프레임에서 미리 정해진 소정 비율(예를 들어 30%)을 넘는 프레임을 이벤트 발생 프레임으로 판단한다. 본 발명의 일 실시예에서는 전체 프레임에서 액티브 매크로 블록의 비율이 30%가 넘는 경우를 일예로 설명하였지만, 해당 비율은 알고리즘의 민감도나 시스템의 특성에 따라 임의의 비율로 조정될 수 있다. 이를 구체적으로 설명하면, 일반적인 영상 압축 스트림의 프레임 구조에서 P 프레임은 순방향 예측을 하여 압축을 한 프레임으로, 앞 프레임과 뒷 프레임의 공동 부분은 뒷 프레임에서는 제거하여 없애버리고 차이나 나는 부분을 표현하는 압축방식의 프레임이기 때문에, P 프레임에서 매크로 블록의 움직임 벡터가 일 예로 8화소 크기 이상이고, 유효계수가 일 예로 1개 이상 있으면, 움직임 벡터의 크기가 크고, 유효 계수가 존재하는 것으로 판단한다. 이 경우는 움직임 예측이 정확하지 않을 때 발생되는 현상이기 때문에 불규칙적인 갑작스런 움직임이 발생한 것으로 판단할 수 있다. 아울러 P 프레임에서 인트라 MB(Intra MB)가 발생된 경우에는 앞서 설명한 조건과는 달리 예외적인 경우로, 타화면과의 화면 간 예측이 실패한 경우이며, 이 경우에도 불규칙저인 갑작스런 움직임이 발생한 것으로 판단할 수 있는 것이다.The
영상 크기 변환장치(24)는 스트림 수신 장치(21)로부터 프레임 단위로 구성된 영상 데이터를 수신하고, 이벤트 감지장치(23)로부터 각 프레임의 이벤트 발생여부를 수신하고, 수신한 이벤트 발생 정보와 시스템의 목표 저장 공간을 고려하여 저장할 저장 영상의 크기를 조정하고, 조정된 저장영상을 영상 저장부(25)로 전달하는 기능을 한다. 이때 영상의 크기 조정은 저장되는 영상의 비트율을 조절하여 상기 크기를 조정할 수 있다. The image
영상 크기 변한장치(24)는 영상 크기 변환장치(24)는 영상 저장을 위해 우선 이벤트를 포함하는 이벤트 영상의 크기를 계산한다. 본 발명의 일 실시예에서는 독립적으로 복호화가 가능한 I 프레임을 포함하는 프레임 그룹(Group of Pictures) 단위로 영의 이벤트 포함여부를 판단한다. 도 4는 각 프레임 그룹 단위의 이벤트 포함 여부의 예시를 나타낸다. 이벤트를 포함하는 프레임이 소속된 프레임 그룹을 이벤트 발생 프레임 그룹으로 분류하게 되며, 도 4의 예시에서는 첫 번째, 세 번째 프레임 그룹에서는 이벤트를 포함하는 프레임이 존재하여 이벤트 발생 프레임 그룹으로 분류하고, 두 번째, 네 번째 프레임 그룹에서는 이벤트를 포함하는 프레임이 존재하지 않아 이벤트 미발생 프레임 그룹으로 분류하게 된다. 본 발명의 일 실시예에서 영상 크기 변한장치(24)에서 영상 저장을 위한 목표 비트량(즉, 예비 공간)을 4GB 로 설정하였다면, 우선 이벤트를 포함하는 이벤트 영상의 크기를 계산하고, 이벤트 영상의 크기를 목표 비트량(예비 공간)인 4GB 를 넘어서면 이벤트 영상의 비트율을 변환하여 이벤트 영상의 크기를 4GB 또는 그 이하로 변환한다.The image
또한 영상 크기 변환장치(24)는 영상 저장부(25)로 전달 받은 예비 공간으로 이벤트 영상을 저장하고 남은 제2 예비 공간의 크기를 전달받고, 비이벤트를 포함하는 비이벤트 영상의 크기를 계산하고, 비이벤트 영상의 크기를 제2 예비 공간(제2 목표 비트량)이 넘어서는 지를 판단하여, 이를 넘어서면 비이벤트 영상의 비트율을 변환하여 비이벤트 영상의 크기를 제2 에비 공간 또는 그 이하로 변환하는 기능도 수행한다. In addition, the image
영상 저장부(25)는 이벤트 감지장치(23)로부터 이미지 영상으로부터 이벤트가 발생했다고 판단하는 경우, 이벤트 발생 구간에 대응되는 이벤트 영상을 영상 저장을 위한 예비 공간에 우선 저장하며, 이벤트 영상이 저장되고 남은 공간이 존재하는 경우 비이벤트 발생 구간에 대응되는 비이벤트 영상을 저장하는 기능을 한다. When the
즉, 영상 저장부(25)는 영상 크기 변환장치(24)로부터 전달받은 이벤트 영상을 예비 공간(목표 비트량)에 저장하는 기능을 한다. 만일 이벤트 영상이 예비 공간보다 작으면 이벤트 영상을 그대로 저장하며, 이벤트 영상이 예비 공간보다 크면 영상 크기 변환장치(24)에서 크기가 조절된 이벤트 영상을 전달받아 이를 예비 공간에 저장하게 된다. 또한 영상 저장부(24)는 이벤트 영상의 크기가 예비 공간의 크기보다 작아 이벤트 영상을 예비 공간에 저장하는 경우에는, 기존 예비 공간의 크기에서 저장된 이벤트 영상의 크기를 뺀 용량을 비이벤트 영상 저장을 위한 제2 예비 공간(제2 목표 비트량)으로 설정하고, 이 제2 예비 공간의 크기는 영상크기 변환장치(24)로 전달하는 기능을 한다. 그리고 영상 크기 변환장치(24)로부터 전달받은 비이벤트 영상을 상기 제2 에비 공간에 저장하게 된다. 이 경우에도, 만일 비이벤트 영상이 제2 예비 공간보다 작으면 비이벤트 영상을 그대로 저장하며, 비이벤트 영상이 제2 예비 공간보다 크면 영상 크기 변환장치(24)에서 크기가 조절된 비이벤트 영상을 전달받아 이를 제2 예비 공간에 저장하게 된다.That is, the
한편, 이벤트 영상의 크기가 예비 공간의 크기보다 작아 이벤트 영상을 예비 공간에 저장하는 경우에는, 기존 예비 공간의 크기에서 저장된 이벤트 영상의 크기를 뺀 용량을 비이벤트 영상 저장을 위한 제2 예비 공간(제2 목표 비트량)으로 설정하는 기능을 영상 저장부(25)가 아닌 영상 크기 변환장치(24)에서 수행할 수 있다. 이 경우에는 영상 저장부(25)는 영상 크기 변환장치(24)에서 전달받은 이벤트 영상과 비이벤트 영상을 예비 공간과 제2 예비 공간에 동시에 또는 순차적으로 저장한다.If the size of the event image is smaller than the size of the preliminary space, if the event image is stored in the preliminary space, the capacity of the existing preliminary space minus the size of the stored event image is stored in the second preliminary space The second target bit amount) may be performed by the image
도 5는 본 발명에 따른 이벤트 감지 기반 영상 저장 방법의 흐름도를 나타낸다.5 is a flowchart illustrating an event detection based image storage method according to the present invention.
도 5를 참조하면, 본 발명에 따른 이벤트 감지 기반 영상 저장 방법은 우선, CCTV 등의 외부 카메라 장치에서 이미지 영상을 전달 받는다(S01). 이 단계에서는 이미지 영상을 스트림 형태로 수신 받아 영상 데이터를 프레임 단위로 구성하여 출력한다. 그런 다음, 이미지 영상에서 신택스 정보를 추출한다(S02). 이 단계에서는, 영상 데이터를 프레임 단위로 수신하여, 각 프레임의 신택스(Syntax)를 복호화 하여 이벤트 발생 여부 판단에 이용하게 될 신택스 정보를 추출하게 된다. Referring to FIG. 5, an event detection based image storage method according to the present invention receives an image from an external camera device such as a CCTV (S01). In this step, the image data is received in the form of a stream, and the image data is configured in units of frames and output. Then, syntax information is extracted from the image image (S02). In this step, the video data is received on a frame-by-frame basis, and the syntax of each frame is decoded to extract the syntax information to be used for determining whether an event has occurred.
그런 다음, 신택스 정보를 이용하여 이미지 영상으로부터 이벤트 발생 여부를 판단한다(S03). 이 단계에서는, 신택스 정보 중 움직임 벡터(Motion Vector)와 인트라 MB(Intra MB) 정보를 참조하여, 영상 중 P 프레임에서 매크로 블록의 움직임 벡터가 소정 크기 이상(예를 들어 8화소 크기 이상)이고, 유효계수(Significant Coefficient)가 소정 개수 이상(예를 들어 1개 이상) 존재하거나, P 프레임에서 매크로 블록의 복호화 모드가 인트라 MB(Intra MB)로 결정되는 조건을 만족시키는 액티브 매크로 블록(Active Macro Block)이 있는지를 판단하고, 이러한 조건을 만족시키는 액티브 매크로 블록의 비율이 전체 프레임에서 미리 정해진 소정 비율(예를 들어 30%)을 넘는 프레임을 이벤트 발생 프레임으로 판단한다. P 프레임에서 매크로 블록의 움직임 벡터가 일 예로 8화소 크기 이상이고, 유효계수가 일 예로 1개 이상 있으면, 움직임 벡터의 크기가 크고, 유효 계수가 존재하는 것으로 판단한다. 이 경우는 움직임 예측이 정확하지 않을 때 발생되는 현상이기 때문에 불규칙적인 갑작스런 움직임이 발생한 것으로 판단할 수 있다. 아울러 P 프레임에서 인트라 MB(Intra MB)가 발생된 경우에는 앞서 설명한 조건과는 달리 예외적인 경우로, 타화면과의 화면 간 예측이 실패한 경우이며, 이 경우에도 불규칙저인 갑작스런 움직임이 발생한 것으로 판단할 수 있는 것이다. 한편, 본 발명의 일 실시예에서는 전체 프레임에서 액티브 매크로 블록의 비율이 30%가 넘는 경우를 일예로 설명하였지만, 해당 비율은 알고리즘의 민감도나 시스템의 특성에 따라 임의의 비율로 조정될 수 있다. Then, it is determined whether an event has occurred from the image image using the syntax information (S03). In this step, the motion vector of the macroblock in the P frame of the image is equal to or larger than a predetermined size (for example, 8 pixels or more) by referring to the motion vector and the intra MB in the syntax information, An active macroblock that satisfies a condition that a Significant Coefficient exists in a predetermined number or more (for example, one or more) or a decoding mode of a macroblock in a P frame is determined as an Intra MB (Intra MB) ), And judges that a frame whose rate of active macroblocks satisfying such conditions exceeds a predetermined ratio (for example, 30%) predetermined in the entire frame is determined as an event generation frame. If the motion vector of the macroblock in the P frame is equal to or larger than 8 pixels and the effective coefficient is one or more, for example, it is determined that the size of the motion vector is large and the effective coefficient exists. In this case, it can be judged that an irregular sudden motion occurs because the phenomenon occurs when the motion prediction is not accurate. In addition, when an intra MB (Intra MB) is generated in a P frame, it is an exceptional case, unlike the above-described condition, in which inter-picture prediction with another picture fails. In this case, too, sudden movement You can do it. Meanwhile, in the embodiment of the present invention, the case where the ratio of active macroblocks in the entire frame exceeds 30% has been described as an example, but the ratio can be adjusted at an arbitrary ratio according to the sensitivity of the algorithm or the characteristics of the system.
그런 다음, 이벤트 영상 크기를 계산하고(S04), 이벤트 영상 크기와 예비 공간의 크기를 비교한다(S05). 만일 이벤트 영상의 크기가 예비 공간보다 크다면 이벤트 영상의 크기를 예비 공간의 크기 이하로 조정하여(S06), 조정된 이벤트 영상을 저장한다(S07). 이때 영상의 크기 조정은 저장되는 영상의 비트율을 조절하여 상기 크기를 조정할 수 있다. Then, the event image size is calculated (S04), and the size of the event image is compared with the size of the preliminary space (S05). If the size of the event image is larger than the preliminary space, the size of the event image is adjusted to be equal to or smaller than the size of the preliminary space (S06), and the adjusted event image is stored (S07). At this time, the size of the image can be adjusted by adjusting the bit rate of the stored image.
만일 이벤트 영상 크기가 예비 공간의 크기보다 작으면 이벤트 영상을 예비 공간에 저장하고(S08), 예비 공간 크기에서 이벤트 영상의 크기만큼을 뺀 공간을 제2 예비 공간으로 설정한다(S09). 그리고 나서 비이벤트 영상의 크기를 계산한다(S10). 그런 다음, 비이벤트 영상의 크기와 제2 예비공간의 크기를 비교한다(S11). 만일 비이벤트 영상의 크기가 제2 예비 공간보다 크다면 비이벤트 영상의 크기를 제2 예비 공간의 크기 이하로 조정하여(S12), 조정된 비이벤트 영상을 저장한다(S13). 이때 영상의 크기 조정은 저장되는 영상의 비트율을 조절하여 상기 크기를 조정할 수 있다. If the size of the event image is smaller than the size of the preliminary space, the event image is stored in the preliminary space (S08), and a space obtained by subtracting the size of the event image from the size of the preliminary space is set as the second preliminary space (S09). Then, the size of the non-event image is calculated (S10). Then, the size of the non-event image is compared with the size of the second preliminary space (S11). If the size of the non-event image is larger than the second spare space, the size of the non-event image is adjusted to be equal to or smaller than the size of the second spare space (S12), and the adjusted non-event image is stored (S13). At this time, the size of the image can be adjusted by adjusting the bit rate of the stored image.
일 예로, 이벤트 영상의 크기가 예비 공간(목표 비트량)인 4GB를 넘지 않는 경우 이벤트 영상의 크기만큼 예비 공간에서 차감하여 제2 예비 공간을 설정한다. 예를 들어, 이벤트 영상의 크기가. 2.7GB인 경우 제2 예비 공간은 4GB에서 2.7GB를 차감함 1.3GB로 조정된다. 이벤트 영상의 크기가 예비 공간을 넘지 않는 경우는 비이벤트 영상의 크기 역시 이벤트 영상의 크기 계산과 동일한 방법으로 프레임 그룹 단위로 계산된다. 비이벤트 영상의 크기를 계산한 후 이를 제2 예비 공간의 크기와 비교하여, 비이벤트 영상의 크기가 제2 예비공간의 크기를 넘어서는 경우, 비이벤트 영상의 비트율 변환 등을 통해 크기를 제2 예비공간의 크기 또는 그 이하로 조절하여 저장하게 된다.For example, when the size of the event image does not exceed 4 GB, which is the preliminary space (target bit amount), the second preliminary space is set by subtracting the size of the event image from the preliminary space. For example, the size of the event image is. For 2.7 GB, the second spare space is adjusted to 1.3 GB, subtracting 2.7 GB from 4 GB. When the size of the event image does not exceed the preliminary space, the size of the non-event image is also calculated on a frame group basis in the same manner as the size calculation of the event image. The size of the non-event image is compared with the size of the second spare space. If the size of the non-event image exceeds the size of the second spare space, the size of the non- The size of the space is adjusted to be less than or equal to the size of the space.
한편, 이벤트 영상 크기가 예비 공간의 크기보다 작을 때, 바로 이벤트 영상을 예비 공간에 저장하지 않고, 먼저, 예비 공간 크기에서 이벤트 영상의 크기만큼을 뺀 공간을 제2 예비 공간으로 설정하고(S09), 비이벤트 영상의 크기를 계산(S10)한 후, 비이벤트 영상의 크기와 제2 예비공간의 크기를 비교하여(S11), ( 만일 비이벤트 영상의 크기가 제2 예비 공간보다 크다면 비이벤트 영상의 크기를 제2 예비 공간의 크기 이하로 조정(S12)하는 것은 동일), 이벤트 영상을 예비 공간에, (조정되거나 조정되지 않은) 비이벤트 영상을 제2 예비 공간에 동시에 또는 순차적으로 저장할 수 있다(S13). 이 경우에는 도 5에서 단계 08 단계가 별도로 독립하여 존재하지 않고, 비이벤트 영상의 조정이 끝난 후에, 단계 13에서 이벤트 영상과, 비이벤트 영상을 동시에 저장하게 된다.When the size of the event image is smaller than the size of the preliminary space, a space obtained by subtracting the size of the event image from the size of the preliminary space is set as a second preliminary space (S09) , The size of the non-event image is calculated (S10), the size of the non-event image is compared with the size of the second spare space (S11), and if the size of the non-event image is larger than the second spare space, Event images can be stored in a spare space and non-event images (adjusted or unadjusted) can be stored simultaneously or sequentially in the second spare space (S12) (S13). In this case, the step 08 in FIG. 5 does not exist separately, and after the adjustment of the non-event image, the event image and the non-event image are simultaneously stored in step 13.
이와 같이 본 발명에서는 영상의 구간별 이벤트 발생여부를 확인하여, 이벤트 발생 구간의 영상을 우선적으로 저장하고, 저장 공간의 여유가 있는 경우에 한해, 이벤트 미발생 구간의 영상을 저장한다. 또한 영상 저장 시 목표 저장 공간과 잔여 저장 공간 그리고 저장영상의 크기를 고려하여 비트율을 적응적으로 조정함으로써, 저장영상의 크기를 조정하는 방법으로 영상 저장에 필요한 저장 공간을 목표 저장 공간과 일치시킨다.As described above, the present invention confirms whether or not an event is generated for each section of the image, stores the image of the event occurrence section in priority, and stores the image of the non-event occurrence section only when there is room for the storage space. Also, the image storage size is adjusted by adjusting the bit rate adaptively considering the target storage space, the remaining storage space, and the size of the storage image in the image storage, thereby matching the storage space necessary for image storage with the target storage space.
본 발명의 실시예에 따른 이벤트 감지 기반 영상 저장 방법 및 장치는, 이벤트 발생 빈도와 상관없이 저장영상의 크기를 일정하게 유지할 수 있어 시스템의 저장 공간을 정확히 예측하여, 저장 공간 부족문제를 해결할 수 있는 효과가 있다.The event detection based image storing method and apparatus according to an embodiment of the present invention can maintain the size of a stored image constant regardless of the frequency of occurrence of an event and accurately estimate the storage space of the system, It is effective.
이와 같이, 본 발명이 속하는 기술분야의 당업자는 본 발명이 그 기술적 사상이나 필수적 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적인 것이 아닌 것으로서 이해해야만 한다. 본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 등가 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.Thus, those skilled in the art will appreciate that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. It is therefore to be understood that the embodiments described above are to be considered in all respects only as illustrative and not restrictive. The scope of the present invention is defined by the appended claims rather than the detailed description and all changes or modifications derived from the meaning and scope of the claims and their equivalents are to be construed as being included within the scope of the present invention do.
10 : 외부 카메라 20 : 이벤트 감지 기반 영상 저장 장치
21 : 스트림 수신 장치 22 : 신택스 복호화 장치
23 : 이벤트 감지장치 24 : 영상 크기 변환장치
25 : 영상 저장부 31 : 엔트로피 디코딩부
32 : 신택스 디코딩부 33 : 움직임 보상부
34 : 공간 예측부 35 : 역양자화부
36 : 역변환부 37 : 디블록킹 필터부10: external camera 20: event detection based video storage device
21: Stream receiving apparatus 22: Syntax decoding apparatus
23: event detection device 24: image size conversion device
25: image storage unit 31: entropy decoding unit
32: syntax decoding unit 33: motion compensation unit
34: Spatial prediction unit 35: Inverse quantization unit
36: inverting section 37: deblocking filter section
Claims (18)
상기 이미지 영상으로부터 이벤트 발생 여부를 판단하는 B 단계;
이벤트가 발생되었다고 판단된 경우, 상기 이벤트 발생 구간에 대응되는 이벤트 영상을 영상 저장을 위한 예비 공간에 우선 저장하는 C 단계; 및
상기 이벤트 영상이 저장되고 남은 공간이 존재하는 경우 비이벤트 발생 구간에 대응되는 비이벤트 영상을 저장하는 D 단계를 포함하되,
상기 C 단계는
상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하는 C-1 단계;
상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 큰 경우, 상기 이벤트 영상의 크기를 상기 예비 공간의 크기 이하로 줄이는 C-2 단계; 및
상기 줄어든 이벤트 영상을 상기 예비 공간에 저장하는 C-3 단계를 더 포함하고,
상기 영상의 크기 조절은 저장되는 영상의 비트율을 조절하여 상기 크기를 조절하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.A step of receiving an image from an external camera device;
Determining whether an event has occurred from the image;
A step C of storing an event image corresponding to the event occurrence period in a preliminary space for image storage when it is determined that an event has occurred; And
And a step D for storing a non-event image corresponding to a non-event occurrence period when the event image is stored and a remaining space exists,
In step C,
C-1 comparing the size of the event image with the size of the preliminary space;
A C-2 step of, when the size of the event image is larger than the size of the spare space, reducing the size of the event image to be less than the size of the spare space; And
Further comprising a step C-3 of storing the reduced event image in the preliminary space,
Wherein the size of the image is adjusted by adjusting a bit rate of an image to be stored.
상기 A 단계는
상기 카메라로부터 전달받은 스트림을 수신 받아 프레임단위로 구성하는 단계를 포함하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.The method according to claim 1,
The step A
And receiving the stream received from the camera and configuring the received stream in units of frames.
상기 C 단계는
상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하는 C-1 단계;
상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 작은 경우, 상기 이벤트 영상을 상기 예비 공간에 저장하는 C-2 단계; 및
기존 예비 공간의 크기에서 상기 저장된 이벤트 영상의 크기를 뺀 용량을 제2 예비 공간으로 정의하는 C-3 단계;
를 더 포함하며,
상기 D 단계는 상기 비이벤트 영상을 상기 제2 예비 공간으로 저장하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.The method according to claim 1,
In step C,
C-1 comparing the size of the event image with the size of the preliminary space;
A C-2 step of storing the event image in the preliminary space when the size of the event image is smaller than the size of the preliminary space; And
C-3 step of defining a capacity obtained by subtracting the size of the stored event image from the size of the existing spare space as a second preliminary space;
Further comprising:
Wherein the step (D) stores the non-event image as the second preliminary space.
B 단계는,
상기 전달받은 프레임 단위의 영상에서 각 프레임의 신택스(Syntax)를 복호화 하여 상기 신택스 정보를 통해 이벤트 발생 여부를 판단하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.3. The method of claim 2,
In step B,
And decoding the syntax of each frame in the received frame-based image to determine whether an event has occurred through the syntax information.
상기 B 단계는,
상기 영상 중 P 프레임의 매크로 블록의 움직임 벡터가 소정 크기 이상이며 유효계수가 소정 개수 이상 존재하는 제1 조건, 또는
상기 P 프레임에서 매크로 블록의 모드가 인트라 매크로 블록(Intra MB)으로 결정되는 제2 조건
만족하는 액티브 매크로 블록의 비율이 전체 프레임에서 소정 비율을 넘는 프레임을 이벤트 발생 프레임으로 판단하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.6. The method of claim 5,
In the step B,
A first condition that a motion vector of a macroblock of a P frame of the image is equal to or larger than a predetermined size and a predetermined number or more of effective coefficients exist,
A second condition in which the mode of a macroblock in the P frame is determined as an intra macroblock (Intra MB)
And determining a frame having a ratio of satisfied active macro blocks that exceeds a predetermined ratio in the entire frame as an event generation frame.
상기 D 단계는,
상기 비이벤트 영상의 크기를 계산하는 D-1 단계;
상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하는 D-2 단계;
상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 큰 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간의 크기 이하로 줄이는 D-3 단계; 및
상기 줄어든 비이벤트 영상을 상기 제2 예비 공간에 저장하는 D-4 단계를 더 포함하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.The method of claim 4, wherein
The step (D)
A step D-1 for calculating the size of the non-event image;
Comparing the size of the non-event image with the size of the second spare space;
If the size of the non-event image is larger than the size of the second spare space, reducing the size of the non-event image to a size smaller than the size of the second spare space; And
And storing the reduced non-event image in the second preliminary space.
상기 D 단계는,
상기 비이벤트 영상의 크기를 계산하는 D-1 단계;
상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하는 D-2 단계;
상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 작은 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간에 저장하는 D-6 단계를 더 포함하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 방법.5. The method of claim 4,
The step (D)
A step D-1 for calculating the size of the non-event image;
Comparing the size of the non-event image with the size of the second spare space;
And storing the size of the non-event image in the second spare space when the size of the non-event image is smaller than the size of the second spare space. Way.
상기 이미지 영상으로부터 이벤트 발생 여부를 판단하는 이벤트 감지 장치; 및
상기 이벤트 감지 장치가 상기 이미지 영상으로부터 이벤트가 발생했다고 판단하는 경우, 상기 이벤트 발생 구간에 대응되는 이벤트 영상을 영상 저장을 위한 예비 공간에 우선 저장하며, 상기 이벤트 영상이 저장되고 남은 공간이 존재하는 경우 비이벤트 발생 구간에 대응되는 비이벤트 영상을 저장하기 위한 영상 저장부를 포함하되,
상기 이벤트 감지 기반 영상 저장 장치는, 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하여, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 큰 경우, 상기 이벤트 영상의 크기를 상기 예비 공간의 크기 이하로 줄이기 위한 영상 크기 장치를 더 포함하며,
상기 영상 저장부는, 상기 줄어든 이벤트 영상을 상기 예비 공간에 저장하고,
상기 영상의 크기 조절은 저장되는 영상의 비트율을 조절하여 상기 크기를 조절하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.A stream receiving device for receiving an image from an external camera device;
An event detection device for determining whether an event has occurred from the image; And
If the event detection unit determines that an event has occurred from the image, the event image corresponding to the event occurrence period is first stored in the preliminary space for image storage. If the event image is stored and the remaining space exists And an image storage unit for storing a non-event image corresponding to a non-event occurrence period,
Wherein the event detection based image storage device compares the size of the event image with the size of the spare space, and when the size of the event image is larger than the size of the spare space, Further comprising an image size device for reducing the image size,
Wherein the image storage unit stores the reduced event image in the preliminary space,
Wherein the size of the image is adjusted by adjusting a bit rate of an image to be stored.
상기 스트림 수신 장치는 상기 카메라로부터 전달받은 스트림을 수신 받아 프레임단위로 구성하여 출력하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.11. The method of claim 10,
Wherein the stream receiving apparatus receives the stream received from the camera and outputs the stream in units of frames.
상기 이벤트 감지 기반 영상 저장 장치는, 상기 이벤트 영상의 크기와 상기 예비 공간의 크기를 비교하기 위한 영상 크기 장치를 더 포함하며,
상기 영상 저장부는, 상기 이벤트 영상의 크기가 상기 예비 공간의 크기보다 작은 경우, 상기 이벤트 영상을 상기 예비 공간에 저장하며, 상기 기존 예비 공간의 크기에서 상기 저장된 이벤트 영상의 크기를 뺀 용량을 제2 예비 공간으로 정의하고, 상기 비이벤트 영상을 상기 제2 예비 공간으로 저장하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.11. The method of claim 10,
The event detection based image storage apparatus may further include an image size device for comparing the size of the event image with the size of the preliminary space,
Wherein the image storage unit stores the event image in the preliminary space when the size of the event image is smaller than the size of the preliminary space and stores the capacity obtained by subtracting the size of the stored event image from the size of the existing preliminary space, Wherein the non-event image is defined as a spare space, and the non-event image is stored in the second spare space.
상기 이벤트 감지 기반 영상 저장 장치는,
상기 스트림 수신 장치에서 전달받은 프레임 단위의 영상에서 각 프레임의 신택스(Syntax)를 복호화 하여 상기 신택스 정보를 전달하기 위한 신택스 복호화 장치를 더 포함하고,
상기 이벤트 감지 장치는, 상기 신택스 정보를 통해 이벤트 발생 여부를 판단하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.12. The method of claim 11,
Wherein the event detection based video storage device comprises:
Further comprising a syntax decoding apparatus for decoding the syntax of each frame from an image of a frame unit received from the stream reception apparatus and transmitting the syntax information,
Wherein the event detection device determines whether an event has occurred through the syntax information.
상기 이벤트 감지 장치는,
상기 영상 중 P 프레임의 매크로 블록의 움직임 벡터가 소정 크기 이상이며 유효계수가 소정 개수 이상 존재하는 제1 조건, 또는
상기 P 프레임에서 매크로 블록의 모드가 인트라 매크로 블록(Intra MB)으로 결정되는 제2 조건
만족하는 액티브 매크로 블록의 비율이 전체 프레임에서 소정 비율을 넘는 프레임을 이벤트 발생 프레임으로 판단하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.15. The method of claim 14,
The event detection device includes:
A first condition that a motion vector of a macroblock of a P frame of the image is equal to or larger than a predetermined size and a predetermined number or more of effective coefficients exist,
A second condition in which the mode of a macroblock in the P frame is determined as an intra macroblock (Intra MB)
And determines that a frame having a ratio of satisfying active macroblocks exceeding a predetermined ratio in an entire frame is an event generation frame.
상기 영상 저장 장치는, 상기 비이벤트 영상의 크기를 계산하고, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하여, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 큰 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간의 크기 이하로 줄이고, 상기 줄어든 비이벤트 영상을 상기 제2 예비 공간에 저장하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.14. The method of claim 13,
Wherein the image storage device calculates the size of the non-event image, compares the size of the non-event image with the size of the second spare space, and if the size of the non-event image is larger than the size of the second spare space The size of the non-event image is reduced to be less than or equal to the size of the second spare space, and the reduced non-event image is stored in the second spare space.
상기 영상 저장 장치는, 상기 비이벤트 영상의 크기를 계산하고, 상기 비이벤트 영상의 크기와 상기 제2 예비 공간의 크기를 비교하여, 상기 비이벤트 영상의 크기가 상기 제2 예비 공간의 크기보다 작은 경우, 상기 비이벤트 영상의 크기를 상기 제2 예비 공간에 저장하는 것을 특징으로 하는 이벤트 감지 기반 영상 저장 장치.14. The method of claim 13,
Wherein the image storage device calculates the size of the non-event image, compares the size of the non-event image with the size of the second spare space, and if the size of the non-event image is smaller than the size of the second spare space Wherein the size of the non-event image is stored in the second spare space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160070466A KR101798768B1 (en) | 2016-06-07 | 2016-06-07 | Events detection based Image recording device and Method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160070466A KR101798768B1 (en) | 2016-06-07 | 2016-06-07 | Events detection based Image recording device and Method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101798768B1 true KR101798768B1 (en) | 2017-12-12 |
Family
ID=60943802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020160070466A KR101798768B1 (en) | 2016-06-07 | 2016-06-07 | Events detection based Image recording device and Method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101798768B1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101949676B1 (en) * | 2017-12-20 | 2019-02-19 | 이노뎁 주식회사 | syntax-based method of providing intrusion detection in compressed video |
KR102042397B1 (en) * | 2018-07-30 | 2019-11-08 | 이노뎁 주식회사 | syntax-based method of producing heat-map for compressed video |
CN112770081A (en) * | 2019-11-01 | 2021-05-07 | 杭州海康威视数字技术股份有限公司 | Parameter adjusting method and device for monitoring equipment, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008154228A (en) * | 2006-11-24 | 2008-07-03 | Victor Co Of Japan Ltd | Monitoring video recording controller |
JP2015143974A (en) * | 2013-12-27 | 2015-08-06 | キヤノン株式会社 | Processing device, processing method and program |
-
2016
- 2016-06-07 KR KR1020160070466A patent/KR101798768B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008154228A (en) * | 2006-11-24 | 2008-07-03 | Victor Co Of Japan Ltd | Monitoring video recording controller |
JP2015143974A (en) * | 2013-12-27 | 2015-08-06 | キヤノン株式会社 | Processing device, processing method and program |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101949676B1 (en) * | 2017-12-20 | 2019-02-19 | 이노뎁 주식회사 | syntax-based method of providing intrusion detection in compressed video |
WO2019124635A1 (en) * | 2017-12-20 | 2019-06-27 | 이노뎁 주식회사 | Syntax-based method for sensing object intrusion in compressed video |
KR102042397B1 (en) * | 2018-07-30 | 2019-11-08 | 이노뎁 주식회사 | syntax-based method of producing heat-map for compressed video |
WO2020027511A1 (en) * | 2018-07-30 | 2020-02-06 | 이노뎁 주식회사 | Method for generating syntax-based heat-map for compressed image |
CN112770081A (en) * | 2019-11-01 | 2021-05-07 | 杭州海康威视数字技术股份有限公司 | Parameter adjusting method and device for monitoring equipment, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10171824B2 (en) | System and method for adaptive frame re-compression in video processing system | |
JP5724038B2 (en) | Adaptive setting of reference frame buffer based on camera and background movement | |
US9357222B2 (en) | Video device finishing encoding within the desired length of time | |
US5686963A (en) | Method for performing rate control in a video encoder which provides a bit budget for each frame while employing virtual buffers and virtual buffer verifiers | |
US5929916A (en) | Variable bit rate encoding | |
US5682204A (en) | Video encoder which uses intra-coding when an activity level of a current macro-block is smaller than a threshold level | |
US5872598A (en) | Scene change detection using quantization scale factor rate control | |
US5878166A (en) | Field frame macroblock encoding decision | |
US8976860B2 (en) | Method and apparatus for determination of motion estimation search window area utilizing adaptive sliding window algorithm | |
US20190007678A1 (en) | Generating heat maps using dynamic vision sensor events | |
JP2003319341A (en) | Encoding apparatus and encoding method, and computer- readable recording medium | |
US5761398A (en) | Three stage hierarchal motion vector determination | |
US9307241B2 (en) | Video encoding method and a video encoding apparatus using the same | |
US5771316A (en) | Fade detection | |
KR101798768B1 (en) | Events detection based Image recording device and Method thereof | |
JP2002511669A (en) | Method and apparatus for adaptive encoding of video data stream | |
CN111988610B (en) | Method and bit rate controller for controlling the output bit rate of a video encoder | |
EP1838108A1 (en) | Processing video data at a target rate | |
US10979711B2 (en) | Method and encoder system for encoding video | |
US7764739B2 (en) | Moving picture encoding device and method with time constraint | |
US7440629B2 (en) | Image encoding apparatus and image encoding method | |
US20040233998A1 (en) | Methods and apparatus for improving video quality in statistical multiplexing | |
JP5741073B2 (en) | Image encoding apparatus, image encoding method, and image encoding program | |
Mizosoe et al. | Very Low-Delay H. 264 Codec for Consumer Application | |
EP3989587A1 (en) | Image processing device and method of pre-processing images of a video stream before encoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GRNT | Written decision to grant |