A method, device and equipment for recognizing text in an advertisement image

Through deep learning image segmentation and breadth search algorithms, it solves the problem of poor detection of irregular text in the existing technology, achieves accurate recognition and location determination of curved text in advertising images, and improves detection accuracy and effect.

CN112380899BActive Publication Date: 2024-10-15SHENZHEN DIANMAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011069703.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2024-10-15
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

The existing text recognition method in advertising images based on regression detection frames is difficult to accurately detect irregular curved text areas, and is particularly ineffective in advertising images.

Method used

The image segmentation method based on deep learning is used to extract text features through a convolutional neural network, and combined with the breadth search algorithm to perform a progressive search, gradually determine the boundaries of the text area, and achieve accurate detection of curved text.

Benefits of technology

It improves the detection accuracy of curved text, avoids the adhesion of text areas and the intersection of detection frames, and significantly improves the detection effect of irregular text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112380899B_ABST
    Figure CN112380899B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for text recognition in an advertising image, the method comprising: obtaining an advertising image with text, extracting features of the advertising image, and generating text features; segmenting the text of the advertising image according to the text features, and generating a text core of the text area after segmentation; performing a progressive search on the text area according to a breadth search algorithm and the text core; obtaining the text boundary according to the search results, determining the position of the text area according to the text boundary, and completing the advertising image text detection. The embodiment of the present invention adopts a text detection method based on deep learning image segmentation, which is more accurate than the result of the regression method, and has a more obvious effect on curved text; it adopts a progressive scale expansion method, which can distinguish two adjacent and closely adjacent text areas well, avoiding the adhesion of text areas and the occurrence of text detection box intersections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method, device and equipment for recognizing text in an advertisement image. Background Art

[0002] The technology of text detection and recognition in images is one of the most important branches in the current field of image processing. The main purpose of this technology is to detect and recognize the text information in the image through computer technology, so this technology is mainly divided into two parts: text detection and text recognition. In the text detection part, the traditional image processing method is to perform a series of threshold processing on the image to separate the text information from other information in the image in order to achieve the purpose of detecting the text in the image. One of the biggest disadvantages of this type of method is that threshold processing cannot be applied to all environments. The environment such as lighting in the image particularly affects the setting of the threshold, which makes it difficult to have a stable threshold to define the boundary of text segmentation.

[0003] With the rise of artificial intelligence, deep learning has attracted more and more attention, and gradually there are deep learning methods for image text detection. The more classic deep learning OCR (Optical Character Recognition) technology, such as the CTPN (Connectionist Text Proposal Network) algorithm, detects text information in the image by regressing the detection box. If the text in the image is horizontal or vertical, this regression method has a good detection effect. However, for some curved texts, especially in advertising pictures, some texts are curved to increase the artistic effect. This regression type of deep learning method is not effective, and the detection effect cannot meet people's requirements. Because the regression box is rectangular, for curved advertising texts, it is not possible to detect the text area well.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method, device and equipment for text recognition in advertising images, aiming to solve the technical problem that when the text recognition method in advertising images based on regression detection frame in the prior art recognizes the advertising text, when the advertising text is irregular text, it is impossible to accurately detect the text area.

[0006] The technical solution of the present invention is as follows:

[0007] A method for identifying text in an advertisement image, the method comprising:

[0008] Obtain an advertisement image with text, extract features from the advertisement image, and generate text features;

[0009] Segment the text of the advertisement image according to the text features, and generate the text kernel of the text area after segmentation;

[0010] Perform progressive search on the text area based on the breadth search algorithm and text kernel;

[0011] The text boundary is obtained according to the search results, and the position of the text area is determined according to the text boundary to complete the text detection of the advertisement image.

[0012] Furthermore, the step of acquiring an advertisement image with text, extracting features from the advertisement image, and generating text features includes:

[0013] An advertisement image with text is obtained, and a convolution operation is performed on the advertisement image according to a convolution kernel of a convolutional neural network to obtain a result of the convolution operation, where the convolution operation result is the text feature.

[0014] Further preferably, the acquiring of the advertisement image with text, performing a convolution operation on the advertisement image according to a convolution kernel of a convolutional neural network, and acquiring a result of the convolution operation, wherein the convolution operation result is the text feature, includes:

[0015] Obtain an advertisement image with text, and perform a three-layer downsampling operation on the advertisement image according to the convolution kernel of the convolutional neural network;

[0016] A sampling result after three-layer downsampling is obtained, where the sampling result is the text feature.

[0017] Further preferably, the acquiring of the advertisement image with text and performing a three-layer downsampling operation on the advertisement image according to the convolution kernel of the convolutional neural network include:

[0018] Acquire an advertisement image with text, perform a convolution operation on the advertisement image according to a first convolution kernel of a convolutional neural network, and generate a first feature image of the advertisement image;

[0019] Performing a downsampling operation on the first feature image to generate a first downsampling image;

[0020] Performing a downsampling operation on the first downsampled image to generate a second downsampled image;

[0021] A downsampling operation is performed on the second down-sampled image to generate a third down-sampled image.

[0022] Preferably, segmenting the text of the advertisement image according to the text features and generating a text core of the text area after segmentation includes:

[0023] Performing a convolution operation on the advertisement image according to a second convolution kernel to generate a second feature image of the advertisement image;

[0024] Performing an upsampling operation on the second feature image of the advertisement image to generate a first upsampling image;

[0025] Performing an upsampling operation on the first upsampled image to generate a second upsampled image;

[0026] Performing an upsampling operation on the second upsampled image to generate a third upsampled image;

[0027] Fusing the first up-sampled image with the first down-sampled image to generate a first fused image;

[0028] Fusing the second up-sampled image with the second down-sampled image to generate a second fused image;

[0029] Fusing the third up-sampled image with the third down-sampled image to generate a third fused image;

[0030] The first fused image, the second fused image and the third fused image are calculated to generate a text kernel of the text area.

[0031] Furthermore, the step of performing a progressive search on the text region according to the breadth search algorithm and the text kernel includes:

[0032] According to the breadth search algorithm, the search starts from the smallest text core and gradually expands to the largest text core.

[0033] Furthermore, the text boundary is obtained according to the search results, and the position of the text area is determined according to the text boundary to complete the advertisement image text detection, including:

[0034] The text kernel of the smallest scale is detected, and the region of the text kernel is gradually expanded by adding pixels to the larger kernel;

[0035] When it is detected that the current text core is the largest, the current text core is determined to be a text area, and the advertisement image text detection is completed.

[0036] Another embodiment of the present invention provides a text recognition setting in an advertisement image, the device comprising:

[0037] A text feature generation module is used to obtain an advertisement image with text, extract features from the advertisement image, and generate text features;

[0038] An image segmentation module is used to segment the text of the advertisement image according to the text features and generate a text kernel of the text area after segmentation;

[0039] A progressive search module, used to perform progressive search on a text area based on a breadth search algorithm and a text kernel;

[0040] The text area determination module is used to obtain the text boundary according to the search results, determine the position of the text area according to the text boundary, and complete the advertisement image text detection.

[0041] Another embodiment of the present invention provides a device for recognizing text in an advertisement image, the device comprising at least one processor; and

[0042] a memory communicatively connected to the at least one processor; wherein,

[0043] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned method for recognizing text in an advertisement image.

[0044] Another embodiment of the present invention further provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the above-mentioned method for recognizing text in an advertising image.

[0045] Beneficial effect: The embodiment of the present invention adopts a text detection method based on deep learning image segmentation, which is more accurate than the result of the regression method and has a more obvious effect on curved text; it adopts a progressive scale expansion method, which can well distinguish two adjacent text areas, avoiding the adhesion of text areas and the intersection of text detection boxes. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0047] Figure 1 A flowchart of a preferred embodiment of a method for recognizing text in an advertisement image according to the present invention;

[0048] Figure 2 A schematic diagram of functional modules of a preferred embodiment of a device for recognizing text in an advertisement image according to the present invention;

[0049] Figure 3 The figure is a schematic diagram of the hardware structure of a preferred embodiment of a device for recognizing text in an advertisement image according to the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.

[0051] The embodiment of the present invention provides a method for recognizing text in an advertisement image. Figure 1 , Figure 1 FIG. 1 is a flowchart of a preferred embodiment of a method for recognizing text in an advertisement image according to the present invention. Figure 1 As shown, it includes the steps of:

[0052] Step S100: acquiring an advertisement image with text, extracting features from the advertisement image, and generating text features;

[0053] Step S200, segmenting the text of the advertisement image according to the text features, and generating a text core of the text area after segmentation;

[0054] Step S300, performing a progressive search on the text area according to the breadth search algorithm and the text kernel;

[0055] Step S400: Acquire text boundaries according to the search results, determine the position of the text area according to the text boundaries, and complete the advertisement image text detection.

[0056] In specific implementation, the embodiment of the present invention aims at the problem that the detection effect of curved text in advertising images is poor in the prior art, and proposes a new text recognition method in advertising images. The method is based on deep learning image segmentation, and the segmentation result of the text kernel of the text area is obtained. If the text is curved, the obtained text kernel is a curved text kernel, and the shape of the text kernel completely follows the shape of the text. Secondly, the method adopts a progressive scale expansion search method. For the obtained text kernel, a breadth search method is performed to find the boundary of the text area until the boundary is found.

[0057] First, extract the features of the advertisement image with text, and after obtaining the text features, perform image text segmentation, and finally obtain the smallest kernel of the text area. Then, use the breadth search method to search the text kernel progressively for the text edge, find the text boundary, and finally determine the location of the text area, thereby obtaining the result of advertisement image text detection.

[0058] Furthermore, an advertisement image with text is obtained, and features of the advertisement image are extracted to generate text features, including:

[0059] An advertisement image with text is obtained, and a convolution operation is performed on the advertisement image according to a convolution kernel of a convolutional neural network to obtain a result of the convolution operation, where the convolution operation result is the text feature.

[0060] In the specific implementation, an advertising image with text is obtained, and features of the advertising image with text are extracted through a convolutional neural network method. After the text features are obtained, the image text is segmented, and finally the smallest kernel of the text area is obtained.

[0061] Furthermore, an advertisement image with text is obtained, and a convolution operation is performed on the advertisement image according to a convolution kernel of a convolutional neural network to obtain a result of the convolution operation, wherein the convolution operation result is the text feature, including:

[0062] Obtain an advertisement image with text, and perform a three-layer downsampling operation on the advertisement image according to the convolution kernel of the convolutional neural network;

[0063] A sampling result after three-layer downsampling is obtained, where the sampling result is the text feature.

[0064] In specific implementation, the convolution operation of the convolutional neural network is composed of three parts: a bottom-up circuit, a top-down circuit, and a horizontal connection. The bottom-up circuit is a downsampling process. The image undergoes three layers of downsampling to form a pyramid-shaped network. The sampling result after three layers of downsampling is to obtain text features.

[0065] Furthermore, an advertisement image with text is obtained, and a three-layer downsampling operation is performed on the advertisement image according to the convolution kernel of the convolutional neural network, including:

[0066] Acquire an advertisement image with text, perform a convolution operation on the advertisement image according to a first convolution kernel of a convolutional neural network, and generate a first feature image of the advertisement image;

[0067] Performing a downsampling operation on the first feature image to generate a first downsampling image;

[0068] Performing a downsampling operation on the first downsampled image to generate a second downsampled image;

[0069] A downsampling operation is performed on the second down-sampled image to generate a third down-sampled image.

[0070] In the specific implementation, the most common forward propagation process of the convolutional neural network, the feature map of each layer will be convolutionally operated with a convolution kernel of a certain size. After the convolution operation, the size of the feature map will become smaller. Specifically, the convolutional neural network of the embodiment of the present invention adopts the ResNet network, which is the most widely used convolutional neural network feature extraction network. The ResNet network in the embodiment of the present invention uses the last feature activation output of each downsampling stage, which can represent the strongest feature output of each layer of the feature map.

[0071] Furthermore, the text of the advertisement image is segmented according to the text features, and a text kernel of the text area is generated after segmentation, including:

[0072] Performing a convolution operation on the advertisement image according to a second convolution kernel to generate a second feature image of the advertisement image;

[0073] Performing an upsampling operation on the second feature image of the advertisement image to generate a first upsampling image;

[0074] Performing an upsampling operation on the first upsampled image to generate a second upsampled image;

[0075] Performing an upsampling operation on the second upsampled image to generate a third upsampled image;

[0076] Fusing the first up-sampled image with the first down-sampled image to generate a first fused image;

[0077] Fusing the second up-sampled image with the second down-sampled image to generate a second fused image;

[0078] Fusing the third up-sampled image with the third down-sampled image to generate a third fused image;

[0079] The first fused image, the second fused image and the third fused image are calculated to generate a text kernel of the text area.

[0080] In specific implementation, the top-down circuit is an upsampling process. The image undergoes three layers of upsampling in total, forming an inverted pyramid-shaped network. This process is to upsample the part with the strongest expression features in each upsampling to the next layer. The horizontal connection part is involved in the three layers of downsampling layers and the corresponding three layers of upsampling layers. The purpose is to fuse the corresponding upsampling layer with a downsampling layer. The two layers of horizontal connection must be the same in spatial scale. Finally, the results of the fusion of the three images are calculated to obtain the smallest kernel of the text.

[0081] Furthermore, based on the breadth search algorithm and the text kernel, a progressive search is performed on the text region, including:

[0082] According to the breadth search algorithm, the search starts from the smallest text core and gradually expands to the largest text core.

[0083] In specific implementation, each text line has a different text kernel, the size and shape of these kernels are exactly the same as the size and shape of the original text, and the center is the center of the text. Each text line has N text kernels of different sizes, and the largest text kernel is actually the text area itself. These text kernels are searched in a breadth manner, starting from the smallest text kernel and gradually expanding to the largest text kernel. This method can well distinguish the edge pixels of different texts, and each level of expanded text kernel is constrained by the previous text kernel, so different text areas can be distinguished well.

[0084] Further, the text boundary is obtained according to the search results, and the position of the text area is determined according to the text boundary to complete the advertisement image text detection, including:

[0085] The text kernel of the smallest scale is detected, and the region of the text kernel is gradually expanded by adding pixels to the larger kernel;

[0086] When it is detected that the current text core is the largest, the current text core is determined to be a text area, and the advertisement image text detection is completed.

[0087] In specific implementation, for the predicted n segmentation instances S1...Sn, in order to obtain the final detection result, the following operations are mainly performed: start from the kernel S1 with the smallest scale (instances can be distinguished in this step, and different instances have different connected domains); expand their areas by gradually adding more pixels to larger kernels; and complete until the largest kernel is found.

[0088] It can be seen from the above method embodiments that the embodiments of the present invention provide a method for text recognition in advertising images. Based on the deep learning image segmentation method, the smallest kernel of the text area is obtained. Even for curved text, a curved text kernel is obtained. The obtained text kernel is then progressively scaled to search for text boundaries, ultimately achieving the purpose of detecting text of any shape in the advertising image.

[0089] The detection result of the embodiment of the present invention is more accurate than that of the regression method, and the effect on curved text is more significantly improved.

[0090] The method of progressive scale expansion is adopted. This method can distinguish two adjacent text areas very well, avoiding the adhesion of text areas and the intersection of text detection boxes.

[0091] It should be noted that there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.

[0092] Another embodiment of the present invention provides a text recognition device in an advertisement image. Figure 2 As shown, the device 1 comprises:

[0093] The text feature generation module 11 is used to obtain an advertisement image with text, extract features from the advertisement image, and generate text features;

[0094] An image segmentation module 12 is used to segment the text of the advertisement image according to the text features and generate a text kernel of the text area after segmentation;

[0095] A progressive search module 13, used to perform progressive search on the text area according to the breadth search algorithm and the text kernel;

[0096] The text region determination module 14 is used to obtain the text boundary according to the search results, determine the position of the text region according to the text boundary, and complete the advertisement image text detection.

[0097] The specific implementation method is shown in the method embodiment, which will not be described here in detail.

[0098] Another embodiment of the present invention provides a device for recognizing text in an advertisement image. Figure 3 As shown, the device 10 includes:

[0099] One or more processors 110 and memory 120, Figure 3 A processor 110 is used as an example for description. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0100] The processor 110 is used to complete various control logics of the device 10, which can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISCMachine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.

[0101] The memory 120 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions corresponding to the method for recognizing text in an advertisement image in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the device 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implements the method for recognizing text in an advertisement image in the above method embodiment.

[0102] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store applications required for operating the device and at least one function; the data storage area may store data created according to the use of the device 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] One or more units are stored in the memory 120, and when executed by one or more processors 110, perform the text recognition method in the advertisement image in any of the above method embodiments, for example, perform the above described Figure 1 The method comprises steps S100 to S400.

[0104] An embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, to execute the above-described Figure 1 The method comprises steps S100 to S400.

[0105] As an example, the non-volatile storage medium can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable ROM (EEPROM), or a flash memory. Volatile memory can include a random access memory (RAM) as an external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.

[0106] Another embodiment of the present invention provides a computer program product, the computer program product includes a computer program stored in a non-volatile computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a processor, the processor executes the method for recognizing text in an advertisement image of the above method embodiment. Figure 1 The method comprises steps S100 to S400.

[0107] The embodiments described above are merely illustrative, in which the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can exist in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0109] Conditional language such as "can," "can," "might," or "may," among other things, unless specifically stated otherwise or otherwise understood within the context as used, is generally intended to convey that particular embodiments can include (while other embodiments do not) particular features, elements, and / or operations. Thus, such conditional language is also generally intended to imply that features, elements, and / or operations are anyway required for one or more embodiments or that one or more embodiments must include logic for determining, with or without input or prompting, whether such features, elements, and / or operations are included or will be performed in any particular embodiment.

[0110] What has been described herein in this specification and the accompanying drawings includes examples of methods and devices for text recognition within advertising images. Of course, it is not possible to describe every conceivable combination of elements and / or methods for the purpose of describing the various features of the present disclosure, but it is recognized that many other combinations and permutations of the disclosed features are possible. Therefore, it is apparent that various modifications can be made to the present disclosure without departing from the scope or spirit of the present disclosure. In addition, or in an alternative, other embodiments of the present disclosure may be apparent from consideration of the present specification and the accompanying drawings and from the practice of the present disclosure as presented herein. It is intended that the examples set forth in the present specification and the accompanying drawings are considered to be illustrative and not restrictive in all respects. Although specific terms are employed herein, they are used in a general and descriptive sense and are not used for limiting purposes.

Claims

1. A method for identifying text in an advertisement image, characterized in that , the method comprises: Obtain an advertisement image with text, extract features from the advertisement image, and generate text features; Segment the text of the advertisement image according to the text features, and generate the text kernel of the text area after segmentation; Perform progressive search on the text area based on the breadth search algorithm and text kernel; Obtain text boundaries based on search results, determine the location of the text area based on the text boundaries, and complete the advertisement image text detection; The step of performing a progressive search on the text region based on the breadth search algorithm and the text kernel includes: According to the breadth search algorithm, the search starts from the smallest text core and gradually expands to the largest text core; The method of obtaining the text boundary according to the search results, determining the position of the text area according to the text boundary, and completing the advertisement image text detection includes: The text kernel of the smallest scale is detected, and the region of the text kernel is gradually expanded by adding pixels to the larger kernel; When it is detected that the current text core is the largest, the current text core is determined to be a text area, and the advertisement image text detection is completed.

2. The method for recognizing text in an advertisement image according to claim 1, characterized in that: The step of obtaining an advertisement image with text, extracting features from the advertisement image, and generating text features includes: An advertisement image with text is obtained, and a convolution operation is performed on the advertisement image according to a convolution kernel of a convolutional neural network to obtain a result of the convolution operation, where the convolution operation result is the text feature.

3. The method for recognizing text in an advertisement image according to claim 2, characterized in that: The acquiring of the advertisement image with text, performing a convolution operation on the advertisement image according to the convolution kernel of the convolutional neural network, and acquiring a result of the convolution operation, wherein the convolution operation result is the text feature, includes: Obtain an advertisement image with text, and perform a three-layer downsampling operation on the advertisement image according to the convolution kernel of the convolutional neural network; A sampling result after three-layer downsampling is obtained, where the sampling result is the text feature.

4. The method for recognizing text in an advertisement image according to claim 3, characterized in that: The step of obtaining an advertisement image with text and performing a three-layer downsampling operation on the advertisement image according to a convolution kernel of a convolutional neural network includes: Acquire an advertisement image with text, perform a convolution operation on the advertisement image according to a first convolution kernel of a convolutional neural network, and generate a first feature image of the advertisement image; Performing a downsampling operation on the first feature image to generate a first downsampling image; Performing a downsampling operation on the first downsampled image to generate a second downsampled image; A downsampling operation is performed on the second down-sampled image to generate a third down-sampled image.

5. The method for recognizing text in an advertisement image according to claim 4, characterized in that: The step of segmenting the text of the advertisement image according to the text features and generating a text core of the text area after segmentation includes: Performing a convolution operation on the advertisement image according to a second convolution kernel to generate a second feature image of the advertisement image; Performing an upsampling operation on the second feature image of the advertisement image to generate a first upsampling image; Performing an upsampling operation on the first upsampled image to generate a second upsampled image; Performing an upsampling operation on the second upsampled image to generate a third upsampled image; Fusing the first up-sampled image with the first down-sampled image to generate a first fused image; Fusing the second up-sampled image with the second down-sampled image to generate a second fused image; Fusing the third up-sampled image with the third down-sampled image to generate a third fused image; The first fused image, the second fused image and the third fused image are calculated to generate a text kernel of the text area.

6. A device for recognizing text in an advertisement image, characterized in that: The device comprises: A text feature generation module is used to obtain an advertisement image with text, extract features from the advertisement image, and generate text features; An image segmentation module is used to segment the text of the advertisement image according to the text features and generate a text kernel of the text area after segmentation; A progressive search module, used to perform progressive search on a text area based on a breadth search algorithm and a text kernel; A text area determination module is used to obtain text boundaries according to search results, determine the position of the text area according to the text boundaries, and complete the advertisement image text detection; The step of performing a progressive search on the text region based on the breadth search algorithm and the text kernel includes: According to the breadth search algorithm, the search starts from the smallest text core and gradually expands to the largest text core; The method of obtaining the text boundary according to the search results, determining the position of the text area according to the text boundary, and completing the advertisement image text detection includes: The text kernel of the smallest scale is detected, and the region of the text kernel is gradually expanded by adding pixels to the larger kernel; When it is detected that the current text core is the largest, the current text core is determined to be a text area, and the advertisement image text detection is completed.

7. A device for recognizing text in an advertisement image, characterized in that: The device comprises at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for recognizing text in an advertising image according to any one of claims 1 to 5.

8. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the method for recognizing text in an advertising image according to any one of claims 1 to 5.