CN112434641A - Test question image processing method, device, equipment and medium - Google Patents

Test question image processing method, device, equipment and medium Download PDF

Info

Publication number
CN112434641A
CN112434641A CN202011416074.5A CN202011416074A CN112434641A CN 112434641 A CN112434641 A CN 112434641A CN 202011416074 A CN202011416074 A CN 202011416074A CN 112434641 A CN112434641 A CN 112434641A
Authority
CN
China
Prior art keywords
image
target image
height
width
answer area
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
CN202011416074.5A
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.)
Chengdu Jingwei Bird Technology Co Ltd
Original Assignee
Chengdu Jingwei Bird Technology Co Ltd
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 Chengdu Jingwei Bird Technology Co Ltd filed Critical Chengdu Jingwei Bird Technology Co Ltd
Priority to CN202011416074.5A priority Critical patent/CN112434641A/en
Publication of CN112434641A publication Critical patent/CN112434641A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for processing test question images, wherein the method comprises the following steps: acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image; based on the content identification, acquiring standard image data corresponding to the target image, wherein the standard image data comprises the width and height of a standard image corresponding to the target image, and the position coordinate, width and height of the answer area in the standard image; and acquiring the position, the width and the height of the answer area in the target image based on the target image and the standard image data.

Description

Test question image processing method, device, equipment and medium
Technical Field
The present invention relates to the field of image processing, and in particular, to a method, an apparatus, a device, and a medium for processing test question images.
Background
In the test question image obtained by the mobile phone camera, the tablet personal computer camera or other equipment, the test question and the answer are often mixed together. If the answer area in the image can be extracted, the intelligent answer processing is facilitated, for example: intelligent answer recognition, intelligent marking and intelligent answer correction.
However, the test question image obtained by the device such as the mobile phone and the tablet personal computer is often distorted to some extent, and due to the fact that the handwriting of the handwritten answer in the image is difficult to recognize, the background of the image is affected by illumination to be complicated and other adverse factors, the position of the answer area is difficult to accurately recognize from the test question image directly.
The applicant has filed an invention application entitled "layout structure, exercise book, and data processing method, apparatus, device, and medium for facilitating data processing" with application number "2020113629322" to the chinese national patent office. In the application, a layout structure, an exercise book and a data processing method are disclosed which facilitate data processing. The typesetting structure comprises an upper end reference line, a lower end reference line, typesetting contents and two-dimensional codes, wherein the upper end reference line and the lower end reference line are equal in length, the upper end reference line and the lower end reference line are parallel to the upper edge or the lower edge of a page where the typesetting contents are located, and the distance between the upper end reference line and the lower end reference line is equal to the distance between the right edge or the left edge of the page where the typesetting contents are located. The method comprises the following steps: acquiring an image, and intercepting and correcting the image based on a reference line in the image to obtain a corrected image; identifying the two-dimensional code in the corrected image to obtain an analytic character string of the two-dimensional code; obtaining a content identifier of the corrected image based on the analysis character string; based on the content identification, storing the corrected image and/or calling a resource associated with the content identification. Through the technical scheme disclosed by the invention, a person skilled in the art intercepts, corrects and identifies the target image of the page image of the exercise book with the technical characteristics described in the invention to obtain the corrected image and the two-dimensional code information in the corrected image, and can further obtain other resources related to the corrected image.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a medium for processing test question images.
The purpose of the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a test question image processing method, including:
acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image;
based on the content identification, acquiring standard image data corresponding to the target image, wherein the standard image data comprises a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
Acquiring the position (X) of the answer area in the target image based on the target image and the standard image data21,Y21) And width W21Height H21
Preferably, the position (X) of the answer area in the target image is acquired based on the target image and the standard image data21,Y21) And width W21Height H21The method comprises the following steps:
obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure BDA0002825461960000021
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11The width and the height H of the answer area in the standard image11The height of the answer area in the standard image is used.
Further, the method further comprises:
based on the position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
In a second aspect, the present invention provides a test question image processing apparatus, comprising:
the system comprises a target image acquisition unit, a target image processing unit and a processing unit, wherein the target image acquisition unit is used for acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image;
a standard image data obtaining unit, configured to obtain standard image data corresponding to the target image based on the content identifier, where the standard image data includes a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
An answer area positioning unit for acquiring a position (X) of the answer area in the target image based on the target image and the standard image data21,Y21) And width W21Height H21
Preferably, the answer area locating unit acquires the position (X) of the answer area in the target image based on the target image and the standard image data as follows21,Y21) And width W21Height H21
Obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure BDA0002825461960000031
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11The width and the height H of the answer area in the standard image11The height of the answer area in the standard image is used.
Further, the apparatus further comprises:
an answer area image acquisition unit for acquiring an answer area image based on a position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
In a third aspect, the present invention provides a test question image processing apparatus comprising at least one processor and at least one memory storing program code which, when executed by the processor, causes the processor to perform the method of any of the first aspects.
In a fourth aspect, the present invention provides a computer-readable storage medium containing program code for causing a test question image processing apparatus to perform the method of any one of the first aspects, when the program code is run on the test question image processing apparatus.
Drawings
Fig. 1 is a schematic flowchart of a test question image processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an image to be processed including a question answering area according to an embodiment of the present application;
fig. 3 is a schematic view of a target image including a question answering area, which is obtained by intercepting and correcting an image to be processed according to an embodiment of the present application;
fig. 4 is a schematic diagram of a standard image corresponding to a target image and position information of an answer area in the standard image according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating an image effect of a question answering area captured based on position information of the question answering area in a target image according to an embodiment of the present application;
fig. 6 is a block diagram of a test question image processing apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of a test question image processing apparatus according to an embodiment of the present application.
Detailed Description
For the convenience of 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.
Fig. 1 is a schematic flow chart of a test question image processing method provided in an embodiment of the present application, where the method includes:
s101: and acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image.
Specifically, the image to be processed may be acquired in various ways, including but not limited to the following: the image can be acquired by various devices with image acquisition functions such as a mobile phone, a computer, a scanner and the like; an existing image may be used.
Specifically, the person skilled in the art may intercept, correct and recognize the image to be processed in various ways to obtain the target image containing the question area and the content identifier of the target image.
Preferably, the present applicant has filed an invention application entitled "layout structure, exercise book, and data processing method, apparatus, device, and medium for facilitating data processing" with application number "2020113629322" to the chinese national patent office. In the application, a layout structure, an exercise book and a data processing method are disclosed which facilitate data processing. Through the technical scheme disclosed by the invention, a person skilled in the art intercepts and corrects the target image of the page image of the exercise book with the technical characteristics described in the invention to obtain a corrected image and a content identifier in the corrected image, and can further obtain other resources associated with the corrected image.
Exemplarily, as shown in fig. 2, fig. 2 is a schematic diagram of an image to be processed including a question answering area according to an embodiment of the present application. Fig. 4 shows a standard image corresponding to a target image in the image to be processed, and fig. 4 is a schematic diagram of a standard image corresponding to a target image and position information of an answer area in the standard image according to an embodiment of the present application. The standard image in fig. 4 has the typesetting structure with the technical features described in the above-mentioned application No. 2020113629322, and a person skilled in the art can cut and correct the image to be processed in fig. 2 by the technical solution disclosed in the present invention to obtain the target image containing the question answering area, parse the two-dimensional code in the target image, obtain the content identifier of the target image, and further obtain other resources associated with the target image based on the content identifier.
Illustratively, in the embodiment of the present application, the technical solution disclosed in the above-mentioned application No. 2020113629322 is adopted to intercept and correct the image to be processed in fig. 2, and as a result, as shown in fig. 3, fig. 3 is a schematic diagram of a target image including a question answering area, which is obtained after the image to be processed is intercepted and corrected according to the embodiment of the present application.
Illustratively, in the embodiment of the present application, the technical solution disclosed in the above application with the application number "2020113629322" is adopted to identify the two-dimensional code in the target image in fig. 3, and a two-dimensional code character string "https:// 123k.cn/1c1s4k4t1n 37" is obtained, where the sub-character string "1 c1s4k4t1n 37" is a content identifier of the target image. Based on the content identification, other resources associated with the target image, including standard images and standard image data information associated with the target image, may be obtained at the server side and/or locally.
S102: based on the content identification, acquiring standard image data corresponding to the target image, wherein the standard image data comprises a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
The standard image corresponding to the target image can be understood as a final source electronic image of the target image. Illustratively, an electronic image of a certain test question is printed on a paper page through a printer, the test question on the paper page is photographed by a mobile phone camera to obtain an image to be processed, the image to be processed is processed through the step S101 to obtain a target image, and a standard image corresponding to the target image can be understood as the electronic image of the certain test question.
Specifically, the standard image data corresponding to the target image includes a standard image width W1And height H1And the position coordinates (X) of the subject area in the standard image11,Y11) And width W11Height H11. The standard image data can be acquired by a person skilled in the art in various ways, and the acquired standard image data is associated with the content identifier of the standard image and then stored on a server and/or locally. For example, the drawing tool (mspaint. exe) carried by the windows7 system can be used for acquiring the width and height of the standard image and the position coordinates, width and height of the answering area in the standard image.
Specifically, based on the content identification obtained in step S101, the standard image data associated with the content identification may be acquired from the server side or locally. For example, the standard image data associated with the content identifier may be stored in a server, the standard image data may be loaded according to the content identifier, and the resource loading method may be a get or post method of an http protocol, or other various common resource loading methods.
For example, as shown in fig. 4, fig. 4 is a schematic diagram of a standard image corresponding to a target image and position information of a question answering area in the standard image according to an embodiment of the present application. The content of the standard image is denoted as "1 c1s4k4t1n 37", and the standard image includes three question answering areas, namely, a question answering area 401, a question answering area 402, and a question answering area 403. Measuring the scale of the standard image and the answering area by taking the pixel as a unit, wherein the width of the standard image is the width W11284, height H1386; answer area 401 has position coordinates of (589,140), width of 288, and height of 76; answer area 402 has position coordinates (242,204), width 288, and height 76; answer area 403 has position coordinates of (978,204), width of 269, and height of 76. In the embodiment of the present application, the standard image data is associated with the content identifier and then stored in a database of a server.
Illustratively, in the embodiment of the present application, based on the content identifier "1 c1S4k4t1n 37" obtained in step S101, the standard image data associated with the content identifier, that is, the standard image data corresponding to the target image, may be obtained from the server by using the get method of the http protocol.
S103: acquiring the position (X) of the answer area in the target image based on the target image and the standard image data21,Y21) And width W21Height H21
Specifically, the standard image data obtained in step S102 includes a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of the subject area in the standard image11,Y11) And width W11Height H11The standard image data is associated with the targetAnd combining the scales of the target images to obtain the position information and the scale information of the answer area in the target image.
Preferably, the position (X) of the question area in the target image may be acquired based on the target image and the standard image data in the following manner21,Y21) And width W21Height H21
Obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure BDA0002825461960000061
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11The width and the height H of the answer area in the standard image11The height of the answer area in the standard image is used.
Illustratively, in the embodiments of the present application, the width W of the target image in fig. 321274, height H2In conjunction with the standard image data obtained in step S102, 408, it is calculated in the above manner that: lateral scaling Sx0.9922118380062306 and vertical scaling Sy=1.056994818652849, respectively; the position coordinates of the three answer areas in the target image are (584, 147), (240, 215) and (970, 215), the widths of the three answer areas in the target image are 285, 285 and 266, and the heights of the three answer areas in the target image are 80, 80 and 80.
Further, the method further comprises:
based on the position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
Specifically, after the position information and the scale information of the answer area in the target image are obtained, the image of the answer area may be obtained according to the position information and the scale information. Clipping rectangular images based on position and scale in the image is a common way of operation for a person skilled in the art and will not be described in detail here.
Illustratively, in the embodiment of the present application, a white background image with a size consistent with that of the target image is created, the answer area is cut according to the position, width and height of the answer area obtained in the target image, and the cut local image is placed at the corresponding position in the white background image, so as to obtain the image shown in fig. 5, where fig. 5 is a schematic diagram of an image effect of the answer area cut based on the position information of the answer area in the target image provided in the embodiment of the present application.
Based on the same concept as the above-mentioned embodiment of the test question image processing method, an embodiment of the present application further provides a test question image processing apparatus, as shown in fig. 6, fig. 6 is a block diagram of a structure of the test question image processing apparatus provided in the embodiment of the present application, and the apparatus includes:
a target image obtaining unit 601, configured to obtain an image to be processed including a question answering area, and intercept, correct, and identify the image to be processed to obtain a target image including the question answering area and a content identifier of the target image;
a standard image data obtaining unit 602, configured to obtain standard image data corresponding to the target image based on the content identifier, where the standard image data packet isIncluding the standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
An answer area positioning unit 603 configured to obtain a position (X) of the answer area in the target image based on the target image and the standard image data21,Y21) And width W21Height H21
Preferably, the answer area positioning unit 603 obtains the position (X) of the answer area in the target image based on the target image and the standard image data as follows21,Y21) And width W21Height H21
Obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure BDA0002825461960000071
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11For the question area in the standard chartWidth in image, height H11The height of the answer area in the standard image is used.
Further, the above apparatus further comprises:
an answer area image acquisition unit for acquiring an answer area image based on a position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
An embodiment of the present application further provides a test question image processing apparatus, as shown in fig. 7, fig. 7 is a block diagram of a structure of the test question image processing apparatus provided in the embodiment of the present application, where the apparatus includes: a processor 701 and a memory 702.
The memory 702 is used for storing program codes.
The processor 701 is configured to call the program code stored in the memory, and may execute any method flow described in the embodiments according to the obtained program. The processor 701 is used to implement the methods performed by the target image acquisition unit 601, the standard image data acquisition unit 602, and the subject area positioning unit 603 shown in fig. 6.
In FIG. 7, among other things, the bus architecture may include any number of interconnected buses and bridges that connect together one or more processors, represented by processor 701, and circuitry of a memory, represented by memory 702. The bus architecture may also connect various other circuits such as peripherals, voltage regulators, power management circuits, etc., which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface.
The processor 701 is responsible for managing the bus architecture and general processing, and the memory 702 may store data used by the processor 701 in performing operations.
The processor 701 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or a Complex Programmable Logic Device (CPLD).
Embodiments of the present application also provide a computer storage medium for storing computer program code for any apparatus or device described in the embodiments of the present application, which includes a program for executing any method provided in the embodiments of the present application.
The computer storage media may be any available media or data storage device that can be accessed by a computer, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus (system), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The method, the device, the equipment and the medium for processing the test question image provided by the invention are described in detail, a principle and an implementation method provided by the invention are explained by applying an example in the text, and the example provided above is only helpful for understanding the invention and the core idea. It should be noted that, for those skilled in the art, various improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (8)

1. A method for processing a test question image, the method comprising:
acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image;
based on the content identification, acquiring standard image data corresponding to the target image, wherein the standard image data comprises a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
Acquiring the answer in the target image based on the target image and the standard image dataLocation of the region (X)21,Y21) And width W21Height H21
2. The test question image processing method according to claim 1, wherein said obtaining a position (X) of said answer area in said target image based on said target image and said standard image data21,Y21) And width W21Height H21The method comprises the following steps:
obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure FDA0002825461950000011
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11The width and the height H of the answer area in the standard image11The height of the answer area in the standard image is used.
3. The method of claim 1, wherein the method further comprises:
based on the position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
4. An examination question image processing apparatus characterized by comprising:
the system comprises a target image acquisition unit, a target image processing unit and a processing unit, wherein the target image acquisition unit is used for acquiring an image to be processed containing an answer area, and intercepting, correcting and identifying the image to be processed to obtain a target image containing the answer area and a content identifier of the target image;
a standard image data obtaining unit, configured to obtain standard image data corresponding to the target image based on the content identifier, where the standard image data includes a standard image width W corresponding to the target image1And height H1And the position coordinates (X) of said answer area in said standard image11,Y11) And width W11Height H11
An answer area positioning unit for acquiring a position (X) of the answer area in the target image based on the target image and the standard image data21,Y21) And width W21Height H21
5. The test question image processing apparatus according to claim 4, wherein said answer area locating unit acquires a position (X) of said answer area in said target image based on said target image and said standard image data as follows21,Y21) And width W21Height H21
Obtaining the width W of the target image2And height H2
Calculating the lateral scaling SxAnd a longitudinal scaling Sy
Figure FDA0002825461950000021
Wherein, W2For the width of the target image, W1For the standard image width, H2Is the target image height, H1Is the standard image height;
calculating the position (X) of said answer area in said target image21,Y21) And width W21Height H21
X21=Sx×X11,Y21=Sy×Y11
W21=Sx×W11,H21=Sy×H11
Wherein, X11For the abscissa, Y, of the answer area in the standard image11Is the vertical coordinate, W, of the question-answering area in the standard image11The width and the height H of the answer area in the standard image11The height of the answer area in the standard image is used.
6. The examination question image processing apparatus according to claim 4, wherein said apparatus further comprises:
an answer area image acquisition unit for acquiring an answer area image based on a position (X) of the answer area in the target image21,Y21) And width W21Height H21And intercepting the answer area image in the target image.
7. A test question image processing apparatus, characterized in that the apparatus comprises at least one processor and at least one memory for storing program code which, when executed by the processor, causes the processor to carry out the method of any one of claims 1-3.
8. A computer-readable storage medium containing program code for causing a subject image processing apparatus to perform the method of any one of claims 1 to 3 when the program code is run on the subject image processing apparatus.
CN202011416074.5A 2020-12-10 2020-12-10 Test question image processing method, device, equipment and medium Pending CN112434641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011416074.5A CN112434641A (en) 2020-12-10 2020-12-10 Test question image processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011416074.5A CN112434641A (en) 2020-12-10 2020-12-10 Test question image processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112434641A true CN112434641A (en) 2021-03-02

Family

ID=74691175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011416074.5A Pending CN112434641A (en) 2020-12-10 2020-12-10 Test question image processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112434641A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065477A (en) * 2021-04-08 2021-07-02 读书郎教育科技有限公司 Intelligent classroom textbook content identification method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079730A (en) * 2019-11-20 2020-04-28 北京云聚智慧科技有限公司 Method for determining area of sample image in interface image and electronic equipment
CN111104883A (en) * 2019-12-09 2020-05-05 平安国际智慧城市科技股份有限公司 Job answer extraction method, device, equipment and computer readable storage medium
CN111507251A (en) * 2020-04-16 2020-08-07 北京世纪好未来教育科技有限公司 Method and device for positioning answer area in test question image and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079730A (en) * 2019-11-20 2020-04-28 北京云聚智慧科技有限公司 Method for determining area of sample image in interface image and electronic equipment
CN111104883A (en) * 2019-12-09 2020-05-05 平安国际智慧城市科技股份有限公司 Job answer extraction method, device, equipment and computer readable storage medium
CN111507251A (en) * 2020-04-16 2020-08-07 北京世纪好未来教育科技有限公司 Method and device for positioning answer area in test question image and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065477A (en) * 2021-04-08 2021-07-02 读书郎教育科技有限公司 Intelligent classroom textbook content identification method

Similar Documents

Publication Publication Date Title
CN109886928B (en) Target cell marking method, device, storage medium and terminal equipment
US10410053B2 (en) Method, apparatus, system, and storage medium for detecting information card in image
CN109685870B (en) Information labeling method and device, labeling equipment and storage medium
EP3940589B1 (en) Layout analysis method, electronic device and computer program product
CN111898411B (en) Text image labeling system, method, computer device and storage medium
CN109255300B (en) Bill information extraction method, bill information extraction device, computer equipment and storage medium
CN111860489A (en) Certificate image correction method, device, equipment and storage medium
CN108563559A (en) A kind of test method of identifying code, device, terminal device and storage medium
CN111290684B (en) Image display method, image display device and terminal equipment
CN111950557A (en) Error problem processing method, image forming apparatus and electronic device
CN112926421B (en) Image processing method and device, electronic equipment and storage medium
US11727701B2 (en) Techniques to determine document recognition errors
CN112417899A (en) Character translation method, device, computer equipment and storage medium
CN112749649A (en) Method and system for intelligently identifying and generating electronic contract
CN110827301B (en) Method and apparatus for processing image
CN111414914A (en) Image recognition method and device, computer equipment and storage medium
CN112434641A (en) Test question image processing method, device, equipment and medium
CN112906532B (en) Image processing method and device, electronic equipment and storage medium
CN114049540A (en) Method, device, equipment and medium for detecting marked image based on artificial intelligence
CN110909816B (en) Picture identification method and device
US11367296B2 (en) Layout analysis
CN111507123A (en) Method and device for placing reading materials, reading equipment, electronic equipment and medium
CN111401365B (en) OCR image automatic generation method and device
CN112819885A (en) Animal identification method, device and equipment based on deep learning and storage medium
CN113011131A (en) Typesetting method based on picture electronic book, electronic equipment and storage medium

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