Nothing Special   »   [go: up one dir, main page]

CN117934976B - Automatic correction system and method for ruler and ruler drawing operation based on AI - Google Patents

Automatic correction system and method for ruler and ruler drawing operation based on AI Download PDF

Info

Publication number
CN117934976B
CN117934976B CN202410330012.4A CN202410330012A CN117934976B CN 117934976 B CN117934976 B CN 117934976B CN 202410330012 A CN202410330012 A CN 202410330012A CN 117934976 B CN117934976 B CN 117934976B
Authority
CN
China
Prior art keywords
ruler
drawing operation
compass
data
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.)
Active
Application number
CN202410330012.4A
Other languages
Chinese (zh)
Other versions
CN117934976A (en
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.)
Jinan Keming Digital Technology Co ltd
Original Assignee
Jinan Keming Digital 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 Jinan Keming Digital Technology Co ltd filed Critical Jinan Keming Digital Technology Co ltd
Priority to CN202410330012.4A priority Critical patent/CN117934976B/en
Publication of CN117934976A publication Critical patent/CN117934976A/en
Application granted granted Critical
Publication of CN117934976B publication Critical patent/CN117934976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/764Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • 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
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of correction management of drawing operation, and discloses an automatic correction system and method for ruler-drawing operation based on AI, wherein the ruler-drawing operation basic data management module, the ruler-drawing operation image shape correction management module and the ruler-drawing operation image size correction management module are used for correcting the drawing operation image; and carrying out coordinate numerical comparison on the object coordinate parameters of the compass hole of the ruler-drawing operation, the standard image shape of the ruler-drawing operation and the reference compass hole coordinate parameters, precisely matching the compass hole superposition position of the characteristic parameters of the ruler-drawing operation and the standard image shape parameters of the ruler-drawing operation, carrying out image shape proportion adjustment of the ruler-drawing operation according to the shape matching scaling parameters of the ruler-drawing operation image by utilizing the characteristic parameters of the ruler-drawing operation, and then matching the ruler-drawing operation with the standard image shape parameters of the ruler-drawing operation, and intelligently and scientifically analyzing the shape correction result of the ruler-drawing operation image.

Description

Automatic correction system and method for ruler and ruler drawing operation based on AI
Technical Field
The invention relates to the technical field of drawing operation correction management, in particular to an automatic correction system and method for ruler and ruler drawing operation based on AI.
Background
Ruler-compass drawing refers to drawing by using a ruler without scales and compasses. Ruler and ruler drawing is a mathematical topic originating from ancient greek. Only compasses and straightedges are used and only a limited number of uses are permitted to solve for the different plane geometries caption. Ruler and compasses used in ruler and compass drawing have imaginative properties which are not exactly the same as in reality: 1. the straightedge must be free of scale, infinitely long, and only a fixed side of the straightedge can be used. It can only be used to connect two points together, it is not possible to draw a scale on it; 2. the compasses can be opened to infinite width, but the compasses cannot be provided with scales. It can only be pulled apart to a previously constructed length. The visual expression "use of a graduated ruler and compass drawing a limited number of times" is clearly not very strict as it is meaningless without limiting the complexity of the operations within each "time". The idea of ruler-making is presented earlier than euclidean, which stricts it. Rather than using visual descriptions in Euclidean "geometric script," it is specified in "public" form which of several drawings are "can do". The rule specification definition that is generally adopted is now a definition based on the "rule of drawing", namely: 1. each operation can only be one of the basic operations accepted to be allowed. 2. The logical decisions that the operator can make to decide whether to operate and what kind of operation to perform before each operation can also be just a recognised allowed ones. The definition based on "drawing law" is as follows: rule specification drawing definition, which acknowledges the following five preconditions, and the drawing method completed by the following five public methods is used for a limited number of times, namely a legal rule specification drawing: the preconditions are: (1) Any point in the determined range on the plane, on the straight line, on the circular arc line (so-called "determination range", according to the following four rules) is allowed. (2) The order of the positions of the different points on the same line can be determined. (3) The order of the positions of the different points on the same circular arc line can be judged. (4) it is possible to determine on which side of the straight line a point on the plane is. (5) It can be determined whether a point on the plane is inside or outside the circle. The five common laws are: (1) A straight line is made through two points that have been determined based on the two points. (2) The circle is made with one determined point as the center and the distance between two determined points as the radius. (3) determining the intersection of two intersecting straight lines that have been made. (4) The intersection of the intersecting circle and the straight line that has been made is determined. (5) determining the intersection point of the two circles that have been intersected. Some of the data also show that the "intersection" in the last two of the five common laws is changed to a "common point". The two statements differ in that the latter includes more than a "tangent point". But because determining the tangent point may be accomplished with other combinations of basic operations, if not with basic operations. Therefore, the definition of the two statements is not essentially different. The conventional ruler and compass drawing operation basically relies on manual operation correction, the manual operation correction of the ruler and compass drawing operation is large in workload, meanwhile, the operation correction process is very dependent on drawing experience of correction personnel, error of correction results of the ruler and compass drawing operation is large easily caused, and correction efficiency of the ruler and compass drawing operation is low.
The invention discloses a paper homework man-machine interactive acquisition and correction system, which comprises a mobile phone APP, a paper homework scanning module, a picture-text recognition module, a digital processing module, a picture-text conversion module, a data comparison module, a homework correction module, an electronic question bank, a manual checking module, a manual correction module, a data uploading module, a data receiving module, a question evaluation module, a question result analysis module, a wrong question label module, a label classifying module, a label recognition module, a similar recommendation module, an error rate statistics module and a report generation module, wherein the invention provides a paper homework man-machine interactive acquisition-correction flow which is built in a traditional mobile phone or a small program, thereby realizing the convenience of a correction mode, guaranteeing the accuracy of correction results, and simultaneously providing a brand new quick correction mode for subjective correction by setting the score for subjective questions; however, the above technical scheme cannot accurately correct the ruler and the drawing operation on line, but can only identify and correct the text and data operation, thereby reducing the applicability of the operation correction system.
Disclosure of Invention
(One) solving the technical problems
The method aims at solving the problems that the conventional ruler and ruler drawing operation basically relies on manual operation correction, the manual operation correction is large in workload, meanwhile, the operation correction process is very dependent on drawing experience of correction personnel, correction result errors of the ruler and ruler drawing operation are large, and correction efficiency of the ruler and ruler drawing operation is low, and achieving the purposes of intelligent correction analysis of the page cleanliness of the ruler and ruler drawing operation, intelligent positioning and identification of the shape of the graph of the ruler and ruler drawing operation, and intelligent correction analysis of the size of the image of the ruler and ruler drawing operation.
(II) technical scheme
The invention is realized by the following technical scheme: an automatic correction method for ruler and ruler drawing operation based on AI, comprising the following steps:
s1, acquiring image characteristic data of ruler drawing operation;
S2, adopting a data recognition algorithm to analyze the neatness level of the ruler drawing operation page image by using the ruler drawing operation image characteristic data and the ruler drawing operation page image characteristic data with different levels, and constructing ruler drawing operation page neatness level analysis data;
S3, when the analysis of the neatness grade analysis data of the ruler drawing operation page is completed, carrying out the analysis of the compass hole object in ruler drawing operation by adopting a data search algorithm on the ruler drawing operation image characteristic data and the ruler drawing operation standard compass hole image characteristic data, and constructing ruler drawing operation compass hole object data; establishing plane coordinates for the compass hole object in the ruler drawing operation according to the ruler drawing operation compass hole object data, and generating ruler drawing operation compass hole object coordinate data;
S4, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data, and searching out the position of the complete match of the compass hole in the characteristic data of the ruler drawing operation image with the standard image shape of the ruler drawing operation and the image shape of the standard image shape data of the reference compass hole coordinate data; the ruler and compass drawing operation image characteristic data are matched with the ruler and compass drawing operation standard image shape data in the ruler and compass drawing operation standard image shape and reference compass hole coordinate data to carry out image shape matching of ruler and compass drawing operation after image shape proportion adjustment of ruler and compass drawing operation is carried out according to the ruler and compass drawing operation image shape matching scaling data, and ruler and compass drawing operation image shape analysis result data are constructed and output;
S5, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the standard image size of the ruler drawing operation and the coordinate data of the reference compass hole in the coordinate data of the reference compass hole, and searching out the position of the complete matching of the compass hole in the characteristic data of the ruler drawing operation image and the image size of the standard image size data of the ruler drawing operation in the coordinate data of the ruler drawing operation and the reference compass hole;
S6, when the position of the complete matching of the compass hole in the correction image size of the ruler drawing operation is finished, adopting a data recognition algorithm to match the characteristic data of the ruler drawing operation image with the standard image size of the ruler drawing operation and the standard image size of the ruler drawing operation in the reference compass hole coordinate data, constructing and outputting the analysis result data of the ruler drawing operation image size;
And S7, combining the neatness grade analysis data of the ruler drawing operation page, the shape analysis result data of the ruler drawing operation image and the size analysis result data of the ruler drawing operation image to generate ruler drawing operation correction analysis result data, and feeding back and outputting the ruler drawing operation correction analysis result data.
Preferably, the operation steps for collecting the image characteristic data of the ruler and the specification drawing operation are as follows:
S11, performing online scanning on the drawn ruler drawing operation by a scanning and scoring machine to generate ruler drawing operation image characteristic data
Preferably, the step of using a data recognition algorithm to analyze the tidiness level of the ruler drawing operation page image by using the ruler drawing operation image feature data and the tidiness page image feature data of different grades of ruler drawing operation, and constructing the tidiness level analysis data of the ruler drawing operation page is as follows:
s21, establishing page image characteristic data sets with different levels of neatness in ruler and rule drawing operation ,/>; Wherein/>Represents the/>Page image characteristic data of different levels of tidy degree of ruler and rule drawing operation corresponding to the level of page tidy degree ruler and rule drawing operation,/>The maximum value of the number of the cleanliness grades of the operation pages of the regulation map is represented;
s22, adopting a data recognition algorithm to map the ruler and ruler with the image characteristic data of the drawing operation Tidy page image characteristic data set/>, different in level from ruler and rule drawing operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessPerforming page image feature matching of ruler drawing operation, and using a data recognition algorithm to perform the ruler drawing operation image feature data/>Different-level neatness page image characteristic data/>, from ruler and rule drawing operationThe operation steps for carrying out the neatness grade analysis of the page image of the ruler drawing operation are as follows:
S221, initializing each honey source Namely, page image characteristic data sets/>, of different levels of neatness in ruler and drafting operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessIs a honey source; setting the number N of honey sources, the current iteration times T and the maximum iteration times T;
Honey source Initial position/>The honey source position generation formula is as follows: /(I)Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationSearch space random generation, wherein/>Representation/>Internal random number,/>And/>Page image characteristic data sets/>, respectively representing different levels of neatness for ruler and rule drawing operationUpper and lower bounds of the search space;
S222, as honey source position Allocating employment bees, at the beginning of the search, at honey source location/>According to the formula/>Searching to generate new honey source position/>Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationTraversing and searching out page image characteristic data/>, of different levels of neatness, of all ruler regulation drawing operations
Wherein the method comprises the steps ofBy selecting randomly one of the N sources of honey not equal to i,/>Representing randomly selected honey sources/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationLocation in search space,/>Is a random number of [ -1,1] uniform distribution;
s223, according to the new honey source position According to the greedy selection method, determining the preserved honey source, namely selecting and ruler-planning drawing operation image characteristic data/>Matched page image characteristic data with different levels of neatness for ruler and ruler drawing operation
S224, the employment bees share honey source information, the following bees select honey sources for searching according to probability values, and the following bees calculate the probability that the honey sources found by the employment bees are followed according to a probability formula according to the honey source information shared by the employment bees, whereinRepresenting the position/>, of a new honey sourceThe probability of an employed bee finding to be followed,/>New honey source location/>, representing that following bees share according to employment beesIs adapted to the degree of adaptation of (a);
s225, searching by following bees in the same mode as employed bees, and determining reserved honey sources according to a greedy selection method Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationSearching and ruler-planning drawing operation image characteristic data/>, in search spaceMatching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanliness
S226, spying bees operate different-level neatness page image characteristic data sets in ruler regulation drawingDuring random search of search space, if honey source position/>Reaching the iteration threshold/>, through t times of iteration searchNo better honey source was found, the location of this honey source/>Will be abandoned and the employment bees corresponding to it will become the reconnaissance bees; the calculation formula of the new honey source position randomly generated by the scout bees in the search space is as follows:
wherein/> Expressed at/>After the iteration, new honey source/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationLocation of search space,/>Expressed at/>After the iteration, new honey source/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationSearching for a location of the space;
S227, wherein the updated iteration count measurement formula of t is t=t+1; when T meets the condition of the maximum search iteration number T, outputting the image characteristic data of the ruler-drafting drawing operation Matching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanlinessOtherwise, go to S222;
s23, page image characteristic data of different levels of cleanliness of ruler regulation drawing operation matched according to the step S227 Page cleanliness class number/>, corresponding to ruler and ruler regulation drawing operationConstructing ruler regulation drawing operation page cleanliness grade analysis data/>
Preferably, when the analysis of the neatness grade analysis data of the ruler drawing operation page is completed, the data search algorithm is adopted to analyze the compass hole object in ruler drawing operation by using the ruler drawing operation image characteristic data and the ruler drawing operation standard compass hole image characteristic data, so as to construct ruler drawing operation compass hole object data; establishing plane coordinates for the compass hole object in the ruler drawing operation according to the ruler drawing operation compass hole object data, and generating the ruler drawing operation compass hole object coordinate data comprises the following operation steps:
S31, establishing a standard compass hole image characteristic data set for ruler and compass drawing operation ; Wherein/>Represents the/>Standard compass hole image characteristic data of drawing operation of ruler and ruler,/>The method comprises the steps of representing the maximum value of the standard compass hole image feature quantity of the ruler drawing operation, wherein the standard compass hole image feature data of the ruler drawing operation represent the pinhole image feature data of the compass left on the surface of a page of a standard ruler drawing operation finished product;
S32, adopting a depth-first search algorithm to map the ruler with the graphic operation image characteristic data Standard compass hole image characteristic data set/>, for ruler drawing operationStandard compass hole image characteristic data/>, of middle ruler drawing operation standard compass hole image characteristic data/>According to the number/>, of the standard compass hole image of the ruler and compass drawing operation standardOrderly analyzing the compass hole object in the ruler drawing operation image features and the ruler drawing operation standard compass hole image features, and carrying out/>, on the ruler drawing operation image feature dataThe compass hole object analyzed in the method is constructed into compass hole object data of ruler-compass drawing operation and a compass hole object data set/>,/>Wherein/>Representing the ruler and ruler drawing operation image characteristic data/>Compasses hole object data of the 1 st ruler drawing operation,/>Representing the ruler and ruler drawing operation image characteristic data/>Middle/>The method comprises the steps of (1) drawing operation compasses and hole object data of the ruler;
S33, establishing a plane rectangular coordinate system by taking the rectangular edge of the page where the ruler drawing operation is located as the transverse and longitudinal coordinate axes of the coordinate system, and searching out a compass hole object data set of the ruler drawing operation Compasses hole object data/>, of middle ruler drafting operationTo/>Generating a coordinate data set of a compass hole object for ruler drawing operation for plane coordinates in the plane rectangular coordinate systemWherein/>Representing the compass hole object data/>, of the ruler and compass drawing operationCoordinate data of compass hole object for corresponding ruler and compass drawing operation,/>Representing the compass hole object data/>, of the ruler and compass drawing operationCoordinate data of compass hole object for corresponding ruler and compass drawing operation,/>,/>Coordinate data/>, representing compass hole object in ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Coordinate data/>, representing compass hole object in ruler and compass drawing operationAnd an ordinate in the planar rectangular coordinate system.
Preferably, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data, and searching out the position of the complete match of the characteristic data of the ruler drawing operation with the compass hole in the image shape of the standard image shape data of the ruler drawing operation in the standard image shape data of the ruler drawing operation and the reference compass hole coordinate data; the operation steps of the image feature data of the ruler drawing operation for performing the image shape proportion adjustment of the ruler drawing operation according to the image shape matching scaling data of the ruler drawing operation, performing the image shape matching of the ruler drawing operation with the ruler drawing operation standard image shape data in the ruler drawing operation standard image shape and the reference compass hole coordinate data, constructing and outputting the image shape analysis result data of the ruler drawing operation are as follows:
s41, establishing a standard image shape of ruler-compass drawing operation and a reference compass hole coordinate data set Wherein/>Representing standard image shape data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image shape of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image shape reference compass hole coordinate data for drawing of each ruler/compassThe method comprises the steps of representing the maximum value of the data quantity of the standard image shape reference compass hole of the ruler drawing operation, wherein the standard image shape reference compass Kong Zuobiao of the ruler drawing operation represents the coordinate of the compass hole coordinate corresponding to the standard image shape of the ruler drawing operation in a plane coordinate system,/>,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAn ordinate in the planar rectangular coordinate system;
establishing a ruler-drawing operation image shape matching scaling data set ,/>; Wherein/>Represents the/>Image shape matching scaling data for seed ruler drawing operation,/>The method comprises the steps of representing the maximum value of the number of the shape matching scaling data of the ruler drawing operation image, wherein the shape matching scaling data of the ruler drawing operation image comprise shape matching scaling data of the ruler drawing operation image, shape matching scaling data of the ruler drawing operation image and shape matching original scaling data of the ruler drawing operation image;
s42, collecting coordinate data of the compass hole object in the ruler drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image shape reference compass hole coordinate data set/>Standard image shape reference compass hole coordinate data/>, of middle ruler drawing operation standard image shape reference compass hole coordinate data/>To/>Comparing coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image shape of operation standard image of the ruler and compass and reference compass hole coordinate data set/>Standard image shape data/>, for medium ruler drawing operationThe position of the complete matching of the compass holes in the image shape;
S43, the ruler and the ruler drawing operation image characteristic data Matching scaling data sets/>, according to ruler-drawing operation image shapesImage shape matching scaling data/>, for medium ruler drawing operationTo/>Image shape proportion of orderly ruler drawing operation is adjusted and then the image shape proportion is adjusted to be matched with the standard image shape of the ruler drawing operation and reference compass hole coordinate data set/>Standard image shape data/>, for medium ruler drawing operationImage shape matching of ruler drawing operation is carried out, and image shape analysis result data/>, of ruler drawing operation, is constructedAnd output;
When (when) And/>If the image shape matching is successful, the image shape representing the ruler drawing operation meets the standard requirement, and the image shape analysis result data/>Is in accordance with the standard;
When (when) And/>If the image shape is not successfully matched, and the image shape of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image shape analysis result data/>Is not in compliance with the standard.
Preferably, the operation steps of comparing the orderly compass hole object coordinate data in the rule drawing operation compass hole object coordinate data with the rule drawing operation standard image size and the reference compass hole coordinate data in the reference compass hole coordinate data to search out the position where the compass holes in the rule drawing operation image feature data are completely matched with the rule drawing operation standard image size and the image size of the rule drawing operation standard image size data in the reference compass hole coordinate data are as follows:
S51, establishing standard image size of ruler-compass drawing operation and reference compass hole coordinate data set WhereinRepresenting standard image size data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image size of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image size reference compass hole coordinate data for each ruler drawing operation,/>The method comprises the steps of representing the maximum value of the number of the standard image size reference compass hole coordinate data of the ruler drawing operation, wherein the standard image size reference compass hole coordinate data of the ruler drawing operation represent the coordinates of compass hole coordinates corresponding to the standard image size of the ruler drawing operation in a plane coordinate system, and the coordinates of the compass hole coordinates corresponding to the standard image size of the ruler drawing operation are expressed by the data of the standard image size reference compass hole coordinate data of the ruler drawing operation,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAn ordinate in the planar rectangular coordinate system;
s52, collecting coordinate data of the compass hole object in the compass drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image size of the ruler drawing operation refers to the compass hole coordinate data set/>Standard image size reference compass hole coordinate data/>, of middle ruler drawing operation standard image size reference compass hole coordinate data/>To/>Comparing coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image size of operation with the ruler and compass and reference compass hole coordinate data set/>Standard image size data/>, for medium ruler drawing operationIs the position of the perfect match of the compass aperture in the image size.
Preferably, when the position of the perfect matching of the compass hole in the correction image size of the ruler drawing operation is finished, the data recognition algorithm is adopted to match the characteristic data of the ruler drawing operation image with the standard image size of the ruler drawing operation and the standard image size of the reference compass hole coordinate data for the ruler drawing operation, and the operation steps of constructing and outputting the analysis result data of the ruler drawing operation image size are as follows:
S61, adopting a data identification algorithm in the step S22 to carry out image characteristic data of the ruler and compass drawing operation Standard image size of operation with the ruler and compass and reference compass hole coordinate data set/>Standard image size data/>, for medium ruler drawing operationPerforming image size matching of ruler and compass drawing operation, and constructing ruler and compass drawing operation image size analysis result dataAnd output;
When (when) And/>If the image size is successfully matched, and the image size of the ruler drawing operation meets the standard requirement, outputting ruler drawing operation image size analysis result data/>Is in accordance with the standard;
When (when) And/>If the image size is not successfully matched, and the image size of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image size analysis result data/>Is not in compliance with the standard.
Preferably, the operation steps of generating the rule drawing operation correction analysis result data by combining the rule drawing operation page cleanliness grade analysis data, the rule drawing operation image shape analysis result data and the rule drawing operation image size analysis result data and feeding back and outputting are as follows:
S71, acquiring the page cleanliness grade analysis data of the ruler regulation drawing operation Image shape analysis result data/>, of the ruler and ruler drawing operationImage size analysis result data/>, of the ruler and ruler drawing operation
S72, analyzing data of the page cleanliness level of the ruler regulation drawing operationImage shape analysis result data/>, of the ruler and ruler drawing operationImage size analysis result data/>, of the ruler and ruler drawing operationGenerating rule specification drawing operation correction analysis result data/>, by combiningAnd the display screen feeds back the output.
The system for realizing the automatic correction method of the ruler and compass drawing operation based on the AI comprises a ruler and compass drawing operation basic data management module, a ruler and compass drawing operation image shape correction management module and a ruler and compass drawing operation image size correction management module;
The basic data management module for ruler drawing operation comprises a ruler drawing operation image acquisition unit, a ruler drawing operation page image storage unit with different levels of neatness, a ruler drawing operation image page neatness analysis unit, a ruler drawing operation standard compass hole image storage unit, a ruler drawing operation compass hole object analysis unit and a ruler drawing operation compass hole object coordinate establishment unit;
The ruler and ruler drawing operation image acquisition unit acquires ruler and ruler drawing operation image characteristic data through a scanning and scoring machine; the page image storage unit is used for storing page image characteristic data of different levels of neatness in the rule drawing operation; the ruler drawing operation image page cleanliness analyzing unit is used for analyzing the cleanliness levels of ruler drawing operation page images by adopting an AI data identification algorithm to enable the ruler drawing operation image feature data and the ruler drawing operation page image feature data with different levels, so as to construct ruler drawing operation page cleanliness level analyzing data; the standard compass hole image storage unit is used for storing standard compass hole image characteristic data of the ruler drawing operation; the compass hole object analysis unit for ruler drawing operation adopts a data search algorithm to analyze the compass hole object in ruler drawing operation by using the ruler drawing operation image characteristic data and the ruler drawing operation standard compass hole image characteristic data, and constructs ruler drawing operation compass hole object data; the compass hole object coordinate establishing unit establishes plane coordinates for the compass hole object in the rule drawing operation according to the rule drawing operation compass hole object data, and generates rule drawing operation compass hole object coordinate data;
the ruler drawing operation image shape correction management module comprises a ruler drawing operation standard image shape and reference compass hole coordinate storage unit, a ruler drawing operation image shape positioning and matching unit, a ruler drawing operation image shape matching scaling storage unit, a ruler drawing operation standard image shape analysis unit and a ruler drawing operation standard image shape analysis result output;
The ruler and compass hole coordinate storage unit is used for storing ruler and compass drawing operation standard image shape and reference compass hole coordinate data; the ruler drawing operation image shape positioning and matching unit is used for orderly comparing the coordinate data of the compass hole object in the ruler drawing operation compass hole object coordinate data with the coordinate value of the reference compass hole coordinate data in the ruler drawing operation standard image shape and the reference compass hole coordinate data, and searching out the position where the ruler drawing operation image characteristic data is completely matched with the compass hole in the image shape of the ruler drawing operation standard image shape data in the ruler drawing operation standard image shape data and the reference compass hole coordinate data; the ruler drawing operation image shape matching scaling storage unit is used for storing ruler drawing operation image shape matching scaling data; the ruler drawing operation standard image shape analysis unit is used for performing image shape proportion adjustment of ruler drawing operation according to the ruler drawing operation image shape matching scaling data, performing image shape matching of ruler drawing operation with the ruler drawing operation standard image shape data in the ruler drawing operation standard image shape and reference compass hole coordinate data, and constructing ruler drawing operation image shape analysis result data; the standard image shape analysis result output of the ruler and compass drawing operation is used for outputting the image shape analysis result data of the ruler and compass drawing operation;
The ruler drawing operation graph size correction management module comprises a ruler drawing operation standard image size and reference compass hole coordinate storage unit, a ruler drawing operation image size positioning and matching unit, a ruler drawing operation standard image size analysis result output and ruler drawing operation correction result feedback unit;
The ruler and compass hole coordinate storage unit is used for storing the ruler and compass drawing operation standard image size and reference compass hole coordinate data; the ruler drawing operation image size positioning and matching unit is used for orderly comparing the coordinate data of the compass hole object in the ruler drawing operation compass hole object coordinate data with the standard image size of the ruler drawing operation and the reference compass hole coordinate data in a coordinate value mode, and searching out the position where the characteristic data of the ruler drawing operation image is completely matched with the compass hole in the standard image size of the ruler drawing operation and the image size of the standard image size data of the ruler drawing operation in the reference compass hole coordinate data; the ruler drawing operation standard image size analysis unit adopts an AI data identification algorithm to match the ruler drawing operation image characteristic data with the ruler drawing operation standard image size and the ruler drawing operation standard image size in the reference compass hole coordinate data so as to construct ruler drawing operation image size analysis result data; the standard image size analysis result output of the ruler and compass drawing operation is used for outputting the image size analysis result data of the ruler and compass drawing operation; and the ruler and compass drawing operation correction result feedback unit is used for combining the ruler and compass drawing operation page cleanliness grade analysis data, the ruler and compass drawing operation image shape analysis result data and the ruler and compass drawing operation image size analysis result data to generate ruler and compass drawing operation correction analysis result data, and feeding back and outputting the ruler and compass drawing operation correction analysis result data through a display screen.
(III) beneficial effects
The invention provides an automatic correction system and method for ruler and rule drawing operation based on AI. The beneficial effects are as follows:
1. The image acquisition unit of the ruler drawing operation and the page tidy degree analysis unit of the ruler drawing operation are matched with each other, the image characteristic parameters of the ruler drawing operation are accurately and efficiently acquired through the scanning and marking machine, the data acquisition efficiency of the ruler drawing operation is improved, the image characteristic parameters of the ruler drawing operation and the image characteristic parameters of the page of the ruler drawing operation with different grades of tidy degree are analyzed by utilizing the AI intelligent identification algorithm, and therefore the intelligent correction of the tidy degree of the page of the ruler drawing operation is achieved; the ruler-compass hole image storage unit and the ruler-compass hole object analysis unit are matched with each other, and the ruler-compass hole object in the ruler-compass drawing operation is accurately searched out by the aid of the ruler-compass drawing operation image characteristic parameters and the ruler-compass drawing operation standard compass hole image characteristic parameters through a data search algorithm; and the ruler-compass hole object coordinate establishing unit intelligently generates ruler-compass hole object coordinate data according to ruler-compass hole object parameters in ruler-compass drawing operation, so that accurate digital measurement of the plane coordinate position of the ruler-compass hole in ruler-compass drawing operation is realized.
2. Coordinate values of the coordinate parameters of the compass hole object of the ruler-compass operation are compared with the coordinate parameters of the standard image shape of the ruler-compass operation and the coordinate parameters of the reference compass hole by matching the standard image shape of the ruler-compass operation and the coordinate storage unit of the reference compass hole with the image shape positioning matching unit of the ruler-compass operation, so that the overlapping positions of the compass hole of the characteristic parameters of the ruler-compass operation and the standard image shape parameters of the ruler-compass operation are accurately matched, and the accurate overlapping positioning of the graphs of the ruler-compass operation and the standard ruler-compass operation is realized; the ruler drawing operation image shape matching scaling storage unit and the ruler drawing operation standard image shape analysis unit are matched with each other, the ruler drawing operation image shape matching scaling parameters are utilized to carry out image shape proportion adjustment of ruler drawing operation according to the ruler drawing operation image shape matching scaling parameters, and then the ruler drawing operation image shape matching scaling parameters are matched with the ruler drawing operation standard image shape parameters, so that a ruler drawing operation image shape correction result is intelligently and scientifically analyzed.
3. The coordinate parameters of the compass hole object of the ruler-compass drawing operation are compared with the standard image size of the ruler-compass drawing operation and the coordinate parameters of the reference compass hole through mutual matching of the standard image size of the ruler-compass drawing operation and the coordinate storage unit of the reference compass hole and the size positioning matching unit of the ruler-compass drawing operation, and the overlapping positions of the compass holes, which are matched with the characteristic parameters of the ruler-compass drawing operation image and the size parameters of the standard image of the ruler-compass drawing operation, are accurately searched; the ruler drawing operation standard image size analysis unit is used for carrying out image size matching of ruler drawing operation on the characteristic parameters of the ruler drawing operation image and the standard image size parameters of the ruler drawing operation by adopting an AI intelligent recognition algorithm, accurately analyzing the size correction result of the ruler drawing operation image and realizing intelligent size matching of the ruler drawing operation image; and the ruler and ruler drawing operation correcting result feedback unit is used for combining the ruler and ruler drawing operation page neatness correcting result, the ruler and ruler drawing operation image shape correcting result and the ruler and ruler drawing operation image size correcting result to generate a ruler and ruler drawing operation correcting analysis result, and feeding back and outputting the ruler and ruler drawing operation correcting result through the display screen, so that visual output of the ruler and ruler drawing operation correcting result is realized, and ruler drawing operation correcting efficiency and accuracy are improved.
Drawings
FIG. 1 is a schematic block diagram of an automatic correction system for AI-based ruler drawing jobs provided by the present invention;
fig. 2 is a flowchart of the automatic correction method for AI-based ruler drawing operation provided by the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the automatic correction system and the method for the ruler and ruler drawing operation based on the AI are as follows:
Referring to fig. 1-2, the automatic correction method for AI-based ruler-drawing operation includes the following steps:
s1, acquiring image characteristic data of ruler drawing operation;
S2, carrying out the neatness grade analysis of the ruler drawing operation page image by adopting a data identification algorithm to carry out the neatness grade analysis of the ruler drawing operation page image by adopting the ruler drawing operation image characteristic data and the ruler drawing operation page image characteristic data with different grades, and constructing ruler drawing operation page neatness grade analysis data;
s3, when analysis of the neatness grade analysis data of the ruler drawing operation page is completed, carrying out compass hole object analysis in ruler drawing operation by adopting a data search algorithm to carry out ruler drawing operation image characteristic data and ruler drawing operation standard compass hole image characteristic data, and constructing ruler drawing operation compass hole object data; establishing plane coordinates for the compass hole object in the ruler drawing operation according to the ruler drawing operation compass hole object data, and generating ruler drawing operation compass hole object coordinate data;
s4, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data, and searching out the position where the compass hole is completely matched with the standard image shape of the ruler drawing operation and the image shape of the standard image shape data of the ruler drawing operation in the standard image shape data of the reference compass hole coordinate data; the ruler and compass drawing operation image characteristic data are subjected to image shape proportion adjustment of ruler and compass drawing operation according to ruler and compass drawing operation image shape matching scaling data, then are subjected to image shape matching of ruler and compass drawing operation according to ruler and compass drawing operation standard image shape data in ruler and compass drawing operation standard image shape and reference compass hole coordinate data, and ruler and compass drawing operation image shape analysis result data are constructed and output;
S5, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the standard image size of the ruler drawing operation and the reference compass hole coordinate data in a coordinate value comparison mode, and searching out the position where the compass hole is completely matched in the image size of the standard image size data of the ruler drawing operation in the standard image size data of the ruler drawing operation and the reference compass hole coordinate data;
s6, when the position of the complete matching of the compass hole in the correction image size of the ruler drawing operation is finished, matching the characteristic data of the ruler drawing operation image with the standard image size of the ruler drawing operation and the standard image size of the ruler drawing operation in the reference compass hole coordinate data by adopting a data identification algorithm, constructing and outputting the analysis result data of the ruler drawing operation image size;
And S7, combining the neatness grade analysis data of the ruler drawing operation page, the shape analysis result data of the ruler drawing operation image and the size analysis result data of the ruler drawing operation image to generate the ruler drawing operation correction analysis result data, and feeding back and outputting the ruler drawing operation correction analysis result data.
Further, referring to fig. 1-2, the operation steps for collecting the image feature data of the ruler drawing operation are as follows:
S11, performing online scanning on the drawn ruler drawing operation by a scanning and scoring machine to generate ruler drawing operation image characteristic data
The data recognition algorithm is adopted to analyze the tidiness level of the page image of the ruler drawing operation by the image characteristic data of the ruler drawing operation and the tidiness page image characteristic data of different grades of ruler drawing operation, and the operation steps for constructing the tidiness level analysis data of the page of the ruler drawing operation are as follows:
s21, establishing page image characteristic data sets with different levels of neatness in ruler and rule drawing operation ,/>; Wherein/>Represents the/>Page image characteristic data of different levels of tidy degree of ruler and rule drawing operation corresponding to the level of page tidy degree ruler and rule drawing operation,/>The maximum value of the number of the cleanliness grades of the operation pages of the regulation map is represented;
S22, adopting a data recognition algorithm to map the ruler and ruler into the operation image characteristic data Tidy page image characteristic data set/>, different in level from ruler and rule drawing operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessCarrying out page image feature matching of ruler and compass drawing operation, and carrying out data recognition algorithm on the image feature data/>Different-level neatness page image characteristic data/>, from ruler and rule drawing operationThe operation steps for carrying out the neatness grade analysis of the page image of the ruler drawing operation are as follows:
S221, initializing each honey source Namely, page image characteristic data sets/>, of different levels of neatness in ruler and drafting operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessIs a honey source; setting the number N of honey sources, the current iteration times T and the maximum iteration times T;
Honey source Initial position/>The honey source position generation formula is as follows: /(I)Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationSearch space random generation, wherein/>Representation/>Internal random number,/>And/>Page image characteristic data sets/>, respectively representing different levels of neatness for ruler and rule drawing operationUpper and lower bounds of the search space;
S222, as honey source position Allocating employment bees, at the beginning of the search, at honey source location/>According to the formula/>Searching to generate new honey source position/>Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationTraversing and searching out page image characteristic data/>, of different levels of neatness, of all ruler regulation drawing operations
Wherein the method comprises the steps ofBy selecting randomly one of the N sources of honey not equal to i,/>Representing randomly selected honey sources/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationLocation in search space,/>Is a random number of [ -1,1] uniform distribution;
s223, according to the new honey source position According to the greedy selection method, determining the preserved honey source, namely selecting and ruler-planning drawing operation image characteristic data/>Matched page image characteristic data with different levels of neatness for ruler and ruler drawing operation
S224, the employment bees share honey source information, the following bees select honey sources for searching according to probability values, and the following bees calculate the probability that the honey sources found by the employment bees are followed according to a probability formula according to the honey source information shared by the employment bees, whereinRepresenting the position/>, of a new honey sourceThe probability of an employed bee finding to be followed,/>New honey source location/>, representing that following bees share according to employment beesIs adapted to the degree of adaptation of (a);
s225, searching by following bees in the same mode as employed bees, and determining reserved honey sources according to a greedy selection method Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationSearching and ruler-planning drawing operation image characteristic data/>, in search spaceMatching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanliness
S226, spying bees operate different-level neatness page image characteristic data sets in ruler regulation drawingDuring random search of search space, if honey source position/>Reaching the iteration threshold/>, through t times of iteration searchNo better honey source was found, the location of this honey source/>Will be abandoned and the employment bees corresponding to it will become the reconnaissance bees; the calculation formula of the new honey source position randomly generated by the scout bees in the search space is as follows:
wherein/> Expressed at/>After the iteration, new honey source/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationLocation of search space,/>Expressed at/>After the iteration, new honey source/>Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationSearching for a location of the space;
S227, wherein the updated iteration count measurement formula of t is t=t+1; when T meets the condition of the maximum search iteration number T, outputting the image characteristic data of the ruler-drafting drawing operation Matching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanlinessOtherwise, go to S222;
s23, page image characteristic data of different levels of cleanliness of ruler and regulation drawing operation matched according to the step S227 Page cleanliness class number/>, corresponding to ruler and ruler regulation drawing operationConstructing the page cleanliness grade analysis data of ruler and compass drawing operation
When the analysis of the neatness grade analysis data of the ruler drawing operation page is completed, carrying out the analysis of the compass hole object in the ruler drawing operation by adopting a data search algorithm to carry out the analysis of the ruler drawing operation image characteristic data and the ruler drawing operation standard compass hole image characteristic data, and constructing ruler drawing operation compass hole object data; according to the compass hole object data of the ruler drawing operation, establishing plane coordinates for the compass hole object in the ruler drawing operation, and generating the compass hole object coordinate data of the ruler drawing operation comprises the following operation steps:
S31, establishing a standard compass hole image characteristic data set for ruler and compass drawing operation ; Wherein/>Represents the/>Standard compass hole image characteristic data of drawing operation of ruler and ruler,/>The method comprises the steps that the maximum value of the standard compass hole image feature quantity of the ruler-compass drawing operation is represented, and the standard compass hole image feature data of the ruler-drawing operation represents the pinhole image feature data of the compass left on the surface of a page of a standard ruler-drawing operation finished product;
s32, adopting a depth-first search algorithm to map the ruler and the ruler into the image characteristic data of the drawing operation Standard compass hole image characteristic data set/>, for ruler drawing operationStandard compass hole image characteristic data/>, of middle ruler drawing operation standard compass hole image characteristic data/>According to the number/>, of the standard compass hole image of the ruler and compass drawing operation standardOrderly analyzing the compass hole object in the ruler drawing operation image features and the ruler drawing operation standard compass hole image features, and obtaining ruler drawing operation image feature data/>The compass hole object analyzed in the method is constructed into compass hole object data of ruler-compass drawing operation and a compass hole object data set/>,/>Wherein/>Image characteristic data/>, representing ruler and compass drawing operationCompasses hole object data of the 1 st ruler drawing operation,/>Image characteristic data/>, representing ruler and compass drawing operationMiddle/>The method comprises the steps of (1) drawing operation compasses and hole object data of the ruler;
S33, establishing a plane rectangular coordinate system by taking the rectangular edge of the page where the ruler drawing operation is located as the transverse and longitudinal coordinate axes of the coordinate system, and searching out a compass hole object data set of the ruler drawing operation Compasses hole object data/>, of middle ruler drafting operationTo/>Generating a coordinate data set/>, of a compass hole object, of the ruler and compass drawing operation, for plane coordinates in a plane rectangular coordinate systemWherein/>Compasses hole object data/>, representing ruler and compass drawing operationCoordinate data of compass hole object for corresponding ruler and compass drawing operation,/>Compasses hole object data/>, representing ruler and compass drawing operationThe corresponding ruler drawing operation compasses hole object coordinate data,,/>Coordinate data/>, representing compass hole object in ruler and compass drawing operationThe abscissa in the planar rectangular coordinate system,Coordinate data/>, representing compass hole object in ruler and compass drawing operationAnd the ordinate in the plane rectangular coordinate system.
The image acquisition unit of the ruler drawing operation and the page tidy degree analysis unit of the ruler drawing operation are matched with each other, the image characteristic parameters of the ruler drawing operation are accurately and efficiently acquired through the scanning and marking machine, the data acquisition efficiency of the ruler drawing operation is improved, the image characteristic parameters of the ruler drawing operation and the image characteristic parameters of the page of the ruler drawing operation with different grades of tidy degree are analyzed by utilizing the AI intelligent identification algorithm, and therefore the intelligent correction of the tidy degree of the page of the ruler drawing operation is achieved; the ruler-compass hole image storage unit and the ruler-compass hole object analysis unit are matched with each other, and the ruler-compass hole object in the ruler-compass drawing operation is accurately searched out by the aid of the ruler-compass drawing operation image characteristic parameters and the ruler-compass drawing operation standard compass hole image characteristic parameters through a data search algorithm; and the ruler-compass hole object coordinate establishing unit intelligently generates ruler-compass hole object coordinate data according to ruler-compass hole object parameters in ruler-compass drawing operation, so that accurate digital measurement of the plane coordinate position of the ruler-compass hole in ruler-compass drawing operation is realized.
Further, referring to fig. 1-2, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data, and searching out the position where the compass hole is completely matched in the image shape of the standard image shape data of the ruler drawing operation in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data; the operation steps of carrying out image shape proportion adjustment on the image characteristic data of the ruler drawing operation according to the image shape matching scaling data of the ruler drawing operation, then carrying out image shape matching on the image characteristic data of the ruler drawing operation with the ruler drawing operation standard image shape and the reference compass hole coordinate data, constructing and outputting the image shape analysis result data of the ruler drawing operation are as follows:
s41, establishing a standard image shape of ruler-compass drawing operation and a reference compass hole coordinate data set Wherein/>Representing standard image shape data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image shape of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image shape reference compass hole coordinate data for drawing of each ruler/compassThe maximum value of the data quantity of the standard image shape reference compass hole of the ruler drawing operation is represented, and the standard image shape reference compass Kong Zuobiao of the ruler drawing operation represents the coordinate of the compass hole coordinate corresponding to the standard image shape of the ruler drawing operation in a plane coordinate system,/>,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAbscissa in plane rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAn ordinate in a planar rectangular coordinate system;
establishing a ruler-drawing operation image shape matching scaling data set ,/>; Wherein/>Represents the/>Image shape matching scaling data for seed ruler drawing operation,/>The method comprises the steps that the maximum value of the number of the shape matching scaling data of the ruler drawing operation image is represented, and the shape matching scaling data of the ruler drawing operation image comprise shape matching scaling data of the ruler drawing operation image, shape matching scaling data of the ruler drawing operation image and shape matching original scaling data of the ruler drawing operation image;
S42, integrating coordinate data of compass hole object in ruler and compass drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image shape reference compass hole coordinate data set/>Standard image shape reference compass hole coordinate data/>, of middle ruler drawing operation standard image shape reference compass hole coordinate data/>To/>Comparing the coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image shape for drawing with ruler and compass and reference compass hole coordinate data setStandard image shape data/>, for medium ruler drawing operationThe position of the complete matching of the compass holes in the image shape;
s43, ruler and compass drawing operation image characteristic data Matching scaling data sets/>, according to ruler-drawing operation image shapesImage shape matching scaling data/>, for medium ruler drawing operationTo/>Image shape proportion adjustment of ruler drawing operation is orderly carried out, and then the image shape proportion adjustment is carried out on the ruler drawing operation, the ruler drawing operation and the standard image shape of the ruler drawing operation are orderly carried out, and the ruler drawing operation and the standard image shape and the standard ruler drawing operation are orderly carried out, and the ruler drawing operation and the standard ruler drawing operation are orderly carried out, and the ruler drawingStandard image shape data/>, for medium ruler drawing operationImage shape matching of ruler drawing operation is carried out, and image shape analysis result data/>, of ruler drawing operation, is constructedAnd output;
When (when) And/>If the image shape matching is successful, the image shape representing the ruler drawing operation meets the standard requirement, and the image shape analysis result data/>Is in accordance with the standard;
When (when) And/>If the image shape is not successfully matched, and the image shape of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image shape analysis result data/>Is not in compliance with the standard.
Coordinate values of the coordinate parameters of the compass hole object of the ruler-compass operation are compared with the coordinate parameters of the standard image shape of the ruler-compass operation and the coordinate parameters of the reference compass hole by matching the standard image shape of the ruler-compass operation and the coordinate storage unit of the reference compass hole with the image shape positioning matching unit of the ruler-compass operation, so that the overlapping positions of the compass hole of the characteristic parameters of the ruler-compass operation and the standard image shape parameters of the ruler-compass operation are accurately matched, and the accurate overlapping positioning of the graphs of the ruler-compass operation and the standard ruler-compass operation is realized; the ruler drawing operation image shape matching scaling storage unit and the ruler drawing operation standard image shape analysis unit are matched with each other, the ruler drawing operation image shape matching scaling parameters are utilized to carry out image shape proportion adjustment of ruler drawing operation according to the ruler drawing operation image shape matching scaling parameters, and then the ruler drawing operation image shape matching scaling parameters are matched with the ruler drawing operation standard image shape parameters, so that a ruler drawing operation image shape correction result is intelligently and scientifically analyzed.
Further, referring to fig. 1-2, the steps of sequentially comparing the coordinate data of the compass hole object in the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the dimension of the standard image in the ruler drawing operation and the reference compass hole coordinate data, and searching the position where the compass hole is completely matched in the dimension of the image data of the standard image in the ruler drawing operation and the dimension of the standard image in the reference compass hole coordinate data are as follows:
S51, establishing standard image size of ruler-compass drawing operation and reference compass hole coordinate data set WhereinRepresenting standard image size data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image size of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image size reference compass hole coordinate data for each ruler drawing operation,/>The method comprises the steps of representing the maximum value of the number of the standard image size reference compass hole coordinate data of the ruler drawing operation, wherein the standard image size reference compass hole coordinate data of the ruler drawing operation represents the coordinate of the compass hole coordinate corresponding to the standard image size of the ruler drawing operation in a plane coordinate system, and the coordinate of the compass hole coordinate corresponding to the standard image size of the ruler drawing operation is/is shown in the plane coordinate system,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAbscissa in plane rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAn ordinate in a planar rectangular coordinate system;
s52, integrating coordinate data of compass hole object in ruler and compass drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image size of the ruler drawing operation refers to the compass hole coordinate data set/>Standard image size reference compass hole coordinate data/>, of middle ruler drawing operation standard image size reference compass hole coordinate data/>To/>Comparing the coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image size for drawing with ruler and compass and reference compass hole coordinate data setStandard image size data/>, for medium ruler drawing operationIs the position of the perfect match of the compass aperture in the image size.
When the position of the complete matching of the compass hole in the correction image size of the ruler drawing operation is finished, the data identification algorithm is adopted to match the image characteristic data of the ruler drawing operation with the standard image size of the ruler drawing operation and the standard image size of the reference compass hole coordinate data, and the operation steps of constructing and outputting the analysis result data of the ruler drawing operation image size are as follows:
S61, adopting a data identification algorithm in the step S22 to map the ruler and the ruler into the image characteristic data of the drawing operation Standard image size for ruler and compass drawing operation and reference compass hole coordinate data set/>Standard image size data/>, for medium ruler drawing operationImage size matching of ruler drawing operation is carried out, and ruler drawing operation image size analysis result data/> isconstructedAnd output;
When (when) And/>If the image size is successfully matched, and the image size of the ruler drawing operation meets the standard requirement, outputting ruler drawing operation image size analysis result data/>Is in accordance with the standard;
When (when) And/>If the image size is not successfully matched, and the image size of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image size analysis result data/>Is not in compliance with the standard.
The operation steps of combining the page cleanliness grade analysis data of the ruler drawing operation, the shape analysis result data of the ruler drawing operation image and the size analysis result data of the ruler drawing operation image to generate the ruler drawing operation correction analysis result data and feeding back and outputting are as follows:
s71, acquiring the analysis data of the neatness level of the ruler drawing operation page Image shape analysis result data/>, of ruler and ruler drawing operationRuler drawing operation image size analysis result data/>
S72, analyzing data of the neatness level of the ruler and ruler drawing operation pageImage shape analysis result data/>, of ruler and ruler drawing operationRuler drawing operation image size analysis result data/>Generating rule specification drawing operation correction analysis result data/>, by combiningAnd the display screen feeds back the output.
The coordinate parameters of the compass hole object of the ruler-compass drawing operation are compared with the standard image size of the ruler-compass drawing operation and the coordinate parameters of the reference compass hole through mutual matching of the standard image size of the ruler-compass drawing operation and the coordinate storage unit of the reference compass hole and the size positioning matching unit of the ruler-compass drawing operation, and the overlapping positions of the compass holes, which are matched with the characteristic parameters of the ruler-compass drawing operation image and the size parameters of the standard image of the ruler-compass drawing operation, are accurately searched; the ruler drawing operation standard image size analysis unit is used for carrying out image size matching of ruler drawing operation on the characteristic parameters of the ruler drawing operation image and the standard image size parameters of the ruler drawing operation by adopting an AI intelligent recognition algorithm, accurately analyzing the size correction result of the ruler drawing operation image and realizing intelligent size matching of the ruler drawing operation image; and the ruler and ruler drawing operation correcting result feedback unit is used for combining the ruler and ruler drawing operation page neatness correcting result, the ruler and ruler drawing operation image shape correcting result and the ruler and ruler drawing operation image size correcting result to generate a ruler and ruler drawing operation correcting analysis result, and feeding back and outputting the ruler and ruler drawing operation correcting result through the display screen, so that visual output of the ruler and ruler drawing operation correcting result is realized, and ruler drawing operation correcting efficiency and accuracy are improved.
The system of the automatic correction method of the ruler drawing operation based on the AI is realized, wherein the ruler drawing operation basic data management module, the ruler drawing operation image shape correction management module and the ruler drawing operation image size correction management module are used for realizing the automatic correction of the ruler drawing operation based on the AI;
the ruler drawing operation basic data management module comprises a ruler drawing operation image acquisition unit, a ruler drawing operation different-level neatness page image storage unit, a ruler drawing operation image page neatness analysis unit, a ruler drawing operation standard compass hole image storage unit, a ruler drawing operation compass hole object analysis unit and a ruler drawing operation compass hole object coordinate establishment unit;
The ruler-marking drawing operation image acquisition unit acquires the ruler-marking drawing operation image characteristic data through the scanning and marking machine; the page image storage unit is used for storing page image characteristic data of different levels of cleanliness of the ruler drawing operation; the ruler drawing operation image page cleanliness analyzing unit is used for carrying out the cleanliness grade analysis of ruler drawing operation page images by adopting an AI data recognition algorithm to carry out the cleanliness grade analysis of ruler drawing operation image feature data and ruler drawing operation page image feature data with different levels, so as to construct ruler drawing operation page cleanliness grade analyzing data; the ruler-compass drawing operation standard compass hole image storage unit is used for storing ruler-compass drawing operation standard compass hole image characteristic data; the ruler-compass hole object analysis unit is used for analyzing the compass hole object in the ruler-compass operation by adopting a data search algorithm to carry out the ruler-compass hole object analysis on the ruler-compass operation image characteristic data and the ruler-compass operation standard compass hole image characteristic data, so as to construct ruler-compass operation compass hole object data; the compass hole object coordinate establishing unit establishes plane coordinates for the compass hole object in the ruler drawing operation according to the compass hole object data in the ruler drawing operation, and generates compass hole object coordinate data in the ruler drawing operation;
The ruler drawing operation image shape correction management module comprises a ruler drawing operation standard image shape and reference compass hole coordinate storage unit, a ruler drawing operation image shape positioning and matching unit, a ruler drawing operation image shape matching scaling storage unit, a ruler drawing operation standard image shape analysis unit and a ruler drawing operation standard image shape analysis result output;
The ruler-compass drawing operation standard image shape and reference compass hole coordinate storage unit is used for storing ruler-compass drawing operation standard image shape and reference compass hole coordinate data; the ruler-compass drawing operation image shape positioning and matching unit is used for orderly comparing the coordinate data of the compass hole object in the ruler-compass drawing operation compass hole object coordinate data with the coordinate value of the reference compass hole coordinate data in the ruler-compass drawing operation standard image shape and the reference compass hole coordinate data, and searching out the position where the compass hole is completely matched in the image shape of the ruler-compass drawing operation standard image shape data in the ruler-compass drawing operation standard image shape and the reference compass hole coordinate data; the ruler and compass drawing operation image shape matching scaling storage unit is used for storing ruler and compass drawing operation image shape matching scaling data; the ruler and compass hole coordinate data are used for obtaining ruler and compass operation standard image shape data, and the ruler and compass operation standard image shape data are used for obtaining ruler and compass operation standard image shape data; outputting a standard image shape analysis result of the ruler-compass drawing operation, and outputting ruler-compass drawing operation image shape analysis result data;
The ruler drawing operation graph size correction management module comprises a ruler drawing operation standard image size and reference compass hole coordinate storage unit, a ruler drawing operation image size positioning and matching unit, a ruler drawing operation standard image size analysis result output and ruler drawing operation correction result feedback unit;
The ruler-compass drawing operation standard image size and reference compass hole coordinate storage unit is used for storing ruler-compass drawing operation standard image size and reference compass hole coordinate data; the ruler-compass drawing operation image size positioning and matching unit is used for orderly comparing the coordinate data of the compass hole object in the ruler-compass drawing operation compass hole object coordinate data with the coordinate value of the reference compass hole coordinate data in the ruler-compass drawing operation standard image size and the reference compass hole coordinate data, and searching out the position where the compass hole is completely matched in the image size of the ruler-compass drawing operation standard image size data in the ruler-compass drawing operation standard image size and the reference compass hole coordinate data; the ruler-compass drawing operation standard image size analysis unit is used for matching the ruler-compass drawing operation standard image size with the ruler-compass drawing operation standard image size and the reference compass hole coordinate data by adopting an AI data identification algorithm, so as to construct ruler-compass drawing operation image size analysis result data; outputting a standard image size analysis result of the ruler-compass drawing operation, and outputting ruler-compass drawing operation image size analysis result data; and the ruler and ruler drawing operation correction result feedback unit is used for combining the ruler and ruler drawing operation page cleanliness grade analysis data, ruler and ruler drawing operation image shape analysis result data and ruler drawing operation image size analysis result data to generate ruler and ruler drawing operation correction analysis result data, and feeding back and outputting the ruler and ruler drawing operation correction analysis result data through the display screen.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. The automatic correction method for the ruler and ruler drawing operation based on the AI is characterized by comprising the following steps:
s1, acquiring image characteristic data of ruler and compass drawing operation, wherein the S1 comprises the following steps:
S11, performing online scanning on the drawn ruler drawing operation by a scanning and scoring machine to generate ruler drawing operation image characteristic data
S2, carrying out the neatness grade analysis of the ruler drawing operation page image by adopting a data identification algorithm to the ruler drawing operation image characteristic data and the ruler drawing operation page image characteristic data with different grades, and constructing ruler drawing operation page neatness grade analysis data, wherein the S2 comprises the following steps:
s21, establishing page image characteristic data sets with different levels of neatness in ruler and rule drawing operation ; Wherein/>Represents the/>Page image characteristic data of different levels of tidy degree of ruler and rule drawing operation corresponding to the level of page tidy degree ruler and rule drawing operation,/>The maximum value of the number of the cleanliness grades of the operation pages of the regulation map is represented;
s22, adopting a data recognition algorithm to map the ruler and ruler with the image characteristic data of the drawing operation Tidy page image characteristic data set/>, different in level from ruler and rule drawing operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessPerforming page image feature matching of ruler drawing operation, and using a data recognition algorithm to perform the ruler drawing operation image feature data/>Different-level neatness page image characteristic data/>, from ruler and rule drawing operationThe operation steps for carrying out the neatness grade analysis of the page image of the ruler drawing operation are as follows:
S221, initializing each honey source Namely, page image characteristic data sets/>, of different levels of neatness in ruler and drafting operationDrawing operation of medium ruler is regulated to page image characteristic data/>, with different levels of cleanlinessIs a honey source; setting the number N of honey sources, the current iteration times T and the maximum iteration times T;
Honey source Initial position/>The honey source position generation formula is as follows: /(I)Page image characteristic data set/>, of different levels of cleanliness in ruler and drafting operationSearch space random generation, wherein/>Representation/>Internal random number,/>And/>Page image characteristic data sets/>, respectively representing different levels of neatness for ruler and rule drawing operationUpper and lower bounds of the search space;
S222, as honey source position Allocating employment bees, at the beginning of the search, at honey source location/>Searching to generate new honey source position/>Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationTraversing and searching out page image characteristic data/>, of different levels of neatness, of all ruler regulation drawing operations
S223, according to the new honey source positionAccording to the greedy selection method, determining the preserved honey source, namely selecting and ruler-planning drawing operation image characteristic data/>Matching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanliness
S224, the employing bees share the honey source information, the following bees select honey sources for searching according to the probability values, and the following bees share the honey source information according to the employing bees;
s225, searching by following bees in the same mode as employed bees, and determining reserved honey sources according to a greedy selection method Namely, page image characteristic data sets/>, which are of different levels of cleanliness in ruler and drafting operationSearching and ruler-planning drawing operation image characteristic data/>, in search spaceMatching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanliness
S226, spying bees operate different-level neatness page image characteristic data sets in ruler regulation drawingDuring random search of search space, if honey source position/>Reaching the iteration threshold/>, through t times of iteration searchNo better honey source was found, the location of this honey source/>Will be abandoned and the employment bees corresponding to it will become the reconnaissance bees;
S227, wherein the updated iteration count measurement formula of t is t=t+1; when T meets the condition of the maximum search iteration number T, outputting the image characteristic data of the ruler-drafting drawing operation Matching ruler and rule drawing operation page image characteristic data/>, with different levels of cleanlinessOtherwise, go to S222;
s23, page image characteristic data of different levels of cleanliness of ruler regulation drawing operation matched according to the step S227 Page cleanliness class number/>, corresponding to ruler and ruler regulation drawing operationConstructing the page cleanliness grade analysis data of ruler and compass drawing operation
S3, when the analysis of the neatness grade analysis data of the ruler drawing operation page is completed, carrying out the analysis of the compass hole object in ruler drawing operation by adopting a data search algorithm on the ruler drawing operation image characteristic data and the ruler drawing operation standard compass hole image characteristic data, and constructing ruler drawing operation compass hole object data; establishing plane coordinates for the compass hole object in the ruler drawing operation according to the ruler drawing operation compass hole object data, and generating ruler drawing operation compass hole object coordinate data, wherein the S3 comprises the following steps:
S31, establishing a standard compass hole image characteristic data set for ruler and compass drawing operation ,/>; Wherein/>Represents the/>Standard compass hole image characteristic data of drawing operation of ruler and ruler,/>The method comprises the steps of representing the maximum value of the standard compass hole image feature quantity of the ruler drawing operation, wherein the standard compass hole image feature data of the ruler drawing operation represent the pinhole image feature data of the compass left on the surface of a page of a standard ruler drawing operation finished product;
S32, adopting a depth-first search algorithm to map the ruler with the graphic operation image characteristic data Standard compass hole image characteristic data set/>, for ruler drawing operationStandard compass hole image characteristic data/>, of middle ruler drawing operation standard compass hole image characteristic data/>According to the number/>, of the standard compass hole image of the ruler and compass drawing operation standardOrderly analyzing the compass hole object in the ruler drawing operation image features and the ruler drawing operation standard compass hole image features, and carrying out/>, on the ruler drawing operation image feature dataThe compass hole object analyzed in the method is constructed into compass hole object data of ruler-compass drawing operation and a compass hole object data set/>,/>Wherein/>Representing the ruler and ruler drawing operation image characteristic data/>Compasses hole object data of the 1 st ruler drawing operation,/>Representing the ruler and ruler drawing operation image characteristic data/>Middle/>The method comprises the steps of (1) drawing operation compasses and hole object data of the ruler;
S33, establishing a plane rectangular coordinate system by taking the rectangular edge of the page where the ruler drawing operation is located as the transverse and longitudinal coordinate axes of the coordinate system, and searching out a compass hole object data set of the ruler drawing operation Compasses hole object data/>, of middle ruler drafting operationTo/>Generating a coordinate data set of a compass hole object for ruler drawing operation for plane coordinates in the plane rectangular coordinate systemWherein/>Representing the compass hole object data/>, of the ruler and compass drawing operationCoordinate data of compass hole object for corresponding ruler and compass drawing operation,/>Representing the compass hole object data/>, of the ruler and compass drawing operationCoordinate data of compass hole object for corresponding ruler and compass drawing operation,/>,/>Coordinate data/>, representing compass hole object in ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Coordinate data/>, representing compass hole object in ruler and compass drawing operationAn ordinate in the planar rectangular coordinate system;
S4, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the coordinate value of the reference compass hole coordinate data in the standard image shape of the ruler drawing operation and the reference compass hole coordinate data, and searching out the position of the complete match of the compass hole in the characteristic data of the ruler drawing operation image with the standard image shape of the ruler drawing operation and the image shape of the standard image shape data of the reference compass hole coordinate data; the ruler and compass drawing operation image characteristic data are matched with the ruler and compass drawing operation standard image shape data in the ruler and compass drawing operation standard image shape and reference compass hole coordinate data after the ruler and compass drawing operation image shape proportion is adjusted according to the ruler and compass drawing operation image shape matching scaling data, ruler and compass drawing operation image shape analysis result data are constructed and output, and the S4 comprises the following steps:
s41, establishing a standard image shape of ruler-compass drawing operation and a reference compass hole coordinate data set Wherein/>Representing standard image shape data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image shape of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image shape reference compass hole coordinate data for drawing of each ruler/compassThe method comprises the steps of representing the maximum value of the data quantity of the standard image shape reference compass hole of the ruler drawing operation, wherein the standard image shape reference compass Kong Zuobiao of the ruler drawing operation represents the coordinate of the compass hole coordinate corresponding to the standard image shape of the ruler drawing operation in a plane coordinate system,/>,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image shape of ruler and compass drawing operationAn ordinate in the planar rectangular coordinate system;
establishing a ruler-drawing operation image shape matching scaling data set ,/>; Wherein/>Represents the/>Image shape matching scaling data for seed ruler drawing operation,/>The method comprises the steps of representing the maximum value of the number of the shape matching scaling data of the ruler drawing operation image, wherein the shape matching scaling data of the ruler drawing operation image comprise shape matching scaling data of the ruler drawing operation image, shape matching scaling data of the ruler drawing operation image and shape matching original scaling data of the ruler drawing operation image;
s42, collecting coordinate data of the compass hole object in the ruler drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image shape reference compass hole coordinate data set/>Standard image shape reference compass hole coordinate data/>, of middle ruler drawing operation standard image shape reference compass hole coordinate data/>To/>Comparing coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image shape of operation standard image of the ruler and compass and reference compass hole coordinate data set/>Standard image shape data/>, for medium ruler drawing operationThe position of the complete matching of the compass holes in the image shape;
S43, the ruler and the ruler drawing operation image characteristic data Matching scaling data sets/>, according to ruler-drawing operation image shapesImage shape matching scaling data/>, for medium ruler drawing operationTo/>Image shape proportion of orderly ruler drawing operation is adjusted and then the image shape proportion is adjusted to be matched with the standard image shape of the ruler drawing operation and reference compass hole coordinate data set/>Standard image shape data/>, for medium ruler drawing operationImage shape matching of ruler drawing operation is carried out, and image shape analysis result data/>, of ruler drawing operation, is constructedAnd output;
When (when) And/>If the image shape matching is successful, the image shape representing the ruler drawing operation meets the standard requirement, and the image shape analysis result data/>Is in accordance with the standard;
When (when) And/>If the image shape is not successfully matched, and the image shape of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image shape analysis result data/>Is not in accordance with the standard;
S5, orderly comparing the coordinate data of the compass hole object in the coordinate data of the compass hole object of the ruler drawing operation with the standard image size of the ruler drawing operation and the coordinate data of the reference compass hole in the coordinate data of the reference compass hole, and searching out the position of the complete matching of the compass hole in the characteristic data of the ruler drawing operation image and the image size of the standard image size data of the ruler drawing operation in the coordinate data of the ruler drawing operation and the reference compass hole;
S6, when the position of the complete matching of the compass hole in the correction image size of the ruler drawing operation is finished, adopting a data recognition algorithm to match the characteristic data of the ruler drawing operation image with the standard image size of the ruler drawing operation and the standard image size of the ruler drawing operation in the reference compass hole coordinate data, constructing and outputting the analysis result data of the ruler drawing operation image size;
And S7, combining the neatness grade analysis data of the ruler drawing operation page, the shape analysis result data of the ruler drawing operation image and the size analysis result data of the ruler drawing operation image to generate ruler drawing operation correction analysis result data, and feeding back and outputting the ruler drawing operation correction analysis result data.
2. The automatic correction method for AI-based ruler drawing jobs as claimed in claim 1, wherein: the step S5 comprises the following steps:
S51, establishing standard image size of ruler-compass drawing operation and reference compass hole coordinate data set Wherein/>Representing standard image size data of ruler and compass drawing operation,/>Reference compass hole coordinate data set/>, representing standard image size of ruler and compass drawing operation,/>; Wherein/>Represents the/>Standard image size reference compass hole coordinate data for each ruler drawing operation,/>The method comprises the steps of representing the maximum value of the number of the standard image size reference compass hole coordinate data of the ruler drawing operation, wherein the standard image size reference compass hole coordinate data of the ruler drawing operation represent the coordinates of compass hole coordinates corresponding to the standard image size of the ruler drawing operation in a plane coordinate system, and the coordinates of the compass hole coordinates corresponding to the standard image size of the ruler drawing operation are expressed by the data of the standard image size reference compass hole coordinate data of the ruler drawing operation,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAbscissa in the planar rectangular coordinate system,/>Reference compass hole coordinate data/>, representing standard image size of ruler and compass drawing operationAn ordinate in the planar rectangular coordinate system;
s52, collecting coordinate data of the compass hole object in the compass drawing operation The coordinate data of the compass hole object of the middle ruler drawing operation is ordered, and the standard image size of the ruler drawing operation refers to the compass hole coordinate data set/>Standard image size reference compass hole coordinate data/>, of middle ruler drawing operation standard image size reference compass hole coordinate data/>To/>Comparing coordinate values, and searching out the image characteristic data/>, of the ruler and compass drawing operation by adopting a depth-first search algorithmStandard image size of operation with the ruler and compass and reference compass hole coordinate data set/>Standard image size data/>, for medium ruler drawing operationIs the position of the perfect match of the compass aperture in the image size.
3. The automatic correction method for AI-based ruler drawing jobs as claimed in claim 2, wherein: the step S6 comprises the following steps:
S61, adopting a data identification algorithm in the step S22 to carry out image characteristic data of the ruler and compass drawing operation Standard image size of operation with the ruler and compass and reference compass hole coordinate data set/>Standard image size data/>, for medium ruler drawing operationImage size matching of ruler drawing operation is carried out, and ruler drawing operation image size analysis result data/> isconstructedAnd output;
When (when) And/>If the image size is successfully matched, and the image size of the ruler drawing operation meets the standard requirement, outputting ruler drawing operation image size analysis result data/>Is in accordance with the standard;
When (when) And/>If the image size is not successfully matched, and the image size of the ruler drawing operation does not meet the standard requirement, outputting ruler drawing operation image size analysis result data/>Is not in compliance with the standard.
4. The automatic correction method for AI-based ruler drawing jobs as claimed in claim 3, wherein: the step S7 comprises the following steps:
S71, acquiring the page cleanliness grade analysis data of the ruler regulation drawing operation Image shape analysis result data/>, of the ruler and ruler drawing operationImage size analysis result data/>, of the ruler and ruler drawing operation
S72, analyzing data of the page cleanliness level of the ruler regulation drawing operationImage shape analysis result data/>, of the ruler and ruler drawing operationImage size analysis result data/>, of the ruler and ruler drawing operationGenerating rule specification drawing operation correction analysis result data/>, by combiningAnd the display screen feeds back the output.
5. A system for implementing an automatic correction method for AI-based ruler drawing jobs as claimed in any one of claims 1 to 4, wherein: the system comprises a ruler and compass drawing operation basic data management module, a ruler and compass drawing operation image shape correction management module and a ruler and compass drawing operation image size correction management module.
CN202410330012.4A 2024-03-22 2024-03-22 Automatic correction system and method for ruler and ruler drawing operation based on AI Active CN117934976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410330012.4A CN117934976B (en) 2024-03-22 2024-03-22 Automatic correction system and method for ruler and ruler drawing operation based on AI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410330012.4A CN117934976B (en) 2024-03-22 2024-03-22 Automatic correction system and method for ruler and ruler drawing operation based on AI

Publications (2)

Publication Number Publication Date
CN117934976A CN117934976A (en) 2024-04-26
CN117934976B true CN117934976B (en) 2024-05-28

Family

ID=90754252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410330012.4A Active CN117934976B (en) 2024-03-22 2024-03-22 Automatic correction system and method for ruler and ruler drawing operation based on AI

Country Status (1)

Country Link
CN (1) CN117934976B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118570437B (en) * 2024-08-02 2024-10-15 济南科明数码技术股份有限公司 Intelligent ruler-compass drawing error recognition system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324449A (en) * 2012-03-19 2013-09-25 精工爱普生株式会社 Method for simulating impact printer output
CN106909239A (en) * 2017-04-07 2017-06-30 贵州大学 A kind of student uses construction with ruler and compasses device on computers
CN109472845A (en) * 2018-11-20 2019-03-15 况永胜 A kind of production and application method of the self-control drawing tool based on several drawing board
CN110110714A (en) * 2019-04-28 2019-08-09 重庆学析优科技有限公司 Method and system are corrected automatically on a kind of line of papery operation
WO2020094042A1 (en) * 2018-11-07 2020-05-14 杨峰 Contact wire, contact net, unmanned aerial vehicle, and charging rod
WO2022221712A1 (en) * 2021-04-15 2022-10-20 Curemetrix, Inc. Detecting, scoring and predicting disease risk using multiple medical-imaging modalities

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI799236B (en) * 2022-04-20 2023-04-11 圓展科技股份有限公司 Automatic scoring method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324449A (en) * 2012-03-19 2013-09-25 精工爱普生株式会社 Method for simulating impact printer output
CN106909239A (en) * 2017-04-07 2017-06-30 贵州大学 A kind of student uses construction with ruler and compasses device on computers
WO2020094042A1 (en) * 2018-11-07 2020-05-14 杨峰 Contact wire, contact net, unmanned aerial vehicle, and charging rod
CN109472845A (en) * 2018-11-20 2019-03-15 况永胜 A kind of production and application method of the self-control drawing tool based on several drawing board
CN110110714A (en) * 2019-04-28 2019-08-09 重庆学析优科技有限公司 Method and system are corrected automatically on a kind of line of papery operation
WO2022221712A1 (en) * 2021-04-15 2022-10-20 Curemetrix, Inc. Detecting, scoring and predicting disease risk using multiple medical-imaging modalities

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张应中,罗晓芳,胡宜鸣,孟淑华.工程制图智能电子习题集软件系统的设计与实现.工程图学学报.2004,(01),全文. *
张明 ; .职业学校尺规制图与AutoCAD课程整合的实践与研究.赤子(中旬).2013,(10),全文. *
陈坤 ; 陈志伟 ; .基于WEB技术的工程制图习题库系统的设计.西南师范大学学报(自然科学版).2010,(05),全文. *

Also Published As

Publication number Publication date
CN117934976A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN109118091B (en) Art quality evaluation system
CN109886997A (en) Method, apparatus and terminal device are determined based on the identification frame of target detection
CN117934976B (en) Automatic correction system and method for ruler and ruler drawing operation based on AI
CN110245640A (en) For being automatically positioned the method and work correction method, system and storage medium of topic in work correction
CN106846961B (en) Electronic test paper processing method and device
CN110689013A (en) Automatic marking method and system based on feature recognition
CN118072334B (en) Automatic correction system and method for ruler-regulation drawing operation
CN110956138B (en) Auxiliary learning method based on home education equipment and home education equipment
WO2022170985A1 (en) Exercise selection method and apparatus, and computer device and storage medium
CN111091538A (en) Method and device for automatically identifying and detecting pipeline welding seam and defect
CN106934767A (en) A kind of test paper generation and methods of marking and system
CN109558902A (en) A kind of fast target detection method
CN112990183A (en) Method, system and device for extracting homonymous strokes of offline handwritten Chinese characters
CN106980689A (en) A kind of method that data visualization is realized by interactive voice
Cauvin et al. Thematic Cartography, Cartography and the Impact of the Quantitative Revolution
CN113222913A (en) Circuit board defect detection positioning method and device and storage medium
CN111860443A (en) Chinese work topic character recognition method, search method, server and system
CN111245103A (en) Display and storage system of power grid transformer nameplate based on neural computing rod
CN113688273B (en) Graphic question answering and judging method and device
CN115601769A (en) Method and device for adjusting hand-drawn graph, electronic equipment and medium
CN115471885A (en) Action unit correlation learning method and device, electronic device and storage medium
CN110782497A (en) Method and device for calibrating external parameters of camera
CN109543512A (en) The evaluation method of picture and text abstract
CN118366162A (en) Image segmentation method and system based on deep learning
CN117216228B (en) Psychological accompanying robot and interaction method thereof

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
GR01 Patent grant
GR01 Patent grant