CN110569627B - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN110569627B
CN110569627B CN201910707221.5A CN201910707221A CN110569627B CN 110569627 B CN110569627 B CN 110569627B CN 201910707221 A CN201910707221 A CN 201910707221A CN 110569627 B CN110569627 B CN 110569627B
Authority
CN
China
Prior art keywords
image
watermark
information
determining
watermark information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910707221.5A
Other languages
Chinese (zh)
Other versions
CN110569627A (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 Dami Technology Co Ltd
Original Assignee
Beijing Dami 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 Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201910707221.5A priority Critical patent/CN110569627B/en
Publication of CN110569627A publication Critical patent/CN110569627A/en
Priority to PCT/CN2020/105684 priority patent/WO2021018229A1/en
Application granted granted Critical
Publication of CN110569627B publication Critical patent/CN110569627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B7/00Electrically-operated teaching apparatus or devices working with questions and answers
    • G09B7/06Electrically-operated teaching apparatus or devices working with questions and answers of the multiple-choice answer-type, i.e. where a given question is provided with a series of answers and a choice has to be made from the answers
    • G09B7/07Electrically-operated teaching apparatus or devices working with questions and answers of the multiple-choice answer-type, i.e. where a given question is provided with a series of answers and a choice has to be made from the answers providing for individual presentation of questions to a plurality of student stations
    • G09B7/073Electrically-operated teaching apparatus or devices working with questions and answers of the multiple-choice answer-type, i.e. where a given question is provided with a series of answers and a choice has to be made from the answers providing for individual presentation of questions to a plurality of student stations all student stations being capable of presenting the same questions simultaneously
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0052Embedding of the watermark in the frequency domain

Abstract

The invention provides an image processing method, an image processing device and electronic equipment, wherein a second image is received, the second image is generated based on a first image, and the first image contains a first watermark; extracting watermark information from the second image; determining an image type of the second image based on the extraction result. If the second image does not have the watermark information or the corresponding relation between the watermark information contained in the second image and the first watermark does not exist, the second image can be judged to be a problem image, the risk of using the problem image is reduced, and the normal operation of a service system is guaranteed.

Description

Image processing method and device and electronic equipment
Technical Field
The invention relates to the field of images, in particular to an image processing method and device and electronic equipment.
Background
The description of the background of the invention pertaining to the related art to which this invention pertains is given for the purpose of illustration and understanding only of the summary of the invention and is not to be construed as an admission that the applicant is explicitly or implicitly admitted to be prior art to the date of filing this application as first filed with this invention.
Online education is also called distance education and online learning, and is a teaching mode taking a network as a medium. Through the network, the trainees and the teachers can develop teaching activities even if the trainees and the teachers are separated by ten thousand. By means of the network courseware, students can learn at any time and any place, the limitation of time and space is broken really, and network remote education is a very convenient learning mode for staff with busy work and unfixed learning time.
In the process of online education, the participants and the online education platform need to mutually transmit pictures so as to achieve the purposes of popularization, learning, communication and the like. But the picture has the risk of being tampered, and the influence is caused to normal business.
Disclosure of Invention
In order to solve the problem that the current image is often tampered in the transmission process, the embodiment of the invention provides an image processing method, an image processing device and electronic equipment, and the safety of image use is enhanced.
In a first aspect, an embodiment of the present invention provides an image processing method, including the following steps:
receiving a second image, the second image being generated based on the first image, the first image containing a first watermark;
extracting watermark information from the second image;
determining an image type of the second image based on the extraction result.
In one possible design, the second image is a screenshot of the user propagating and/or showing the first image in a social network, the social network including: an internet social platform, an internet social space.
In one possible design, the determining the image type of the second image based on the extraction result includes:
if the watermark information cannot be extracted from the second image, determining that the second image is a problem image; and/or
And if the watermark information is extracted from the second image, determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark.
In one possible design, the first watermark and the second watermark are two-dimensional code watermarks; and
the determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark includes: identifying the second watermark, and if the identification code of the second watermark is consistent with the identification code of the first watermark, determining that the second image is a normal image; and/or if the identification code of the second watermark is inconsistent with the identification code of the first watermark, determining that the second image is a problem image.
In one possible design, the first image is generated based on an image template containing the first watermark, and the first watermark in the image template is generated based on at least one of: parameters of the image template, display parameters, content information in the image template, service information and oriented user information.
In one possible design, the first watermark in the image template is updated over time.
In one possible design, the extracting watermark information from the second image includes: finding and/or identifying the watermark information from the second image based on extraction parameters, wherein the extraction parameters include at least one of: sender information, parameters of the first image, parameters of the second image, the first watermark.
In one possible design, the first watermark is an invisible watermark.
In a second aspect, an embodiment of the present invention provides an image processing apparatus, including:
a receiving unit, configured to receive a second image, where the second image is generated based on the first image, and the first image contains a first watermark;
an extracting unit configured to extract watermark information from the second image;
a determination unit configured to determine an image type of the second image based on the extraction result.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
The image processing method, the image processing device and the electronic equipment receive a second image, wherein the second image is generated based on a first image, and the first image contains a first watermark; extracting watermark information from the second image; determining an image type of the second image based on the extraction result. The first image contains a first watermark, the second image is generated based on the first image, if the second image is not tampered in the transmission process, the second image also contains watermark information, and the watermark information contained in the second image has a corresponding relation with the first watermark. If the second image does not have the watermark information or the corresponding relation between the watermark information contained in the second image and the first watermark does not exist, the second image can be judged to be a problem image, so that the risk of using the tampered image is reduced, and the normal operation of a service system is guaranteed.
Drawings
Fig. 1 is a schematic diagram of an exemplary system architecture 100 to which an image processing method or an image processing apparatus according to an embodiment of the present application may be applied;
FIG. 2 is a flowchart illustrating an image processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another image processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a further image processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a watermarking method according to an embodiment of the present invention;
FIG. 6A is a schematic diagram of an original image provided by an embodiment of the invention;
fig. 6B is a schematic diagram of an image template containing watermark information according to an embodiment of the present invention;
fig. 6C is a schematic diagram of an image processed by the watermarking method shown in fig. 5 according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present application is further described with reference to the following figures and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 to which the image processing method or the image processing apparatus of the embodiments of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
Participants of online education may use terminal devices 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
The server 105 accepts a second image generated by the terminal device 101, 102, 103 based on the first image through the network 104, wherein the first image contains a first watermark; extracting watermark information from the second image; determining an image type of the second image based on the extraction result.
Referring to fig. 2, fig. 2 is a schematic flowchart of an image processing method according to an embodiment of the present invention, where the schematic flowchart is based on the network architecture of fig. 1, and in the embodiment of the present invention, the method includes:
s201, receiving a second image, wherein the second image is generated based on the first image, and the first image contains a first watermark.
The method provided by the implementation of the invention can be applied to the field of online education, and can ensure that images are safely transmitted between an online education platform and participants of online education. The participants of the online education can be students who study online, teachers who give lessons online, net friends who browse the online education platform, system administrators of the online education platform and the like. In a word, all the people using the online education platform belong to participants of online education, and the image processing method provided by the embodiment of the invention can be applied to enable the two parties to communicate and interact better.
Optionally, before step S201, the method further includes: and sending the first image. The system first sends the first image to the user, wherein the first image comprises a first watermark. The user generates a second image from the first image and sends the second image to the system. The system can determine whether the second image is a problem image according to the watermark extraction result in the second image.
Optionally, the second image is a screenshot of the user propagating and/or showing the first image in a social network, where the social network includes: an internet social platform, an internet social space.
Internet social platforms include, but are not limited to: WeChat, QQ, microblog, business circles daily, etc. Internet social spaces are not limited to: a circle of friends, a WeChat group, a QQ space, a Baidu stick, etc.
Online education platforms often need to receive a second image sent by a participant. For example, when the education platform is promoted, the online education platform needs to send a first image to a participant, and after the promotion, the participant sends a second image based on the first image to the online education platform, where the second image may be a wechat screenshot (such as a friend circle screenshot, a wechat group screenshot, etc.), a microblog screenshot, a browser screenshot, or the like. The online education platform firstly sends a first image related to a learning task to a student, and after the student finishes learning, a second image generated based on the first image is sent to the platform, wherein the second image is an image with a preset learning task amount. The online education platform sends a first image of a teaching plan preview to a teacher, and after the teacher finishes the teaching plan preview, the teacher sends a second image based on the first image to the platform, wherein the second image is an image of the teacher with a preset preview task amount.
The picture is at risk of being tampered, such as: the participant does not complete the promotion or task, but sends an image showing the completed task to the platform. In addition, it is difficult to ensure that the image is not tampered during the transmission of the image between the online education platform and the participant.
For this reason, the watermark is added to the image to enhance the safety of the online education platform for the use of the image. The watermark is to add some digital information to the image to achieve the functions of file authenticity identification, copyright protection and the like.
Optionally, the first image is generated based on an image template containing the first watermark, and the first watermark in the image template is generated based on at least one of: parameters of the image template, display parameters, content information in the image template, service information and oriented user information.
The image processed by the blank image is not changed, namely, the original image is processed by the blank image, and the processed image is still the original image. The image template may be generated by adding a first watermark image to the blank image. The position without the watermark information on the image template is composed of pixel points of a blank image. By utilizing the image template, the following effects can be achieved by processing the original image: and displaying the watermark at a first position of the processed image, wherein the first position corresponds to the position of the image template with the watermark. The image of the original image itself is displayed at a second position of the processed image, said second position corresponding to a position of the image template where no watermark is present.
Optionally, the first watermark is an invisible watermark, i.e. the first image with the first watermark added and the first image without the first watermark added are visually imperceptible. Thus, on one hand, the first image added with the watermark does not influence the visual experience of the user; on the other hand, the risk of picture tampering is reduced due to the fact that the picture is not easy to find.
The parameters of the image template may include: image size, image resolution, etc. The display parameters are the display position, font, line spacing and the like of the first watermark in the first picture. The service information is service system information applied to the image after the watermarking processing. The service information may include: service ID, service name, service nature, service type, service description, etc.
The oriented user information is personal information of users of online education, such as: user identification, user category, user age, user gender, education level, and the like, wherein the user category includes: general trainees, important trainees, auditors, and the like.
For example, if a picture needs to be transmitted between a Job hunting system and a user with a user name of a, the watermark information added to the picture may be "a in Job" or the like. Furthermore, the user can also customize the watermark information of the user so as to better meet the personalized requirements of different users.
Optionally, the first watermark in the image template is updated over time.
For the same participant, if the same watermark is adopted for image processing all the time, obviously, an attacker has more sufficient time and adopts different methods to decipher watermark information contained in the image. And once the watermark information in the image is decoded, long-time threat is caused to the system security. The method generates different watermarks in different periods, obviously improves the difficulty of decoding the watermark information, and further ensures the system safety.
And S202, extracting watermark information from the second image.
The first image comprises a first watermark and the second image comprises a second watermark. And the second image is generated and transmitted based on the first image. The second watermark thus has a specific relationship to the first watermark. For example, the second image is the same as the first image, or the second image is based on the first image with some text information added, and the second watermark is the same as the first watermark. Or the second image is a binary image obtained after the first image is processed, and the second watermark is a binary image corresponding to the first watermark. And if the second image is a gray image obtained after the first image is processed, the second watermark is a gray image corresponding to the first watermark.
Optionally, step S203 further includes: finding and/or identifying the watermark information from the second image based on extraction parameters, wherein the extraction parameters include at least one of: sender information, parameters of the first image, parameters of the second image, the first watermark.
Watermark information may be extracted from the second image in a variety of ways, including but not limited to the following or a combination thereof:
(1) the preset position information stored in the system represents the adding position information of the image template in the original image. Based on the predetermined position information, watermark information is directly extracted from the image to be recognized. For example: the predetermined position information records a watermarked area.
(2) The watermark information is character information, such as specific characters, numbers or combinations of company names, service names and the like. And identifying whether the image to be identified contains the character information or not by an image identification technology, and further judging whether the identification image contains the watermark of the specific character content or not. In another mode, the watermark can also be a two-dimensional code watermark, a bar code watermark and the like; alternatively, the watermark may be a combination of text, two-dimensional code, bar code watermark, and other information.
(3) The watermark information in the image to be identified is obtained by comparing the original image with the image to be identified through the pre-stored original image (for example, the original image is stored in the system).
(4) A first image may be used, a second image is obtained after a watermark is added to the first image, the first image and the second image are spliced to obtain a third image, and the original image is processed by using the third image to add the watermark to the original image. Therefore, the image to be identified (containing the watermark information) contains a first image and a second image, and during identification, the first image and the second image are extracted from the image to be identified, and the watermark is identified by comparing the first image and the second image. The first image may be a sub-image of the original image or a set image template. Alternatively, the position at which the third image is placed or synthesized in the original image may be recorded, and based on the position, the first image and the second image are found from the image to be processed.
The sender information may include sender identification, sender category, sender age, sender gender, and the like. The first image parameters may include a first image identification, a first image application identification, a first image description, and so on. The second image parameters may include a second image identification, a second image application identification, a second image description, and so on.
The system can store the corresponding relation between the sender identification or the second image identification and the storage position of the watermark in the second image, and also can store the corresponding relation between the first image identification and the second image identification, and store the corresponding relation between the first image identification and the storage position of the watermark in the second image. The storage position of the watermark in the second image can comprise the pixel coordinate of the upper left corner of the watermark image, the size information of the watermark image and the like.
If the watermark is stored in the high-frequency area of the original image, the related area information in the second image can be determined according to the image parameters, and then the second watermark information is extracted from the related area information.
S203, determining the image type of the second image based on the extraction result.
The image types may include: problem images and normal images. The problem image is an image in which the image may be tampered during transmission.
The first image comprises a first watermark and the second image comprises a second watermark. And the second image is generated and transmitted based on the first image. Therefore, the second watermark has a corresponding relationship with the first watermark. For example, the second image is the same as the first image, or the second image is based on the first image with some text information added, and the second watermark is the same as the first watermark. Or the second image is a binary image obtained after the first image is processed, and the second watermark is a binary image corresponding to the first watermark. And if the second image is a gray image obtained after the first image is processed, the second watermark is a gray image corresponding to the first watermark.
According to the above analysis, the second watermark has a corresponding relationship with the first watermark. And extracting a second watermark from the second image, and analyzing and comparing the first watermark and the second watermark to determine whether the second image is a problem image.
In the invention, the first image contains the first watermark, the second image contains the second watermark, and the second image is sent by the participant based on the first image, if the second image is not tampered in the transmission process, the second watermark contained in the second image has a corresponding relation with the first watermark. If the second image does not include the watermark information or the first watermark and the second watermark do not have the corresponding relationship, the second image can be judged to be a problem image. If the second image is a problem image, the image can be discarded and a problem investigation can be performed on the relevant transmission link and the user. If the second image is a normal image, it can be used normally.
If the picture is tampered, the tampered picture is likely to have viruses or trojans which threaten the security of the system. Thus, in one aspect, the present invention reduces the risk of normal teaching being affected by the use of tampered pictures. On one hand, the invention can solve the security problem caused by the falsification of the picture in the transmission process.
Referring to fig. 3, fig. 3 is a schematic flowchart of an image processing method according to an embodiment of the present invention, where the method includes:
s301, receiving a second image, wherein the second image is generated based on the first image, and the first image contains a first watermark.
The specific process of S301 may refer to the description of S201 in fig. 2, and is not described herein again.
And S302, extracting watermark information from the second image.
The specific process of S302 may refer to the description of S202 in fig. 2, and is not described herein again.
And S303, if the watermark information cannot be extracted from the second image, determining that the second image is a problem image.
S304, if the watermark information is extracted from the second image, determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark.
The first image contains a first watermark, the second image is sent by a participant based on the first image, and if the second image is not tampered in the transmission process, the watermark is kept in the second image. And if the watermark contained in the second image is not acquired, the second image is a problem image. If the second watermark extracted from the second image is acquired, whether the second image is a problem image or not can be further determined according to the comparison result of the second watermark and the first watermark.
Fig. 4 is a schematic flowchart of another image processing method provided in an embodiment of the present invention, where the method includes:
s401, receiving a second image, wherein the second image is generated based on the first image, and the first image contains a first watermark.
The specific process of S401 may refer to the description of S201 in fig. 2, and is not described herein again.
S402, extracting watermark information from the second image, wherein the first watermark and the second watermark are two-dimensional code watermarks.
The specific process of S402 may refer to the description of S202 in fig. 2, and is not described herein again.
And S403, identifying the second watermark.
S404, if the identification code of the second watermark is consistent with the identification code of the first watermark, determining that the second image is a normal image.
If the second image is a normal image, the online education platform can normally receive the second image and perform related processing.
S405, if the identification code of the second watermark is inconsistent with the identification code of the first watermark, determining that the second image is a problem image.
If the second image is a problem image, the image can be abandoned, and problem troubleshooting can be carried out on the related transmission link and the user so as to ensure the safety of the online education platform.
In the image processing method provided by the embodiment of the invention, whether the second image is a problem image is verified by comparing the identification code of the second watermark with the identification code of the first watermark. If the second image is a problem image, corresponding processing and detection can be carried out, and the risk of system failure caused by receiving a tampered image is reduced.
Fig. 5 is a schematic flowchart of a watermarking method according to an embodiment of the present invention, where the method includes:
and S501, acquiring high-frequency area information of the original image.
The high-frequency region information is region information in which the change in brightness or gradation of an image in the image is large. The low-frequency region information is region information in which the brightness or gradation of an image in the image changes little. The high frequency regions generally correspond to edge regions and noise regions in the image, while the low frequency regions generally correspond to large patch regions in the image. The information of the high and low frequency regions of the image can be obtained by means of a PCA (principal component analysis) technique or whitening operation, and the like, which is not described herein again.
S502, determining corresponding position information of the high-frequency area information in the image template.
The watermark information may be added to a high frequency region of the original image by corresponding position information to generate a watermarked image. The corresponding position information may be a plurality of pixel coordinates of the high-frequency region at the corresponding position of the image template, or may be a plurality of pixel coordinates of the edge pixel extracted from the high-frequency region at the corresponding position of the image template.
S503, adding the first watermark into the image template based on the corresponding position information.
And S504, processing the original image by using the image template to generate the first image.
Through the above steps S503 to S504, watermark information may be added to the high frequency region of the original image. Since the high frequency regions generally correspond to edge regions and noise regions in the image, while the low frequency regions generally correspond to large patch regions in the image. Therefore, the watermark is added to the high frequency region of the original image, and the watermark is added to the insensitive region of the human eye, compared with the low frequency region of the original image, so that the visual effect of the user is less affected, and the perception of the user is not easy to cause.
Fig. 6A is a schematic diagram of an original image provided by an embodiment of the present invention, where the original image is a poster for promotion. Fig. 6B is a schematic diagram of an image template including watermark information according to an embodiment of the present invention, where the watermark information includes text information "vipsid", and the watermark information may also be set according to copyright information, service information, and user information. Fig. 6C is a schematic diagram of an image processed by the watermarking method shown in fig. 3 according to an embodiment of the present invention. In the watermarking method shown in fig. 5 in the embodiment of the present invention, watermarking information is added to a high-frequency region of an original image. Since the high frequency regions generally correspond to edge regions and noise regions in the image, while the low frequency regions generally correspond to large patch regions in the image. Therefore, the watermark is added to the high frequency region of the original image, and the watermark is added to the insensitive region of the human eye, compared with the low frequency region of the original image, so that the visual effect of the user is less affected, and the perception of the user is not easy to cause. As can be seen by comparing the original picture and the processed image in fig. 6A and 6C, it is difficult for the human eye to perceive the difference between the two.
Fig. 2 to 6C illustrate the image processing method according to the embodiment of the present application in detail.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention, which is referred to as an apparatus 7 for short, where the apparatus 7 may include a receiving unit 701, an extracting unit 702, and a determining unit 703.
A receiving unit 701, configured to receive a second image, where the second image is generated based on the first image, and the first image contains a first watermark;
an extracting unit 702, configured to extract watermark information from the second image;
a determining unit 703 for determining an image type of the second image based on the extraction result.
In one possible design, the second image is a screenshot of the user propagating and/or showing the first image in a social network, the social network including: an internet social platform, an internet social space.
In one possible design, the determining unit 703 is specifically configured to: if the watermark information cannot be extracted from the second image, determining that the second image is a problem image; and/or
And if the watermark information is extracted from the second image, determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark.
In one possible design, the first watermark and the second watermark are two-dimensional code watermarks; and
the determining unit 703 is specifically configured to: identifying the second watermark, and if the identification code of the second watermark is consistent with the identification code of the first watermark, determining that the second image is a normal image; and/or if the identification code of the second watermark is inconsistent with the identification code of the first watermark, determining that the second image is a problem image.
In one possible design, the first image is generated based on an image template containing the first watermark, and the first watermark in the image template is generated based on at least one of: parameters of the image template, display parameters, content information in the image template, service information and oriented user information.
In one possible design, the apparatus further includes an updating unit configured to update the first watermark in the image template over time.
In one possible design, the extracting unit 702 is specifically configured to: finding and/or identifying the watermark information from the second image based on extraction parameters, wherein the extraction parameters include at least one of: sender information, parameters of the first image, parameters of the second image, the first watermark.
In one possible design, the first watermark is an invisible watermark.
It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.
Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the image processing method described above. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 8, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown, where the electronic device may be used to implement the image processing method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 access to the memory 820.
The input unit 830 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 830 may include a touch-sensitive surface 831 (e.g., a touch screen, touchpad, or touch frame). The touch-sensitive surface 831, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 831 (e.g., operations by a user on or near the touch-sensitive surface 831 using a finger, a stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predefined program. Alternatively, the touch-sensitive surface 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch-sensitive surface 831 can be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display unit 840 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like, as an option. Further, touch-sensitive surface 831 can overlay display panel 841 and, upon detecting a touch operation on or near touch-sensitive surface 831, communicate to processor 880 to determine the type of touch event, whereupon processor 880 can provide a corresponding visual output on display panel 841 in accordance with the type of touch event. Although in FIG. 8, touch-sensitive surface 831 and display panel 841 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 831 may be integrated with display panel 841 to implement input and output functions.
The processor 880 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby performing overall monitoring of the terminal device. Optionally, processor 880 may include one or more processing cores; processor 880 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors, and include steps for implementing the image processing method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An image processing method, characterized in that the method comprises:
receiving a second image, the second image being generated based on a first image, the first image containing a first watermark; wherein the first image is generated based on an image template containing the first watermark, the image template being generated by adding the first watermark image to a blank image;
extracting watermark information from the second image; the identification mode of the watermark information is as follows: acquiring a sub-image of the original image as a third image; splicing the second image and the third image to obtain a fourth image; processing the original image by using the fourth image to obtain an image to be identified added with the watermark information; extracting the second image and the third image from the image to be identified, and identifying the watermark information according to the comparison between the second image and the third image;
determining an image type of the second image based on the extraction result;
wherein the determining the image type of the second image based on the extraction result comprises:
if the watermark information cannot be extracted from the second image, determining that the second image is a problem image; and/or
If the watermark information is extracted from the second image, determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark;
wherein the image type of the second image includes two types of the problem image and the normal image.
2. The image processing method according to claim 1, wherein the second image is a screenshot of the user propagating and/or showing the first image in a social network, and the social network comprises: an internet social platform, an internet social space.
3. The image processing method according to claim 1, wherein the first watermark and the second watermark are two-dimensional code watermarks; and
the determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark includes:
identifying the second watermark, and if the identification code of the second watermark is consistent with the identification code of the first watermark, determining that the second image is a normal image; and/or
And if the identification code of the second watermark is inconsistent with the identification code of the first watermark, determining that the second image is a problem image.
4. The image processing method of claim 1, wherein the first watermark in the image template is generated based on at least one of: the parameters of the image template, the display parameters, the content information, the service information and the oriented user information in the image template.
5. The image processing method of claim 4, wherein the first watermark in the image template is updated over time.
6. The method according to claim 1, wherein the extracting watermark information from the second image comprises: finding and/or identifying the watermark information from the second image based on extraction parameters, wherein the extraction parameters include at least one of: sender information, parameters of the first image, parameters of the second image, the first watermark.
7. The image processing method of claim 1, wherein the first watermark is an invisible watermark.
8. An image processing apparatus characterized by comprising:
a receiving unit, configured to receive a second image, where the second image is generated based on a first image, and the first image contains a first watermark; wherein the first image is generated based on an image template containing the first watermark, the image template being generated by adding the first watermark image to a blank image;
an extracting unit configured to extract watermark information from the second image; the identification mode of the watermark information is as follows: acquiring a sub-image of the original image as a third image; splicing the second image and the third image to obtain a fourth image; processing the original image by using the fourth image to obtain an image to be identified added with the watermark information; extracting the second image and the third image from the image to be identified, and identifying the watermark information according to the comparison between the second image and the third image;
a determination unit configured to determine an image type of the second image based on the extraction result;
wherein the determining unit is specifically configured to:
if the watermark information cannot be extracted from the second image, determining that the second image is a problem image; and/or
And if the watermark information is extracted from the second image, determining the image type of the second image based on the comparison result of the second watermark corresponding to the watermark information and the first watermark.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-7 are implemented when the program is executed by the processor.
CN201910707221.5A 2019-08-01 2019-08-01 Image processing method and device and electronic equipment Active CN110569627B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910707221.5A CN110569627B (en) 2019-08-01 2019-08-01 Image processing method and device and electronic equipment
PCT/CN2020/105684 WO2021018229A1 (en) 2019-08-01 2020-07-30 Image processing method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910707221.5A CN110569627B (en) 2019-08-01 2019-08-01 Image processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110569627A CN110569627A (en) 2019-12-13
CN110569627B true CN110569627B (en) 2021-08-20

Family

ID=68774271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910707221.5A Active CN110569627B (en) 2019-08-01 2019-08-01 Image processing method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN110569627B (en)
WO (1) WO2021018229A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569627B (en) * 2019-08-01 2021-08-20 北京大米科技有限公司 Image processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103985079A (en) * 2014-05-21 2014-08-13 南京茵默维电子科技有限公司 Tampering detection method for digital image with invisible watermark
CN107240060A (en) * 2017-05-25 2017-10-10 上海地铁第运营有限公司 Security against fire based on dynamic digital watermark checks picture method for anti-counterfeit and system
CN109767376A (en) * 2018-12-13 2019-05-17 平安科技(深圳)有限公司 Image authentication method, device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1198344A (en) * 1997-09-19 1999-04-09 Mitsubishi Electric Corp Method and device for discriminating fraudulent alteration of digital image by using electronic watermark
US20020181732A1 (en) * 2001-04-10 2002-12-05 Motorola, Inc Method of collaborative watermarking of a digital content
CN104484587A (en) * 2014-12-13 2015-04-01 天津远目科技有限公司 Mobile phone photographing authentication method
CN106127668A (en) * 2016-06-27 2016-11-16 南京师范大学 GPS and the guard method in IOS end digitized video of the BEI-DOU position system space time information
CN107346528B (en) * 2017-07-06 2020-08-14 安徽大学 Image tampering detection method based on double-image reversible fragile watermark
CN110569627B (en) * 2019-08-01 2021-08-20 北京大米科技有限公司 Image processing method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103985079A (en) * 2014-05-21 2014-08-13 南京茵默维电子科技有限公司 Tampering detection method for digital image with invisible watermark
CN107240060A (en) * 2017-05-25 2017-10-10 上海地铁第运营有限公司 Security against fire based on dynamic digital watermark checks picture method for anti-counterfeit and system
CN109767376A (en) * 2018-12-13 2019-05-17 平安科技(深圳)有限公司 Image authentication method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2021018229A1 (en) 2021-02-04
CN110569627A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
EP2410450A1 (en) Method for providing a challenge based on a content
CN108234283B (en) Detecting external social media messages
US9813441B2 (en) Detecting and breaking CAPTCHA automation scripts and preventing image scraping
US9805511B2 (en) Interacting with data fields on a page using augmented reality
US20090204820A1 (en) Method and apparatus for Account Management
WO2021023085A1 (en) Watermark adding method and apparatus, watermark recognition method and apparatus, and electronic device
CN108665403A (en) Data waterprint embedded method, extracting method, device and digital watermarking system
WO2016117321A1 (en) Electronic information board apparatus and method
US11704764B2 (en) Method and system for generating watermark on the basis of graphic, terminal, and medium
CN101211448A (en) Click-fraud prevention method and system
JP2010067096A (en) Authentication device, authentication method, information processing program, and recording medium
CN103842991A (en) Image processing apparatus, image processing method, and program
US10971025B2 (en) Information display apparatus, information display terminal, method of controlling information display apparatus, method of controlling information display terminal, and computer readable recording medium
Shirali-Shahreza et al. Drawing captcha
US11822879B2 (en) Separately collecting and storing form contents
US20180277006A1 (en) Information display apparatus, information display method, and computer-readable recording medium
CN110569627B (en) Image processing method and device and electronic equipment
CN110502512B (en) Information carrier generation method, correlation method, device, equipment and storage medium
CN111290722A (en) Screen sharing method, device and system, electronic equipment and storage medium
US10580188B2 (en) Method of creating animated image based on key input, and user terminal for performing the method
CN112286411A (en) Display mode control method and device, storage medium and electronic equipment
US9881516B1 (en) System and method for detecting cheating while administering online assessments
JP5552911B2 (en) Authentication apparatus, authentication system, and authentication method
CN111369848B (en) Courseware content interaction based method and device, storage medium and electronic equipment
CN111625805B (en) Verification method, verification device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant