TWI512671B - Method for hidding visible data - Google Patents

Method for hidding visible data Download PDF

Info

Publication number
TWI512671B
TWI512671B TW102142624A TW102142624A TWI512671B TW I512671 B TWI512671 B TW I512671B TW 102142624 A TW102142624 A TW 102142624A TW 102142624 A TW102142624 A TW 102142624A TW I512671 B TWI512671 B TW I512671B
Authority
TW
Taiwan
Prior art keywords
hue
value
average
image
visual information
Prior art date
Application number
TW102142624A
Other languages
Chinese (zh)
Other versions
TW201520970A (en
Inventor
Pei Yu Lin
Original Assignee
Univ Yuan Ze
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 Univ Yuan Ze filed Critical Univ Yuan Ze
Priority to TW102142624A priority Critical patent/TWI512671B/en
Publication of TW201520970A publication Critical patent/TW201520970A/en
Application granted granted Critical
Publication of TWI512671B publication Critical patent/TWI512671B/en

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Description

可視資訊隱藏方法Visual information hiding method

本發明係關於一種可視資訊隱藏方法,特別是一種將可視資訊以人眼不可察覺方式,嵌入裝置媒體的可視資訊隱藏方法。The invention relates to a visual information hiding method, in particular to a visual information hiding method for embedding visual information into a device medium in an undetectable manner by a human eye.

數位媒體的技術基於目前硬體設備的進步,發展的速度比以往更加快速。主要的原因是可拍攝的電子裝置越來越普及化,且拍攝後進行網路分享也越來越便利。攝影機及可拍攝的行動電子裝置,係為目前使用者最常使用的拍攝設備。經由攝影機及可拍攝的行動電子裝置拍攝後的影片及相片,大多藉由網際網路的便利在網路上流傳。然而,網路上流傳的影片及相片往往會牽涉到隱私權及重製的違法問題。The technology of digital media is based on the advancement of current hardware devices, and the speed of development is faster than ever. The main reason is that the usable electronic devices are becoming more and more popular, and it is more and more convenient to share the Internet after shooting. Cameras and actionable mobile electronic devices are the most commonly used shooting devices for current users. Most of the films and photos taken through the camera and the camera-capable mobile electronic devices are transmitted on the Internet through the convenience of the Internet. However, videos and photos circulating on the Internet often involve privacy and remake violations.

為了解決網路上流傳的影片及相片涉及的隱私權及重製的違法問題,習知的方式大多為加入浮水印(Watermarking),浮水印包括可視浮水印及不可視浮水印。若不加入浮水印,影片及相片很容易被有心人士重製、合成或修改。一般的浮水印大多將商標或圖像隱藏於影片及相片中,用以確認影片及相片的所有權。In order to solve the privacy and remake violations involved in videos and photos circulating on the Internet, most of the conventional methods are to add watermarking, which includes visual watermarking and invisible watermarking. Without the addition of watermarks, movies and photos can easily be reproduced, synthesized or modified by interested parties. Most of the general watermarks hide the trademark or image in the film and photos to confirm the ownership of the film and photos.

可視浮水印之優點在於可直接以人眼辨識,立即達到所有權宣告,且不需複雜計算。但由於可被人眼察覺,往往可被有心人士進行規避或移除,此外,可視浮水印嚴重造成影像失真,破壞媒體內容的可讀性。不可視浮水印常用以隱藏特定的浮水印影像,或於影像進行傳輸時,用以確保彼此收到的影像是否未曾被竄改。然而,不可視浮水印的技術無法立即宣示媒體之所有權,且需複雜的運算,較不適合應用於低運算量之行動裝置上。The advantage of visual watermarking is that it can be directly recognized by the human eye, and immediately achieves the declaration of ownership without complicated calculations. However, because it can be detected by the human eye, it can often be circumvented or removed by people with a heart. In addition, the visual watermark seriously causes image distortion and damages the readability of the media content. Invisible watermarking is often used to hide specific watermark images, or to ensure that images received by each other have not been tampered with when the images are transmitted. However, the technology of invisible watermarking cannot immediately declare the ownership of the media, and requires complicated operations, which is less suitable for use in low-computing mobile devices.

因此,若造成影像大幅度的失真或產生許多影響影像的雜訊,往往失去了可視浮水印的存在意義,並且若要適用於行動裝置之不可視隱藏資訊也十分困難。因此,不可察覺的可視資訊隱藏方法仍有改善的空間,需融合人眼不易辨識的色彩特性且有待更進一步的改良。Therefore, if the image is greatly distorted or a lot of noise affecting the image is generated, the existence of the visual watermark is often lost, and it is very difficult to apply the invisible information to the mobile device. Therefore, the undetectable visual information hiding method still has room for improvement, and it is necessary to integrate the color characteristics that are not easily recognized by the human eye and needs further improvement.

有鑑於以上的問題,本發明提出一種可視資訊隱藏方法。將可視資訊以人眼察覺不出的方式藏入原始影像中,維護媒體內容的可讀性。經由調整行動裝置之直方圖後,隱藏的可視資訊將直接顯示於影像上,提供裝置媒體的可視資訊宣示。In view of the above problems, the present invention proposes a visual information hiding method. Keep visual information hidden in the original image in a way that the human eye can't detect, and maintain the readability of the media content. After adjusting the histogram of the mobile device, the hidden visual information will be directly displayed on the image, providing visual information announcement of the device media.

本發明提供一種可視資訊隱藏方法,用以將可視浮水印影像隱藏於原始影像中,浮水印影像具有圖樣部分與留白部分。可視資訊隱藏方法包括下列步驟:於原始影像中 判斷出至少一個影像嵌入區域。接著,分別計算影像嵌入區域中的多個色調的色調平均值。依據所述多個色調的色調平均值,選擇所述多個色調其中之一。於影像嵌入區域中,判斷圖樣部分對應位置上被選擇的色調的色調值是否小於等於預設值,若圖樣部分對應位置上被選擇的色調的色調值大於預設值,則將圖樣部分對應位置上被選擇的色調的色調值設定成該預設值。The invention provides a visual information hiding method for hiding a visual watermark image in an original image, the watermark image having a pattern part and a blank part. The visual information hiding method includes the following steps: in the original image Determining at least one image embedding area. Next, the average value of the hue of the plurality of tones in the image embedding region is separately calculated. One of the plurality of tones is selected based on the average of the tones of the plurality of tones. In the image embedding area, determining whether the tonal value of the selected hue on the corresponding position of the pattern portion is less than or equal to a preset value, and if the hue value of the selected hue on the corresponding position of the pattern portion is greater than a preset value, the corresponding position of the pattern portion is The tone value of the selected hue is set to the preset value.

承接上述,於影像嵌入區域中,判斷留白部分對應位置上被選擇的色調的色調值是否大於等於色調的色調平均值,若留白部分對應位置上被選擇的色調的色調值小於色調的色調平均值,則將留白部分對應位置上被選擇的色調的色調值設定成色調的色調平均值。According to the above, in the image embedding region, it is determined whether the hue value of the selected hue at the corresponding position of the blank portion is greater than or equal to the hue average value of the hue, and if the hue value of the selected hue at the corresponding position of the blank portion is smaller than the hue of the hue The average value is set to the hue value of the selected hue at the corresponding position of the blank portion as the hue average value of the hue.

在本發明一實施例中,預設值與色調的色調平均值至少相差門檻值。其中,門檻值可以是大於等於2的數值。In an embodiment of the invention, the preset value and the hue mean of the hue differ by at least a threshold value. Wherein, the threshold value may be a value greater than or equal to 2.

在本發明一實施例中,前述至少一影像嵌入區域係為原始影像之最大色調穩定區域(maximum stable tone value region)。最大色調穩定區域係為影像嵌入區域內像素之三色調:紅色像素值、綠色像素值及藍色像素值,此三色調之變異量的平均總值,選出平均總值差距小的最大區域。In an embodiment of the invention, the at least one image embedding region is a maximum stable tone value region of the original image. The maximum tonal stability region is the three tones of the pixels in the image embedding region: the red pixel value, the green pixel value, and the blue pixel value, and the average total value of the variations of the three tones is selected as the largest region where the average total value difference is small.

在本發明一實施例中,前述嵌入區域之紅色像素平均值、綠色像素平均值及藍色像素平均值,係為影像嵌入區域內紅色、綠色及藍色色調的各別像素平均值。In an embodiment of the invention, the red pixel average value, the green pixel average value, and the blue pixel average value of the embedded region are average values of respective pixels of red, green, and blue hue in the image embedding region.

在本發明一實施例中,於判斷圖樣部分對應位置上被選擇的色調的色調值是否小於等於預設值的步驟中,若圖樣部分對應位置上被選擇的色調的像素小於等於預設值,則不變動圖樣部分對應位置上被選擇的色調的色調值。In an embodiment of the present invention, in the step of determining whether the tonal value of the selected hue on the corresponding position of the pattern portion is less than or equal to the preset value, if the pixel of the selected hue at the corresponding position of the pattern portion is less than or equal to the preset value, Then, the tone value of the selected hue at the corresponding position of the pattern portion is not changed.

在本發明一實施例中,於判斷留白部分對應位置上被選擇的色調的色調值是否大於等於色調的色調平均值的步驟中,若留白部分對應位置上被選擇的色調的色調值大於等於色調的色調平均值,則不變動留白部分對應位置上被選擇的色調的色調值。In an embodiment of the present invention, in the step of determining whether the tonal value of the selected hue at the corresponding position of the blank portion is greater than or equal to the hue average value of the hue, if the hue value of the selected hue at the corresponding position of the blank portion is greater than Equal to the hue average of the hue, the hue value of the selected hue at the corresponding position of the blank portion is not changed.

本發明提供一種可視資訊隱藏方法,用以將可視浮水印影像隱藏於原始影像中,浮水印影像具有圖樣部分與留白部分。可視資訊隱藏方法包括下列步驟:於原始影像中判斷出至少一個影像嵌入區域。接著,分別計算影像嵌入區域中的多個色調的色調平均值。判斷所述多個色調的色調平均值是否均大於等於門檻值,據以選擇所述多個色調其中之一。若所述多個色調的色調平均值均未大於等於門檻值,判斷圖樣部分對應位置上被選擇的色調的色調值是否大於等於預設值,若圖樣部分對應位置上被選擇的色調的色調值小於預設值,則將圖樣部分對應位置上被選擇的色調的色調值設定成該預設值。The invention provides a visual information hiding method for hiding a visual watermark image in an original image, the watermark image having a pattern part and a blank part. The visual information hiding method includes the following steps: determining at least one image embedding area in the original image. Next, the average value of the hue of the plurality of tones in the image embedding region is separately calculated. It is determined whether the average value of the tones of the plurality of tones is greater than or equal to a threshold value, and one of the plurality of tones is selected accordingly. If the average value of the hue of the plurality of tones is not greater than or equal to the threshold value, determining whether the hue value of the selected hue at the corresponding position of the pattern portion is greater than or equal to a preset value, and if the hue value of the selected hue is corresponding to the position of the pattern portion If it is less than the preset value, the tone value of the selected hue at the corresponding position of the pattern portion is set to the preset value.

承接上述,於影像嵌入區域中,判斷留白部分對應位置上被選擇的色調的色調值是否小於等於色調的色調平 均值,若留白部分對應位置上被選擇的色調的色調值大於色調的色調平均值,則將留白部分對應位置上被選擇的色調的色調值設定成色調的色調平均值。According to the above, in the image embedding region, it is determined whether the hue value of the selected hue at the corresponding position of the blank portion is less than or equal to the hue of the hue The mean value is set to the hue value of the hue of the selected hue in the corresponding position of the blank portion if the hue value of the selected hue at the corresponding position of the blank portion is larger than the hue average value of the hue.

本發明所揭露之可視資訊隱藏方法,將可視資訊以人眼不可察覺方式,隱藏於影像之區域內。當欲顯示裝置影像內不可察覺資訊時,只須依門檻值及色調平均值,調整色調直方圖之下限值或上限值範圍,即可顯現隱藏之可視資訊。此可視資訊隱藏方法,可將可視資訊嵌入於原始影像中較不易被肉眼所察覺之色彩區域,以維護影像內容之可讀性,並隱藏重要可視資訊。於顯示可視資訊時,可經由直方圖的調整,清楚的顯示可視資訊,以宣示影像資訊及避免遭到合成或竄改。此外,唯有授權者擁有門檻值及色調平均值,方能進行對隱藏之可視資訊進行顯示,可提升隱藏資訊的保密性。The visual information hiding method disclosed in the present invention hides the visual information in an area of the image in an undetectable manner by the human eye. When you want to display the imperceptible information in the image of the device, you only need to adjust the lower limit value or the upper limit value range of the hue histogram according to the threshold value and the average value of the hue, so that the hidden visual information can be displayed. The visual information hiding method can embed visual information in a color area of the original image that is less noticeable to the naked eye to maintain the readability of the image content and hide important visual information. When the visual information is displayed, the visual information can be clearly displayed through the adjustment of the histogram to declare the image information and avoid being synthesized or tampered with. In addition, only the licensor has the threshold value and the average value of the hue to display the hidden visual information, which can improve the confidentiality of hidden information.

以上之關於本發明內容之說明,及以下之實施方式之說明,係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the present invention and the following description of the embodiments are intended to illustrate and explain the spirit and principles of the invention, and to provide further explanation of the scope of the invention.

10‧‧‧原始影像10‧‧‧ original image

11‧‧‧影像嵌入區域11‧‧‧Image embedding area

12‧‧‧浮水印影像12‧‧‧Watermark imagery

S201~S209‧‧‧步驟流程S201~S209‧‧‧Step procedure

S301~S309‧‧‧步驟流程S301~S309‧‧‧Step procedure

41‧‧‧原始影像41‧‧‧ original image

42‧‧‧原始影像42‧‧‧ original image

420‧‧‧第一影像嵌入區域420‧‧‧First image embedding area

422‧‧‧第二影像嵌入區域422‧‧‧Second image embedding area

424‧‧‧第三影像嵌入區域424‧‧‧ Third image embedding area

43‧‧‧浮水印影像嵌入後影像43‧‧‧Watermark image embedded image

431‧‧‧浮水印影像431‧‧‧Watermark image

432‧‧‧浮水印影像432‧‧‧Watermark image

433‧‧‧浮水印影像433‧‧‧Watermark image

44‧‧‧浮水印影像嵌入後影像44‧‧‧ Watermark image embedded image

441‧‧‧浮水印影像441‧‧‧Watermark image

45‧‧‧浮水印影像嵌入後影像45‧‧‧Watermark image embedded image

451‧‧‧浮水印影像451‧‧‧Watermark image

50‧‧‧原始影像50‧‧‧ original image

501‧‧‧影像嵌入區域501‧‧‧Image embedding area

51‧‧‧浮水印影像嵌入後影像51‧‧‧ Watermark image embedded image

511‧‧‧浮水印影像511‧‧‧Watermark image

60‧‧‧原始影像60‧‧‧ original image

601‧‧‧影像嵌入區域601‧‧‧Image embedding area

61‧‧‧浮水印影像嵌入後影像61‧‧‧ Watermark image embedded image

611‧‧‧浮水印影像611‧‧‧Watermark image

70‧‧‧原始影像70‧‧‧ original image

701‧‧‧影像嵌入區域701‧‧‧Image embedding area

71‧‧‧浮水印影像嵌入後影像71‧‧‧ Watermark image embedded image

711‧‧‧浮水印影像711‧‧‧Watermark image

第1圖係為根據本發明一實施例之可視資訊隱藏方法的方塊圖。1 is a block diagram of a visual information hiding method in accordance with an embodiment of the present invention.

第2圖係為根據本發明一實施例之可視資訊隱藏方法的流 程圖。2 is a flow of a visual information hiding method according to an embodiment of the present invention. Cheng Tu.

第3圖係為根據本發明另一實施例之可視資訊隱藏方法的流程圖。3 is a flow chart of a visual information hiding method according to another embodiment of the present invention.

第4a圖、第4b圖、第4c圖、第4d圖及第4e圖係為根據本發明一實施例之範例圖。4a, 4b, 4c, 4d, and 4e are exemplary diagrams in accordance with an embodiment of the present invention.

第5a圖及第5b圖係為根據本發明另一實施例之範例圖。5a and 5b are exemplary diagrams in accordance with another embodiment of the present invention.

第6a圖及第6b圖係為根據本發明再一實施例之範例圖。6a and 6b are exemplary diagrams in accordance with still another embodiment of the present invention.

第7a圖及第7b圖係為根據本發明又一實施例之範例圖。Figures 7a and 7b are exemplary diagrams in accordance with yet another embodiment of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所發明之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the invention. The objects and advantages associated with the present invention can be readily understood by those skilled in the art. The following examples are intended to describe the present invention in further detail, but are not intended to limit the scope of the invention.

請一併參見第1圖與第2圖,第1圖係為根據本發明一實施例之可視資訊隱藏方法的方塊圖,第2圖係為根據本發明一實施例之可視資訊隱藏方法的流程圖。本實施例所述的可視資訊隱藏方法係用以將浮水印影像12嵌入原始影像10中。所述可視資訊在此係指浮水印影像12,浮水印影像12具有圖樣部分與留白部分。如圖所示,原始影像10中可圈選或計算出一定範圍的影像嵌入區域11,影像嵌入區域11用 來嵌入浮水印影像12。原始影像10係例如為以像素(pixel)構成的影像檔案,如聯合圖像專家小組(Joint Photographic Experts Group,JPEG)格式之影像、點陣圖(Bit Map,BMP)格式之影像或行動式網路圖形(Portable Networking Graphics,PNG)等。於一個例子中,原始影像10可以是裝置媒體(例如為數位相機中)的照片或媒體影片中的一個視框(Frame)。Please refer to FIG. 1 and FIG. 2 together, FIG. 1 is a block diagram of a visual information hiding method according to an embodiment of the present invention, and FIG. 2 is a flow of a visual information hiding method according to an embodiment of the present invention. Figure. The visual information hiding method described in this embodiment is used to embed the watermark image 12 in the original image 10. The visual information herein refers to the watermark image 12, and the watermark image 12 has a pattern portion and a blank portion. As shown in the figure, a certain range of image embedding regions 11 can be circled or calculated in the original image 10, and the image embedding region 11 is used. To embed the watermark image 12. The original image 10 is, for example, an image file composed of pixels, such as an image of a Joint Photographic Experts Group (JPEG) format, a bitmap image of a Bit Map (BMP) format, or a mobile network. Road Networking Graphics (PNG), etc. In one example, the original image 10 can be a photo of a device medium (eg, in a digital camera) or a frame in a media movie.

於步驟S201中,本實施例首先要於原始影像10中判斷出至少一個影像嵌入區域11。於實務上,若影像嵌入區域11為原始影像10的最大色調穩定區域(或稱平滑區域)時,可選定為影像嵌入區域11。於所屬技術領域具有通常知識者可用其他條件選擇影像嵌入區域,本實施例在此不加以限制。於此實施例中,影像嵌入區域11恰好可以為方形區域,當然影像嵌入區域11也可以視需要選擇其他的形狀。In step S201, the embodiment first determines at least one image embedding region 11 in the original image 10. In practice, if the image embedding region 11 is the maximum hue stable region (or smooth region) of the original image 10, the image embedding region 11 can be selected. Those skilled in the art can select image embedding regions by other conditions, and the embodiment is not limited herein. In this embodiment, the image embedding region 11 may just be a square region. Of course, the image embedding region 11 may also select other shapes as needed.

舉例來說,取得原始影像10中的最大色調穩定區域的方式,可先選定原始影像10中可能包括的任何區域。接著,逐一比對任何區域的各個像素,比對的方式係先選定各個像素的紅色的色調值、綠色的色調值及藍色的色調值其中之一。再以被選擇的色調的色調值進行兩兩比對。在此,各個像素的紅色的色調值(red color tone value)、綠色的色調值(green color tone value)或藍色的色調值(blue color tone value),係分別為各個像素的紅色強度、綠色強度及藍色強度,實務上可以為0到255之整數。For example, to obtain the maximum tonal stability region in the original image 10, any region that may be included in the original image 10 may be selected first. Next, each pixel of any region is compared one by one, and the alignment method first selects one of the red hue value, the green hue value, and the blue hue value of each pixel. The two-to-two comparisons are performed with the tonal values of the selected tones. Here, the red color tone value, the green color tone value, or the blue color tone value of each pixel are respectively the red intensity and green of each pixel. Strength and blue intensity can be an integer from 0 to 255.

經前述色調的色調值的比對後,所得出的平均差距值最小的區域可以為原始影像10中的影像嵌入區域11,所述影像嵌入區域可以儘可能地大,或者依據欲嵌入的浮水印影像12尺寸進行選擇。紅色的色調值、綠色的色調值及藍色的色調值係為影像形成的三原色之色調值,本實施例所例示的色調係基於三原色之原則,實際情況並不以此為限。After the comparison of the tonal values of the aforementioned tones, the region with the smallest average difference value may be the image embedding region 11 in the original image 10, the image embedding region may be as large as possible, or according to the watermark to be embedded. The image 12 size is selected. The red tonal value, the green tonal value, and the blue tonal value are the tonal values of the three primary colors formed by the image. The hue illustrated in this embodiment is based on the principle of the three primary colors, and the actual situation is not limited thereto.

浮水印影像12係可為圖形、文字或其他資訊,於本實施例中以圖形附加文字進行說明。本實施例中僅以一個浮水印影像12進行說明,但實際情況並不以此為限。為了對應浮水印影像12,本實施例亦僅以一個影像嵌入區域11進行說明,但於實際情況可依據最大色調穩定區域或下一個次大色調穩定區域產生多個影像嵌入區域11。The watermark image 12 can be a graphic, a text or other information, and is illustrated by a graphic additional text in this embodiment. In this embodiment, only one watermark image 12 is described, but the actual situation is not limited thereto. In order to correspond to the watermark image 12, the present embodiment is also described by only one image embedding region 11, but in practice, a plurality of image embedding regions 11 may be generated according to the maximum hue stable region or the next sub-large hue stable region.

在步驟S202中,本實施例分別計算影像嵌入區域11中的多個色調的色調平均值。所述多個色調可以是紅色(R)、綠色(G)及藍色(B),而多個對應的色調平均值係為各個像素中紅色強度、綠色強度及藍色強度的平均值。In step S202, the present embodiment calculates the average value of the hue of the plurality of tones in the image embedding region 11, respectively. The plurality of hue may be red (R), green (G), and blue (B), and a plurality of corresponding hue average values are average values of red intensity, green intensity, and blue intensity in each pixel.

在步驟S203中,依據所述多個色調的色調平均值,選擇所述多個色調其中之一。舉例來說,本實施例可以依據各個色調的色調平均值的大小來選擇色調,例如可以選擇色調平均值最大或者最小的色調,選擇理由於後說明。於一個例子中,更可以先判斷所述多個色調的色調平均值是否均大於等於一個門檻值,來決定選擇哪一個色調。於實務上, 當色調的色調平均值均大於等於門檻值時,則選擇各個色調中色調平均值最小的色調。當色調的色調平均值小於門檻值時,則選擇方式可見於下一個實施例。In step S203, one of the plurality of tones is selected according to the average of the tones of the plurality of tones. For example, in the present embodiment, the color tone can be selected according to the magnitude of the average value of the hue of each color tone. For example, the color tone having the largest or smallest hue average value can be selected, and the reason for selection will be described later. In an example, it may be further determined whether the average of the hue of the plurality of tones is greater than or equal to a threshold value to determine which hue is selected. In practice, When the average value of the hue of the hue is greater than or equal to the threshold value, the hue having the smallest hue average value in each hue is selected. When the hue average of the hue is less than the threshold value, the selection mode can be seen in the next embodiment.

於步驟S204中,本實施例於影像嵌入區域11中,判斷浮水印影像12的圖樣部分對應位置上被選擇的色調的色調值是否小於等於預設值。舉例來說,若被選擇的色調是紅色(R),那麼本實施例會判斷影像嵌入區域11中,各個像素對應圖樣部分的紅色的色調值的大小。若圖樣部分對應位置上紅色的色調值大於預設值,則於步驟S205所述,將圖樣部分對應位置上紅色的色調值設定成預設值。反之,若圖樣部分對應位置上紅色的色調值小於等於預設值,則於步驟S206所述,不變動圖樣部分對應位置上紅色的色調值。In step S204, in the image embedding area 11, the present embodiment determines whether the hue value of the selected hue on the corresponding position of the pattern portion of the watermark image 12 is less than or equal to a preset value. For example, if the selected hue is red (R), then the embodiment determines the size of the red hue value of each of the pixels corresponding to the pattern portion in the image embedding region 11. If the hue value of the red color corresponding to the position of the pattern portion is greater than the preset value, then in step S205, the hue value of the red color corresponding to the position of the pattern portion is set to a preset value. On the other hand, if the hue value of the red color corresponding to the position of the pattern portion is less than or equal to the preset value, the red hue value at the corresponding position of the pattern portion is not changed as described in step S206.

另一方面,於步驟S207中,本實施例於影像嵌入區域11中,判斷留白部分對應位置上紅色的色調值是否大於等於紅色的色調平均值。若留白部分對應位置上紅色的色調值小於紅色的色調平均值,則於步驟S208所述,將留白部分對應位置上紅色的色調值設定成紅色的色調平均值。反之,則於步驟S209所述,若留白部分對應位置上紅色的色調值大於等於紅色的色調平均值,則不變動留白部分對應位置上紅色的色調值。On the other hand, in step S207, in the image embedding region 11, the present embodiment determines whether the hue value of red on the corresponding position of the blank portion is greater than or equal to the hue average value of red. If the hue value of the red color corresponding to the position of the blank portion is smaller than the hue average value of the red color, the hue value of the red color corresponding to the position of the blank portion is set to the hue average value of the red color as described in step S208. On the other hand, in step S209, if the red tonal value of the corresponding position in the blank portion is greater than or equal to the red tonal average value, the red tonal value at the corresponding position of the blank portion is not changed.

以實際的例子來說,當判斷出影像嵌入區域11後,會先計算影像嵌入區域11中紅色、綠色、藍色的色調平 均值,假設分別算出來的是100、150、200。此時,本實施例會選擇色調平均值最小的紅色作為被選擇的色調。接著,由於影像嵌入區域11中的紅色的色調平均值為100,則預設值可設定成98。在此,預設值(98)可以是色調平均值(100)減去一個門檻值(2),本實施例不限制門檻值的大小,於所屬技術領域具有通常知識者可自由設計。In a practical example, when the image embedding area 11 is determined, the color of the red, green, and blue colors in the image embedding area 11 is first calculated. The mean value is assumed to be 100, 150, and 200, respectively. At this time, the present embodiment selects red having the smallest hue average as the selected hue. Next, since the average value of the hue of the red in the image embedding region 11 is 100, the preset value can be set to 98. Here, the preset value (98) may be a hue average value (100) minus a threshold value (2). This embodiment does not limit the size of the threshold value, and is generally freely designed by those skilled in the art.

值得注意的是,因為本實施例的預設值是色調平均值減去門檻值,故當色調平均值已經小於門檻值時,不能適用本實施例所揭示的內容,而詳細的實施方式如後所述。It should be noted that, because the preset value of the embodiment is the average value of the hue minus the threshold value, when the average value of the hue is less than the threshold value, the content disclosed in the embodiment cannot be applied, and the detailed implementation is as follows. Said.

接著,於嵌入浮水印影像12至影像嵌入區域11的過程中,要先判斷浮水印影像12的圖樣部分對應位置上紅色的色調值是否小於等於預設值。若影像嵌入區域11中,圖樣部分對應到的某一個像素的紅色的色調值是90(小於等於預設值98),則本實施例不會修改這個像素的紅色的色調值。另一方面,若圖樣部分對應到的另一個像素的紅色的色調值是110(大於預設值98),則本實施例會將這個像素的紅色的色調值修改成預設值98。Then, in the process of embedding the watermark image 12 into the image embedding region 11, it is first determined whether the red hue value at the corresponding position of the pattern portion of the watermark image 12 is less than or equal to a preset value. If the image is embedded in the area 11, the red tonal value of a pixel corresponding to the pattern portion is 90 (less than or equal to the preset value 98), the present embodiment does not modify the red tone value of the pixel. On the other hand, if the red tone value of the other pixel corresponding to the pattern portion is 110 (greater than the preset value 98), the present embodiment will modify the red tone value of this pixel to the preset value 98.

另外,若影像嵌入區域11中,留白部分對應到的某一個像素的紅色的色調值是90(小於紅色的色調平均值100),則本實施例會將這個像素的紅色的色調值修改成紅色的色調平均值100。另一方面,若留白部分對應到的另一個像素的紅色的色調值是110(大於等於紅色的色調平均值100),則 本實施例不會修改這個像素的紅色的色調值。In addition, if the image in the image embedding region 11 and the red color of the pixel corresponding to the blank portion is 90 (less than the hue average value of 100), the present embodiment will modify the red hue value of the pixel to red. The average hue of the 100. On the other hand, if the red color value of the other pixel corresponding to the blank portion is 110 (greater than or equal to the red hue average value 100), then This embodiment does not modify the red tonal value of this pixel.

由此可知,當使用者被授權有門檻值(2)及被選擇的色調的色調平均值(100)時,使用者便可以透過設定影像瀏覽設備(如行動裝置),經由直方圖的調整成只顯示預設值98以及色調平均值100之間的色調,便清楚地顯示可視資訊,以宣示影像資訊及避免遭到合成或竄改。It can be seen that when the user is authorized to have a threshold value (2) and a mean value (100) of the selected hue, the user can adjust the histogram through the setting of the image browsing device (such as a mobile device). Only the hue between the preset value 98 and the hue average value of 100 is displayed, and the visual information is clearly displayed to announce the image information and avoid being synthesized or tampered with.

如前揭內容,當影像嵌入區域11中一色調的色調平均值已經小於門檻值時,本發明更提供了相應的實施例。請一併參見第1圖與第3圖,第3圖係為根據本發明另一實施例之可視資訊隱藏方法的流程圖。相同於第2圖,於步驟S301中,本實施例也要於原始影像10中判斷出至少一個影像嵌入區域11。判斷影像嵌入區域11的方式如前一實施例所說明,本實施例在此不加以贅述。在步驟S302中,本實施例也會分別計算影像嵌入區域11中的多個色調的色調平均值。所述多個色調可以是紅色(R)、綠色(G)及藍色(B),而多個對應的色調平均值係為各個像素中紅色強度、綠色強度及藍色強度的平均值。As described above, the present invention further provides a corresponding embodiment when the average value of the hue of a hue in the image embedding region 11 is already less than the threshold value. Please refer to FIG. 1 and FIG. 3 together. FIG. 3 is a flowchart of a visual information hiding method according to another embodiment of the present invention. Similar to FIG. 2, in step S301, the present embodiment also determines at least one image embedding region 11 in the original image 10. The manner of judging the image embedding area 11 is as described in the previous embodiment, and the embodiment is not described herein. In step S302, the present embodiment also calculates the average value of the hue of the plurality of tones in the image embedding region 11, respectively. The plurality of hue may be red (R), green (G), and blue (B), and a plurality of corresponding hue average values are average values of red intensity, green intensity, and blue intensity in each pixel.

與前一實施例不同的是,在步驟S303中,本實施例會先判斷所述多個色調的色調平均值是否均大於等於門檻值,據以選擇所述多個色調其中之一,這裡先假設被選擇的色調是紅色(R)。若所述多個色調的色調平均值未均大於等於門檻值,於步驟S304在影像嵌入區域11中,判斷圖樣部 分對應位置上紅色的色調值是否大於等於預設值。於步驟S305中,若圖樣部分對應位置上紅色的色調值小於預設值,則將圖樣部分對應位置上紅色的色調值設定成預設值。反之,於步驟S306中,若圖樣部分對應位置上紅色的色調值大於等於預設值,則不變動圖樣部分對應位置上的紅色的色調值。Different from the previous embodiment, in step S303, the embodiment first determines whether the average value of the tones of the plurality of tones is greater than or equal to a threshold value, thereby selecting one of the plurality of tones, here first assumes The selected hue is red (R). If the average value of the hue of the plurality of tones is not greater than or equal to the threshold value, the image embedding region 11 is determined in step S304 to determine the pattern portion. Whether the red tonal value of the corresponding position is greater than or equal to the preset value. In step S305, if the hue value of the red color corresponding to the position of the pattern portion is less than the preset value, the hue value of the red color corresponding to the position of the pattern portion is set to a preset value. On the other hand, in step S306, if the hue value of red on the corresponding position of the pattern portion is greater than or equal to the preset value, the hue value of red on the corresponding position of the pattern portion is not changed.

接著,於步驟S307中,於影像嵌入區域11中,判斷留白部分對應位置上紅色的色調值是否小於等於紅色的色調平均值。於步驟S308中,若留白部分對應位置上紅色的色調值大於紅色的色調平均值,則將留白部分對應位置上紅色的色調值設定成紅色的色調平均值。反之,於步驟S309中,若留白部分對應位置上紅色的色調值小於等於紅色的色調平均值,則不變動留白部分對應位置上紅色的色調值。Next, in step S307, in the image embedding region 11, it is determined whether the hue value of red on the corresponding position of the blank portion is less than or equal to the hue average value of red. In step S308, if the hue value of the red color corresponding to the position of the blank portion is greater than the hue average value of the red color, the hue value of the red color corresponding to the position of the blank portion is set to the hue average value of the red color. On the other hand, in step S309, if the hue value of red at the corresponding position of the blank portion is less than or equal to the hue average value of red, the hue value of red at the corresponding position of the blank portion is not changed.

以實際的例子來說,當判斷出影像嵌入區域11後,會先計算影像嵌入區域11中紅色、綠色、藍色的色調平均值,假設分別算出來的是200、100、0,且門檻值假設是2。此時,由於不是每一個色調的色調平均值都大於2(例如這裡的藍色的色調平均值是0),故本實施例會選擇色調平均值最大的紅色作為被選擇的色調。In a practical example, when the image embedding region 11 is determined, the average values of the hue of red, green, and blue in the image embedding region 11 are first calculated, and it is assumed that 200, 100, and 0 are respectively calculated, and the threshold value is calculated. The assumption is 2. At this time, since the average value of the hue of each of the hue is larger than 2 (for example, the average value of the hue of the blue here is 0), the present embodiment selects the red having the largest hue average as the selected hue.

接著,由於影像嵌入區域11中的紅色的色調平均值為200,則預設值可設定成202。在此,預設值(202)可以是色調平均值(200)加上一個門檻值(2),本實施例不限制門檻 值的大小,於所屬技術領域具有通常知識者可自由設計。Next, since the average value of the hue of the red in the image embedding region 11 is 200, the preset value can be set to 202. Here, the preset value (202) may be a hue average value (200) plus a threshold value (2), and the embodiment does not limit the threshold. The size of the value is freely designed by those of ordinary skill in the art.

接著,於嵌入浮水印影像12至影像嵌入區域11的過程中,要先判斷浮水印影像12的圖樣部分對應位置上紅色的色調值是否大於等於預設值202。若影像嵌入區域11中,圖樣部分對應到的某一個像素的紅色的色調值是210(大於等於預設值202),則本實施例不會修改這個像素的紅色的色調值。另一方面,若圖樣部分對應到的另一個像素的紅色的色調值是190(小於預設值202),則本實施例會將這個像素的紅色的色調值修改成預設值202。Then, in the process of embedding the watermark image 12 into the image embedding region 11, it is first determined whether the red hue value at the corresponding position of the pattern portion of the watermark image 12 is greater than or equal to the preset value 202. If the image is embedded in the area 11, the red color value of a pixel corresponding to the pattern portion is 210 (greater than or equal to the preset value 202), the present embodiment does not modify the red tone value of the pixel. On the other hand, if the red tone value of the other pixel corresponding to the pattern portion is 190 (less than the preset value 202), the present embodiment will modify the red tone value of this pixel to the preset value 202.

另外,若影像嵌入區域11中,留白部分對應到的某一個像素的紅色的色調值是210(大於紅色的色調平均值200),則本實施例會將這個像素的紅色的色調值修改成紅色的色調平均值200。另一方面,若留白部分對應到的另一個像素的紅色的色調值是190(小於等於紅色的色調平均值200),則本實施例不會修改這個像素的紅色的色調值。In addition, if the image in the image embedding region 11 and the red color value of a certain pixel corresponding to the blank portion is 210 (greater than the hue average value 200 of the red color), the embodiment will change the red tonal value of the pixel to red. The average hue of the 200. On the other hand, if the hue value of the red color of the other pixel corresponding to the blank portion is 190 (less than or equal to the hue average value 200 of red), the present embodiment does not modify the hue value of the red color of this pixel.

由此可知,當使用者被授權有門檻值(2)及被選擇的色調的色調平均值(200)時,使用者便可以透過設定影像瀏覽設備(如行動裝置),經由直方圖的調整成只顯示色調平均值200與預設值202之間的色調,便清楚地顯示可視資訊,以宣示影像資訊及避免遭到合成或竄改。It can be seen that when the user is authorized to have the threshold value (2) and the average value of the hue of the selected hue (200), the user can adjust the histogram through the setting of the image browsing device (such as a mobile device). Only the hue between the hue average 200 and the preset value 202 is displayed, and the visual information is clearly displayed to announce the image information and avoid being synthesized or tampered with.

請參閱第4a圖、第4b圖、第4c圖、第4d圖及第4e圖,其係為根據本發明一實施例之範例圖。於第4a圖中, 原始影像41係為來自數位相機的照片。於此實施例中,原始影像41係表示了飛行於天空中的飛行器,且背景大多為藍色。Please refer to FIG. 4a, FIG. 4b, FIG. 4c, FIG. 4d and FIG. 4e, which are exemplary diagrams according to an embodiment of the present invention. In Figure 4a, The original image 41 is a photo from a digital camera. In this embodiment, the original image 41 represents an aircraft flying in the sky, and the background is mostly blue.

於第4b圖中,原始影像42包括第一影像嵌入區域420、第二影像嵌入區域422及第三影像嵌入區域424。第一影像嵌入區域420、第二影像嵌入區域422及第三影像嵌入區域424係為前三大的最大色調穩定區域。由第4a圖中已提出背景為天空,且大多為藍色。於此實施例中以第一影像區域為例,紅色的色調平均值為50、綠色的色調平均值為120及藍色的色調平均值為170。於此實施例中,門檻值設定為2。In FIG. 4b, the original image 42 includes a first image embedding region 420, a second image embedding region 422, and a third image embedding region 424. The first image embedding region 420, the second image embedding region 422, and the third image embedding region 424 are the first three largest tonal stable regions. The background has been proposed in Figure 4a as the sky and mostly blue. In this embodiment, taking the first image area as an example, the average hue of the red color is 50, the average hue of the green color is 120, and the average hue of the blue color is 170. In this embodiment, the threshold is set to two.

由此可見,紅色的色調平均值、綠色的色調平均值及藍色的色調平均值其中的最小值小於門檻值,且因第一影像嵌入區域420、第二影像嵌入區域422及第三影像嵌入區域424的像素中紅色的色調值的平均值小於綠色與藍色,這裡被選擇的色調為紅色。It can be seen that the minimum value of the red hue average, the green hue average, and the blue hue average is less than the threshold, and the first image embedding region 420, the second image embedding region 422, and the third image embedding The average of the hue values of red in the pixels of region 424 is less than green and blue, where the selected hue is red.

接著,於第一影像嵌入區域420、第二影像嵌入區域422及第三影像嵌入區域424嵌入浮水印影像。於第4c圖中,浮水印影像嵌入後的影像43包括浮水印影像431、浮水印影像432及浮水印影像433。嵌入浮水印影像的方式如前所述,在此不予贅述。Then, the watermark image is embedded in the first image embedding region 420, the second image embedding region 422, and the third image embedding region 424. In FIG. 4c, the watermark image embedded image 43 includes a watermark image 431, a watermark image 432, and a watermark image 433. The manner of embedding the watermark image is as described above and will not be described here.

使用者可以經由行動裝置傳送與接收到浮水印影像嵌入後的影像43及門檻值(2)。當然,色調平均值可以是使用者的電子裝置計算出來的,或者由授權單位提供的。於 此實施例中,使用者可設定其電子裝置之直方圖,使得電子裝置只顯示色調值介於48與50之間的內容。如圖中所示,由於留白部分已經被調整至色調平均值50(或其之上),而圖樣部分被設定成預設值48(或其之下),故可清楚看見浮水印影像431。依上述之處理,即可嵌入與顯示浮水印影像432及浮水印影像433的浮水印影像係為「YZU」。The user can transmit and receive the image 43 and the threshold value (2) after the watermark image is embedded via the mobile device. Of course, the average value of the hue can be calculated by the user's electronic device or provided by an authorized unit. to In this embodiment, the user can set a histogram of his electronic device such that the electronic device only displays content having a tone value between 48 and 50. As shown in the figure, since the blank portion has been adjusted to the hue average value 50 (or above) and the pattern portion is set to the preset value 48 (or below), the watermark image 431 can be clearly seen. . According to the above processing, the watermark image system in which the watermark image 432 and the watermark image 433 are displayed and displayed can be "YZU".

於第4d圖中,係為浮水印影像嵌入後的影像44。其進行流程已於前面敘述,故不再敘述。於此實施例中,浮水印影像嵌入後影像44僅有一個影像嵌入區域441。由圖中可見,影像嵌入區域441中的浮水印影像係為2維條碼,或稱快速響應矩陣碼(Quick Response Code,QR-Code)。In Fig. 4d, it is the image 44 after the watermark image is embedded. The process is described above and will not be described. In this embodiment, the watermark image embedded image 44 has only one image embedding region 441. As can be seen from the figure, the watermark image in the image embedding area 441 is a 2-dimensional bar code, or a Quick Response Code (QR-Code).

於第4e圖中,係為進行可視資訊顯示應用方法後的浮水印影像嵌入後的影像45。其進行流程已於前面敘述,故不再敘述。於此實施例中,浮水印影像嵌入後的影像45僅有一個影像嵌入區域451。由圖中可見,影像嵌入區域451中的浮水印影像係為「YZU」。In Fig. 4e, the image 45 after the watermark image is embedded after the visual information display application method is performed. The process is described above and will not be described. In this embodiment, the image 45 embedded in the watermark image has only one image embedding area 451. As can be seen from the figure, the watermark image in the image embedding area 451 is "YZU".

於第5a圖中,係為原始影像50。原始影像50的內容係為經由攝影機拍攝的水滴影片之截圖,影像嵌入區域501係為原始影像50的最大色調穩定區域,並於影像嵌入區域501嵌入浮水印影像。於此實施例中,紅色的色調平均值為88、綠色的色調平均值為40及藍色的色調平均值為57。於此實施例中,門檻值設定為5。於此實施例中,紅色的色調 平均值、綠色的色調平均值及藍色的色調平均值其中的最小值小於門檻值,且因影像嵌入區域501中綠色的色調值的強度總和遠大於紅色與藍色,這裡被選擇的色調為綠色。In Figure 5a, the original image 50 is used. The content of the original image 50 is a screenshot of a water drop film taken by a camera. The image embedding area 501 is a maximum tonal stable area of the original image 50, and a watermark image is embedded in the image embedding area 501. In this embodiment, the average hue of the red color is 88, the average hue of the green color is 40, and the average hue of the blue color is 57. In this embodiment, the threshold is set to 5. In this embodiment, the red hue The average value, the average value of the green hue, and the average value of the hue of the blue are smaller than the threshold value, and since the sum of the intensities of the green hue values in the image embedding region 501 is much larger than the red and blue colors, the hue selected here is green.

如同前一例子所述,於第5b圖中,浮水印影像嵌入後的影像51包括浮水印影像511。於此實施例中,使用者可設定其電子裝置直方圖,使得電子裝置只顯示色調值介於35與40之間的內容。如圖中所示,由於留白部分已經被調整至色調平均值40(或其之上),而圖樣部分被設定成預設值35(或其之下),故可清楚看見浮水印影像511係為「YZU」。As shown in the previous example, in FIG. 5b, the image 51 after the watermark image is embedded includes the watermark image 511. In this embodiment, the user can set his electronic device histogram so that the electronic device only displays content having a tonal value between 35 and 40. As shown in the figure, since the blank portion has been adjusted to the hue average value 40 (or above) and the pattern portion is set to the preset value 35 (or below), the watermark image 511 can be clearly seen. It is "YZU".

於第6a圖中,係為原始影像60。原始影像60的內容係為經由單眼相機拍攝的花朵照片,影像嵌入區域601係為原始影像60的最大色調穩定區域,並於影像嵌入區域601嵌入浮水印影像。於此實施例中,紅色的色調平均值為100、綠色的色調平均值為90及藍色的色調平均值為68。門檻值設定為20。紅色的色調平均值、綠色的色調平均值及藍色的色調平均值其中的最小值大於門檻值,且因在影像嵌入區域601中的色調平均值最小值為藍色,故這裡被選擇的色調為藍色。In Figure 6a, it is the original image 60. The content of the original image 60 is a photo of a flower taken by a monocular camera. The image embedding area 601 is the maximum tonal stable area of the original image 60, and the watermark image is embedded in the image embedding area 601. In this embodiment, the average hue of the red color is 100, the average hue of the green color is 90, and the average hue of the blue color is 68. The threshold is set to 20. The minimum value of the red hue average, the green hue average, and the blue hue average is greater than the threshold, and since the minimum value of the hue average in the image embedding region 601 is blue, the hue selected here is It is blue.

於第6b圖中,浮水印影像嵌入後的影像61包括浮水印影像611。於此實施例中,使用者可設定其電子裝置直方圖,使得電子裝置只顯示色調值介於48與68之間的內容。如圖中所示,由於留白部分已經被調至色調平均值68(或其之上),而圖樣部分被設定成預設值48(或其之下),故可清楚看 見浮水印影像611係為「YZU」。In FIG. 6b, the image 61 after the watermark image is embedded includes the watermark image 611. In this embodiment, the user can set his electronic device histogram so that the electronic device only displays content having a tone value between 48 and 68. As shown in the figure, since the blank portion has been adjusted to the hue average 68 (or above) and the pattern portion is set to the preset value 48 (or below), it is clear See watermark image 611 is "YZU".

於第7a圖中,係為原始影像70。原始影像70的內容係為經由單眼相機拍攝的水果照片,影像嵌入區域701係為原始影像70的最大色調穩定區域,並於影像嵌入區域701嵌入浮水印影像。於此實施例中,紅色的色調平均值為25、綠色的色調平均值為0及藍色的色調平均值為3。門檻值設定為10。紅色的色調平均值、綠色的色調平均值及藍色的色調平均值其中的最小值並未大於等於門檻值,且因在影像嵌入區域701中的色調平均值最大值為紅色,故這裡被選擇的色調為紅色。In Figure 7a, it is the original image 70. The content of the original image 70 is a fruit photograph taken by a monocular camera, and the image embedding area 701 is the maximum tonal stable area of the original image 70, and the watermark image is embedded in the image embedding area 701. In this embodiment, the average hue of red is 25, the average value of hue of green is 0, and the average value of hue of blue is 3. The threshold is set to 10. The minimum value of the red hue average, the green hue average, and the blue hue average is not greater than or equal to the threshold value, and since the maximum value of the hue average in the image embedding region 701 is red, it is selected here. The hue is red.

於第7b圖中,浮水印影像嵌入後的影像71包括浮水印影像711。於此實施例中,使用者可調整其電子裝置直方圖,使得電子裝置只顯示色調值介於15與25之間的內容。如圖中所示,由於留白部分已經被調至色調平均值15(或其之下),而圖樣部分被設定成預設值25(或其之上),故可清楚看見浮水印影像711係為「YZU」。In FIG. 7b, the watermark image embedded image 71 includes a watermark image 711. In this embodiment, the user can adjust his electronic device histogram so that the electronic device only displays content having a tone value between 15 and 25. As shown in the figure, since the blank portion has been adjusted to the hue average value 15 (or below) and the pattern portion is set to the preset value 25 (or above), the watermark image 711 can be clearly seen. It is "YZU".

綜上所述,本發明所揭露之可視資訊隱藏方法,將可視資訊以人眼不可察覺方式,嵌入之影像之區域內。當欲顯示裝置影像內不可察覺資訊時,只須依門檻值及色調平均值,調整色調直方圖之下限值或上限值範圍,即可顯現隱藏之可視資訊。此可視資訊隱藏方法,可將可視資訊嵌入於原始影像中較不易被肉眼所察覺之色彩區域,以維護影像內 容之可讀性,並隱藏重要可視資訊。於顯示可視資訊時,可經由直方圖的調整,清楚的顯示可視資訊,以宣示影像資訊及避免遭到合成或竄改。此外,唯有授權者擁有門檻值及色調平均值,方能進行對隱藏之可視資訊進行顯示,可提升隱藏資訊的保密性。In summary, the visual information hiding method disclosed in the present invention embeds visual information in an area of an image that is invisible to the human eye. When you want to display the imperceptible information in the image of the device, you only need to adjust the lower limit value or the upper limit value range of the hue histogram according to the threshold value and the average value of the hue, so that the hidden visual information can be displayed. The visual information hiding method can embed visual information in a color area of the original image that is less noticeable to the naked eye to maintain the image. Readability and hide important visual information. When the visual information is displayed, the visual information can be clearly displayed through the adjustment of the histogram to declare the image information and avoid being synthesized or tampered with. In addition, only the licensor has the threshold value and the average value of the hue to display the hidden visual information, which can improve the confidentiality of hidden information.

雖然本發明以前述之實施例發明如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。While the invention has been described above in the foregoing embodiments, it is not intended to limit the invention. It is within the scope of the invention to be modified and modified without departing from the spirit and scope of the invention. Please refer to the attached patent application for the scope of protection defined by the present invention.

S201~S209‧‧‧步驟流程S201~S209‧‧‧Step procedure

Claims (17)

一種可視資訊隱藏方法,用以將一可視浮水印影像隱藏於一原始影像中,該浮水印影像具有一圖樣部分與一留白部分,該可視資訊隱藏方法包括:於該原始影像中判斷出至少一影像嵌入區域;分別計算該影像嵌入區域中的多個色調的色調平均值;依據該些色調的色調平均值,選擇該些色調其中之一;於該影像嵌入區域中,判斷該圖樣部分對應位置上被選擇的該色調的色調值是否小於等於一預設值;於該影像嵌入區域中,判斷該留白部分對應位置上被選擇的該色調的色調值是否大於等於該色調的色調平均值;其中若該圖樣部分對應位置上被選擇的該色調的色調值大於該預設值,則將該圖樣部分對應位置上被選擇的該色調的色調值設定成該預設值;以及其中若該留白部分對應位置上被選擇的該色調的色調值小於被選擇的該色調的色調平均值,則將該留白部分對應位置上被選擇的該色調的色調值設定成被選擇的該色調的色調平均值。A visual information hiding method for hiding a visible watermark image in an original image, the watermark image having a pattern portion and a blank portion, the visual information hiding method comprising: determining at least the original image An image embedding region; respectively calculating an average value of the tones of the plurality of tones in the image embedding region; selecting one of the tones according to the hue average of the tones; and determining, in the image embedding region, the portion corresponding to the pattern Whether the tonal value of the selected color tone is less than or equal to a preset value; and determining, in the image embedding region, whether the hue value of the selected hue at the corresponding position of the blank portion is greater than or equal to a hue average of the hue Wherein if the tonal value of the selected color tone corresponding to the position of the pattern portion is greater than the preset value, the tonal value of the selected color tone corresponding to the position of the pattern portion is set to the preset value; and wherein If the hue value of the selected hue at the corresponding position of the blank portion is smaller than the hue average value of the selected hue, the The tone value tone portion corresponding to the position of the selected tone set to an average value of the selected hue. 如請求項1所述的可視資訊隱藏方法,其中該預設值與該色調的色調平均值至少相差一門檻值。The visual information hiding method of claim 1, wherein the preset value and the average value of the hue of the hue are at least one threshold value. 如請求項2所述的可視資訊隱藏方法,其中該門檻值大於等於2。The visual information hiding method of claim 2, wherein the threshold value is greater than or equal to 2. 如請求項2所述的可視資訊隱藏方法,其中於判斷該圖樣部分對應位置上被選擇的該色調的色調值是否小於等於該預設值的步驟中,若該圖樣部分對應位置上被選擇的該色調的色調值小於等於該預設值,則不變動該圖樣部分對應位置上被選擇的該色調的色調值。The visual information hiding method of claim 2, wherein in the step of determining whether the tonal value of the selected color tone at the corresponding position of the pattern portion is less than or equal to the preset value, if the corresponding portion of the pattern portion is selected If the hue value of the hue is less than or equal to the preset value, the hue value of the hue selected at the corresponding position of the pattern portion is not changed. 如請求項2所述的可視資訊隱藏方法,其中於判斷該留白部分對應位置上被選擇的該色調的色調值是否大於等於被選擇的該色調的色調平均值的步驟中,若該留白部分對應位置上被選擇的該色調的色調值大於等於被選擇的該色調的色調平均值,則不變動該留白部分對應位置上被選擇的該色調的色調值。The visual information hiding method according to claim 2, wherein in the step of determining whether the tonal value of the selected color tone at the corresponding position of the blank portion is greater than or equal to the average value of the selected hue of the hue, if the blank is left The hue value of the selected hue at the partial corresponding position is greater than or equal to the hue average value of the selected hue, and the hue value of the selected hue at the corresponding position of the blank portion is not changed. 如請求項2所述的可視資訊隱藏方法,其中於依據該些色調的色調平均值,選擇該些色調其中之一的步驟中,更判斷該些色調的色調平均值是否均大於等於該門檻值。The visual information hiding method according to claim 2, wherein in the step of selecting one of the tones according to the average value of the hue of the tones, it is further determined whether the average value of the hue of the tones is greater than or equal to the threshold value. . 如請求項6所述的可視資訊隱藏方法,其中當該些色調的色調平均值均大於等於該門檻值,則選擇該些色調中色調平均值最小的色調。The visual information hiding method according to claim 6, wherein when the average value of the hue of the hue is greater than or equal to the threshold value, the hue having the smallest hue average value among the hue is selected. 如請求項2所述的可視資訊隱藏方法,其中該影像嵌入區域係為該原始影像之一最大色調穩定區域,該最大色調穩定區域係為以各個像素之紅色的色調值、綠色的色調值及藍色的色調值其中之一進行各個像素間的兩兩比對後,所得出平均差距值最小的最大區域。The visual information hiding method according to claim 2, wherein the image embedding region is a maximum tonal stable region of the original image, wherein the maximum hue stable region is a red hue value of each pixel, a green hue value, and After one of the blue tonal values is subjected to the pairwise alignment between the pixels, the largest region with the smallest average gap value is obtained. 如請求項2所述的可視資訊隱藏方法,其中該些色調的色調平均值係指紅色的色調平均值、綠色的色調平均值及藍色的色調平均值。The visual information hiding method according to claim 2, wherein the average value of the hue of the hue refers to a hue average of red, a hue average of green, and an average hue of blue. 一種可視資訊隱藏方法,用以將一浮水印影像嵌入一原始影像中,該浮水印影像具有一圖樣部分與一留白部分,該可視資訊隱藏方法包括:於該原始影像中判斷出至少一影像嵌入區域;分別計算該影像嵌入區域中的多個色調的色調平均值;判斷該些色調的色調平均值是否均大於等於該門檻值,據以選擇該些色調其中之一;若該些色調的色調平均值未均大於等於該門檻值,則於該影像嵌入區域中,判斷該圖樣部分對應位置上被選擇的該色調的色調值是否大於等於一預設值;於該影像嵌入區域中,判斷該留白部分對應位置上被選擇的該色調的色調值是否小於等於被選擇的該色調的色調平均值; 其中若該圖樣部分對應位置上被選擇的該色調的色調值小於該預設值,則將該圖樣部分對應位置上被選擇的該色調的色調值設定成該預設值;以及其中若該留白部分對應位置上被選擇的該色調的色調值大於被選擇的該色調的色調平均值,則將該留白部分對應位置上被選擇的該色調的色調值設定成被選擇的該色調的色調平均值。A visual information hiding method for embedding a watermark image into an original image, the watermark image having a pattern portion and a blank portion, the visual information hiding method comprising: determining at least one image in the original image An embedding region; respectively calculating a hue average of the plurality of tones in the image embedding region; determining whether the hue average of the hue is greater than or equal to the threshold value, thereby selecting one of the tones; if the hue If the average value of the hue is not greater than or equal to the threshold value, determining whether the hue value of the selected hue in the corresponding position of the pattern portion is greater than or equal to a preset value in the image embedding region; in the image embedding region, determining Whether the tonal value of the selected color tone corresponding to the position of the blank portion is less than or equal to the average value of the hue of the selected color tone; Wherein if the tonal value of the selected color tone corresponding to the position of the pattern portion is smaller than the preset value, the tonal value of the selected color tone corresponding to the position of the pattern portion is set to the preset value; and wherein if the The hue value of the hue selected at the corresponding position of the white portion is greater than the hue average value of the selected hue, and the hue value of the hue selected at the corresponding position of the blank portion is set to the hue of the selected hue. average value. 如請求項10所述的可視資訊隱藏方法,其中該預設值與該色調的色調平均值至少相差一門檻值。The visual information hiding method of claim 10, wherein the preset value and the mean value of the hue of the hue are at least one threshold value. 如請求項11所述的可視資訊隱藏方法,其中該門檻值大於等於2。The visual information hiding method of claim 11, wherein the threshold value is greater than or equal to 2. 如請求項11所述的可視資訊隱藏方法,其中於判斷該圖樣部分對應位置上被選擇的該色調的色調值是否大於等於該預設值的步驟中,若該圖樣部分對應位置上被選擇的該色調的色調值大於等於該預設值,則不變動該圖樣部分對應位置上被選擇的該色調的色調值。The visual information hiding method of claim 11, wherein in the step of determining whether the tonal value of the selected color tone at the corresponding position of the pattern portion is greater than or equal to the preset value, if the corresponding portion of the pattern portion is selected If the hue value of the hue is greater than or equal to the preset value, the hue value of the hue selected at the corresponding position of the pattern portion is not changed. 如請求項11所述的可視資訊隱藏方法,其中於判斷該留白部分對應位置上被選擇的該色調的色調值是否小於等於該色調的色調平均值的步驟中,若該留白部分對應位置上被選擇的該色調的色調值小於等於被選擇的該色調的色調平均值,則不變動該留白部分對應位置上被選擇的該色調的色調值。The visual information hiding method of claim 11, wherein in the step of determining whether the tonal value of the hue selected at the corresponding position of the blank portion is less than or equal to the hue average of the hue, if the blank portion corresponds to the position When the tone value of the selected color tone is less than or equal to the tone average value of the selected color tone, the tone value of the color tone selected at the corresponding position of the blank portion is not changed. 如請求項11所述的可視資訊隱藏方法,其中於判斷該些色調的色調平均值是否均大於等於該門檻值,據以選擇該些色調其中之一的步驟中,若該些色調的色調平均值均未大於等於該門檻值,則選擇該些色調中色調平均值最大的色調。The visual information hiding method of claim 11, wherein in determining whether the average value of the hue of the hue is greater than or equal to the threshold value, in the step of selecting one of the hue, if the hue of the hue is average If the values are not greater than or equal to the threshold value, the hue having the largest hue average value among the hue is selected. 如請求項11所述的可視資訊隱藏方法,其中該影像嵌入區域係為該原始影像之一最大色調穩定區域,該最大色調穩定區域係為以各個像素之紅色的色調值、綠色的色調值及藍色的色調值其中之一進行各個像素間的兩兩比對後,所得出平均差距值最小的最大區域。The visual information hiding method of claim 11, wherein the image embedding region is one of the original image maximum tonal stability regions, wherein the maximum tonal stability region is a red tonal value of each pixel, a green tonal value, and After one of the blue tonal values is subjected to the pairwise alignment between the pixels, the largest region with the smallest average gap value is obtained. 如請求項11所述的可視資訊隱藏方法,其中該些色調的色調平均值係指紅色的色調平均值、綠色的色調平均值及藍色的色調平均值。The visual information hiding method according to claim 11, wherein the hue average of the hue refers to a hue average of red, a hue average of green, and a hue average of blue.
TW102142624A 2013-11-22 2013-11-22 Method for hidding visible data TWI512671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102142624A TWI512671B (en) 2013-11-22 2013-11-22 Method for hidding visible data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102142624A TWI512671B (en) 2013-11-22 2013-11-22 Method for hidding visible data

Publications (2)

Publication Number Publication Date
TW201520970A TW201520970A (en) 2015-06-01
TWI512671B true TWI512671B (en) 2015-12-11

Family

ID=53935085

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102142624A TWI512671B (en) 2013-11-22 2013-11-22 Method for hidding visible data

Country Status (1)

Country Link
TW (1) TWI512671B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200923842A (en) * 2007-11-28 2009-06-01 Univ Nat Kaohsiung Applied Sci Multi-functional semi-fragile watermarking method with image authentication and recovery
CN101677006A (en) * 2008-09-16 2010-03-24 建兴电子科技股份有限公司 Record carrier as well as an apparatus and method for applying image data as a visually detectable pattern at an optical record carrier
CN102034218A (en) * 2010-12-06 2011-04-27 苏州佳世达电通有限公司 Method for embedding watermark into image file
TW201203188A (en) * 2005-08-04 2012-01-16 Nippon Telegraph & Telephone Digital watermark detecting method, digital watermark detecting device, program, and recording media

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201203188A (en) * 2005-08-04 2012-01-16 Nippon Telegraph & Telephone Digital watermark detecting method, digital watermark detecting device, program, and recording media
TW200923842A (en) * 2007-11-28 2009-06-01 Univ Nat Kaohsiung Applied Sci Multi-functional semi-fragile watermarking method with image authentication and recovery
CN101677006A (en) * 2008-09-16 2010-03-24 建兴电子科技股份有限公司 Record carrier as well as an apparatus and method for applying image data as a visually detectable pattern at an optical record carrier
CN102034218A (en) * 2010-12-06 2011-04-27 苏州佳世达电通有限公司 Method for embedding watermark into image file

Also Published As

Publication number Publication date
TW201520970A (en) 2015-06-01

Similar Documents

Publication Publication Date Title
US10559053B2 (en) Screen watermarking methods and arrangements
US10469701B2 (en) Image processing method that obtains special data from an external apparatus based on information multiplexed in image data and apparatus therefor
Eltahir et al. High rate video streaming steganography
US20150242981A1 (en) Extending Watermark Detection Distortion Tolerances
US9159112B2 (en) Digital watermarking using saturation patterns
JP2013025329A (en) Object display device, object display method and object display program
CN108230224A (en) A kind of Image Watermarking and extracting method for colour blindness image after correction
CN105160621B (en) A kind of image watermark detecting system
Juarez-Sandoval et al. Digital image ownership authentication via camouflaged unseen-visible watermarking
KR20170127445A (en) Method and device for processing peripheral images
WO2022203536A1 (en) Method and system for protecting digital information
Qi et al. An adaptive visible watermark embedding method based on region selection
TWI512671B (en) Method for hidding visible data
Dhaou et al. An efficient anaglyph 3d video watermarking approach based on hybrid insertion
WO2017101570A1 (en) Photo processing method and processing system
Lenarczyk et al. Parallel blind digital image watermarking in spatial and frequency domains
Lin et al. Video exhibition with adjustable augmented reality system based on temporal psycho-visual modulation
Wan et al. Improved spread transform dither modulation based on robust perceptual just noticeable distortion model
WO2019041163A1 (en) Method and system for realising both automatic watermarking and square photography
Al-Otum et al. Color image watermarking based on self-embedded color permissibility with preserved high image quality and enhanced robustness
WO2020119650A1 (en) Reversible watermarking method
Reyes-Ruiz et al. Robust Dual Digital Watermark Applied to Antique Digitized Cinema Images: Resistant to Print-Scan Attack
Rabie Frequency-domain data hiding based on the Matryoshka principle
Unno et al. Invisible and readable checkerboard as watermark with temporally brightness modulation
CN104331855A (en) Adaptive visible watermark adding method of digital image of mouse picking-up and adding position on the basis of .NET