JP7187154B2 - Image processing device, image processing method and program - Google Patents

Image processing device, image processing method and program Download PDF

Info

Publication number
JP7187154B2
JP7187154B2 JP2018018206A JP2018018206A JP7187154B2 JP 7187154 B2 JP7187154 B2 JP 7187154B2 JP 2018018206 A JP2018018206 A JP 2018018206A JP 2018018206 A JP2018018206 A JP 2018018206A JP 7187154 B2 JP7187154 B2 JP 7187154B2
Authority
JP
Japan
Prior art keywords
image
background
time threshold
area
captured image
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
JP2018018206A
Other languages
Japanese (ja)
Other versions
JP2019135810A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2018018206A priority Critical patent/JP7187154B2/en
Priority to US16/262,609 priority patent/US10863113B2/en
Publication of JP2019135810A publication Critical patent/JP2019135810A/en
Application granted granted Critical
Publication of JP7187154B2 publication Critical patent/JP7187154B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Description

本発明は画像処理装置、画像処理方法およびプログラムに関し、特に画像中の特定の物体を隠してプライバシーを保護する技術に関する。 The present invention relates to an image processing apparatus, an image processing method and a program, and more particularly to a technique of hiding a specific object in an image to protect privacy.

昨今、街中への監視カメラの設置が進んでいる。ここで、監視カメラに映る個人のプライバシーを保護する重要性が高まっている。例えば、特許文献1では背景画像と処理対象画像を比較し、比較結果に応じて処理対象画像の特定領域を隠蔽処理してプライバシーを保護する方法が開示されている。特に画像に表示されている人体や動体を検出し、隠蔽処理の精度を上げている。 In recent years, surveillance cameras have been installed all over town. Here, the importance of protecting the privacy of individuals captured by surveillance cameras is increasing. For example, Patent Literature 1 discloses a method of comparing a background image and an image to be processed, and performing concealment processing on a specific area of the image to be processed according to the comparison result to protect privacy. In particular, the human body and moving objects displayed in the image are detected, and the accuracy of concealment processing is improved.

特開2016-115214号公報JP 2016-115214 A

しかしながら、特許文献1では、画像中の人体および動体以外の領域を一律の時間で背景更新しており、直ぐに背景化するべき対象や領域について好ましくプライバシーを保護するための処理ができなかった。 However, in Patent Literature 1, the background of areas other than the human body and the moving object in the image is updated at a uniform time, and it was not possible to process the object or area that should be immediately backgrounded to preferably protect the privacy.

そこで、本発明の目的は、撮影されたプライバシー保護対象のものとそうでないものに対して、それぞれに適した背景化時間を設定することができる画像処理装置を提供することである。 SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an image processing apparatus capable of setting a suitable background rendering time for each of a photographed subject subject to privacy protection and a subject not subject to privacy protection.

本発明の画像処理装置は、撮像部によって撮像された撮像画像から物体を検出する検出手段と、前記物体の特徴に基づいて、撮像画像から検出された前記物体に対応する領域の時間閾値を設定する設定手段と、前記撮像画像内の前記領域内の前記物体が静止している時間が前記時間閾値に達した場合に、前記領域内の前記物体が前記背景画像に反映されるように前記撮像画像に基づいて背景画像を更新する更新手段と、を有し、前記設定手段は、前記物体がプライバシー保護の対象である場合、前記物体に対応する領域の前記時間閾値として第1の値を設定し、前記物体がプライバシー保護の対象でない場合、前記物体に対応する領域の前記時間閾値として、前記第1の値よりも小さい第2の値を設定することを特徴とする。 The image processing apparatus of the present invention includes detection means for detecting an object from a captured image captured by an imaging unit, and setting a time threshold for a region corresponding to the object detected from the captured image based on the characteristics of the object. and setting means for capturing the image so that the object in the area is reflected in the background image when the time period during which the object in the area in the captured image is stationary reaches the time threshold. updating means for updating a background image based on the image, wherein the setting means sets a first value as the time threshold for the region corresponding to the object when the object is subject to privacy protection. and if the object is not subject to privacy protection, a second value smaller than the first value is set as the time threshold for the region corresponding to the object.

本発明によれば、画像中の物体に対応する背景化の時間を設定することで、より好ましくプライバシーを保護する処理を行うことが出来る。 According to the present invention, it is possible to more preferably perform processing for protecting privacy by setting a backgrounding time corresponding to an object in an image.

(a)画像処理装置の機能構成を示すブロック図である。(b)画像処理システムの概略構成を示す模式図である。(a) It is a block diagram which shows the functional structure of an image processing apparatus. (b) It is a schematic diagram which shows schematic structure of an image processing system. 画像処理装置のハードウェア構成を示すブロック図である。2 is a block diagram showing the hardware configuration of the image processing device; FIG. (a)-(g)プライバシー保護処理の概要を説明するための模式図である。4A to 4G are schematic diagrams for explaining an outline of privacy protection processing; FIG. (a)-(g)プライバシー保護処理の例を説明するための模式図である。4A to 4G are schematic diagrams for explaining an example of privacy protection processing; FIG. プライバシー保護処理の概略を示すフローチャートである。4 is a flowchart showing an outline of privacy protection processing; 時間閾値の設定をするためのGUIを示す模式図である。FIG. 4 is a schematic diagram showing a GUI for setting a time threshold; 背景画像に関する設定をするためのGUIを示す模式図である。FIG. 4 is a schematic diagram showing a GUI for making settings related to a background image;

以下、添付の図面を参照して、実施形態について詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Embodiments will be described in detail below with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

<実施形態1>
図1(b)は、本実施形態の画像処理システムを示す模式図である。少なくとも1つ以上の画像出力装置120はネットワーク110を介して画像処理装置101と通信可能に接続されている。画像出力装置120としては、監視用途のネットワークカメラやNVR(ネットワーク・ビデオ・レコーダ)などがある。以降の説明はネットワークカメラ(単にカメラ120と称す)を例に説明する。ネットワーク110はインターネットプロトコルに沿った通信によりカメラ120の配信映像を画像処理装置101に伝送したり、カメラ120の制御信号や設定パラメータを画像処理装置101からカメラ120に伝送したりする。画像処理装置101は画像出力装置120から動画像データを取得し、取得した動画像データについてプライバシー保護処理をする。プライバシー保護処理を実施した画像データ(動画像データ)は、ネットワーク110に接続されている他のクライアント装置に出力したり、画像処理装置とローカルに接続されているディスプレイに表示させたり、NVR120に録画したりできる。
<Embodiment 1>
FIG. 1B is a schematic diagram showing the image processing system of this embodiment. At least one or more image output devices 120 are communicably connected to the image processing device 101 via the network 110 . The image output device 120 includes a network camera for surveillance, an NVR (Network Video Recorder), and the like. In the following description, a network camera (simply referred to as camera 120) will be used as an example. The network 110 transmits distributed video from the camera 120 to the image processing apparatus 101 and transmits control signals and setting parameters of the camera 120 from the image processing apparatus 101 to the camera 120 by communication according to the Internet protocol. The image processing apparatus 101 acquires moving image data from the image output apparatus 120 and performs privacy protection processing on the acquired moving image data. Image data (moving image data) subjected to privacy protection processing is output to other client devices connected to the network 110, displayed on a display locally connected to the image processing device, or recorded on the NVR 120. You can

図2は、画像処理装置101のハードウェア構成を示すプロック図である。画像処理装置101は、CPU201、ROM202、RAM203、外部メモリ204、ネットワークインターフェース205、入力装置206、表示デバイス207、システムバス208から構成される。 FIG. 2 is a block diagram showing the hardware configuration of the image processing apparatus 101. As shown in FIG. The image processing apparatus 101 comprises a CPU 201 , a ROM 202 , a RAM 203 , an external memory 204 , a network interface 205 , an input device 206 , a display device 207 and a system bus 208 .

CPU201は、画像処理装置101における動作を統括的に制御するものであり、システムバス208を介して、各構成(202~207)を制御する。ROM202は、CPU201が処理を実行するために必要な制御プログラム等を記憶する不揮発性メモリである。なお、CPUが実行するプログラムは、外部メモリ204や着脱可能な記憶媒体に記憶されていてもよい。 The CPU 201 comprehensively controls operations in the image processing apparatus 101 and controls each component (202 to 207) via a system bus 208. FIG. A ROM 202 is a non-volatile memory that stores control programs and the like necessary for the CPU 201 to execute processing. Note that the programs executed by the CPU may be stored in the external memory 204 or a removable storage medium.

RAM203は、CPU201の主メモリ、ワークエリアとして機能する。すなわち、CPU201は、後述の処理の実行に際してROM202から必要なプログラム等をRAM203にロードし、読み込んだプログラムを実行することで各種の機能動作を実現する。 A RAM 203 functions as a main memory and a work area for the CPU 201 . That is, the CPU 201 loads necessary programs from the ROM 202 to the RAM 203 and executes the loaded programs to realize various functional operations when executing the processes described later.

外部メモリ204は、例えば、CPU201がプログラムを用いた処理を行う際に必要な各種データや各種情報等を記憶している。また、外部メモリ204には、例えば、CPU201がプログラム等を用いた処理を行うことにより得られた各種データや各種情報等が記憶される。 The external memory 204 stores, for example, various data and information necessary for the CPU 201 to perform processing using programs. Also, the external memory 204 stores various data, various information, and the like obtained by the CPU 201 performing processing using programs and the like, for example.

ネットワークインターフェース205は、外部装置と通信するためのインターフェースである。ネットワークインターフェース205は、例えばLANインターフェースである。なお、本実施形態では、画像処理装置101がクライアントPC(パーソナルコンピュータ)である場合の例を中心に説明する。 A network interface 205 is an interface for communicating with an external device. Network interface 205 is, for example, a LAN interface. In this embodiment, an example in which the image processing apparatus 101 is a client PC (personal computer) will be mainly described.

入力装置206は、CPU201への入力装置として機能する。入力装置206は、例えばキーボードやマウスやボタンである。 The input device 206 functions as an input device to the CPU 201 . The input device 206 is, for example, a keyboard, mouse and buttons.

表示デバイス207は、CPU201の出力を表示するディスプレイである。ネットワークインターフェース205から外部に映像出力する場合もあり、構成によっては不要となる場合もある。 A display device 207 is a display that displays the output of the CPU 201 . Video may be output from the network interface 205 to the outside, and may be unnecessary depending on the configuration.

なお、画像出力装置120も図2と同様の構成を有する。画像出力装置120がネットワークカメラの場合は、表示デバイス207は無く、イメージセンサやレンズ、画像処理用のプロセッサ(不図示)を備えている。レンズは着脱式のレンズであってもよい。 Note that the image output device 120 also has the same configuration as in FIG. If the image output device 120 is a network camera, it does not have the display device 207, but has an image sensor, a lens, and a processor (not shown) for image processing. The lens may be a removable lens.

図1(a)は画像処理装置101の概略構成を示し、画像処理装置101は画像取得部102、動体検出部103、物体検出部104、パラメータ設定部105、背景更新部106、画像比較部107、画像合成部108、出力部109を有している。 FIG. 1A shows a schematic configuration of the image processing apparatus 101. The image processing apparatus 101 includes an image acquisition unit 102, a moving object detection unit 103, an object detection unit 104, a parameter setting unit 105, a background update unit 106, and an image comparison unit 107. , an image synthesizing unit 108 and an output unit 109 .

画像取得部102は画像出力装置120から所定の間隔で画像を順次取得し、取得した画像を動体検出部103と物体検出部104と背景更新部106と画像比較部107に送る。 The image acquisition unit 102 sequentially acquires images from the image output device 120 at predetermined intervals, and sends the acquired images to the moving object detection unit 103 , the object detection unit 104 , the background update unit 106 and the image comparison unit 107 .

動体検出部103は、画像取得部102より取得された画像と背景画像(背景モデル)とを比較することにより動体の検出を行う(背景差分法)。すなわち、動体検出部103は、画像取得部102による取得画像と、当該取得画像とは撮影時刻が異なる他画像との比較に基づいて動体領域を検出する。なお、背景モデルは、画像内の変化に追従して動体検出部103により適宜更新されるものであり、画像ではなく特徴(各画素の輝度成分などを抜き出した情報)であってもよい。 The moving object detection unit 103 detects a moving object by comparing the image acquired by the image acquisition unit 102 with a background image (background model) (background subtraction method). That is, the moving object detection unit 103 detects a moving object region based on comparison between the image acquired by the image acquisition unit 102 and another image captured at a different time from the acquired image. Note that the background model is appropriately updated by the moving object detection unit 103 following changes in the image, and may be a feature (information obtained by extracting the luminance component of each pixel) instead of the image.

動体検出部103は、動体検出処理により得られた動体情報を背景更新部106に送る。本実施形態の動体情報には、画像から検出された動体の中心座標(位置情報)と外接矩形(形状情報)の情報が含まれる。動体検出部103は、画像取得部102により取得された複数の画像のそれぞれに対して動画検出処理を実行し、その結果得られた動体情報を背景更新部106に送る。 The moving object detection unit 103 sends the moving object information obtained by the moving object detection process to the background updating unit 106 . The moving body information of this embodiment includes information on the center coordinates (position information) and the circumscribed rectangle (shape information) of the moving body detected from the image. The moving object detection unit 103 executes moving image detection processing on each of the plurality of images acquired by the image acquisition unit 102 and sends moving object information obtained as a result to the background updating unit 106 .

物体検出部104は、画像取得部102により取得された画像から特定の物体を検出する物体検出処理を行う。本実施形態の物体検出部104は、画像取得部102により取得された画像から次に説明するような方法で物体検出処理を行う。 The object detection unit 104 performs object detection processing for detecting a specific object from the image acquired by the image acquisition unit 102 . The object detection unit 104 of this embodiment performs object detection processing from the image acquired by the image acquisition unit 102 by a method described below.

第一にパターンマッチング法の使用である。画像取得部102により取得された画像と予め定められたパターン画像(もしくは特徴)を比較することで物体の検出を行う。検出対象は人体、イス、机等、検出出来るパターン画像を持っているものはどのようなものでも対象となる。人体とは全身であってもよいし、上半身や頭、顔、手などの全身の一部であってもよい。ただし、物体の検出方法はパターンマッチング法に限らず、画像の色、明るさ、濃度勾配、テクスチャ、機械学習の特徴量を用いた検出でも構わない。 The first is the use of pattern matching methods. An object is detected by comparing the image acquired by the image acquisition unit 102 with a predetermined pattern image (or feature). The object to be detected is any object that has a pattern image that can be detected, such as a human body, a chair, a desk, or the like. The human body may be the whole body or a part of the whole body such as the upper body, head, face, and hands. However, the object detection method is not limited to the pattern matching method, and may be detection using image color, brightness, density gradient, texture, or machine learning feature amount.

第二に距離検出である。現在カメラ画像から距離を検出することが出来るカメラが存在することは知られている(2眼もしくはCCDの画素2画素を用いて三角測量で距離を取得する)。画像取得部102により取得された画像から領域毎の距離を計測する。距離によって次のように物体検出を行う。所定の距離以上遠い領域はプライバシー保護の対象ではなく背景にするべき領域とする。距離が前フレームと比較して所定の距離以上近づいた領域は、人体がその領域に入った可能性があり、プライバシー保護対象の領域とする。 The second is distance detection. It is known that there are currently cameras that can detect the distance from the camera image (distance is obtained by triangulation using binoculars or two pixels of a CCD). The distance for each area is measured from the image acquired by the image acquisition unit 102 . Object detection is performed according to the distance as follows. Areas that are farther than a predetermined distance are not subject to privacy protection and should be used as background areas. A region that is closer than the previous frame by a predetermined distance or more may have a human body in it, and is a privacy protection target region.

第一の方法と第二の方法で検出された画像領域の特徴量(特徴)に基づき、領域毎にスコアを作成する。人体領域等プライバシー保護が必要と検知された領域はスコアを高く、遠景やイス、机等プライバシー保護が不要な物体と検出された領域はスコアを低く設定する。また、スコアはより確からしさを加味して算出し、よりプライバシー保護が必要な領域である可能性が高いと判定されればより高いスコアに、よりプライバシー保護が不要な領域である可能性が高いと判定されればより低いスコアになる。 A score is created for each region based on the feature amounts (features) of the image regions detected by the first method and the second method. A high score is set for areas where privacy protection is required, such as a human body area, and a low score is set for areas where privacy protection is not required, such as distant views, chairs, and desks. In addition, the score is calculated with more certainty added, and if it is determined that there is a high possibility that it is an area that requires more privacy protection, the higher the score, the higher the possibility that it is an area that does not require privacy protection. If it is judged as, it will be a lower score.

以上のような方法で領域毎に算出されたスコア情報を背景更新部106に送る。 The score information calculated for each area by the method described above is sent to the background updating unit 106 .

背景更新部106は、画像取得部102により取得された画像と、動体検出部103から取得した動体情報と、物体検出部104から取得した画像領域のスコア情報とに基づいて背景画像を生成する。そして、背景更新部106は、背景画像を画像比較部107と画像合成部108に送る。背景更新部106による背景画像の生成処理の詳細は後述する。 The background update unit 106 generates a background image based on the image acquired by the image acquisition unit 102, the moving object information acquired from the moving object detection unit 103, and the image area score information acquired from the object detection unit 104. The background updating unit 106 then sends the background image to the image comparing unit 107 and the image synthesizing unit 108 . The details of the background image generation processing by the background updating unit 106 will be described later.

画像比較部107は、背景更新部106から取得した背景画像のうち、画像比較部107から取得した保護領域情報が示す保護領域に所定の画像を合成して保護画像を生成する。保護画像とは処理前の入力画像に比べてプライバシーが保護されている画像であってその生成方法の詳細は後述する。画像合成部108は、生成した保護画像を出力部109に送る。 The image comparison unit 107 combines a predetermined image with the protection area indicated by the protection area information acquired from the image comparison unit 107 in the background image acquired from the background update unit 106 to generate a protection image. A protected image is an image whose privacy is protected compared to the input image before processing, and the details of the generation method thereof will be described later. The image synthesizing unit 108 sends the generated protected image to the output unit 109 .

出力部109は、画像合成部108から取得した保護画像を表示させる。なお、画像出力装置101がネットワークカメラに実装される場合、出力部109は、ネットワークカメラを介して接続されるモニタ装置に対して保護画像を送信できる。また、画像処理装置101がモニタ装置に実装される場合、ネットワークカメラから取得した背景画像に所定の画像を合成することで保護画像を生成し、生成した保護画像を表示させる。パラメータ設定部105は、物体検出部104の物体検出に必要なパラメータを設定する(詳細は図6を用いて後述する)。 The output unit 109 displays the protected image acquired from the image synthesizing unit 108 . Note that when the image output device 101 is mounted on a network camera, the output unit 109 can transmit a protected image to a monitor device connected via the network camera. Further, when the image processing apparatus 101 is mounted on a monitor apparatus, a protected image is generated by synthesizing a predetermined image with a background image acquired from a network camera, and the generated protected image is displayed. A parameter setting unit 105 sets parameters required for object detection by the object detection unit 104 (details will be described later with reference to FIG. 6).

次に、背景更新部106による背景画像の生成方法について説明する。背景更新部106は、背景画像を所定の大きさで分割した領域(ブロック)ごとに安定背景時間を管理する。安定背景時間は、動体情報および画像領域のスコア情報に基づいて画像領域毎に設定されるもので、画像領域の物体の背景化に対応する。 Next, a method of generating a background image by the background updating unit 106 will be described. The background updating unit 106 manages the stable background time for each area (block) obtained by dividing the background image into a predetermined size. The stable background time is set for each image area based on the moving object information and the score information of the image area, and corresponds to backgrounding of the object in the image area.

以降の説明では、背景更新部106による背景画像の生成処理を、(A)最初の画像、(B)最初の画像の次以降の画像の2つのケースに分けて説明する。 In the following description, the background image generation processing by the background updating unit 106 will be described in two cases: (A) the first image, and (B) the images subsequent to the first image.

(A)最初の背景画像(装置を起動したり撮影条件を変更したりする等してから初めて作成する背景画像)の作成処理について
本ケースは、背景画像が未生成の状態である。このケースにおいて背景更新部106は、画像取得部102から取得した画像を背景画像として記憶する。なお、背景更新部106は、背景画像のすべてのブロックの安定背景時間として0を設定する。
(A) Processing of Creating Initial Background Image (Background Image Created for the First Time After Starting the Apparatus or Changing Shooting Conditions) In this case, the background image has not yet been created. In this case, the background update unit 106 stores the image acquired from the image acquisition unit 102 as the background image. Note that the background updating unit 106 sets 0 as the stable background time for all blocks of the background image.

(B)以降の背景画像の作成処理
本ケースは、最初の画像が背景画像として設定され、それ以降に背景画像を作成するケースである。このケースにおいて背景更新部106は、動体情報により特定される動体領域が属するブロック以外のブロックに対応する安定背景化時間を更新(インクリメント)する。そして、背景更新部106は、更新後の安定背景時間が時間閾値以上になったブロックを特定し、画像取得部102で新しく取得した画像について特定されたブロックに対応する領域の画素値に基づいて背景画像を更新する。ここで、安定背景時間が時間閾値以上になったブロックとは、動体未検出状態が時間閾値の間継続していた領域を意味する。そして、背景更新部106は、背景画像の更新に用いたブロックに対応する安定背景時間を0に設定する。
(B) Subsequent Background Image Creation Processing This case is a case in which the first image is set as the background image and the subsequent background images are created. In this case, the background update unit 106 updates (increments) the stable background time corresponding to the blocks other than the block to which the moving object region identified by the moving object information belongs. Then, the background updating unit 106 identifies a block for which the post-update stable background time is equal to or greater than the time threshold, and based on the pixel values of the area corresponding to the identified block in the image newly obtained by the image obtaining unit 102, Update the background image. Here, the block in which the stable background time is equal to or greater than the time threshold means an area in which the moving object undetected state continued for the time threshold. Then, the background updating unit 106 sets 0 to the stable background time corresponding to the block used for updating the background image.

背景更新部106は、画像領域のスコア情報に基づいて画像領域毎に時間閾値を設定する。スコアが大きいほどプライバシー保護の必要性が高く、スコアが小さいほどプライバシー保護の必要性が低い。背景更新部106は、スコアが高いほど長い時間を時間閾値として設定し、より背景画像に合成され難く(背景化し難く)する。一方でスコアが低いほど短い時間を時間閾値として設定し、より短時間で背景画像に合成され易く(背景化され易く)なる。背景更新部106は、画像領域の物体の特徴量に合わせてプライバシー保護度のスコアを設定し、状況にあった時間閾値を設定する。時間閾値は背景化時間とも呼称してもよい。 The background updating unit 106 sets a time threshold for each image area based on the score information of the image area. The higher the score, the higher the need for privacy protection, and the lower the score, the lower the need for privacy protection. The background updating unit 106 sets a longer time as the time threshold for a higher score, making it more difficult to combine with the background image (harder to create a background). On the other hand, the lower the score is, the shorter time is set as the time threshold, and the background image is more likely to be combined with the background image (become the background) in a shorter time. The background update unit 106 sets a score of the degree of privacy protection according to the feature amount of the object in the image area, and sets a time threshold value suitable for the situation. The time threshold may also be referred to as backgrounding time.

プライバシー保護が必要な度合が高い物として人体、機密情報が記された物体等がある。プライバシーを保護する度合が低いが移動するものとしてイス、時計等がある。例えば背景更新部106は、最大のスコアになっている画像領域では安定背景時間を無限大に設定する。例えば、最小のスコアになっている画像領域では安定背景時間を0に設定する。例えば背景更新部106は、人体と検出された画像領域では最大スコアに設定する。例えばイスや時計として検出された画像領域では最小スコアに設定する。 Objects that require a high degree of privacy protection include the human body, objects on which confidential information is written, and the like. Chairs, clocks, and the like are examples of objects that move but have a low degree of privacy protection. For example, the background updating unit 106 sets the stable background time to infinity in the image area with the maximum score. For example, the stable background time is set to 0 in the image region with the lowest score. For example, the background updating unit 106 sets the maximum score in an image region in which a human body is detected. For example, image areas detected as chairs and clocks are set to the minimum score.

次に、ケース(B)における処理の詳細を図3と図4を用いて説明する。なお、図3(a)と図4(a)は画像取得部102から取得した画像(取得画像)であり、図3(b)と図4(b)は動体情報及び物体情報を画像と同サイズの白い画像に描画した結果(認識結果)である。また、図3(c)と図4(c)は安定背景時間を示し、図3(d)と図4(d)は時間閾値を示し、図3(e)と図4(e)は更新後の背景画像を示している。 Next, the details of the processing in case (B) will be described with reference to FIGS. 3 and 4. FIG. 3A and 4A are images (acquired images) acquired from the image acquisition unit 102, and FIGS. This is the result (recognition result) of drawing on a white image of size. Also, FIGS. 3(c) and 4(c) show stable background times, FIGS. 3(d) and 4(d) show time thresholds, and FIGS. 3(e) and 4(e) show update It shows a later background image.

図3(a)から図3(g)は、本実施形態に係る背景画像の取得処理を開始したタイミングにおける状態を示している。図3は、上述のケース(A)に対応する。典型的には、ケース(A)は、画像処理装置101が背景画像の生成を開始したタイミングや、既存背景画像がリセットされた直後のタイミングである。上述の通り、本実施形態の背景更新部106は、ケース(A)において画像取得部102から取得した画像をそのまま背景画像として記憶するので、図3(a)取得画像と図3(e)背景画像とは同一である。また図3(b)に示すように、ここでは動体や物体が検出されていない。当初の背景画像は前景が写り込んでいないことが望ましい。 FIGS. 3A to 3G show the state at the timing when the background image acquisition process according to this embodiment is started. FIG. 3 corresponds to case (A) described above. Typically, case (A) is the timing when the image processing apparatus 101 starts generating the background image or the timing immediately after the existing background image is reset. As described above, the background update unit 106 of this embodiment stores the image acquired from the image acquisition unit 102 in case (A) as it is as a background image. It is the same as the image. Further, as shown in FIG. 3B, no moving body or object is detected here. It is desirable that the original background image does not include the foreground.

図4(a)から図3(g)は、図3からある時間経過した後の状態を示し、図3(e)に示した背景画像が設定されているものとする。図4(a)に示す取得画像には人物401とイス402が写っている。図4(b)は、動体検出部103の動体検出処理により動体403が検出され、物体検出部104の物体検出処理により物体404と物体405が検出されたことを示している。 FIGS. 4(a) to 3(g) show the state after a certain period of time has elapsed since FIG. 3, and assume that the background image shown in FIG. 3(e) is set. A person 401 and a chair 402 are shown in the obtained image shown in FIG. FIG. 4B shows that a moving object 403 is detected by the moving object detection processing of the moving object detection unit 103, and objects 404 and 405 are detected by the object detection processing of the object detection unit 104. FIG.

図4(c)は、動体検出処理により検出された動体領域が属するブロックは安定背景時間が0に設定(リセット)されたことを示している。また図4(c)が示す通り、動体領域でない領域に対するブロックの安定背景時間は一定時間ごとにインクリメントされ、初期値の0から9に増加している。 FIG. 4(c) shows that the stable background time of the block to which the moving object region detected by the moving object detection process belongs is set (reset) to zero. Also, as shown in FIG. 4C, the stable background time of the block for the non-moving object area is incremented at regular time intervals, increasing from the initial value of 0 to 9. FIG.

図4(d)は、物体検出処理により検出された動体情報から算出されたスコアによって時間閾値が設定されたものを表している。本実施形態では標準の時間閾値は60に設定されている。物体404は人体と判定され、スコアの最大値が設定されたため、物体404がある領域の時間閾値は∞(無限大)に設定されている。一方で、物体405はイスと判定され、標準より低いスコアが設定されたため、物体405がある領域の時間閾値は9に設定されている。 FIG. 4D shows the time threshold set by the score calculated from the moving body information detected by the object detection process. The standard time threshold is set to 60 in this embodiment. Since the object 404 is determined to be a human body and the maximum score value is set, the time threshold for the area where the object 404 is located is set to ∞ (infinity). On the other hand, the object 405 was determined to be a chair, and a score lower than the standard was set, so the time threshold for the area where the object 405 is located is set to 9.

図4(e)は、図4(c)で示す安定背景時間と時間閾値の比較結果に基づいて更新された背景画像を示している。イス402の領域の安定背景化時間が9になり、その領域の時間閾値9に達したためイスの領域の部分画像が背景画像として合成(背景化)されている。それ以外の領域は時間閾値に達していないため、以前の背景画像(図3(e))のままである。 FIG. 4(e) shows the background image updated based on the comparison result between the stable background time and the time threshold shown in FIG. 4(c). The stable background conversion time of the area of the chair 402 becomes 9, and the partial image of the area of the chair is synthesized (backgrounded) as the background image because the time threshold of 9 for the area is reached. Since the other areas have not reached the time threshold, they remain the previous background image (Fig. 3(e)).

次に、画像比較部107による保護領域情報の生成方法について説明する。保護領域情報とは、画像内の保護対象の位置と形状を示す情報である。本実施形態では、特にプライバシーが保護されるべき領域を保護領域としている。 Next, a method for generating protection area information by the image comparison unit 107 will be described. Protected area information is information indicating the position and shape of an object to be protected in an image. In this embodiment, a protected area is an area whose privacy should be protected.

画像比較部107は、画像取得部102から取得した取得画像から輝度成分を抽出し輝度画像を生成すると共に、背景更新部106から取得した背景画像から同様に輝度画像を生成する。そして、画像比較部107は、取得画像に基づく輝度画像と、背景画像に基づく輝度画像とのピクセル単位(画素毎)での差分の絶対値からなる差分画像を生成する。そして、画像比較部107は、差分画像のピクセル(画素)のうち、所定の閾値よりも大きい差分値を有するピクセルを保護対象ピクセルとして決定する。そして、画像比較部107は、隣接する保護対象ピクセル同士を結合し、ある面積(画素数)以上の領域を保護領域として特定し、保護領域の位置と形状を示す保護領域情報を生成する。 The image comparison unit 107 extracts a luminance component from the acquired image acquired from the image acquisition unit 102 to generate a brightness image, and similarly generates a brightness image from the background image acquired from the background update unit 106 . Then, the image comparison unit 107 generates a difference image including the absolute value of the difference in pixel units (pixel by pixel) between the luminance image based on the acquired image and the luminance image based on the background image. Then, the image comparison unit 107 determines a pixel having a difference value larger than a predetermined threshold among the pixels (pixels) of the difference image as a pixel to be protected. Then, the image comparison unit 107 connects adjacent pixels to be protected, specifies an area having a certain area (the number of pixels) or more as a protected area, and generates protected area information indicating the position and shape of the protected area.

図3(f)と図4(f)は、図3(d)と図4(d)背景画像と図3(a)と図4(a)取得画像とに基づいて生成された保護領域情報に対応する保護領域を示している。図3(f)には保護領域が無いことを示しており、図4(f)は保護領域として人物401に対応する領域についてプライバシーを保護する必要がある領域であることを示している。画像合成部108は、背景画像の保護領域情報が示す保護領域に所定の画像を合成して得られる保護画像を生成する。なお、所定の画像とは、例えば保護領域情報により特定される位置及び形状に対応する保護領域について一色の画像で塗りつぶす等して匿名性を高めるように生成(匿名化)したシルエット画像である。すなわち、画像合成部108は、背景画像の生成後(更新後)に、取得された処理対象画像と背景画像との比較に応じた特定領域(保護領域)を保護画像(隠蔽画像)とする画像処理を実行する(シルエット化とも称す)。 FIGS. 3(f) and 4(f) show protected area information generated based on the background images of FIGS. 3(d) and 4(d) and the acquired images of FIGS. 3(a) and 4(a). shows the protected area corresponding to . FIG. 3(f) shows that there is no protection area, and FIG. 4(f) shows that the area corresponding to the person 401 as a protection area needs to be protected for privacy. The image synthesizing unit 108 generates a protected image obtained by synthesizing a predetermined image with the protected area indicated by the protected area information of the background image. Note that the predetermined image is a silhouette image generated (anonymized) to enhance anonymity by, for example, filling the protected area corresponding to the position and shape specified by the protected area information with a single-color image. That is, after generating (updating) the background image, the image synthesizing unit 108 sets the specific area (protection area) corresponding to the comparison between the acquired image to be processed and the background image as the protection image (concealment image). Perform processing (also called silhouetted).

図3(g)と図4(g)は、図3(e)と図4(e)の背景画像と図3(f)と図4(f)の保護領域情報とに基づいて画像合成部108が生成した保護画像である。図4の(f)に示される通り、早く背景化されるべきイスは背景化して実物が見えており、プライバシー保護されるべき人体は顔を含む全身(もしくは一部)が隠蔽される等して個人が判別できないように匿名化されている。 FIGS. 3(g) and 4(g) show the image synthesizing unit based on the background images of FIGS. 3(e) and 4(e) and the protected area information of FIGS. 3(f) and 4(f). 108 is the generated protected image. As shown in FIG. 4(f), the chair, which should be turned into the background quickly, is turned into the background so that the actual object can be seen, and the whole body (or part) including the face of the human body, which should be protected for privacy, is hidden. are anonymized so that individuals cannot be identified.

次に、本実施形態の画像処理装置101の処理の流れを説明する。図5は、本実施形態の画像処理装置101の動作を説明するためのフローチャートである。画像処理装置101のCPU201は、図5の処理に係るプログラムをROM202やRAM203から読み出して実行することにより、図5の処理を実現する。本実施形態の画像処理装置101は、利用者によるプライバシー保護処理の開始指示に応じて、図5の処理を開始する。ただし、図5の処理の開始タイミングは上記の例に限らない。例えば、展示会の画像については重要人物が写るタイミング等があらかじめ分かっていれば所定の時刻(VIPタイム)になったことをトリガーとして処理を開始してもよいし、駅構内や店舗の画像については営業時間に入ったことをトリガーとして処理を開始してもよい。 Next, the flow of processing of the image processing apparatus 101 of this embodiment will be described. FIG. 5 is a flowchart for explaining the operation of the image processing apparatus 101 of this embodiment. The CPU 201 of the image processing apparatus 101 implements the processing of FIG. 5 by reading out and executing a program related to the processing of FIG. 5 from the ROM 202 and the RAM 203 . The image processing apparatus 101 of the present embodiment starts the process of FIG. 5 in response to the user's instruction to start the privacy protection process. However, the start timing of the processing in FIG. 5 is not limited to the above example. For example, with regard to images of exhibitions, if the timing at which an important person appears is known in advance, the processing may be started with the arrival of a predetermined time (VIP time) as a trigger. may start processing with the entry of business hours as a trigger.

まず、画像取得部102は画像出力装置120から送信される画像を、ネットワーク110を介して取得する(S101)。画像出力装置120が撮像装置である場合は撮像画像をリアルタイムで取得し、画像出力装置120が録画装置である場合は録画済みの録画画像(録画映像)を取得する。画像の取得方法は他の方法でも構わないし、画像がH.264やJPEGやHEVC、HEIFなどの既知の符号化方式で圧縮されている場合は画像取得部102が復号化するようにしてもよい。 First, the image acquisition unit 102 acquires an image transmitted from the image output device 120 via the network 110 (S101). When the image output device 120 is an imaging device, it acquires a captured image in real time, and when the image output device 120 is a recording device, it acquires a recorded image (recorded video). Other methods may be used to acquire the image, and the image may be obtained by H.264. If the image is compressed by a known encoding method such as H.264, JPEG, HEVC, or HEIF, the image acquisition unit 102 may decode the image.

動体検出部103は、画像取得部102で取得された画像(取得画像)についてRAM203に保持している背景画像に基づいて背景差分法により動体の検出処理を行い、物体検出部104は、画像内の特徴量に基づいて物体検出処理を行う(S102)。すなわち、動体検出部103は、画像間(取得画像と背景画像)の差分に基づいて動体領域(前景領域)を検出し、検出により得られる動体情報(動体の中心座標(位置情報)と外接矩形(形状情報))を背景更新部106に送信する。また、物体検出部104は、画像内の特徴に基づいて物体領域を検出し、検出により得られる物体情報(物体の中心座標(位置情報)と外接矩形(形状情報)とスコア)を背景更新部106に送信する。 The moving object detection unit 103 detects a moving object in the image acquired by the image acquisition unit 102 (acquired image) based on the background image held in the RAM 203 by the background subtraction method. The object detection processing is performed based on the feature amount of (S102). That is, the moving object detection unit 103 detects a moving object region (foreground region) based on the difference between images (acquired image and background image), and detects moving object information (center coordinates (position information) of the moving object and circumscribed rectangle (shape information)) to the background updating unit 106 . Further, the object detection unit 104 detects an object region based on the features in the image, and updates the object information obtained by detection (the center coordinates (position information) of the object, the circumscribed rectangle (shape information), and the score) to the background update unit. 106.

背景更新部106は、動体情報と物体情報に基づいて背景画像の更新処理(生成処理)を行う(S103)。より具体的には、背景更新部106は、新しく物体領域として検出されたブロックに、対応する時間閾値の値を設定し、動体領域として検出されなかったブロックに対応する安定背景時間の値を、一定時間ごとにインクリメントする。インクリメントの結果、取得画像のうち安定背景時間の値が閾値以上になったブロックの位置に対応する部分画像を用いて、背景画像についてこのブロックに対応する位置の画素値を置き変えることで更新する。なお、更新は画素値を100%置き変える方法以外に、背景画像の画素値に所定の割合で合成(例えば、背景画像40%、取得画像の部分画像60%)するようにしてもよい。そして、背景更新部106は、更新後の背景画像をRAM203に保存するとともに画像比較部107に送信する。なお、本実施形態では安定背景時間をブロック毎に管理する例を中心に説明しているが、ブロックのサイズ、および形状は任意である。 The background update unit 106 performs a background image update process (generation process) based on the moving object information and the object information (S103). More specifically, the background updating unit 106 sets a time threshold value corresponding to a block newly detected as an object region, and sets a stable background time value corresponding to a block not detected as a moving object region to Increment at regular intervals. As a result of incrementing, the background image is updated by replacing the pixel values at the position corresponding to this block using the partial image corresponding to the position of the block in the obtained image where the value of the stable background time is equal to or greater than the threshold. . In addition to the method of replacing 100% of the pixel values, the update may be performed by synthesizing the pixel values of the background image at a predetermined ratio (for example, 40% of the background image and 60% of the partial image of the acquired image). Then, the background update unit 106 saves the updated background image in the RAM 203 and transmits it to the image comparison unit 107 . In this embodiment, an example in which the stable background time is managed for each block is mainly described, but the size and shape of the block are arbitrary.

画像比較部107は、画像取得部102から取得した取得画像と、背景更新部106から取得した背景画像との比較に基づいて保護領域情報を生成する(S104)。そして、画像比較部107は、生成した保護領域情報を画像合成部108に送信する。 The image comparison unit 107 generates protection area information based on comparison between the acquired image acquired from the image acquisition unit 102 and the background image acquired from the background update unit 106 (S104). The image comparison unit 107 then transmits the generated protection area information to the image composition unit 108 .

画像合成部108は、背景更新部106から取得した背景画像と画像比較部107から取得した保護領域情報とに基づいて保護画像を生成する(S105)。より具体的には、画像合成部108は、取得画像(撮像画像、録画画像)のうち、保護領域情報が示す保護領域に対応する位置の部分画像に隠蔽処理を実施する。そして、画像合成部108は、隠蔽処理済みの画像(マスク画像、シルエット画像)を背景画像に合成して保護画像を生成する。画像合成部108は、生成した保護画像を出力部109経由でディスプレイに表示させたり、他の外部装置に出力したりする。 The image synthesizing unit 108 generates a protected image based on the background image obtained from the background updating unit 106 and the protected area information obtained from the image comparing unit 107 (S105). More specifically, the image synthesizing unit 108 performs concealment processing on a partial image at a position corresponding to the protection area indicated by the protection area information in the acquired image (captured image, recorded image). Then, the image synthesizing unit 108 synthesizes the concealment-processed image (mask image, silhouette image) with the background image to generate a protected image. The image synthesizing unit 108 displays the generated protected image on a display via the output unit 109 or outputs it to another external device.

出力部109は、例えば保護画像を表示させる(S106)。すなわち、出力部109は、背景画像の生成後(更新後)に、取得された取得画像(処理対象画像)と背景画像との比較に応じた保護領域(特定領域)が隠蔽画像となった保護画像を表示させる。例えば、画像処理装置101がPCである場合、ディスプレイで保護画像が表示されることになる。 The output unit 109 displays, for example, a protection image (S106). That is, after the background image is generated (after the update), the output unit 109 protects the protected area (specific area) corresponding to the comparison between the acquired acquired image (processing target image) and the background image as a concealed image. display an image. For example, if the image processing apparatus 101 is a PC, a protected image will be displayed on the display.

ステップS106の処理が完了すると、図6の処理を継続するか終了するかが判定され(S107)、継続する場合にはS101に戻る。 When the process of step S106 is completed, it is determined whether to continue or end the process of FIG. 6 (S107), and if it is to be continued, the process returns to S101.

図6は本実施形態のパラメータ設定部105として動作するGUI(グラフィカル・ユーザー・インターフェース)の一例であり、画像処理装置101のCPU201が所定のプログラムをRAM203から読み出して表示デバイス207に表示することで実現する。ウィンドウ600は物体検出部104が検出処理を実行するためのパラメータを設定するためにユーザからの指示を受け付けるGUI(受付手段)であり、オブジェクト毎または特徴毎に時間閾値(背景化時間)を設定することができる。ID606の横に並ぶ欄601~欄605の条件はアンド条件(欄601~欄605の条件の全てを満たしたときに成立する条件)となる。欄601は設定対象の物体の種類や領域識別子を示し、ユーザはプルダウンで選択したり自由にテキスト入力したりする。欄602は欄601で設定している物体の種類や領域識別子に対応する時間閾値(背景化するかどうかを判断する閾値)である。 FIG. 6 is an example of a GUI (graphical user interface) that operates as the parameter setting unit 105 of this embodiment. come true. A window 600 is a GUI (receiving means) for receiving instructions from the user to set parameters for the object detection unit 104 to execute detection processing, and sets a time threshold (background time) for each object or each feature. can do. The conditions in columns 601 to 605 arranged next to the ID 606 are AND conditions (conditions that are satisfied when all the conditions in columns 601 to 605 are satisfied). A column 601 indicates the type of object to be set and the area identifier, and the user selects from a pull-down menu or freely inputs text. Column 602 is a time threshold value (threshold value for determining whether or not to create a background) corresponding to the object type and area identifier set in column 601 .

欄603は形状認識をするか否か、および形状認識のパターンマッチングに用いるパターン画像を設定できる。空欄をユーザがクリックすると、画像処理装置101や外部に保持しているファイルを参照したり、ユーザが描画して概略のパターンを設定したりすることができる。欄604は色認識をするか否か、色認識に用いる画素値(例えば、RGB画素値)を設定できる。空欄をユーザがクリックすると、不図示のカラーパレットを表示させたり、画像取得部102の取得した画像(撮像画像、録画画像)の中で色を指定するスポイトツールを起動したりする。欄605は、更に距離測定をするか否か、およびその距離を設定できる。 A column 603 can set whether or not shape recognition is performed, and a pattern image used for pattern matching for shape recognition. When the user clicks a blank column, the user can refer to a file held in the image processing apparatus 101 or outside, or can draw and set a rough pattern. A column 604 allows setting whether or not to perform color recognition, and pixel values (for example, RGB pixel values) used for color recognition. When the user clicks a blank column, a color palette (not shown) is displayed, or an eyedropper tool for specifying a color in the image (captured image, recorded image) acquired by the image acquisition unit 102 is activated. A column 605 allows setting whether or not to perform further distance measurement, and the distance.

ID606は時間閾値に関わる各エントリにユニークな値であって、本実施形態ではIDの大きい条件がIDの小さい条件よりも優先される。ボタン607をユーザが押下すると画像取得部102の取得した画像(撮像画像、録画画像)が別ウィンドウで立ち上がりその中でユーザが矩形描画ツール(マウスによるドラッグ開始位置と終了位置を矩形の左上と左下とする)を用いて時間閾値を設定する領域の位置とサイズを設定する。 The ID 606 is a unique value for each entry involved in the time threshold, and in this embodiment conditions with a higher ID take precedence over conditions with a lower ID. When the user presses a button 607, an image (captured image, recorded image) acquired by the image acquisition unit 102 is launched in a separate window. ) to set the position and size of the region for which the time threshold is set.

ユーザが、ボタン608を押下することでパラメータ設定部105はウィンドウ600で設定した内容をパラメータとして物体検出部104や背景更新部106に設定する(ボタン609の押下により条件を破棄してもよい)。パラメータ設定部105から設定されるパラメータの詳細は、物体検出部104が検出処理を実行するためのパラメータ(検出する形状パターンや色、距離)や、背景更新部106が背景を更新するためのパラメータ(時間閾値と対象プロック)である。 When the user presses a button 608, the parameter setting unit 105 sets the contents set in the window 600 as parameters in the object detection unit 104 and the background update unit 106 (conditions may be discarded by pressing a button 609). . Details of the parameters set by the parameter setting unit 105 include parameters for the object detection unit 104 to execute detection processing (detected shape patterns, colors, and distances), and parameters for the background update unit 106 to update the background. (time threshold and target block).

ここで、図6の各設定について説明を補足する。ID606が「6」の条件は、領域Bについて時間閾値を0に設定している。時間閾値を「0秒」に設定した画像領域は常に背景画像と比較画像が一致するので、保護領域になることはない(シルエット化されない)。例えば、駅構内に設置した監視カメラで線路を含む画角で撮像した撮像画像について、線路上についてはプライバシー保護よりも安全性を重視する必要があるので、この設定を利用すればよい。 Here, a supplementary description of each setting in FIG. 6 will be provided. The condition with the ID 606 of "6" sets the time threshold for region B to zero. Since the background image always matches the comparison image in the image area with the time threshold set to "0 seconds", it is never a protected area (not silhouetted). For example, regarding a captured image captured by a surveillance camera installed in a station at an angle of view that includes the railroad, it is necessary to emphasize safety over privacy protection on the railroad, so this setting may be used.

ID606が「5」の条件は時間閾値が「無限(秒)」に設定されているので、常に保護領域になる(シルエット化される)。また、ID606が「4」の条件は距離が2m以下の被写体についてプライバシーを保護する度合が高いとして時間閾値「600秒」を設定している。また、ID606が「3」の条件は「上半身の形状特徴」に基づいてパターンマッチングし検出した領域について、「人体」であるためプライバシーを保護する度合が高いオブジェクトとして時間閾値「600秒」を設定している。ID606が「2」の条件は、色が「黒」で「イス上部の形状特徴」に基づいて検出した領域について、「イス」であるためプライバシーを保護する度合が低いオブジェクトとして時間閾値「20秒」を設定している。イス以外であっても、机や会議室の備品なども同様に適用できる。ID606が「1」の条件は、ID606が「2から6」の条件に当てはまらない領域について標準の時間閾値「60秒」を設定している。 Since the time threshold is set to "infinite (seconds)" for the condition where the ID 606 is "5", the area is always protected (silhouetted). In addition, the condition where the ID 606 is "4" sets a time threshold value of "600 seconds" because the degree of privacy protection for a subject at a distance of 2 m or less is high. Also, for the condition where the ID 606 is "3", a time threshold of "600 seconds" is set as an object with a high degree of privacy protection for the region detected by pattern matching based on the "upper body shape feature" because it is a "human body". is doing. The condition where the ID 606 is "2" is that the area detected based on the "shape feature of the top of the chair" with the color "black" is regarded as an object with a low degree of privacy protection because it is a "chair", and the time threshold is set to "20 seconds". ” is set. In addition to chairs, desks and conference room fixtures can also be applied. The condition with ID 606 of "1" sets a standard time threshold of "60 seconds" for areas that do not meet the conditions with ID 606 of "2 to 6".

以上の説明の通り、本実施形態によれば画像処理装置101は複数の検出部(動体検出部103と物体検出部104)を用いて背景画像を生成し、更新する。その際に、物体の特性毎に背景化する時間閾値を設定できるので、物体の特性毎にプライバシーを保護する対象であるか設定しておけばプライバシーがより保護されやすくなる。具体的には、プライバシー保護の対象が背景画像に含まれにくくなり、保護対象でないものは保護画像に含まれやすくなる。 As described above, according to this embodiment, the image processing apparatus 101 generates and updates a background image using a plurality of detection units (the moving object detection unit 103 and the object detection unit 104). At this time, since the background time threshold value can be set for each property of the object, it is possible to more easily protect privacy by setting whether or not the object is subject to privacy protection for each property of the object. Specifically, the subject of privacy protection is less likely to be included in the background image, and the subject that is not subject to protection is more likely to be included in the protected image.

なお、図6のID「6」の条件のように時間閾値に「0」を設定した領域について、次の3つのパターンのいずれかで表示する様に、図6のウィンドウ600で切り替えるように設定できるようにしてもよい。1つ目は「そのまま背景画像を表示する」形態であり、この場合は撮像画像や録画画像がそのまま表示される。2つ目は「最初の画像のまま固定する」形態であり、図3(a)に相当する画像が表示される。3つ目は「ぼかし画像にする」形態であり、この場合は、時間閾値に「0」を設定した領域についてぼかし処理や、モザイク処理などを行った画像を表示する。 It should be noted that, as in the condition of ID "6" in FIG. 6, the area for which the time threshold is set to "0" is set to be displayed in one of the following three patterns in the window 600 in FIG. You may make it possible. The first is a form of "displaying the background image as it is", in which case the captured image or the recorded image is displayed as it is. The second is a mode of "fixing the first image as it is", in which an image corresponding to FIG. 3(a) is displayed. The third is a mode of "making into a blurred image", in which an image is displayed in which blur processing, mosaic processing, or the like is performed on an area for which "0" is set as the time threshold.

なお、上述の実施形態では背景更新部106が更新した背景画像を画像合成部108が保護画像の生成に利用しているが、画像合成部108が保護画像の生成に用いる背景画像を別途設定するようにしてもよい。 In the above-described embodiment, the background image updated by the background updating unit 106 is used by the image synthesizing unit 108 to generate the protected image. You may do so.

図7は、背景画像を設定するためのGUI(グラフィカル・ユーザー・インターフェース)の一例であり、画像処理装置101のCPU201が所定のプログラムをRAM203から読み出して表示デバイス207にウィンドウ700を表示する。 FIG. 7 shows an example of a GUI (Graphical User Interface) for setting a background image.

領域701は動体検出部103や背景更新部106に関わる設定をする箇所である。ここでは、「任意の画像」か、上述した背景画像を「自動更新」するかの一方を選択できる。任意の画像を選択した場合は、設定ボタンを押下しユーザが画像処理装置101や外部装置から所定の画像ファイルを参照して設定する。設定した画像の縮小画像も領域701に表示される。 An area 701 is a place for setting the moving object detection unit 103 and the background update unit 106 . Here, either "arbitrary image" or "automatic update" of the above background image can be selected. When an arbitrary image is selected, the user presses a setting button and sets the image by referring to a predetermined image file from the image processing apparatus 101 or an external device. A reduced image of the set image is also displayed in the area 701 .

一方で、背景画像を「自動更新」にした場合、「人体検出オプション」のチェックボックスを切り替えることで、物体検出部104の利用の有無をユーザが設定することもできる。図7の例では人体検出を「OFF」に設定しているので、その分、パターンマッチングの処理負荷が軽減される。また、背景画像を「自動更新」にした場合、画像取得部102が「撮像画像」から画像を取得するか「録画画像」から画像を取得するかを選択できる。これは、図1(b)に示すように、ネットワーク110上に撮像装置120と録画装置120の両方が存在するときに、画像のソースを選択することができる。録画装置120を選択した場合は、録画装置の保持している映像データのうち対象とするフレームを開始時間と長さで指定することができる。 On the other hand, when the background image is set to "automatic update", the user can set whether or not to use the object detection unit 104 by switching the check box of "human body detection option". In the example of FIG. 7, the human body detection is set to "OFF", so the pattern matching processing load is reduced accordingly. Further, when the background image is set to "automatic update", it is possible to select whether the image acquisition unit 102 acquires the image from the "captured image" or from the "recorded image". As shown in FIG. 1(b), when both the imaging device 120 and the recording device 120 exist on the network 110, the image source can be selected. When the recording device 120 is selected, it is possible to specify the target frame from the video data held by the recording device by the start time and length.

領域702は画像合成部108が利用する背景画像を設定する箇所である。ここでは、任意の画像ファイルを設定するための「設定」ボタンや撮像装置120で撮像しているライブ画像を直接的に背景画像として設定するための「ライブ画像を設定」ボタンがある。また、領域701で設定した背景画像をそのまま利用するようにする設定もできる。 A region 702 is a place for setting a background image to be used by the image synthesizing unit 108 . Here, there are a "set" button for setting an arbitrary image file and a "set live image" button for directly setting a live image captured by the imaging device 120 as a background image. It is also possible to set the background image set in the area 701 to be used as it is.

領域設定703は、領域701で自動更新する背景画像に関する設定箇所で、設定ボタンを押下することにより、図6で示したウィンドウ600を表示させる。領域704は、領域701から領域703の設定を反映するカメラをユーザが選択できる。ネットワーク110上に複数の監視カメラがある場合でも簡易に同様の設定をすることができる。「ファイル出力間隔」は、画像合成部108が保護画像に対応する画像ファイル(JPEGやHEIF)を外部メモリ204の所定の箇所に書き込む間隔を示す設定である。画像合成部108は保護画像の配信と並行して画像ファイルを保存することができる。「ファイル数上限」は外部メモリ204で保持する上限の画像ファイルの個数に関する設定であり、1から60480の間で整数値を設定することができ、上限に達すると古いファイルから上書きされていく。 An area setting 703 displays the window 600 shown in FIG. 6 by pressing a setting button in a setting area related to a background image to be automatically updated in the area 701 . A region 704 allows the user to select a camera that reflects the settings of the regions 701 to 703 . Even if there are a plurality of surveillance cameras on the network 110, similar settings can be easily made. “File output interval” is a setting indicating an interval at which the image composition unit 108 writes an image file (JPEG or HEIF) corresponding to the protected image to a predetermined location in the external memory 204 . The image synthesizing unit 108 can store the image file in parallel with the distribution of the protected image. "File number upper limit" is a setting related to the upper limit number of image files that can be held in the external memory 204, and can be set to an integer value between 1 and 60480. When the upper limit is reached, older files are overwritten.

また、上述の実施形態では時間閾値を更新する(上書き)点について説明を省略しているが、例えば、動体検出部103や物体検出部104の検出タイミングと同等、もしくは、より長い時間をとってもよい。例えば、画像出力部120が60fps、Full HDで画像を撮像する際に、画像取得部102は10fps、Full HDの撮像画像を取得し、取得した撮像画像を動体検出部103と物体検出部104に提供する。そして、背景更新部106は、処理を開始した時点では10fpsで入力される撮像画像について毎フレームで時間閾値を更新する処理をする。具体的には、動体検出部103や物体検出部104が以前のフレームと同様の検知をした領域については、インクリメントしたスコア(安定背景時間)を維持する。一方で、動体検出部103や物体検出部104が以前のフレームと異なる検知をした領域については、インクリメントしたスコアを0にリセットし、検知内容に基づいて新しい時間閾値を設定する。なお、背景更新部106は何フレームかに1回更新するようにして処理負荷を軽減させてもよい。このトリガはユーザ指定や、動体検出部103や物体検出部104が所定時間、物体や一定面積以上の動体を検知しなかった事とする。 Also, in the above-described embodiment, the description of updating (overwriting) the time threshold is omitted. . For example, when the image output unit 120 captures an image in Full HD at 60 fps, the image acquisition unit 102 acquires a captured image in Full HD at 10 fps, and sends the acquired captured image to the moving object detection unit 103 and the object detection unit 104. offer. Then, the background update unit 106 updates the time threshold for each frame of the captured image input at 10 fps when the process is started. Specifically, an incremented score (stable background time) is maintained for a region in which the moving object detection unit 103 and the object detection unit 104 have detected the same as in the previous frame. On the other hand, for a region in which the moving object detection unit 103 or the object detection unit 104 detects a difference from the previous frame, the incremented score is reset to 0, and a new time threshold is set based on the detected content. Note that the background updating unit 106 may be updated once every several frames to reduce the processing load. This trigger is specified by the user, or when the moving body detection unit 103 or the object detection unit 104 does not detect an object or a moving body larger than a certain area for a predetermined time.

(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するソフトウェア(プログラム)を、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサー(CPUやMPU等)がプログラムを読出し実行する処理である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies software (programs) for realizing one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors (CPUs) in the computer of the system or device. , MPU, etc.) reads and executes the program. It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

101 画像処理装置
102 画像取得部
103 動体検出部
104 物体検出部
105 パラメータ設定部
106 背景更新部
107 画像比較部
108 画像合成部
109 出力部
120 画像出力装置
101 image processing device 102 image acquisition unit 103 moving object detection unit 104 object detection unit 105 parameter setting unit 106 background update unit 107 image comparison unit 108 image composition unit 109 output unit 120 image output device

Claims (10)

撮像部によって撮像された撮像画像から物体を検出する検出手段と、
前記物体の特徴に基づいて、前記撮像画像から検出された前記物体に対応する領域の時間閾値を設定する設定手段と、
前記撮像画像内の前記領域内の前記物体が静止している時間が前記時間閾値に達した場合に、前記領域内の前記物体が背景画像に反映されるように前記撮像画像に基づいて前記背景画像を更新する更新手段と、を有し、
前記設定手段は、前記物体がプライバシー保護の対象である場合、前記物体に対応する領域の前記時間閾値として第1の値を設定し、前記物体がプライバシー保護の対象でない場合、前記物体に対応する領域の前記時間閾値として、前記第1の値よりも小さい第2の値を設定することを特徴とする画像処理装置。
a detection means for detecting an object from a captured image captured by the imaging unit;
setting means for setting a time threshold for a region corresponding to the object detected from the captured image based on the feature of the object;
The background image is generated based on the captured image so that the object within the region is reflected in the background image when the time period during which the object within the region within the captured image is stationary reaches the time threshold. updating means for updating the image;
The setting means sets a first value as the time threshold for the area corresponding to the object if the object is subject to privacy protection, and if the object is not subject to privacy protection, sets the time threshold to the object. An image processing apparatus, wherein a second value smaller than the first value is set as the time threshold of the region.
前記検出手段は特定の形状特徴に基づくパターンマッチングまたは特定の色により前記撮像画像から前記物体を検出することを特徴とする請求項1に記載の画像処理装置。 2. The image processing apparatus according to claim 1, wherein said detection means detects said object from said picked-up image by pattern matching based on a specific shape feature or by a specific color. 前記プライバシー保護の対象は、人体であることを特徴とする請求項1または2に記載の画像処理装置。 3. The image processing apparatus according to claim 1, wherein the object of privacy protection is a human body. 前記更新手段により更新した背景画像と前記撮像画像におけるプライバシー保護の対象を匿名化した匿名画像とを合成してプライバシー保護画像を生成する合成手段を更に備えることを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。 4. The apparatus according to any one of claims 1 to 3, further comprising synthesizing means for synthesizing the background image updated by said updating means and an anonymous image obtained by anonymizing a subject of privacy protection in said captured image to generate a privacy protection image. The image processing device according to any one of items 1 and 2. 前記設定手段は、前記撮像画像の所定の領域について常に背景化される様に設定することで、前記撮像画像の所定の領域がプライバシー保護の対象とならない様に設定することができる請求項4に記載の画像処理装置。 5. The setting means can set the predetermined area of the captured image so that it is always backgrounded so that the predetermined area of the captured image is not subject to privacy protection. The described image processing device. 前記設定手段は、前記撮像画像の所定の領域について常に背景化されない様に設定することで、前記撮像画像の所定の領域がプライバシー保護の対象となる様に設定することができる請求項4に記載の画像処理装置。 5. The setting device according to claim 4, wherein the setting means can set the predetermined area of the captured image so that the predetermined area of the captured image is not always backgrounded, thereby setting the predetermined area of the captured image to be subject to privacy protection. image processing device. 前記設定手段は、前記撮像画像の所定の領域について常に背景化されない様に設定されている場合に、当該所定の領域について前記更新手段が更新した背景画像を表示するか、ぼかし処理を実施して表示するかのどちらか一方を設定することができる請求項6に記載の画像処理装置。 The setting means displays the background image updated by the updating means for the predetermined area or performs blurring processing when the predetermined area of the captured image is set so as not to be always backgrounded. 7. The image processing apparatus according to claim 6, wherein either display can be set. 前記検出手段は特定の距離以上のオブジェクトを、プライバシーを保護する度合の低い物体として検出することを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。 8. The image processing apparatus according to any one of claims 1 to 7, wherein said detection means detects an object at a specific distance or more as an object with a low degree of privacy protection. 撮像部によって撮像された撮像画像から物体を検出する検出工程と、
前記物体の特徴に基づいて、撮像画像から検出された前記物体に対応する領域の時間閾値を設定する設定工程と、
前記撮像画像内の前記領域内の前記物体が静止している時間が前記時間閾値に達した場合に、前記領域内の前記物体が背景画像に反映されるように前記撮像画像に基づいて背景画像を更新する更新工程と、を有し、
前記設定工程において、前記物体がプライバシー保護の対象である場合、前記物体に対応する領域の前記時間閾値として第1の値を設定し、前記物体がプライバシー保護の対象でない場合、前記物体に対応する領域の前記時間閾値として、前記第1の値よりも小さい第2の値を設定することを特徴とする画像処理方法。
a detection step of detecting an object from the captured image captured by the imaging unit;
a setting step of setting a time threshold for a region corresponding to the object detected from the captured image based on the characteristics of the object;
a background image based on the captured image such that the object within the area is reflected in the background image when the time period during which the object within the area within the captured image is stationary reaches the time threshold; and an updating step of updating the
In the setting step, if the object is subject to privacy protection, a first value is set as the time threshold for the region corresponding to the object; if the object is not subject to privacy protection, the An image processing method, wherein a second value smaller than the first value is set as the time threshold for the region.
コンピュータを、
撮像部によって撮像された撮像画像から物体を検出する検出手段と、
前記物体の特徴に基づいて、撮像画像から検出された前記物体に対応する領域の時間閾値を設定する設定手段と、
前記撮像画像内の前記領域内の前記物体が静止している時間が前記時間閾値に達した場合に、前記領域内の前記物体が背景画像に反映されるように前記撮像画像に基づいて背景画像を更新する更新手段と、を有し、
前記設定手段は、前記物体がプライバシー保護の対象である場合、前記物体に対応する領域の前記時間閾値として第1の値を設定し、前記物体がプライバシー保護の対象でない場合、前記物体に対応する領域の前記時間閾値として、前記第1の値よりも小さい第2の値を設定することを特徴とする画像処理装置として動作させるためのプログラム。
the computer,
a detection means for detecting an object from a captured image captured by the imaging unit;
setting means for setting a time threshold for a region corresponding to the object detected from the captured image based on the feature of the object;
a background image based on the captured image such that the object within the area is reflected in the background image when the time period during which the object within the area within the captured image is stationary reaches the time threshold; and updating means for updating the
The setting means sets a first value as the time threshold for the area corresponding to the object if the object is subject to privacy protection, and if the object is not subject to privacy protection, sets the time threshold to the object. A program for operating as an image processing apparatus, wherein a second value smaller than the first value is set as the time threshold of the area.
JP2018018206A 2018-02-05 2018-02-05 Image processing device, image processing method and program Active JP7187154B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018018206A JP7187154B2 (en) 2018-02-05 2018-02-05 Image processing device, image processing method and program
US16/262,609 US10863113B2 (en) 2018-02-05 2019-01-30 Image processing apparatus, image processing method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018018206A JP7187154B2 (en) 2018-02-05 2018-02-05 Image processing device, image processing method and program

Publications (2)

Publication Number Publication Date
JP2019135810A JP2019135810A (en) 2019-08-15
JP7187154B2 true JP7187154B2 (en) 2022-12-12

Family

ID=67477143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018018206A Active JP7187154B2 (en) 2018-02-05 2018-02-05 Image processing device, image processing method and program

Country Status (2)

Country Link
US (1) US10863113B2 (en)
JP (1) JP7187154B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102012549B1 (en) * 2017-01-25 2019-08-20 엘지전자 주식회사 Method of drawing map by identifying moving object and robot implementing thereof
US11527265B2 (en) 2018-11-02 2022-12-13 BriefCam Ltd. Method and system for automatic object-aware video or audio redaction
US11568168B2 (en) * 2019-04-08 2023-01-31 Shutterstock, Inc. Generating synthetic photo-realistic images
JP7408358B2 (en) 2019-11-18 2024-01-05 キヤノン株式会社 Information processing device, program, storage medium, and information processing method
CN111277772A (en) * 2020-03-09 2020-06-12 北京文香信息技术有限公司 Matting method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203680A (en) 2011-03-25 2012-10-22 Secom Co Ltd Image processing device
JP2016115214A (en) 2014-12-16 2016-06-23 キヤノン株式会社 Image processor, image processing method, and program

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007139067A1 (en) * 2006-05-29 2007-12-06 Panasonic Corporation Image high-resolution upgrading device, image high-resolution upgrading method, image high-resolution upgrading program and image high-resolution upgrading system
WO2008057285A2 (en) * 2006-10-27 2008-05-15 Vidient Systems, Inc. An apparatus for image capture with automatic and manual field of interest processing with a multi-resolution camera
US20080180539A1 (en) * 2007-01-31 2008-07-31 Searete Llc, A Limited Liability Corporation Image anonymization
CN101755461B (en) * 2007-07-20 2012-06-13 富士胶片株式会社 Image processing apparatus, image processing method
US8089522B2 (en) * 2007-09-07 2012-01-03 Regents Of The University Of Minnesota Spatial-temporal multi-resolution image sensor with adaptive frame rates for tracking movement in a region of interest
US8374388B2 (en) * 2007-12-28 2013-02-12 Rustam Stolkin Real-time tracking of non-rigid objects in image sequences for which the background may be changing
BRPI0822737A2 (en) * 2008-09-25 2015-06-23 Tele Atlas Bv Method and disposition to obscure an image
JP5274216B2 (en) * 2008-11-25 2013-08-28 キヤノン株式会社 Monitoring system and monitoring method
KR20120081514A (en) * 2011-01-11 2012-07-19 삼성전자주식회사 Moving picture photographing control method and apparatus
KR20130047223A (en) * 2011-10-31 2013-05-08 한국전자통신연구원 Apparatus and method for masking privacy region based on monitoring video images
JP5915960B1 (en) * 2015-04-17 2016-05-11 パナソニックIpマネジメント株式会社 Flow line analysis system and flow line analysis method
US9635276B2 (en) * 2015-06-10 2017-04-25 Microsoft Technology Licensing, Llc Determination of exposure time for an image frame
JP7122815B2 (en) * 2017-11-15 2022-08-22 キヤノン株式会社 Image processing device, image processing method, and program
JP7106282B2 (en) * 2018-01-30 2022-07-26 キヤノン株式会社 Image processing device, image processing method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203680A (en) 2011-03-25 2012-10-22 Secom Co Ltd Image processing device
JP2016115214A (en) 2014-12-16 2016-06-23 キヤノン株式会社 Image processor, image processing method, and program

Also Published As

Publication number Publication date
US10863113B2 (en) 2020-12-08
JP2019135810A (en) 2019-08-15
US20190246048A1 (en) 2019-08-08

Similar Documents

Publication Publication Date Title
JP7187154B2 (en) Image processing device, image processing method and program
KR101945194B1 (en) Image processing apparatus, image processing method, and program
JP6388673B2 (en) Mobile terminal and imaging method thereof
JP7106282B2 (en) Image processing device, image processing method and program
JP4970302B2 (en) Image processing apparatus, image processing method, and imaging apparatus
US10595060B2 (en) Image generation apparatus, control method therefor, and computer-readable storage medium
JP6935247B2 (en) Image processing equipment, image processing methods, and programs
US8218025B2 (en) Image capturing apparatus, image capturing method, and computer program product
WO2012132167A1 (en) Information processing system, information processing device, imaging device, and information processing method
JP6910772B2 (en) Imaging device, control method and program of imaging device
JP2014238731A (en) Image processor, image processing system, and image processing method
JP7129843B2 (en) Image processing device, image processing device control method, system, and program
US10713797B2 (en) Image processing including superimposed first and second mask images
JP2020095611A (en) Information processing unit, system, control method of information processing unit, and program
KR20150127498A (en) Surveillance camera and surveillance system
JP2016178608A (en) Image processing apparatus, image processing method and program
GB2541073A (en) Information processing apparatus, method for controlling information processing apparatus, image processing system and storage medium
JP7084795B2 (en) Image processing equipment, image providing equipment, their control methods and programs
KR101733125B1 (en) Method of chroma key image synthesis without background screen
JP2009273072A (en) High-definition image processing device, high-definition image processing method, and program
JP2016042661A (en) Information processing unit, system, information processing method, and program
JP7370769B2 (en) Image processing device, image processing method and program
WO2009144968A1 (en) Image processing device, image processing method, and information storage medium
JP7034690B2 (en) Information processing equipment, information processing methods and programs
JP6598828B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220614

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220627

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: 20221101

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221130

R151 Written notification of patent or utility model registration

Ref document number: 7187154

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151