CN108900929A - A kind of image watermark signature processing method and processing device - Google Patents

A kind of image watermark signature processing method and processing device Download PDF

Info

Publication number
CN108900929A
CN108900929A CN201810897318.2A CN201810897318A CN108900929A CN 108900929 A CN108900929 A CN 108900929A CN 201810897318 A CN201810897318 A CN 201810897318A CN 108900929 A CN108900929 A CN 108900929A
Authority
CN
China
Prior art keywords
image
processed
terminal information
storage address
watermark signature
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
CN201810897318.2A
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 Qianxin Technology Co Ltd
Original Assignee
Beijing Qianxin Technology Co Ltd
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 Beijing Qianxin Technology Co Ltd filed Critical Beijing Qianxin Technology Co Ltd
Priority to CN201810897318.2A priority Critical patent/CN108900929A/en
Publication of CN108900929A publication Critical patent/CN108900929A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The embodiment of the invention discloses a kind of image watermark signature processing method and processing device, method includes:The storage address for obtaining the image to be processed that user takes pictures or intercepts obtains the image to be processed according to the storage address;If judgement knows that the size of the image to be processed is greater than preset value, compression processing is carried out to the image to be processed according to preset ratio or pre-set image size, obtains compressed images;The watermark signature of the end message, image after being signed are added in the compressed images according to end message.The embodiment of the present invention carries out compression processing to image, can prevent because image memory is excessive to cause memory to overflow the case where, pass through the watermark signature of addition end message by obtaining the storage address of image, the original source of the image after facilitating retrospect to reprint.

Description

Image watermark signature processing method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for processing image watermark signatures.
Background
With the development and popularization of intelligent terminals, the camera shooting function of the camera is more and more perfect, more and more users shoot through the intelligent terminals to obtain images or capture the images and release the images to the internet, and other people can browse and transfer the images at any time. However, with the increasing number of reprints, when an author of a certain image needs to be known, the author often fails to take a test, and a lot of unnecessary misunderstandings and troubles are caused.
On the other hand, as the pixels of the camera are higher and higher, the image obtained by photographing occupies a larger storage space, which causes waste of the storage space in the process of processing or transmission, even memory overflow.
Disclosure of Invention
Because the existing method has the problems, the embodiment of the invention provides an image watermark signature processing method and device.
In a first aspect, an embodiment of the present invention provides an image watermark signature processing method, including:
acquiring a storage address of an image to be processed photographed or intercepted by a user, and acquiring the image to be processed according to the storage address;
if the size of the image to be processed is judged and known to be larger than a preset value, compressing the image to be processed according to a preset proportion or a preset image size to obtain a compressed image;
and adding the watermark signature of the terminal information in the compressed image according to the terminal information to obtain a signed image.
Optionally, the adding, according to the terminal information, the watermark signature of the terminal information to the compressed image to obtain a signed image specifically includes:
and adding the watermark signature of the terminal information in the full image range of the compressed image according to the terminal information to obtain a signed image.
Optionally, the method further comprises:
and storing the signed image to the storage address.
Optionally, the method further comprises:
and deleting the image to be processed under the storage address.
In a second aspect, an embodiment of the present invention further provides an image watermark signature processing apparatus, including:
the image acquisition module is used for acquiring a storage address of an image to be processed photographed or intercepted by a user and acquiring the image to be processed according to the storage address;
the image compression module is used for compressing the image to be processed according to a preset proportion or a preset image size to obtain a compressed image if the size of the image to be processed is judged to be larger than a preset value;
and the watermark signature module is used for adding the watermark signature of the terminal information in the compressed image according to the terminal information to obtain a signed image.
Optionally, the watermark signing module is specifically configured to:
and adding the watermark signature of the terminal information in the full image range of the compressed image according to the terminal information to obtain a signed image.
Optionally, the apparatus further comprises:
and the image storage module is used for storing the signed image to the storage address.
Optionally, the apparatus further comprises:
and the image deleting module is used for deleting the image to be processed under the storage address.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above method.
According to the technical scheme, the image is compressed by acquiring the storage address of the image, the condition that the memory of the image overflows due to overlarge memory can be prevented, and the original source of the transferred image is conveniently traced by adding the watermark signature of the terminal information.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an image watermark signature processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an image watermark signature processing method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an image watermark signature processing apparatus according to an embodiment of the present invention;
fig. 4 is a logic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows a flowchart of an image watermark signature processing method provided in this embodiment, including:
s101, acquiring a storage address of an image to be processed photographed or intercepted by a user, and acquiring the image to be processed according to the storage address.
And the storage address is a position for storing the image in the intelligent terminal.
S102, if the size of the image to be processed is judged to be larger than a preset value, the image to be processed is compressed according to a preset proportion or a preset image size, and a compressed image is obtained.
The preset value is a predefined image size, and when the image is larger than the preset value, the storage space of the image is too large and compression processing is required. For example, the preset value is set to 500K.
It should be noted that, if it is determined that the size of the image to be processed is smaller than or equal to the preset value, it is determined that the image does not need to be compressed.
S103, adding the watermark signature of the terminal information in the compressed image according to the terminal information to obtain a signed image.
The watermark signature refers to a character with a watermark pattern added on an image.
Because the resolution Of a camera on the existing mobile terminal is very high, the storage space Of the shot image is large, even 10M, so that the problem Of Out Of Memory overflow is easily caused in the image loading process, and especially when a plurality Of pictures need to be loaded asynchronously, the problem Of the OOM is more prominent. In the actual processing, the image is reasonably compressed and loaded, and the number of threads is reasonably developed to avoid memory overflow.
By adding the watermark signature, when information is leaked in an image mode, a user of the equipment can be finally found according to the leaked image; meanwhile, the anti-theft alarm has a deterrent effect on potential divulgences and can track the divulgences through the divulgence information.
According to the embodiment, the storage address of the image is obtained, the image is compressed, the condition that the memory overflows due to overlarge image memory can be prevented, and the original source of the transferred image is conveniently traced by adding the watermark signature of the terminal information.
Further, on the basis of the above method embodiment, S103 specifically includes:
and S104, adding the watermark signature of the terminal information in the whole image range of the compressed image according to the terminal information to obtain the signed image.
For example, when the watermark signature is located at the lower left corner or the lower right corner of the image, if a user performs an interception operation on the image in the process of transferring and cuts off the part with the watermark, the watermark signature cannot be transferred along with the image, and the purpose of tracing the original origin of the image cannot be achieved. By adding the watermark in the full image range, the image information is not influenced, and the original source of the image can be traced all the time in the image transferring process.
Further, on the basis of the above embodiment of the method, the method further comprises:
and S105, storing the signed image to the storage address.
And storing the signed image to the storage address, so that the signed image can be acquired at any time for use in the subsequent use process.
Further, on the basis of the above embodiment of the method, the method further comprises:
and S106, deleting the image to be processed under the storage address.
In order to save the storage space of the intelligent terminal, after the signed image is obtained, the image to be processed, namely the original image, at the storage address can be deleted.
Specifically, referring to fig. 2, after a user takes a picture or captures a screen, a picture is produced, the picture is stored in a storage space of the mobile phone, a URL of the storage space of the mobile phone is obtained, the mobile phone client reads picture data according to the URL, signature characters are added, and the processed picture data is written back to an original storage position of the storage space of the mobile phone for subsequent use.
Fig. 3 shows a schematic structural diagram of an image watermark signature processing apparatus provided in this embodiment, where the apparatus includes: an image acquisition module 301, an image compression module 302 and a watermark signature module 303, wherein:
the image obtaining module 301 is configured to obtain a storage address of an image to be processed photographed or captured by a user, and obtain the image to be processed according to the storage address;
the image compression module 302 is configured to, if it is determined that the size of the image to be processed is larger than a preset value, compress the image to be processed according to a preset proportion or a preset image size to obtain a compressed image;
the watermark signature module 303 is configured to add a watermark signature of the terminal information to the compressed image according to the terminal information, so as to obtain a signed image.
Specifically, the image obtaining module 301 obtains a storage address of an image to be processed photographed or intercepted by a user, and obtains the image to be processed according to the storage address; if the size of the image to be processed is judged to be larger than a preset value, the image compression module 302 compresses the image to be processed according to a preset proportion or a preset image size to obtain a compressed image; the watermark signature module 303 adds the watermark signature of the terminal information to the compressed image according to the terminal information to obtain a signed image.
According to the embodiment, the storage address of the image is obtained, the image is compressed, the condition that the memory overflows due to overlarge image memory can be prevented, and the original source of the transferred image is conveniently traced by adding the watermark signature of the terminal information.
Further, on the basis of the above apparatus embodiment, the watermark signature module is specifically configured to:
and adding the watermark signature of the terminal information in the full image range of the compressed image according to the terminal information to obtain a signed image.
Further, on the basis of the above embodiment of the apparatus, the apparatus further comprises:
and the image storage module is used for storing the signed image to the storage address.
Further, on the basis of the above embodiment of the apparatus, the apparatus further comprises:
and the image deleting module is used for deleting the image to be processed under the storage address.
The image watermark signature processing apparatus described in this embodiment may be used to execute the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Referring to fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403;
wherein,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call program instructions in the memory 402 to perform the methods provided by the above-described method embodiments.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An image watermark signature processing method is characterized by comprising the following steps:
acquiring a storage address of an image to be processed photographed or intercepted by a user, and acquiring the image to be processed according to the storage address;
if the size of the image to be processed is judged and known to be larger than a preset value, compressing the image to be processed according to a preset proportion or a preset image size to obtain a compressed image;
and adding the watermark signature of the terminal information in the compressed image according to the terminal information to obtain a signed image.
2. The method according to claim 1, wherein the adding the watermark signature of the terminal information to the compressed image according to the terminal information to obtain a signed image specifically includes:
and adding the watermark signature of the terminal information in the full image range of the compressed image according to the terminal information to obtain a signed image.
3. The method of claim 1, further comprising:
and storing the signed image to the storage address.
4. The method according to any one of claims 1-3, further comprising:
and deleting the image to be processed under the storage address.
5. An image watermark signature processing apparatus, comprising:
the image acquisition module is used for acquiring a storage address of an image to be processed photographed or intercepted by a user and acquiring the image to be processed according to the storage address;
the image compression module is used for compressing the image to be processed according to a preset proportion or a preset image size to obtain a compressed image if the size of the image to be processed is judged to be larger than a preset value;
and the watermark signature module is used for adding the watermark signature of the terminal information in the compressed image according to the terminal information to obtain a signed image.
6. The apparatus of claim 5, wherein the watermark signing module is specifically configured to:
and adding the watermark signature of the terminal information in the full image range of the compressed image according to the terminal information to obtain a signed image.
7. The apparatus of claim 5, further comprising:
and the image storage module is used for storing the signed image to the storage address.
8. The apparatus of any of claims 5-7, further comprising:
and the image deleting module is used for deleting the image to be processed under the storage address.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing a computer program that causes a computer to perform the method according to any one of claims 1 to 4.
CN201810897318.2A 2018-08-08 2018-08-08 A kind of image watermark signature processing method and processing device Pending CN108900929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810897318.2A CN108900929A (en) 2018-08-08 2018-08-08 A kind of image watermark signature processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810897318.2A CN108900929A (en) 2018-08-08 2018-08-08 A kind of image watermark signature processing method and processing device

Publications (1)

Publication Number Publication Date
CN108900929A true CN108900929A (en) 2018-11-27

Family

ID=64353354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810897318.2A Pending CN108900929A (en) 2018-08-08 2018-08-08 A kind of image watermark signature processing method and processing device

Country Status (1)

Country Link
CN (1) CN108900929A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552983A (en) * 2020-04-28 2020-08-18 深圳鼎智通讯股份有限公司 Electronic signature method based on single chip microcomputer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176600A1 (en) * 1998-01-20 2002-11-28 Rhoads Geoffrey B. Equipment employing watermark-based authentication function
US20030059086A1 (en) * 2001-09-27 2003-03-27 Canon Kabushiki Kaisha Data processing apparatus and method, data processing program, and storage medium
CN1992794A (en) * 2005-12-31 2007-07-04 北京华旗数码影像技术研究院有限责任公司 Digital camera with the function of digital watermark
CN101853341A (en) * 2010-04-06 2010-10-06 李勇 Portable storage device with digital watermarking function
CN102769752A (en) * 2012-07-25 2012-11-07 北京汉王智通科技有限公司 JPEG image compression method and system
CN106210928A (en) * 2016-08-10 2016-12-07 深圳市企拍文化科技有限公司 Add real-time geographical locations information watermaking system and method in video
CN107633475A (en) * 2017-08-31 2018-01-26 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176600A1 (en) * 1998-01-20 2002-11-28 Rhoads Geoffrey B. Equipment employing watermark-based authentication function
US20030059086A1 (en) * 2001-09-27 2003-03-27 Canon Kabushiki Kaisha Data processing apparatus and method, data processing program, and storage medium
CN1992794A (en) * 2005-12-31 2007-07-04 北京华旗数码影像技术研究院有限责任公司 Digital camera with the function of digital watermark
CN101853341A (en) * 2010-04-06 2010-10-06 李勇 Portable storage device with digital watermarking function
CN102769752A (en) * 2012-07-25 2012-11-07 北京汉王智通科技有限公司 JPEG image compression method and system
CN106210928A (en) * 2016-08-10 2016-12-07 深圳市企拍文化科技有限公司 Add real-time geographical locations information watermaking system and method in video
CN107633475A (en) * 2017-08-31 2018-01-26 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王勋 等: "《图形图像数字水印算法》", 30 November 2010 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552983A (en) * 2020-04-28 2020-08-18 深圳鼎智通讯股份有限公司 Electronic signature method based on single chip microcomputer
CN111552983B (en) * 2020-04-28 2023-12-15 深圳鼎智通讯股份有限公司 Electronic signature method based on single chip microcomputer

Similar Documents

Publication Publication Date Title
KR101528216B1 (en) Photographing processing method and terminal device
CN104243923B (en) A kind of method and system of picture processing and preview picture
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN111836052B (en) Image compression method, image compression device, electronic equipment and storage medium
CN103647916A (en) Picture storage method and apparatus thereof
CN110930467A (en) Image processing method, electronic device and readable storage medium
KR101816625B1 (en) Image display method and apparatus
CN108769684A (en) Image processing method based on WebP image compression algorithms and device
CN107358095B (en) A kind of threat detection method, device and network system
CN109522282B (en) Picture management method, device, computer device and storage medium
CN108900929A (en) A kind of image watermark signature processing method and processing device
CN108924624B (en) Information processing method and device
CN108650431B (en) Shooting control method and device and electronic equipment
KR101031291B1 (en) Apparatus and method for taking voice-photograph
CN112084155B (en) Picture processing method, device, equipment, terminal and readable storage medium
CN111009017B (en) Picture compression method and device, storage medium and computer equipment
CN110807300A (en) Image processing method and device, electronic equipment and medium
CN103353822A (en) Method and device for acquiring file
CN110806910A (en) Method and system for optimizing carousel map and electronic equipment
CN114219729A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
US20120179676A1 (en) Method and apparatus for annotating image in digital camera
CN113676748A (en) Cloud game screen capture interaction method and system
CN108897639B (en) File processing method and device
CN112634460B (en) Outdoor panorama generation method and device based on Haar-like features
CN103544482A (en) Recognition method and device of feature image

Legal Events

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

Application publication date: 20181127