CN105427233A - Method and device for removing watermark - Google Patents

Method and device for removing watermark Download PDF

Info

Publication number
CN105427233A
CN105427233A CN201511017093.XA CN201511017093A CN105427233A CN 105427233 A CN105427233 A CN 105427233A CN 201511017093 A CN201511017093 A CN 201511017093A CN 105427233 A CN105427233 A CN 105427233A
Authority
CN
China
Prior art keywords
pixel
watermark
target area
value
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511017093.XA
Other languages
Chinese (zh)
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 CN201511017093.XA priority Critical patent/CN105427233A/en
Publication of CN105427233A publication Critical patent/CN105427233A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a method and a device for removing a watermark. The method comprises steps: a target area is calibrated in a target image with a watermark identifier, wherein the watermark identifier is included in the target area; watermark pixel points and non-watermark pixel points in the target area are recognized; the pixel values of at least one part of the non-watermark pixel points in the target area are used for restoring the pixel values of the watermark pixel points; the image in the target area obtained after restoration is smoothened, and a restored image is obtained. A phenomenon that an obvious barrier happens in the image obtained after the watermark is removed can be avoided, the image obtained after the watermark is removed is smoother, the impression of a user is improved, and use demands of the user can be met.

Description

Remove method and the device of watermark
Technical field
The disclosure relates to image processing field, particularly relates to a kind of method and the device of removing watermark.
Background technology
Watermark identifier is comprised sometimes, such as, for representing the source of picture or video in picture or video pictures.At use picture or before playing video pictures, may need first watermark identifier to be removed, to meet use or broadcast request.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of method and the device of removing watermark.
According to the first aspect of disclosure embodiment, provide a kind of method removing watermark, comprising: spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area; Identify the watermark pixel in described target area and non-watermark pixel; Utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And smoothing to the image in the target area obtained after reparation, obtain repairing image.
In some optional embodiments of first aspect, the watermark pixel in the described target area of described identification and non-watermark pixel, comprising: the average gray value obtaining the image in described target area; Travel through the pixel in described target area, it is described watermark pixel that pixel gray-scale value being greater than described average gray value is identified as, and it is described non-watermark pixel that pixel gray-scale value being less than or equal to described average gray value is identified as.
In some optional embodiments of first aspect, the pixel value of the described pixel of non-watermark at least partially utilized in described target area is to repair the pixel value of described watermark pixel, comprise: for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; For each described watermark pixel, the target pixel value of this watermark pixel is utilized to replace original pixel value.
In some optional embodiments of first aspect, described target area is rectangular area; And it is described based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel, comprise following in one: based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel on the top and bottom position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel of the left end and right end position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Based on the coordinate position of non-watermark pixel and the coordinate position of pixel value and this watermark pixel of the predetermined quantity contiguous with this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
In some optional embodiments of first aspect, image in the described target area to obtaining after reparation is smoothing, obtain repairing image, comprising: utilize fuzzy algorithm smoothing to the image in the target area obtained after reparation, obtain repairing image.
According to the second aspect of disclosure embodiment, a kind of device removing watermark is provided, comprises: target area demarcating module, be configured to spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area; Identification module, is configured to identify the watermark pixel in described target area and non-watermark pixel; Repair module, be configured to utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And Leveling Block, be configured to the image in the target area obtained after reparation smoothing, obtain repairing image.
In some optional embodiments of second aspect, described identification module comprises: obtain submodule, be configured to the average gray value of the image obtained in described target area; Recognin module, be configured to travel through the pixel in described target area, it is described watermark pixel that pixel gray-scale value being greater than described average gray value is identified as, and it is described non-watermark pixel that pixel gray-scale value being less than or equal to described average gray value is identified as.
In some optional embodiments of second aspect, described reparation module comprises: target pixel value determination submodule, be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Pixel replaces submodule, is configured to, for each described watermark pixel, utilize the target pixel value of this watermark pixel to replace original pixel value.
In some optional embodiments of second aspect, described target area is rectangular area; And described target pixel value determination submodule is configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel on the top and bottom position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or described target pixel value determination submodule is configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel of the left end and right end position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or described target pixel value determination submodule is configured to for each described watermark pixel, based on the coordinate position of described non-watermark pixel and the coordinate position of pixel value and this watermark pixel of the predetermined quantity contiguous with this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
In some optional embodiments of second aspect, described reparation module is configured to utilize fuzzy algorithm smoothing to the image in the target area obtained after reparation, obtains repairing image.
According to the third aspect of disclosure embodiment, a kind of device removing watermark is provided, comprises: processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: spotting region on the target image with watermark identifier, and wherein, described watermark identifier is comprised in described target area; Identify the watermark pixel in described target area and non-watermark pixel; Utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And smoothing to the image in the target area obtained after reparation, obtain repairing image.
According to the fourth aspect of disclosure embodiment, a kind of non-transitory computer-readable recording medium is provided, when the instruction in described storage medium is performed by the processor of terminal device or server, make terminal device or server can perform a kind of method removing watermark, described method comprises: spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area; Identify the watermark pixel in described target area and non-watermark pixel; Utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And smoothing to the image in the target area obtained after reparation, obtain repairing image.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: by spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area, identify the watermark pixel in described target area and non-watermark pixel, utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel, smoothing to the image in the target area obtained after reparation, obtain repairing image, can avoid occurring obvious barrage in the image obtained after removing watermark, the image obtained after making to remove watermark is more level and smooth, thus improve the perception of user, meet user's user demand.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 shows the image obtained after the watermark minimizing technology utilizing correlation technique to provide carries out watermark removal.
Fig. 2 is a kind of process flow diagram removing the method for watermark according to an exemplary embodiment.
The image that Fig. 3 obtains after showing and utilizing the method shown in Fig. 2 to carry out watermark removal.
Fig. 4 is a kind of process flow diagram removing the method for watermark according to another exemplary embodiment.
Fig. 5 shows the schematic diagram of an example rectangular area.
Fig. 6 A to Fig. 6 C is a kind of block diagram removing the device of watermark according to an exemplary embodiment.
Fig. 7 is a kind of block diagram removing the device of watermark according to an exemplary embodiment.
Fig. 8 is a kind of block diagram removing the device of watermark according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing 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 as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The image that Fig. 1 obtains after showing and carrying out watermark removal in prior art.As can be seen from Figure 1, in the image obtained, there is obvious barrage (upper right corner in Fig. 1, this position has watermark identifier originally), thus affect perception and the use of user.To this, in order to address this problem, the disclosure provides a kind of method and apparatus removing watermark, described method and apparatus can be applied to terminal device, wherein, described terminal device can be such as smart mobile phone, panel computer, personal digital assistant (PDA), PC, notebook computer etc.Or described method and apparatus also can be applied to server.
Fig. 2 is a kind of process flow diagram removing the method for watermark according to an exemplary embodiment.As shown in Figure 2, the method can comprise the following steps.
In step s 201, spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area.
First terminal device can obtain target image, wherein, this target image can be one of them in the image of terminal device this locality storage, or the image got from network or other-end equipment for terminal device, or is terminal device truncated picture from video pictures.This target image can be the image of multiple format, and such as, this target image can be RGB image, or is single channel image, and, comprise watermark identifier in this target image.
After getting target image, can calibrate the region including watermark identifier on target image, this region is as described target area.In an example embodiment, described target area can be rectangular area.But should be understood that, the disclosure is to the shape of target area and be not specifically limited, and the target area being formed as other shapes is also applicable to the disclosure.
In step S202, identify the watermark pixel in described target area and non-watermark pixel.
The pixel of the image in target area can comprise watermark pixel and non-watermark pixel, wherein, watermark pixel is the pixel forming watermark identifier, non-watermark pixel is the pixel dewatered in target area outside printing vegetarian refreshments, these non-watermark pixels are also the pixel in original image (that is, not adding the image of watermark identifier).
In an example embodiment, such as can come the watermark pixel in identification object region and non-watermark pixel in the following manner.
First, the average gray value of the image in target area is obtained.Such as, the image in hypothetical target region comprises N number of pixel, then first can obtain the gray-scale value of each pixel, afterwards, utilizes these gray-scale values to determine the average gray value of the image in target area.
Next, the pixel in traversal target area, it is watermark pixel that pixel gray-scale value being greater than average gray value is identified as, and it is non-watermark pixel that pixel gray-scale value being less than or equal to average gray value is identified as.
That is, in this step, by being compared with average gray value one by one by the gray-scale value of each pixel, for this pixel is classified, classification results is " watermark pixel " and " non-watermark pixel ".When the gray-scale value of pixel is greater than average gray value, being identified as by this pixel is " watermark pixel ".When the gray-scale value of pixel is less than or equal to average gray value, being identified as by this pixel is " non-watermark pixel ".Like this, the N number of pixel in target area can be classified, obtain N1 watermark pixel and N2 watermark pixel, wherein, N=N1+N2.
In step S203, utilize the pixel value of the pixel of non-watermark at least partially in target area to repair the pixel value of watermark pixel.
Identifying in target area after which pixel is watermark pixel, can repair these watermark pixels, to get rid of these watermark pixels.For each watermark pixel, the pixel value of the pixel of non-watermark at least partially in based target region can determine and the target pixel value of this watermark pixel afterwards, utilize this target pixel value to replace the original pixel value of this watermark pixel.Like this, original watermark pixel can be repaired into close with periphery non-watermark pixel, thus reach the object removing watermark.
In step S204, smoothing to the image in the target area obtained after reparation, obtain repairing image.
After repairing watermark pixel by step S203, also may can there are some repairing marks in the image in the target area obtained after reparation, in order to these vestiges floating, in step S204, to the smoothing process of image in the target area obtained after reparation, like this, more level and smooth reparation image can be obtained, avoid occurring barrage.
Fuzzy algorithm such as can be utilized smoothing to the image in the target area obtained after reparation, obtain repairing image.Wherein, described fuzzy algorithm such as can include but not limited to average fuzzy algorithm, Gaussian Blur algorithm etc.
The image that Fig. 3 obtains after showing and utilizing the method shown in Fig. 2 to carry out watermark removal.Compare can find out with Fig. 1, the better effects if of the removal watermark that the method for the removal watermark provided by the disclosure is obtained, does not have obvious barrage.
In sum, by spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area, identify the watermark pixel in described target area and non-watermark pixel, utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel, smoothing to the image in the target area obtained after reparation, obtain repairing image, can avoid occurring obvious barrage in the image obtained after removing watermark, the image obtained after making to remove watermark is more level and smooth, thus improve the perception of user, meet user's user demand.
Fig. 4 is a kind of process flow diagram removing the method for watermark according to another exemplary embodiment.As shown in Figure 4, the method can comprise the following steps.
In step S401, spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area;
In step S402, identify the watermark pixel in described target area and non-watermark pixel.
In step S403, for each watermark pixel, the coordinate position of the pixel of non-watermark at least partially in based target region and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
As mentioned above, this target area can be formed as rectangular area.In this case, illustratively, for each watermark pixel, can based on the coordinate position of the pixel of non-watermark at least partially on the top and bottom position place that are positioned at rectangular area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
Fig. 5 shows the schematic diagram of an example rectangular area.As shown in Figure 5, postulated point C is watermark pixel, so, can repair the pixel value of this watermark pixel C based on the pixel value of the pixel of non-watermark at least partially on the top 501 and position, bottom 502 that are positioned at this rectangular area 500.Illustratively, postulated point A is a non-watermark pixel at top 501 place of rectangular area 500, point B is a non-watermark pixel at bottom 502 place of rectangular area 500, so, according to the pixel value of an A and some B and coordinate position, and the coordinate position of C can be put, utilize linear interpolation algorithm, calculate a new pixel value, this new pixel value can as the target pixel value of a C.
The pixel value of postulated point A is expressed as G1, the coordinate position of some A is (x1, y1), the pixel value of some B is expressed as G2, the coordinate position of some B is (x2, y2), and the coordinate position of some C is (x3, y3), then the target pixel value G3 of acquisition point C can be carried out by following equation:
G3=[G1*(y2-y3)+G2*(y3-y1)]/(y2-y1)
In another example, for each watermark pixel, can based on being positioned at the left end of described rectangular area (such as, left end 503 shown in Fig. 5) and right-hand member is (such as, right-hand member 504 shown in Fig. 5) coordinate position of the pixel of non-watermark at least partially of position and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.Circular and above-described similar, and belong to and well known to a person skilled in the art, do not repeat them here.
Or, in another example, for each watermark pixel, can based on the coordinate position of non-watermark pixel of the predetermined quantity with this watermark pixel contiguous (longitudinally contiguous or laterally contiguous) and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.Circular and above-described similar, and belong to and well known to a person skilled in the art, do not repeat them here.
In addition, when choosing linear interpolation algorithm, any one in multiple linear interpolation algorithm can be selected.Illustratively, can choose weighted linear interpolation algorithm to calculate the target pixel value of watermark pixel, wherein, the distance between weight to pixel is directly proportional.
In step s 404, for each watermark pixel, the target pixel value of this watermark pixel is utilized to replace original pixel value.
In step S405, smoothing to the image in the target area obtained after reparation, obtain repairing image.
Fig. 6 A to Fig. 6 C is a kind of block diagram removing the device 600 of watermark according to an exemplary embodiment.With reference to Fig. 6 A, this device 600 can comprise: target area demarcating module 601, is configured to spotting region on the target image with watermark identifier, and wherein, described watermark identifier is comprised in described target area; Identification module 602, is configured to identify the watermark pixel in described target area and non-watermark pixel; Repair module 603, be configured to utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And Leveling Block 604, be configured to the image in the target area obtained after reparation smoothing, obtain repairing image.
Illustratively, as shown in Figure 6B, described identification module 602 can comprise: obtain submodule 605, be configured to the average gray value of the image obtained in described target area; Recognin module 606, be configured to travel through the pixel in described target area, it is described watermark pixel that pixel gray-scale value being greater than described average gray value is identified as, and it is described non-watermark pixel that pixel gray-scale value being less than or equal to described average gray value is identified as.
Illustratively, as shown in Figure 6 C, described reparation module 603 can comprise: target pixel value determination submodule 607, be configured to for each described watermark pixel, based on the described coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Pixel replaces submodule 608, is configured to, for each described watermark pixel, utilize the target pixel value of this watermark pixel to replace original pixel value.
Illustratively, described target area is rectangular area, and, described target pixel value determination submodule 607 can be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel on the top and bottom position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or, described target pixel value determination submodule 607 can be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel of the left end and right end position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or, described target pixel value determination submodule 607 can be configured to for each described watermark pixel, based on the coordinate position of described non-watermark pixel and the coordinate position of pixel value and this watermark pixel of the predetermined quantity contiguous with this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
Illustratively, described reparation module 603 can be configured to utilize fuzzy algorithm smoothing to the image in the target area obtained after reparation, obtains repairing image.
In sum, by target area demarcating module 601 spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area, identification module 602 identifies watermark pixel in described target area and non-watermark pixel, repairing module 603 utilizes the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel, Leveling Block 604 is smoothing to the image in the target area obtained after reparation, obtain repairing image, can avoid occurring obvious barrage in the image obtained after removing watermark, the image obtained after making to remove watermark is more level and smooth, thus improve the perception of user, meet user's user demand.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
A kind of block diagram of removing the device 700 of watermark of Fig. 7 according to an exemplary embodiment.Such as, device 700 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, device 700 can comprise following one or more assembly: processing components 702, storer 704, electric power assembly 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of I/O (I/O), sensor module 714, and communications component 716.
The integrated operation of the usual control device 700 of processing components 702, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 702 can comprise one or more processor 720 to perform instruction, to complete all or part of step of the method for above-mentioned removal watermark.In addition, processing components 702 can comprise one or more module, and what be convenient between processing components 702 and other assemblies is mutual.Such as, processing components 702 can comprise multi-media module, mutual with what facilitate between multimedia groupware 708 and processing components 702.
Storer 704 is configured to store various types of data to be supported in the operation of device 700.The example of these data comprises for any application program of operation on device 700 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 704 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 706 is device 700 provide electric power.Electric power assembly 706 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 700 and be associated.
Multimedia groupware 708 is included in the screen providing an output interface between described device 700 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 708 comprises a front-facing camera and/or post-positioned pick-up head.When device 700 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to export and/or input audio signal.Such as, audio-frequency assembly 710 comprises a microphone (MIC), and when device 700 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 704 further or be sent via communications component 716.In certain embodiments, audio-frequency assembly 710 also comprises a loudspeaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 714 comprises one or more sensor, for providing the state estimation of various aspects for device 700.Such as, sensor module 714 can detect the opening/closing state of device 700, the relative positioning of assembly, such as described assembly is display and the keypad of device 700, the position of all right pick-up unit 700 of sensor module 714 or device 700 1 assemblies changes, the presence or absence that user contacts with device 700, the temperature variation of device 700 orientation or acceleration/deceleration and device 700.Sensor module 714 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 714 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 714 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to the communication being convenient to wired or wireless mode between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 716 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 716 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (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 700 can be realized, for performing the method for above-mentioned removal watermark by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 704 of instruction, above-mentioned instruction can have been performed the method for above-mentioned removal watermark by the processor 720 of device 700.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.
Fig. 8 is a kind of block diagram removing the device 800 of watermark according to an exemplary embodiment.Such as, device 800 may be provided in a server.With reference to Fig. 8, device 800 comprises processing components 822, and it comprises one or more processor further, and the memory resource representated by storer 832, can such as, by the instruction of the execution of processing components 822, application program for storing.The application program stored in storer 832 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 822 is configured to perform instruction, to perform the method for above-mentioned removal watermark.
Device 800 can also comprise the power management that a power supply module 826 is configured to actuating unit 800, and a wired or wireless network interface 850 is configured to device 800 to be connected to network, and input and output (I/O) interface 858.Device 800 can operate the operating system based on being stored in storer 832, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice the disclosure, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. remove a method for watermark, it is characterized in that, comprising:
Spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area;
Identify the watermark pixel in described target area and non-watermark pixel;
Utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And
Smoothing to the image in the target area obtained after reparation, obtain repairing image.
2. method according to claim 1, is characterized in that, the watermark pixel in the described target area of described identification and non-watermark pixel, comprising:
Obtain the average gray value of the image in described target area;
Travel through the pixel in described target area, it is described watermark pixel that pixel gray-scale value being greater than described average gray value is identified as, and it is described non-watermark pixel that pixel gray-scale value being less than or equal to described average gray value is identified as.
3. method according to claim 1 and 2, is characterized in that, the pixel value of the described pixel of non-watermark at least partially utilized in described target area, to repair the pixel value of described watermark pixel, comprising:
For each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel;
For each described watermark pixel, the target pixel value of this watermark pixel is utilized to replace original pixel value.
4. method according to claim 3, is characterized in that, described target area is rectangular area; And
Describedly utilize linear interpolation algorithm based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, draw the target pixel value of this watermark pixel, comprise following in one:
Based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel on the top and bottom position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel;
Based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel of the left end and right end position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel;
Based on the coordinate position of non-watermark pixel and the coordinate position of pixel value and this watermark pixel of the predetermined quantity contiguous with this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
5. method according to claim 1 and 2, is characterized in that, the image in the described target area to obtaining after reparation is smoothing, obtains repairing image, comprising:
Utilize fuzzy algorithm smoothing to the image in the target area obtained after reparation, obtain repairing image.
6. remove a device for watermark, it is characterized in that, comprising:
Target area demarcating module, is configured to spotting region on the target image with watermark identifier, and wherein, described watermark identifier is comprised in described target area;
Identification module, is configured to identify the watermark pixel in described target area and non-watermark pixel;
Repair module, be configured to utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And
Leveling Block, is configured to the image in the target area obtained after reparation smoothing, obtains repairing image.
7. device according to claim 6, is characterized in that, described identification module comprises:
Obtain submodule, be configured to the average gray value of the image obtained in described target area;
Recognin module, be configured to travel through the pixel in described target area, it is described watermark pixel that pixel gray-scale value being greater than described average gray value is identified as, and it is described non-watermark pixel that pixel gray-scale value being less than or equal to described average gray value is identified as.
8. the device according to claim 6 or 7, is characterized in that, described reparation module comprises:
Target pixel value determination submodule, be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially in described target area and the coordinate position of pixel value and this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel;
Pixel replaces submodule, is configured to, for each described watermark pixel, utilize the target pixel value of this watermark pixel to replace original pixel value.
9. device according to claim 8, is characterized in that, described target area is rectangular area; And
Described target pixel value determination submodule, be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel on the top and bottom position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or
Described target pixel value determination submodule, be configured to for each described watermark pixel, based on the coordinate position of the pixel of non-watermark at least partially and the coordinate position of pixel value and this watermark pixel of the left end and right end position place that are positioned at described rectangular area, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel; Or
Described target pixel value determination submodule, be configured to for each described watermark pixel, based on the coordinate position of described non-watermark pixel and the coordinate position of pixel value and this watermark pixel of the predetermined quantity contiguous with this watermark pixel, utilize linear interpolation algorithm, draw the target pixel value of this watermark pixel.
10. the device according to claim 6 or 7, is characterized in that, described reparation module, is configured to utilize fuzzy algorithm smoothing to the image in the target area obtained after reparation, obtains repairing image.
11. 1 kinds of devices removing watermark, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Spotting region on the target image with watermark identifier, wherein, described watermark identifier is comprised in described target area;
Identify the watermark pixel in described target area and non-watermark pixel;
Utilize the pixel value of the pixel of non-watermark at least partially in described target area to repair the pixel value of described watermark pixel; And
Smoothing to the image in the target area obtained after reparation, obtain repairing image.
CN201511017093.XA 2015-12-29 2015-12-29 Method and device for removing watermark Pending CN105427233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017093.XA CN105427233A (en) 2015-12-29 2015-12-29 Method and device for removing watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017093.XA CN105427233A (en) 2015-12-29 2015-12-29 Method and device for removing watermark

Publications (1)

Publication Number Publication Date
CN105427233A true CN105427233A (en) 2016-03-23

Family

ID=55505415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017093.XA Pending CN105427233A (en) 2015-12-29 2015-12-29 Method and device for removing watermark

Country Status (1)

Country Link
CN (1) CN105427233A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651805A (en) * 2016-12-28 2017-05-10 贵州大学 Image watermark removing method based on machine learning
CN106846271A (en) * 2017-01-18 2017-06-13 天津中科智能识别产业技术研究院有限公司 A kind of method of reticulate pattern in removal identity card picture
CN107798649A (en) * 2017-09-05 2018-03-13 北京五八信息技术有限公司 The recognition methods of picture and device
CN108320265A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108550099A (en) * 2018-04-13 2018-09-18 北京焦点新干线信息技术有限公司 The method and apparatus of watermark in a kind of removal image
CN108765349A (en) * 2018-05-31 2018-11-06 四川斐讯信息技术有限公司 A kind of image repair method and system with watermark
CN109255355A (en) * 2018-05-28 2019-01-22 北京京东尚科信息技术有限公司 Image processing method, device, terminal, electronic equipment and computer-readable medium
CN109903210A (en) * 2019-01-04 2019-06-18 阿里巴巴集团控股有限公司 Minimizing technology, device and the server of watermark
CN110163786A (en) * 2019-04-02 2019-08-23 阿里巴巴集团控股有限公司 A kind of method, device and equipment removing watermark
CN112132730A (en) * 2019-06-25 2020-12-25 北京小米移动软件有限公司 Image conversion method, image conversion apparatus, storage medium, and electronic device
CN112991137A (en) * 2021-04-26 2021-06-18 湖南映客互娱网络信息有限公司 Method for dynamically identifying and removing watermark position of picture
CN113269692A (en) * 2021-05-28 2021-08-17 北京人人网互动科技有限公司 Video logo removing method and system based on image restoration
CN113744150A (en) * 2021-08-31 2021-12-03 杭州隆埠科技有限公司 Image watermarking removing method and device
CN115861021A (en) * 2023-02-23 2023-03-28 深圳市英唐数码科技有限公司 Electronic book watermark modification method and system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1154378A2 (en) * 2000-05-11 2001-11-14 Eastman Kodak Company Image processing method and apparatus for generating low resolution, low bit depth images
CN102456212A (en) * 2010-10-19 2012-05-16 北大方正集团有限公司 Separation method and system for visible watermark in numerical image
CN102567955A (en) * 2010-12-30 2012-07-11 北京大学 Method and system for inpainting images
CN103116628A (en) * 2013-01-31 2013-05-22 新浪网技术(中国)有限公司 Image file digital signature and judgment method and judgment device of repeated image file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1154378A2 (en) * 2000-05-11 2001-11-14 Eastman Kodak Company Image processing method and apparatus for generating low resolution, low bit depth images
CN102456212A (en) * 2010-10-19 2012-05-16 北大方正集团有限公司 Separation method and system for visible watermark in numerical image
CN102567955A (en) * 2010-12-30 2012-07-11 北京大学 Method and system for inpainting images
CN103116628A (en) * 2013-01-31 2013-05-22 新浪网技术(中国)有限公司 Image file digital signature and judgment method and judgment device of repeated image file

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651805B (en) * 2016-12-28 2020-08-25 贵州大学 Image watermark removing method based on machine learning
CN106651805A (en) * 2016-12-28 2017-05-10 贵州大学 Image watermark removing method based on machine learning
CN106846271A (en) * 2017-01-18 2017-06-13 天津中科智能识别产业技术研究院有限公司 A kind of method of reticulate pattern in removal identity card picture
CN106846271B (en) * 2017-01-18 2020-04-17 天津中科智能识别产业技术研究院有限公司 Method for removing reticulate pattern in identity card photo
CN107798649A (en) * 2017-09-05 2018-03-13 北京五八信息技术有限公司 The recognition methods of picture and device
CN108320265A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108320265B (en) * 2018-01-31 2021-09-21 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium
CN108550099A (en) * 2018-04-13 2018-09-18 北京焦点新干线信息技术有限公司 The method and apparatus of watermark in a kind of removal image
CN108550099B (en) * 2018-04-13 2022-03-01 北京焦点新干线信息技术有限公司 Method and device for removing watermark in image
CN109255355A (en) * 2018-05-28 2019-01-22 北京京东尚科信息技术有限公司 Image processing method, device, terminal, electronic equipment and computer-readable medium
CN108765349A (en) * 2018-05-31 2018-11-06 四川斐讯信息技术有限公司 A kind of image repair method and system with watermark
CN109903210A (en) * 2019-01-04 2019-06-18 阿里巴巴集团控股有限公司 Minimizing technology, device and the server of watermark
CN109903210B (en) * 2019-01-04 2024-02-06 创新先进技术有限公司 Watermark removal method, watermark removal device and server
CN110163786A (en) * 2019-04-02 2019-08-23 阿里巴巴集团控股有限公司 A kind of method, device and equipment removing watermark
CN110163786B (en) * 2019-04-02 2023-02-28 创新先进技术有限公司 Method, device and equipment for removing watermark
CN112132730A (en) * 2019-06-25 2020-12-25 北京小米移动软件有限公司 Image conversion method, image conversion apparatus, storage medium, and electronic device
CN112991137A (en) * 2021-04-26 2021-06-18 湖南映客互娱网络信息有限公司 Method for dynamically identifying and removing watermark position of picture
CN113269692A (en) * 2021-05-28 2021-08-17 北京人人网互动科技有限公司 Video logo removing method and system based on image restoration
CN113744150A (en) * 2021-08-31 2021-12-03 杭州隆埠科技有限公司 Image watermarking removing method and device
CN115861021A (en) * 2023-02-23 2023-03-28 深圳市英唐数码科技有限公司 Electronic book watermark modification method and system and readable storage medium

Similar Documents

Publication Publication Date Title
CN105427233A (en) Method and device for removing watermark
CN106651955B (en) Method and device for positioning target object in picture
CN105069786B (en) Line detection method and device
CN113344901B (en) Glue spreading defect detection method and device, storage medium and electronic equipment
CN105631797A (en) Watermarking method and device
CN105426818A (en) Area extraction method and device
CN104899610A (en) Picture classification method and device
CN104519282A (en) Image shooting method and device
EP3188078A1 (en) Method and device for fingerprint identification
CN105488511A (en) Image identification method and device
CN106021092A (en) Method and device for determining starting duration of application program
CN105260360A (en) Named entity identification method and device
CN105139378A (en) Card boundary detection method and apparatus
CN106095407A (en) icon arrangement method, device and mobile device
CN104537380A (en) Clustering method and device
CN105354560A (en) Fingerprint identification method and device
CN104239879A (en) Character segmentation method and device
CN105224171A (en) icon display method, device and terminal
CN105430715A (en) Method and apparatus for controlling WIFI scanning
CN105513067A (en) Image definition detection method and device
CN105183755A (en) Picture display method and apparatus
CN105208284A (en) Photographing reminding method and device
CN104484867A (en) Picture processing method and device
CN104010129A (en) Image processing method, device and terminal
CN105635809A (en) Image processing method and device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160323

RJ01 Rejection of invention patent application after publication