CN112598564A - Information recording and information tracing method and device - Google Patents

Information recording and information tracing method and device Download PDF

Info

Publication number
CN112598564A
CN112598564A CN202011570113.7A CN202011570113A CN112598564A CN 112598564 A CN112598564 A CN 112598564A CN 202011570113 A CN202011570113 A CN 202011570113A CN 112598564 A CN112598564 A CN 112598564A
Authority
CN
China
Prior art keywords
watermark
target
information
pixel group
group 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.)
Pending
Application number
CN202011570113.7A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202011570113.7A priority Critical patent/CN112598564A/en
Publication of CN112598564A publication Critical patent/CN112598564A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0065Extraction of an embedded watermark; Reliable detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an information recording and tracing method and device, which can obtain a target image shot by a camera, wherein the target image comprises a human face of a user viewing a target file, pixel group information of the target image is obtained, the pixel group information comprises pixel information of at least one pixel point in the target image, a watermark at least comprising the pixel group information is generated, a target area of the target file, in which the watermark is to be stored, is determined, the watermark is stored in the target area, and a target color value of the watermark is determined according to a color value of the target area. The method and the device can store the face characteristic information of the user in the target image by obtaining the target image comprising the face of the user and using the information storage mode of the pixel group information, convert the pixel group information into the watermark and store the watermark in the target file, realize the recording of the face characteristic information of the user, trace the source of the user according to the watermark stored in the target file when needed, and prevent the content of the target file from being leaked.

Description

Information recording and information tracing method and device
Technical Field
The present invention relates to the field of information processing, and in particular, to an information recording and tracing method and apparatus.
Background
With the development of scientific technology, information security technology is continuously improved.
Currently, a large enterprise stores many confidential documents that need to be kept confidential. Generally, the confidential documents are only allowed to be viewed by authorized persons, and are prohibited from being viewed by unauthorized persons, so that information leakage of the confidential documents is avoided.
However, when an unauthorized person views or peeps the confidential file intentionally, the prior art cannot effectively record the identity information of the unauthorized person, so that the identity of the unauthorized person cannot be traced in time, and the content of the confidential file may be leaked.
Disclosure of Invention
In view of the above problems, the present invention provides an information recording and information tracing method and apparatus for overcoming the above problems or at least partially solving the above problems, and the technical solution is as follows:
an information recording method, comprising:
obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
acquiring pixel group information of the target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
generating a watermark including at least the pixel group information;
determining a target area of the target file in which the watermark is to be stored;
and storing the watermark into the target area, wherein the target color value of the watermark is determined according to the color value of the target area.
Optionally, the pixel information includes position information and color information of the pixel point.
Optionally, the target file is a grayscale file, the storing the watermark in a target area in the target file, the target color value of the watermark being determined according to the color value of the target area, includes:
determining a target area in which the watermark is to be stored in the target file;
determining a gray value of the target area;
determining the value obtained by adding the gray value and a preset gray value as a target gray value;
setting the gray value of the watermark as the target gray value;
and storing the watermark with the set gray value into the target area so as to hide the watermark in the target area.
Optionally, before the generating the watermark including at least the pixel group information, the method further includes:
performing encryption operation on the pixel information of each pixel point in the pixel group information by using an encryption algorithm to obtain encrypted pixel group information;
the generating of the watermark at least including the pixel group information includes:
and generating a watermark at least comprising the encrypted pixel group information.
Optionally, the target area is a blank area in the target file.
Optionally, the method further includes:
determining time information of the user for viewing the target file;
the generating of the watermark at least including the pixel group information includes:
and generating the watermark comprising the pixel group information and the time information.
An information tracing method comprises the following steps:
determining a watermark in a target file, wherein the watermark is stored by any one of the information recording methods;
obtaining pixel group information in the watermark;
reshaping a target image corresponding to the pixel group information;
and carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
Optionally, the determining the watermark in the target file includes:
determining the content with the color value of the target color value in the target file as target content, wherein the target color value is the color value of the watermark;
and adjusting the color value of the target content so that the target content is clearly shown in the target file.
An information recording apparatus comprising: a first obtaining unit, a second obtaining unit, a first generating unit, a first determining unit and a first saving unit, wherein:
the first obtaining unit is configured to perform: obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
the second obtaining unit is configured to perform: acquiring pixel group information of the target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
the first generation unit is configured to perform: generating a watermark including at least the pixel group information;
the first determination unit is configured to perform: determining a target area of the target file in which the watermark is to be stored;
the first saving unit is configured to perform: and storing the watermark into the target area, wherein the target color value of the watermark is determined according to the color value of the target area.
Optionally, the pixel information includes position information and color information of the pixel point.
Optionally, the target file is a grayscale file, and the first saving unit includes: a second determining unit, a third determining unit, a fourth determining unit, a setting unit, and a second saving unit, wherein:
the second determination unit configured to perform: determining a target area in which the watermark is to be stored in the target file;
the third determination unit is configured to perform: determining a gray value of the target area;
the fourth determination unit configured to perform: determining the value obtained by adding the gray value and a preset gray value as a target gray value;
the setting unit configured to perform: setting the gray value of the watermark as the target gray value;
the second saving unit is configured to perform: and storing the watermark with the set gray value into the target area so as to hide the watermark in the target area.
Optionally, the apparatus further comprises: an encryption unit;
the encryption unit configured to perform: before generating the watermark at least comprising the pixel group information, carrying out encryption operation on the pixel information of each pixel point in the pixel group information by using an encryption algorithm to obtain encrypted pixel group information;
the first generation unit is configured to perform: and generating a watermark at least comprising the encrypted pixel group information.
Optionally, the target area is a blank area in the target file.
Optionally, the apparatus further comprises: a fifth determination unit;
the fifth determination unit configured to perform: determining time information of the user for viewing the target file;
the first generation unit is configured to perform: and generating the watermark comprising the pixel group information and the time information.
An information tracing apparatus, comprising: a sixth determining unit, a third obtaining unit, a reshaping unit and an identifying unit, wherein:
the sixth determining unit configured to perform: determining a watermark in a target file, wherein the watermark is stored by any one of the information recording methods;
the third obtaining unit is configured to perform: obtaining pixel group information in the watermark;
the reshaping unit is configured to perform: reshaping a target image corresponding to the pixel group information;
the identification unit is configured to perform: and carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
Optionally, the sixth determining unit includes: a seventh determining unit and an adjusting unit;
the seventh determining unit configured to perform: determining the content with the color value of the target color value in the target file as target content, wherein the target color value is the color value of the watermark;
the adjustment unit is configured to perform: and adjusting the color value of the target content so that the target content is clearly shown in the target file.
The information recording method and apparatus provided in this embodiment may obtain a target image captured by a camera, where the target image includes a face of a user viewing a target file, obtain pixel group information of the target image, where the pixel group information includes pixel information of at least one pixel point in the target image, generate a watermark including at least the pixel group information, determine a target area in the target file where the watermark is to be stored, store the watermark in the target area, and determine a target color value of the watermark according to a color value of the target area. The method and the device can store the face characteristic information of the user in the target image by obtaining the target image comprising the face of the user and using the information storage mode of the pixel group information, convert the pixel group information into the watermark and store the watermark in the target file, realize the recording of the face characteristic information of the user, are beneficial to tracing the identity of the user and prevent the content of the target file from being leaked.
The information tracing method and the device provided by the embodiment can obtain a target image including a face of a user when the user views a target file, store face feature information of the user in the target image by using an information storage mode of pixel group information, convert the pixel group information into a watermark and store the watermark in the target file, realize recording of the face feature information of the user, obtain the watermark from the target file when the user needs to be traced, obtain the pixel group information from the watermark, trace the user according to the pixel group information, effectively determine the identity of the user, and prevent the target file from being leaked.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating an information recording method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an information tracing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an information recording apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating an information tracing apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, the present embodiment proposes an information recording method, which may include the steps of:
s101, obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
the target file may be a confidential file or a non-confidential file stored in the electronic device. The electronic device may be a mobile phone, a tablet computer, a desktop computer, or the like, which is not limited in the present invention.
Specifically, the file type of the target file may be a document, an image, and the like, which is not limited in the present invention.
It should be noted that the camera may be a camera disposed on the electronic device; the camera may also be a camera disposed in the surrounding environment of the electronic device, and at this time, the setting position of the camera may be determined by a technician according to the actual environment, which is not limited in the present invention. The number of the cameras can be one or more.
It can be understood that the camera may also include a camera disposed in the electronic device and the surrounding environment of the electronic device, so as to perform full-view shooting on the user, so that the shot target image may contain effective feature information of the face of the user.
Specifically, the invention can control the camera to shoot the user when the user with any identity views the target file, and obtain the target image containing the face of the user.
S102, obtaining pixel group information of a target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
it should be noted that, after the target image is obtained, the present invention may extract and store the facial feature information of the user from the target image. Specifically, the invention can extract the pixel information of at least one pixel point from the target image, and store the pixel information of each pixel point in an array mode, namely, the pixel information of each pixel point is respectively stored into an array as an element, and the array can be pixel group information. It is understood that the pixel group information may be facial feature information of the user. When the identity of the user viewing the target file needs to be traced, the face of the user can be reshaped through the pixel group information, and the identity of the user is tracked according to the reshaped face.
The pixel group information may include pixel information of all pixel points in the target image, or may only include pixel information of pixel points in a part or all of the face region in the target image.
Optionally, the pixel information of the pixel point may include position information of the pixel point, that is, a coordinate of the pixel point in the target image. At this moment, when the identity of the user viewing the target file needs to be traced, the outline of the face in the target image can be described according to the pixel information of the pixel points, and the identity of the user is tracked according to the face outline.
The position information of the pixel point may be a two-dimensional position coordinate or a three-dimensional position coordinate, which is not limited in the present invention. It should be noted that, when the position information of the pixel point is a two-dimensional position coordinate, the invention can draw the plane contour of the face according to the position information of the pixel point; when the position information of the pixel points is the three-dimensional position coordinate, the invention can draw the space outline of the face according to the position information of the pixel points.
Optionally, the pixel information of the pixel point may include position information and color information of the pixel point. The color information of the pixel point may be a color value of the pixel point, such as an RGB value or a gray scale value. At this moment, when the identity of the user viewing the target file needs to be traced, the face in the target image can be drawn according to the position information of the pixel points, then the color of the face is displayed according to the color information of each pixel point, the face in the target image is remolded, and the identity of the user is tracked according to the face.
It should be noted that, the data arrangement order of the position information and the color information in the pixel information of the pixel point is not limited, for example, the pixel information of the pixel point may be (abscissa of the pixel point, ordinate of the pixel point, color value of the pixel point), may also be (ordinate of the pixel point, abscissa of the pixel point, color value of the pixel point), and of course, may also be (abscissa of the pixel point, color of the pixel point, ordinate of the pixel point).
S103, generating a watermark at least comprising pixel group information;
in the present invention, a watermark in which at least pixel group information is stored can be generated using a conventional watermarking method.
S104, determining a target area of the watermark to be stored in the target file;
it should be noted that, after obtaining the watermark at least storing the pixel group information, the invention may store the watermark in the target file, so that when a user viewing the target file needs to be traced, the watermark storing the pixel group information may be determined in the target file in a targeted manner, the pixel group information stored in the watermark is obtained, the user is traced according to the pixel group information, and the tracing efficiency is improved.
Optionally, the target area may be a blank area in the target file. At this moment, when the user needs to be traced according to the watermark, the pixel group information stored in the watermark can be obtained by directly scanning the watermark after the watermark is determined, and the user is traced according to the pixel group information, so that the influence of the file content on the acquisition of the pixel group information in the scanning process can be effectively avoided, the watermark does not need to be extracted, and the resource consumption is reduced.
Optionally, when the target file is a document, the target area may be an inter-line area in the target file, so as to effectively improve the data capacity of the target file capable of storing the watermark.
It will be appreciated that the target area may also be an area of the target file that contains the content of the file. In this case, the data capacity of the target file capable of storing the watermark can be increased to the maximum extent. At this time, when the user needs to be traced according to the watermark, after the watermark is determined, the watermark is extracted from the target file in advance, then the pixel group information stored in the watermark is obtained, and the user is traced according to the pixel group information.
S105, storing the watermark into the target area, wherein the target color value of the watermark is determined according to the color value of the target area.
It should be noted that the present invention may store the watermark in the target area in a color difference storage manner, so as to prevent the watermark from affecting the reading of the target file by authorized personnel.
The target color value of the watermark may be a color value displayed after the watermark is stored in the target area. It is to be understood that the present invention may determine the target color value of the watermark according to the color value of the target region.
The color value in this embodiment may be an RGB value, a gray value, and the like, which is not limited in this disclosure.
Optionally, in the present invention, after the target area is determined, the color value of the target area is determined in advance, then the target color value of the watermark is determined according to the color value of the target area based on the principle of displaying color difference, and then the watermark whose color value is the target color value is stored in the target area.
Optionally, the watermark may be stored in the target area first, then the color value of the target area is determined, and the target color value of the watermark is adjusted according to the color value of the target area. In the invention, the target color value of the watermark can be adjusted by technical personnel according to the color difference effect of the watermark and the target area.
It should be noted that the color of the watermark may be lighter or darker than the color of the target area, and the color of the watermark may be lighter or darker than the color of the target area, which is not limited in the present invention.
It can be understood that the invention can hide the watermark in the target file by setting the target color value of the watermark, thereby improving the confidentiality of the watermark, avoiding the modification or deletion of the watermark by a user, and improving the effectiveness of tracing.
Optionally, the method and the device can save the watermark into the target area during the period that the user views the target file, and at this time, the saving rate of the watermark can be improved; the invention can also store the watermark into the target area after the user finishes checking the target file, and can avoid the perception that the user adds the watermark to the target file, thereby improving the confidentiality of the target file and the watermark.
It should be noted that the present invention can set the editing authority for the target file, prohibit the user from modifying the target file, and improve the confidentiality and integrity of the target file.
It should be noted that, the present invention can prohibit the execution of the method shown in fig. 1 to record the facial feature information of the user when the user applies for the instant application and obtains the authorization to view the target file within a certain time period, so as to reduce the consumption of computing resources, effectively reduce the number of watermarks in the target file, increase the number of watermarks to be determined during tracing, and increase the tracing efficiency.
In practical applications, the present invention may monitor watermark generation events in the method shown in fig. 1 in the background. Specifically, the present invention may set an identification code for uniquely identifying the target file in a background database, and after detecting the watermark generated by using the method shown in fig. 1, may retrieve the identification code of the target file from the database, record the watermark generation event accordingly, and prompt or alarm on the electronic device, indicating that the technician learns the event that the target file is viewed. At this time, a technician can trace the source of the user identity by checking the watermark in the target file, determine whether the target file is checked by an unauthorized person, and avoid the leakage of the content of the target file.
The information recording method provided in this embodiment may obtain a target image shot by a camera, where the target image includes a face of a user viewing a target file, obtain pixel group information of the target image, where the pixel group information includes pixel information of at least one pixel point in the target image, generate a watermark including at least the pixel group information, determine a target area in the target file where the watermark is to be stored, store the watermark in the target area, and determine a target color value of the watermark according to a color value of the target area. The method and the device can store the face characteristic information of the user in the target image by obtaining the target image comprising the face of the user and using the information storage mode of the pixel group information, convert the pixel group information into the watermark and store the watermark in the target file, realize the recording of the face characteristic information of the user, are beneficial to tracing the identity of the user and prevent the content of the target file from being leaked.
Based on the steps shown in fig. 1, the present embodiment proposes another information recording method. In the method, the target file is a gray file, and the step S105 may include the steps of:
s201, determining a target area of a watermark to be stored in a target file;
the target file may be a gray file whose color is gray. For example, when the target document is an image, the target document may be a grayscale image.
The target area may be a blank area in the target file, or an area containing file content in the target file, which is not limited in the present invention.
It should be noted that, in the target file with the color being the gray level, the present invention may set the color of the watermark to the corresponding gray level value, so that the watermark may be hidden in the target file. Specifically, the method and the device can determine the gray value of the watermark according to the gray value of the target area, so that the target watermark can be hidden in the target file.
S202, determining a gray value of a target area;
it should be noted that the present invention can use the existing method to determine the gray-level value of the target area.
S203, determining a value obtained by adding the gray value and a preset gray value as a target gray value;
it should be noted that the gray difference between the watermark and the target area is the preset gray value. The invention can set the preset gray value according to the actual situation by the technical personnel, for example, the preset gray value can be set to 5, so that the watermark can be hidden in the target file when being stored in the target area.
It is understood that the present invention may also enable the watermark to be displayed in the target area in a fading manner when the watermark is stored in the target area through setting the preset gray value, and to be distinguished from the file content and/or the surrounding content in the target area.
S204, setting the gray value of the watermark as a target gray value;
after the target gray value is obtained, the gray value of the watermark can be set as the target gray value.
And S205, storing the watermark with the set gray value into the target area so as to enable the watermark to be hidden in the target area.
Specifically, after the gray value of the watermark is set as the target gray value, the watermark can be stored in the target area, so that the watermark can be hidden in the target file or can be displayed in the target area in a faded manner.
It should be noted that the invention hides the watermark in the target file by setting the gray value, so as to improve the security of the watermark and avoid the situation that the user perceives the watermark to be modified, thereby improving the security of the watermark protection.
It should be further noted that, in the process of determining the watermark hidden in the target file, the target gray value of the watermark may be determined according to the gray value of the target area and a preset gray value, and the file content with the gray value as the target gray value is displayed in the target file by setting a color value (for example, increasing the gray value or setting the gray value as a color value of a bright color), that is, the watermark may be displayed in the target file, and then the method may trace the source of the user according to the pixel group information in the watermark.
After the watermark is displayed in the target area, if the target area is a blank area, the watermark can be directly scanned to obtain the pixel group information in the watermark, and if the target area is an area containing file content, the invention can firstly extract the watermark by using the existing watermark extraction mode and then obtain the pixel group information in the watermark.
The information recording method provided by the embodiment can hide the watermark in the target file by setting the gray value, so that the confidentiality of the watermark can be improved, the condition that a user perceives the watermark to be modified is avoided, and the security of watermark protection is improved.
Based on the steps shown in fig. 1, the present embodiment also proposes another information recording method. In the method, before step S103, the present invention may further include step S301, in which:
s301, carrying out encryption operation on the pixel information of each pixel point in the pixel group information by using an encryption algorithm to obtain the encrypted pixel group information.
Specifically, the invention can use the encryption algorithm to perform encryption operation on the pixel information of each pixel point in the pixel group information after the pixel group information is obtained, encrypt the pixel group information, convert the encrypted pixel group information into the watermark and store the watermark in the target area, thereby improving the data confidentiality and the security of the pixel group information.
It should be noted that the present invention is not limited to specific types of encryption algorithms and encryption operation processes thereof. For example, the specific encryption operation process of a certain encryption algorithm used in the present invention may include: performing cubic operation on each data in the pixel information of each pixel point, for example, for a first pixel point, the method can perform cubic operation on the color value and each position coordinate in the pixel information of the first pixel point; for another example, the specific encryption operation process of a certain encryption algorithm used in the present invention may include: respectively obtaining the difference value between the first position coordinate and the second position coordinate in the pixel information of each pixel point, adding the difference value and the color value, and storing the added sum value as the value of third data (color value) into the pixel information; for another example, in the pixel information of each pixel point, the difference between the first coordinate value and the second coordinate value is stored in the first bit data of the pixel information, and the difference between the first coordinate value and the second coordinate value is stored in the second bit data of the pixel information.
At this time, in the method, step S103 may be:
a watermark is generated that includes at least the encrypted pixel group information.
Specifically, after the encrypted pixel group information is obtained, the encrypted pixel group information can be converted into a corresponding watermark and stored in the target area.
It should be noted that, when a user needs to be traced, the method and the device can determine the watermark stored in the target area, obtain the encrypted pixel group information stored in the watermark, then perform decryption operation on the obtained encrypted pixel group information by using a corresponding decryption algorithm, obtain corresponding pixel group information, and trace the user according to the pixel group information.
Optionally, the invention may determine the algorithm identification code for identifying the encryption algorithm after the pixel group information is encrypted by using the encryption algorithm, and then may convert the identification code and the encrypted pixel group information into the watermark together, so that when tracing is performed according to the watermark, a corresponding decryption algorithm may be determined according to the algorithm identification code included in the watermark, so as to decrypt the encrypted pixel group information in the watermark.
The information recording method provided by the embodiment can encrypt the pixel group information, convert the encrypted pixel group information into the watermark and store the watermark in the target area, and improve the data confidentiality and the security of the pixel group information.
Based on the steps shown in fig. 1, the present embodiment proposes another information recording method. In the method, a step S401 may further be included, in which:
s401, determining time information of a user for viewing a target file;
the time information may include information such as a time when the user starts to view the target file, a time length when the user views the target file, and a time when the user finishes viewing the target file.
The target file may be a confidential file that can only be viewed under an authorized condition. Specifically, the method and the device can start to record the corresponding time information when the user checks the target file, and can store the corresponding time information into the background database, so that technical personnel can check the historical browsing record of the target file in the database and determine whether the target file is checked by the user under the unauthorized condition.
At this time, step S103 may include:
a watermark is generated that includes pixel group information and temporal information.
Specifically, after the time information is obtained, the time information and the corresponding pixel group information are converted into the watermark and stored in the target area, and the watermark is identified through the time information, so that the watermark can contain the time information of the user for checking the target file, and therefore the watermark can be effectively screened according to the time information in the watermark during tracing, and the tracing efficiency of the user for checking the target file is improved.
The information recording method provided by the embodiment can record the time information of the target file viewed by the user, convert the time information and the pixel group information into the watermark and store the watermark in the target area, and can combine the historical browsing record of the target file in the database, so that the watermark can be effectively screened during tracing, and the tracing efficiency is improved.
Corresponding to the information recording method shown in fig. 1, the present embodiment proposes an information tracing method, which may include the following steps, as shown in fig. 2:
s501, determining a watermark in the target file, wherein the watermark is stored by any one of the information recording methods;
the method and the device can determine all watermarks from the target file when the user who checks the target file needs to be traced.
Specifically, when the watermark is hidden or faded and displayed in the target file, the watermark can be clearly displayed in the target file through setting the color value.
S502, obtaining pixel group information in the watermark;
specifically, the present invention can obtain corresponding pixel group information from each determined watermark.
When the watermark is stored in the blank area of the target file, the invention can directly scan the watermark to obtain the pixel group information in the watermark.
When the watermark is stored in the area containing the file content in the target file, the invention can extract the watermark from the target file in advance and then obtain the pixel group information in the watermark.
It should be noted that, when the watermark includes time information of the user viewing the target file, the invention can effectively screen the watermark according to the time information, and reduce the number of the watermarks to be scanned, thereby reducing the consumption of related resources.
S503, reshaping a target image corresponding to the pixel group information;
specifically, the invention can reshape the corresponding target image containing the human face according to the pixel group information.
S504, carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
Specifically, the invention can use the face recognition technology to perform face recognition on the target image, determine the user to which the face in the target image belongs, and trace the source of the user identity.
It should be noted that, after tracing the pixel group information in a certain watermark, if the user corresponding to the pixel group information is authorized personnel, the file content is not revealed, or the identity background is recorded, the watermark stored in the target file can be deleted, the data storage space of the target file for the watermark is increased, the number of watermarks to be determined in the next tracing is reduced, and the consumption of related resources is reduced.
The information tracing method provided by this embodiment can trace the source of the user viewing the target file according to the watermark stored in the target file by the information recording method, thereby effectively preventing the content of the target file from being leaked.
Based on the steps shown in fig. 2, the present embodiment provides another information tracing method, in which step S501 may include the following steps:
determining the content with the color value of the target color value in the target file as target content, wherein the target color value is the color value of the watermark;
and adjusting the color value of the target content so that the target content is clearly displayed in the target file.
Specifically, the invention can adjust the color value of the watermark in the target file, so that the watermark can be clearly displayed in the target file, the acquisition of pixel group information in the watermark is completed, and the user is traced according to the pixel group information.
The information tracing method provided by this embodiment can obtain a target image including a face of a user when the user views a target file, store face feature information of the user in the target image by using an information storage manner of pixel group information, convert the pixel group information into a watermark and store the watermark in the target file, thereby realizing recording of the face feature information of the user, and can obtain the watermark from the target file when the user needs to be traced, obtain the pixel group information from the watermark, trace the user according to the pixel group information, effectively determine the identity of the user, and prevent the target file from being leaked.
In correspondence with the method shown in fig. 1, the present embodiment proposes an information recording apparatus, as shown in fig. 3. The apparatus may include: a first obtaining unit 101, a second obtaining unit 102, a first generating unit 103, a first determining unit 104, and a first saving unit 105, wherein:
a first obtaining unit 101 configured to perform: obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
the target file may be a confidential file or a non-confidential file stored in the electronic device. The electronic device may be a mobile phone, a tablet computer, a desktop computer, or the like, which is not limited in the present invention.
Specifically, the file type of the target file may be a document, an image, and the like, which is not limited in the present invention.
A second obtaining unit 102 configured to perform: acquiring pixel group information of a target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
optionally, the pixel information of the pixel point may include position information of the pixel point, that is, a coordinate of the pixel point in the target image.
Optionally, the pixel information of the pixel point may include position information and color information of the pixel point.
A first generating unit 103 configured to perform: generating a watermark comprising at least pixel group information;
in the present invention, a watermark in which at least pixel group information is stored can be generated using a conventional watermarking method.
A first determining unit 104 configured to perform: determining a target area of a target file where a watermark is to be stored;
optionally, the target area may be a blank area in the target file.
A first saving unit 105 configured to perform: and storing the watermark into a target area, wherein the target color value of the watermark is determined according to the color value of the target area.
The information recording device provided in this embodiment may obtain a target image shot by a camera, where the target image includes a face of a user viewing a target file, obtains pixel group information of the target image, where the pixel group information includes pixel information of at least one pixel point in the target image, generates a watermark including at least the pixel group information, determines a target area in the target file where the watermark is to be stored, stores the watermark in the target area, and determines a target color value of the watermark according to a color value of the target area. The method and the device can store the face characteristic information of the user in the target image by obtaining the target image comprising the face of the user and using the information storage mode of the pixel group information, convert the pixel group information into the watermark and store the watermark in the target file, realize the recording of the face characteristic information of the user, are beneficial to tracing the identity of the user and prevent the content of the target file from being leaked.
Based on the schematic structural diagram shown in fig. 3, the present embodiment proposes another information recording apparatus. In the apparatus, the target file may be a gray file, and the first saving unit 105 may include: a second determining unit, a third determining unit, a fourth determining unit, a setting unit, and a second saving unit, wherein:
a second determination unit configured to perform: determining a target area of the watermark to be stored in the target file;
the target file may be a gray file whose color is gray. For example, when the target document is an image, the target document may be a grayscale image.
A third determination unit configured to perform: determining a gray value of the target area;
a fourth determination unit configured to perform: determining a value obtained by adding the gray value and a preset gray value as a target gray value;
a setting unit configured to perform: setting the gray value of the watermark as a target gray value;
a second saving unit configured to perform: and storing the watermark with the set gray value into the target area so as to enable the watermark to be hidden in the target area.
The information recording device provided by the embodiment can hide the watermark in the target file by setting the gray value, so that the confidentiality of the watermark can be improved, the condition that a user perceives the watermark to be modified is avoided, and the security of watermark protection is improved.
Based on the schematic structural diagram shown in fig. 3, the present embodiment provides another information recording apparatus, which may further include: an encryption unit;
an encryption unit configured to perform: before generating a watermark at least comprising pixel group information, carrying out encryption operation on the pixel information of each pixel point in the pixel group information by using an encryption algorithm to obtain encrypted pixel group information;
specifically, the invention can use the encryption algorithm to perform encryption operation on the pixel information of each pixel point in the pixel group information after the pixel group information is obtained, encrypt the pixel group information, convert the encrypted pixel group information into the watermark and store the watermark in the target area, thereby improving the data confidentiality and the security of the pixel group information.
A first generating unit 103 configured to perform: a watermark is generated that includes at least the encrypted pixel group information.
Specifically, after the encrypted pixel group information is obtained, the encrypted pixel group information can be converted into a corresponding watermark and stored in the target area.
Optionally, the invention may determine the algorithm identification code for identifying the encryption algorithm after the pixel group information is encrypted by using the encryption algorithm, and then may convert the identification code and the encrypted pixel group information into the watermark together, so that when tracing is performed according to the watermark, a corresponding decryption algorithm may be determined according to the algorithm identification code included in the watermark, so as to decrypt the encrypted pixel group information in the watermark.
The information recording device provided by the embodiment can encrypt the pixel group information, convert the encrypted pixel group information into the watermark and store the watermark in the target area, and improve the data confidentiality and the security of the pixel group information.
Based on the schematic structural diagram shown in fig. 3, the present embodiment provides another information recording apparatus, which may further include: a fifth determination unit;
a fifth determination unit configured to perform: determining time information of a user for viewing a target file;
the time information may include information such as a time when the user starts to view the target file, a time length when the user views the target file, and a time when the user finishes viewing the target file.
A first generating unit 103 configured to perform: a watermark is generated that includes pixel group information and temporal information.
Specifically, after the time information is obtained, the time information and the corresponding pixel group information are converted into the watermark and stored in the target area, and the watermark is identified through the time information, so that the watermark can contain the time information of the user for checking the target file, and therefore the watermark can be effectively screened according to the time information in the watermark during tracing, and the tracing efficiency of the user for checking the target file is improved.
The information recording device provided by the embodiment can record the time information of the target file viewed by the user, convert the time information and the pixel group information into the watermark and store the watermark in the target area, and can combine the historical browsing record of the target file in the database, so that the watermark can be effectively screened during tracing, and the tracing efficiency is improved.
Corresponding to the method shown in fig. 2, the present embodiment provides an information tracing apparatus, as shown in fig. 4, the apparatus may include: a sixth determining unit 201, a third obtaining unit 202, a reshaping unit 203, and an identifying unit 204, wherein:
a sixth determining unit 201 configured to perform: determining a watermark in the target file, wherein the watermark is stored by any one of the information recording methods;
the method and the device can determine all watermarks from the target file when the user who checks the target file needs to be traced.
Specifically, when the watermark is hidden or faded and displayed in the target file, the watermark can be clearly displayed in the target file through setting the color value.
A third obtaining unit 202 configured to perform: acquiring pixel group information in the watermark;
specifically, the present invention can obtain corresponding pixel group information from each determined watermark.
When the watermark is stored in the blank area of the target file, the invention can directly scan the watermark to obtain the pixel group information in the watermark.
When the watermark is stored in the area containing the file content in the target file, the invention can extract the watermark from the target file in advance and then obtain the pixel group information in the watermark.
It should be noted that, when the watermark includes time information of the user viewing the target file, the invention can effectively screen the watermark according to the time information, and reduce the number of the watermarks to be scanned, thereby reducing the consumption of related resources.
A reshaping unit 203 configured to perform: reshaping a target image corresponding to the pixel group information;
specifically, the invention can reshape the corresponding target image containing the human face according to the pixel group information.
An identifying unit 204 configured to perform: and carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
Specifically, the invention can use the face recognition technology to perform face recognition on the target image, determine the user to which the face in the target image belongs, and trace the source of the user identity.
It should be noted that, after tracing the pixel group information in a certain watermark, if the user corresponding to the pixel group information is authorized personnel, the file content is not revealed, or the identity background is recorded, the watermark stored in the target file can be deleted, the data storage space of the target file for the watermark is increased, the number of watermarks to be determined in the next tracing is reduced, and the consumption of related resources is reduced.
The information tracing device provided by this embodiment can trace the source of the user viewing the target file according to the watermark stored in the target file by the information recording method, thereby effectively preventing the content of the target file from being leaked.
Based on the schematic structural diagram shown in fig. 4, this embodiment provides another information tracing apparatus, in which the sixth determining unit 201 may include: a seventh determining unit and an adjusting unit;
a seventh determining unit configured to perform: determining the content with the color value of the target color value in the target file as target content, wherein the target color value is the color value of the watermark;
an adjustment unit configured to perform: and adjusting the color value of the target content so that the target content is clearly displayed in the target file.
Specifically, the invention can adjust the color value of the watermark in the target file, so that the watermark can be clearly displayed in the target file, the acquisition of pixel group information in the watermark is completed, and the user is traced according to the pixel group information.
The information tracing device provided by this embodiment can obtain a target image including a face of a user when the user views a target file, store face feature information of the user in the target image by using an information storage manner of pixel group information, convert the pixel group information into a watermark and store the watermark in the target file, thereby realizing recording of the face feature information of the user, and can obtain the watermark from the target file when the user needs to be traced, obtain the pixel group information from the watermark, trace the user according to the pixel group information, effectively determine the identity of the user, and prevent leakage of the target file.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An information recording method, comprising:
obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
acquiring pixel group information of the target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
generating a watermark including at least the pixel group information;
determining a target area of the target file in which the watermark is to be stored;
and storing the watermark into the target area, wherein the target color value of the watermark is determined according to the color value of the target area.
2. The method of claim 1, wherein the pixel information comprises position information and color information of a pixel point.
3. The method of claim 1, wherein the target file is a gray-scale file, wherein the storing the watermark in a target area in the target file, wherein a target color value of the watermark is determined according to a color value of the target area, comprises:
determining a target area in which the watermark is to be stored in the target file;
determining a gray value of the target area;
determining the value obtained by adding the gray value and a preset gray value as a target gray value;
setting the gray value of the watermark as the target gray value;
and storing the watermark with the set gray value into the target area so as to hide the watermark in the target area.
4. The method of claim 1, wherein prior to said generating a watermark including at least said pixel group information, said method further comprises:
performing encryption operation on the pixel information of each pixel point in the pixel group information by using an encryption algorithm to obtain encrypted pixel group information;
the generating of the watermark at least including the pixel group information includes:
and generating a watermark at least comprising the encrypted pixel group information.
5. The method of claim 1, wherein the target area is a blank area in the target file.
6. The method of claim 1, further comprising:
determining time information of the user for viewing the target file;
the generating of the watermark at least including the pixel group information includes:
and generating the watermark comprising the pixel group information and the time information.
7. An information tracing method is characterized by comprising the following steps:
determining a watermark in a target file, the watermark being a watermark stored by the information recording method of any one of claims 1 to 6;
obtaining pixel group information in the watermark;
reshaping a target image corresponding to the pixel group information;
and carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
8. The method of claim 7, wherein determining the watermark in the target file comprises:
determining the content with the color value of the target color value in the target file as target content, wherein the target color value is the color value of the watermark;
and adjusting the color value of the target content so that the target content is clearly shown in the target file.
9. An information recording apparatus, characterized by comprising: a first obtaining unit, a second obtaining unit, a first generating unit, a first determining unit and a first saving unit, wherein:
the first obtaining unit is configured to perform: obtaining a target image shot by a camera, wherein the target image comprises a face of a user viewing a target file;
the second obtaining unit is configured to perform: acquiring pixel group information of the target image, wherein the pixel group information comprises pixel information of at least one pixel point in the target image;
the first generation unit is configured to perform: generating a watermark including at least the pixel group information;
the first determination unit is configured to perform: determining a target area of the target file in which the watermark is to be stored;
the first saving unit is configured to perform: and storing the watermark into the target area, wherein the target color value of the watermark is determined according to the color value of the target area.
10. An information tracing apparatus, comprising: a sixth determining unit, a third obtaining unit, a reshaping unit and an identifying unit, wherein:
the sixth determining unit configured to perform: determining a watermark in a target file, the watermark being a watermark stored by the information recording method of any one of claims 1 to 6;
the third obtaining unit is configured to perform: obtaining pixel group information in the watermark;
the reshaping unit is configured to perform: reshaping a target image corresponding to the pixel group information;
the identification unit is configured to perform: and carrying out face recognition on the target image, and determining the user to which the face in the target image belongs.
CN202011570113.7A 2020-12-26 2020-12-26 Information recording and information tracing method and device Pending CN112598564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011570113.7A CN112598564A (en) 2020-12-26 2020-12-26 Information recording and information tracing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011570113.7A CN112598564A (en) 2020-12-26 2020-12-26 Information recording and information tracing method and device

Publications (1)

Publication Number Publication Date
CN112598564A true CN112598564A (en) 2021-04-02

Family

ID=75202336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011570113.7A Pending CN112598564A (en) 2020-12-26 2020-12-26 Information recording and information tracing method and device

Country Status (1)

Country Link
CN (1) CN112598564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265567B (en) * 2022-02-25 2022-06-10 北京辰光融信技术有限公司 Watermark printing method, printing equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604137A (en) * 2004-11-03 2005-04-06 上海大学 Lossless information concealing method based on gray scale adjustment
CN107133906A (en) * 2017-04-28 2017-09-05 安徽四创电子股份有限公司 A kind of video source tracing method based on digital watermark
CN107256530A (en) * 2017-05-19 2017-10-17 努比亚技术有限公司 Adding method, mobile terminal and the readable storage medium storing program for executing of picture watermark
CN109165958A (en) * 2018-08-17 2019-01-08 珠海丹德图像技术有限公司 A kind of commodity traceability system and method based on image information safe practice
CN109190340A (en) * 2018-09-13 2019-01-11 中国农业银行股份有限公司 A kind of webpage digital watermarking generates, identification, Method of printing and device
CN110113535A (en) * 2019-05-14 2019-08-09 软通智慧科技有限公司 End message source tracing method, device, terminal and medium
CN111275602A (en) * 2020-01-16 2020-06-12 深圳市广道高新技术股份有限公司 Face image security protection method, system and storage medium
CN111680273A (en) * 2020-05-21 2020-09-18 北京北信源软件股份有限公司 Watermark embedding method, device, electronic equipment and readable storage medium
CN111767583A (en) * 2020-07-02 2020-10-13 创新链科技有限公司 Block chain-based enterprise internal information security guarantee method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604137A (en) * 2004-11-03 2005-04-06 上海大学 Lossless information concealing method based on gray scale adjustment
CN107133906A (en) * 2017-04-28 2017-09-05 安徽四创电子股份有限公司 A kind of video source tracing method based on digital watermark
CN107256530A (en) * 2017-05-19 2017-10-17 努比亚技术有限公司 Adding method, mobile terminal and the readable storage medium storing program for executing of picture watermark
CN109165958A (en) * 2018-08-17 2019-01-08 珠海丹德图像技术有限公司 A kind of commodity traceability system and method based on image information safe practice
CN109190340A (en) * 2018-09-13 2019-01-11 中国农业银行股份有限公司 A kind of webpage digital watermarking generates, identification, Method of printing and device
CN110113535A (en) * 2019-05-14 2019-08-09 软通智慧科技有限公司 End message source tracing method, device, terminal and medium
CN111275602A (en) * 2020-01-16 2020-06-12 深圳市广道高新技术股份有限公司 Face image security protection method, system and storage medium
CN111680273A (en) * 2020-05-21 2020-09-18 北京北信源软件股份有限公司 Watermark embedding method, device, electronic equipment and readable storage medium
CN111767583A (en) * 2020-07-02 2020-10-13 创新链科技有限公司 Block chain-based enterprise internal information security guarantee method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265567B (en) * 2022-02-25 2022-06-10 北京辰光融信技术有限公司 Watermark printing method, printing equipment and storage medium

Similar Documents

Publication Publication Date Title
US8867741B2 (en) Mobile field level encryption of private documents
CN107239713B (en) Sensitive content data information protection method and system
EP1961205B1 (en) Methods and apparatus for securely displaying digital images
US10970804B2 (en) Image processing device and image processing method for selecting regions based on gradiation for embedding a watermark
JP2006314125A (en) Processing method and system for password of digital image
WO2016188154A1 (en) Method and device for image processing
CN112529757B (en) Screen information protection method, device, computer equipment and readable storage medium
CN111860727B (en) Two-dimensional code generation method, two-dimensional code verification device and computer readable storage medium
CN110659512A (en) Picture management method, device, terminal and storage medium
CN110610456A (en) Imaging system and video processing method
WO2019114614A1 (en) Original photo identification method and system
CN112598564A (en) Information recording and information tracing method and device
CN114880687A (en) Document security protection method and device, electronic equipment and storage medium
KR101809086B1 (en) System for Suppling and Authenticating Digital Contents using Real Time Image Watermarking Technic
US20200026866A1 (en) Method and device for covering private data
CN110853042B (en) Automatic secret-involved vector graph segmentation system and method based on image recognition
CN109672804B (en) Image encryption and decryption method and system
CN111860726B (en) Two-dimensional code display method, verification method, device and computer readable storage medium
CN110955889A (en) Electronic document tracing method based on digital fingerprints
CN112883951B (en) Method, system and storage medium for protecting sensitive content
CN114500104A (en) Data desensitization method, system, computer device and storage medium
EP1116176B1 (en) Information card
CN113177876A (en) Picture processing method and device and electronic equipment
WO2021012502A1 (en) Screenshot information control method, device, computer apparatus, and storage medium
KR102347137B1 (en) Screen data leakage prevention apparatus and method

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