CN111986117A - System and method for correcting arithmetic operation - Google Patents

System and method for correcting arithmetic operation Download PDF

Info

Publication number
CN111986117A
CN111986117A CN202010895936.0A CN202010895936A CN111986117A CN 111986117 A CN111986117 A CN 111986117A CN 202010895936 A CN202010895936 A CN 202010895936A CN 111986117 A CN111986117 A CN 111986117A
Authority
CN
China
Prior art keywords
layer
formula
arithmetic
neural network
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010895936.0A
Other languages
Chinese (zh)
Inventor
殷亚凤
张灵毓
谢磊
陆桑璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University
Original Assignee
Nanjing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University filed Critical Nanjing University
Priority to CN202010895936.0A priority Critical patent/CN111986117A/en
Publication of CN111986117A publication Critical patent/CN111986117A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T5/70
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20028Bilateral filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

The invention discloses an arithmetic operation correcting system and a method, wherein the system comprises: the device comprises an image preprocessing and segmenting module, a character recognition module and a calculation and verification module; the image preprocessing and dividing module carries out preprocessing such as denoising and binarization on the original image and then divides the original image into single numbers or symbols; the character recognition module recognizes the segmented single character by using a convolutional neural network; the calculation and verification module recombines the recognized characters into arithmetic and calculates the correctness of the verification answer. The invention realizes the shooting and identification of the homework through the common intelligent electronic equipment such as a smart phone and the like, can run locally to finish the automatic correction of arithmetic homework, is suitable for the correction of the mathematical calculation homework of the lower grades of primary schools, and helps teachers improve the teaching efficiency.

Description

System and method for correcting arithmetic operation
Technical Field
The invention belongs to the technical field of picture processing and character recognition, and particularly relates to an automatic arithmetic operation correction system and method capable of being shot based on a smart phone and running locally.
Background
Homework has long played an important role in student education. For teachers, the knowledge mastering conditions of students can be further known by correcting homework of the students; on the other hand, it is helpful for students to wholesale homework to further master their knowledge. However, correcting homework is a very time-consuming task, especially for those tasks with simple and clear titles but large number of titles, such as: the four fundamental operational problems of primary school. Therefore, it is necessary to help the teacher reduce the burden of homework correction by technical means.
At present, the technology for the four fundamental operational problems of primary schools mainly takes pictures through mobile intelligent equipment (smart phones, tablets and the like), sends the pictures to a server through a network for processing and identification, and returns identification results to the mobile intelligent equipment through the network. Such a way of working relies on network connectivity and uploading user data may risk privacy disclosure.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides an arithmetic job modification system and method, so as to solve the problems that the method for modifying home jobs in the prior art depends on network connection and privacy disclosure may occur in uploading user data.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
the invention provides an arithmetic operation correcting system, comprising: the device comprises an image preprocessing and segmenting module, a character recognition module and a calculation and verification module; wherein the content of the first and second substances,
the image preprocessing and dividing module is used for carrying out graying, noise reduction and binarization processing on an input image initially containing operation content to convert the image into a binary image, cutting the binary image into a plurality of line images by using a horizontal projection method, wherein each line image contains one or a plurality of four arithmetic operation formulas, then dividing each line image into the image containing a single arithmetic formula by using a vertical projection method, and dividing each four arithmetic operation formulas into the image containing a single character by using a vertical projection method;
the character recognition module is used for recognizing the picture containing the single character through a convolutional neural network model;
and the calculation verification module is used for finishing the calculation of the calculation formula on the left side of the arithmetic formula equal sign by a dividing and conquering method, comparing the calculation result with the result on the right side of the arithmetic formula equal sign and outputting a comparison result.
Further, the image preprocessing and segmenting module preprocessing the input picture specifically includes:
(11) setting the RGB components of each pixel of the input picture to be the same value to finish graying the picture;
(12) and (3) performing noise reduction on the grayed picture by using bilateral filtering, wherein a bilateral filtering formula is expressed as follows:
Figure BDA0002658424540000011
where i, j represents the other pixel coordinates of the template window, k, l represents the center coordinate of the template window, σd,σrRepresents the standard deviation of the gaussian function, and f (i, j) and f (k, l) represent the pixel values at coordinates (i, j) and (k, l), respectively;
(13) and processing the processed picture by using an adaptive threshold method, wherein the pixel value is higher than the threshold value and is set to be 1, and the pixel value is lower than the threshold value and is set to be 0, so that a binary image is obtained.
Further, the process of segmenting the binary image by the image preprocessing and segmenting module specifically includes:
(21) horizontally projecting the obtained binary image, counting the number of black pixel points of each line of the image, recording the number in an array P, expressing the number of black pixel points of the ith line by P [ i ], and then segmenting the part of the binary image corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array P:
Figure BDA0002658424540000021
thereby obtaining row diagrams, wherein each row diagram has one or more equations in the horizontal direction;
(22) vertically projecting the obtained line graph, and recording the sum SumLength of the lengths of the continuous blank columns and the number Num of the continuous blank columns; when the length L of a continuous blank column is more than 4 SumLength/Num, the continuous blank column is taken as a partition boundary, so that each line graph is finally divided into column graphs showing a single formula;
(23) vertically projecting the obtained histogram, counting the number of black pixels in each row of the histogram, recording the number of black pixels in an array Q, expressing the number of black pixels in the ith row by Q [ i ], and then segmenting the portion of the histogram corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array Q:
Figure BDA0002658424540000022
thereby obtaining the picture of a single character in each nomogram.
Further, the character recognition module respectively performs printing character recognition and handwriting character recognition by using two convolutional neural network models with the same structure but different parameters.
Further, before inputting the picture data into the convolutional neural network model, the character recognition module needs to perform boundary expansion and scaling on the single character picture to change the size of the single character picture into a standard size (print volume characters 28 × 28, handwriting characters 56 × 56).
Further, the convolutional neural network model is specifically as follows:
(31) the first layer of the convolutional neural network model is the convolutional layer, the convolutional kernel size is 3 × 3, 32 convolutional kernels are received, the received input size is (56,56,1), and the activation function uses the relu function, which is expressed by the formula:
f(x)=max(0,wTx+b);
(32) the second layer of the convolutional neural network model is a pooling layer, the maximum pooling operation is carried out on the output of the first layer, the size of a pooling window is 2 x 2, and the step length is 2;
(33) the third layer of the convolutional neural network model is a convolutional layer, the size of a convolutional kernel is 3 x 3, 64 convolutional kernels are used in total, and a relu function is used as an activation function;
(34) the fourth layer of the convolutional neural network is a pooling layer, the output of the third layer is subjected to maximum pooling operation, the size of a pooling window is 2 x 2, and the step length is 2;
(35) the fifth layer of the convolutional neural network is a convolutional layer, the size of the convolutional kernel is 3 x 3, 128 convolutional kernels are used in total, and the relu function is used as an activation function;
(36) the sixth layer of the convolutional neural network is a Flatten layer and is used for flattening the output of the fifth layer to a one-dimensional space;
(37) the seventh layer and the eighth layer of the convolutional neural network are all fully connected layers, the output scale of the seventh layer is 32 × 1, the activation function is a relu function, the output scale of the eighth layer is 10 × 1, the activation function is softmax, and the formula is as follows:
Figure BDA0002658424540000031
further, the convolutional neural network model identifies the input scale of the print volume character as (28,28,1), and the output scale as 15 × 1.
Further, the character recognition module performs character recognition on each formula by using a print body recognition model until a sign is recognized, and then the recognition process is changed to recognize the rest characters of the formula by using a handwriting recognition model.
Furthermore, the calculation and verification module combines the characters identified by the character identification module to form a formula form of four arithmetic operations which can be stored in a computer.
Further, the division and treatment method of the calculation and verification module specifically comprises the following steps:
(41) searching a sign in an operational expression, and dividing the whole operational expression into a left calculation part and a right result part;
(42) for the left part calculation part, repeatedly searching an operator with the lowest priority in the formula, splitting the original formula into two sub-formulas until the sub-formulas only contain a single operand, continuously backtracking the values of the sub-formulas, and finally obtaining the result of the left part calculation;
(43) and comparing the result calculated on the left side with the result calculated on the right side, and returning the result to the user.
The invention discloses an arithmetic operation correction method, which comprises the following steps:
1) acquiring picture data containing job content;
2) preprocessing the acquired picture to convert the preprocessed picture into a binary image;
3) dividing the binary image to obtain the content of each formula, and further dividing each formula to obtain a picture containing a single character;
4) performing boundary expansion and scaling on pictures containing single characters to change the size of the pictures into a specified size (print characters 28 x 28 and handwriting characters 56 x 56);
5) identifying the character picture by using a convolutional neural network model;
6) combining the recognized characters by taking the arithmetic as a unit to obtain each arithmetic;
7) aiming at each formula, searching a sign to divide the formula into a left calculation part and a right result part;
8) for the left calculation part, calculating by using a divide-and-conquer method to obtain a result;
9) and comparing the calculated result with the result of the right result part, and outputting a comparison result.
The invention has the beneficial effects that:
the invention can finish the correction of the operation by taking pictures through common electronic equipment such as a smart phone and the like, has simple operation and can improve the correction efficiency of teachers to a great extent.
The invention can quickly finish the correction of the operation without network connection, and can well protect the privacy of the user
Drawings
FIG. 1 is a block diagram of a system according to the present invention.
FIG. 2 is a schematic diagram of a picture preprocessing and segmentation module according to the present invention.
FIG. 3 is a schematic diagram of a convolutional neural network model according to the present invention.
FIG. 4 is a schematic diagram of a character recognition process according to the present invention.
FIG. 5 is a schematic diagram of a computing verification module according to an embodiment of the present invention.
Detailed Description
In order to facilitate understanding of those skilled in the art, the present invention will be further described with reference to the following examples and drawings, which are not intended to limit the present invention.
Referring to fig. 1, an arithmetic job modification system according to the present invention includes: the device comprises an image preprocessing and segmenting module, a character recognition module and a calculation and verification module; wherein the content of the first and second substances,
the image preprocessing and dividing module is used for carrying out graying, noise reduction and binarization processing on an input image initially containing operation content to convert the image into a binary image, cutting the binary image into a plurality of line images by using a horizontal projection method, wherein each line image contains one or a plurality of four arithmetic operation formulas, then dividing each line image into the image containing a single arithmetic formula by using a vertical projection method, and dividing each arithmetic formula into the image containing a single character by using a vertical projection method;
referring to fig. 2, the preprocessing the input picture by the image preprocessing and segmenting module specifically includes:
(11) setting the RGB components of each pixel of the input picture to be the same value to finish graying the picture;
(12) and (3) performing noise reduction on the grayed picture by using bilateral filtering, wherein a bilateral filtering formula is expressed as follows:
Figure BDA0002658424540000041
where i, j represents the other pixel coordinates of the template window, k, l represents the center coordinate of the template window, σd,σrRepresents the standard deviation of the gaussian function, and f (i, j) and f (k, l) represent the pixel values at coordinates (i, j) and (k, l), respectively;
(13) and processing the processed picture by using an adaptive threshold method, wherein the pixel value is higher than the threshold value and is set to be 1, and the pixel value is lower than the threshold value and is set to be 0, so that a binary image is obtained.
The process of segmenting the binary image by the image preprocessing and segmenting module specifically comprises the following steps:
(21) horizontally projecting the obtained binary image, counting the number of black pixel points of each line of the image, recording the number in an array P, expressing the number of black pixel points of the ith line by P [ i ], and then segmenting the part of the binary image corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array P:
Figure BDA0002658424540000051
thereby obtaining row diagrams, wherein each row diagram has one or more equations in the horizontal direction;
(22) vertically projecting the obtained line graph, and recording the sum SumLength of the lengths of the continuous blank columns and the number Num of the continuous blank columns; when the length L of a continuous blank column is more than 4 SumLength/Num, the continuous blank column is taken as a partition boundary, so that each line graph is finally divided into column graphs showing a single formula;
(23) vertically projecting the obtained histogram, counting the number of black pixels in each row of the histogram, recording the number of black pixels in an array Q, expressing the number of black pixels in the ith row by Q [ i ], and then segmenting the portion of the histogram corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array Q:
Figure BDA0002658424540000052
thereby obtaining the picture of a single character in each nomogram.
The character recognition module is used for recognizing the picture containing the single character through a convolutional neural network model;
the character recognition module respectively performs printing character recognition and handwriting character recognition by using two convolutional neural network models with the same structure but different parameters.
Before inputting the picture data into the convolutional neural network model, the character recognition module needs to perform boundary expansion and scaling on the single character picture to change the size of the single character picture into a standard size (print volume characters 28 × 28, handwriting volume characters 56 × 56).
Referring to fig. 3, the convolutional neural network model is specifically as follows:
(31) the first layer of the convolutional neural network model is the convolutional layer, the convolutional kernel size is 3 × 3, 32 convolutional kernels are received, the received input size is (56,56,1), and the activation function uses the relu function, which is expressed by the formula:
f(x)=max(0,wTx+b);
(32) the second layer of the convolutional neural network model is a pooling layer, the maximum pooling operation is carried out on the output of the first layer, the size of a pooling window is 2 x 2, and the step length is 2;
(33) the third layer of the convolutional neural network model is a convolutional layer, the size of a convolutional kernel is 3 x 3, 64 convolutional kernels are used in total, and a relu function is used as an activation function;
(34) the fourth layer of the convolutional neural network is a pooling layer, the output of the third layer is subjected to maximum pooling operation, the size of a pooling window is 2 x 2, and the step length is 2;
(35) the fifth layer of the convolutional neural network is a convolutional layer, the size of the convolutional kernel is 3 x 3, 128 convolutional kernels are used in total, and the relu function is used as an activation function;
(36) the sixth layer of the convolutional neural network is a Flatten layer and is used for flattening the output of the fifth layer to a one-dimensional space;
(37) the seventh layer and the eighth layer of the convolutional neural network are all fully connected layers, the output scale of the seventh layer is 32 × 1, the activation function is a relu function, the output scale of the eighth layer is 10 × 1, the activation function is softmax, and the formula is as follows:
Figure BDA0002658424540000061
the convolutional neural network model identifies the input scale of the print volume character as (28,28,1) and the output scale as 15 x 1.
Referring to fig. 4, the recognition process of the character recognition module is that for each formula, character recognition is performed by using a print body recognition model until a sign is recognized, and then the recognition process is changed to recognize the rest characters of the formula by using a handwriting recognition model.
The calculation verification module is used for finishing the calculation of the left calculation formula of the arithmetic equal sign by a dividing and conquering method, comparing the calculation result with the right result of the arithmetic equal sign and outputting a comparison result;
the calculation and verification module combines the characters identified by the character identification module to form a formula form of four arithmetic operations which can be stored in a computer.
Referring to fig. 5, the divide and conquer method specifically includes:
(41) searching a sign in an operational expression, and dividing the whole operational expression into a left calculation part and a right result part;
(42) for the left part calculation part, repeatedly searching an operator with the lowest priority in the formula, splitting the original formula into two sub-formulas until the sub-formulas only contain a single operand, continuously backtracking the values of the sub-formulas, and finally obtaining the result of the left part calculation; operator priorities are as follows:
Figure BDA0002658424540000062
(43) and comparing the result calculated on the left side with the result calculated on the right side, and returning the result to the user.
The invention discloses an arithmetic operation correction method, which comprises the following steps:
1) acquiring picture data containing job content;
2) preprocessing the acquired picture to convert the preprocessed picture into a binary image;
3) dividing the binary image to obtain the content of each formula, and further dividing each formula to obtain a picture containing a single character;
4) performing boundary expansion and scaling on pictures containing single characters to change the size of the pictures into a specified size (print characters 28 x 28 and handwriting characters 56 x 56);
5) identifying the character picture by using a convolutional neural network model;
6) combining the recognized characters by taking the arithmetic as a unit to obtain each arithmetic;
7) aiming at each formula, searching a sign to divide the formula into a left calculation part and a right result part;
8) for the left calculation part, calculating by using a divide-and-conquer method to obtain a result;
9) and comparing the calculated result with the result of the right result part, and outputting a comparison result.
While the invention has been described in terms of its preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. An arithmetic job modification system, comprising: the device comprises an image preprocessing and segmenting module, a character recognition module and a calculation and verification module; wherein the content of the first and second substances,
the image preprocessing and dividing module is used for carrying out graying, noise reduction and binarization processing on an input image initially containing operation content to convert the image into a binary image, cutting the binary image into a plurality of line images by using a horizontal projection method, wherein each line image contains one or a plurality of four arithmetic operation formulas, then dividing each line image into the image containing a single arithmetic formula by using a vertical projection method, and dividing each arithmetic formula into the image containing a single character by using a vertical projection method;
the character recognition module is used for recognizing the picture containing the single character through a convolutional neural network model;
and the calculation verification module is used for finishing the calculation of the calculation formula on the left side of the arithmetic formula equal sign through a dividing and conquering method, comparing the calculation result with the calculation formula equal sign result on the right side, and outputting a comparison result.
2. The arithmetic job modification system according to claim 1, wherein the image preprocessing and segmentation module preprocessing the input picture specifically comprises:
(11) setting the RGB components of each pixel of the input picture to be the same value to finish graying the picture;
(12) and (3) performing noise reduction on the grayed picture by using bilateral filtering, wherein a bilateral filtering formula is expressed as follows:
Figure FDA0002658424530000011
where i, j represents the other pixel coordinates of the template window, k, l represents the center coordinate of the template window, σd,σrRepresents the standard deviation of the gaussian function, and f (i, j) and f (k, l) represent the pixel values at coordinates (i, j) and (k, l), respectively;
(13) and processing the processed picture by using an adaptive threshold method, wherein the pixel value is higher than the threshold value and is set to be 1, and the pixel value is lower than the threshold value and is set to be 0, so that a binary image is obtained.
3. The arithmetic job modification system according to claim 2, wherein the process of segmenting the binary image by the image preprocessing and segmentation module specifically comprises:
(21) horizontally projecting the obtained binary image, counting the number of black pixel points of each line of the image, recording the number in an array P, expressing the number of black pixel points of the ith line by P [ i ], and then segmenting the part of the binary image corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array P:
Figure FDA0002658424530000012
thereby obtaining row graphs, wherein each row graph has one or more equations in the horizontal direction;
(22) vertically projecting the obtained line graph, and recording the sum SumLength of the lengths of the continuous blank columns and the number Num of the continuous blank columns; when the length L of a continuous blank column is more than 4 SumLength/Num, the continuous blank column is taken as a partition boundary, so that each line graph is finally divided into column graphs showing a single formula;
(23) vertically projecting the obtained histogram, counting the number of black pixels in each row of the histogram, recording the number of black pixels in an array Q, expressing the number of black pixels in the ith row by Q [ i ], and then segmenting the portion of the histogram corresponding to each interval [ i, j ] which meets the following conditions and is stored in the array Q:
Figure FDA0002658424530000022
thereby obtaining the picture of a single character in each nomogram.
4. The arithmetic job correction system according to claim 1, wherein the character recognition module performs print character recognition and handwritten character recognition, respectively, using two convolutional neural network models having the same architecture but different parameters.
5. The arithmetic job modification system of claim 1, wherein the character recognition module performs boundary expansion and scaling of the single character pictures to a standard size before inputting the picture data into the convolutional neural network model.
6. The arithmetic job modification system of claim 1, wherein the convolutional neural network model is specifically as follows:
(31) the first layer of the convolutional neural network model is the convolutional layer, the convolutional kernel size is 3 × 3, 32 convolutional kernels are received, the received input size is (56,56,1), and the activation function uses the relu function, which is expressed by the formula:
f(x)=max(0,wTx+b);
(32) the second layer of the convolutional neural network model is a pooling layer, the maximum pooling operation is carried out on the output of the first layer, the size of a pooling window is 2 x 2, and the step length is 2;
(33) the third layer of the convolutional neural network model is a convolutional layer, the size of a convolutional kernel is 3 x 3, 64 convolutional kernels are used in total, and a relu function is used as an activation function;
(34) the fourth layer of the convolutional neural network is a pooling layer, the output of the third layer is subjected to maximum pooling operation, the size of a pooling window is 2 x 2, and the step length is 2;
(35) the fifth layer of the convolutional neural network is a convolutional layer, the size of the convolutional kernel is 3 x 3, 128 convolutional kernels are used in total, and the relu function is used as an activation function;
(36) the sixth layer of the convolutional neural network is a Flatten layer and is used for flattening the output of the fifth layer to a one-dimensional space;
(37) the seventh layer and the eighth layer of the convolutional neural network are all fully connected layers, the output scale of the seventh layer is 32 × 1, the activation function is a relu function, the output scale of the eighth layer is 10 × 1, the activation function is softmax, and the formula is as follows:
Figure FDA0002658424530000021
7. the arithmetic job modification system of claim 6, wherein the convolutional neural network model identifies a print volume character with an input size of (28,28,1) and an output size of 15 x 1.
8. The arithmetic job correction system according to claim 1, wherein the character recognition module performs character recognition using a print recognition model until a sign is recognized for each formula, and then changes to recognize the remaining characters of the formula using a handwriting recognition model.
9. The arithmetic job modification system according to claim 1, wherein the division method of the calculation and verification module is specifically as follows:
(41) searching a sign in an operational expression, and dividing the whole operational expression into a left calculation part and a right result part;
(42) for the left part calculation part, repeatedly searching an operator with the lowest priority in the formula, splitting the original formula into two sub-formulas until the sub-formulas only contain a single operand, continuously backtracking the values of the sub-formulas, and finally obtaining the result of the left part calculation;
(43) and comparing the result calculated on the left side with the result calculated on the right side, and returning the result to the user.
10. A method for modifying arithmetic operations, comprising the steps of:
1) acquiring picture data containing job content;
2) preprocessing the acquired picture to convert the preprocessed picture into a binary image;
3) dividing the binary image to obtain the content of each formula, and further dividing each formula to obtain a picture containing a single character;
4) carrying out boundary expansion and scaling on pictures containing single characters to change the scale of the pictures into a specified size;
5) identifying the character picture by using a convolutional neural network model;
6) combining the recognized characters by taking the arithmetic as a unit to obtain each arithmetic;
7) aiming at each formula, searching a sign to divide the formula into a left calculation part and a right result part;
8) for the left calculation part, calculating by using a divide-and-conquer method to obtain a result;
9) and comparing the calculated result with the result of the right result part, and outputting a comparison result.
CN202010895936.0A 2020-08-31 2020-08-31 System and method for correcting arithmetic operation Pending CN111986117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010895936.0A CN111986117A (en) 2020-08-31 2020-08-31 System and method for correcting arithmetic operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010895936.0A CN111986117A (en) 2020-08-31 2020-08-31 System and method for correcting arithmetic operation

Publications (1)

Publication Number Publication Date
CN111986117A true CN111986117A (en) 2020-11-24

Family

ID=73440575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010895936.0A Pending CN111986117A (en) 2020-08-31 2020-08-31 System and method for correcting arithmetic operation

Country Status (1)

Country Link
CN (1) CN111986117A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112906559A (en) * 2021-02-10 2021-06-04 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN113435441A (en) * 2021-07-22 2021-09-24 广州华腾教育科技股份有限公司 Bi-LSTM mechanism-based four-fundamental operation formula image intelligent batch modification method
CN113596418A (en) * 2021-07-06 2021-11-02 作业帮教育科技(北京)有限公司 Correction-assisted projection method, device, system and computer program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528601A (en) * 2016-02-25 2016-04-27 华中科技大学 Identity card image acquisition and recognition system as well as acquisition and recognition method based on contact type sensor
CN109101810A (en) * 2018-08-14 2018-12-28 电子科技大学 A kind of text method for recognizing verification code based on OCR technique
CN110276357A (en) * 2019-07-01 2019-09-24 浪潮卓数大数据产业发展有限公司 A kind of method for recognizing verification code based on convolutional neural networks
CN110837793A (en) * 2019-11-04 2020-02-25 骆研 Intelligent recognition handwriting mathematical formula reading and amending system
CN110859642A (en) * 2019-11-26 2020-03-06 北京华医共享医疗科技有限公司 Method, device, equipment and storage medium for realizing medical image auxiliary diagnosis based on AlexNet network model
CN110929582A (en) * 2019-10-25 2020-03-27 广州视源电子科技股份有限公司 Automatic correction method and device for oral calculation questions, storage medium and electronic equipment
CN110969052A (en) * 2018-09-29 2020-04-07 杭州萤石软件有限公司 Operation correction method and equipment
CN111361700A (en) * 2020-03-23 2020-07-03 南京畅淼科技有限责任公司 Ship empty and heavy load identification method based on machine vision

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528601A (en) * 2016-02-25 2016-04-27 华中科技大学 Identity card image acquisition and recognition system as well as acquisition and recognition method based on contact type sensor
CN109101810A (en) * 2018-08-14 2018-12-28 电子科技大学 A kind of text method for recognizing verification code based on OCR technique
CN110969052A (en) * 2018-09-29 2020-04-07 杭州萤石软件有限公司 Operation correction method and equipment
CN110276357A (en) * 2019-07-01 2019-09-24 浪潮卓数大数据产业发展有限公司 A kind of method for recognizing verification code based on convolutional neural networks
CN110929582A (en) * 2019-10-25 2020-03-27 广州视源电子科技股份有限公司 Automatic correction method and device for oral calculation questions, storage medium and electronic equipment
CN110837793A (en) * 2019-11-04 2020-02-25 骆研 Intelligent recognition handwriting mathematical formula reading and amending system
CN110859642A (en) * 2019-11-26 2020-03-06 北京华医共享医疗科技有限公司 Method, device, equipment and storage medium for realizing medical image auxiliary diagnosis based on AlexNet network model
CN111361700A (en) * 2020-03-23 2020-07-03 南京畅淼科技有限责任公司 Ship empty and heavy load identification method based on machine vision

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
付鹏斌 等: "基于多重几何特征和CNN的脱机手写算式识别", 计算机系统应用, pages 270 - 278 *
田振东;王珍珍;林建慧;孙博;杨瑞东;: "基于OpenCV的算式批改系统设计", 电子世界, no. 07 *
郭水平: "基于白色与黑色像素区域相间明显的快速边界获取算法", 现代制造工程, pages 102 - 104 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112906559A (en) * 2021-02-10 2021-06-04 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN112906559B (en) * 2021-02-10 2022-03-18 网易有道信息技术(北京)有限公司 Machine-implemented method for correcting formulas and related product
CN113596418A (en) * 2021-07-06 2021-11-02 作业帮教育科技(北京)有限公司 Correction-assisted projection method, device, system and computer program product
CN113435441A (en) * 2021-07-22 2021-09-24 广州华腾教育科技股份有限公司 Bi-LSTM mechanism-based four-fundamental operation formula image intelligent batch modification method

Similar Documents

Publication Publication Date Title
EP3564854B1 (en) Facial expression recognition method, apparatus, electronic device, and storage medium
EP3916627A1 (en) Living body detection method based on facial recognition, and electronic device and storage medium
CN108229479B (en) Training method and device of semantic segmentation model, electronic equipment and storage medium
CN109583483B (en) Target detection method and system based on convolutional neural network
CN111986117A (en) System and method for correcting arithmetic operation
CN108334881B (en) License plate recognition method based on deep learning
CN111626297A (en) Character writing quality evaluation method and device, electronic equipment and recording medium
CN110443235B (en) Intelligent paper test paper total score identification method and system
CN109858327B (en) Character segmentation method based on deep learning
CN110852311A (en) Three-dimensional human hand key point positioning method and device
CN112418216A (en) Method for detecting characters in complex natural scene image
WO2023284608A1 (en) Character recognition model generating method and apparatus, computer device, and storage medium
CN111680678A (en) Target area identification method, device, equipment and readable storage medium
CN111047618B (en) Multi-scale-based non-reference screen content image quality evaluation method
CN111104941B (en) Image direction correction method and device and electronic equipment
CN114092938B (en) Image recognition processing method and device, electronic equipment and storage medium
CN114241486A (en) Method for improving accuracy rate of identifying student information of test paper
CN111582202A (en) Intelligent course system
CN111274863A (en) Text prediction method based on text peak probability density
CN113850238B (en) Document detection method and device, electronic equipment and storage medium
CN113850239B (en) Multi-document detection method and device, electronic equipment and storage medium
CN116071625B (en) Training method of deep learning model, target detection method and device
CN113014916B (en) Screen video quality identification method based on local video activity
US20230091374A1 (en) Systems and Methods for Improved Computer Vision in On-Device Applications
Wu et al. Dynamic Updating of Partial Feature Maps for Image-based Real-Time Recognition of Online Handwritten Chinese Text

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination