Enterprise case material picture detection method, device, equipment and storage medium
By automatically detecting the relationship between the color, text and trademark logo position of corporate case material pictures, the problem of low manual review efficiency is solved, the detection accuracy and efficiency are improved, the compliance of the pictures is ensured, and the corporate brand image is protected.
Patent Information
- Application Number
- CN202110123505.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-01-28
AI Technical Summary
In the existing technology, due to the problems of low efficiency and low accuracy in manually reviewing corporate case material pictures, corporate customers may receive non-compliant case designs, which affects the brand image.
By obtaining the color information and text information in the corporate case material pictures, pre-set judgment rules are used to determine whether the pictures are compliant, including judging the positional relationship and proportion of color, text, trademark logo and document. If the rules are not followed, a prompt message will be issued. Improve review efficiency and accuracy.
Automated corporate case material picture detection has been implemented, which improves the efficiency and accuracy of designer pre-review, reduces manual review costs, ensures the compliance of pictures, and avoids damage to the brand image.
Smart Images

Figure CN112785659B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a method, device, equipment and storage medium for detecting enterprise case material images. Background Art
[0002] On the creative supply platform, creative companies or designers log in to the creative supply platform and provide services to enterprises through the supply platform. Most corporate customers will have their own brand design specifications and will agree on specifications for colors, fonts, logo positions, spacing, etc. If the image materials provided by the creative company or designer often violate the brand design specifications, the platform needs to conduct manual visual review before providing the image materials provided by the creative company to corporate customers. This is inefficient and inaccurate, and some problems may be difficult to detect due to negligence. In addition, it is difficult for the platform's operation and maintenance personnel to spend a lot of time and energy to review the materials. The platform provides corporate customers with non-compliant case material pictures for case design, which has a negative impact on the brand of the customer company after the product is released. Summary of the invention
[0003] The main purpose of this application is to provide a method, device, equipment and storage medium for detecting enterprise case material images, so as to solve the problems of low efficiency and inaccuracy caused by manual review of case material images in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for detecting enterprise case material pictures is provided, comprising:
[0005] Obtain color information and / or text information from enterprise case material images;
[0006] Judging whether the enterprise case material picture is compliant with the regulations by using a preset judgment rule according to the color information and / or the text information;
[0007] If it is not compliant, a prompt message will be issued.
[0008] In one embodiment, judging whether the enterprise case material image is compliant by using a preset judgment rule according to the color information includes:
[0009] If it is determined that yellow and blue are adjacent to each other in the enterprise case material picture, it is determined to be non-compliant; or,
[0010] If it is determined that the number of colors contained in the corporate case material image is greater than three, it is determined to be non-compliant.
[0011] In one implementation, for a financial enterprise, if the unit "yuan" is missing in the financial transaction amount in the text of the enterprise case material image, it is determined to be non-compliant.
[0012] In one embodiment, if compliance is achieved, it is displayed on the interface that no risk is detected;
[0013] A prompt message is issued, and the method further includes: displaying risky fonts on the interface.
[0014] In one embodiment, the method further includes: obtaining posture information of a pattern in a corporate case material picture;
[0015] Whether the enterprise case material image is compliant is determined based on a preset standard posture and the acquired posture information of the pattern.
[0016] In one embodiment, the method further comprises:
[0017] Calculate the distance between the trademark logo and the document;
[0018] If the distance is greater than or equal to a predetermined threshold, it is determined that the trademark logo is not combined with the text;
[0019] If the distance is less than a predetermined threshold, determining the combination of the trademark logo and the text;
[0020] When the trademark logo is not combined with text, determine the position of the trademark logo in the corporate case material picture; if it is not in the predetermined position, it is determined to be non-compliant;
[0021] When the trademark logo is combined with text, determine the positional relationship between the trademark logo and the document, and / or the ratio between the geometric dimensions of the trademark and the geometric dimensions of the document;
[0022] The compliance of the enterprise case material image is determined based on the positional relationship between the trademark logo and the document, and / or the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document.
[0023] In one implementation, judging whether the corporate case material image is compliant based on the positional relationship between the trademark logo and the document includes:
[0024] If the trademark is located in the document and the centerline of the trademark coincides with the centerline of the document, it is compliant;
[0025] If the trademark is outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant;
[0026] If the trademark is located outside the document, diagonally above the document, and the left line of the trademark coincides with the left line of the document, then it is compliant;
[0027] If the trademark is located outside the document at an angle above the document, and the right line of the trademark coincides with the right line of the document, then it is compliant;
[0028] If the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, it is compliant;
[0029] If the trademark is located in the document and the centerline of the trademark does not coincide with the centerline of the document, it is not compliant;
[0030] If the trademark is outside the document and the top edge of the trademark coincides with the bottom edge of the document, it is not compliant;
[0031] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant;
[0032] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant;
[0033] If the trademark is located above the outside of the document and the center line of the trademark does not coincide with the center line of the document, it is not compliant;
[0034] Determine whether the corporate case material images are compliant based on the positional relationship between the trademark logo and the document and the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document, including:
[0035] When the trademark is located outside the document and the top edge of the trademark coincides with the top edge of the document, it is not compliant if the height of the trademark is greater than the height of the document;
[0036] When the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the width of the trademark to the width of the document is greater than a predetermined ratio threshold, it is not compliant.
[0037] In order to achieve the above-mentioned purpose, according to the second aspect of the present application, a device for detecting enterprise case material pictures is provided, comprising:
[0038] An acquisition module, used to acquire color information and / or text information in enterprise case material pictures;
[0039] A judgment module, used to judge whether the enterprise case material picture is compliant according to color information and / or text information using a preset judgment rule;
[0040] The alarm module is used to issue a prompt message if the judgment module determines that the enterprise case material image is not compliant.
[0041] The judgment module is further used to: if it is determined that the three primary colors are used simultaneously in the enterprise case material picture, then it is determined to be non-compliant; or,
[0042] If it is determined that yellow and blue are adjacent to each other in the enterprise case material picture, it is determined to be non-compliant; or,
[0043] If it is determined that the number of colors contained in the corporate case material image is greater than three, it is determined to be non-compliant.
[0044] The judgment module is also used for: For financial enterprises, if the unit "yuan" is missing in the financial transaction amount in the text of the enterprise case material picture, it is determined to be non-compliant.
[0045] The alarm module is also used to display on the interface that no risk is detected if compliance is met; or,
[0046] Display risky fonts on the interface.
[0047] The acquisition module is also used to acquire the posture information of the pattern in the enterprise case material picture;
[0048] The judgment module is also used to judge whether the enterprise case material picture is compliant according to a preset standard posture and the acquired posture information of the pattern.
[0049] The judgment module is also used to: calculate the distance between the trademark logo and the document;
[0050] If the distance is greater than or equal to a predetermined threshold, it is determined that the trademark logo is not combined with the text;
[0051] If the distance is less than a predetermined threshold, determining the combination of the trademark logo and the text;
[0052] When the trademark logo is not combined with text, determine the position of the trademark logo in the corporate case material picture; if it is not in the predetermined position, it is determined to be non-compliant;
[0053] When the logo is combined with text, determine the positional relationship between the logo and the document, and / or the ratio of the geometric dimensions of the logo to the geometric dimensions of the document,
[0054] The compliance of the enterprise case material image is determined based on the positional relationship between the trademark logo and the document, and / or the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document.
[0055] The judgment module is also used for: if the trademark is located in the document and the center line of the trademark coincides with the center line of the document, then compliance is achieved;
[0056] If the trademark is outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant;
[0057] If the trademark is located outside the document, diagonally above the document, and the left line of the trademark coincides with the left line of the document, then it is compliant;
[0058] If the trademark is located outside the document at an angle above the document, and the right line of the trademark coincides with the right line of the document, then it is compliant;
[0059] If the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, it is compliant;
[0060] If the trademark is located in the document and the centerline of the trademark does not coincide with the centerline of the document, it is not compliant;
[0061] If the trademark is outside the document and the top edge of the trademark coincides with the bottom edge of the document, it is not compliant;
[0062] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant;
[0063] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant;
[0064] If the trademark is located above the outside of the document and the center line of the trademark does not coincide with the center line of the document, it is not compliant;
[0065] When the trademark is located outside the document and the top edge of the trademark coincides with the top edge of the document, it is not compliant if the height of the trademark is greater than the height of the document;
[0066] When the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the width of the trademark to the width of the document is greater than a predetermined ratio threshold, it is not compliant.
[0067] In order to achieve the above-mentioned purpose, according to the third aspect of the present application, a corporate case material picture detection device is provided; it includes at least one processor and at least one memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute any of the methods described above.
[0068] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium contains one or more program instructions, and the one or more program instructions are used to execute any one of the methods described above.
[0069] The above technical solution of the present invention obtains color information and / or text information in the enterprise case material picture; judges whether the enterprise case material picture is compliant according to the color information and / or text information using a pre-set judgment rule; and issues a prompt message if it is not compliant. This improves the efficiency and accuracy of designers' pre-examination of material pictures. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0071] Figure 1 is a flow chart of a method for detecting enterprise case material pictures according to an embodiment of the present application;
[0072] Figure 2A is a schematic diagram of a trademark arrangement according to an embodiment of the present application;
[0073] Figure 2B is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0074] Figure 2C is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0075] Figure 2D is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0076] Figure 2E is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0077] Figure 2F is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0078] Figure 2G is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0079] Figure 2H is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0080] Fig.2I is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0081] Figure 2J is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0082] Figure 2K is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0083] Figure 2L is another trademark arrangement schematic diagram according to an embodiment of the present application;
[0084] Figure 3 It is a structural schematic diagram of a corporate case material picture detection device according to an embodiment of the present application;
[0085] Figure 4It is a structural schematic diagram of an enterprise case material picture detection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0086] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0087] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0088] First, the professional terms in this field are introduced.
[0089] Going out means that the advertising creativity is approved by the advertiser, and finally printed and released to the media. It is more common in the advertising and design industries.
[0090] Based on this, this application proposes a method for detecting enterprise case material images, see Attachment Figure 1 The flowchart of the enterprise case material picture detection method shown in FIG. 1 includes:
[0091] Step S102, obtaining color information and / or text information in the enterprise case material picture;
[0092] Specifically, designers can log in to the enterprise case material image recognition system and input the images to be recognized into the system.
[0093] The system can use ORC recognition technology to obtain text in enterprise case material pictures; and use color recognition technology to obtain color information in enterprise case material pictures, including: what specific colors the pictures include.
[0094] Step S104, judging whether the enterprise case material picture is compliant according to the color information and / or the text information by using a preset judgment rule; if not compliant, executing step S106; if compliant, no prompt is given or the picture is displayed as compliant.
[0095] Step S106, issuing a prompt message.
[0096] If the system is compliant, the interface will display "No risk detected"; if it is not compliant, a prompt message will be issued. You can issue a voice or text prompt message, and the font of the risk will be displayed on the interface.
[0097] The above method of the present invention uses a machine to identify whether the enterprise case material pictures are compliant, thereby improving the recognition efficiency and accuracy and reducing labor costs.
[0098] In one embodiment, when judging whether the enterprise case material picture is compliant according to the color information using a preset judgment rule,
[0099] Because some corporate customers require that the three primary colors cannot be used at the same time, you can enter the name of the company and determine the corresponding requirements of the company based on the company name; if the corporate customer requires that the three primary colors cannot be used at the same time, if it is determined that the three primary colors are used at the same time in the company case material picture, it is determined to be non-compliant;
[0100] The three primary colors include red, yellow and blue. Design specifications stipulate that the three primary colors cannot appear in the same image at the same time.
[0101] If it is determined that yellow and blue are adjacent to each other in the enterprise case material picture, it is determined to be non-compliant;
[0102] Among them, the design specifications stipulate that yellow and blue must be separated and cannot be adjacent.
[0103] If it is determined that the number of colors contained in the corporate case material image is greater than three, it is determined to be non-compliant.
[0104] Among them, the design specifications stipulate that the number of colors in the image cannot exceed three, otherwise it is non-compliant.
[0105] In one implementation, for a financial enterprise, if the unit "yuan" is missing in the financial transaction amount in the text of the enterprise case material image, it is determined to be non-compliant.
[0106] For example, for a certain financial app, ORC technology is used to obtain text in an image.
[0107] The maximum amount for each transaction is 200,000 yuan. If there is 200,000 in the picture but no "yuan", it is definitely not in compliance with the regulations.
[0108] In one implementation, when the trademark logo is not combined with text, the position of the trademark logo in the corporate case material image is determined; if it is not in the predetermined position, it is determined to be non-compliant.
[0109] Specifically, the target detection technology is used to locate the size, position and distance information of the trademark logo and the document, including the size and position of the trademark logo, the size of the document, and the distance between the document and the trademark.
[0110] OCR technology can also be used to determine the content of the document and the text content in the trademark logo.
[0111] For example, see the attached Figure 2A and attached Figure 2B As shown, there is no text in the case material image, only the trademark. If the trademark is located at the four vertices of the case material image or on the center line of the case material image, it is compliant. If it is not in the above position, it is not compliant.
[0112] When the trademark logo is combined with text, determine the positional relationship between the trademark logo and the document, and / or the ratio between the geometric dimensions of the trademark and the geometric dimensions of the document;
[0113] The compliance of the enterprise case material image is determined based on the positional relationship between the trademark logo and the document, and / or the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document.
[0114] In one implementation, when judging whether the corporate case material image is compliant based on the positional relationship between the trademark logo and the document, if the trademark is located in the document and the center line of the trademark coincides with the center line of the document, then it is compliant. Figure 2F ;
[0115] If the trademark is outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant. Figure 2E ;
[0116] If the trademark is located outside the document, diagonally above the document, and the left line of the trademark coincides with the left line of the document, then it is in compliance. Figure 2D ;
[0117] If the trademark is located outside the document at an angle above the document, and the right line of the trademark coincides with the right line of the document, then it is compliant;
[0118] If the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, then it is compliant. See Appendix Figure 2C ;
[0119] If the logo is located in the document and the centerline of the logo does not coincide with the centerline of the document, it is not compliant, see Appendix Figure 2J ;
[0120] If the trademark is outside the document and the upper edge of the trademark coincides with the lower edge of the document, it is not compliant. Fig.2I ;
[0121] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant. Figure 2H ;
[0122] If the trademark is located above the outside of the document and the center line of the trademark does not coincide with the center line of the document, it is not compliant. See Appendix Figure 2G ;
[0123] Determine whether the corporate case material images are compliant based on the positional relationship between the trademark logo and the document and the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document, including:
[0124] When the trademark is located outside the document and the upper edge of the trademark coincides with the upper edge of the document, if the height of the trademark is greater than the height of the document, it is not compliant. See Appendix Figure 2K , the upper edge of the trademark is flush with the upper edge of the document, and the height a of the trademark is greater than the height H of the document, which is non-compliant.
[0125] When the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the width of the trademark to the width of the document is greater than the predetermined ratio threshold, it is not compliant. Figure 2L As shown, if the ratio of the width b of the trademark to the width w of the document is greater than a predetermined threshold value, the threshold value is 2 / 3, and this situation is not compliant. Of course, the threshold value may also be other values, which can be flexibly set.
[0126] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0127] In a second aspect, the present invention also provides a device for detecting enterprise case material pictures, such as Figure 3 As shown, the device comprises:
[0128] An acquisition module 31 is used to acquire color information and / or text information in the enterprise case material picture;
[0129] A judgment module 32, configured to judge whether the enterprise case material picture complies with the regulations according to the color information and / or the text information by using a preset judgment rule;
[0130] The alarm module 33 is used to issue a prompt message if the judgment module determines that the enterprise case material image is not compliant.
[0131] The judgment module 32 is further used to: if it is determined that the three primary colors are used simultaneously in the enterprise case material picture, then it is determined to be non-compliant; or,
[0132] If it is determined that yellow and blue are adjacent to each other in the enterprise case material picture, it is determined to be non-compliant; or,
[0133] If it is determined that the number of colors contained in the corporate case material image is greater than three, it is determined to be non-compliant.
[0134] The judgment module 32 is also used for: for financial enterprises, if the unit "yuan" is missing in the financial transaction amount in the text of the enterprise case material picture, it is determined to be non-compliant.
[0135] The alarm module 33 is also used to display on the interface that no risk is detected if compliance is met; or,
[0136] Display risky fonts on the interface.
[0137] The acquisition module 31 is also used to acquire the posture information of the pattern in the enterprise case material picture;
[0138] The judgment module 32 is also used to judge whether the enterprise case material picture is compliant according to a preset standard posture and the acquired posture information of the pattern.
[0139] The judgment module 32 is also used to: calculate the distance between the trademark logo and the document;
[0140] If the distance is greater than or equal to a predetermined threshold, it is determined that the trademark logo is not combined with the text;
[0141] If the distance is less than a predetermined threshold, determining the combination of the trademark logo and the text;
[0142] When the trademark logo is not combined with text, determine the position of the trademark logo in the corporate case material picture; if it is not in the predetermined position, it is determined to be non-compliant;
[0143] When the logo is combined with text, determine the positional relationship between the logo and the document, and / or the ratio of the geometric dimensions of the logo to the geometric dimensions of the document,
[0144] The compliance of the enterprise case material image is determined based on the positional relationship between the trademark logo and the document, and / or the ratio of the geometric dimensions of the trademark to the geometric dimensions of the document.
[0145] The judgment module 32 is further used for: if the trademark is located in the document and the center line of the trademark coincides with the center line of the document, then compliance is achieved;
[0146] If the trademark is outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant;
[0147] If the trademark is located outside the document, diagonally above the document, and the left line of the trademark coincides with the left line of the document, then it is compliant;
[0148] If the trademark is located outside the document at an angle above the document, and the right line of the trademark coincides with the right line of the document, then it is compliant;
[0149] If the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, it is compliant;
[0150] If the trademark is located in the document and the centerline of the trademark does not coincide with the centerline of the document, it is not compliant;
[0151] If the trademark is outside the document and the top edge of the trademark coincides with the bottom edge of the document, it is not compliant;
[0152] If the trademark is located outside the document, diagonally above the document, and the right line of the trademark coincides with the left line of the document, it is not compliant;
[0153] If the trademark is located above the outside of the document and the center line of the trademark does not coincide with the center line of the document, it is not compliant;
[0154] When the trademark is located outside the document and the top edge of the trademark coincides with the top edge of the document, it is not compliant if the height of the trademark is greater than the height of the document;
[0155] When the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the width of the trademark to the width of the document is greater than a predetermined ratio threshold, it is not compliant.
[0156] According to a third aspect of the present application, a device for testing vehicle lane change judgment is provided; the device is arranged in a vehicle-mounted device, see the attached Figure 4 , including at least one processor 41 and at least one memory 42; the memory 42 is used to store one or more program instructions; the processor 41 is used to run one or more program instructions to execute any of the above methods.
[0157] In a fourth aspect, the present application further proposes a computer-readable storage medium, which contains one or more program instructions, and the one or more program instructions are used to execute any of the methods described above.
[0158] In the embodiment of the present invention, the processor may be an integrated circuit chip having the signal processing capability. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0159] The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The processor reads the information in the storage medium and completes the steps of the above method in combination with its hardware.
[0160] The storage medium may be a memory, which may be, for example, a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.
[0161] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0162] The volatile memory may be a random access memory (RAM) which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDRSDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus DRAM (DRRAM).
[0163] The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0164] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the present invention can be implemented using a combination of hardware and software. When software is used, the corresponding functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0165] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting enterprise case material pictures, characterized in that: include: Obtain color information and / or text information from enterprise case material images; Judging whether the enterprise case material picture complies with the regulations by using a preset judgment rule according to the color information and / or the text information; If it is not in compliance, a prompt message will be issued; It also includes: calculating the distance between the trademark logo and the document; if the distance is greater than or equal to a predetermined threshold, determining that the trademark logo is not combined with text; if the distance is less than the predetermined threshold, determining that the trademark logo is combined with text; when the trademark logo is not combined with text, determining the position of the trademark logo in the enterprise case material picture; if it is not in the predetermined position, determining non-compliance; when the trademark logo is combined with text, determining the positional relationship between the trademark logo and the document, and / or the ratio of the geometric size of the trademark to the geometric size of the document; judging whether the enterprise case material picture is compliant according to the positional relationship between the trademark logo and the document, and / or the ratio of the geometric size of the trademark to the geometric size of the document; Judging whether the corporate case material image is compliant based on the positional relationship between the trademark logo and the document, including: if the trademark is located in the document and the center line of the trademark coincides with the center line of the document, it is compliant; if the trademark is located outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant; if the trademark is located diagonally above the outside of the document and the left line of the trademark coincides with the left line of the document, it is compliant; if the trademark is located diagonally above the outside of the document and the right line of the trademark coincides with the right line of the document, it is compliant; if the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, it is compliant. If the trademark is located in the document and the centerline of the trademark does not coincide with the centerline of the document, it is compliant; if the trademark is located outside the document and the upper edge of the trademark coincides with the lower edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located above the outside of the document and the centerline of the trademark does not coincide with the centerline of the document, it is not compliant; Whether the corporate case material image is compliant is judged based on the positional relationship between the trademark logo and the document and the ratio of the trademark's geometric dimensions to the document's geometric dimensions, including: when the trademark is located outside the document and the upper edge of the trademark coincides with the upper edge of the document, if the height of the trademark is greater than the height of the document, it is non-compliant; when the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the trademark's width to the document's width is greater than a predetermined ratio threshold, it is non-compliant.
2. The enterprise case material picture detection method according to claim 1, characterized in that: The pre-set judgment rules are used according to the color information to judge whether the enterprise case material image is compliant, including: If it is determined that yellow and blue are adjacent to each other in the enterprise case material picture, it is determined to be non-compliant; or, If it is determined that the number of colors contained in the enterprise case material picture is greater than three, it is determined to be non-compliant.
3. The enterprise case material picture detection method according to claim 1, characterized in that: For financial companies, if the unit "yuan" is missing in the financial transaction amount in the text of the corporate case material picture, it is determined to be non-compliant.
4. The enterprise case material picture detection method according to claim 1, characterized in that: If compliance is achieved, the interface will show that no risk has been detected; Issue a prompt message, including: displaying risky fonts on the interface.
5. A device for detecting enterprise case material pictures, characterized in that: include: An acquisition module, used to acquire color information and / or text information in enterprise case material pictures; A judgment module, used to judge whether the enterprise case material picture is compliant according to color information and / or text information using a preset judgment rule; An alarm module, configured to issue a prompt message if the judgment module determines that the enterprise case material image is not compliant; The device also calculates the distance between the trademark logo and the document; If the distance is greater than or equal to a predetermined threshold, it is determined that the trademark logo is not combined with text; if the distance is less than the predetermined threshold, it is determined that the trademark logo is combined with text; when the trademark logo is not combined with text, the position of the trademark logo in the corporate case material picture is determined; If it is not in the predetermined position, it is determined to be non-compliant; when the trademark logo is combined with text, the positional relationship between the trademark logo and the document, and / or the ratio of the geometric size of the trademark to the geometric size of the document are determined; based on the positional relationship between the trademark logo and the document, and / or the ratio of the geometric size of the trademark to the geometric size of the document, it is determined whether the corporate case material image is compliant; Judging whether the corporate case material image is compliant based on the positional relationship between the trademark logo and the document, including: if the trademark is located in the document and the center line of the trademark coincides with the center line of the document, it is compliant; if the trademark is located outside the document and the bottom line of the trademark coincides with the bottom line of the document, it is compliant; if the trademark is located diagonally above the outside of the document and the left line of the trademark coincides with the left line of the document, it is compliant; if the trademark is located diagonally above the outside of the document and the right line of the trademark coincides with the right line of the document, it is compliant; if the trademark is located directly above the outside of the document and the center line of the trademark coincides with the center line of the document, it is compliant. If the trademark is located in the document and the centerline of the trademark does not coincide with the centerline of the document, it is compliant; if the trademark is located outside the document and the upper edge of the trademark coincides with the lower edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located diagonally above the outside of the document and the right edge of the trademark coincides with the left edge of the document, it is not compliant; if the trademark is located above the outside of the document and the centerline of the trademark does not coincide with the centerline of the document, it is not compliant; Whether the corporate case material image is compliant is judged based on the positional relationship between the trademark logo and the document and the ratio of the trademark's geometric dimensions to the document's geometric dimensions, including: when the trademark is located outside the document and the upper edge of the trademark coincides with the upper edge of the document, if the height of the trademark is greater than the height of the document, it is non-compliant; when the trademark is located outside the document and the left line of the trademark coincides with the left line of the document, if the ratio of the trademark's width to the document's width is greater than a predetermined ratio threshold, it is non-compliant.
6. An electronic device, characterized in that: include: at least one processor and at least one memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes one or more program instructions, and the one or more program instructions are used to execute the method according to any one of claims 1 to 4.
