Digital image recognition method and related equipment based on artificial intelligence

Through the digital image recognition method based on artificial intelligence, combined with the convolutional layer and the fully connected layer learner, the problem that the OCR algorithm is difficult to recognize handwritten digital text is solved, and the accurate recognition and recognition accuracy of handwritten digital text are achieved.

CN113705468BActive Publication Date: 2024-09-13SHENZHEN PING AN SMART HEALTHCARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111005704.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-09-13
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

It is difficult for existing OCR algorithms to accurately recognize handwritten digital text, especially in house sale and purchase evaluation images, because differences in handwriting styles of different users lead to recognition errors.

Method used

The digital image recognition method based on artificial intelligence is used to obtain the image to be recognized, recognize the image form, extract key text, cut the digital image, and input it into the pre-trained digital recognition model, combining the convolution layer, pooling layer and full The learner of the connection layer adjusts the learning parameters to improve the recognition accuracy.

Benefits of technology

It achieves accurate recognition of handwritten digital text, improves the recognition accuracy of target digital text, and avoids recognition errors caused by inaccurate extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113705468B
    Figure CN113705468B
Patent Text Reader

Abstract

The present invention relates to artificial intelligence, and provides a digital image recognition method and related equipment based on artificial intelligence. The method can obtain an image to be recognized according to a digital image recognition request, recognize an image table in the image to be recognized, perform text recognition on the recognized image based on the image table to obtain an image text, extract a first digital text according to the key text in the image table and the image text, cut the image to be recognized according to the first digital text to obtain a digital image, input the digital image into a digital recognition model to obtain a second digital text, and if the first digital text is the same as the second digital text, determine the first digital text or the second digital text as the target digital text. The present invention can accurately recognize handwritten numbers in an image. In addition, the present invention also relates to blockchain technology, and the target digital text can be stored in a blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based digital image recognition method and related equipment. Background Art

[0002] Digital image recognition refers to identifying the digital text contained in an image. With the development of artificial intelligence, digital text in images is currently mainly recognized through OCR (optical character recognition) algorithms.

[0003] However, in some images (e.g., house sale appraisal images), the digital text contained in these images is usually handwritten by users. Since different users write different texts for the same number, current OCR algorithms cannot accurately recognize handwritten numbers in images. Summary of the invention

[0004] In view of the above, it is necessary to provide a digital image recognition method and related equipment based on artificial intelligence, which can accurately recognize handwritten numbers in images.

[0005] In one aspect, the present invention provides a digital image recognition method based on artificial intelligence, the digital image recognition method based on artificial intelligence comprising:

[0006] When a digital image recognition request is received, acquiring an image to be recognized according to the digital image recognition request;

[0007] Identifying an image table in the image to be identified;

[0008] Performing text recognition on the image to be recognized based on the image table to obtain image text;

[0009] Extracting a first digital text from the image text according to the image table and the key text in the image text;

[0010] Cutting the image to be recognized according to the first digital text to obtain a digital image;

[0011] Inputting the digital image into a pre-trained digital recognition model to obtain a second digital text;

[0012] If the first digital text is identical to the second digital text, the first digital text or the second digital text is determined as the target digital text.

[0013] According to a preferred embodiment of the present invention, before inputting the digital image into a pre-trained digital recognition model to obtain the second digital text, the method further includes:

[0014] Constructing a learner, wherein the learner includes a convolutional layer, a pooling layer, and a fully connected layer;

[0015] Acquire multiple handwritten image samples, each handwritten image sample includes a sample image and handwritten text in the sample image;

[0016] generating an image vector of the sample image according to image pixels of the sample image;

[0017] Performing convolution processing on the image vector based on the convolution layer to obtain a convolution feature;

[0018] Inputting the convolutional features into the pooling layer to obtain text features;

[0019] Obtaining a weight matrix in the fully connected layer, and calculating the product of the text feature and the weight matrix to obtain a text vector;

[0020] Performing mapping processing on the text vector to obtain the predicted text of the learner for the sample image;

[0021] Comparing each character in the predicted text with each character in the handwritten text, and counting the number of different characters between the predicted text and the handwritten text, to obtain an edit distance between the predicted text and the handwritten text;

[0022] Counting the total number of characters in the predicted text to obtain a first number, and counting the total number of characters in the handwritten text to obtain a second number;

[0023] Determine the largest value between the first quantity and the second quantity as the target quantity;

[0024] Calculating the ratio of the edit distance to the target number to obtain the recognition error rate of the learner for the sample image;

[0025] The learning parameters in the learner are adjusted according to the recognition error rate until the recognition error rate no longer decreases, thereby obtaining the digital recognition model.

[0026] According to a preferred embodiment of the present invention, obtaining the image to be recognized according to the digital image recognition request includes:

[0027] Parsing the message of the digital image recognition request to obtain the data information carried in the message;

[0028] Acquire a storage path and a preset label from the data information;

[0029] An image corresponding to the preset label is obtained from the storage path as the image to be identified.

[0030] According to a preferred embodiment of the present invention, the step of identifying an image table in the image to be identified comprises:

[0031] Binarizing the image to be identified to obtain a binary image;

[0032] Acquire image line segments in the binary image based on a preset function;

[0033] The image table is obtained by performing cross processing on the image line segments according to the line segment positions of the image line segments in the binary image.

[0034] According to a preferred embodiment of the present invention, the image table includes a plurality of cells, the image text includes text information and the cells where the text information is located, and extracting the first digital text from the image text according to the image table and the key text in the image text includes:

[0035] Performing semantic analysis on the text information to obtain semantic features of the text information;

[0036] Determining the text field where the text information is located according to the semantic features;

[0037] Acquire multiple preset words from a domain vocabulary table according to the text domain, and perform word segmentation processing on the text information to obtain multiple text segmentations;

[0038] Extracting a word identical to any preset word from the multiple text word segments as the key text;

[0039] Acquire the cell where the key text is located from the image text as the key cell;

[0040] Acquire a cell associated with the key cell from the image table as a target cell;

[0041] The first digital text is extracted from the image text according to the target cell.

[0042] According to a preferred embodiment of the present invention, cutting the image to be recognized according to the first digital text to obtain a digital image includes:

[0043] Acquire the cell where the first digital text is located from the image text as the target cell;

[0044] Acquire the coordinate information of the target cell from the image to be identified;

[0045] The image to be identified is cut according to the coordinate information to obtain a digital image.

[0046] According to a preferred embodiment of the present invention, the method further comprises:

[0047] If the first digital text is different from the second digital text, generating feedback information according to the first digital text and the second digital text;

[0048] When receiving a response result based on the feedback information, extracting confirmation information from the response result;

[0049] Counting the number of responses whose confirmation information is not the second digital text;

[0050] When the number of responses is greater than a preset number, the model parameters of the digital recognition model are adjusted according to the confirmation information.

[0051] On the other hand, the present invention further proposes a digital image recognition device based on artificial intelligence, the digital image recognition device based on artificial intelligence comprising:

[0052] An acquisition unit, configured to acquire an image to be recognized according to a digital image recognition request when a digital image recognition request is received;

[0053] A recognition unit, used for recognizing an image table in the image to be recognized;

[0054] The recognition unit is further used to perform text recognition on the image to be recognized based on the image table to obtain image text;

[0055] An extraction unit, configured to extract a first digital text from the image text according to the image table and a key text in the image text;

[0056] A cutting unit, used for cutting the image to be recognized according to the first digital text to obtain a digital image;

[0057] An input unit, used for inputting the digital image into a pre-trained digital recognition model to obtain a second digital text;

[0058] The determination unit is further configured to determine the first digital text or the second digital text as the target digital text if the first digital text is the same as the second digital text.

[0059] On the other hand, the present invention further provides an electronic device, comprising:

[0060] a memory storing computer readable instructions; and

[0061] A processor executes the computer-readable instructions stored in the memory to implement the artificial intelligence-based digital image recognition method.

[0062] On the other hand, the present invention also proposes a computer-readable storage medium, in which computer-readable instructions are stored. The computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based digital image recognition method.

[0063] It can be seen from the above technical scheme that the present invention can accurately extract the first digital text from the image text through the image table and the key text, thereby avoiding the inaccurate extraction of the first digital text causing the digital recognition model to be unable to recognize the second digital text, thereby providing a certain convenience for the digital recognition model to recognize the second digital text, and further combined with the comparison between the first digital text and the second digital text, the recognition accuracy of the target digital text can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 It is a flow chart of a preferred embodiment of the digital image recognition method based on artificial intelligence of the present invention.

[0065] Figure 2 It is a functional module diagram of a preferred embodiment of the digital image recognition device based on artificial intelligence of the present invention.

[0066] Figure 3 It is a structural schematic diagram of an electronic device of a preferred embodiment of the present invention for implementing a digital image recognition method based on artificial intelligence. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0068] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the digital image recognition method based on artificial intelligence of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0069] The digital image recognition method based on artificial intelligence can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0070] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0071] The artificial intelligence-based digital image recognition method is applied to one or more electronic devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored computer-readable instructions, and whose hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0072] The electronic device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0073] The electronic device may include a network device and / or a user device. The network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of multiple network electronic devices, or a cloud consisting of a large number of hosts or network electronic devices based on cloud computing.

[0074] The network where the electronic device is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0075] S11, when a digital image recognition request is received, an image to be recognized is acquired according to the digital image recognition request.

[0076] In at least one embodiment of the present invention, the digital image recognition request may be triggered by a user who has a text recognition requirement.

[0077] The image to be recognized refers to an image that needs to be recognized by handwritten digits. The image to be recognized may record field information in multiple fields.

[0078] In at least one embodiment of the present invention, the electronic device acquiring the image to be recognized according to the digital image recognition request includes:

[0079] Parsing the message of the digital image recognition request to obtain the data information carried in the message;

[0080] Acquire a storage path and a preset label from the data information;

[0081] An image corresponding to the preset label is obtained from the storage path as the image to be identified.

[0082] The preset label is used to indicate that the image has not been processed by digital recognition.

[0083] By parsing the message, the storage path and the preset label can be quickly acquired, thereby improving the acquisition efficiency of the image to be recognized. Through the preset label, the image that needs to be digitally recognized can be accurately acquired.

[0084] S12, identifying an image table in the image to be identified.

[0085] In at least one embodiment of the present invention, the image table refers to a table in the image to be recognized. The image table includes a plurality of cells.

[0086] In at least one embodiment of the present invention, the method further comprises:

[0087] The image to be recognized is preprocessed.

[0088] By preprocessing the image to be recognized, noise information in the image to be recognized can be removed, thereby improving the recognition of the image table and the image text.

[0089] In at least one embodiment of the present invention, the electronic device identifying the image table in the image to be identified includes:

[0090] Binarizing the image to be identified to obtain a binary image;

[0091] Acquire image line segments in the binary image based on a preset function;

[0092] The image table is obtained by performing cross processing on the image line segments according to the line segment positions of the image line segments in the binary image.

[0093] The preset function may be a HoughLinesP() function.

[0094] The line segment position refers to the position of the image line segment in the binary image.

[0095] By performing binarization processing on the image to be recognized, since the values ​​in the binary image include binary information, it is helpful to improve the recognition accuracy of the image line segments, thereby improving the recognition accuracy of the image table.

[0096] Specifically, the electronic device analyzes the image to be recognized based on the cv2.cvtColor() function to obtain the binary image.

[0097] S13, performing text recognition on the image to be recognized based on the image table to obtain image text.

[0098] In at least one embodiment of the present invention, the image text refers to text information in the image table.

[0099] In at least one embodiment of the present invention, the electronic device performs text recognition on the image to be recognized based on the image table to obtain the image text, which includes:

[0100] Locate the position of the image table from the image to be recognized to obtain an image layer;

[0101] Performing corrosion processing on the image layer according to the corrosion algorithm to obtain a text feature layer;

[0102] Using a nearest neighbor search algorithm to dilate the text feature layer to obtain a first region;

[0103] Extracting a plurality of character features from the first region, and integrating the plurality of character features to obtain at least one line of text;

[0104] Different cutting intervals are adopted based on different characters to cut all the characters in the at least one line of characters to obtain the image text.

[0105] By positioning the image table, it is possible to avoid analyzing all pixels in the image to be recognized, thereby improving the recognition efficiency of the image text. By integrating the multiple character features and re-cutting the at least one line of text, it is possible to improve the recognition accuracy of the image text.

[0106] S14, extracting a first digital text from the image text according to the image table and the key text in the image text.

[0107] In at least one embodiment of the present invention, the key text refers to the label text corresponding to the handwritten number in the image text. For example, the key text may be: total.

[0108] The first digital text refers to handwritten numbers extracted from the image to be recognized based on an OCR algorithm.

[0109] In at least one embodiment of the present invention, the image table includes a plurality of cells, the image text includes text information and the cells where the text information is located, and the electronic device extracts the first digital text from the image text according to the image table and the key text in the image text, comprising:

[0110] Performing semantic analysis on the text information to obtain semantic features of the text information;

[0111] Determining the text field where the text information is located according to the semantic features;

[0112] Acquire multiple preset words from a domain vocabulary table according to the text domain, and perform word segmentation processing on the text information to obtain multiple text segmentations;

[0113] Extracting a word identical to any preset word from the multiple text word segments as the key text;

[0114] Acquire the cell where the key text is located from the image text as the key cell;

[0115] Acquire a cell associated with the key cell from the image table as a target cell;

[0116] The first digital text is extracted from the image text according to the target cell.

[0117] The text field may be a house purchase contract field, etc. It is understandable that the corresponding preset words are different for different text fields. For example, if the text field is a house purchase contract field, the preset words may be: total, total, etc., and if the text field is an outpatient expense list, the preset words may be: total amount, amount, etc.

[0118] By performing semantic analysis on the text information, the accuracy of determining the text field can be improved, and then based on the comparison between the multiple text segmentations and the multiple preset words, the key text in the image text can be comprehensively extracted, and then based on the mapping relationship between the text information stored in the image text and the cell, the key cell where the key text is located can be accurately determined, thereby improving the extraction accuracy of the first digital text.

[0119] Specifically, the electronic device performs semantic analysis on the text information, and the semantic features of the text information obtained include:

[0120] Get the MLM (Masked Language Model) network layer and the NSP (Next SentencePredicate) network layer from the network library;

[0121] Splicing the MLM network layer and the NSP network layer to obtain a semantic vector network layer;

[0122] The text information is processed using the semantic vector network layer to obtain the semantic features.

[0123] By processing the text information through the MLM network layer and the NSP network layer, semantic features with contextual semantic information can be obtained, thereby improving the representation capability of the semantic features for the text information.

[0124] Specifically, the electronic device determines the text field where the text information is located according to the semantic feature, including:

[0125] Obtain domain features of all domains from the domain library;

[0126] Calculating feature similarity between the semantic feature and the domain feature;

[0127] The domain corresponding to the domain feature with the smallest feature similarity is determined as the text domain.

[0128] By analyzing the feature similarity, it is possible to avoid the inability to match the text domain from the domain library due to a certain deviation of the semantic features, thereby improving the accuracy of the text domain.

[0129] S15, cutting the image to be recognized according to the first digital text to obtain a digital image.

[0130] In at least one embodiment of the present invention, the digital image refers to an image slice containing the first digital text. It can be understood that the digital image is a part of the image to be recognized.

[0131] In at least one embodiment of the present invention, the electronic device cuts the image to be recognized according to the first digital text to obtain a digital image, which includes:

[0132] Acquire the cell where the first digital text is located from the image text as the target cell;

[0133] Acquire the coordinate information of the target cell from the image to be identified;

[0134] The image to be identified is cut according to the coordinate information to obtain a digital image.

[0135] The coordinate information is used to indicate the position of the target cell in the image to be identified.

[0136] Through the coordinate information corresponding to the target cell, not only can the image information contained in the number to be recognized be completely cut out, but also it can avoid cutting out redundant image information from the image to be recognized, thereby avoiding affecting the second digital text recognition.

[0137] Specifically, the electronic device cuts the image to be identified according to the coordinate information to obtain a digital image, including:

[0138] Locating a detection frame in the image to be identified according to the coordinate information;

[0139] Based on the detection frame, the cut() function is called to perform a cutting process on the image to be identified to obtain the digital image.

[0140] S16, inputting the digital image into a pre-trained digital recognition model to obtain a second digital text.

[0141] In at least one embodiment of the present invention, the digit recognition model refers to a model for recognizing handwritten digits in an image.

[0142] In at least one embodiment of the present invention, the second digital text refers to the text obtained after the digital recognition model recognizes the handwritten numbers in the digital image.

[0143] In at least one embodiment of the present invention, before inputting the digital image into a pre-trained digital recognition model to obtain the second digital text, the method further includes:

[0144] Constructing a learner, wherein the learner includes a convolutional layer, a pooling layer, and a fully connected layer;

[0145] Acquire multiple handwritten image samples, each handwritten image sample includes a sample image and handwritten text in the sample image;

[0146] generating an image vector of the sample image according to image pixels of the sample image;

[0147] Performing convolution processing on the image vector based on the convolution layer to obtain a convolution feature;

[0148] Inputting the convolutional features into the pooling layer to obtain text features;

[0149] Obtaining a weight matrix in the fully connected layer, and calculating the product of the text feature and the weight matrix to obtain a text vector;

[0150] Performing mapping processing on the text vector to obtain the predicted text of the learner for the sample image;

[0151] Comparing each character in the predicted text with each character in the handwritten text, and counting the number of different characters between the predicted text and the handwritten text, to obtain an edit distance between the predicted text and the handwritten text;

[0152] Counting the total number of characters in the predicted text to obtain a first number, and counting the total number of characters in the handwritten text to obtain a second number;

[0153] Determine the largest value between the first quantity and the second quantity as the target quantity;

[0154] Calculating the ratio of the edit distance to the target number to obtain the recognition error rate of the learner for the sample image;

[0155] The learning parameters in the learner are adjusted according to the recognition error rate until the recognition error rate no longer decreases, thereby obtaining the digital recognition model.

[0156] Each handwritten image sample includes a sample image and handwritten text in the sample image. The handwritten text in the sample image includes a plurality of handwritten forms of any number from 0 to 9.

[0157] The image pixel refers to the pixel value of each pixel in the sample image.

[0158] The edit distance refers to the number of differences between each character in the predicted text and the character at the corresponding position in the handwritten text. For example, if the predicted text is 234 and the handwritten text is 236, then the edit distance is 1.

[0159] The image pixels can accurately generate an image vector representing the sample image, and then based on the image vector, the learner's prediction ability for the sample image can be accurately determined, and then the learning parameters can be adjusted by the recognition error rate to improve the recognition accuracy of the digital recognition model for handwritten text. The present invention generates the digital recognition model through the multiple handwritten images, which can improve the applicability of the digital recognition model to handwritten versions of different numbers, thereby improving the recognition accuracy of the digital recognition model for handwritten numbers. Specifically, the electronic device performs mapping processing on the text vector to obtain the learner's predicted text for the sample image, including:

[0160] Get the mapping vector of each digital text in the text mapping table;

[0161] Calculating the similarity between the text vector and the mapping vector;

[0162] The digital text corresponding to the mapping vector with the smallest similarity is determined as the predicted text.

[0163] The text mapping table stores the correspondence between a plurality of handwritten digits and mapping vectors.

[0164] Through the above implementation, the predicted text corresponding to the text vector can be quickly determined based on the text mapping table.

[0165] In at least one embodiment of the present invention, the electronic device inputs the digital image into the digital recognition model to obtain the second digital text in a manner similar to the manner in which the electronic device generates the predicted text of the sample image, which is not elaborated in the present invention.

[0166] S17: If the first digital text is the same as the second digital text, determine the first digital text or the second digital text as the target digital text.

[0167] In at least one embodiment of the present invention, the target digital text refers to a handwritten number to be recognized from the image to be recognized.

[0168] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target digital text, the above-mentioned target digital text can also be stored in a node of a blockchain.

[0169] In at least one embodiment of the present invention, the method further comprises:

[0170] If the first digital text is different from the second digital text, generating feedback information according to the first digital text and the second digital text;

[0171] When receiving a response result based on the feedback information, extracting confirmation information from the response result;

[0172] Counting the number of responses whose confirmation information is not the second digital text;

[0173] When the number of responses is greater than a preset number, the model parameters of the digital recognition model are adjusted according to the confirmation information.

[0174] The response result may be a confirmation result of the feedback information.

[0175] The number of responses refers to the total number of second digital texts generated by the digital recognition model that are different from the real results in the image to be recognized.

[0176] The preset number can be set according to the recognition accuracy of the digital recognition model.

[0177] Through the above implementation, when the total number of differences between the second digital text generated by the digital recognition model and the actual results in the image to be recognized is greater than the preset number, the digital recognition model can be further adjusted to improve the recognition accuracy of the digital recognition model for handwritten digits.

[0178] Specifically, the electronic device generates feedback information according to the first digital text and the second digital text, including:

[0179] Obtaining a preset message, wherein the preset message includes a first preset tag and a second preset tag;

[0180] The first digital text is written into a position corresponding to the first preset label, and the second digital text is written into a position corresponding to the second preset label to obtain the feedback information.

[0181] The first preset tag refers to a tag corresponding to the recognition method of the first digital text, and the second preset tag refers to a tag corresponding to the recognition method of the second digital text.

[0182] The preset message can not only quickly generate the feedback information, but also facilitate the user to know the specific identification method of the first digital text and the second digital text.

[0183] It can be seen from the above technical scheme that the present invention can accurately extract the first digital text from the image text through the image table and the key text, thereby avoiding the inaccurate extraction of the first digital text causing the digital recognition model to be unable to recognize the second digital text, thereby providing a certain convenience for the digital recognition model to recognize the second digital text, and further combined with the comparison between the first digital text and the second digital text, the recognition accuracy of the target digital text can be improved.

[0184] like Figure 2 , which is a functional module diagram of a preferred embodiment of the digital image recognition device based on artificial intelligence of the present invention. The digital image recognition device based on artificial intelligence 11 includes a generation unit 110, an acquisition unit 111, a recognition unit 112, an extraction unit 113, a cutting unit 114, an input unit 115, a determination unit 116, a preprocessing unit 117, a statistics unit 118, an adjustment unit 119, a construction unit 120, a convolution unit 121 and a mapping unit 122. The module / unit referred to in the present invention refers to a series of computer-readable instruction segments that can be acquired by the processor 13 and can complete a fixed function, which is stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0185] When receiving a digital image recognition request, the acquisition unit 111 acquires the image to be recognized according to the digital image recognition request.

[0186] In at least one embodiment of the present invention, the digital image recognition request may be triggered by a user who has a text recognition requirement.

[0187] The image to be recognized refers to an image that needs to be recognized by handwritten digits. The image to be recognized may record field information in multiple fields.

[0188] In at least one embodiment of the present invention, the acquiring unit 111 acquires the image to be recognized according to the digital image recognition request, including:

[0189] Parsing the message of the digital image recognition request to obtain the data information carried in the message;

[0190] Acquire a storage path and a preset label from the data information;

[0191] An image corresponding to the preset label is obtained from the storage path as the image to be identified.

[0192] The preset label is used to indicate that the image has not been processed by digital recognition.

[0193] By parsing the message, the storage path and the preset label can be quickly acquired, thereby improving the acquisition efficiency of the image to be recognized. Through the preset label, the image that needs to be digitally recognized can be accurately acquired.

[0194] The recognition unit 112 recognizes an image table in the image to be recognized.

[0195] In at least one embodiment of the present invention, the image table refers to a table in the image to be recognized. The image table includes a plurality of cells.

[0196] In at least one embodiment of the present invention, the preprocessing unit 117 preprocesses the image to be recognized.

[0197] By preprocessing the image to be recognized, noise information in the image to be recognized can be removed, thereby improving the recognition of the image table and the image text.

[0198] In at least one embodiment of the present invention, the recognition unit 112 recognizes the image table in the image to be recognized, including:

[0199] Binarizing the image to be identified to obtain a binary image;

[0200] Acquire image line segments in the binary image based on a preset function;

[0201] The image table is obtained by performing cross processing on the image line segments according to the line segment positions of the image line segments in the binary image.

[0202] The preset function may be a HoughLinesP() function.

[0203] The line segment position refers to the position of the image line segment in the binary image.

[0204] By binarizing the image to be identified, since the values ​​in the binary image include binary information, it is helpful to improve the recognition accuracy of the image line segments, thereby improving the recognition accuracy of the image table.

[0205] Specifically, the recognition unit 112 analyzes the image to be recognized based on the cv2.cvtColor() function to obtain the binary image.

[0206] The recognition unit 112 performs text recognition on the image to be recognized based on the image table to obtain image text.

[0207] In at least one embodiment of the present invention, the image text refers to text information in the image table.

[0208] In at least one embodiment of the present invention, the recognition unit 112 performs text recognition on the image to be recognized based on the image table, and the image text obtained includes:

[0209] Locate the position of the image table from the image to be recognized to obtain an image layer;

[0210] Performing corrosion processing on the image layer according to the corrosion algorithm to obtain a text feature layer;

[0211] Using a nearest neighbor search algorithm to dilate the text feature layer to obtain a first region;

[0212] Extracting a plurality of character features from the first region, and integrating the plurality of character features to obtain at least one line of text;

[0213] Different cutting intervals are adopted based on different characters to cut all the characters in the at least one line of characters to obtain the image text.

[0214] By positioning the image table, it is possible to avoid analyzing all pixels in the image to be recognized, thereby improving the recognition efficiency of the image text. By integrating the multiple character features and re-cutting the at least one line of text, it is possible to improve the recognition accuracy of the image text.

[0215] The extraction unit 113 extracts the first digital text from the image text according to the image table and the key text in the image text.

[0216] In at least one embodiment of the present invention, the key text refers to the label text corresponding to the handwritten number in the image text. For example, the key text may be: total.

[0217] The first digital text refers to handwritten numbers extracted from the image to be recognized based on an OCR algorithm.

[0218] In at least one embodiment of the present invention, the image table includes a plurality of cells, the image text includes text information and the cells where the text information is located, and the extraction unit 113 extracts the first digital text from the image text according to the image table and the key text in the image text, including:

[0219] Performing semantic analysis on the text information to obtain semantic features of the text information;

[0220] Determining the text field where the text information is located according to the semantic features;

[0221] Acquire multiple preset words from a domain vocabulary table according to the text domain, and perform word segmentation processing on the text information to obtain multiple text segmentations;

[0222] Extracting a word identical to any preset word from the multiple text word segments as the key text;

[0223] Acquire the cell where the key text is located from the image text as the key cell;

[0224] Acquire a cell associated with the key cell from the image table as a target cell;

[0225] The first digital text is extracted from the image text according to the target cell.

[0226] The text field may be a house purchase contract field, etc. It is understandable that the corresponding preset words are different for different text fields. For example, if the text field is a house purchase contract field, the preset words may be: total, total, etc., and if the text field is an outpatient expense list, the preset words may be: total amount, amount, etc.

[0227] By performing semantic analysis on the text information, the accuracy of determining the text field can be improved, and then based on the comparison between the multiple text segmentations and the multiple preset words, the key text in the image text can be comprehensively extracted, and then based on the mapping relationship between the text information stored in the image text and the cell, the key cell where the key text is located can be accurately determined, thereby improving the extraction accuracy of the first digital text.

[0228] Specifically, the extraction unit 113 performs semantic analysis on the text information, and obtains the semantic features of the text information including:

[0229] Get the MLM (Masked Language Model) network layer and the NSP (Next SentencePredicate) network layer from the network library;

[0230] Splicing the MLM network layer and the NSP network layer to obtain a semantic vector network layer;

[0231] The text information is processed using the semantic vector network layer to obtain the semantic features.

[0232] By processing the text information through the MLM network layer and the NSP network layer, semantic features with contextual semantic information can be obtained, thereby improving the representation capability of the semantic features for the text information.

[0233] Specifically, the text field where the text information is located determined by the extraction unit 113 according to the semantic feature includes:

[0234] Obtain domain features of all domains from the domain library;

[0235] Calculating feature similarity between the semantic feature and the domain feature;

[0236] The domain corresponding to the domain feature with the smallest feature similarity is determined as the text domain.

[0237] By analyzing the feature similarity, it is possible to avoid the inability to match the text domain from the domain library due to a certain deviation of the semantic features, thereby improving the accuracy of the text domain.

[0238] The cutting unit 114 cuts the image to be recognized according to the first digital text to obtain a digital image.

[0239] In at least one embodiment of the present invention, the digital image refers to an image slice containing the first digital text. It can be understood that the digital image is a part of the image to be recognized.

[0240] In at least one embodiment of the present invention, the cutting unit 114 cuts the image to be recognized according to the first digital text to obtain a digital image including:

[0241] Acquire the cell where the first digital text is located from the image text as the target cell;

[0242] Acquire the coordinate information of the target cell from the image to be identified;

[0243] The image to be identified is cut according to the coordinate information to obtain a digital image.

[0244] The coordinate information is used to indicate the position of the target cell in the image to be identified.

[0245] Through the coordinate information corresponding to the target cell, not only can the image information contained in the number to be recognized be completely cut out, but also it can avoid cutting out redundant image information from the image to be recognized, thereby avoiding affecting the second digital text recognition.

[0246] Specifically, the cutting unit 114 cuts the image to be identified according to the coordinate information to obtain a digital image including:

[0247] Locating a detection frame in the image to be identified according to the coordinate information;

[0248] Based on the detection frame, the cut() function is called to perform a cutting process on the image to be identified to obtain the digital image.

[0249] The input unit 115 inputs the digital image into a pre-trained digital recognition model to obtain a second digital text.

[0250] In at least one embodiment of the present invention, the digit recognition model refers to a model for recognizing handwritten digits in an image.

[0251] In at least one embodiment of the present invention, the second digital text refers to the text obtained after the digital recognition model recognizes the handwritten numbers in the digital image.

[0252] In at least one embodiment of the present invention, before inputting the digital image into a pre-trained digital recognition model to obtain the second digital text, the construction unit 120 constructs a learner, and the learner includes a convolutional layer, a pooling layer, and a fully connected layer;

[0253] The acquisition unit 111 acquires a plurality of handwritten image samples, each of which includes a sample image and handwritten text in the sample image;

[0254] The generating unit 110 generates an image vector of the sample image according to image pixels of the sample image;

[0255] The convolution unit 121 performs convolution processing on the image vector based on the convolution layer to obtain a convolution feature;

[0256] The input unit 115 inputs the convolution feature into the pooling layer to obtain text features;

[0257] The acquisition unit 111 acquires the weight matrix in the fully connected layer, and calculates the product of the text feature and the weight matrix to obtain a text vector;

[0258] The mapping unit 122 performs mapping processing on the text vector to obtain the predicted text of the learner for the sample image;

[0259] The statistical unit 118 compares each character in the predicted text with each character in the handwritten text, and counts the number of different characters between the predicted text and the handwritten text to obtain an edit distance between the predicted text and the handwritten text;

[0260] The counting unit 118 counts the total number of characters in the predicted text to obtain a first number, and counts the total number of characters in the handwritten text to obtain a second number;

[0261] The determining unit 116 determines the largest value between the first number and the second number as the target number;

[0262] The statistical unit 118 calculates the ratio of the edit distance to the target number to obtain the recognition error rate of the learner for the sample image;

[0263] The adjusting unit 119 adjusts the learning parameters in the learner according to the recognition error rate until the recognition error rate no longer decreases, thereby obtaining the digital recognition model.

[0264] Each handwritten image sample includes a sample image and handwritten text in the sample image. The handwritten text in the sample image includes a plurality of handwritten forms of any number from 0 to 9.

[0265] The image pixel refers to the pixel value of each pixel in the sample image.

[0266] The edit distance refers to the number of differences between each character in the predicted text and the character at the corresponding position in the handwritten text. For example, if the predicted text is 234 and the handwritten text is 236, then the edit distance is 1.

[0267] The image pixels can accurately generate an image vector representing the sample image, and then based on the image vector, the learner's prediction ability for the sample image can be accurately determined, and then the learning parameters can be adjusted by the recognition error rate to improve the recognition accuracy of the digital recognition model for handwritten text. The present invention generates the digital recognition model through the multiple handwritten images, which can improve the applicable scenarios of the digital recognition model for handwritten versions of different numbers, thereby improving the recognition accuracy of the digital recognition model for handwritten numbers. Specifically, the mapping unit 122 performs mapping processing on the text vector, and the predicted text obtained by the learner for the sample image includes:

[0268] Get the mapping vector of each digital text in the text mapping table;

[0269] Calculating the similarity between the text vector and the mapping vector;

[0270] The digital text corresponding to the mapping vector with the smallest similarity is determined as the predicted text.

[0271] The text mapping table stores the correspondence between a plurality of handwritten digits and mapping vectors.

[0272] Through the above implementation, the predicted text corresponding to the text vector can be quickly determined based on the text mapping table.

[0273] In at least one embodiment of the present invention, the input unit 115 inputs the digital image into the digital recognition model to obtain the second digital text in a manner similar to that of generating the predicted text of the sample image, which will not be described in detail in the present invention.

[0274] If the first digital text is the same as the second digital text, the determining unit 116 determines the first digital text or the second digital text as the target digital text.

[0275] In at least one embodiment of the present invention, the target digital text refers to a handwritten number to be recognized from the image to be recognized.

[0276] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target digital text, the above-mentioned target digital text can also be stored in a node of a blockchain.

[0277] In at least one embodiment of the present invention, if the first digital text is different from the second digital text, the generating unit 110 generates feedback information according to the first digital text and the second digital text;

[0278] When receiving a response result based on the feedback information, the extraction unit 113 extracts confirmation information from the response result;

[0279] The counting unit 118 counts the number of responses in which the confirmation information is not the second digital text;

[0280] When the number of responses is greater than a preset number, the adjustment unit 119 adjusts the model parameters of the digital recognition model according to the confirmation information.

[0281] The response result may be a confirmation result of the feedback information.

[0282] The number of responses refers to the total number of second digital texts generated by the digital recognition model that are different from the real results in the image to be recognized.

[0283] The preset number can be set according to the recognition accuracy of the digital recognition model.

[0284] Through the above implementation, when the total number of differences between the second digital text generated by the digital recognition model and the actual results in the image to be recognized is greater than the preset number, the digital recognition model can be further adjusted to improve the recognition accuracy of the digital recognition model for handwritten digits.

[0285] Specifically, the generating unit 110 generates feedback information according to the first digital text and the second digital text, including:

[0286] Obtaining a preset message, wherein the preset message includes a first preset tag and a second preset tag;

[0287] The first digital text is written into a position corresponding to the first preset label, and the second digital text is written into a position corresponding to the second preset label to obtain the feedback information.

[0288] The first preset tag refers to a tag corresponding to the recognition method of the first digital text, and the second preset tag refers to a tag corresponding to the recognition method of the second digital text.

[0289] The preset message can not only quickly generate the feedback information, but also facilitate the user to know the specific identification method of the first digital text and the second digital text.

[0290] It can be seen from the above technical solutions that the present invention generates the digital recognition model through the multiple handwritten images, which can improve the applicability of the digital recognition model to handwritten versions of different numbers, thereby improving the recognition accuracy of the digital recognition model for handwritten numbers. Further, through the image table and the key text, the first digital text can be accurately extracted from the image text, avoiding the inaccurate extraction of the first digital text causing the digital recognition model to be unable to recognize the second digital text, thereby providing a certain convenience for the digital recognition model to recognize the second digital text. Further combined with the comparison of the first digital text with the second digital text, the recognition accuracy of the target digital text can be improved.

[0291] like Figure 3 , which is a schematic diagram of the structure of an electronic device of a preferred embodiment of the present invention for implementing a digital image recognition method based on artificial intelligence.

[0292] In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer-readable instructions stored in the memory 12 and executable on the processor 13, such as an artificial intelligence-based digital image recognition program.

[0293] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the electronic device 1 may also include input and output devices, network access devices, buses, etc.

[0294] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 13 is the computing core and control center of the electronic device 1, and uses various interfaces and lines to connect various parts of the entire electronic device 1, and executes the operating system of the electronic device 1 and various installed applications, program codes, etc.

[0295] Exemplarily, the computer-readable instructions may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer-readable instructions in the electronic device 1. For example, the computer-readable instructions may be divided into a generation unit 110, an acquisition unit 111, a recognition unit 112, an extraction unit 113, a cutting unit 114, an input unit 115, a determination unit 116, a preprocessing unit 117, a statistics unit 118, an adjustment unit 119, a construction unit 120, a convolution unit 121, and a mapping unit 122.

[0296] The memory 12 can be used to store the computer-readable instructions and / or modules, and the processor 13 implements various functions of the electronic device 1 by running or executing the computer-readable instructions and / or modules stored in the memory 12, and calling the data stored in the memory 12. The memory 12 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device, etc. The memory 12 can include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other storage devices.

[0297] The memory 12 may be an external memory and / or an internal memory of the electronic device 1. Furthermore, the memory 12 may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.

[0298] If the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware to complete it through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed by the processor, the steps of the above-mentioned various method embodiments can be implemented.

[0299] The computer-readable instructions include computer-readable instruction codes, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM).

[0300] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0301] Combination Figure 1 The memory 12 in the electronic device 1 stores computer-readable instructions to implement a digital image recognition method based on artificial intelligence, and the processor 13 can execute the computer-readable instructions to implement:

[0302] When a digital image recognition request is received, acquiring an image to be recognized according to the digital image recognition request;

[0303] Identifying an image table in the image to be identified;

[0304] Performing text recognition on the image to be recognized based on the image table to obtain image text;

[0305] Extracting a first digital text from the image text according to the image table and the key text in the image text;

[0306] Cutting the image to be recognized according to the first digital text to obtain a digital image;

[0307] Inputting the digital image into a pre-trained digital recognition model to obtain a second digital text;

[0308] If the first digital text is identical to the second digital text, the first digital text or the second digital text is determined as the target digital text.

[0309] Specifically, the specific implementation method of the processor 13 for the above-mentioned computer readable instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0310] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0311] The computer-readable storage medium stores computer-readable instructions, wherein the computer-readable instructions are used to implement the following steps when executed by the processor 13:

[0312] When a digital image recognition request is received, acquiring an image to be recognized according to the digital image recognition request;

[0313] Identifying an image table in the image to be identified;

[0314] Performing text recognition on the image to be recognized based on the image table to obtain image text;

[0315] Extracting a first digital text from the image text according to the image table and the key text in the image text;

[0316] Cutting the image to be recognized according to the first digital text to obtain a digital image;

[0317] Inputting the digital image into a pre-trained digital recognition model to obtain a second digital text;

[0318] If the first digital text is identical to the second digital text, the first digital text or the second digital text is determined as the target digital text.

[0319] The modules described as separate components may or may not be physically separated, and the components shown as modules 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.

[0320] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0321] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0322] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices mentioned can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0323] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A digital image recognition method based on artificial intelligence, characterized in that: include: When a digital image recognition request is received, acquiring an image to be recognized according to the digital image recognition request; Identifying an image table in the image to be identified; Performing text recognition on the image to be recognized based on the image table to obtain image text; Extracting a first digital text from the image text according to the image table and the key text in the image text; Cutting the image to be recognized according to the first digital text to obtain a digital image; Inputting the digital image into a pre-trained digital recognition model to obtain a second digital text; If the first digital text is identical to the second digital text, the first digital text or the second digital text is determined as the target digital text.

2. The digital image recognition method based on artificial intelligence according to claim 1, characterized in that: Before inputting the digital image into a pre-trained digital recognition model to obtain a second digital text, the method further includes: Constructing a learner, wherein the learner includes a convolutional layer, a pooling layer, and a fully connected layer; Acquire multiple handwritten image samples, each handwritten image sample includes a sample image and handwritten text in the sample image; generating an image vector of the sample image according to image pixels of the sample image; Performing convolution processing on the image vector based on the convolution layer to obtain a convolution feature; Inputting the convolutional features into the pooling layer to obtain text features; Obtaining a weight matrix in the fully connected layer, and calculating the product of the text feature and the weight matrix to obtain a text vector; Performing mapping processing on the text vector to obtain the predicted text of the learner for the sample image; Comparing each character in the predicted text with each character in the handwritten text, and counting the number of different characters between the predicted text and the handwritten text, to obtain an edit distance between the predicted text and the handwritten text; Counting the total number of characters in the predicted text to obtain a first number, and counting the total number of characters in the handwritten text to obtain a second number; Determine the largest value between the first quantity and the second quantity as the target quantity; Calculating the ratio of the edit distance to the target number to obtain the recognition error rate of the learner for the sample image; The learning parameters in the learner are adjusted according to the recognition error rate until the recognition error rate no longer decreases, thereby obtaining the digital recognition model.

3. The digital image recognition method based on artificial intelligence according to claim 1, characterized in that: The acquiring the image to be recognized according to the digital image recognition request comprises: Parsing the message of the digital image recognition request to obtain the data information carried in the message; Obtaining a storage path and a preset label from the data information; An image corresponding to the preset label is obtained from the storage path as the image to be identified.

4. The method for digital image recognition based on artificial intelligence as claimed in claim 1, characterized in that: The identifying of the image table in the image to be identified comprises: Binarizing the image to be identified to obtain a binary image; Acquire image line segments in the binary image based on a preset function; The image table is obtained by performing cross processing on the image line segments according to the line segment positions of the image line segments in the binary image.

5. The digital image recognition method based on artificial intelligence as claimed in claim 1, characterized in that: The image table includes a plurality of cells, the image text includes text information and the cells where the text information is located, and extracting the first digital text from the image text according to the image table and the key text in the image text includes: Performing semantic analysis on the text information to obtain semantic features of the text information; Determining the text field where the text information is located according to the semantic features; Acquire multiple preset words from a domain vocabulary table according to the text domain, and perform word segmentation processing on the text information to obtain multiple text segmentations; Extracting a word identical to any preset word from the multiple text word segments as the key text; Acquire the cell where the key text is located from the image text as the key cell; Acquire a cell associated with the key cell from the image table as a target cell; The first digital text is extracted from the image text according to the target cell.

6. The method for digital image recognition based on artificial intelligence as claimed in claim 5, characterized in that: The step of cutting the image to be recognized according to the first digital text to obtain a digital image comprises: Acquire the cell where the first digital text is located from the image text as the target cell; Acquire the coordinate information of the target cell from the image to be identified; The image to be identified is cut according to the coordinate information to obtain a digital image.

7. The artificial intelligence-based digital image recognition method according to claim 1, characterized in that: The method further comprises: If the first digital text is different from the second digital text, generating feedback information according to the first digital text and the second digital text; When receiving a response result based on the feedback information, extracting confirmation information from the response result; Counting the number of responses whose confirmation information is not the second digital text; When the number of responses is greater than a preset number, the model parameters of the digital recognition model are adjusted according to the confirmation information.

8. A digital image recognition device based on artificial intelligence, characterized in that: The digital image recognition device based on artificial intelligence comprises: An acquisition unit, configured to acquire an image to be recognized according to a digital image recognition request when a digital image recognition request is received; A recognition unit, used for recognizing an image table in the image to be recognized; The recognition unit is further used to perform text recognition on the image to be recognized based on the image table to obtain image text; An extraction unit, configured to extract a first digital text from the image text according to the image table and a key text in the image text; A cutting unit, used for cutting the image to be recognized according to the first digital text to obtain a digital image; An input unit, used for inputting the digital image into a pre-trained digital recognition model to obtain a second digital text; The determination unit is further configured to determine the first digital text or the second digital text as the target digital text if the first digital text is the same as the second digital text.

9. An electronic device, characterized in that: The electronic device comprises: a memory storing computer-readable instructions; and A processor executes computer-readable instructions stored in the memory to implement the artificial intelligence-based digital image recognition method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based digital image recognition method as described in any one of claims 1 to 7.