CN105631797A - Watermarking method and device - Google Patents

Watermarking method and device Download PDF

Info

Publication number
CN105631797A
CN105631797A CN201510990243.9A CN201510990243A CN105631797A CN 105631797 A CN105631797 A CN 105631797A CN 201510990243 A CN201510990243 A CN 201510990243A CN 105631797 A CN105631797 A CN 105631797A
Authority
CN
China
Prior art keywords
color
font
watermark
font color
added
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.)
Granted
Application number
CN201510990243.9A
Other languages
Chinese (zh)
Other versions
CN105631797B (en
Inventor
秦秋平
杨松
王百超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510990243.9A priority Critical patent/CN105631797B/en
Publication of CN105631797A publication Critical patent/CN105631797A/en
Application granted granted Critical
Publication of CN105631797B publication Critical patent/CN105631797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Abstract

The present disclosure provides a watermarking method and a device, belonging to the technical field of terminals. The method comprises a step of obtaining the target image area of a watermark to be added in an image to be processed, a step of obtaining a target font color with a minimum color similarity with a target image area from a preset font color set comprising multiple alternate font colors, a step of adjusting the font color of the watermark to be added as the target font color, and a step of adding the adjusted watermark to the target image area and obtaining a watermark image. According to the method and the device, the font color of the watermark to be added can be automatically adjusted according to the color of the color of the target image area, thus the color of the watermark to be added and the color of the target image area are distinguished obviously, and the watermark recognition degree is high and the display effect is good according to the watermarking method.

Description

Watermark adding method and device
Technical field
It relates to field of terminal technology, particularly relate to a kind of watermark adding method and device.
Background technology
Along with popularizing of the intelligent terminal such as smart mobile phone, panel computer, intelligent terminal's not only function is more and more diversified, and performance is also from strength to strength. Such as some intelligent terminal shoot the effect of picture and can compare favourably with mm professional camera special, add the portable characteristic of mobile terminal so that mobile terminal becomes the daily capital equipment for shooting picture of user. In order to meet the picture shooting demand of user, intelligent terminal provides the function of the picture interpolation watermark into user's shooting, such as adds the watermark such as photographing data, weather.
In correlation technique, when the picture shot for user adds watermark, first obtain the watermark that user chooses, and watermark is covered with fixing font color the appointment position of picture, when detecting that operation has been added in watermark, watermark and picture are integrated into a watermark picture.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of watermark adding method and device, and described technical scheme is as follows:
First aspect according to disclosure embodiment, it is provided that a kind of watermark adding method, including:
Obtaining the object region in pending image, described object region is the region of watermark to be added;
From default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors;
The font color of watermark to be added is adjusted to described target font color;
Watermark after adjusting is added into described object region, obtains watermarking images.
Alternatively, described from default font color set, obtain target font color and include:
For arbitrary font color in described alternative multiple font colors, calculate the color distance between whole pixels in described arbitrary font color and described object region, obtain multiple color distance;
By font color corresponding for color distance maximum for numerical value in the plurality of color distance, it is determined that for described target font color.
Alternatively, the color distance between the described arbitrary font color of described calculating and the interior whole pixels of described object region includes:
Color encoded radio according to pixel each in described object region and the color encoded radio of described arbitrary font color, calculate the first distance between described each pixel and described arbitrary font color;
The first corresponding for described each pixel distance is added, obtains second distance, the color distance being defined as by described second distance in described arbitrary font color and described object region between whole pixels.
Alternatively, the object region in the pending image of described acquisition includes:
Obtain the watermark to be added template that user chooses;
According to described watermark to be added template, obtain the position to be added of described watermark to be added;
In described pending image, obtain the object region being positioned at described position to be added.
Alternatively, described alternative multiple font colors at least include a font color pair; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
Second aspect according to disclosure embodiment, it is provided that a kind of watermark adding set, including:
Image-region acquisition device, for obtaining the object region in pending image, described object region is the region of watermark to be added;
Font color acquisition device, for from default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors;
Font color adjusting apparatus, for being adjusted to described target font color by the font color of watermark to be added;
Watermark generates device, for the watermark after adjustment is added into described object region, obtains watermarking images.
Alternatively, described font color acquisition device, for for arbitrary font color in described alternative multiple font colors, calculating the color distance between whole pixels in described arbitrary font color and described object region, obtain multiple color distance; By font color corresponding for color distance maximum for numerical value in the plurality of color distance, it is determined that for described target font color.
Alternatively, described font color acquisition device, for the color encoded radio of the color encoded radio according to pixel each in described object region and described arbitrary font color, calculate the first distance between described each pixel and described arbitrary font color; The first corresponding for described each pixel distance is added, obtains second distance, the color distance being defined as by described second distance in described arbitrary font color and described object region between whole pixels.
Alternatively, described image-region acquisition device, for obtaining the watermark to be added template that user chooses; According to described watermark to be added template, obtain the position to be added of described watermark to be added; In described pending image, obtain the object region being positioned at described position to be added.
Alternatively, described alternative multiple font colors at least include a font color pair; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
The third aspect according to disclosure embodiment, it is provided that a kind of watermark adding set, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: obtain the object region in pending image, and described object region is the region of watermark to be added; From default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors; The font color of watermark to be added is adjusted to described target font color; Watermark after adjusting is added into described object region, obtains watermarking images.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
Obtain the object region of watermark to be added in pending image; From the default font color set including alternative multiple font colors, obtain the color similarity minimum target font color with object region; Afterwards, the font color of watermark to be added is adjusted to target font color; Watermark after adjusting is added into object region, obtains watermarking images. Owing to the font color of watermark to be added can be adjusted automatically according to the color of object region, the color of watermark to be added and the color of object region can significantly be made a distinction, and therefore in this kind of watermark adding method, the resolution of watermark is high, display effect is good.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meets and embodiment of the disclosure, and for explaining the principle of the disclosure together with description.
Fig. 1 is the flow chart of a kind of watermark adding method according to an exemplary embodiment.
Fig. 2 is the flow chart of a kind of watermark adding method according to an exemplary embodiment.
Fig. 3 is the block diagram of a kind of watermark adding set according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of watermark adding set according to an exemplary embodiment.
Detailed description of the invention
For making the purpose of the disclosure, technical scheme and advantage clearly, below in conjunction with accompanying drawing, disclosure embodiment is described in further detail.
Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings. When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure. On the contrary, they only with in appended claims describe in detail, the disclosure some in the example of consistent apparatus and method.
Fig. 1 is the flow chart of a kind of watermark adding method according to an exemplary embodiment, as it is shown in figure 1, comprise the following steps:
In a step 101, the object region in pending image is obtained.
Wherein, object region is the region of watermark to be added.
In a step 102, from default font color set, obtain target font color.
Wherein, target font color is the font color minimum with the color similarity of object region, presets font color set and includes alternative multiple font colors.
In step 103, the font color of watermark to be added is adjusted to target font color.
At step 104, the watermark after adjusting is added into object region, obtains watermarking images.
The method that disclosure embodiment provides, obtains the object region of watermark to be added in pending image; From the default font color set including alternative multiple font colors, obtain the color similarity minimum target font color with object region; Afterwards, the font color of watermark to be added is adjusted to target font color; Watermark after adjusting is added into object region, obtains watermarking images. Owing to the font color of watermark to be added can be adjusted automatically according to the color of object region, the color of watermark to be added and the color of object region can significantly be made a distinction, and therefore in this, in watermark adding method, the display effect of watermark is good.
Alternatively, from default font color set, obtain target font color and include:
For arbitrary font color in alternative multiple font colors, calculate the color distance between whole pixels in arbitrary font color and object region, obtain multiple color distance;
By font color corresponding for color distance maximum for numerical value in multiple color distances, it is determined that for target font color.
Alternatively, the color distance calculated between arbitrary font color and the interior whole pixels of object region includes:
Color encoded radio according to pixel each in object region and the color encoded radio of arbitrary font color, calculate the first distance between each pixel and arbitrary font color;
The first corresponding for each pixel distance is added, obtains second distance, the color distance being defined as by second distance in arbitrary font color and object region between whole pixels.
Alternatively, the object region obtained in pending image includes:
Obtain the watermark to be added template that user chooses;
According to watermark to be added template, obtain the position to be added of watermark to be added;
In pending image, obtain the object region being positioned at position to be added.
Alternatively, alternative multiple font colors at least include a font color pair; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
Above-mentioned all optional technical schemes, it is possible to adopting and arbitrarily combine the alternative embodiment forming the disclosure, this is no longer going to repeat them.
Fig. 2 is the flow chart of a kind of watermark adding method according to an exemplary embodiment, as in figure 2 it is shown, comprise the following steps:
In step 201, when detecting that user uses watermark function to take pictures, in the pending image that image taking window shows, obtain object region.
Wherein, object region is the region of watermark to be added.
In the disclosed embodiments, the camera of terminal has watermark and adds function, watermark can be added for the image of user's shooting, function is added in this watermark can give tacit consent to closedown, user can arrange the page at corresponding camera and open this watermark interpolation function, and the original state that this watermark is added function by disclosure embodiment does not specifically limit. Adding function by opening this watermark, user can choose the image that watermark to be added template is shooting in multiple watermark templates of storage and add watermark. Wherein, watermark template, for storing the information such as the font color of watermark, position to be added and watermark element, indicates watermark font color in pending image, viewing area and display content etc. Each watermark template can be the template comprising independent watermark element, such as individually comprises time watermark, weather watermark, mood watermark etc.; Each watermark template can be also the template comprising multiple watermark element, such as comprises one or more combinations such as time watermark, weather watermark, mood watermark, and the concrete watermark element comprised of each watermark template is not defined by disclosure embodiment.
When terminal detects user to the open operation of camera, detection watermark adds whether function is in opening, if function is added in this watermark is in opening, then obtains the watermark to be added template that user chooses, and according to this watermark to be added template, obtain the position to be added of watermark to be added. Afterwards, according to this position to be added, image taking window shows this watermark to be added, simultaneously in the pending image that image taking window photographs, obtain the object region being positioned at this position to be added.
If it should be noted that be not detected by user to perform watermark template selection operation, then choosing the watermark template of acquiescence. At least including the position to be added of watermark in watermark template, this position to be added can be coordinate figure. Such as when the region of this position to be added instruction is a rectangular area, the coordinate figure on these four summits, rectangular area can be stored in watermark template, just can get this position to be added according to the coordinate figure on these four summits in image taking window. This position to be added can be also the watermark edge distance value from pending image border, such as when the region of this position to be added instruction is a rectangular area, to allow this rectangular area be positioned at the lower right corner of pending image, in watermark template, then store the abscissa on this Right vertical limit, rectangular area, from the distance value of pending image right hand edge, the vertical coordinate on bottom level limit and distance value from pending image lower limb, just can get this position to be added in pending image according to the information of storage in watermark template. The particular content of this position to be added is not specifically limited by the embodiment of the present invention.
It should be noted that, the display effect of image is shot in order to not affect user, the position to be added of watermark to be added is preferably at the marginal area of image, and the such as lower right corner, the upper right corner, the lower left corner, the upper left corner etc., this is not specifically limited by disclosure embodiment. Additionally, watermark template arranges the position to be added of watermark also dependent on the whole structure of template is in the zone line of image, this is not specifically limited by disclosure embodiment.
Above-mentioned steps 201 is the process obtaining the object region in pending image, the scene adding watermark for user in the process of taking pictures illustrates, in addition, this step can also is that the scene adding watermark in user's process beyond taking pictures, such as, obtaining the object region in pending image in the image of terminal storage, the image for terminal storage adds watermark. The object region process obtaining pending image in the image of terminal storage is as follows:
When user's when checking operation of any image to storage being detected, detection watermark adds whether function is in opening, if function is added in this watermark is in opening, then obtain the watermark to be added template that user chooses, and the position to be added according to this watermark to be added template acquisition watermark to be added, afterwards, according to this position to be added, in the pending image that user checks, obtain the object region being positioned at this position to be added. It should be noted that, when the image chosen for user adds watermark, the image can chosen according to user, generate the copy of this image, copy for this image adds watermark, so when user can have the original image being not added with watermark and adds the watermarking images of watermark simultaneously. Whether watermark template is chosen for user all consistent with the explanation in the scene that above-mentioned user takes pictures with the explanation of position to be added in watermark template, do not repeat them here.
In step 202., from default font color set, obtain target font color.
In the disclosed embodiments, target font color is the font color minimum with the color similarity of object region, and this default font color set includes alternative multiple font colors. Owing to the similarity between different colours is more little, its colour contrast is more big, more easily distinguish, therefore to ensure that watermark to be added can clearly indicate out, disclosure embodiment preferably chooses the font color minimum with the color similarity of object region as target font color from default font color set.
In the disclosed embodiments, position to be added according to watermark to be added, the object region of pending image in real-time image acquisition shooting window, and from default font color set, obtain the target font color minimum with the color similarity of this object region. Wherein, this default font color set includes alternative multiple font colors, these alternative multiple font colors at least include a font color pair; Needs are met following two conditions by each font color:
Condition one: two font colors of each font color centering, centrosymmetry in designated color space. Wherein, it is intended that color space can RGB, CMY, HSV, HSI etc., this is not specifically limited by disclosure embodiment. Each color space is considered as a cube in three dimensions, and for RGB color, its instruction is that coordinate is from (0,0,0) to the area of space of (255,255,255).
Condition two: the color distance between two font colors of each font color centering is more than designated color distance. For RGB color, color distance between two font colors refers to the sum of the absolute value that two font color respective coordinates are subtracted each other, such as black coordinate is (0,0,0), white color coordinates is (255,255,255), then color distance Cd=| 0-255 |+| 0-255 |+| 0-255 |=765 between black and white. Wherein, " | | " represents absolute value sign, it is intended that color distance can be in this color space the 1/2 of maximum color distance, 1/3 etc., it is possible to in this color space very big the 1/2 of color distance, 1/3 etc., this is not specifically limited by disclosure embodiment. Wherein, this very big color distance is the point by two font color corresponding color spaces and color space central point is determined is positioned at the length of line segment within color space.
Wherein, from default font color set, the process obtaining the target font color minimum with the color similarity of this object region is as follows:
For arbitrary font color in multiple font colors that this is alternative, calculate the color distance between whole pixels in this arbitrary font color and this object region, obtain multiple color distance; By font color corresponding for color distance maximum for numerical value in multiple color distances of obtaining, it is determined that for target font color.
Wherein, the process calculating in this arbitrary font color and this object region all color distances between pixels is as follows:
Color encoded radio according to pixel each in object region and the color encoded radio of arbitrary font color, calculate the first distance between each pixel and this arbitrary font color; The first corresponding for each pixel distance is added, obtains second distance, the color distance being defined as by this second distance in this arbitrary font color and this object region between whole pixels. Wherein, color encoded radio can be respective pixel or font color coordinate figure in designated color space, it is possible to for the hexadecimal code value of this coordinate, this is not specifically limited by disclosure embodiment. When color encoded radio is hexadecimal code value, this hexadecimal code value is converted to metric coordinate figure, to facilitate follow-up color distance to calculate.
It is exemplified below how from default font color set, obtains the target font color minimum with the color similarity of this object region, for RGB color:
Hypothetical target image-region includes 3 pixels, its color coding respectively (77,77,77), (72,209,204), (71,60,139), preset font color set and include black (0,0,0) and white (255,255,255). Then calculate the first distance of each pixel in black and 3 pixels and be respectively as follows: D11=| 0-77 |+| 0-77 |+| 0-77 |=231, D12=| 0-72 |+| 0-209 |+| 0-204 |=485, D13=| 0-71 |+| 0-60 |+| 0-139 |=270, obtain three the first distances are carried out addition and obtains second distance D21=D11+D12+D13=231+485+270=986, so the distance between whole pixels is 986 in the object region of black and hypothesis. Equally, calculate white and be respectively as follows: D14=| 255-77 |+| 255-77 |+| 255-77 |=534 with the first distance of each pixel in 3 pixels, D15=| 255-72 |+| 255-209 |+| 255-204 |=280, D16=| 255-71 |+| 255-60 |+| 255-139 |=495, obtain three the first distances are carried out addition and obtains second distance D22=D14+D15+D16=534+280+495=1309, so the distance between white and the interior whole pixels of object region assumed is 1309. Owing to D22 is more than D21, so choosing white for target font color.
It should be noted that object region comprises 3 pixels only for illustrating in above-mentioned hypothesis, do not represent the number of pixels comprised in actual image area. Second distance also can be averaged by the first distance that each pixel is corresponding and be obtained, or is normalized obtains by after the first distance summation corresponding to each pixel, and this is not specifically limited by disclosure embodiment.
In step 203, the font color of watermark to be added is adjusted to this target font color.
In the disclosed embodiments, watermark to be added template includes the font color information of watermark to be added, this font color information is this font color encoded radio in designated color space, this encoded radio can be the coordinate figure in designated color space, being alternatively the hexadecimal code value that this coordinate figure is corresponding, this is not specifically limited by disclosure embodiment. After default font color set gets the target font color minimum with the color similarity of object region, the font color of watermark to be added is adjusted to target font color so that the color of the font color to be added after adjustment and object region can significantly make a distinction.
It should be noted that, from default font color set, before obtaining the target font color minimum with the color similarity of this object region, can first obtain the color distance between the font color of watermark to be added and the interior whole pixels of this object region, if this color distance is more than pre-set color distance, represent that the font color of this watermark to be added is relatively low with the color similarity of this object region, can substantially make a distinction, then the font color of this watermark to be added is not adjusted. If this color distance is not more than pre-set color distance, represent that the font color of this watermark to be added is higher with the color similarity of this object region, can not substantially make a distinction, then from default font color set, obtain the target font color minimum with the color similarity of this object region. Wherein, the numerical value of pre-set color distance is with specific algorithm different and different of the color distance between font color pixel whole in target area.
In another embodiment, if the first font color of the watermark to be added after adjusting is not liked by user, the optional font color reacquiring watermark to be added, when detecting that the reacquisition of the font color of watermark to be added is operated by user, remove other font colors outside the first font color from default font color set, obtain the target font color minimum with the color similarity of this object region.
In step 204, when detecting that image taking confirms operation, the watermark after adjusting is added into this object region, obtains watermarking images.
In the disclosed embodiments, watermark can include the content such as text, figure, when detecting that image taking confirms operation, watermark after adjusting is added into object region, carry out image by contents such as the text of watermark instruction after adjustment, figures with this object region to merge, obtain watermarking images. Wherein, in the process that image merges, the content substances such as the text of watermark instruction, figure can be shown, other positions to be added except the content such as the text, figure show after blurring display or Transparence Display or being filled with designated color, and this is not specifically limited by disclosure embodiment.
In another embodiment, when detecting that the watermark of the image of storage is added confirmation operation by user, perform step similar to the above and obtain watermarking images, do not repeat them here.
The method that disclosure embodiment provides, obtains the object region of watermark to be added in pending image; From the default font color set including alternative multiple font colors, obtain the color similarity minimum target font color with object region; Afterwards, the font color of watermark to be added is adjusted to target font color; Watermark after adjusting is added into object region, obtains watermarking images. Owing to the font color of watermark to be added can be adjusted automatically according to the color of object region, the color of watermark to be added and the color of object region can significantly be made a distinction, and therefore in this kind of watermark adding method, the resolution of watermark is high, display effect is good.
Fig. 3 is the block diagram of a kind of watermark adding set according to an exemplary embodiment. With reference to Fig. 3, this device includes image-region acquisition device 301, font color acquisition device 302, font color adjusting apparatus 303 and watermark and generates device 304.
Wherein, image-region acquisition device 301 is connected with font color acquisition device 302, and for obtaining the object region in pending image, wherein object region is the region of watermark to be added; Font color acquisition device 302 is connected with font color adjusting apparatus 303, for from default font color set, obtain target font color, wherein target font color is the font color minimum with the color similarity of object region, presets font color set and includes alternative multiple font colors; Font color adjusting apparatus 303 generates device 304 with watermark and is connected, for the font color of watermark to be added is adjusted to target font color; Watermark generates device 304, for the watermark after adjustment is added into object region, obtains watermarking images.
Alternatively, font color acquisition device 302, for for arbitrary font color in alternative multiple font colors, calculating the color distance between whole pixels in arbitrary font color and object region, obtain multiple color distance; By font color corresponding for color distance maximum for numerical value in multiple color distances, it is determined that for target font color.
Alternatively, font color acquisition device 302, for the color encoded radio of the color encoded radio according to pixel each in object region and arbitrary font color, calculate the first distance between each pixel and arbitrary font color; The first corresponding for each pixel distance is added, obtains second distance, the color distance being defined as by second distance in arbitrary font color and object region between whole pixels.
Alternatively, image-region acquisition device 301, for obtaining the watermark to be added template that user chooses; According to watermark to be added template, obtain the position to be added of watermark to be added; In pending image, obtain the object region being positioned at position to be added.
Alternatively, alternative multiple font colors at least include a font color pair; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
The device that disclosure embodiment provides, obtains the object region of watermark to be added in pending image; From the default font color set including alternative multiple font colors, obtain the color similarity minimum target font color with object region; Afterwards, the font color of watermark to be added is adjusted to target font color; Watermark after adjusting is added into object region, obtains watermarking images. Owing to the font color of watermark to be added can be adjusted automatically according to the color of object region, the color of watermark to be added and the color of object region can significantly be made a distinction, and therefore in this kind of watermark adding method, the resolution of watermark is high, display effect is good.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.
Fig. 4 is the block diagram of a kind of watermark adding set according to an exemplary embodiment. Such as, device 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building equipment, personal digital assistant etc.
With reference to Fig. 4, device 400 can include following one or more assembly: processes assembly 402, memorizer 404, power supply module 406, multimedia groupware 404, audio-frequency assembly 410, input/output (I/O) interface 412, sensor cluster 414, and communications component 416.
Process assembly 402 and generally control the integrated operation of device 400, such as with display, call, data communication, the operation that camera operation and record operation are associated. Process assembly 402 and can include one or more processor 420 to perform instruction, to complete all or part of step of above-mentioned method. Additionally, process assembly 402 can include one or more module, it is simple to what process between assembly 402 and other assemblies is mutual. Such as, process assembly 402 and can include multi-media module, with facilitate multimedia groupware 408 and process between assembly 402 mutual.
Memorizer 404 is configured to store various types of data to support the operation at device 400. The example of these data includes any application program for operation on device 400 or the instruction of method, contact data, telephone book data, message, picture, video etc. Memorizer 404 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 406 is device 400 provide electric power. Power supply module 406 can include power-supply management system, one or more power supplys, and other generate, manage and distribute, with for device 400, the assembly that electric power is associated.
Multimedia groupware 408 includes the screen providing an output interface between described device 400 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes touch panel, screen may be implemented as touch screen, to receive the input signal from user. Touch panel includes one or more touch sensor to sense the gesture on touch, slip and touch panel. Described touch sensor can not only sense the border of touch or sliding action, but also detects the persistent period relevant to described touch or slide and pressure. In certain embodiments, multimedia groupware 408 includes a front-facing camera and/or post-positioned pick-up head. When device 400 is in operator scheme, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside. Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 410 is configured to output and/or input audio signal. Such as, audio-frequency assembly 410 includes a mike (MIC), and when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is configured to receive external audio signal. The audio signal received can be further stored at memorizer 404 or send via communications component 416. In certain embodiments, audio-frequency assembly 410 also includes a speaker, is used for exporting audio signal.
I/O interface 412 provides interface for processing between assembly 402 and peripheral interface module, above-mentioned peripheral interface module can be keyboard, puts striking wheel, button etc. These buttons may include but be not limited to: home button, volume button, startup button and locking press button.
Sensor cluster 414 includes one or more sensor, for providing the state estimation of various aspects for device 400. Such as, what sensor cluster 414 can detect device 400 opens/closed mode, the relative localization of assembly, such as described assembly is display and the keypad of device 400, the position change of all right detecting device 400 of sensor cluster 414 or 400 1 assemblies of device, the presence or absence that user contacts with device 400, the variations in temperature of device 400 orientation or acceleration/deceleration and device 400. Sensor cluster 414 can include proximity transducer, is configured to when not having any physical contact object near detection. Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for using in imaging applications. In certain embodiments, this sensor cluster 414 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 416 is configured to facilitate between device 400 and other equipment the communication of wired or wireless mode. Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or their combination. In one exemplary embodiment, communications component 416 receives the broadcast singal or the broadcast related information that manage system from external broadcasting via broadcast channel. In one exemplary embodiment, described communications component 416 also includes near-field communication (NFC) module, to promote junction service. Such as, can based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 400 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, is used for performing above-mentioned watermark adding method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium including instruction, for instance include the memorizer 404 of instruction, above-mentioned instruction can have been performed said method by the processor 420 of device 400. Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal so that mobile terminal is able to carry out above-mentioned watermark adding method.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiment of the disclosure. The application is intended to any modification of the disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the disclosure and include the undocumented known general knowledge in the art of the disclosure or conventional techniques means. Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope. The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a watermark adding method, it is characterised in that described method includes:
Obtaining the object region in pending image, described object region is the region of watermark to be added;
From default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors;
The font color of watermark to be added is adjusted to described target font color;
Watermark after adjusting is added into described object region, obtains watermarking images.
2. method according to claim 1, it is characterised in that described from default font color set, obtains target font color and includes:
For arbitrary font color in described alternative multiple font colors, calculate the color distance between whole pixels in described arbitrary font color and described object region, obtain multiple color distance;
By font color corresponding for color distance maximum for numerical value in the plurality of color distance, it is determined that for described target font color.
3. method according to claim 2, it is characterised in that in the described arbitrary font color of described calculating and described object region, the color distance between whole pixels includes:
Color encoded radio according to pixel each in described object region and the color encoded radio of described arbitrary font color, calculate the first distance between described each pixel and described arbitrary font color;
The first corresponding for described each pixel distance is added, obtains second distance, the color distance being defined as by described second distance in described arbitrary font color and described object region between whole pixels.
4. method according to claim 1, it is characterised in that the object region in the pending image of described acquisition includes:
Obtain the watermark to be added template that user chooses;
According to described watermark to be added template, obtain the position to be added of described watermark to be added;
In described pending image, obtain the object region being positioned at described position to be added.
5. method according to claim 1, it is characterised in that at least include a font color pair in described alternative multiple font colors; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
6. a watermark adding set, it is characterised in that described device includes:
Image-region acquisition device, for obtaining the object region in pending image, described object region is the region of watermark to be added;
Font color acquisition device, for from default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors;
Font color adjusting apparatus, for being adjusted to described target font color by the font color of watermark to be added;
Watermark generates device, for the watermark after adjustment is added into described object region, obtains watermarking images.
7. device according to claim 6, it is characterized in that, described font color acquisition device, for for arbitrary font color in described alternative multiple font colors, calculate the color distance between whole pixels in described arbitrary font color and described object region, obtain multiple color distance; By font color corresponding for color distance maximum for numerical value in the plurality of color distance, it is determined that for described target font color.
8. device according to claim 7, it is characterized in that, described font color acquisition device, for the color encoded radio of the color encoded radio according to pixel each in described object region and described arbitrary font color, calculate the first distance between described each pixel and described arbitrary font color; The first corresponding for described each pixel distance is added, obtains second distance, the color distance being defined as by described second distance in described arbitrary font color and described object region between whole pixels.
9. device according to claim 6, it is characterised in that described image-region acquisition device, for obtaining the watermark to be added template that user chooses; According to described watermark to be added template, obtain the position to be added of described watermark to be added; In described pending image, obtain the object region being positioned at described position to be added.
10. device according to claim 6, it is characterised in that at least include a font color pair in described alternative multiple font colors; Two font colors of each font color centering, centrosymmetry in designated color space; Color distance between two font colors of each font color centering is more than designated color distance.
11. a watermark adding set, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to: obtain the object region in pending image, and described object region is the region of watermark to be added; From default font color set, obtaining target font color, described target font color is the font color minimum with the color similarity of described object region, and described default font color set includes alternative multiple font colors; The font color of watermark to be added is adjusted to described target font color; Watermark after adjusting is added into described object region, obtains watermarking images.
CN201510990243.9A 2015-12-24 2015-12-24 Watermark adding method and device Active CN105631797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510990243.9A CN105631797B (en) 2015-12-24 2015-12-24 Watermark adding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510990243.9A CN105631797B (en) 2015-12-24 2015-12-24 Watermark adding method and device

Publications (2)

Publication Number Publication Date
CN105631797A true CN105631797A (en) 2016-06-01
CN105631797B CN105631797B (en) 2019-03-08

Family

ID=56046686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510990243.9A Active CN105631797B (en) 2015-12-24 2015-12-24 Watermark adding method and device

Country Status (1)

Country Link
CN (1) CN105631797B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392832A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Image processing method and related product
CN107464206A (en) * 2017-07-26 2017-12-12 维沃移动通信有限公司 A kind of watermark adding method and mobile terminal
CN107578366A (en) * 2017-09-18 2018-01-12 南京师范大学 A kind of insertion of watermark information, detection method and device
CN108198123A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 Watermark embedding method and terminal
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal
CN108510424A (en) * 2017-02-23 2018-09-07 腾讯科技(深圳)有限公司 A kind of method and device of image procossing
CN108629727A (en) * 2018-04-16 2018-10-09 深圳市联软科技股份有限公司 Method, terminal and the medium of watermark are generated according to color
CN109427031A (en) * 2017-08-22 2019-03-05 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN109474830A (en) * 2018-11-09 2019-03-15 北京工业大学 A kind of insertion and extracting method of digital video steel seal
CN110826033A (en) * 2018-08-14 2020-02-21 浙江大学 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
CN110909322A (en) * 2019-11-29 2020-03-24 杭州天谷信息科技有限公司 Intelligent printing document processing system and method based on HVS
CN112784675A (en) * 2020-11-25 2021-05-11 上海芯翌智能科技有限公司 Target detection method and device, storage medium and terminal
CN113298687A (en) * 2021-05-26 2021-08-24 北京京东振世信息技术有限公司 Watermark image adding method and device
CN113450243A (en) * 2020-03-24 2021-09-28 北京四维图新科技股份有限公司 Watermark adding method and device
WO2022206476A1 (en) * 2021-03-29 2022-10-06 维沃移动通信有限公司 Watermark processing method and apparatus, electronic device, and storage medium
CN116542838A (en) * 2023-07-03 2023-08-04 平安银行股份有限公司 Watermark security processing method, device, system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320553A (en) * 2007-06-08 2008-12-10 鹏智科技(深圳)有限公司 Picture display apparatus and method
US20090010483A1 (en) * 2007-07-02 2009-01-08 The Hong Kong University Of Science And Technology Block-based lossless data hiding in the delta domain
CN103177451A (en) * 2013-04-17 2013-06-26 南京理工大学 Three-dimensional matching algorithm between adaptive window and weight based on picture edge
CN104182927A (en) * 2014-09-12 2014-12-03 北京国双科技有限公司 Method and device for adding watermark to image
CN104281995A (en) * 2014-10-28 2015-01-14 新华瑞德(北京)网络科技有限公司 Method and device for adding watermark to picture
CN104809686A (en) * 2015-05-18 2015-07-29 无锡联云世纪信息技术有限公司 Picture and text watermark batch processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320553A (en) * 2007-06-08 2008-12-10 鹏智科技(深圳)有限公司 Picture display apparatus and method
US20090010483A1 (en) * 2007-07-02 2009-01-08 The Hong Kong University Of Science And Technology Block-based lossless data hiding in the delta domain
CN103177451A (en) * 2013-04-17 2013-06-26 南京理工大学 Three-dimensional matching algorithm between adaptive window and weight based on picture edge
CN104182927A (en) * 2014-09-12 2014-12-03 北京国双科技有限公司 Method and device for adding watermark to image
CN104281995A (en) * 2014-10-28 2015-01-14 新华瑞德(北京)网络科技有限公司 Method and device for adding watermark to picture
CN104809686A (en) * 2015-05-18 2015-07-29 无锡联云世纪信息技术有限公司 Picture and text watermark batch processing method

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108510424A (en) * 2017-02-23 2018-09-07 腾讯科技(深圳)有限公司 A kind of method and device of image procossing
CN108510424B (en) * 2017-02-23 2022-11-29 腾讯科技(深圳)有限公司 Image processing method and device
CN108230221A (en) * 2017-05-17 2018-06-29 深圳市创梦天地科技有限公司 Watermark generation method and device, terminal
CN107392832A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Image processing method and related product
CN107464206A (en) * 2017-07-26 2017-12-12 维沃移动通信有限公司 A kind of watermark adding method and mobile terminal
CN109427031A (en) * 2017-08-22 2019-03-05 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN107578366B (en) * 2017-09-18 2020-06-19 南京师范大学 Watermark information embedding and detecting method and device
CN107578366A (en) * 2017-09-18 2018-01-12 南京师范大学 A kind of insertion of watermark information, detection method and device
CN108198123A (en) * 2017-12-28 2018-06-22 上海传英信息技术有限公司 Watermark embedding method and terminal
CN108629727A (en) * 2018-04-16 2018-10-09 深圳市联软科技股份有限公司 Method, terminal and the medium of watermark are generated according to color
CN108629727B (en) * 2018-04-16 2022-05-03 深圳市联软科技股份有限公司 Method, terminal and medium for generating watermark according to color
CN110826033B (en) * 2018-08-14 2022-06-07 浙江大学 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
CN110826033A (en) * 2018-08-14 2020-02-21 浙江大学 Watermark embedding method, watermark extracting method, watermark embedding device, watermark extracting equipment and data processing method
CN109474830B (en) * 2018-11-09 2021-02-26 北京工业大学 Embedding and extracting method of digital video steel seal
CN109474830A (en) * 2018-11-09 2019-03-15 北京工业大学 A kind of insertion and extracting method of digital video steel seal
CN110909322B (en) * 2019-11-29 2020-12-11 杭州天谷信息科技有限公司 Intelligent printing document processing system and method based on HVS
CN110909322A (en) * 2019-11-29 2020-03-24 杭州天谷信息科技有限公司 Intelligent printing document processing system and method based on HVS
CN113450243A (en) * 2020-03-24 2021-09-28 北京四维图新科技股份有限公司 Watermark adding method and device
CN112784675B (en) * 2020-11-25 2023-06-30 上海芯翌智能科技有限公司 Target detection method and device, storage medium and terminal
CN112784675A (en) * 2020-11-25 2021-05-11 上海芯翌智能科技有限公司 Target detection method and device, storage medium and terminal
WO2022206476A1 (en) * 2021-03-29 2022-10-06 维沃移动通信有限公司 Watermark processing method and apparatus, electronic device, and storage medium
CN113298687A (en) * 2021-05-26 2021-08-24 北京京东振世信息技术有限公司 Watermark image adding method and device
CN113298687B (en) * 2021-05-26 2023-09-29 北京京东振世信息技术有限公司 Watermark image adding method and device
CN116542838A (en) * 2023-07-03 2023-08-04 平安银行股份有限公司 Watermark security processing method, device, system and medium
CN116542838B (en) * 2023-07-03 2024-03-29 平安银行股份有限公司 Watermark security processing method, device, system and medium

Also Published As

Publication number Publication date
CN105631797B (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN105631797A (en) Watermarking method and device
CN105069786B (en) Line detection method and device
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
CN105528606A (en) Region identification method and device
CN105491289A (en) Method and device for preventing photographing occlusion
CN105139415A (en) Foreground and background segmentation method and apparatus of image, and terminal
CN104902189A (en) Picture processing method and picture processing device
CN105118026A (en) Color gamut mode switching method and device
CN105760884B (en) The recognition methods of picture type and device
CN105260732A (en) Image processing method and device
CN105427233A (en) Method and device for removing watermark
CN104918107A (en) Video file identification processing method and device
CN112219224B (en) Image processing method and device, electronic equipment and storage medium
CN104517271B (en) Image processing method and device
CN105528765A (en) Method and device for processing image
CN105282441A (en) Photographing method and device
CN104899610A (en) Picture classification method and device
CN105426079A (en) Picture brightness adjustment method and apparatus
EP3379805A1 (en) Method, apparatus for controlling a smart device and computer storage medium
CN106713696A (en) Image processing method and device
CN104867112B (en) Photo processing method and device
CN105631804A (en) Image processing method and device
CN106598429A (en) Method and device for adjusting window of mobile terminal
CN105139378A (en) Card boundary detection method and apparatus
CN105512615A (en) Picture processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant