JP6721022B2 - Image compression device and program - Google Patents
Image compression device and program Download PDFInfo
- Publication number
- JP6721022B2 JP6721022B2 JP2018207446A JP2018207446A JP6721022B2 JP 6721022 B2 JP6721022 B2 JP 6721022B2 JP 2018207446 A JP2018207446 A JP 2018207446A JP 2018207446 A JP2018207446 A JP 2018207446A JP 6721022 B2 JP6721022 B2 JP 6721022B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- compression
- unit
- data
- 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
Links
Images
Description
本発明は、画像圧縮装置、及びプログラムに関する。 The present invention relates to an image compression device and a program.
原画像と、原画像を圧縮した圧縮画像を復号した再生画像とに基づいて、圧縮画像のブロック歪みを定量評価するための情報を生成する技術が開示されている(例えば、特許文献1を参照)。 A technique of generating information for quantitatively evaluating block distortion of a compressed image based on an original image and a reproduced image obtained by decoding a 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 region including the imaging target. The optimum value of the compression parameter that defines the condition of image compression varies depending on the amount of movement of the imaging target and the brightness of the imaging region. Therefore, when the imaging target is imaged in a place affected by the external environment, there is a problem that the image quality of the compressed image may deteriorate due to the change in the external environment.
そこで、本発明はこれらの点に鑑みてなされたものであり、圧縮後の画像の画質が所望の画質になるように画像を圧縮する画像圧縮装置を提供することを目的とする。 Therefore, the present invention has been made in view of these points, and an object of the present invention 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 is 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 has compressed the image data. An image quality evaluation unit that evaluates image quality of data, a data amount of the compressed image data, and a similarity between image data before compression by the compression unit and compressed image data after compression by the compression unit. And a parameter adjusting unit that adjusts the compression parameter used by the compression unit by specifying a characteristic of the compressed image data based on the above and selecting a compression parameter associated with the specified characteristic. ..
前記パラメータ調整部は、前記圧縮後画像データのデータ量が第1データ閾値以上であり、かつ前記類似度を示す平均二乗誤差の値が第1評価閾値以上である場合に、前記画像データ及び前記圧縮後画像データの特徴が雨天であると特定してもよい。 When the data amount of the compressed image data is equal to or more than a first data threshold and the value of the mean square error indicating the similarity is equal to or more than a first evaluation threshold, the parameter adjusting unit is configured to The feature of the compressed image data may be specified to be rainy weather.
前記パラメータ調整部は、前記圧縮後画像データのデータ量が前記第1データ閾値より小さい第2データ閾値以下である場合に、前記画像データ及び前記圧縮後画像データの特徴が晴天であると特定してもよい。 The parameter adjusting unit specifies that the features of the image data and the compressed image data are fine weather when the data amount of the compressed image data is equal to or less than a second data threshold that is smaller than the first data threshold. May be.
前記パラメータ調整部は、前記圧縮後画像データのデータ量が第1データ閾値以上であり、かつ前記平均二乗誤差の値の値が前記第1評価閾値より小さい第2評価閾値以下である場合に前記画像データ及び前記圧縮後画像データの特徴を特定しないでもよい。 When the data amount of the compressed image data is equal to or larger than a first data threshold and the value of the mean square error is equal to or smaller than a second evaluation threshold smaller than the first evaluation threshold, The features of the image data and the compressed image data may not be specified.
前記パラメータ調整部は、前記圧縮後画像データのデータ量の増加又は減少の傾向にさらに基づいて前記圧縮後画像データの特徴を特定してもよい。前記パラメータ調整部は、前記類似度の増加又は減少の傾向にさらに基づいて前記圧縮後画像データの特徴を特定してもよい。 The parameter adjustment unit may specify the characteristics of the compressed image data based on the tendency of the data amount of the compressed image data to increase or decrease. The parameter adjustment unit may specify the characteristics of the compressed image data based on the tendency of the similarity to increase or decrease.
本発明の第2の態様のプログラムは、コンピュータを、画像データを取得する取得部、前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部、前記圧縮部が圧縮した後の圧縮後画像データの画質を評価する画質評価部、及び前記圧縮後画像データのデータ量と、前記圧縮部が圧縮する前の画像データと前記圧縮部が圧縮した後の圧縮後画像データとの間の類似度と、に基づいて前記圧縮後画像データの特徴を特定し、特定した特徴に関連付けられた圧縮パラメータを選択することにより、前記圧縮部が使用する前記圧縮パラメータを調整するパラメータ調整部、として機能させる。 The program according to the second aspect of the present invention is a program that causes a computer to acquire an image data, a compression unit that compresses the image data based on a predetermined compression parameter, and compressed image data after the compression unit has compressed the image data. An image quality evaluation unit for evaluating the image quality of, and a data amount of the compressed image data, and a similarity between the image data before being compressed by the compressing unit and the compressed image data after being compressed by the compressing unit. , And specifies a feature of the compressed image data, and selects a compression parameter associated with the identified feature to function as a parameter adjustment unit that adjusts the compression parameter used by the compression unit.
本発明によれば、圧縮後の画像の画質が所望の画質になるように画像を圧縮することができるという効果を奏する。 According to the present invention, there is an effect that an 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 showing 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 in which evaluation results obtained by evaluating the compressed image for each frame are plotted. In FIG. 3, the horizontal axis represents time and the vertical axis represents the evaluation result (value of MSE). 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. Further, 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 frames, the evaluation result is better than that of the other frames.
図3において、実線で示す評価結果R1及び評価結果R2は、カメラ2が撮像した映像を圧縮した圧縮後画像をフレームごとに評価した結果である。評価結果R1は、画像間の変化が少ない映像を圧縮した圧縮後画像を評価して得られた評価結果である。画質評価部13は、評価結果R1を、画質レベル1と評価する。
In FIG. 3, the evaluation result R1 and the evaluation result R2 indicated by solid lines are the results of evaluating the compressed image obtained by compressing the image 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 compressed image obtained by compressing a video having a large change between images. The image
なお、画質評価部13は、平均期間内におけるMSEの値の最大値に基づいて画質レベルを評価してもよい。平均期間内におけるMSEの値の最大値に基づいて画質レベルを評価する場合、画質評価部13は評価結果M2を画質レベル4と評価する。
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 changes in the evaluation result. In FIG. 5, the horizontal axis represents time, the vertical axis represents the evaluation result (value of MSE), and the image quality level determined by the target indicated by the target information is shown by a broken line. The evaluation result M1 indicated by the solid line is a graph in which the 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の目標範囲内に含まれるように圧縮パラメータを調整する。
In addition, the
パラメータ調整部15は、目標情報取得部14が、例えば領域A5に関連付けられた目標を取得した場合、画質評価部13が領域A5における画質を評価した結果と、領域A5に関連付けられた目標との差が小さくなるように圧縮パラメータを調整する。また、パラメータ調整部15は、目標情報取得部14が、領域A5に関連付けられた目標、及び領域A6に関連付けられた目標を取得した場合、領域A5の評価結果と目標との差、及び領域A6の評価結果と目標との差が小さくなるように圧縮パラメータを調整する。パラメータ調整部15は、例えば、領域A5のMSEの値が領域A5の目標範囲に含まれ、かつ領域A6のMSEの値が領域A6の目標範囲に含まれるように圧縮パラメータを調整する。
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 the process of 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が圧縮した後の画像の画質をユーザが所望する画質にすることができる。
[Effects of the
As described above, the
<第2の実施形態>
画像圧縮装置1は、上記の構成に加え、評価結果を蓄積する構成を有してもよい。図7は、第2の実施形態に係る画像圧縮装置1の機能構成を示す図である。第2の実施形態に係る画像圧縮装置1は、評価結果を蓄積する蓄積部16をさらに有する。蓄積部16は、例えば、画像データが撮像された日時に関連付けて評価結果を蓄積する。
<Second Embodiment>
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. The 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
蓄積部16が画像データV0の特徴に関連付けて圧縮パラメータを記憶している場合、パラメータ調整部15は、圧縮部12が生成した圧縮後画像データV1の特徴と同じ特徴に関連付けられた一以上の評価結果のうち、画質の目標を満たす評価結果に関連付けられている圧縮パラメータを選択する。例えば、パラメータ調整部15は、圧縮後画像データV1の特徴が「晴天」であるとき、圧縮後画像データV1と同じ特徴「晴天」に関連付けた評価結果M11(画質レベル4)及びM12(画質レベル2)のうち、画質の目標(画質レベル2)を満たす評価結果M11に対応する圧縮パラメータ「a」を選択する。このようにすることで、パラメータ調整部15は、過去に使用された圧縮パラメータに基づいて圧縮パラメータを調整することができるので、圧縮後画像の画質を所望の画質にするまでの時間を短くすることができる。
When the
[画像データの特徴を特定する方法]
以下、パラメータ調整部15が、画像データV0又は圧縮後画像データV1の特徴を、圧縮後画像データV1のデータ量と、MSEの値とに基づいて特定する方法について、具体的な例を挙げて説明する。
[Method of identifying characteristics of image data]
Hereinafter, a specific example will be given of 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 value of MSE become large. Therefore, if the data amount of the compressed image data V1 is equal to or larger than the first data threshold and the value of MES is equal to or larger than the first evaluation threshold, the
晴れているときに撮像した画像データV0においては動きが少なく、高画質であっても高圧縮率で圧縮できるので、圧縮後画像データV1のデータ量とMESの値とはどちらも小さくなる。そこで、パラメータ調整部15は、圧縮後画像データV1のデータ量が第1データ閾値より小さい第2データ閾値以下であり、かつMSEの値が第1評価閾値より小さい第2評価閾値未満であれば、画像データV0及び圧縮後画像データV1の特徴が晴天であると特定する。 Since the image data V0 captured when it is sunny does not move much and can be compressed with a high compression rate even with high image quality, 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 less than or equal to the second data threshold that is smaller than the first data threshold and the value of MSE is less than the second evaluation threshold that is smaller than the first evaluation threshold, , The image data V0 and the compressed image data V1 are specified to be sunny.
また、晴れているときに撮像した画像データV0において突発的な動きが発生すると、圧縮後画像データV1のデータ量は小さいとしても、MSEの値は大きくなる。そこで、パラメータ調整部15は、データ量が第2データ閾値以下であり、かつMESの値が第2評価閾値以上であれば、画像データV0及び圧縮後画像データV1の特徴が晴天であると特定する。なお、パラメータ調整部15は、データ量が第1データ閾値以上であり、かつMESの値が第2評価閾値以下である場合、特徴を特定しない。
Further, when a sudden motion occurs in the image data V0 captured during sunny weather, the value of MSE increases even though the amount of compressed image data V1 is small. Therefore, if the data amount is equal to or less than the second data threshold and the MES value is equal to or greater than the second evaluation threshold, 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は、圧縮後画像の画質を、ユーザが所望する画質にするまでの時間を短くすることができる。
[Effects of the
As described above, the
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の分散・統合の具体的な実施の形態は、以上の実施の形態に限られず、その全部又は一部について、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を合わせ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes are possible within the scope of the gist thereof. is there. For example, the specific embodiment of device distribution/integration is not limited to the above embodiment, and all or part of the device may be functionally or physically distributed/integrated in arbitrary units. You can Further, a new embodiment that occurs due to an arbitrary combination of a plurality of embodiments is also included in the embodiment of the present invention. The effect of the new embodiment produced by the combination also has the effect of the original embodiment.
1 画像圧縮装置
2 カメラ
3 映像記憶装置
11 取得部
12 圧縮部
13 画質評価部
14 目標情報取得部
15 パラメータ調整部
16 蓄積部
DESCRIPTION OF
Claims (4)
前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部と、
前記圧縮部が圧縮する前の画像データと前記圧縮部が圧縮した後の圧縮後画像データとの平均二乗誤差の値を示す類似度を評価する画質評価部と、
前記圧縮後画像データのデータ量と、前記画質評価部が評価した前記類似度と、に基づいて、前記画像データを撮像した撮像装置の周辺環境を示す複数の特徴のうち一つの特徴を特定し、特定した特徴に関連付けられた、過去に使用された圧縮パラメータを選択することにより、前記圧縮部が使用する前記圧縮パラメータを調整するパラメータ調整部と、
を有し、
前記パラメータ調整部は、前記圧縮後画像データのデータ量が第1データ閾値以上であり、かつ前記平均二乗誤差の値が第1評価閾値以上である場合に、前記画像データ及び前記圧縮後画像データの特徴が雨天であると特定する、
画像圧縮装置。 An acquisition unit that acquires image data,
A compression unit that compresses the image data based on a predetermined compression parameter,
An image quality evaluation unit that evaluates the similarity indicating the value of the mean square error between the image data before compression by the compression unit and the compressed image data after compression by the compression unit,
Based on the data amount of the compressed image data and the degree of similarity evaluated by the image quality evaluation unit, one of a plurality of features indicating the surrounding environment of the image capturing apparatus that captured the image data is specified. Then, a parameter adjusting unit that adjusts the compression parameter used by the compression unit by selecting a compression parameter used in the past, which is associated with the identified feature,
Have a,
When the data amount of the compressed image data is equal to or more than a first data threshold value and the value of the mean square error is equal to or more than a first evaluation threshold value, the parameter adjusting unit may include the image data and the compressed image data. Identify that the feature is rainy weather,
Image compression device.
請求項1に記載の画像圧縮装置。 The parameter adjustment unit specifies that the characteristics of the image data and the compressed image data are sunny when the data amount of the compressed image data is equal to or less than a second data threshold that is smaller than the first data threshold. ,
The image compression apparatus according to claim 1 .
請求項1又は2に記載の画像圧縮装置。 When the data amount of the compressed image data is equal to or larger than a first data threshold and the value of the mean square error is equal to or smaller than a second evaluation threshold smaller than the first evaluation threshold, Does not specify the characteristics of the image data and the compressed image data,
The image compression apparatus according to claim 1 or 2.
画像データを取得する取得部、
前記画像データを所定の圧縮パラメータに基づいて圧縮する圧縮部、
前記圧縮部が圧縮する前の画像データと前記圧縮部が圧縮した後の圧縮後画像データとの平均二乗誤差の値を示す類似度を評価する画質評価部、及び
前記圧縮後画像データのデータ量と、前記画質評価部が評価した前記類似度と、に基づいて、前記画像データを撮像した撮像装置の周辺環境を示す複数の特徴のうち一つの特徴を特定し、特定した特徴に関連付けられた、過去に使用された圧縮パラメータを選択することにより、前記圧縮部が使用する前記圧縮パラメータを調整するパラメータ調整部、
として機能させ、
前記パラメータ調整部は、前記圧縮後画像データのデータ量が第1データ閾値以上であり、かつ前記平均二乗誤差の値が第1評価閾値以上である場合に、前記画像データ及び前記圧縮後画像データの特徴が雨天であると特定する、
プログラム。
Computer,
An acquisition unit that acquires image data,
A compression unit that compresses the image data based on a predetermined compression parameter,
An image quality evaluation unit that evaluates the similarity indicating the value of the mean square error between the image data before compression by the compression unit and the compressed image data after compression by the compression unit, and the data amount of the compressed image data. Based on the similarity evaluated by the image quality evaluation unit, one of a plurality of characteristics indicating the surrounding environment of the image capturing apparatus that has captured the image data is identified and associated with the identified characteristic. A parameter adjusting unit that adjusts the compression parameter used by the compression unit by selecting a compression parameter used in the past ,
To function as,
When the data amount of the compressed image data is equal to or more than a first data threshold value and the value of the mean square error is equal to or more than a first evaluation threshold value, the parameter adjusting unit may include the image data and the compressed image data. Identify that the feature is rainy weather,
program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018207446A JP6721022B2 (en) | 2018-11-02 | 2018-11-02 | Image compression device and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018207446A JP6721022B2 (en) | 2018-11-02 | 2018-11-02 | Image compression device and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017207543A Division JP6593417B2 (en) | 2017-10-26 | 2017-10-26 | Image compression apparatus and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019080314A JP2019080314A (en) | 2019-05-23 |
JP6721022B2 true JP6721022B2 (en) | 2020-07-08 |
Family
ID=66626641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018207446A Active JP6721022B2 (en) | 2018-11-02 | 2018-11-02 | Image compression device and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6721022B2 (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 |
-
2018
- 2018-11-02 JP JP2018207446A patent/JP6721022B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019080314A (en) | 2019-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2004008780A1 (en) | A method and apparatus for measuring the quality of video data | |
RU2009127749A (en) | COMPRESSING AND REMOVING AN IMAGE COMPRESSION | |
US11012698B2 (en) | Image encoding apparatus and method for controlling the same | |
JP2015095764A (en) | Encoder and encoding method | |
US11321390B2 (en) | Video data generation apparatus, video data generation method, and program | |
JP6721022B2 (en) | Image compression device and program | |
JP6699707B2 (en) | Image compression device and program | |
Kawayoke et al. | NR objective continuous video quality assessment model based on frame quality measure | |
JP6593417B2 (en) | Image compression apparatus and program | |
JP2003061038A (en) | Video contents edit aid device and video contents video aid method | |
US9183446B2 (en) | Image processing apparatus and image processing method | |
US20090086024A1 (en) | System and method for improving video compression efficiency | |
WO2010103112A1 (en) | Method and apparatus for video quality measurement without reference | |
US8175150B1 (en) | Methods and/or apparatus for implementing rate distortion optimization in video compression | |
JP6806466B2 (en) | Image coding device and its control method | |
JP7435208B2 (en) | Image processing device and program | |
US10516896B2 (en) | Encoding device, encoding method, and storage medium | |
US10356424B2 (en) | Image processing device, recording medium, and image processing method | |
JP4844094B2 (en) | Digital still camera | |
JP3560958B2 (en) | Video coding control method and apparatus | |
JP2006254308A (en) | Video recording apparatus and video recording method | |
CN113347375B (en) | Pixel flicker suppression method of pulse image sensor | |
Zhang et al. | Region-based texture modelling for next generation video codecs | |
US11032547B2 (en) | Image encoding apparatus, control method thereof, and non-transitory computer-readable storage medium | |
JP2018101907A (en) | Image encoder, method for controlling the same, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20181109 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20191011 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191029 |
|
A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20191217 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200204 |
|
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: 20200519 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200601 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6721022 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |