Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7638191B2 - Imaging device, image analysis system, encoding method, and encoding program - Google Patents
[go: Go Back, main page]

JP7638191B2 - Imaging device, image analysis system, encoding method, and encoding program - Google Patents

Imaging device, image analysis system, encoding method, and encoding program Download PDF

Info

Publication number
JP7638191B2
JP7638191B2 JP2021170204A JP2021170204A JP7638191B2 JP 7638191 B2 JP7638191 B2 JP 7638191B2 JP 2021170204 A JP2021170204 A JP 2021170204A JP 2021170204 A JP2021170204 A JP 2021170204A JP 7638191 B2 JP7638191 B2 JP 7638191B2
Authority
JP
Japan
Prior art keywords
image
importance
detection area
encoded data
metadata
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2021170204A
Other languages
Japanese (ja)
Other versions
JP2023060547A (en
Inventor
昌明 島田
弘紀 斉藤
裕之 小森
良平 衣川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2021170204A priority Critical patent/JP7638191B2/en
Publication of JP2023060547A publication Critical patent/JP2023060547A/en
Application granted granted Critical
Publication of JP7638191B2 publication Critical patent/JP7638191B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Studio Devices (AREA)

Description

本開示は、撮像装置、画像解析システム、符号化方法、及び符号化プログラムに関する。 The present disclosure relates to an imaging device, an image analysis system, an encoding method, and an encoding program.

ユーザは、監視カメラなどから取得された映像をリアルタイムで視聴することができる。また、ユーザは、記録媒体に記録された当該映像を視聴することができる。近年、コンピュータが映像を解析する技術が普及している。当該技術を用いることで、人物、物の種別、物の属性などが、特定される。 Users can view video captured by surveillance cameras and other devices in real time. Users can also view the video recorded on a recording medium. In recent years, computer-based video analysis technology has become widespread. Using this technology, people, types of objects, object attributes, and so on can be identified.

映像(すなわち、複数の画像)の中の1つの画像を解析する場合、画像全体を対象として、解析が行われない。例えば、顔認証を行う場合、まず、画像の中から顔領域が検出される。顔領域が検出された後、顔領域に対して、顔認証が行われる。顔領域の検出処理の負荷は、小さい。そのため、撮像装置で顔領域の検出処理が行われる場合がある。一方、顔認証の負荷は、大きい。そのため、顔認証は、解析装置で行われる。ここで、顔領域に対してイントラ符号化を行う技術が提案されている(特許文献1を参照)。 When analyzing one image from a video (i.e., multiple images), the analysis is not performed on the entire image. For example, when performing face recognition, a face area is first detected from within the image. After the face area is detected, face recognition is performed on the face area. The load of face area detection processing is small. Therefore, face area detection processing may be performed on an imaging device. On the other hand, the load of face recognition is large. Therefore, face recognition is performed on an analysis device. Here, a technology has been proposed that performs intra-coding on face areas (see Patent Document 1).

特開2017-225068号公報JP 2017-225068 A

上記の技術のように、顔領域が含まれる画像をイントラフレームとする方法が考えられる。人がほとんど動かない場合、ほぼ全ての画像がイントラフレームになる。より正解に言えば、対象物がほとんど動かない場合、ほぼ全ての画像がイントラフレームになる。ほぼ全ての画像がイントラフレームになることは、後段の装置に送信する送信データ量が大きくなる。 As with the above technology, one possible method is to treat images that include face areas as intraframes. If a person barely moves, almost all of the image will be intraframes. Or more precisely, if the subject barely moves, almost all of the image will be intraframes. Having almost all images be intraframes means that the amount of data sent to downstream devices will be large.

本開示の目的は、送信データ量を軽減することである。 The purpose of this disclosure is to reduce the amount of data transmitted.

本開示の一態様に係る撮像装置が提供される。撮像装置は、対象物を撮像する。撮像装置は、前記対象物を含む第1の画像を取得し、前記第1の画像よりも前に生成された画像であり、かつ前記対象物を含む第2の画像の重要度、前記第2の画像内の前記対象物の検出位置、及び前記第2の画像内の前記対象物の第2の検出領域を示す情報を取得する取得部と、前記第1の画像に基づいて、前記対象物を検出する検出部と、前記第2の画像内の前記対象物の検出位置と、前記第1の画像内の前記対象物の検出位置とを比較し、前記第2の検出領域と、前記第1の画像内の前記対象物の第1の検出領域とを比較し、検出位置の差及び検出領域の差が予め定められた第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも狭い、又は前記第1の検出領域と前記第2の検出領域とが同じである場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも小さい値に決定する重要度決定部と、前記第1の画像の重要度が予め定められた第2の閾値よりも小さい場合、前記第1の画像をイントラフレーム以外のフレームに決定する符号化決定部と、決定内容がイントラフレーム以外のフレームを示している場合、前記第1の画像をイントラフレーム以外のフレームとして、符号化する符号化部と、符号化されたデータを送信する送信部と、を有する。 An imaging device according to one aspect of the present disclosure is provided. The imaging device captures an image of an object. The imaging device includes an acquisition unit that acquires a first image including the object, and acquires information indicating the importance of a second image that is an image generated before the first image and includes the object, a detection position of the object in the second image, and a second detection area of the object in the second image, and a detection unit that detects the object based on the first image, and compares the detection position of the object in the second image with the detection position of the object in the first image, compares the second detection area with the first detection area of the object in the first image, and detects whether the difference in detection position and the difference in detection area are equal to or less than a predetermined first threshold. and if the first detection area is narrower than the second detection area or the first detection area is the same as the second detection area, the importance determination unit determines the importance of the first image to be a value smaller than the importance of the second image; if the importance of the first image is smaller than a predetermined second threshold, the encoding determination unit determines the first image to be a frame other than an intraframe; if the determination indicates a frame other than an intraframe, the encoding unit encodes the first image as a frame other than an intraframe; and a transmission unit transmits the encoded data.

本開示によれば、送信データ量を軽減することができる。 This disclosure makes it possible to reduce the amount of data transmitted.

画像解析システムを示す図である。FIG. 1 illustrates an image analysis system. 撮像装置が有するハードウェアを示す図である。FIG. 2 is a diagram illustrating hardware included in the imaging apparatus. 撮像装置の機能を示すブロック図である。FIG. 2 is a block diagram showing functions of the imaging apparatus. 撮像装置が実行する処理の例を示すフローチャートである。10 is a flowchart illustrating an example of processing executed by the imaging device. メタデータの例を示す図である。FIG. 13 is a diagram illustrating an example of metadata. 重要度決定処理の例を示すフローチャート(その1)である。11 is a flowchart (part 1) illustrating an example of an importance determination process. 重要度決定処理の例を示すフローチャート(その2)である。13 is a flowchart (part 2) illustrating an example of the importance determination process. (A),(B)は、重要度決定処理の具体例を示す図である。13A and 13B are diagrams illustrating a specific example of importance determination processing. イントラ符号化決定処理の例のフローチャートを示す図である。FIG. 13 is a flowchart illustrating an example of an intra-coding decision process. 記録装置と解析装置の機能を示すブロック図である。FIG. 2 is a block diagram showing the functions of a recording device and an analysis device. 加工されたメタデータの例を示す図である。FIG. 13 is a diagram showing an example of processed metadata. 記録装置の一部の処理を示すフローチャートである。4 is a flowchart showing a part of the process of the recording device. メタデータの送信処理の例を示すフローチャートである。13 is a flowchart illustrating an example of a metadata transmission process. 符号化データの送信処理の例を示すフローチャートである。13 is a flowchart illustrating an example of a transmission process of encoded data. 解析装置が実行する処理の例を示すフローチャートである。13 is a flowchart illustrating an example of a process executed by the analysis device.

以下、図面を参照しながら実施の形態を説明する。以下の実施の形態は、例にすぎず、本開示の範囲内で種々の変更が可能である。 The following describes an embodiment with reference to the drawings. The following embodiment is merely an example, and various modifications are possible within the scope of this disclosure.

実施の形態.
図1は、画像解析システムを示す図である。画像解析システムは、撮像装置100、記録装置200、及び解析装置300を含む。撮像装置100と記録装置200とは、ネットワーク10を介して接続する。記録装置200と解析装置300とは、ネットワーク20を介して接続する。
Embodiment
1 is a diagram showing an image analysis system. The image analysis system includes an imaging device 100, a recording device 200, and an analysis device 300. The imaging device 100 and the recording device 200 are connected via a network 10. The recording device 200 and the analysis device 300 are connected via a network 20.

撮像装置100は、対象物を撮像する。なお、対象物は、人、動物、機械(例えば、自動車)などである。また、撮像装置100は、符号化方法を実行する装置である。
記録装置200は、撮像装置100から受信したデータを格納する。
解析装置300は、記録装置200に格納されているデータを用いて解析を行う。例えば、解析装置300は、PC(Personal Computer)である。
The imaging device 100 captures an image of an object. The object may be a person, an animal, a machine (e.g., an automobile), etc. The imaging device 100 is also a device that executes an encoding method.
The recording device 200 stores the data received from the imaging device 100 .
Analysis device 300 performs analysis using the data stored in recording device 200. For example, analysis device 300 is a PC (Personal Computer).

次に、撮像装置100が有するハードウェアを説明する。
図2は、撮像装置が有するハードウェアを示す図である。撮像装置100は、プロセッサ101、揮発性記憶装置102、及び不揮発性記憶装置103を有する。
Next, the hardware of the imaging device 100 will be described.
2 is a diagram showing hardware included in the image capturing apparatus 100. The image capturing apparatus 100 includes a processor 101, a volatile storage device 102, and a non-volatile storage device 103.

プロセッサ101は、撮像装置100全体を制御する。例えば、プロセッサ101は、CPU(Central Processing Unit)、FPGA(Field Programmable Gate Array)などである。プロセッサ101は、マルチプロセッサでもよい。また、撮像装置100は、処理回路を有してもよい。 The processor 101 controls the entire imaging device 100. For example, the processor 101 is a CPU (Central Processing Unit) or an FPGA (Field Programmable Gate Array). The processor 101 may be a multiprocessor. The imaging device 100 may also have a processing circuit.

揮発性記憶装置102は、撮像装置100の主記憶装置である。例えば、揮発性記憶装置102は、RAM(Random Access Memory)である。不揮発性記憶装置103は、撮像装置100の補助記憶装置である。例えば、不揮発性記憶装置103は、HDD(Hard Disk Drive)、又はSSD(Solid State Drive)である。
記録装置200と解析装置300とは、撮像装置100と同様に、プロセッサ、揮発性記憶装置、及び不揮発性記憶装置を有する。
The volatile storage device 102 is a main storage device of the imaging device 100. For example, the volatile storage device 102 is a random access memory (RAM). The non-volatile storage device 103 is an auxiliary storage device of the imaging device 100. For example, the non-volatile storage device 103 is a hard disk drive (HDD) or a solid state drive (SSD).
Similar to the imaging device 100, the recording device 200 and the analysis device 300 each include a processor, a volatile storage device, and a non-volatile storage device.

次に、撮像装置100が有する機能を説明する。
図3は、撮像装置の機能を示すブロック図である。撮像装置100は、撮像部110、取得部120、検出部130、重要度決定部140、符号化決定部150、符号化部160、メタデータ生成部170、多重化部180、及び送信部190を有する。
Next, functions of the imaging device 100 will be described.
3 is a block diagram showing the functions of the imaging apparatus 100. The imaging apparatus 100 includes an imaging unit 110, an acquisition unit 120, a detection unit 130, an importance determination unit 140, an encoding determination unit 150, an encoding unit 160, a metadata generation unit 170, a multiplexing unit 180, and a transmission unit 190.

取得部120、検出部130、重要度決定部140、符号化決定部150、符号化部160、メタデータ生成部170、多重化部180、及び送信部190の一部又は全部は、処理回路によって実現してもよい。また、取得部120、検出部130、重要度決定部140、符号化決定部150、符号化部160、メタデータ生成部170、多重化部180、及び送信部190の一部又は全部は、プロセッサ101が実行するプログラムのモジュールとして実現してもよい。例えば、プロセッサ101が実行するプログラムは、符号化プログラムとも言う。例えば、符号化プログラムは、記録媒体に記録されている。 The acquisition unit 120, the detection unit 130, the importance determination unit 140, the encoding decision unit 150, the encoding unit 160, the metadata generation unit 170, the multiplexing unit 180, and the transmission unit 190 may be partly or entirely realized by a processing circuit. In addition, the acquisition unit 120, the detection unit 130, the importance determination unit 140, the encoding decision unit 150, the encoding unit 160, the metadata generation unit 170, the multiplexing unit 180, and the transmission unit 190 may be partly or entirely realized as a program module executed by the processor 101. For example, the program executed by the processor 101 is also referred to as an encoding program. For example, the encoding program is recorded on a recording medium.

撮像部110は、対象物を撮像する。
取得部120は、画像を取得する。例えば、取得部120は、対象物を含む画像を取得する。また、取得部120は、映像(すなわち、複数の画像)を取得する。よって、この文は、次のように表現できる。取得部120は、画像を撮像部110から逐次取得する。ここで、画像は、フレームとも言う。
上記したように、取得部120は、画像を取得する。例えば、取得された画像は、今回生成された画像又は第1の画像とも言う。
The imaging unit 110 captures an image of an object.
The acquisition unit 120 acquires an image. For example, the acquisition unit 120 acquires an image including an object. Also, the acquisition unit 120 acquires a video (i.e., a plurality of images). Therefore, this sentence can be expressed as follows. The acquisition unit 120 sequentially acquires images from the imaging unit 110. Here, an image is also called a frame.
As described above, the acquisition unit 120 acquires an image. For example, the acquired image is also referred to as a currently generated image or a first image.

取得部120は、第1の画像よりも前に生成された画像であり、かつ対象物を含む第2の画像の重要度を示す情報を取得する。第2の画像は、第1の画像の1つ前に生成された画像でもよいし、第1の画像の2つ前に生成された画像でもよい。また、取得部120は、第2の画像内の対象物の検出位置、及び第2の画像内の対象物の検出領域を示す情報を取得する。以下の説明では、第2の画像は、前回生成された画像と呼ぶ。 The acquisition unit 120 acquires information indicating the importance of a second image, which is an image generated before the first image and includes an object. The second image may be an image generated one image before the first image, or an image generated two images before the first image. The acquisition unit 120 also acquires information indicating the detection position of the object in the second image and the detection area of the object in the second image. In the following description, the second image is referred to as the previously generated image.

検出部130、重要度決定部140、符号化決定部150、及び符号化部160の機能については、後で説明する。
メタデータ生成部170は、取得された画像のメタデータを生成する。
多重化部180は、符号化部160が実行することにより得られた符号化データと、メタデータとを1つにまとめて、多重化データを生成する。例えば、当該多重化データは、第1の多重化データと呼んでもよい。
送信部190は、多重化データを記録装置200に送信する。
The functions of the detection unit 130, importance determination unit 140, encoding determination unit 150, and encoding unit 160 will be described later.
The metadata generating unit 170 generates metadata for the acquired image.
The multiplexing unit 180 combines the encoded data obtained by the encoding unit 160 and the metadata into one to generate multiplexed data. For example, the multiplexed data may be called first multiplexed data.
The transmitting unit 190 transmits the multiplexed data to the recording device 200 .

次に、撮像装置100が実行する処理を、フローチャートを用いて、説明する。
図4は、撮像装置が実行する処理の例を示すフローチャートである。
(ステップS11)取得部120は、画像を撮像部110から取得する。なお、当該画像は、今回生成された画像又は第1の画像である。
(ステップS12)検出部130は、取得された画像に基づいて、対象物検出処理を実行する。例えば、検出部130は、物体認識技術を用いて、対象物検出処理を実行する。画像に対象物が含まれている場合、検出部130は、対象物を検出する。
Next, the process executed by the image capture device 100 will be described with reference to a flowchart.
FIG. 4 is a flowchart illustrating an example of processing executed by the imaging device.
(Step S11) The acquisition unit 120 acquires an image from the imaging unit 110. Note that the image is the currently generated image or the first image.
(Step S12) The detection unit 130 executes an object detection process based on the acquired image. For example, the detection unit 130 executes the object detection process using an object recognition technique. If an object is included in the image, the detection unit 130 detects the object.

(ステップS13)重要度決定部140は、重要度決定処理を実行する。
(ステップS14)符号化決定部150は、イントラ符号化決定処理を行う。
(Step S13) The importance determining unit 140 executes an importance determining process.
(Step S14) The coding decision unit 150 performs intra-coding decision processing.

(ステップS15)符号化部160は、決定内容に従って、符号化を行う。詳細には、符号化部160は、決定内容がイントラフレームを示している場合、ステップS11で取得された画像をイントラフレームとして、符号化する。また、符号化部160は、決定内容がイントラフレーム以外のフレームを示している場合、ステップS11で取得された画像をPフレーム(Predicted Frame)又はBフレーム(Bi-directional Predicted Frame)として、符号化する。 (Step S15) The encoding unit 160 performs encoding according to the determined content. In particular, if the determined content indicates an intra frame, the encoding unit 160 encodes the image acquired in step S11 as an intra frame. Furthermore, if the determined content indicates a frame other than an intra frame, the encoding unit 160 encodes the image acquired in step S11 as a P frame (Predicted Frame) or a B frame (Bi-directional Predicted Frame).

(ステップS16)メタデータ生成部170は、検出部130による検出結果と、重要度決定処理によって決定される重要度とに基づいて、メタデータを生成する。ここで、メタデータを例示する。 (Step S16) The metadata generation unit 170 generates metadata based on the detection result by the detection unit 130 and the importance determined by the importance determination process. Here, examples of metadata are shown.

図5は、メタデータの例を示す図である。メタデータは、画像解析の補助情報として、用いられる。メタデータは、オブジェクト情報と画像情報とを含む。例えば、オブジェクト情報は、検出結果に基づく情報である。画像情報には、イントラフレームであるか否かを示す情報、重要度などが含まれる。 Figure 5 shows an example of metadata. Metadata is used as auxiliary information for image analysis. Metadata includes object information and image information. For example, object information is information based on detection results. Image information includes information indicating whether it is an intraframe, importance, etc.

(ステップS17)多重化部180は、符号化部160が実行することにより得られた符号化データと、メタデータとを1つにまとめて、多重化データを生成する。また、多重化部180は、撮像時刻を含む多重化データを生成してもよい。
(ステップS18)送信部190は、多重化データを記録装置200に送信する。また、送信部190は、符号化データのみを記録装置200に送信してもよい。さらに、送信部190は、記録装置200以外の装置に多重化データ又は符号化データを送信してもよい。
(Step S17) The multiplexing unit 180 generates multiplexed data by combining the encoded data obtained by the encoding unit 160 and the metadata. The multiplexing unit 180 may generate multiplexed data including the image capture time.
(Step S18) The transmitting unit 190 transmits the multiplexed data to the recording device 200. Alternatively, the transmitting unit 190 may transmit only the encoded data to the recording device 200. Furthermore, the transmitting unit 190 may transmit the multiplexed data or the encoded data to a device other than the recording device 200.

次に、重要度決定処理を説明する。
図6は、重要度決定処理の例を示すフローチャート(その1)である。図6,7の処理は、ステップS13に対応する。
Next, the importance determination process will be described.
6 is a flowchart (part 1) showing an example of the importance determination process. The process in FIGS. 6 and 7 corresponds to step S13.

ここで、重要度を説明する。重要度は、0~100の値で表されるものとする。0に近い値ほど、重要度は、小さい。100に近い値ほど、重要度は、大きい。初期値は、50とする。また、重要度は、0~100の範囲で表されなくてもよい。すなわち、重要度の表現は、当該範囲の表現に限らない。 Here, importance will be explained. Importance is expressed as a value between 0 and 100. The closer the value is to 0, the lower the importance. The closer the value is to 100, the higher the importance. The initial value is 50. Also, importance does not have to be expressed in the range between 0 and 100. In other words, the expression of importance is not limited to this range.

(ステップS21)重要度決定部140は、対象物検出処理で対象物が検出されたか否かを判定する。対象物が検出された場合、重要度決定部140は、今回生成された画像(すなわち、ステップS11で取得された画像)に識別番号を割当てる。そして、処理は、ステップS22に進む。対象物が検出されなかった場合、重要度決定部140は、今回生成された画像の重要度を0に決定する。そして、処理は、終了する。 (Step S21) The importance determination unit 140 determines whether or not an object has been detected in the object detection process. If an object has been detected, the importance determination unit 140 assigns an identification number to the image generated this time (i.e., the image acquired in step S11). Then, the process proceeds to step S22. If an object has not been detected, the importance determination unit 140 determines the importance of the image generated this time to be 0. Then, the process ends.

(ステップS22)重要度決定部140は、前回生成された画像から対象物が検出されたか否かを判定する。前回生成された画像から対象物が検出されていない場合、重要度決定部140は、新たな対象物が検出されたと判定する。そして、処理は、ステップS26に進む。前回生成された画像から対象物が検出された場合、処理は、ステップS23に進む。 (Step S22) The importance determination unit 140 determines whether or not an object has been detected from the previously generated image. If an object has not been detected from the previously generated image, the importance determination unit 140 determines that a new object has been detected. Then, the process proceeds to step S26. If an object has been detected from the previously generated image, the process proceeds to step S23.

(ステップS23)重要度決定部140は、前回生成された画像内の対象物の検出位置と、今回生成された画像内の対象物の検出位置とを比較する。また、重要度決定部140は、前回生成された画像内の対象物の検出領域(例えば、第2の検出領域とも言う。)と、今回生成された画像内の対象物の検出領域(例えば、第1の検出領域とも言う。)とを比較する。 (Step S23) The importance determination unit 140 compares the detection position of the object in the previously generated image with the detection position of the object in the currently generated image. The importance determination unit 140 also compares the detection area of the object in the previously generated image (e.g., also referred to as the second detection area) with the detection area of the object in the currently generated image (e.g., also referred to as the first detection area).

(ステップS24)重要度決定部140は、検出位置の差及び検出領域の差が予め定められた閾値以下であるか否かを判定する。ここで、当該閾値は、第1の閾値とも言う。検出位置の差及び検出領域の差が当該閾値以下である場合、重要度決定部140は、前回生成された画像内の対象物と、今回生成された画像内の対象物とが同じ対象物であると判定する。そして、処理は、ステップS25に進む。検出位置の差及び検出領域の差が当該閾値以下でない場合、処理は、ステップS32に進む。
なお、検出位置の差と比較される閾値と、検出領域の差と比較される閾値とは、異なってもよい。
(Step S24) The importance determination unit 140 judges whether the difference in the detection position and the difference in the detection area are equal to or less than a predetermined threshold. Here, the threshold is also referred to as a first threshold. If the difference in the detection position and the difference in the detection area are equal to or less than the threshold, the importance determination unit 140 judges that the object in the image generated previously and the object in the image generated this time are the same object. Then, the process proceeds to step S25. If the difference in the detection position and the difference in the detection area are not equal to or less than the threshold, the process proceeds to step S32.
The threshold value to be compared with the difference in the detection position and the threshold value to be compared with the difference in the detection area may be different.

(ステップS25)重要度決定部140は、今回生成された画像に割当てられている識別番号を、前回生成された画像に割当てられている識別番号に変更する。そして、処理は、ステップS31に進む。
(ステップS26)重要度決定部140は、今回生成された画像の重要度を初期値に決定する。そして、処理は、終了する。
(Step S25) The importance determining unit 140 changes the identification number assigned to the currently generated image to the identification number assigned to the previously generated image, and the process then proceeds to step S31.
(Step S26) The importance determining unit 140 determines the importance of the currently generated image to be an initial value, and the process then ends.

図7は、重要度決定処理の例を示すフローチャート(その2)である。
(ステップS31)重要度決定部140は、今回生成された画像の検出領域(以下、今回検出領域)の方が前回生成された画像の検出領域(以下、前回検出領域)よりも広いか否かを判定する。
今回検出領域の方が前回検出領域よりも広い場合、処理は、ステップS32に進む。今回検出領域の方が前回検出領域よりも狭い、又は今回検出領域と前回検出領域とが同じである場合、処理は、ステップS33に進む。
FIG. 7 is a flowchart (part 2) illustrating an example of the importance determination process.
(Step S31) The importance determining unit 140 determines whether the detection area of the image generated this time (hereinafter, "current detection area") is larger than the detection area of the image generated previously (hereinafter, "previous detection area").
If the current detection area is larger than the previous detection area, the process proceeds to step S32. If the current detection area is smaller than the previous detection area, or if the current detection area and the previous detection area are the same, the process proceeds to step S33.

(ステップS32)重要度決定部140は、今回生成された画像の重要度を、前回生成された画像の重要度よりも大きい値に決定する。そして、処理は、終了する。
(ステップS33)重要度決定部140は、今回生成された画像の重要度を、前回生成された画像の重要度よりも小さい値に決定する。そして、処理は、終了する。
なお、ステップS24の後にステップS32が実行される場合、重要度決定部140は、今回生成された画像の重要度を初期値に決定してもよい。
(Step S32) The importance determining unit 140 determines the importance of the currently generated image to be greater than the importance of the previously generated image, and the process then ends.
(Step S33) The importance determining unit 140 determines the importance of the currently generated image to be a value smaller than the importance of the previously generated image, and the process then ends.
When step S32 is executed after step S24, the importance determining section 140 may determine the importance of the currently generated image to be an initial value.

ここで、重要度決定処理の具体例を示す。
図8(A),(B)は、重要度決定処理の具体例を示す図である。図8(A)は、ステップS31の後にステップS32が実行される場合を示している。図8(B)は、ステップS31の後にステップS33が実行される場合を示している。
Here, a specific example of the importance determination process will be shown.
8A and 8B are diagrams showing a specific example of the importance determination process. Fig. 8A shows a case where step S32 is executed after step S31. Fig. 8B shows a case where step S33 is executed after step S31.

図8(A),(B)が示す時刻t-nの画像400は、前回生成された画像とする。なお、nは、正の整数である。また、図8(A),(B)は、前回検出領域401を示している。前回生成された画像の重要度は、40である。
図8(A),(B)が示す時刻tの画像410は、今回生成された画像である。また、図8(A),(B)は、今回検出領域411を示している。
An image 400 at time t-n shown in Figures 8(A) and (B) is assumed to be a previously generated image. Note that n is a positive integer. Figures 8(A) and (B) also show a previously detected area 401. The importance of the previously generated image is 40.
An image 410 at time t shown in Figures 8A and 8B is an image generated this time. Also, Figures 8A and 8B show a current detection area 411.

図8(A)では、今回検出領域411の方が、前回検出領域401よりも広い。そのため、重要度決定部140は、画像410の重要度を70に決定する。また、検出領域が広いほど、解析装置300による解析精度が上がる。そのため、検出領域が広い場合、大きい値の重要度が、決定される。
図8(B)では、今回検出領域411の方が、前回検出領域401よりも狭い。そのため、重要度決定部140は、画像410の重要度を20に決定する。
8A, current detection area 411 is larger than previous detection area 401. Therefore, importance determination unit 140 determines the importance of image 410 to be 70. Furthermore, the larger the detection area, the higher the analysis accuracy of analysis device 300. Therefore, when the detection area is large, a large importance value is determined.
8B, the current detection area 411 is narrower than the previous detection area 401. Therefore, the importance determining unit 140 determines the importance of the image 410 to be 20.

図7が示すように、対象物がほとんど動かない場合、画像の重要度は、徐々に下がっていく。また、対象物が見切れている場合、又は対象物が障害物と被ることで、対象物の一部が欠損している場合、小さい値の重要度が、決定される。 As shown in Figure 7, if the object is barely moving, the importance of the image gradually decreases. Also, if the object is cut off, or if the object is covered by an obstacle and part of the object is missing, a small importance value is determined.

また、重要度は、解析装置300の解析内容によって決定されてもよい。例えば、解析装置300が混雑度を解析する場合、重要度決定部140は、顔の数が多い画像に、大きい値の重要度を決定する。重要度決定部140は、顔の数が少ない画像に、小さい値の重要度を決定する。また、例えば、対象物が大きく写っている画像を解析装置300が解析する場合、重要度決定部140は、予め定められた基準範囲と今回検出領域とを比較する。重要度決定部140は、今回検出領域が当該基準範囲よりも広い場合、今回生成された画像の重要度を大きい値に決定する。重要度決定部140は、今回検出領域が当該基準範囲よりも狭い場合、今回生成された画像の重要度を小さい値に決定する。また、例えば、特定の時刻に生成された画像を解析装置300が解析する場合、重要度決定部140は、特定の時刻に生成された画像の重要度を大きい値に決定する。そして、重要度決定部140は、他の時刻に生成された画像の重要度を小さい値に決定する。 The importance may also be determined by the analysis content of the analysis device 300. For example, when the analysis device 300 analyzes the degree of congestion, the importance determination unit 140 determines a large value of importance for an image with a large number of faces. The importance determination unit 140 determines a small value of importance for an image with a small number of faces. Also, for example, when the analysis device 300 analyzes an image in which an object is large, the importance determination unit 140 compares a predetermined reference range with the current detection area. If the current detection area is wider than the reference range, the importance determination unit 140 determines the importance of the image generated this time to a large value. If the current detection area is narrower than the reference range, the importance determination unit 140 determines the importance of the image generated this time to a small value. Also, for example, when the analysis device 300 analyzes an image generated at a specific time, the importance determination unit 140 determines the importance of the image generated at the specific time to a large value. The importance determination unit 140 then determines the importance of images generated at other times to be a smaller value.

次に、イントラ符号化決定処理を説明する。
図9は、イントラ符号化決定処理の例のフローチャートを示す図である。図9の処理は、ステップS14に対応する。
(ステップS41)符号化決定部150は、今回生成された画像の重要度と、予め定められた閾値とを比較する。例えば、当該閾値は、50、60などである、なお、当該閾値は、検出シーン及び対象物によって、変更されてもよい。また、当該閾値は、第2の閾値とも言う。
Next, the intra-coding decision process will be described.
9 is a flowchart illustrating an example of the intra-coding decision process, which corresponds to step S14.
(Step S41) The encoding decision unit 150 compares the importance of the currently generated image with a predetermined threshold. For example, the threshold is 50, 60, etc. Note that the threshold may be changed depending on the detected scene and object. The threshold is also called the second threshold.

(ステップS42)符号化決定部150は、今回生成された画像の重要度が当該閾値以上であるか否かを判定する。今回生成された画像の重要度が当該閾値以上である場合、処理は、ステップS43に進む。今回生成された画像の重要度が当該閾値よりも小さい場合、符号化決定部150は、今回生成された画像をイントラフレームにしないことを決定する。すなわち、符号化決定部150は、今回生成された画像をイントラフレーム以外のフレームに決定する。詳細には、符号化決定部150は、今回生成された画像をPフレーム又はBフレームに決定する。そして、処理は、終了する。
(ステップS43)符号化決定部150は、今回生成された画像をイントラフレームに決定する。
(Step S42) The encoding decision unit 150 determines whether the importance of the currently generated image is equal to or greater than the threshold. If the importance of the currently generated image is equal to or greater than the threshold, the process proceeds to step S43. If the importance of the currently generated image is less than the threshold, the encoding decision unit 150 decides not to make the currently generated image an intraframe. That is, the encoding decision unit 150 decides that the currently generated image will be a frame other than an intraframe. In detail, the encoding decision unit 150 decides that the currently generated image will be a P frame or a B frame. Then, the process ends.
(Step S43) The encoding decision unit 150 decides that the currently generated image is an intra-frame.

ここで、対象物がほとんど動かない場合、ほぼ全ての画像がイントラフレームに設定される場合がある。ほぼ全ての画像がイントラフレームになることは、後段の装置(例えば、記録装置)に送信する送信データ量が大きくなる。 Here, if the subject is barely moving, almost all images may be set as intraframes. If almost all images are intraframes, the amount of data sent to downstream devices (e.g., recording devices) will be large.

実施の形態によれば、対象物がほとんど動かない場合、重要度が下がる。重要度が下がることで、今回生成された画像がPフレーム又はBフレームに決定される回数が増える。言い換えれば、今回生成された画像がイントラフレームに決定される回数が、減る。よって、少ないイントラフレームと、多くのPフレーム又はBフレームとが決定されたときの送信データ量は、ほぼ全ての画像がイントラフレームに決定されたときの送信データ量よりも少ない。よって、撮像装置100又は画像解析システムは、送信データ量を軽減することができる。 According to the embodiment, when the object hardly moves, the importance is reduced. The reduced importance increases the number of times the currently generated image is determined to be a P frame or a B frame. In other words, the number of times the currently generated image is determined to be an intra frame decreases. Therefore, the amount of data transmitted when few intra frames and many P frames or B frames are determined is less than the amount of data transmitted when almost all images are determined to be intra frames. Therefore, the imaging device 100 or the image analysis system can reduce the amount of data transmitted.

次に、記録装置200と解析装置300について、説明する。
図10は、記録装置と解析装置の機能を示すブロック図である。記録装置200は、受信部210、分離部220、符号化データ記憶部230、加工部240、メタデータ記憶部250、メタデータ送信制御部260、及び符号化データ送信制御部270を有する。
Next, the recording device 200 and the analysis device 300 will be described.
10 is a block diagram showing the functions of the recording device and the analysis device. The recording device 200 has a receiving unit 210, a separating unit 220, an encoded data storage unit 230, a processing unit 240, a metadata storage unit 250, a metadata transmission control unit 260, and an encoded data transmission control unit 270.

符号化データ記憶部230とメタデータ記憶部250とは、記録装置200が有する揮発性記憶装置又は不揮発性記憶装置に確保した記憶領域として実現してもよい。
受信部210、分離部220、加工部240、メタデータ送信制御部260、及び符号化データ送信制御部270の一部又は全部は、記録装置200が有する処理回路によって実現してもよい。また、受信部210、分離部220、加工部240、メタデータ送信制御部260、及び符号化データ送信制御部270の一部又は全部は、記録装置200が有するプロセッサが実行するプログラムのモジュールとして実現してもよい。
The encoded data storage unit 230 and the metadata storage unit 250 may be realized as storage areas secured in a volatile storage device or a non-volatile storage device included in the recording device 200 .
Some or all of the receiving unit 210, the separating unit 220, the processing unit 240, the metadata transmission control unit 260, and the encoded data transmission control unit 270 may be realized by a processing circuit included in the recording device 200. Also, some or all of the receiving unit 210, the separating unit 220, the processing unit 240, the metadata transmission control unit 260, and the encoded data transmission control unit 270 may be realized as program modules executed by a processor included in the recording device 200.

解析装置300は、メタデータ通信部310、記憶部320、符号化データ制御部330、符号化データ通信部340、復号部350、及び解析部360を有する。 The analysis device 300 has a metadata communication unit 310, a memory unit 320, an encoded data control unit 330, an encoded data communication unit 340, a decoding unit 350, and an analysis unit 360.

記憶部320は、解析装置300が有する揮発性記憶装置又は不揮発性記憶装置に確保した記憶領域として実現してもよい。
メタデータ通信部310、符号化データ制御部330、符号化データ通信部340、復号部350、及び解析部360の一部又は全部は、解析装置300が有する処理回路によって実現してもよい。メタデータ通信部310、符号化データ制御部330、符号化データ通信部340、復号部350、及び解析部360の一部又は全部は、解析装置300が有するプロセッサが実行するプログラムのモジュールとして実現してもよい。
The storage unit 320 may be realized as a storage area reserved in a volatile storage device or a non-volatile storage device included in the analysis device 300 .
Some or all of the metadata communication unit 310, the encoded data control unit 330, the encoded data communication unit 340, the decoding unit 350, and the analysis unit 360 may be realized by a processing circuit included in the analysis device 300. Some or all of the metadata communication unit 310, the encoded data control unit 330, the encoded data communication unit 340, the decoding unit 350, and the analysis unit 360 may be realized as program modules executed by a processor included in the analysis device 300.

まず、記録装置200の機能を説明する。
受信部210は、多重化データを受信する。分離部220は、符号化データとメタデータとに多重化データを分離する。分離部220は、符号化データを符号化データ記憶部230に格納する。
加工部240は、メタデータを加工する。加工されたメタデータを例示する。
First, the function of the recording device 200 will be described.
The receiving unit 210 receives the multiplexed data. The separating unit 220 separates the multiplexed data into encoded data and metadata. The separating unit 220 stores the encoded data in the encoded data storage unit 230.
The processing unit 240 processes the metadata. An example of the processed metadata is shown below.

図11は、加工されたメタデータの例を示す図である。メタデータには、時刻情報と符号化情報とが追加される。
加工部240は、多重化データに撮像時刻が含まれている場合、撮像時刻を時刻情報として、メタデータに追加する。また、加工部240は、多重化データに撮像時刻が含まれていない場合、多重化データを受信した時刻を撮像時刻として、メタデータに追加する。
加工部240は、多重化データに含まれる符号化データに対応する符号化データ番号を符号化情報として、メタデータに追加する。
加工部240は、加工されたメタデータをメタデータ記憶部250に格納する。
11 is a diagram showing an example of processed metadata, in which time information and encoding information are added.
When the multiplexed data includes a shooting time, the processing unit 240 adds the shooting time to the metadata as time information. When the multiplexed data does not include a shooting time, the processing unit 240 adds the time at which the multiplexed data was received to the metadata as a shooting time.
The processing unit 240 adds, as encoding information, the encoded data number corresponding to the encoded data included in the multiplexed data to the metadata.
The processing unit 240 stores the processed metadata in the metadata storage unit 250 .

メタデータ送信制御部260は、送信要求を解析装置300から受信した場合、メタデータ記憶部250に格納されているメタデータを解析装置300に送信する。
符号化データ送信制御部270は、送信要求を解析装置300から受信した場合、符号化データを解析装置300に送信する。
When the metadata transmission control unit 260 receives a transmission request from the analysis device 300 , it transmits the metadata stored in the metadata storage unit 250 to the analysis device 300 .
When the encoded data transmission control unit 270 receives a transmission request from the analysis device 300 , it transmits the encoded data to the analysis device 300 .

次に、解析装置300の機能を説明する。
メタデータ通信部310は、メタデータの送信要求を記録装置200に送信する。メタデータ通信部310は、メタデータを受信した場合、メタデータを記憶部320に格納する。
Next, the function of the analysis device 300 will be described.
The metadata communication unit 310 transmits a request to transmit metadata to the recording device 200. When the metadata communication unit 310 receives metadata, it stores the metadata in the storage unit 320.

符号化データ制御部330は、解析条件を示す解析条件情報を取得する。例えば、符号化データ制御部330は、当該解析条件情報を記憶部320から取得する。また、例えば、符号化データ制御部330は、ユーザが入力した当該解析条件情報を取得する。例えば、解析条件は、重要度が70以上のイントラフレームを示す。また、解析条件には、撮像時刻又は撮像時間が含まれてもよい。例えば、撮像時間は、12~13時である。 The encoded data control unit 330 acquires analysis condition information indicating the analysis conditions. For example, the encoded data control unit 330 acquires the analysis condition information from the storage unit 320. Also, for example, the encoded data control unit 330 acquires the analysis condition information input by the user. For example, the analysis condition indicates an intraframe with an importance level of 70 or higher. Also, the analysis condition may include the imaging time or imaging duration. For example, the imaging duration is 12:00 to 13:00.

符号化データ制御部330は、解析条件情報とメタデータとに基づいて、解析対象の符号化データを特定する。詳細には、符号化データ制御部330は、解析対象の符号化データの符号化データ番号を特定する。 The encoded data control unit 330 identifies the encoded data to be analyzed based on the analysis condition information and the metadata. In detail, the encoded data control unit 330 identifies the encoded data number of the encoded data to be analyzed.

符号化データ通信部340は、特定された符号化データ(すなわち、解析対象の符号化データ)の送信要求を記録装置200に送信する。送信要求は、特定された符号化データ番号を含む。そして、符号化データ通信部340は、解析対象の符号化データを受信する。 The encoded data communication unit 340 transmits a transmission request for the identified encoded data (i.e., the encoded data to be analyzed) to the recording device 200. The transmission request includes the identified encoded data number. The encoded data communication unit 340 then receives the encoded data to be analyzed.

復号部350は、受信された符号化データを復号する。復号部350は、受信された符号化データに対応するメタデータを記憶部320から取得する。
解析部360は、復号されたデータ(すなわち、画像)と、メタデータに基づいて、解析を行う。
The decoding unit 350 decodes the received encoded data and obtains metadata corresponding to the received encoded data from the storage unit 320.
The analysis unit 360 performs analysis based on the decoded data (i.e., image) and metadata.

次に、記録装置200の処理を、フローチャートを用いて説明する。
図12は、記録装置の一部の処理を示すフローチャートである。
(ステップS51)受信部210は、多重化データを受信する。
(ステップS52)分離部220は、符号化データとメタデータとに多重化データを分離する。
(ステップS53)分離部220は、符号化データを符号化データ記憶部230に格納する。
Next, the processing of the recording device 200 will be described with reference to a flowchart.
FIG. 12 is a flowchart showing a part of the process of the recording device.
(Step S51) The receiving unit 210 receives multiplexed data.
(Step S52) The demultiplexer 220 demultiplexes the multiplexed data into encoded data and metadata.
(Step S<b>53 ) The separator 220 stores the coded data in the coded data storage unit 230 .

(ステップS54)加工部240は、メタデータを加工する。
(ステップS55)加工部240は、加工されたメタデータをメタデータ記憶部250に格納する。
なお、ステップS53は、ステップS54,55と同時に行われてもよい。また、ステップS53は、ステップS54,55の後に行われてもよい。
(Step S54) The processing unit 240 processes the metadata.
(Step S55) The processing unit 240 stores the processed metadata in the metadata storage unit 250.
Note that step S53 may be performed simultaneously with steps S54 and S55. Also, step S53 may be performed after steps S54 and S55.

図13は、メタデータの送信処理の例を示すフローチャートである。
(ステップS61)メタデータ送信制御部260は、メタデータの送信要求を解析装置300から受信したか否かを判定する。メタデータの送信要求を受信した場合、処理は、ステップS62に進む。メタデータの送信要求を受信していない場合、処理は、終了する。
(ステップS62)メタデータ送信制御部260は、メタデータ記憶部250からメタデータを取得する。
(ステップS63)メタデータ送信制御部260は、メタデータを解析装置300に送信する。
FIG. 13 is a flowchart illustrating an example of a metadata transmission process.
(Step S61) The metadata transmission control unit 260 determines whether or not a metadata transmission request has been received from the analysis device 300. If a metadata transmission request has been received, the process proceeds to step S62. If a metadata transmission request has not been received, the process ends.
(Step S62) The metadata transmission control unit 260 acquires metadata from the metadata storage unit 250.
(Step S63) The metadata transmission control unit 260 transmits the metadata to the analysis device 300.

図14は、符号化データの送信処理の例を示すフローチャートである。
(ステップS71)符号化データ送信制御部270は、符号化データの送信要求を解析装置300から受信したか否かを判定する。符号化データの送信要求を受信した場合、処理は、ステップS72に進む。符号化データの送信要求を受信していない場合、処理は、終了する。
(ステップS72)符号化データ送信制御部270は、符号化データ記憶部230から符号化データを取得する。
(ステップS73)符号化データ送信制御部270は、符号化データを解析装置300に送信する。
FIG. 14 is a flowchart illustrating an example of a transmission process of encoded data.
(Step S71) The encoded data transmission control unit 270 determines whether or not a request to transmit encoded data has been received from the analysis device 300. If a request to transmit encoded data has been received, the process proceeds to step S72. If a request to transmit encoded data has not been received, the process ends.
(Step S72) The encoded data transmission control unit 270 obtains the encoded data from the encoded data storage unit 230.
(Step S73) The encoded data transmission control unit 270 transmits the encoded data to the analysis device 300.

次に、解析装置300の処理を、フローチャートを用いて説明する。
図15は、解析装置が実行する処理の例を示すフローチャートである。
(ステップS81)メタデータ通信部310は、メタデータの送信要求を記録装置200に送信する。
(ステップS82)メタデータ通信部310は、メタデータを受信したか否かを判定する。メタデータを受信した場合、処理は、ステップS83に進む。メタデータを受信していない場合、メタデータ通信部310は、メタデータを受信するまで待機する。
(ステップS83)メタデータ通信部310は、メタデータを記憶部320に格納する。
Next, the processing of analysis device 300 will be described with reference to a flowchart.
FIG. 15 is a flowchart illustrating an example of a process executed by the analysis device.
(Step S81) The metadata communication unit 310 transmits a metadata transmission request to the recording device 200.
(Step S82) The metadata communication unit 310 determines whether or not metadata has been received. If metadata has been received, the process proceeds to step S83. If metadata has not been received, the metadata communication unit 310 waits until metadata is received.
(Step S83) The metadata communication unit 310 stores the metadata in the storage unit 320.

(ステップS84)符号化データ制御部330は、メタデータの符号化情報から解析対象の符号化データを特定する。
(ステップS85)符号化データ通信部340は、特定された符号化データの送信要求を記録装置200に送信する。
(ステップS86)符号化データ通信部340は、符号化データを受信したか否かを判定する。符号化データを受信した場合、処理は、ステップS87に進む。符号化データを受信していない場合、符号化データ通信部340は、符号化データを受信するまで待機する。
(Step S84) The encoded data control unit 330 identifies the encoded data to be analyzed from the encoding information of the metadata.
(Step S85) The encoded data communication unit 340 transmits a request to the recording device 200 to transmit the identified encoded data.
(Step S86) The encoded data communication unit 340 determines whether or not encoded data has been received. If encoded data has been received, the process proceeds to step S87. If encoded data has not been received, the encoded data communication unit 340 waits until encoded data is received.

(ステップS87)復号部350は、受信された符号化データを復号する。
(ステップS88)復号部350は、受信された符号化データに対応するメタデータを記憶部320から取得する。
(ステップS89)解析部360は、復号されたデータ(すなわち、画像)と、メタデータに基づいて、解析を行う。
(Step S87) The decoding unit 350 decodes the received encoded data.
(Step S88) The decoding unit 350 obtains metadata corresponding to the received encoded data from the storage unit 320.
(Step S89) The analysis unit 360 performs analysis based on the decoded data (i.e., image) and metadata.

上記したように、メタデータには、重要度が含まれている。そのため、解析装置300は、重要度の高い画像を特定できる。また、解析装置300は、記録装置200に格納されている全ての符号化データを受信しない。解析装置300は、特定された符号化データのみを受信する。そのため、記録装置200と解析装置300との間の通信量は、軽減される。 As described above, the metadata includes the importance. Therefore, the analysis device 300 can identify images with high importance. Furthermore, the analysis device 300 does not receive all the encoded data stored in the recording device 200. The analysis device 300 receives only the identified encoded data. Therefore, the amount of communication between the recording device 200 and the analysis device 300 is reduced.

また、符号化データ制御部330は、イントラフレームが多く存在する場合、最も重要度の高いイントラフレームをメタデータから特定してもよい。詳細には、画像解析システムでは、次の処理が行われる。撮像装置100は、画像を生成する度に、多重化データを生成し、多重化データを記録装置200に送信する。よって、撮像装置100は、複数の多重化データを記録装置200に送信する。記録装置200は、複数の多重化データを受信する。記録装置200は、多重化データ毎に、符号化データに対応する符号化データ番号をメタデータに追加する。記録装置200は、加工された、複数のメタデータを解析装置300に送信する。解析装置300は、複数のメタデータを受信する。解析装置300は、複数のメタデータに基づいて、イントラフレームが予め定められた閾値以上、存在することを検出する。ここで、当該閾値は、第3の閾値とも言う。解析装置300は、複数のメタデータに基づいて、最も重要度の高いイントラフレームの符号化データを特定する。詳細には、解析装置300は、複数のメタデータに基づいて、最も重要度の高いイントラフレームの符号化データの符号化データ番号を特定する。 In addition, when there are many intraframes, the encoded data control unit 330 may identify the most important intraframe from the metadata. In detail, the image analysis system performs the following process. The imaging device 100 generates multiplexed data every time it generates an image, and transmits the multiplexed data to the recording device 200. Thus, the imaging device 100 transmits multiple multiplexed data to the recording device 200. The recording device 200 receives multiple multiplexed data. The recording device 200 adds an encoded data number corresponding to the encoded data to the metadata for each multiplexed data. The recording device 200 transmits the processed multiple metadata to the analysis device 300. The analysis device 300 receives the multiple metadata. The analysis device 300 detects that there are more intraframes than a predetermined threshold based on the multiple metadata. Here, the threshold is also called a third threshold. The analysis device 300 identifies the encoded data of the most important intraframe based on the multiple metadata. In particular, the analysis device 300 identifies the encoded data number of the encoded data of the most important intraframe based on multiple pieces of metadata.

解析装置300は、処理負荷の状況に応じて、復号の処理の対象のフレーム数を調整してもよい。また、解析装置300は、メタデータを解析することで、映像全体の中における重要フレームの分布状況を検出することができる。 The analysis device 300 may adjust the number of frames to be decoded depending on the processing load. In addition, the analysis device 300 can detect the distribution of important frames within the entire video by analyzing the metadata.

10 ネットワーク、 20 ネットワーク、 100 撮像装置、 101 プロセッサ、 102 揮発性記憶装置、 103 不揮発性記憶装置、 110 撮像部、 120 取得部、 130 検出部、 140 重要度決定部、 150 符号化決定部、 160 符号化部、 170 メタデータ生成部、 180 多重化部、 190 送信部、 200 記録装置、 210 受信部、 220 分離部、 230 符号化データ記憶部、 240 加工部、 250 メタデータ記憶部、 260 メタデータ送信制御部、 270 符号化データ送信制御部、 300 解析装置、 310 メタデータ通信部、 320 記憶部、 330 符号化データ制御部、 340 符号化データ通信部、 350 復号部、 360 解析部、 400 画像、 401 前回検出領域、 410 画像、 411 今回検出領域。 10 network, 20 network, 100 imaging device, 101 processor, 102 volatile storage device, 103 non-volatile storage device, 110 imaging unit, 120 acquisition unit, 130 detection unit, 140 importance determination unit, 150 encoding determination unit, 160 encoding unit, 170 metadata generation unit, 180 multiplexing unit, 190 transmission unit, 200 recording device, 210 reception unit, 220 separation unit, 230 encoded data storage unit, 240 processing unit, 250 metadata storage unit, 260 metadata transmission control unit, 270 encoded data transmission control unit, 300 analysis device, 310 metadata communication unit, 320 storage unit, 330 encoded data control unit, 340 encoded data communication unit, 350 decoding unit, 360 Analysis unit, 400 image, 401 previous detection area, 410 image, 411 current detection area.

Claims (9)

対象物を撮像する撮像装置であって、
前記対象物を含む第1の画像を取得し、前記第1の画像よりも前に生成された画像であり、かつ前記対象物を含む第2の画像の重要度、前記第2の画像内の前記対象物の検出位置、及び前記第2の画像内の前記対象物の第2の検出領域を示す情報を取得する取得部と、
前記第1の画像に基づいて、前記対象物を検出する検出部と、
前記第2の画像内の前記対象物の検出位置と、前記第1の画像内の前記対象物の検出位置とを比較し、前記第2の検出領域と、前記第1の画像内の前記対象物の第1の検出領域とを比較し、検出位置の差及び検出領域の差が予め定められた第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも狭い、又は前記第1の検出領域と前記第2の検出領域とが同じである場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも小さい値に決定する重要度決定部と、
前記第1の画像の重要度が予め定められた第2の閾値よりも小さい場合、前記第1の画像をイントラフレーム以外のフレームに決定する符号化決定部と、
決定内容がイントラフレーム以外のフレームを示している場合、前記第1の画像をイントラフレーム以外のフレームとして、符号化する符号化部と、
符号化されたデータを送信する送信部と、
を有する撮像装置。
An imaging device for imaging an object, comprising:
an acquisition unit that acquires a first image including the object, and acquires information indicating the importance of a second image that is an image generated before the first image and includes the object, a detection position of the object in the second image, and a second detection area of the object in the second image;
A detection unit that detects the object based on the first image;
an importance determination unit that compares a detection position of the object in the second image with a detection position of the object in the first image, compares the second detection area with a first detection area of the object in the first image, and determines the importance of the first image to be a value smaller than the importance of the second image when a difference in detection position and a difference in detection area are equal to or smaller than a first threshold value and the first detection area is narrower than the second detection area or the first detection area and the second detection area are the same;
an encoding decision unit that decides that the first image is a frame other than an intra frame when the importance of the first image is smaller than a second predetermined threshold;
an encoding unit that encodes the first image as a frame other than an intraframe when the determined content indicates a frame other than an intraframe;
A transmitter that transmits the encoded data;
An imaging device having the above configuration.
前記重要度決定部は、
検出位置の差及び検出領域の差が前記第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも広い場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも大きい値に決定し、
前記符号化決定部は、
前記第1の画像の重要度が前記第2の閾値以上である場合、前記第1の画像をイントラフレームに決定し、
前記符号化部は、
決定内容がイントラフレームを示している場合、前記第1の画像をイントラフレームとして、符号化する、
請求項1に記載の撮像装置。
The importance determination unit is
When the difference between the detection positions and the difference between the detection areas are equal to or less than the first threshold value and the first detection area is larger than the second detection area, determining the importance of the first image to be greater than the importance of the second image;
The encoding determination unit is
If the importance of the first image is equal to or greater than the second threshold, determining the first image as an intra-frame;
The encoding unit is
if the determination indicates an intraframe, encoding the first image as an intraframe;
The imaging device according to claim 1 .
前記第1の画像のメタデータを生成するメタデータ生成部をさらに含み、
前記送信部は、
符号化されたデータと前記メタデータとを含む多重化データを送信する、
請求項1又は2に記載の撮像装置。
a metadata generating unit configured to generate metadata for the first image;
The transmission unit is
transmitting multiplexed data including the encoded data and the metadata;
The imaging device according to claim 1 .
対象物を撮像する撮像装置と、
記録装置と、
解析装置と、
を含み、
前記撮像装置は、
前記対象物を含む第1の画像を取得し、前記第1の画像よりも前に生成された画像であり、かつ前記対象物を含む第2の画像の重要度、前記第2の画像内の前記対象物の検出位置、及び前記第2の画像内の前記対象物の第2の検出領域を示す情報を取得する取得部と、
前記第1の画像に基づいて、前記対象物を検出する検出部と、
前記第2の画像内の前記対象物の検出位置と、前記第1の画像内の前記対象物の検出位置とを比較し、前記第2の検出領域と、前記第1の画像内の前記対象物の第1の検出領域とを比較し、検出位置の差及び検出領域の差が予め定められた第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも狭い、又は前記第1の検出領域と前記第2の検出領域とが同じである場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも小さい値に決定する重要度決定部と、
前記第1の画像の重要度が予め定められた第2の閾値よりも小さい場合、前記第1の画像をイントラフレーム以外のフレームに決定する符号化決定部と、
決定内容がイントラフレーム以外のフレームを示している場合、前記第1の画像をイントラフレーム以外のフレームとして、符号化する符号化部と、
符号化されたデータを送信する送信部と、
を有する、
画像解析システム。
An imaging device that captures an image of an object;
A recording device;
An analysis device;
Including,
The imaging device includes:
an acquisition unit that acquires a first image including the object, and acquires information indicating the importance of a second image that is an image generated before the first image and includes the object, a detection position of the object in the second image, and a second detection area of the object in the second image;
A detection unit that detects the object based on the first image;
an importance determination unit that compares a detection position of the object in the second image with a detection position of the object in the first image, compares the second detection area with a first detection area of the object in the first image, and determines the importance of the first image to be a value smaller than the importance of the second image when a difference in detection position and a difference in detection area are equal to or smaller than a first threshold value and the first detection area is narrower than the second detection area or the first detection area and the second detection area are the same;
an encoding determination unit that determines the first image to be a frame other than an intra frame when the importance of the first image is smaller than a second predetermined threshold;
an encoding unit that encodes the first image as a frame other than an intraframe when the determined content indicates a frame other than an intraframe;
A transmitter that transmits the encoded data;
having
Image analysis system.
前記撮像装置は、
前記第1の画像のメタデータを生成し、
符号化されたデータである符号化データと前記メタデータとを含む多重化データを前記記録装置に送信し、
前記記録装置は、
前記多重化データを受信し、
前記符号化データに対応する符号化データ番号を前記メタデータに追加し、
加工された前記メタデータを前記解析装置に送信し、
前記解析装置は、
前記メタデータを受信し、
解析条件を示す解析条件情報を取得し
前記解析条件情報と前記メタデータとに基づいて、解析対象の前記符号化データの符号化データ番号を特定し、
解析対象の前記符号化データの送信要求を前記記録装置に送信し、
解析対象の前記符号化データを前記記録装置から受信し、
受信された前記符号化データを復号し、
復号されたデータと前記メタデータとに基づいて、解析を行う、
請求項4に記載の画像解析システム。
The imaging device includes:
generating metadata for the first image;
Transmitting multiplexed data including the encoded data and the metadata to the recording device;
The recording device is
receiving the multiplexed data;
adding an encoded data number corresponding to the encoded data to the metadata;
Transmitting the processed metadata to the analysis device;
The analysis device includes:
receiving the metadata;
acquiring analysis condition information indicating analysis conditions; and identifying an encoded data number of the encoded data to be analyzed based on the analysis condition information and the metadata;
Transmitting a request to transmit the encoded data to be analyzed to the recording device;
receiving the encoded data to be analyzed from the recording device;
Decoding the received encoded data;
performing an analysis based on the decrypted data and the metadata;
The image analysis system according to claim 4.
前記撮像装置は、
前記第1の画像の重要度と、前記第1の画像がイントラフレームであるか否かを示す情報とを含むメタデータを生成し、
符号化されたデータである符号化データと前記メタデータとの組み合わせである第1の多重化データを含む複数の多重化データを前記記録装置に送信し、
前記記録装置は、
前記複数の多重化データを受信し、
多重化データ毎に、前記符号化データに対応する符号化データ番号を前記メタデータに追加し、
加工された、複数のメタデータを前記解析装置に送信し、
前記解析装置は、
前記複数のメタデータを受信し、
前記複数のメタデータに基づいて、イントラフレームが予め定められた第3の閾値以上、存在することを検出し、
前記複数のメタデータに基づいて、最も重要度の高いイントラフレームの前記符号化データを特定し、
特定された前記符号化データの送信要求を前記記録装置に送信し、
特定された前記符号化データを前記記録装置から受信し、
受信された前記符号化データを復号し、
復号されたデータと、特定された前記符号化データに対応するメタデータに基づいて、解析を行う、
請求項4に記載の画像解析システム。
The imaging device includes:
generating metadata including an importance of the first image and information indicating whether the first image is an intraframe;
Transmitting a plurality of multiplexed data including first multiplexed data which is a combination of encoded data, which is encoded data, and the metadata to the recording device;
The recording device is
receiving the plurality of multiplexed data;
adding an encoded data number corresponding to the encoded data to the metadata for each of the multiplexed data;
Transmitting the processed metadata to the analysis device;
The analysis device includes:
receiving the plurality of metadata;
Detecting whether an intraframe is present in an amount equal to or greater than a third predetermined threshold based on the plurality of metadata;
Identifying the encoded data of the most important intraframe based on the plurality of metadata;
Transmitting a transmission request for the identified encoded data to the recording device;
receiving the identified encoded data from the recording device;
Decoding the received encoded data;
performing an analysis based on the decoded data and metadata corresponding to the identified encoded data;
The image analysis system according to claim 4.
前記解析装置は、処理負荷の状況に応じて、復号の処理の対象のフレーム数を調整する、
請求項4から6のいずれか1項に記載の画像解析システム。
the analysis device adjusts the number of frames to be decoded according to a processing load status.
The image analysis system according to any one of claims 4 to 6.
対象物を撮像する撮像装置が、
前記対象物を含む第1の画像を取得し、前記第1の画像よりも前に生成された画像であり、かつ前記対象物を含む第2の画像の重要度、前記第2の画像内の前記対象物の検出位置、及び前記第2の画像内の前記対象物の第2の検出領域を示す情報を取得し、
前記第1の画像に基づいて、前記対象物を検出し、
前記第2の画像内の前記対象物の検出位置と、前記第1の画像内の前記対象物の検出位置とを比較し、前記第2の検出領域と、前記第1の画像内の前記対象物の第1の検出領域とを比較し、
検出位置の差及び検出領域の差が予め定められた第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも狭い、又は前記第1の検出領域と前記第2の検出領域とが同じである場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも小さい値に決定し、
前記第1の画像の重要度が予め定められた第2の閾値よりも小さい場合、前記第1の画像をイントラフレーム以外のフレームに決定し、
決定内容がイントラフレーム以外のフレームを示している場合、前記第1の画像をイントラフレーム以外のフレームとして、符号化し、
符号化されたデータを送信する、
符号化方法。
An imaging device for imaging an object,
acquiring a first image including the object, and acquiring information indicating a level of importance of a second image that is an image generated before the first image and includes the object, a detection position of the object in the second image, and a second detection area of the object in the second image;
Detecting the object based on the first image;
comparing a detection position of the object in the second image with a detection position of the object in the first image, and comparing the second detection area with a first detection area of the object in the first image;
When the difference in the detection positions and the difference in the detection areas are equal to or less than a first threshold value, and the first detection area is narrower than the second detection area, or the first detection area and the second detection area are the same, the importance of the first image is determined to be a value smaller than the importance of the second image;
If the importance of the first image is less than a second predetermined threshold, the first image is determined to be a frame other than an intra frame;
If the determination indicates a non-intra frame, encoding the first image as a non-intra frame;
Transmitting the encoded data;
Encoding method.
対象物を撮像する撮像装置に、
前記対象物を含む第1の画像を取得し、前記第1の画像よりも前に生成された画像であり、かつ前記対象物を含む第2の画像の重要度、前記第2の画像内の前記対象物の検出位置、及び前記第2の画像内の前記対象物の第2の検出領域を示す情報を取得し、
前記第1の画像に基づいて、前記対象物を検出し、
前記第2の画像内の前記対象物の検出位置と、前記第1の画像内の前記対象物の検出位置とを比較し、前記第2の検出領域と、前記第1の画像内の前記対象物の第1の検出領域とを比較し、
検出位置の差及び検出領域の差が予め定められた第1の閾値以下であり、かつ前記第1の検出領域の方が前記第2の検出領域よりも狭い、又は前記第1の検出領域と前記第2の検出領域とが同じである場合、前記第1の画像の重要度を、前記第2の画像の重要度よりも小さい値に決定し、
前記第1の画像の重要度が予め定められた第2の閾値よりも小さい場合、前記第1の画像をイントラフレーム以外のフレームに決定し、
決定内容がイントラフレーム以外のフレームを示している場合、前記第1の画像をイントラフレーム以外のフレームとして、符号化し、
符号化されたデータを送信する、
処理を実行させる符号化プログラム。
An imaging device for imaging an object,
acquiring a first image including the object, and acquiring information indicating a level of importance of a second image that is an image generated before the first image and includes the object, a detection position of the object in the second image, and a second detection area of the object in the second image;
Detecting the object based on the first image;
comparing a detection position of the object in the second image with a detection position of the object in the first image, and comparing the second detection area with a first detection area of the object in the first image;
When the difference in the detection positions and the difference in the detection areas are equal to or less than a first threshold value, and the first detection area is narrower than the second detection area, or the first detection area and the second detection area are the same, the importance of the first image is determined to be a value smaller than the importance of the second image;
If the importance of the first image is less than a second predetermined threshold, the first image is determined to be a frame other than an intra frame;
If the determination indicates a non-intra frame, encoding the first image as a non-intra frame;
Transmitting the encoded data;
The coding program that performs the processing.
JP2021170204A 2021-10-18 2021-10-18 Imaging device, image analysis system, encoding method, and encoding program Active JP7638191B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021170204A JP7638191B2 (en) 2021-10-18 2021-10-18 Imaging device, image analysis system, encoding method, and encoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021170204A JP7638191B2 (en) 2021-10-18 2021-10-18 Imaging device, image analysis system, encoding method, and encoding program

Publications (2)

Publication Number Publication Date
JP2023060547A JP2023060547A (en) 2023-04-28
JP7638191B2 true JP7638191B2 (en) 2025-03-03

Family

ID=86098337

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021170204A Active JP7638191B2 (en) 2021-10-18 2021-10-18 Imaging device, image analysis system, encoding method, and encoding program

Country Status (1)

Country Link
JP (1) JP7638191B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004080538A (en) 2002-08-20 2004-03-11 Canon Inc Image communication apparatus, image communication system, and image communication method
JP2010278797A (en) 2009-05-29 2010-12-09 Canon Inc Image encoding device
JP2012222780A (en) 2011-04-14 2012-11-12 Mitsubishi Electric Corp Record distribution device, record distribution method, and monitoring system
JP2013168809A (en) 2012-02-15 2013-08-29 Canon Inc Image processing apparatus, image processing method, program, and storage medium
JP2014068183A (en) 2012-09-26 2014-04-17 Jvc Kenwood Corp System and image pick-up device
JP2014179830A (en) 2013-03-15 2014-09-25 Panasonic Corp Image encoding apparatus, photographing system, photographing recording system, image quality encoding method and image encoding control program
JP2014230173A (en) 2013-05-23 2014-12-08 キヤノン株式会社 Image processing apparatus, control method for the same, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004080538A (en) 2002-08-20 2004-03-11 Canon Inc Image communication apparatus, image communication system, and image communication method
JP2010278797A (en) 2009-05-29 2010-12-09 Canon Inc Image encoding device
JP2012222780A (en) 2011-04-14 2012-11-12 Mitsubishi Electric Corp Record distribution device, record distribution method, and monitoring system
JP2013168809A (en) 2012-02-15 2013-08-29 Canon Inc Image processing apparatus, image processing method, program, and storage medium
JP2014068183A (en) 2012-09-26 2014-04-17 Jvc Kenwood Corp System and image pick-up device
JP2014179830A (en) 2013-03-15 2014-09-25 Panasonic Corp Image encoding apparatus, photographing system, photographing recording system, image quality encoding method and image encoding control program
JP2014230173A (en) 2013-05-23 2014-12-08 キヤノン株式会社 Image processing apparatus, control method for the same, and program

Also Published As

Publication number Publication date
JP2023060547A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US10691949B2 (en) Action recognition in a video sequence
JP6421422B2 (en) Video analysis device, monitoring device, monitoring system, and video analysis method
US20020118862A1 (en) Moving object detector and image monitoring system
US10321132B2 (en) System and method for detecting motion in compressed video
EP3293974B1 (en) Quantization parameter determination method and image capture apparatus
JP2012239085A (en) Image processor, and image processing method
US7933333B2 (en) Method and apparatus for detecting motion in MPEG video streams
WO2011045875A1 (en) Image processing method, image processing device, and image capturing system
US12500773B2 (en) Imaging apparatus, information processing apparatus, information processing method, and program
EP2950529B1 (en) Video image storage method and apparatus
KR20230023359A (en) surveillance camera system
JP7638191B2 (en) Imaging device, image analysis system, encoding method, and encoding program
US12185029B2 (en) Apparatus and method for transmitting images and apparatus and method for receiving images
US20170019635A1 (en) Video image processing apparatus and recording medium
KR101706114B1 (en) Image Photograping Apparatus, Image Analyzing Apparatus and Method, Image Analysing System Using the Same
US20200252637A1 (en) Moving image processor, moving image processing system, and moving image processing method
JP2017085396A (en) Video storage system, video storage device, and program
JP6720743B2 (en) Media quality determination device, media quality determination method, and computer program for media quality determination
KR102393336B1 (en) Surveillance system and operation method thereof
CN115695332B (en) Camera operation resource allocation method, device, electronic device and storage medium
US20170364764A1 (en) Image transfer method and image recognition method useful in image recognition processing by server
KR101928340B1 (en) Watermarking method for mobile, and mobile device
KR102448096B1 (en) system and method for Intelligent CCTV synchronization using PTP
KR101928339B1 (en) Watermarking method for mobile, and mobile device
KR102368226B1 (en) Method and system for multichannel video streaming, and Method and system for receiving multichannel video streaming

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240325

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250218

R150 Certificate of patent or registration of utility model

Ref document number: 7638191

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150