Image auditing result marking method and device, electronic equipment and program product

By obtaining sensitive content location information in image annotation and performing size rendering processing, it solves the problems of complex logic and low annotation accuracy in the existing technology, achieves simple and accurate labeling of image review results, and is suitable for large-scale applications.

CN118537859APending Publication Date: 2024-08-23SICHUAN COVER MEDIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410609176.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology has complex logic and low annotation accuracy in image annotation, making it difficult to achieve logically simple and accurate labeling of image review results.

Method used

By obtaining the position information of sensitive content in the target image, performing size rendering processing, determining the width and height of the marking frame, and performing marking processing based on the initial position information, the sensitive content can be accurately marked.

Benefits of technology

The marking complexity is reduced, the accuracy of marking is improved, and accurate marking can be carried out based on the image recognition position, making it suitable for large-scale applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537859A
    Figure CN118537859A
Patent Text Reader

Abstract

The invention discloses an image auditing result marking method and device, electronic equipment and a program product, and the method comprises the steps: carrying out the size rendering of an original image based on a preset standard image aspect ratio and resolution, and obtaining a rendered image; then, the size and the position of an actual marking frame of the sensitive content are obtained by combining the initial position of the sensitive content obtained through image recognition in the original image, so that the sensitive content in the image can be accurately marked on the basis of the position obtained through image recognition; the whole marking process can be realized only according to the initial position of the sensitive content and the attribute of the image; on the basis, the method not only reduces the marking complexity, but also improves the marking accuracy, so that the method is very suitable for large-scale application and popularization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and specifically relates to a marking method, device, electronic equipment and program product for image review results. Background Art

[0002] With the development of the Internet, in order to ensure the compliance of published content, the demand for intelligent review of image content is an inevitable trend. Therefore, how to mark sensitive content in images (including content related to certificates, violations, bad advertisements, etc.) has become an important issue in image intelligent review.

[0003] At present, most of the image annotation methods on the market are to annotate after identifying sensitive content, which mainly include bounding box annotation, area annotation, dotting, point cloud box, 2D / 3D fusion annotation and target tracking. However, the above methods have the following shortcomings: the implementation logic is relatively complex, and the existing technology usually directly uses the detection box in image recognition as the annotation box, and the area enclosed by the detection box is mostly larger than the area of ​​the sensitive content itself in the image. Therefore, the existing technology has certain errors and limitations in annotation accuracy; based on this, how to provide a marking method for image review results with simple implementation logic and accurate marking has become a problem to be solved urgently. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, electronic device and program product for marking image audit results, so as to solve the problems of complex implementation logic and low accuracy in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a method for marking an image review result is provided, comprising:

[0007] Acquire a target image and first position information of sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image;

[0008] Performing size rendering processing on the target image to obtain a rendered image, and determining a width, a height, and second position information of a marking box used to mark the sensitive content based on the rendered image and the first position information of the sensitive content;

[0009] The sensitive content is marked according to the width, height and second position information of the marking frame to obtain a marked target image, so that the marking frame in the marked target image can be used to complete a secondary publication review of the target image.

[0010] Based on the above disclosed content, after obtaining the first position information of the sensitive content in the target image, the present invention first performs size rendering processing on the target image to obtain a rendered image; then, based on the rendered image and the first position information of the sensitive content, the width, height and second position information of the marking box used to mark the sensitive content are determined; finally, the sensitive content can be marked according to the width, height and second position information of the aforementioned marking box, so as to obtain the marked target image; thus, through the aforementioned design, the present invention utilizes the target image and the initial position information of the sensitive content identified by the image to obtain the size and position of the actual marking box of the sensitive content, so that the sensitive content in the image can be accurately marked on the basis of the position obtained by image recognition, and the entire marking process can be realized only based on the initial position of the sensitive content and the attributes of the image itself, therefore, not only the marking complexity is reduced, but also the marking accuracy is improved.

[0011] In a possible design, performing size rendering processing on the target image to obtain a rendered image includes:

[0012] Get the standard image aspect ratio and standard image resolution;

[0013] Calculating the rendering width and rendering height of the target image according to the standard image aspect ratio, the standard image resolution, and the width and height of the target image;

[0014] Based on the rendering width and the rendering height, the target image is subjected to size rendering processing to obtain the rendered image after the size rendering processing.

[0015] In a possible design, the standard image resolution is MW×MH, wherein the rendering width and rendering height of the target image are calculated according to the standard image aspect ratio, the standard image resolution, and the width and height of the target image, including:

[0016] Based on the width and height of the target image, deriving an original aspect ratio of the target image;

[0017] Determining whether the original aspect ratio is smaller than the standard image aspect ratio;

[0018] If so, the rendering width and the rendering height are calculated based on the standard image resolution and the width and height of the target image and according to the following formulas (1) and (2);

[0019] HR=H / MH (1)

[0020] WR=W / [W×(MH / H)] (2)

[0021] In the above formula (1), HR represents the rendering height, and H represents the height of the target image;

[0022] In the above formula (2), WR represents the rendering width, and W represents the width of the target image.

[0023] In one possible design, the method further includes:

[0024] If not, the ratio between the height of the target image and MH is used as the rendering height, and the ratio between the width of the target image and MH is used as the rendering width.

[0025] In a possible design, the first position information includes: the width and height of the detection box corresponding to the sensitive content, wherein, based on the rendered image and the first position information of the sensitive content, determining the width and height of the marking box used to mark the sensitive content includes:

[0026] Acquire a standard image resolution, wherein the standard image resolution is MW×MH;

[0027] Calculating a first ratio between a width of a detection box corresponding to the sensitive content and a width of the rendered image, and a second ratio between a height of the detection box corresponding to the sensitive content and a height of the rendered image;

[0028] determining whether the first ratio is greater than MW, and determining whether the second ratio is greater than MH;

[0029] If the first ratio is greater than MW, the width of the marking frame is determined to be MW;

[0030] If the second ratio is greater than MH, the height of the marking frame is determined to be MH.

[0031] In one possible design, the method further includes:

[0032] If the first ratio is less than or equal to MW, the first ratio is used as the width of the marking frame;

[0033] If the second ratio is less than or equal to MH, the second ratio is used as the height of the marking frame.

[0034] In a possible design, the first position information further includes: a first margin and a second margin, wherein the first margin is a vertical distance between the detection box corresponding to the sensitive content and the upper edge of the target image, and the second margin is a vertical distance between the detection box corresponding to the sensitive content and the left edge of the target image;

[0035] Correspondingly, determining second position information of a marking box for marking the sensitive content based on the rendered image and the first position information of the sensitive content includes:

[0036] Using the ratio between the second margin and the width of the rendered image as the vertical distance between the marking box and the left side of the rendered image;

[0037] Using the ratio between the first margin and the height of the rendered image as the vertical distance between the marking box and the upper edge of the rendered image;

[0038] The second position information is obtained based on the vertical distance between the marking box and the left side and the top side of the rendered image.

[0039] In a second aspect, a device for marking image review results is provided, comprising:

[0040] An acquisition unit, configured to acquire a target image and first position information of sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image;

[0041] a marking frame position calculation unit, configured to perform size rendering processing on the target image to obtain a rendered image, and determine a width, a height and a second position information of a marking frame used to mark the sensitive content based on the rendered image and the first position information of the sensitive content;

[0042] The marking unit is used to mark the sensitive content according to the width, height and second position information of the marking box to obtain a marked target image, so as to complete the secondary publication review of the target image using the marking box in the marked target image.

[0043] In a third aspect, another device for marking image review results is provided. Taking the device as an electronic device as an example, the device includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the image review result marking method as in the first aspect or any possible design of the first aspect.

[0044] In a fourth aspect, a storage medium is provided, on which instructions are stored. When the instructions are executed on a computer, a marking method for image review results as in the first aspect or any possible design of the first aspect is executed.

[0045] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, causes the computer to execute the method for marking image review results as in the first aspect or any possible design of the first aspect.

[0046] Beneficial effects:

[0047] (1) The present invention utilizes the target image and the initial position information of the sensitive content identified by the image to obtain the size and position of the actual marking frame of the sensitive content. In this way, the sensitive content in the image can be accurately marked based on the position obtained by image recognition, and the entire marking process can be achieved only based on the initial position of the sensitive content and the attributes of the image itself. Therefore, not only the marking complexity is reduced, but also the marking accuracy is improved.

[0048] (2) The marking method provided by the present invention can intuitively display the boundaries and ranges of obvious areas or objects. Therefore, it is superior to other methods in terms of the ability to accurately identify and define the target area.

[0049] (3) The present invention can achieve better marking results, so that illegal image content uploaded by users can be quickly discovered and intercepted, thereby improving the review efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of the steps of a method for marking image review results provided by an embodiment of the present invention;

[0051] Figure 2 A schematic diagram of the structure of a marking device for image review results provided by an embodiment of the present invention;

[0052] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0054] It should be understood that although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, a first unit can be referred to as a second unit, and similarly, a second unit can be referred to as a first unit without departing from the scope of the exemplary embodiments of the present invention.

[0055] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this article describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.

[0056] Example:

[0057] See also Figure 1 As shown, the marking method for image review results provided in this embodiment first renders the size of the original image based on a preset standard image aspect ratio and resolution to obtain a rendered image; then, the size and position of the actual marking frame of the sensitive content are obtained in combination with the initial position of the sensitive content obtained by image recognition in the original image. In this way, the sensitive content in the image can be accurately marked based on the position obtained by image recognition, and the entire marking process can be achieved only based on the initial position of the sensitive content and the attributes of the image itself; based on this, the method not only reduces the complexity of marking, but also improves the accuracy of marking, and therefore, is very suitable for large-scale application and promotion; for example, the method can be but not limited to running on the image review end side, and optionally, the image review end can be but not limited to a personal computer (PC), a tablet computer or a smart phone. It can be understood that the aforementioned execution subject does not constitute a limitation on the embodiments of the present application, and accordingly, the running steps of the method can be but not limited to the following steps S1 to S3.

[0058] S1. Obtain the first position information of the target image and the sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image; in specific applications, the first position information may include, but is not limited to, the width and height of the detection box corresponding to the sensitive content, and the first margin and the second margin; specifically, the first margin is the vertical distance between the detection box corresponding to the sensitive content (the midpoint of its upper side) and the upper side of the target image, and the second margin is the vertical distance between the detection box corresponding to the sensitive content (the midpoint of its left side) and the left side of the target image; at the same time, the aforementioned sensitive content is the illegal content in the target image, and the aforementioned first position information can be pre-stored in the image review terminal after image recognition.

[0059] After obtaining the first position information of the sensitive content in the target image, the sensitive content can be accurately marked based on the first position information and the image parameters of the target image itself, that is, the actual position (the second position information described below), width and height of the marking box used to mark the sensitive content can be calculated; wherein, the size and position determination process of the marking box can be but is not limited to as shown in the following step S2.

[0060] S2. Perform size rendering processing on the target image to obtain a rendered image, and determine the width, height and second position information of the marking box used to mark the sensitive content based on the rendered image and the first position information of the sensitive content; in specific implementation, this embodiment adjusts the size of the target image based on a preset standard image resolution and aspect ratio, and then uses the first position information and the adjusted image to obtain the height, width and second position of the marking box; specifically, for example, but not limited to, the following steps S21 to S23 can be used to obtain the rendered image.

[0061] S21. Obtain the standard image aspect ratio and standard image resolution; in this embodiment, the standard image resolution may be, but not limited to, MW×MH, and the standard image aspect ratio may be, but not limited to, 16:9, wherein MW×MH may be: 160×90; of course, the aforementioned standard image aspect ratio and resolution are pre-set in the image review terminal, and may be specifically set according to actual use, therefore, this embodiment is not limited to the aforementioned examples.

[0062] After obtaining the standard image aspect ratio and resolution, the rendering size of the target image can be calculated in combination with the width and height of the target image, so that the target image can be subsequently rendered based on the rendering size; wherein, the calculation process of the rendering size can be but is not limited to as shown in the following step S22.

[0063] S22. Calculate the rendering width and rendering height of the target image according to the standard image aspect ratio, the standard image resolution, and the width and height of the target image; in specific implementation, determine the corresponding original aspect ratio according to the width and height of the target image, and then select different calculation methods to calculate the rendering size according to the size relationship between the original aspect ratio and the standard image aspect ratio; wherein the aforementioned calculation process may be but is not limited to the following steps S22a to S22c.

[0064] S22a. Based on the width and height of the target image, the original aspect ratio of the target image is obtained; in this embodiment, assuming that the width and height of the target image are W and H respectively, then the original aspect ratio is: W / H; after obtaining the original aspect ratio of the target image, different methods can be selected to calculate the rendering size (i.e., the rendering width and height described below) according to the size relationship between the original aspect ratio of the target image and the aspect ratio of the standard image; wherein the aforementioned process can be but is not limited to as shown in the following steps S22b and S22c.

[0065] S22b. Determine whether the original aspect ratio is smaller than the standard image aspect ratio; in this embodiment, if the original aspect ratio is smaller than the standard image aspect ratio, it is necessary to execute the following step S22b, that is, use the following formulas (1) and (2) to calculate the rendering width and rendering height.

[0066] S22c. If yes, then based on the standard image resolution and the width and height of the target image, and in accordance with the following formulas (1) and (2), calculate the rendering width and the rendering height.

[0067] HR=H / MH (1)

[0068] WR=W / [W×(MH / H)] (2)

[0069] In the above formula (1), HR represents the rendering height, and H represents the height of the target image;

[0070] In the above formula (2), WR represents the rendering width, and W represents the width of the target image.

[0071] In a specific implementation, if the original aspect ratio is greater than or equal to the standard image aspect ratio, then the ratio between the height of the target image and MH is used as the rendering height, and the ratio between the width of the target image and MH is used as the rendering width.

[0072] In this way, through the aforementioned steps S22a to S22c, the rendering size of the target image can be calculated, and then, the target image can be rendered in size according to the rendering size. The process can be but not limited to as shown in the following step S23.

[0073] S23. Based on the rendering width and the rendering height, the target image is subjected to size rendering processing to obtain the rendered image after the size rendering processing; in a specific implementation, size rendering is essentially to resize the target image, and after the size adjustment (i.e., the aspect ratio is adjusted), the rendered image can be obtained.

[0074] Thus, through the aforementioned steps S21 to S23, the size rendering of the target image is completed. After the rendered image is obtained, the size and position of the marking box of the sensitive content can be calculated in combination with the first position information of the aforementioned sensitive content; wherein, the calculation process of the size and position of the marking box can be but is not limited to as shown in the following steps S24 to S30.

[0075] S24. Obtaining a standard image resolution, wherein the standard image resolution is MW×MH. In this embodiment, the process of obtaining the standard image resolution has been described in the aforementioned step S21 and will not be repeated here.

[0076] After obtaining the standard image resolution, the width and height of the marking box can be calculated by combining the ratio between the width of the detection box corresponding to the sensitive content and the width of the rendered image, as well as the ratio between the height of the detection box corresponding to the sensitive content and the height of the rendered image; wherein the above-mentioned calculation process is shown in the following steps S25 to S27.

[0077] S25. Calculate a first ratio between the width of the detection box corresponding to the sensitive content and the width of the rendered image, and a second ratio between the height of the detection box corresponding to the sensitive content and the height of the rendered image.

[0078] S26. Determine whether the first ratio is greater than MW, and determine whether the second ratio is greater than MH.

[0079] S27. If the first ratio is greater than MW, the width of the marking box is determined to be MW; if the second ratio is greater than MH, the height of the marking box is determined to be MH; wherein, if the first ratio is less than or equal to MW, the first ratio is used as the width of the marking box; similarly, if the second ratio is less than or equal to MH, the second ratio is used as the height of the marking box.

[0080] In this embodiment, the calculation process of the width and height of the following marking box is summarized as follows:

[0081] Assuming that the width and height of the detection box corresponding to the sensitive content are CW and CH respectively (the size of the detection box is actually larger than the area where the sensitive content is located in the image), the image marking box can be calculated under the known image parameters of the rendered image.

[0082] Among them, assuming that the width of the current marking box is LW, if CW / WR>MW, then LW is MW, otherwise LW is CW / WR; similarly, setting the height of the current marking box to LH, if CH / HR>MH, then LH is MH, otherwise LH is CH / HR.

[0083] In this way, through the aforementioned steps S25 to S27, the actual size of the marking frame of the sensitive content can be calculated, and then its position in the image needs to be calculated. The process can be but is not limited to the following steps S28 to S30.

[0084] S28. Using the ratio of the second margin to the width of the rendered image as the vertical distance between the marking box and the left side of the rendered image.

[0085] S29. Using the ratio between the first margin and the height of the rendered image as the vertical distance between the marking box and the upper edge of the rendered image.

[0086] S30. Obtain second position information based on the vertical distance between the marking box and the left side and the top side of the rendered image.

[0087] In this embodiment, assuming that the first margin is Y and the second margin is X, then the vertical distance between the marking box and the left side of the rendered image is: X / WR; similarly, the vertical distance between the marking box and the top of the rendered image is Y / HR; at the same time, the vertical distance between the marking box and the left side of the rendered image is actually the vertical distance between the midpoint of the left side of the marking box and the left side of the rendered image; similarly, the vertical distance between the marking box and the top of the rendered image is the vertical distance between the midpoint of its top and the top of the rendered image; of course, the definitions of the first margin and the second margin are the same, which will not be repeated here.

[0088] Thus, through the aforementioned steps S21 to S30, the size and position of the marking box used to mark sensitive content can be calculated, and then, based on this, the sensitive content can be accurately marked, and the process can be but not limited to as shown in the following step S3.

[0089] S3. Mark the sensitive content according to the width, height and second position information of the mark box to obtain a marked target image, so as to use the mark box in the marked target image to complete the secondary publication review of the target image; in specific implementation, the size of the mark box is determined based on the width and height of the mark box, and then the marking position of the mark box in the rendering image is determined based on its vertical distance from the upper and left edges of the rendering image, and then a mark box is marked at the marking position, and the image area in the mark box is the image area corresponding to the sensitive content; at this time, the accurate marking of the sensitive content in the target image can be completed; then, the mark box can be used to perform a secondary review of the target image, so as to quickly determine whether the content in the image area in the box is determined to be illegal content; if so, the target image is intercepted and a violation prompt is sent to the sender of the target image; otherwise, it is determined that the target image does not contain an illegal image and the target image is published; of course, the application of the mark box can be specifically set according to actual use, and is not limited to the above example.

[0090] In this way, this embodiment can accurately mark illegal pictures containing advertisements and other content, thereby protecting users from harmful information and maintaining a healthy network environment.

[0091] According to the marking method of the image audit results described in detail in the aforementioned steps S1 to S3, the present invention first renders the original image based on the preset standard image aspect ratio and resolution to obtain a rendered image; then, the size and position of the actual marking frame of the sensitive content are obtained in combination with the initial position of the sensitive content obtained by image recognition in the original image. In this way, the sensitive content in the image can be accurately marked based on the position obtained by image recognition, and the entire marking process can be realized only based on the initial position of the sensitive content and the attributes of the image itself; based on this, the present invention not only reduces the complexity of marking, but also improves the accuracy of marking, and is therefore very suitable for large-scale application and promotion.

[0092] like Figure 2 As shown, the second aspect of this embodiment provides a hardware device for implementing the method for marking the image review result described in the first aspect of the embodiment, including:

[0093] An acquisition unit is used to acquire a target image and first position information of sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image.

[0094] The marking box position calculation unit is used to perform size rendering processing on the target image to obtain a rendered image, and based on the rendered image and the first position information of the sensitive content, determine the width, height and second position information of the marking box used to mark the sensitive content.

[0095] The marking unit is used to mark the sensitive content according to the width, height and second position information of the marking box to obtain a marked target image, so as to complete the secondary publication review of the target image using the marking box in the marked target image.

[0096] The working process, working details and technical effects of the device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0097] like Figure 3 As shown, the third aspect of this embodiment provides another device for marking image review results. Taking the device as an electronic device as an example, it includes: a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the method for marking image review results as described in the first aspect of the embodiment.

[0098] For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). At the same time, the processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0099] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RISC) microprocessor, an X86 architecture processor, or a processor with an integrated embedded neural network processing unit (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (a low-power local area network protocol based on the IEEE802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver and / or a 5G transceiver, etc. In addition, the device may also include, but is not limited to, a power module, a display screen, and other necessary components.

[0100] The working process, working details and technical effects of the electronic device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0101] The fourth aspect of this embodiment provides a storage medium that stores instructions for the method for marking image review results described in the first aspect of the embodiment, that is, the storage medium stores instructions, and when the instructions are run on a computer, the method for marking image review results described in the first aspect of the embodiment is executed.

[0102] The storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0103] The working process, working details and technical effects of the storage medium provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0104] The fifth aspect of this embodiment provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the method for marking image review results as described in the first aspect of the embodiment, wherein the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0105] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for marking image audit results, characterized in that: include: Acquire a target image and first position information of sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image; Performing size rendering processing on the target image to obtain a rendered image, and determining a width, a height, and second position information of a marking box used to mark the sensitive content based on the rendered image and the first position information of the sensitive content; The sensitive content is marked according to the width, height and second position information of the marking frame to obtain a marked target image, so that the marking frame in the marked target image can be used to complete a secondary publication review of the target image.

2. The method according to claim 1, characterized in that Performing size rendering processing on the target image to obtain a rendered image includes: Get the standard image aspect ratio and standard image resolution; Calculating the rendering width and rendering height of the target image according to the standard image aspect ratio, the standard image resolution, and the width and height of the target image; Based on the rendering width and the rendering height, the target image is subjected to size rendering processing to obtain the rendered image after the size rendering processing.

3. The method according to claim 2, characterized in that The standard image resolution is MW×MH, wherein the rendering width and rendering height of the target image are calculated according to the standard image aspect ratio, the standard image resolution, and the width and height of the target image, including: Based on the width and height of the target image, deriving an original aspect ratio of the target image; Determining whether the original aspect ratio is smaller than the standard image aspect ratio; If so, the rendering width and the rendering height are calculated based on the standard image resolution and the width and height of the target image and according to the following formulas (1) and (2); HR=H / MH(1) WR=W / [W×(MH / H)](2) In the above formula (1), HR represents the rendering height, and H represents the height of the target image; In the above formula (2), WR represents the rendering width, and W represents the width of the target image.

4. The method according to claim 3, characterized in that The method further comprises: If not, the ratio between the height of the target image and MH is used as the rendering height, and the ratio between the width of the target image and MH is used as the rendering width.

5. The method according to claim 1, characterized in that The first position information includes: the width and height of the detection box corresponding to the sensitive content, wherein, based on the rendered image and the first position information of the sensitive content, determining the width and height of the marking box used to mark the sensitive content includes: Acquire a standard image resolution, wherein the standard image resolution is MW×MH; Calculating a first ratio between a width of a detection box corresponding to the sensitive content and a width of the rendered image, and a second ratio between a height of the detection box corresponding to the sensitive content and a height of the rendered image; determining whether the first ratio is greater than MW, and determining whether the second ratio is greater than MH; If the first ratio is greater than MW, the width of the marking frame is determined to be MW; If the second ratio is greater than MH, the height of the marking frame is determined to be MH.

6. The method according to claim 5, characterized in that The method further comprises: If the first ratio is less than or equal to MW, the first ratio is used as the width of the marking frame; If the second ratio is less than or equal to MH, the second ratio is used as the height of the marking frame.

7. The method according to claim 1, characterized in that The first position information further includes: a first margin and a second margin, wherein the first margin is a vertical distance between the detection frame corresponding to the sensitive content and the upper edge of the target image, and the second margin is a vertical distance between the detection frame corresponding to the sensitive content and the left edge of the target image; Correspondingly, determining second position information of a marking box for marking the sensitive content based on the rendered image and the first position information of the sensitive content includes: Using the ratio between the second margin and the width of the rendered image as the vertical distance between the marking box and the left side of the rendered image; Using the ratio between the first margin and the height of the rendered image as the vertical distance between the marking box and the upper edge of the rendered image; The second position information is obtained based on the vertical distance between the marking box and the left side and the top side of the rendered image.

8. A marking device for image review results, characterized in that: include: An acquisition unit, configured to acquire a target image and first position information of sensitive content in the target image, wherein the first position information is obtained by performing image recognition on the target image; a marking frame position calculation unit, configured to perform size rendering processing on the target image to obtain a rendered image, and determine a width, a height and a second position information of a marking frame used to mark the sensitive content based on the rendered image and the first position information of the sensitive content; The marking unit is used to mark the sensitive content according to the width, height and second position information of the marking box to obtain a marked target image, so as to complete the secondary publication review of the target image using the marking box in the marked target image.

9. An electronic device, characterized in that: include: A memory, a processor and a transceiver which are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program, and execute the method for marking image review results as described in any one of claims 1 to 7.

10. A computer program product comprising instructions, characterized in that When the instructions are executed on a computer, the computer is caused to execute the method for marking image audit results as described in any one of claims 1 to 7.