JP6593417B2 - Image compression apparatus and program - Google Patents
Image compression apparatus and program Download PDFInfo
- Publication number
- JP6593417B2 JP6593417B2 JP2017207543A JP2017207543A JP6593417B2 JP 6593417 B2 JP6593417 B2 JP 6593417B2 JP 2017207543 A JP2017207543 A JP 2017207543A JP 2017207543 A JP2017207543 A JP 2017207543A JP 6593417 B2 JP6593417 B2 JP 6593417B2
- Authority
- JP
- Japan
- Prior art keywords
- compression
- image data
- unit
- image
- target
- 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
Links
Images
Description
本発明は、画像圧縮装置、及びプログラムに関する。 The present invention relates to an image compression apparatus and a program.
原画像と、原画像を圧縮した圧縮画像を復号した再生画像とに基づいて、圧縮画像のブロック歪みを定量評価するための情報を生成する技術が開示されている(例えば、特許文献1を参照)。 A technique for generating information for quantitatively evaluating block distortion of a compressed image based on the original image and a reproduced image obtained by decoding the compressed image obtained by compressing the original image is disclosed (for example, see Patent Document 1). ).
圧縮画像の画質は、撮像対象の動きの量、撮像対象を含む撮像領域の明るさなどの外部環境の影響を受けて変化する。画像の圧縮の条件を規定する圧縮パラメータは、撮像対象物の動きの量、及び撮像領域の明るさにより最適な値が異なる。したがって、外部環境の影響を受ける場所で撮像対象物を撮像した場合、外部環境の変化に伴って圧縮画像の画質が劣化してしまうことがあるという問題があった。 The image quality of the compressed image changes under the influence of the external environment such as the amount of movement of the imaging target and the brightness of the imaging area including the imaging target. The optimum compression parameter that defines the compression condition of the image differs depending on the amount of movement of the imaging object and the brightness of the imaging area. Therefore, when the imaging object is imaged at a place affected by the external environment, there is a problem that the image quality of the compressed image may be deteriorated with a change in the external environment.
そこで、本発明はこれらの点に鑑みてなされたものであり、圧縮後の画像の画質が所望の画質になるように画像を圧縮する画像圧縮装置を提供することを目的とする。 Therefore, the present invention has been made in view of these points, and an object thereof is to provide an image compression apparatus that compresses an image so that the image quality of the image after compression becomes a desired image quality.
本発明の第1の態様の画像圧縮装置は、画像データを取得する取得部と、前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部と、前記圧縮部が圧縮した後の圧縮後画像データの画質を評価する画質評価部と、前記圧縮後画像データの画質の目標を示す目標情報を取得する目標情報取得部と、前記画質評価部による評価結果と前記目標情報が示す目標との差に基づいて前記圧縮パラメータを調整するパラメータ調整部と、を有する。 An image compression apparatus according to a first aspect of the present invention includes an acquisition unit that acquires image data, a compression unit that compresses the image data based on a predetermined compression parameter, and a compressed image after the compression unit compresses the image data A difference between an image quality evaluation unit that evaluates the image quality of data, a target information acquisition unit that acquires target information indicating the image quality target of the compressed image data, and an evaluation result by the image quality evaluation unit and a target indicated by the target information A parameter adjusting unit that adjusts the compression parameter based on
前記目標情報取得部は、前記画像データの複数の領域のうち少なくとも一部の領域に関連付けて前記目標情報を取得し、前記パラメータ調整部は、前記目標情報取得部が前記目標情報を取得した前記少なくとも一部の領域の前記圧縮後画像データの画質の前記評価結果と前記目標との差に基づいて前記圧縮パラメータを調整してもよい。 The target information acquisition unit acquires the target information in association with at least some of the plurality of regions of the image data, and the parameter adjustment unit includes the target information acquisition unit that has acquired the target information. The compression parameter may be adjusted based on a difference between the evaluation result of the image quality of the compressed image data in at least a part of the area and the target.
前記画像圧縮装置は、前記評価結果を蓄積する蓄積部をさらに有し、前記パラメータ調整部は、前記蓄積部が蓄積した前記評価結果に基づいて、前記圧縮パラメータを調整してもよい。 The image compression apparatus may further include a storage unit that stores the evaluation result, and the parameter adjustment unit may adjust the compression parameter based on the evaluation result stored by the storage unit.
例えば、前記蓄積部は、前記画像データ又は前記圧縮後画像データの特徴に関連付けて前記評価結果を蓄積し、前記パラメータ調整部は、前記圧縮部が生成した前記圧縮後画像データの特徴に近い特徴に関連付けられた評価結果に基づいて前記圧縮パラメータを調整する。 For example, the storage unit stores the evaluation result in association with the feature of the image data or the compressed image data, and the parameter adjustment unit is a feature close to the feature of the compressed image data generated by the compression unit. The compression parameter is adjusted based on the evaluation result associated with.
前記パラメータ調整部は、前記圧縮後画像データのデータ量の増加又は減少の傾向に基づいて、前記圧縮後画像データの特徴を特定してもよい。 The parameter adjustment unit may specify the feature of the compressed image data based on a tendency of an increase or decrease in the data amount of the compressed image data.
本発明の第2の態様のプログラムは、コンピュータを、画像データを取得する取得部、前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部、前記圧縮部が圧縮した後の圧縮後画像データの画質を評価する画質評価部、前記圧縮後画像データの画質の目標を示す目標情報を取得する目標情報取得部、及び前記画質評価部による評価結果と前記目標情報が示す目標との差に基づいて前記圧縮パラメータを調整するパラメータ調整部、として機能させる。 According to a second aspect of the present invention, there is provided a computer program including an acquisition unit that acquires image data, a compression unit that compresses the image data based on a predetermined compression parameter, and compressed image data after the compression unit compresses An image quality evaluation unit that evaluates the image quality of the image, a target information acquisition unit that acquires target information indicating a target of the image quality of the compressed image data, and a difference between an evaluation result by the image quality evaluation unit and a target indicated by the target information And function as a parameter adjustment unit for adjusting the compression parameter.
本発明によれば、圧縮後の画像の画質が所望の画質になるように画像を圧縮することができるという効果を奏する。 According to the present invention, there is an effect that the image can be compressed so that the image quality of the compressed image becomes a desired image quality.
<第1の実施形態>
図1は、映像記録システムSの概要を説明するための図である。映像記録システムSは、撮像対象を撮像するカメラ2と、カメラ2が撮像して生成された撮像画像を圧縮する画像圧縮装置1と、映像記憶装置3とを備える。画像圧縮装置1と、カメラ2とは、ネットワークを介して接続されている。同様に、画像圧縮装置1と、映像記憶装置3とは、ネットワークを介して接続されている。ネットワークは、例えばインターネットである。
<First Embodiment>
FIG. 1 is a diagram for explaining the outline of the video recording system S. The video recording system S includes a
画像圧縮装置1は、カメラ2が撮像対象を撮像した画像を取得し、所定の圧縮パラメータで圧縮した圧縮後画像を生成する。画像圧縮装置1は、生成した圧縮後画像を映像記憶装置3に送信する。映像記憶装置3は、画像圧縮装置1から受信した圧縮後画像をハードディスク等の記憶媒体に記憶する。カメラ2が撮像する領域を監視する人(以下、ユーザという)は、映像記憶装置3に記憶された圧縮後画像を視認することにより、カメラ2が撮像した領域の状態を確認することができる。
The
画像圧縮装置1が圧縮した圧縮後画像の画質は、カメラ2が撮像対象を撮像したときの、撮像対象の動きの量、撮像対象を含む領域における明るさなどの外部環境により変化する。そのため、圧縮後画像の画質を所望の画質にするには、撮像対象及び外部環境に応じて、画像の圧縮の条件を規定する圧縮パラメータを調整する必要がある。所望の画質は、例えば、圧縮後画像を利用して撮像対象を含む領域の状況を監視するユーザが設定した画質の目標である。
The image quality of the compressed image compressed by the
そこで、画像圧縮装置1は、圧縮した後の圧縮後画像の画質を評価した評価結果と、予め定められた画質の目標との差に基づいて圧縮パラメータを調整する。具体的には、画像圧縮装置1は、評価結果と目標との差が小さくなるように圧縮パラメータを調整する。このようにすることで、画像圧縮装置1は、撮像対象及び外部環境が変化しても、圧縮パラメータを調整することにより、圧縮後画像の画質を所望の画質にすることができる。
Therefore, the
図2は、画像圧縮装置1の機能構成を示す図である。画像圧縮装置1は、取得部11と、圧縮部12と、画質評価部13と、目標情報取得部14と、パラメータ調整部15とを有する。取得部11は、カメラ2から画像データV0を取得する。取得部11は、取得した画像データV0を、圧縮部12と、画質評価部13とに通知する。
FIG. 2 is a diagram illustrating a functional configuration of the
圧縮部12は、画像データV0を所定の圧縮パラメータに基づいて圧縮し、圧縮後画像データV1を生成する。圧縮部12が画像データを圧縮するときの圧縮規格は、例えばH.264であるが、これに限定するものではない。圧縮パラメータは、圧縮後画像の画質を決定する各種の設定値である。具体的には、圧縮パラメータは、圧縮規格がH.264である場合、秒あたりのマクロブロック数、フレームあたりのマクロブロック数、及びビットレートなどである。また、圧縮パラメータは、GOP(Group Of Picture)及びIフレーム(Keyフレーム)の挿入間隔を含んでもよい。
The
画質評価部13は、圧縮部12が圧縮した後の圧縮後画像データV1の画質を評価する。例えば、画質評価部13は、圧縮前の画像データV0と、圧縮部12が圧縮した後の圧縮後画像データV1との平均二乗誤差(Mean Square Error: MSE)を算出することにより、圧縮後画像データV1の画質を評価する。なお、画質評価部13は、MSEの値が低いほど、画質が高いと評価する。
The image
画質評価部13は、MSEの値に基づいて画質のレベルを評価してもよい。例えば、画質評価部13は、画質のレベルを10段階で評価する。画質評価部13は、例えば、MSEが50未満をレベル0、MSEが50以上100未満をレベル1、MSEが100以上150未満をレベル2と評価する。画質評価部13は、MSEが50増加するごとにレベルを1段階増加し、MSEが400以上450未満をレベル8、MSEが450以上をレベル9と評価する。
The image
図3は、圧縮後画像をフレームごとに評価した評価結果をプロットしたグラフを模式的に示す図である。図3において、横軸は時間を示し、縦軸は評価結果(MSEの値)を示す。図3において、目標情報が示す目標により定まる評価結果の目標画質レベルを破線で示す。また、図3において矢印I0とI1の時間は、Iフレームのタイミングである。Iフレームは、他のフレームにおけるデータ誤りの影響を受けないので、他のフレームに比べて評価結果が良好になっている。 FIG. 3 is a diagram schematically showing a graph plotting evaluation results of evaluating the compressed image for each frame. In FIG. 3, the horizontal axis represents time, and the vertical axis represents the evaluation result (MSE value). In FIG. 3, the target image quality level of the evaluation result determined by the target indicated by the target information is indicated by a broken line. In FIG. 3, the time indicated by arrows I0 and I1 is the timing of the I frame. Since the I frame is not affected by the data error in the other frame, the evaluation result is better than that of the other frame.
図3において、実線で示す評価結果R1及び評価結果R2は、カメラ2が撮像した映像を圧縮した圧縮後画像をフレームごとに評価した結果である。評価結果R1は、画像間の変化が少ない映像を圧縮した圧縮後画像を評価して得られた評価結果である。画質評価部13は、評価結果R1を、画質レベル1と評価する。
In FIG. 3, evaluation results R1 and evaluation results R2 indicated by solid lines are results obtained by evaluating a compressed image obtained by compressing a video captured by the
評価結果R2は、画像間の変化が多い映像を圧縮した圧縮後画像を評価して得られた評価結果である。画質評価部13は、例えば、図3において一点鎖線Mで示す、予め定められた平均期間内のMSEの値を平均した平均MSEの値に基づいて、評価結果R2を画質レベル3と評価する。平均期間は、例えばIフレームから次のIフレームまでの期間であるが、これに限らず、映像記録システムSを運営する事業者が適宜設定してもよい。
The evaluation result R2 is an evaluation result obtained by evaluating a post-compression image obtained by compressing a video having a large change between images. For example, the image
なお、画質評価部13は、平均期間内におけるMSEの値の最大値に基づいて画質レベルを評価してもよい。平均期間内におけるMSEの値の最大値に基づいて画質レベルを評価する場合、画質評価部13は評価結果M2を画質レベル4と評価する。
Note that the image
画質評価部13は、MSEだけでなく、ピーク信号対雑音比(Peak signal-to-noise ratio)、又はSSIM(structural similarity)を算出することにより画質を評価してもよい。画質評価部13は、算出した評価結果をパラメータ調整部15に通知する。
The image
目標情報取得部14は、圧縮後画像データV1の画質の目標を示す目標情報を取得する。目標情報は、例えば、ユーザが入力した画質の目標を示す画質レベルを示すテキスト又は数値である。以下の説明においては、目標情報取得部14は、ユーザが入力した画質レベルを示す数値として2を取得したものとする。なお、目標情報取得部14は、ユーザが入力した画質レベルを示す数値に基づいて、MSEの値の目標値を決定してもよい。
The target
目標情報取得部14は、画像データV0の複数の領域のうち少なくとも一部の領域に関連付けて目標情報を取得してもよい。図4は、一部の領域に関連付けて目標情報を取得する処理について説明するための図である。図4においては、画像データAを、領域A1から領域A6までの6つの領域に分割したことを想定している。ユーザは、領域A1から領域A6までの6つの領域のうち少なくとも1つを選択することができる。目標情報取得部14は、ユーザが選択した領域を示す情報を取得する。
The target
目標情報取得部14は、取得した目標情報をパラメータ調整部15に通知する。また、目標情報取得部は、一部の領域に関連付けて目標情報を取得した場合、取得した目標情報と、ユーザにより選択された一部の領域を示す情報とをパラメータ調整部15に通知する。
The target
パラメータ調整部15は、画質評価部13による評価結果と目標情報が示す目標との差に基づいて圧縮パラメータを調整する。パラメータ調整部15は、例えば、評価結果と目標との差が小さくなるように圧縮パラメータを変更する。具体的には、パラメータ調整部15は、評価結果に対応する画質レベルと、目標が示す画質レベルとの差が小さくなるように圧縮パラメータを調整する。例えば、パラメータ調整部15は、評価結果であるMSEの値から、目標により定まるMSEの目標値を減算した値が小さくなるように圧縮パラメータの値を調整する。また、パラメータ調整部15は、MSEの値が目標値以下であれば、圧縮パラメータを調整しなくてもよい。
The
図5は、評価結果の変化を説明するための図である。図5において、横軸は時間を示し、縦軸は評価結果(MSEの値)を示し、目標情報が示す目標により定まる画質レベルを破線で示す。実線で示す評価結果M1は、MSEの値の平均値を時間に対してプロットしたグラフである。 FIG. 5 is a diagram for explaining a change in the evaluation result. In FIG. 5, the horizontal axis indicates time, the vertical axis indicates the evaluation result (MSE value), and the image quality level determined by the target indicated by the target information is indicated by a broken line. An evaluation result M1 indicated by a solid line is a graph in which an average value of MSE values is plotted against time.
パラメータ調整部15は、時刻tiにおいて、期間T1における評価結果(画質レベル7)と、目標(画質レベル2)との差が小さくなるように、圧縮パラメータを調整する。以下同様に、パラメータ調整部15は、時刻ti+1において、期間T2における評価結果(画質レベル4)と、目標(画質レベル2)との差が小さくなるように、圧縮パラメータを調整する。パラメータ調整部15は、時刻ti+2において、期間T3における評価結果(画質レベル3)と、目標(画質レベル2)との差が小さくなるように、圧縮パラメータを調整する。パラメータ調整部15は、時刻ti+3においては、期間T4における評価結果(画質レベル2)と、目標(画質レベル2)とに差がないので、圧縮パラメータを調整しない。このようにすることで、パラメータ調整部15は、ユーザが所望する画質で画像を圧縮することができる。
The
また、パラメータ調整部15は、目標情報取得部14が目標情報を取得した少なくとも一部の領域の圧縮後画像データV1の画質の評価結果と目標との差に基づいて圧縮パラメータを調整してもよい。パラメータ調整部15は、例えば、少なくとも一部の領域の評価結果と、一部の領域に関連付けられた目標との差が小さくなるように圧縮パラメータを調整する。具体的には、パラメータ調整部15は、一部の領域の評価結果であるMSEの値が、一部の領域に関連付けられた目標により定まるMSEの目標範囲内に含まれるように圧縮パラメータを調整する。
Further, the
パラメータ調整部15は、目標情報取得部14が、例えば領域A5に関連付けられた目標を取得した場合、画質評価部13が領域A5における画質を評価した結果と、領域A5に関連付けられた目標との差が小さくなるように圧縮パラメータを調整する。また、パラメータ調整部15は、目標情報取得部14が、領域A5に関連付けられた目標、及び領域A6に関連付けられた目標を取得した場合、領域A5の評価結果と目標との差、及び領域A6の評価結果と目標との差が小さくなるように圧縮パラメータを調整する。パラメータ調整部15は、例えば、領域A5のMSEの値が領域A5の目標範囲に含まれ、かつ領域A6のMSEの値が領域A6の目標範囲に含まれるように圧縮パラメータを調整する。
For example, when the target
なお、パラメータ調整部15は、複数の領域それぞれにおいて画質を評価した評価結果の平均と、目標との差が小さくなるように圧縮パラメータを調整してもよい。具体的には、パラメータ調整部15は、領域A5の評価結果であるMSEの値と領域A6の評価結果であるMSEの値との平均値と、目標により定まるMSEの目標値との差が所定の閾値以下になるように圧縮パラメータを調整する。このようにすることで、画像圧縮装置1は、ユーザが注目する領域の画質が、ユーザの所望する画質になるように画像を圧縮することができるとともに、処理量を減らすことができる。
The
図6は、圧縮パラメータを調整する処理のフローチャートである。以下、画像圧縮装置1が圧縮パラメータを調整する処理の流れについて、図6を参照しながら説明する。まず、取得部11は、カメラ2が撮像対象を撮像した画像データV0を取得する(ステップS1)。圧縮部12は、取得部11が取得した画像データV0を圧縮して圧縮後画像データV1を生成する(ステップS2)。画質評価部13は、圧縮後画像データV1の画質を評価する(ステップS3)。
FIG. 6 is a flowchart of a process for adjusting the compression parameter. Hereinafter, the flow of processing in which the
続いて、目標情報取得部14は、ユーザが入力した圧縮後画像データV1の画質の目標を示す目標情報を取得する(ステップS4)。そして、パラメータ調整部15は、評価結果と画質の目標との差に基づいて圧縮パラメータを調整する(ステップS5)。画像圧縮装置1は、ステップS1からステップS5までを繰り返すことにより、圧縮後画像データV1の画質が目標の画質になるように、カメラ2が撮像した画像データV0の圧縮パラメータを調整することができる。なお、画像圧縮装置1は、ステップS1の処理と、ステップS4の処理とのどちらを先に実行してもよいし、ステップS1からステップS3の処理とステップS4の処理とを並行して実行してもよい。
Subsequently, the target
[第1の実施形態に係る画像圧縮装置1の効果]
以上説明したように、映像記録システムSのパラメータ調整部15は、圧縮後画像データV1の画質を評価した評価結果と、圧縮後画像データV1の画質の目標との差に基づいて圧縮パラメータを調整する。このようにすることで、映像記録システムSは、圧縮部12が圧縮した後の画像の画質をユーザが所望する画質にすることができる。
[Effect of the
As described above, the
<第2の実施形態>
画像圧縮装置1は、上記の構成に加え、評価結果を蓄積する構成を有してもよい。図7は、第2の実施形態に係る画像圧縮装置1の機能構成を示す図である。第2の実施形態に係る画像圧縮装置1は、評価結果を蓄積する蓄積部16をさらに有する。蓄積部16は、例えば、画像データが撮像された日時に関連付けて評価結果を蓄積する。
<Second Embodiment>
In addition to the above configuration, the
図8は、蓄積された評価結果を示すデータテーブルを模式的に示す図である。図8(a)は、日時に関連付けて蓄積された評価結果を示すデータテーブルを模式的に示す図である。なお、日時に関連付けて蓄積された評価結果を時間に対してプロットしたグラフは、例えば図5のようなグラフである。 FIG. 8 is a diagram schematically showing a data table showing the accumulated evaluation results. FIG. 8A is a diagram schematically showing a data table showing the evaluation results accumulated in association with the date and time. A graph in which the evaluation results accumulated in association with the date and time are plotted against time is, for example, a graph as shown in FIG.
パラメータ調整部15は、蓄積部16が蓄積した評価結果に基づいて、圧縮パラメータを調整する。パラメータ調整部15は、例えば、他の日の現在時刻と同じ時刻の後に関連付けて蓄積部16が蓄積している評価結果を参照し、参照した評価結果と目標との差が小さくなるように圧縮パラメータを調整する。このようにすることで、パラメータ調整部15は、評価結果が変化する傾向に合わせて、予め圧縮パラメータを変更することができる。
The
蓄積部16は、画像データV0又は圧縮後画像データV1の特徴に関連付けて評価結果を蓄積してもよい。特徴は、例えば、晴天、曇天、雨天、雪天などの天候である。特徴は、時間帯又は明るさ等であってもよい。図8(b)は、画像データV0と、圧縮後画像データV1と、当該圧縮後画像データV1の特徴と、当該圧縮後画像データV1の評価結果とを関連付けたデータテーブルを模式的に示す図である。
The
蓄積部16が、画像データV0又は圧縮後画像データV1の特徴と評価結果とを関連付けて蓄積している場合、パラメータ調整部15は、圧縮部12が生成した圧縮後画像データV1の特徴に近い特徴に関連付けられた評価結果に基づいて圧縮パラメータを調整する。パラメータ調整部15は、まず、圧縮部12が生成した圧縮後画像データV1を解析して、圧縮後画像データV1の特徴を特定する。圧縮後画像データV1の特徴を特定する方法は任意であり、詳細については後述する。パラメータ調整部15は、特定した特徴に関連付けて蓄積された評価結果を参照することにより、例えば同じ天候の他の日の現在時刻と同じ時刻の後に関連付けて蓄積部16が蓄積している評価結果を参照し、参照した評価結果と目標との差が小さくなるように圧縮パラメータを調整する。
When the
蓄積部16は、評価結果が得られた際に使用されていた圧縮パラメータを記憶してもよい。図9は、評価結果と、画像データV0の特徴と、使用された圧縮パラメータとを関連付けたデータテーブルを模式的に示す図である。
The accumulating
蓄積部16が画像データV0の特徴に関連付けて圧縮パラメータを記憶している場合、パラメータ調整部15は、圧縮部12が生成した圧縮後画像データV1の特徴と同じ特徴に関連付けられた一以上の評価結果のうち、画質の目標を満たす評価結果に関連付けられている圧縮パラメータを選択する。例えば、パラメータ調整部15は、圧縮後画像データV1の特徴が「晴天」であるとき、圧縮後画像データV1と同じ特徴「晴天」に関連付けた評価結果M11(画質レベル4)及びM12(画質レベル2)のうち、画質の目標(画質レベル2)を満たす評価結果M11に対応する圧縮パラメータ「a」を選択する。このようにすることで、パラメータ調整部15は、過去に使用された圧縮パラメータに基づいて圧縮パラメータを調整することができるので、圧縮後画像の画質を所望の画質にするまでの時間を短くすることができる。
When the
[画像データの特徴を特定する方法]
以下、パラメータ調整部15が、画像データV0又は圧縮後画像データV1の特徴を、圧縮後画像データV1のデータ量と、MSEの値とに基づいて特定する方法について、具体的な例を挙げて説明する。
[Method for identifying image data characteristics]
Hereinafter, a specific example will be given for a method in which the
雨が降っているときに撮像した画像データV0には、雨粒が含まれているため、画像全体に動きが発生する。したがって、圧縮後画像データV1のデータ量とMSEの値とがどちらも大きくなる。そこで、パラメータ調整部15は、圧縮後画像データV1のデータ量が第1データ閾値以上であり、かつMESの値が第1評価閾値以上であれば、画像データV0及び圧縮後画像データV1の特徴が雨天であると特定する。
Since the image data V0 captured when it is raining contains raindrops, movement occurs in the entire image. Therefore, both the data amount of the compressed image data V1 and the MSE value are increased. Therefore, if the data amount of the compressed image data V1 is equal to or greater than the first data threshold and the MES value is equal to or greater than the first evaluation threshold, the
晴れているときに撮像した画像データV0においては動きが少なく、高画質であっても高圧縮率で圧縮できるので、圧縮後画像データV1のデータ量とMESの値とはどちらも小さくなる。そこで、パラメータ調整部15は、圧縮後画像データV1のデータ量が第1データ閾値より小さい第2データ閾値以下であり、かつMSEの値が第1評価閾値より小さい第2評価閾値未満であれば、画像データV0及び圧縮後画像データV1の特徴が晴天であると特定する。
The image data V0 captured when the image is clear has little motion and can be compressed at a high compression rate even when the image quality is high, so both the data amount of the compressed image data V1 and the MES value are small. Therefore, if the data amount of the compressed image data V1 is equal to or smaller than the second data threshold smaller than the first data threshold, and the MSE value is smaller than the second evaluation threshold smaller than the first evaluation threshold, the
また、晴れているときに撮像した画像データV0において突発的な動きが発生すると、圧縮後画像データV1のデータ量は小さいとしても、MSEの値は大きくなる。そこで、パラメータ調整部15は、データ量が第2データ閾値以下であり、かつMESの値が第2評価閾値以上であれば、画像データV0及び圧縮後画像データV1の特徴が晴天であると特定する。なお、パラメータ調整部15は、データ量が第1データ閾値以上であり、かつMESの値が第2評価閾値以下である場合、特徴を特定しない。
Further, if a sudden movement occurs in the image data V0 captured when it is clear, the MSE value increases even if the data amount of the compressed image data V1 is small. Therefore, the
パラメータ調整部15は、圧縮後画像データV1のデータ量の増加又は減少の傾向に基づいて、圧縮後画像データV1の特徴を特定してもよい。例えば、パラメータ調整部15は、圧縮後画像データV1のデータ量とMSEの値とが増加傾向である場合、画像データV0が撮像された時の天候が晴天から雨天に変化したことを示していると特定する。また、パラメータ調整部15は、圧縮後画像データV1のデータ量とMSEの値とが減少傾向である場合、画像データV0が撮像された時の天候が雨天から晴天に変化したことを示していると特定する。
The
パラメータ調整部15は、特定した変化後の天候に対応する特徴に関連付けられた評価結果と圧縮パラメータとの関係に基づいて、変化後の天候に対応する圧縮パラメータを選択する。このようにすることで、パラメータ調整部15は、天候が変化した場合においても、圧縮後画像の画質をユーザが所望する画質にする圧縮パラメータに速やかに調整することができる。
The
なお、パラメータ調整部15は、画像データV0又は圧縮後画像データV1を既知の解析手法を用いて解析することにより特徴を特定してもよい。解析手法は、例えば画像データV0から一定の規則や意味を持つ対象を選別して取り出すことにより特徴を特定するパターン認識法である。
The
[第2の実施形態に係る画像圧縮装置1の効果]
以上説明したように、画像圧縮装置1の蓄積部16は、評価結果を蓄積する。そして、パラメータ調整部15は、蓄積された評価結果に対応する圧縮パラメータに基づいて、圧縮パラメータを調整する。このようにすることで、パラメータ調整部15は、圧縮後画像の画質を、ユーザが所望する画質にするまでの時間を短くすることができる。
[Effect of the
As described above, the
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の分散・統合の具体的な実施の形態は、以上の実施の形態に限られず、その全部又は一部について、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を合わせ持つ。 As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment, A various deformation | transformation and change are possible within the range of the summary. is there. For example, the specific embodiments of device distribution / integration are not limited to the above-described embodiments, and all or a part of them may be configured to be functionally or physically distributed / integrated in arbitrary units. Can do. In addition, new embodiments generated by any combination of a plurality of embodiments are also included in the embodiments of the present invention. The effect of the new embodiment produced by the combination has the effect of the original embodiment.
1 画像圧縮装置
2 カメラ
3 映像記憶装置
11 取得部
12 圧縮部
13 画質評価部
14 目標情報取得部
15 パラメータ調整部
16 蓄積部
DESCRIPTION OF
Claims (5)
前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部と、
前記圧縮部が圧縮した後の圧縮後画像データの画質を評価する画質評価部と、
前記圧縮後画像データの画質の目標を示す目標情報を取得する目標情報取得部と、
前記画像データが撮像されたときの天候、時間帯、又は明るさの少なくともいずれかを示す特徴と、前記画質評価部による評価結果と、前記圧縮後画像データに使用された圧縮パラメータとを関連付けて蓄積する蓄積部と、
前記蓄積部が前記評価結果を蓄積した後に、前記圧縮部が生成した前記圧縮後画像データの特徴と同じ特徴に関連付けて前記蓄積部に蓄積された一以上の前記評価結果のうち、前記目標情報が示す画質の目標を満たす前記評価結果に関連付けられた前記圧縮パラメータを選択するパラメータ調整部と、
を有する画像圧縮装置。 An acquisition unit for acquiring image data;
A compression unit that compresses the image data based on a predetermined compression parameter;
An image quality evaluation unit that evaluates the image quality of the compressed image data after being compressed by the compression unit;
A target information acquisition unit for acquiring target information indicating a target of image quality of the compressed image data;
Weather when the image data is captured, the time zone, or a characteristic indicative of brightness of at least one, and evaluation results of the image quality evaluation unit, in association with compression parameters used in the compressed image data An accumulating unit for accumulating;
Among the one or more evaluation results stored in the storage unit in association with the same feature as the feature of the compressed image data generated by the compression unit after the storage unit stores the evaluation result , the target information A parameter adjustment unit that selects the compression parameter associated with the evaluation result that satisfies the image quality target indicated by:
An image compression apparatus.
請求項1に記載の画像圧縮装置。 The parameter adjustment unit adjusts the compression parameter based on a difference between the evaluation result and a target indicated by the target information;
The image compression apparatus according to claim 1.
前記パラメータ調整部は、前記目標情報取得部が前記目標情報を取得した前記少なくとも一部の領域の前記圧縮後画像データの画質の前記評価結果と前記目標との差に基づいて前記圧縮パラメータを調整する、
請求項1又は2に記載の画像圧縮装置。 The target information acquisition unit acquires the target information in association with at least some of the plurality of regions of the image data,
The parameter adjustment unit adjusts the compression parameter based on a difference between the evaluation result of the image quality of the compressed image data in the at least a part of the area where the target information acquisition unit has acquired the target information and the target. To
The image compression apparatus according to claim 1 or 2.
請求項1から3のいずれか一項に記載の画像圧縮装置。 The parameter adjustment unit specifies the characteristics of the compressed image data based on a tendency of an increase or decrease in the data amount of the compressed image data.
The image compression apparatus according to any one of claims 1 to 3.
画像データを取得する取得部、
前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部、
前記圧縮部が圧縮した後の圧縮後画像データの画質を評価する画質評価部、
前記圧縮後画像データの画質の目標を示す目標情報を取得する目標情報取得部、及び
前記画像データが撮像されたときの天候、時間帯、又は明るさの少なくともいずれかを示す特徴と、前記画質評価部による評価結果と、前記圧縮後画像データに使用された圧縮パラメータとを関連付けて蓄積する蓄積部に前記評価結果と前記圧縮パラメータとが関連付けて蓄積された後に、前記圧縮部が生成した前記圧縮後画像データの特徴と同じ特徴に関連付けて前記蓄積部に蓄積された一以上の前記評価結果のうち、前記目標情報が示す画質の目標を満たす前記評価結果に関連付けられた前記圧縮パラメータを選択するパラメータ調整部、
として機能させるためのプログラム。 Computer
An acquisition unit for acquiring image data;
A compression unit for compressing the image data based on a predetermined compression parameter;
An image quality evaluation unit for evaluating the image quality of the compressed image data after the compression unit compresses,
The target information acquiring unit for acquiring target information indicating the target quality of the compressed image data, and weather when the image data is captured, a feature indicating at least one time zone, or brightness, the image quality the evaluation result by the evaluation unit, after the compression after compression parameters used in the image data and the evaluation result storage section for storing in association with the compression parameter is accumulated in association with, said compression unit has generated the of in association with the same characteristics as the image data after compression the said accumulation part of the stored one or more of the evaluation result, selecting the compression parameters associated with the evaluation result satisfying the target quality indicated by the target information Parameter adjustment unit to
Program to function as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017207543A JP6593417B2 (en) | 2017-10-26 | 2017-10-26 | Image compression apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017207543A JP6593417B2 (en) | 2017-10-26 | 2017-10-26 | Image compression apparatus and program |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018207447A Division JP6699707B2 (en) | 2018-11-02 | 2018-11-02 | Image compression device and program |
JP2018207446A Division JP6721022B2 (en) | 2018-11-02 | 2018-11-02 | Image compression device and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019080247A JP2019080247A (en) | 2019-05-23 |
JP6593417B2 true JP6593417B2 (en) | 2019-10-23 |
Family
ID=66626633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017207543A Active JP6593417B2 (en) | 2017-10-26 | 2017-10-26 | Image compression apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6593417B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112351252B (en) * | 2020-10-27 | 2023-10-20 | 重庆中星微人工智能芯片技术有限公司 | Monitoring video coding and decoding device |
-
2017
- 2017-10-26 JP JP2017207543A patent/JP6593417B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019080247A (en) | 2019-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11166027B2 (en) | Content adaptation for streaming | |
US20210058653A1 (en) | Artificial intelligence based resolution improvement system | |
JP6822121B2 (en) | Image processing equipment, image processing methods and programs | |
KR101193267B1 (en) | Image processing device and processing method | |
US11012698B2 (en) | Image encoding apparatus and method for controlling the same | |
US20210166434A1 (en) | Signal processing apparatus and signal processing method | |
US11321390B2 (en) | Video data generation apparatus, video data generation method, and program | |
JP5655668B2 (en) | Imaging apparatus, image processing method, and program | |
JP6593417B2 (en) | Image compression apparatus and program | |
JP6721022B2 (en) | Image compression device and program | |
JP6699707B2 (en) | Image compression device and program | |
JP2011530858A (en) | Method and apparatus for detecting dark noise artifacts | |
Kawayoke et al. | NR objective continuous video quality assessment model based on frame quality measure | |
JP3743389B2 (en) | Image compression apparatus and image compression program | |
JP2003061038A (en) | Video contents edit aid device and video contents video aid method | |
US9183446B2 (en) | Image processing apparatus and image processing method | |
JP2008109247A (en) | Method and device for filtering video noise, integrated circuit, and encoder | |
US20090086024A1 (en) | System and method for improving video compression efficiency | |
US8175150B1 (en) | Methods and/or apparatus for implementing rate distortion optimization in video compression | |
JPH07193766A (en) | Picture information processor | |
JP6826472B2 (en) | Image processing device and its control method | |
JP7435208B2 (en) | Image processing device and program | |
JP6806466B2 (en) | Image coding device and its control method | |
CN111492657B (en) | Light field video compression based on face region detection | |
CN113347375B (en) | Pixel flicker suppression method of pulse image sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20171204 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180904 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181102 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190312 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190320 |
|
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: 20190827 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190909 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6593417 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |