Image processing method and device, storage medium and electronic device
By injecting a preset format identifier code into the screenshot, the problem of watermarks being easily erased is solved, thus improving information security.
Patent Information
- Application Number
- CN202211338550.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2042-10-28
AI Technical Summary
In existing technologies, when internal corporate information is leaked, the watermark information superimposed on the image generated by the screenshot is easily discovered and erased by the person who leaked the information, resulting in low information security.
During the screenshot operation, the user account identifier is converted into a preset format identifier code and injected into the pixel information of the initial screenshot, especially in the pixels of the image border or high-contrast areas, to form the target screenshot.
This improves information security, prevents those responsible for leaks from discovering and erasing account identifiers, and ensures that the source of leaked information can be traced.
Smart Images

Figure CN115689851B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of information security, and particularly relates to an image processing method, an image processing device, a computer storage medium and an electronic device. BACKGROUND
[0002] With the rapid development of Internet technology and the popularity of digital office, important confidential information is gradually stored in the computer in the form of electronic documents. However, this storage method increases the risk of internal personnel leaking information to the outside through screenshots or photographs, and it is difficult for enterprises to trace the source of information leakage.
[0003] At present, a watermark information visible to human eyes is usually superimposed in the image generated by the screenshot to trace the source of the leakage information. However, the above-mentioned tracking method of the source of the leakage information is easy to be found and erased by the person who leaks the information.
[0004] Therefore, the current information security is low. SUMMARY
[0005] The present disclosure provides an image processing method, an image processing device, a computer storage medium and an electronic device, so that the added account identifier representing the user identity information is not easy to be found and erased by the person who leaks the information, thereby improving the information security.
[0006] In a first aspect, an embodiment of the present disclosure provides an image processing method, comprising: in response to a screenshot operation of a user on a current interface, determining an initial screenshot according to the screenshot operation; converting an account identifier of a user account corresponding to the screenshot operation into an identifier code in a preset format; and injecting the identifier code into pixel information of the initial screenshot to obtain a target screenshot.
[0007] In an optional embodiment of the present disclosure, converting the account identifier of the user account corresponding to the screenshot operation into the identifier code in the preset format comprises: performing word segmentation on the account identifier to obtain a plurality of segmented words; and converting the plurality of segmented words into the identifier code in the preset format respectively.
[0008] In an optional embodiment of the present disclosure, before converting the account identifier of the user account corresponding to the screenshot operation into the identifier code in the preset format, the method comprises: searching for an account identifier corresponding to a target device identifier from a pre-configured correspondence relationship list of device identifiers and account identifiers; and wherein the target device identifier is a device identifier of a target device responding to the screenshot operation.
[0009] In an optional embodiment of the present disclosure, injecting the identifier code into the pixel information of the initial screenshot to obtain the target screenshot comprises: adding an image border of a preset width to an edge of the initial screenshot; and injecting the identifier code into pixel information of the image border to obtain a feature border; and wherein the feature border and the initial screenshot constitute the target screenshot.
[0010] In an optional embodiment of the present disclosure, the feature frame is obtained by injecting the identification code into the pixel information of the image frame, including: determining the number of code bits of the identification code; determining the perimeter of the pixel points of the image frame; determining the target coordinate position in the image frame for injecting the identification code according to the perimeter of the pixel points and the number of code bits; and injecting the identification code into the pixel information of the pixel points corresponding to the target coordinate position to obtain the feature frame.
[0011] In an optional embodiment of the present disclosure, the target coordinate position in the image frame for injecting the identification code is determined according to the perimeter of the pixel points and the number of code bits, including: determining the initial coordinate interval between the coordinate positions for injecting the identification code according to the ratio of the perimeter of the pixel points to the number of code bits; performing down-round processing on the initial coordinate interval to obtain the target coordinate interval; and determining the target coordinate position in the image frame for injecting the identification code according to the target coordinate interval from the preset starting point.
[0012] In an optional embodiment of the present disclosure, the pixel points of the image frame are transparent pixels.
[0013] In an optional embodiment of the present disclosure, the target screenshot is obtained by injecting the identification code into the pixel information of the preset region in the initial screenshot.
[0014] In an optional embodiment of the present disclosure, the target screenshot is obtained by injecting the identification code into the pixel information of the preset region in the initial screenshot, including: determining the image region with a contrast greater than a preset contrast in the initial screenshot as the preset region; determining a current pixel point as a target pixel point if the difference between the pixel value of the current pixel point and the pixel value of an adjacent pixel point in the preset region is greater than a preset difference; and injecting the identification code into the pixel information of the target pixel point to obtain the target screenshot.
[0015] In a second aspect, an embodiment of the present disclosure provides an image processing device, including: a screenshot determining module configured to determine an initial screenshot according to a screenshot operation of a user in response to the screenshot operation of the user on a current interface; an identification converting module configured to convert an account identification of a user account corresponding to the screenshot operation into an identification code in a preset format; and an identification injecting module configured to inject the identification code into pixel information of the initial screenshot to obtain a target screenshot.
[0016] In an optional embodiment, the identification converting module is specifically configured to perform word segmentation processing on the account identification to obtain a plurality of segmented words; and convert the plurality of segmented words into identification codes in the preset format respectively.
[0017] In an optional embodiment, the identifier acquisition module is specifically used to search for the account identifier corresponding to the target device identifier from a pre-configured list of correspondences between device identifiers and account identifiers; wherein, the target device identifier is the device identifier of the target device responding to the screenshot operation.
[0018] In an optional embodiment, the identifier injection module is specifically used to add an image border of a preset width to the edge of the initial screenshot; inject the identifier encoding into the pixel information of the image border to obtain a feature border; wherein, the feature border and the initial screenshot constitute the target screenshot.
[0019] In an optional embodiment, the identifier injection module is specifically used to determine the number of bits of the identifier code; determine the pixel perimeter of the image border; determine the target coordinate position for injecting the identifier code into the image border based on the pixel perimeter and the number of bits of the code; and inject the identifier code into the pixel information of the pixel corresponding to the target coordinate position to obtain the feature border.
[0020] In an optional embodiment, the identifier injection module is specifically used to determine the initial coordinate interval between the coordinate positions of the injected identifier code based on the ratio of the pixel perimeter to the number of encoding bits; to round down the initial coordinate interval to obtain the target coordinate interval; and to determine the target coordinate positions of the injected identifier code in the image border sequentially based on the target coordinate interval, starting from a preset starting point.
[0021] In an optional embodiment, the identifier injection module is specifically used for pixels on the image border that are transparent pixels.
[0022] In an optional embodiment, the identifier encoding is injected into the pixel information of a preset area in the initial screenshot to obtain the target screenshot.
[0023] In an optional embodiment, the identifier injection module is specifically used to determine the image area in the initial screenshot whose contrast is greater than a preset contrast as the preset area; if the difference between the pixel value of the current pixel and the pixel value of the adjacent pixel in the preset area is greater than a preset difference, then the current pixel is determined to be the target pixel; the identifier code is injected into the pixel information of the target pixel to obtain the target screenshot.
[0024] Thirdly, one embodiment of this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the image processing method described above.
[0025] Fourthly, one embodiment of this disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the image processing method described above by executing the executable instructions.
[0026] The technical solution disclosed herein has the following beneficial effects:
[0027] The aforementioned image processing method responds to a user's screenshot operation on the current interface, determines the initial screenshot based on the screenshot operation, converts the account identifier corresponding to the screenshot operation into a preset format identifier code, and injects the identifier code into the pixel information of the initial screenshot to obtain the target screenshot. This method can determine the identifier code based on the pixel information of the target screenshot when tracing the source of leaked information, thereby deducing the account identifier to quickly identify the leaker. Because the account identifier is integrated into the pixel information of the target screenshot and is not displayed in the target screenshot, it is not easily discovered by the leaker; furthermore, the leaker cannot determine the pixel location where the account identifier is stored, nor can they remove the pixel information by erasing or smearing. This solves the technical problem in existing technologies where watermark information used to trace the source of leaked information is easily discovered and erased by the leaker, resulting in low security and achieving a significant improvement in information security.
[0028] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0029] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0030] Figure 1 This illustration schematically depicts an application scenario of an image processing method according to this exemplary embodiment.
[0031] Figure 2 A flowchart illustrating an image processing method in this exemplary embodiment is shown schematically.
[0032] Figure 3 This schematically illustrates a flowchart of determining a target screenshot in this exemplary embodiment;
[0033] Figure 4 This illustration schematically shows a method for obtaining a target screenshot in this exemplary embodiment;
[0034] Figure 5 This diagram illustrates a method for determining the coordinate position of a target in this exemplary embodiment.
[0035] Figure 6 This schematic diagram illustrates an injection identifier encoding method in this exemplary embodiment.
[0036] Figure 7 a flow chart illustrating another process of determining a target screenshot in the present exemplary embodiment;
[0037] Figure 8 a schematic diagram illustrating another process of obtaining a target screenshot in the present exemplary embodiment;
[0038] Figure 9 a flow chart illustrating a whole process of image processing in the present exemplary embodiment;
[0039] Figure 10 a schematic diagram illustrating a structure of an image processing apparatus in the present exemplary embodiment;
[0040] Figure 11 a schematic diagram illustrating another structure of an image processing apparatus in the present exemplary embodiment;
[0041] Figure 12 a schematic diagram illustrating a structure of an electronic device in the present exemplary embodiment. DETAILED DESCRIPTION
[0042] Example embodiments now will be described more fully hereinafter with reference to the accompanying drawings. Example embodiments, however, can be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example embodiments to those skilled in the art. Like reference numerals refer to like elements throughout. The terminology used in the description presented herein is not intended to be interpreted in any specific and / or particular manner. The terms "exemplary" and / or "example" are used merely for
[0043] Further, the accompanying drawings are included to provide a further understanding of principles of the present disclosure and no limitation thereto is intended. The drawings illustrate exemplary embodiments of the present disclosure and a forgoing discussion, and thus, no limitation thereto is intended. Identical reference numerals in the drawings refer to elements having the same function in different aspects of the disclosure and thus, their repetitive description will be omitted. Some of the components shown in the drawings are exaggerated, for the sake of clarity, and thus, the size of each component can not be in accordance with the actual one. It should also be noted that the exemplary views are not necessarily drawn to scale and that the dimensions of some of the elements have been exaggerated for the sake of clarity.
[0044] The flowchart shown in the drawing is only an example and does not necessarily include all the steps. For example, some steps can be further divided, and some steps can be combined or partially combined, so the actual execution order can be changed according to the actual situation.
[0045] The image processing method provided by the example embodiment of the present disclosure can be applied to an application scenario of tracking a source of leaked information, and in particular, an application scenario of tracking a source of leaked information based on a screenshot. For example, an enterprise intercepts an image containing confidential information of the company. The image is an image intercepted by a third-party screenshot software used by an employee. In order to effectively prevent the leakage of business sensitive information and protect the safety of the company's business data assets, the source of the leaked information can be traced.
[0046] Currently, a watermark with low contrast is usually superimposed in the background of a screenshot generated based on a screenshot operation to track the source of leaked information. However, the superimposed watermark is easy to be found and erased by the person who leaks the information, so it is difficult to track the source of the leak, resulting in a low safety factor of information protection.
[0047] The example embodiment of the present disclosure considers the above problem and proposes an image processing method. The image processing method can detect a screenshot operation performed by a user, determine an initial screenshot based on the screenshot operation, convert an account identifier of a user account corresponding to the screenshot operation into an identifier code in a preset format, and thus inject the identifier code into pixel information of the initial screenshot. This method injects the identifier code corresponding to the account identifier into the pixel information of the initial screenshot, so that the account identifier cannot be viewed in the screenshot, and the person who leaks the information cannot determine the position of the identifier code injected by the account identifier, so the identifier cannot be removed by erasing and smearing. Thus, the technical problem of low information security factor caused by superimposing visible watermark information in the background of the initial screenshot in some technologies is avoided.
[0048] Figure 1 An application scenario diagram of an image processing method provided by the example embodiment of the present disclosure is shown. As shown in the application scenario diagram, the application scenario diagram includes a terminal device 100. Figure 1 In the above example application scenario, the terminal device 100 can be, for example, a personal computer, a server, a personal digital assistant (PDA), a notebook computer, or any other computing device with networking function.
[0049] The terminal device 100 includes an image processing unit 101 and an image display device 102. The image display device 102 can be a display screen integrated with the terminal device 100, such as the display screen of a notebook computer. Alternatively, the image display device 102 can be a display screen connected to the terminal device 100, such as a desktop computer including a server and a connected display screen.
[0050] The image display device 102 can display an image, and a user can perform a screenshot operation on the displayed interface to form a screenshot. The image processing unit 101 determines an initial screenshot according to the screenshot operation in response to the screenshot operation on the current interface. The image processing unit 101 converts the obtained account identifier into an identifier code in a preset format, and injects the identifier code into the pixel information of the initial screenshot, thereby obtaining a target screenshot.
[0051] It should be understood that, in the application scenarios shown in FIG. 1, Figure 1 In the application scenarios shown in FIG. 1, the image processing unit 101 and the display screen 102 can be connected through a wired or wireless manner, and the specific connection manner is not limited in any way.
[0052] The image processing method will be described below by taking the terminal device 100 as an execution subject and taking the terminal device 100 as an example.
[0053] Figure 2 A flowchart of an image processing method in the example embodiment is schematically shown. Referring to FIG. 2, Figure 2 The image processing method provided by the example embodiment of the disclosure includes the following steps S201-S203:
[0054] In step S201, an initial screenshot is determined according to a screenshot operation in response to the screenshot operation of a user on a current interface.
[0055] The screenshot operation can be a screenshot operation using a screenshot software of a software development kit (SDK) embedded in the terminal device, or a screenshot operation started using a third-party screenshot software. The disclosure does not limit the specific screenshot method used on the terminal device in any way.
[0056] In step S202, an account identifier of a user account corresponding to the screenshot operation is converted into an identifier code in a preset format.
[0057] The account identifier is unique identifier information of the user, such as an employee ID, a mobile phone number, an email address, an ID card number, a name, an account, and the like. The account identifier can also be an IP address of a terminal device used by the user to perform the screenshot operation.
[0058] The identifier code in the preset format can be a specific character encoding method, such as ASCII (American Standard Code for Information Interchange), Unicode encoding, UTF-8, and the like.
[0059] According to some embodiments of the present disclosure, the obtained account identifier can be converted into an ASCII code value. The account identifier is generally composed of characters such as capital letters (A-Z), lowercase letters (a-z), special characters (-_!@#%^), numbers (0-9), etc. Since the ASCII code value specifies the encoding of 128 characters (i.e., using the low 7 bits of a byte, the numerical range is 0-127), and the color channel of a pixel in an image is distributed according to brightness, the numerical range is 0-255. In order to ensure that the converted identifier code can be injected into the color channel of the image, the account identifier can be converted into the corresponding ASCII code value.
[0060] Each pixel point in the initial screenshot contains three color channels, R (Red), G (Green), and B (Blue), and each value of the three color channels is between 0 and 255.
[0061] In step S203, the identifier code is injected into the pixel information of the initial screenshot to obtain a target screenshot.
[0062] For example, if the screenshot operation is performed by using the SDK screenshot software inside the terminal device, the image processing method provided by the present disclosure can be added in the corresponding program. If the screenshot operation is started by using a third-party screenshot software, the identifier code can be injected into the pixel information of the initial screenshot to obtain a target screenshot after the user determines to generate the initial screenshot.
[0063] In the technical solution provided by some embodiments of the present disclosure, in response to a screenshot operation on a current interface, an initial screenshot is determined according to the screenshot operation; an obtained account identifier is converted into an identifier code in a preset format; and the identifier code is injected into the pixel information of the initial screenshot to obtain a target screenshot. This method can determine the identifier code according to the pixel information of the target screenshot when tracing the source of the leaked information, thereby quickly locking the person who leaked the information. Since the account identifier is integrated into the pixel information of the target screenshot and is not displayed in the target screenshot, it is not easy to be discovered by the person who leaked the information. Moreover, the person who leaked the information cannot determine the pixel position where the account identifier is stored, and cannot remove the pixel information by erasing or smearing. Thus, the technical problem of low security coefficient caused by the fact that the watermark information used to trace the source of the leaked information is easy to be discovered and erased by the person who leaked the information is solved, and the technical effect of improving the information security coefficient is achieved.
[0064] In an exemplary embodiment of the present disclosure, before converting the account identifier corresponding to the screenshot operation of a user account into an identifier code in a preset format, the account identifier corresponding to the target device identifier is searched from a pre-configured list of correspondence between device identifiers and account identifiers.
[0065] The target device identifier is the device identifier of the target device responding to the screenshot operation. The list of the correspondence between the device identifier and the account identifier can be stored in the server of the enterprise or configured in the terminal device.
[0066] According to some embodiments of the present disclosure, if the list of correspondence is configured in the terminal device, the terminal device can determine the target device identifier of the terminal device when responding to the screenshot operation, and then find the account identifier corresponding to the device identifier of the terminal device according to the list of correspondence between the device identifier and the account identifier, so as to quickly determine the user information.
[0067] It can be understood that, generally, in the local area network of a company, each user is assigned a specific terminal device, and the device identifier of the terminal device has a one-to-one correspondence with the account identifier. Therefore, the terminal device can only store the account identifier corresponding to the terminal device, so that the account identifier can be directly determined when responding to the screenshot operation. This method can save memory resources and computing resources.
[0068] According to some embodiments of the present disclosure, if the list of correspondence is configured in the server of the enterprise, the terminal device can send the target device identifier of the terminal device to the server of the enterprise when responding to the screenshot operation. The server finds the account identifier corresponding to the target device identifier according to the list of correspondence between the device identifier and the account identifier, and then sends the account identifier to the terminal device.
[0069] The user performing the screenshot operation can be quickly determined through the terminal device and the account identifier corresponding to the terminal device, so that the account identifier can be quickly and accurately obtained, and the identification code converted from the account identifier can be injected into the initial screenshot, so as to facilitate tracing the source of the leaked information.
[0070] In the exemplary embodiments of the present disclosure, when converting the account identifier of the user account corresponding to the screenshot operation into the identification code in the preset format in step S202, the account identifier can be subjected to word segmentation to obtain a plurality of segmented words, and the plurality of segmented words can be converted into the identification code in the preset format.
[0071] Generally, the account identifier is composed of a plurality of character identifiers in sequence, for example, the account identifier is the employee ID: GG10555, and the account identifier is the user name: ZhangSan. Therefore, when converting the account identifier into the identification code in the preset format, the account identifier can be subjected to word segmentation and stored in the preset data format. For example, the employee ID: GG10555 is subjected to word segmentation and stored in the form of an array to obtain [G, G, 1, 0, 5, 5, 5].
[0072] For example, [G, G, 1, 0, 5, 5, 5] can be converted into ASCII code values, i.e., [103, 103, 49, 48, 53, 53, 53], respectively.
[0073] By performing word segmentation on the account identifier and converting the account identifier into preset format identification codes respectively, the account identifier can be split, so that the identification codes can be stored in the pixel information of different pixel points of the initial screenshot subsequently. This method makes it difficult for a leaker to obtain and erase the identification codes, ensures that the source of information leakage can be traced, and further improves the information security coefficient.
[0074] The following will be described in detail in combination with Figure 3 The process of determining the pixel points into which the identification codes are to be injected from the initial screenshot will be described in detail.
[0075] Figure 3 A flowchart for obtaining a target screenshot in the present exemplary embodiment is schematically shown. Referring to Figure 3 In an optional embodiment of the present disclosure, the process of injecting the identification codes into the pixel information of the initial screenshot to obtain the target screenshot in step S203 can include the following steps S301-S302.
[0076] In step S301, an image border of a preset width is added to the edge of the initial screenshot.
[0077] For example, the initial screenshot is composed of a plurality of pixel points. For example, the initial screenshot is a rectangular region of 50*50, and the initial screenshot is composed of 50*50=250 pixel points. The image border of the preset width also contains a specific number of pixel points.
[0078] In step S302, the identification codes are injected into the pixel information of the image border to obtain a feature border.
[0079] The feature border and the initial screenshot constitute the target screenshot.
[0080] Figure 4 A schematic diagram for obtaining a target screenshot in the present exemplary embodiment is schematically shown. As shown in Figure 4 As shown in (a), the initial screenshot is composed of 50*50 pixel points, and an image border of one pixel point is added to the edge pixel points of the initial screenshot. At this time, the screenshot composed of the initial screenshot and the image border is 52*52 pixel points.
[0081] As shown in Figure 4 (b), if the identification codes are composed of 8 characters, the 8-bit identification codes are injected into the pixel information of the image border respectively to obtain a feature border. At this time, Figure 4The initial screenshot in (b) and the feature frame jointly constitute a 52*52 pixel point target screenshot, and the target screenshot contains the identification code.
[0082] By adding the image frame with a preset width to the edge of the initial screenshot to inject the identification code into the image frame, the account identification corresponding identification code can be injected into the pixel points of the screenshot, so that the enterprise related personnel can timely trace the information leakage source when discovering the private information leakage. Moreover, injecting the account identification corresponding identification code into the pixel points of the screenshot can avoid the leakage personnel from discovering and erasing, thereby facilitating the tracing of the information leakage source and further improving the security factor of confidential information.
[0083] In the example embodiment of the present disclosure, the pixel points of the image frame can be configured as transparent pixels.
[0084] The transparent pixel refers to a pixel of a pixel point being transparent.
[0085] For example, each pixel point of the image frame can be an RGBA color space model composed of an RGB color space and an alpha channel (Alpha, A), and the transparent pixel is RGBA(0, 0, 0, 0).
[0086] Configuring the pixel points of the image frame as transparent pixels facilitates the injection of the identification code into the pixel points of the image frame, which is convenient for calculation, so that the information leakage source can be timely traced when discovering the private information leakage.
[0087] In the example embodiment of the present disclosure, when the identification code is injected into the pixel information of the image frame to obtain the feature frame in step S302, the number of code bits of the identification code can be determined; the perimeter of the pixel points of the image frame is determined; the target coordinate position for injecting the identification code in the image frame is determined according to the perimeter of the pixel points and the number of code bits; and the identification code is injected into the pixel information of the pixel points corresponding to the target coordinate position to obtain the feature frame.
[0088] The number of code bits of the identification code is the total number of bits of the identification code. For example, for an account identification [G, G, 1, 0, 5, 5, 5], the corresponding identification code is [103, 103, 49, 48, 53, 53, 53], and the number of code bits is 7. Since the image frame is added to the outer layer of the initial screenshot, the perimeter of the pixel points of the image frame is actually the same as the total number of the outermost pixel points of the target screenshot. For example, for an initial screenshot with 50*50 pixel points and an image frame with a width of 1 pixel point, the final pixel perimeter of the image frame is (52+52+52+52) = 208 pixel points.
[0089] The target coordinate position is a coordinate value in the image frame, so that the identification code is injected into the pixel information of the pixel points corresponding to the target coordinate position.
[0090] For example, the target coordinate position for injecting the identification code in the image border can be determined according to the determined pixel point perimeter and the code bit number.
[0091] The target coordinate position for injecting the identification code in the image border can be determined according to the pixel point perimeter and the code bit number, so that the coordinate position for injecting the identification code can be quickly determined, and when the source of the leaked information is subsequently tracked, the identification code can be deduced according to the pixel point perimeter and the code bit number of the target screenshot, and then the person who leaked the information can be tracked.
[0092] According to some embodiments of the present disclosure, an image border with a preset width can be added outside the initial screenshot to obtain an intermediate screenshot as shown in FIG. 8(a). Figure 4 The edge pixel points of the intermediate screenshot are determined, the pixel information of the identification code is injected into the edge pixel points, and a target screenshot is obtained.
[0093] When the target edge pixel point for injecting the identification code is determined, the pixel point perimeter of the intermediate screenshot and the code bit number of the identification code can be determined, so that the target edge pixel point can be determined according to the pixel point perimeter of the intermediate screenshot and the code bit number of the identification code.
[0094] This process facilitates quick acquisition of the pixel point perimeter to determine the target edge pixel point, and improves the efficiency of injecting the identification code to obtain the target screenshot.
[0095] In the above process of determining the target coordinate position for injecting the identification code in the image border according to the pixel point perimeter and the code bit number, the target coordinate positions can be uniformly distributed in the pixel points of the image border.
[0096] In an exemplary embodiment of the present disclosure, an initial coordinate interval between the coordinate positions for injecting the identification code is determined according to the ratio of the pixel point perimeter to the code bit number; the initial coordinate interval is subjected to a floor processing to obtain a target coordinate interval, and the target coordinate position for injecting the identification code in the image border is determined according to the target coordinate interval from a preset starting point.
[0097] The coordinate interval is the interval between the coordinates of the pixel points. For example, if the coordinate interval is 20, the coordinate of the pixel point at the top left corner of the image border is [0, 0] and the pixel point of the image border has a side length of 51, then the target coordinate position adjacent to the pixel point [0, 0] is [20, 0].
[0098] The down-round processing is a process of data processing using an integral algorithm, for example, the result of 204 / 7 is about 29.14, and the down-round processing is to directly remove the numerical value after the decimal point, that is, the result is 29. The down-round processing of the initial coordinate interval can prevent numerical overflow, thereby preventing exceeding the set coordinate position of the pixel point.
[0099] In Figure 4 the target screenshot shown in the figure, Figure 5 The schematic diagram of determining the target coordinate position in the present exemplary embodiment is schematically shown. As Figure 5 shown, assuming that the identification code is [G, G, 1, 0, 5, 5, 5], the number of code bits is 7, and the pixel point perimeter of the image frame is 52*4=208 pixel points, then the coordinate interval is the result of 208 / 7 and down-round, that is, 29.
[0100] Taking the upper left corner as the origin, the target coordinate position is determined clockwise, and the coordinate array of the target coordinate position is (0, 0), (29, 0), (52, 6), (52, 35), (40, 52), (11, 52), and (0, 34), respectively. Figure 5
[0101] After determining the target coordinate position, the identification code can be injected into the pixel information of the pixel point corresponding to the target coordinate position, and the target screenshot containing the identification code is obtained.
[0102] Figure 6 is Figure 5 schematically illustrated on the basis of the determined target coordinate position.
[0103] Figure 6 The schematic diagram of injecting the identification code in the present exemplary embodiment is schematically shown. Assuming that the account identification is [G, G, 1, 0, 5, 5, 5], the identification code (ASCII code value) is converted to [103, 103, 49, 48, 53, 53, 53], and each pixel point of the newly added image frame is configured as (0, 0, 0, 0).
[0104] As Figure 6 As shown, the pixel value of the target pixel point with the position coordinate of [0, 0] is updated from (0, 0, 0, 0) to (103, 0, 0, 0); the pixel value of the target pixel point with the position coordinate of [29, 0] is updated from (0, 0, 0, 0) to (103, 0, 0, 0); the pixel value of the target pixel point with the position coordinate of [52, 6] is updated from (0, 0, 0, 0) to (49, 0, 0, 0); the pixel value of the target pixel point with the position coordinate of [52, 35] is updated from (0, 0, 0, 0) to (48, 0, 0, 0); the pixel value of the target pixel point with the position coordinate of [40, 52] is updated from (0, 0, 0, 0) to (53, 0, 0, 0); the pixel value of the target pixel point with the position coordinate of [11, 52] is updated from (0, 0, 0, 0) to (53, 0, 0, 0); and the pixel value of the target pixel point with the position coordinate of [0, 34] is updated from (0, 0, 0, 0) to (53, 0, 0, 0).
[0105] According to some embodiments of the present disclosure, the identification code is injected into the pixel information of the initial screenshot to obtain the target screenshot. In addition to the above-mentioned image frame with a preset width added to the periphery of the initial screenshot and the target coordinate position determined in the image frame, the target coordinate position can also be determined inside the initial screenshot. That is, the identification code is injected into the pixel information of a preset region in the initial screenshot to obtain the target screenshot.
[0106] The preset region is inside the initial screenshot.
[0107] Injecting the identification code into the pixel information of the preset region in the initial screenshot does not require adding additional pixel points, so as to inject the identification code into the pixel points inside the initial screenshot, thereby simplifying the image processing process and further facilitating the tracing of the source of the leaked information and improving the information security factor.
[0108] The following will be described in detail in combination with Figure 7 The process of determining the target coordinate position inside the initial screenshot will be described in detail. Figure 7 A flowchart of another process of obtaining the target screenshot in the present exemplary embodiment is schematically shown.
[0109] Referring to Figure 7 In an optional embodiment of the present disclosure, the step S203 of injecting the identification code into the pixel information of the initial screenshot to obtain the target screenshot includes the following steps S701-S704.
[0110] In step S701, an image region with a contrast greater than a preset contrast in the initial screenshot is determined as a preset region.
[0111] In step S702, the pixel values of the pixel points in the preset region are obtained.
[0112] Step S703: If the difference between the pixel value of the current pixel and the pixel value of the adjacent pixel is greater than a preset difference, then the current pixel is determined to be the target pixel.
[0113] For example, if the difference between the pixel value of the current pixel and the pixel value of the adjacent pixel is greater than a preset difference, it is determined that the current pixel value and the pixel value of the adjacent position have a large visual difference.
[0114] Selecting the aforementioned pixels as target pixels can weaken the visual characteristics of the human eye. Specifically, if a region with low contrast is selected, for example, where the color channels all display green (0, 255, 0), injecting an identifier code into any pixel (0, 255, 0) in that region will change the color value of the image, for example, turning green into purple. This process is easily discovered and obscured by those who want to leak information.
[0115] Areas with a contrast greater than the preset contrast include color transition areas. For example, pixels where the red area (255, 0, 0) meets the green area (0, 255, 0) often have transition pixels, such as (220, 220, 0). In this case, targeting pixels with a large visual difference from their neighbors makes them less likely to be detected and obscured by leakers.
[0116] Step S704: Inject the identifier code into the pixel information of the target pixel to obtain the target screenshot.
[0117] By identifying pixels in high-contrast regions whose pixel values differ from their neighboring pixel values by a preset difference as target pixels for injection of identifier codes, the visual characteristics of the human eye can be weakened, making the target pixels less likely to be discovered and obscured by leakers, thus further improving the security of tracing the source of leaked information.
[0118] According to some embodiments of this disclosure, when adding an image border of a preset width, the rightmost and bottommost edge pixels of the rectangular area where the initial screenshot is located can also be determined, and an image border of a preset width can be added outside the aforementioned edge pixels.
[0119] like Figure 8 As shown, the initial screenshot consists of 50*50 pixels. After adding an image border of 1 pixel outside the right and bottom edge pixels, the final target screenshot consists of 51*51 pixels. Assuming the identifier code is [G, G, 1, 0, 5, 5, 5], with a coding length of 7 bits, and the pixel perimeter of the image border is 51*4 = 204 pixels, then the coordinate interval is 204 / 7 rounded down, which is 29.
[0120] by Figure 8The upper left corner is shown as a preset starting point, and the target coordinate position is determined clockwise. The coordinate array of the target coordinate position is (0, 0), (29, 0), (51, 7), (51, 36), (36, 51), (7, 51), and (0, 29).
[0121] It can be understood that an image border of a preset width can also be added to the leftmost and uppermost edge pixel points of the initial screenshot. The present disclosure does not make any limitation.
[0122] By adding an image border of a preset width outside the rightmost and lowermost edge pixel points, the pixel points of the added image border can be combined with the pixel points inside the image when determining the target coordinate position, so as to inject the identification code corresponding to the account identifier. This process makes the added identification code not easy to be erased, further improving the security of tracking the source of the leaked information.
[0123] Next, taking adding an image border of a preset width outside the initial screenshot as an example, the entire image processing process of the image processing method of the exemplary embodiment of the present disclosure will be described in detail with reference to FIG. 9. Figure 9 The flowchart schematically shows the entire image processing process in the present exemplary embodiment.
[0124] First, in step S901, an account identifier is obtained. The account identifier can be a unique identifier of a user, such as an employee ID, a mobile phone number, an email address, an ID card number, a name, an account, and the like. The account identifier can also be an IP address of a terminal device used by the user to perform a screenshot operation.
[0125] For example, the IP address of the terminal device can be obtained through a gateway interface as the account identifier; or the account identifier corresponding to the terminal device used to perform the screenshot operation can be found according to a pre-stored correspondence between the account identifier and the device identifier.
[0126] Meanwhile, the account identifier can also be determined according to the login information of the screenshot software or other work software. For example, the login information of a work email, an employee system, a third-party chat software, and the like; or employee information manually input by the user.
[0127] After obtaining the account identifier, the account identifier can be processed. That is, in step S902, the account identifier is processed by word segmentation to obtain a plurality of segmented words. For example, the plurality of segmented words after word segmentation can be stored in an array. For example, GG10555 is processed by word segmentation to obtain [G, G, 1, 0, 5, 5, 5].
[0128] In step S903, the plurality of segmented words are respectively converted into identification codes in a preset format. For example, the plurality of segmented words can be respectively converted into ASCII code values, such as [G, G, 1, 0, 5, 5, 5] converted into [103, 103, 49, 48, 53, 53, 53].
[0129] Then, while the account identifier is acquired and processed, the initial screenshot can also be acquired and processed, so as to subsequently connect the account identifier with the initial screenshot.
[0130] In step S904, the initial screenshot is determined according to the screenshot operation. For example, the user can perform a screenshot operation on the display interface of the current terminal device, and the terminal device determines the initial screenshot in response to the screenshot operation. The initial screenshot is composed of a plurality of pixel points, and the initial screenshot is usually in a rectangular shape.
[0131] In step S905, an image border of a preset width is added outside the edge pixel points of the initial screenshot. The preset width can be set according to actual needs, and the specific value is not limited. For example, the initial screenshot is composed of 50*50 pixel points, and after adding an image border of 1 pixel point width, a screenshot composed of 52*52 pixel points is obtained.
[0132] After the image border is added, step S906 of determining the pixel point perimeter of the image border and the number of bits of the identification code can be performed.
[0133] For example, for an initial screenshot composed of 50*50 pixel points, an image border of 1 pixel point width is added, and the perimeter of the image border is 52*4=208 pixel points. At the same time, the number of bits of the identification code [103, 103, 49, 48, 53, 53, 53] is 7.
[0134] After the pixel point perimeter of the image border and the number of bits of the identification code are determined, step S907 of calculating the coordinate interval can be performed according to the pixel point perimeter of the image border and the number of bits of the identification code.
[0135] For example, every other coordinate interval determines a target coordinate position, and the coordinate interval = pixel point perimeter / number of bits of the identification code.
[0136] In step S908, it is determined whether the coordinate interval is an integer. According to some embodiments of the present disclosure, if the calculated coordinate interval is not an integer, step S910 of performing a down-rounding processing on the coordinate interval is performed. For example, the coordinate interval = 204 / 7 is rounded, and the result is 29 pixel points. Then, the step S909 is performed after the rounding processing.
[0137] According to another embodiment of the present disclosure, if the calculated coordinate interval is an integer, step S909 is directly performed to determine the target coordinate position.
[0138] In the determination of the target coordinate position, the upper left corner of the image frame can be taken as the coordinate origin (0, 0), and the target coordinate position can be determined clockwise. For example, if the image frame and the initial screenshot are composed of 51*51 pixels, the pixel perimeter of the image frame is 204, and the total number of pixels in one frame is 51, the first target coordinate position is (0, 0), the next target coordinate position is (29, 0), and the remaining coordinate positions are determined in the same manner.
[0139] It can be understood that the above-mentioned coordinate origin and the clockwise determination of the target coordinate position are optional schemes, and the lower left corner of the image frame can also be taken as the coordinate origin (0, 0) or any other pixel point. At the same time, the coordinate origin can be determined, and the target coordinate position can be determined counterclockwise.
[0140] After determining the target coordinate position and the identification code, step S911 of sequentially injecting the identification code into the target coordinate position to obtain a target screenshot can be performed. For example, since the account identifier can be deduced from the identification code, and the change in the order of each word in the account identifier will lead to the inability to accurately determine the source of the leak, it is necessary to sequentially inject the identification code into the determined target coordinate position according to the order.
[0141] After injecting the identification code into the target coordinate position in the image frame, a target screenshot containing the identification code of the user can be obtained, and the account identifier can be deduced therefrom, so that the relevant personnel of the enterprise can quickly trace the source of the leak.
[0142] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. In addition or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be divided into multiple steps, etc.
[0143] In order to implement the above-mentioned image processing method, an image processing device is provided in one embodiment of the present disclosure. Figure 10 A schematic architecture diagram of the image processing device is shown.
[0144] The image processing device 1000 includes a screenshot determination module 1001, an identification conversion module 1002, and an identification injection module 1003.
[0145] The screenshot determining module 1001 is configured to determine an initial screenshot according to the screenshot operation in response to the screenshot operation of the user for the current interface; the identification converting module 1002 is configured to convert the account identification of the user account corresponding to the screenshot operation into an identification code in a preset format; and the identification injecting module 1003 is configured to inject the identification code into pixel information of the initial screenshot to obtain a target screenshot.
[0146] The image processing apparatus 1000 provided by the example embodiments of the present disclosure can implement the technical solutions of the image processing method in any of the above embodiments, and the implementation principles and beneficial effects thereof are similar to those of the image processing method. For details, refer to the implementation principles and beneficial effects of the image processing method, which will not be described herein again.
[0147] Further, in order to implement the above-mentioned image processing method, another image processing apparatus is provided in an embodiment of the present disclosure. Figure 11 A schematic architectural diagram of an image processing apparatus is shown.
[0148] The image processing apparatus 1100 includes an identification converting module 1101, an identification obtaining module 1102, and an identification injecting module 1103.
[0149] In an optional embodiment, the identification converting module 1101 is specifically configured to perform word segmentation on the account identification to obtain a plurality of segmented words; and convert the plurality of segmented words into identification codes in a preset format respectively.
[0150] In an optional embodiment, the identification obtaining module 1102 is specifically configured to find the account identification corresponding to the target device identification from a preconfigured correspondence relationship list of device identifications and account identifications; wherein the target device identification is the device identification of the target device in response to the screenshot operation.
[0151] In an optional embodiment, the identification injecting module 1103 is specifically configured to add an image border with a preset width to an edge of the initial screenshot; inject the identification code into pixel information of the image border to obtain a feature border; wherein the feature border and the initial screenshot constitute the target screenshot.
[0152] In an optional embodiment, the identification injecting module 1103 is specifically configured to determine the code bit number of the identification code; determine the pixel point perimeter of the image border; determine a target coordinate position in the image border for injecting the identification code according to the pixel point perimeter and the code bit number; and inject the identification code into pixel information of the pixel point corresponding to the target coordinate position to obtain the feature border.
[0153] In an optional embodiment, the identity injection module 1103 is specifically configured to determine an initial coordinate interval between the coordinate positions of the injected identity code according to a ratio of the pixel perimeter to the number of encoding bits; perform a floor operation on the initial coordinate interval to obtain a target coordinate interval; and determine the target coordinate positions of the injected identity code in the image frame in sequence from a preset starting point according to the target coordinate interval.
[0154] In an optional embodiment, the identity injection module 1103 is specifically configured to make the pixels of the image frame transparent pixels.
[0155] In an optional embodiment, the identity injection module 1103 is specifically configured to inject the identity code into the pixel information of the preset region in the initial screenshot to obtain a target screenshot.
[0156] In an optional embodiment, the identity injection module 1103 is specifically configured to determine an image region with a contrast greater than a preset contrast in the initial screenshot as the preset region; determine a target pixel point if a difference between a pixel value of a current pixel point and a pixel value of a neighboring pixel point in the preset region is greater than a preset difference; and inject the identity code into the pixel information of the target pixel point to obtain a target screenshot.
[0157] The image processing apparatus 1100 provided by the example embodiments of the present disclosure can execute the technical solutions of the image processing method in any of the above embodiments, and the implementation principles and beneficial effects thereof are similar to those of the image processing method. For details, refer to the implementation principles and beneficial effects of the image processing method, which will not be described here again.
[0158] In the example embodiments of the present disclosure, a computer readable storage medium having a program product stored thereon is also provided, which can implement the above method of the present disclosure. In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program codes for causing a terminal device to perform the steps described in the above “example method” section according to various example embodiments of the present disclosure when the program product is run on the terminal device.
[0159] The program product for implementing the above method according to the embodiments of the present disclosure can adopt a portable compact disc read-only memory (CD-ROM) and include program codes, and can be run on a terminal device such as a personal computer. However, the program product of the present disclosure is not limited to this, and in this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in conjunction with an instruction execution system, apparatus or device.
[0160] The program product can employ any combination of one or more computer-readable media. The computer-readable media can be a computer-readable storage medium or a computer-readable signal medium. The computer-readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having one or more wires, a portable disc, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0161] The computer-readable signal medium can include a computer-readable storage medium that is propagated as a carrier wave. The computer-readable signal medium can further be any computer-readable medium that is not a storage medium. The computer-readable signal medium can be a computer-readable storage medium that is a propagated signal.
[0162] The program code embodied on the computer-readable media can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0163] The program code can be executed by one or more programmable processors, which can be implemented in one or more computer devices including any combination of a microprocessor, a microcontroller, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described in the present disclosure. The program code can be implemented in any desirable combination of one or more programming languages including a compiled or interpreted language.
[0164] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-described method is also provided.
[0165] Those skilled in the art can understand that each aspect of the present application can be implemented as a system, a method or a program product. Therefore, each aspect of the present application can be embodied in a form of entirely hardware, entirely software (including firmware, microcode, etc.), or a combination of hardware and software, which can be generically referred to as "circuitry", "module" or "system".
[0166] The electronic device 1200 according to this embodiment of the present application will be described below with reference to Figure 12 Figure 12 The electronic device 1200 shown is merely an example and should not be taken as limiting the functionality or the scope of use of embodiments of the present application.
[0167] As shown in Figure 12 The components of electronic device 1200 can include, but are not limited to, at least one processing unit 1210, at least one storage unit 1220, a bus 1230 that connects the different system components including the storage unit 1220 and the processing unit 1210, and a display unit 1240.
[0168] The storage unit stores program codes which can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps according to various exemplary embodiments of the present application described in the "Exemplary Method" section of the present specification. For example, the processing unit 1210 can perform the steps S201 to S203 as shown in Figure 2
[0169] The storage unit 1220 can include a readable medium in the form of volatile storage such as a random access memory (RAM) 12201 and / or a cache memory 12202, and can further include a read-only memory (ROM) 12203.
[0170] The storage unit 1220 can further include a program / utility 12204 having a set (at least one) of program modules 12205, which include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, and each of these examples or some combination thereof, can include implementation of a network environment.
[0171] The bus 1230 can represent one or more of several types of bus structures, including a storage bus or bus controller, a peripheral bus, a graphics acceleration port, a processor or local bus using any of a variety of bus structures, and the like.
[0172] The electronic device 1200 can also communicate with one or more external devices 1300 such as a keyboard, a pointing device, a Bluetooth device, etc.; and can communicate with one or more devices that enable a user to interact with the electronic device 1200 and / or one or more devices (e.g. routers, modems, etc.) that enable the electronic device 1200 to communicate with one or more other computing devices. Such communication can occur via Input / Output (I / O) interface 1250. Still yet, the electronic device 1200 can communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or the Internet) via network adapter 1260. As depicted, network adapter 1260 communicates with the other components of the electronic device 1200 via bus 1230. It should be appreciated that although not shown, other hardware and / or software modules could be used in connection with the electronic device 1200. Such modules include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0173] Through the above description of the embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash disk, a mobile hard disk, etc.) or a network, and includes a number of instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the methods according to the embodiments of the present disclosure.
[0174] In addition, the above-described diagrams are only schematic illustrations of the processes included in the method according to the example embodiments of the present application, and are not for limiting purposes. It is easy to understand that the processes shown in the above-described diagrams do not indicate or limit the time sequence of the processes. In addition, it is also easy to understand that the processes can be executed synchronously or asynchronously, for example, in a plurality of modules.
[0175] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. Indeed, according to the embodiments of the present disclosure, the features and functionalities of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functionalities of one module or unit described above can be further divided into embodied by a plurality of modules or units.
[0176] Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the features disclosed herein. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
[0177] It should be understood that the present disclosure is not limited to the precise structures herein described and illustrated in the drawings, and that various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the claims that follow.
Claims
1. An image processing method, characterized by, The method comprises: in response to a screenshot operation of a user on a current interface, determining an initial screenshot according to the screenshot operation; converting an account identifier of a user account corresponding to the screenshot operation into an identifier code in a preset format; injecting the identifier code into pixel information of the initial screenshot to obtain a target screenshot; wherein the injecting of the identifier code into the pixel information of the initial screenshot to obtain the target screenshot comprises: adding an image border of a preset width to an edge of the initial screenshot; determining the number of code bits of the identifier code, and determining the pixel point perimeter of the image border; determining the target coordinate position in the image border for injecting the identifier code according to the pixel point perimeter and the number of code bits; injecting the identifier code into the pixel information of the pixel point corresponding to the target coordinate position to obtain a feature border; wherein the feature border and the initial screenshot constitute the target screenshot.
2. The image processing method of claim 1, wherein, The converting of the account identifier of the user account corresponding to the screenshot operation into the identifier code in the preset format comprises: performing word segmentation on the account identifier to obtain a plurality of segmented words; converting the plurality of segmented words into the identifier code in the preset format respectively.
3. The image processing method of claim 1 or 2, characterized in that, Before the converting of the account identifier of the user account corresponding to the screenshot operation into the identifier code in the preset format, the method further comprises: finding the account identifier corresponding to a target device identifier from a preconfigured correspondence relationship list of device identifiers and account identifiers; wherein the target device identifier is the device identifier of a target device responding to the screenshot operation.
4. The image processing method of claim 1, wherein, The determining of the target coordinate position in the image border for injecting the identifier code according to the pixel point perimeter and the number of code bits comprises: determining an initial coordinate interval between the coordinate positions for injecting the identifier code according to the ratio of the pixel point perimeter to the number of code bits; performing down-round processing on the initial coordinate interval to obtain a target coordinate interval; determining the target coordinate positions in the image border for injecting the identifier code according to the target coordinate interval from a preset starting point.
5. The image processing method of claim 1, wherein, The pixel points of the image border are transparent pixel points.
6. The image processing method of claim 1, wherein, The injecting of the identifier code into the pixel information of the initial screenshot to obtain the target screenshot comprises: injecting the identifier code into the pixel information of a preset region in the initial screenshot to obtain the target screenshot.
7. The image processing method of claim 6, wherein, The injecting of the identifier code into the pixel information of the initial screenshot to obtain the target screenshot comprises: determining an image region in the initial screenshot with a contrast greater than a preset contrast as the preset region; if the difference between the pixel value of a current pixel point in the preset region and the pixel value of an adjacent pixel point is greater than a preset difference, determining the current pixel point as a target pixel point; injecting the identifier code into the pixel information of the target pixel point to obtain the target screenshot.
8. An image processing apparatus characterized by comprising: The device comprises: a screenshot determination module, configured to determine an initial screenshot according to a screenshot operation of a user on a current interface in response to the screenshot operation; an identifier conversion module, configured to convert an account identifier of a user account corresponding to the screenshot operation into an identifier code in a preset format; An identity injection module is configured to inject the identity code into pixel information of the initial screenshot to obtain a target screenshot. The identity injection module is configured to add an image frame with a preset width to an edge of the initial screenshot. The identity injection module is configured to determine a number of code bits of the identity code and a perimeter of pixel points of the image frame. The identity injection module is configured to determine a target coordinate position of the image frame at which the identity code is to be injected according to the perimeter of the pixel points and the number of code bits. The identity injection module is configured to inject the identity code into pixel information of pixel points corresponding to the target coordinate position to obtain a feature frame. The feature frame and the initial screenshot constitute the target screenshot.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the image processing method of any one of claims 1 to 7.
10. An electronic device, comprising: comprises: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to implement the image processing method of any one of claims 1 to 7 by executing the executable instructions.
Citation Information
Patent Citations
An image blind watermark processing method and device capable of improving robustness and coding quantity
CN109829843A