CN117831063B - Double-drawing same-screen control method and system for drawing measurement - Google Patents

Double-drawing same-screen control method and system for drawing measurement Download PDF

Info

Publication number
CN117831063B
CN117831063B CN202410134656.6A CN202410134656A CN117831063B CN 117831063 B CN117831063 B CN 117831063B CN 202410134656 A CN202410134656 A CN 202410134656A CN 117831063 B CN117831063 B CN 117831063B
Authority
CN
China
Prior art keywords
grid
target
point
deviation
result
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
CN202410134656.6A
Other languages
Chinese (zh)
Other versions
CN117831063A (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.)
Beijing Honghu Yuntu Technology Co ltd
Original Assignee
Beijing Honghu Yuntu 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 Beijing Honghu Yuntu Technology Co ltd filed Critical Beijing Honghu Yuntu Technology Co ltd
Priority to CN202410134656.6A priority Critical patent/CN117831063B/en
Publication of CN117831063A publication Critical patent/CN117831063A/en
Application granted granted Critical
Publication of CN117831063B publication Critical patent/CN117831063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/42Document-oriented image-based pattern recognition based on the type of document
    • G06V30/422Technical drawings; Geographical maps
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/16Image preprocessing
    • 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/43Editing text-bitmaps, e.g. alignment, spacing; Semantic analysis of bitmaps of text without OCR

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a double-drawing same-screen control method and a double-drawing same-screen control system for drawing measurement, which relate to the technical field of drawing processing, wherein the method comprises the following steps: the preprocessing channel processes the target CAD drawing to obtain a preprocessing result of the target CAD drawing; sequentially carrying out grid division on a first CAD image and a second CAD image in a target CAD drawing preprocessing result based on a preset grid division scheme to obtain a first grid set and a second grid set; traversing in the second grid set to obtain a corresponding grid of the first grid, and recording the corresponding grid as the second grid, wherein the first grid is any grid in the first grid set; performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on the initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation; and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation. Thereby achieving the technical effects of reducing the measurement control difficulty, having good operation convenience and high measurement efficiency.

Description

Double-drawing same-screen control method and system for drawing measurement
Technical Field
The invention relates to the technical field of drawing processing, in particular to a double-drawing on-screen control method and system for drawing measurement.
Background
In the fields of construction, engineering and the like, drawing measurement is an important work, the drawing design of multiple professions and multiple systems is related in the same engineering project, the drawing data size is large, the content is complex, the technical characteristics among different professions are large, and engineers or designers need to accurately measure the size, the angle and the like in the drawing so as to ensure the precision of design and construction. In actual operation, single drawings are measured one by one, and when the existing drawing measurement faces a double-drawing same-screen scene, the technical problems of high measurement control difficulty, high requirement on operators and low measurement efficiency exist.
Disclosure of Invention
The application aims to provide a double-drawing same-screen control method and a double-drawing same-screen control system for drawing measurement. The method is used for solving the technical problems of high measurement control difficulty, high requirement on operators and low measurement efficiency in the prior art.
In view of the technical problems, the application provides a double-drawing same-screen control method and a double-drawing same-screen control system for drawing measurement.
In a first aspect, the present application provides a dual-drawing on-screen control method for drawing measurement, where the method includes:
processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result;
Sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
Traversing the second grid set to obtain a corresponding grid of a first grid, and recording the corresponding grid as a second grid, wherein the first grid refers to any grid in the first grid set;
performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation;
and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
In a second aspect, the present application further provides a dual-drawing on-screen control system for drawing measurement, where the system includes:
The preprocessing module is used for processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result;
The grid division module is used for sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
the grid matching module is used for traversing the second grid set to obtain a corresponding grid of a first grid, and recording the corresponding grid as the second grid, wherein the first grid refers to any grid in the first grid set;
The comparison analysis module is used for carrying out comparison analysis on the first grid and the second grid which are adjusted and controlled based on the initial display parameters according to a preset same-screen comparison scheme to obtain grid comparison deviation;
and the measurement feedback module is used for obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
One or more technical schemes provided by the application have at least the following technical effects or advantages:
Processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result; sequentially carrying out grid division on a first CAD image and a second CAD image in a target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set; traversing in the second grid set to obtain a corresponding grid of the first grid, and recording the corresponding grid as the second grid, wherein the first grid refers to any grid in the first grid set; performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on the initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation; and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation. Thereby achieving the technical effects of reducing the measurement control difficulty, having good operation convenience and high measurement efficiency.
The foregoing description is only an overview of the present application, and is intended to more clearly illustrate the technical means of the present application, be implemented according to the content of the specification, and be more apparent in view of the above and other objects, features and advantages of the present application, as follows.
Drawings
Embodiments of the invention and the following brief description are described with reference to the drawings, in which:
FIG. 1 is a flow chart of a dual-map on-screen control method for drawing measurement according to the present application;
FIG. 2 is a schematic flow chart of processing a target CAD drawing through a preprocessing channel in the double-drawing on-screen control method for drawing measurement;
fig. 3 is a schematic structural diagram of a dual-map on-screen control system for drawing measurement according to the present application.
Reference numerals illustrate: the system comprises a preprocessing module 11, a grid dividing module 12, a grid matching module 13, an comparison analysis module 14 and a measurement feedback module 15.
Detailed Description
The application solves the technical problems of high measurement control difficulty, high requirement on operators and low measurement efficiency faced by the prior art by providing the double-image on-screen control method and the system for drawing measurement.
In order to solve the above problems, the technical embodiment adopts the following overall concept:
Firstly, preprocessing a CAD drawing by using a preprocessing channel; then, according to a preset grid division scheme, sequentially carrying out grid division on a first CAD image and a second CAD image in the preprocessed target CAD drawing to respectively obtain a first grid set and a second grid set; then traversing in a second grid set to obtain a second grid corresponding to a first grid, wherein the first grid refers to any grid in the first grid set; furthermore, a preset same-screen comparison scheme is applied to conduct comparison analysis on the first grid and the second grid after initial display parameter adjustment control, and grid comparison deviation is obtained; and finally, obtaining a target drawing measurement result of the target CAD drawing based on the grid comparison deviation. Thereby achieving the technical effects of reducing the measurement control difficulty, having good operation convenience and high measurement efficiency.
In order to better understand the above technical solutions, the following detailed description will be given with reference to the accompanying drawings and specific embodiments, and it should be noted that the described embodiments are only some embodiments of the present application, and not all embodiments of the present application, and it should be understood that the present application is not limited by the exemplary embodiments described herein. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application. It should be further noted that, for convenience of description, only some, but not all of the drawings related to the present application are shown.
Example 1
As shown in fig. 1, the present application provides a dual-drawing on-screen control method for drawing measurement, which includes:
S100: processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result
Optionally, the interaction drawing data source is used for acquiring the target CAD drawing. The target CAD drawing comprises two complete drawings or two partial drawings belonging to the same partial design. The drawing data sources include local file systems, cloud storage services, specialized drawing management systems, or other related data storage locations. In practical application, the data sources provide and manage CAD drawing files in different modes, including encryption transmission, authority management, integrity verification and the like, so that the acquisition process of the target CAD drawing meets the data security requirements of a target project or engineering, and meanwhile, the acquired target CAD drawing is ensured to be accurate and untampered.
Further, as shown in fig. 2, the preprocessing channel includes a de-ashing channel, a proportional control channel, and a contrast enhancement channel, and the preprocessing channel processes the target CAD drawing to obtain a preprocessing result of the target CAD drawing, and step S100 further includes:
The de-ashing channel performs de-ashing treatment on pixels which do not meet a preset brightness threshold value in the target CAD drawing to obtain a target de-ashing result;
Performing proportion regulation on the target ash removal result based on a preset proportion of the memory in the proportion regulation channel to obtain a target regulation result, wherein the preset proportion is preset based on display parameters of a preset display;
invoking a preset contrast enhancement scheme in the contrast enhancement channel to adjust the contrast and saturation of the target regulation and control result, so as to obtain a target enhancement result;
and taking the target enhancement result as the target CAD drawing preprocessing result.
Optionally, the preprocessing channel is used for adaptively processing the target CAD drawing, so that the data quality of the target CAD drawing is improved, the data quality requirement of subsequent drawing measurement is met, and the accuracy of drawing measurement results is further ensured. The preprocessing channel is illustratively constructed based on gray processing method principle, size scaling method principle and image enhancement method principle, and comprises a gray removing channel, a proportional control channel and a contrast enhancement channel.
Optionally, the de-ashing channel is a processing way to remove gray information in the image. The image recognition and registration process has high sensitivity to image gray scale variations, especially when there is a non-linear illumination variation of the image, which may lead to inaccurate registration results. The de-ashing channel is used for reducing the color information of the image, and pixels with lower brightness or overexposure in the drawing are removed, so that the drawing is clearer and easier to analyze, and subsequent processing is clearer or more effective.
Optionally, the two drawings in the target CAD drawings may have different scales and drawing fineness, and the scale control channel is used for adjusting the scale of the image so as to ensure that the drawings have proper size and scale when displayed, thereby realizing the comparative measurement of the two drawings in the target CAD drawings. The contrast enhancement channels are used to improve the contrast of the image. By enhancing the difference between the color and the brightness in the image, on one hand, the difference between the drawing lines and the drawing background is increased, and on the other hand, the drawing lines representing different design parts are more obvious in difference, so that the image is easier to distinguish and measure.
Optionally, the target ash removal result is subjected to proportional control based on a preset proportion stored in the proportional control channel, wherein the preset proportion is preset based on display parameters of a preset display; the predetermined proportion is determined based on the display DPI and the drawing DPI, so that the drawing is ensured to be displayed in integer multiples of the display DPI, namely, the target de-ashing result is subjected to integer scaling, and further display blurring caused by one-to-one correspondence between display pixel points and drawing pixels, which is caused by non-integer scaling, is avoided. Illustratively, the DPI (dots per inch) of the current display and the DPI of the drawing are acquired through a system or user setting. Then, based on the acquired DPI information, a predetermined ratio is calculated, and the drawing is ensured to be displayed in integer multiples of the DPI of the display.
Further, the de-ashing channel performs de-ashing treatment on pixels in the target CAD drawing, where the pixels do not meet a predetermined brightness threshold, to obtain a target de-ashing result, and the steps further include:
the target CAD drawing comprises a plurality of lines with brightness marks;
Screening brightness parameters with the lowest brightness of the lines with brightness marks, and determining a preset brightness threshold according to the brightness parameters;
The predetermined brightness threshold is stored to the de-ashing channel.
Optionally, traversing the target CAD drawing based on a predetermined brightness threshold to perform brightness value-based pixel screening. The predetermined brightness threshold is determined based on a brightness parameter with the lowest brightness of the lines with brightness identifications. The method includes the steps that a value of a brightness parameter with the lowest line brightness in a plurality of lines with brightness marks is used as a preset brightness threshold, if the brightness value of a certain drawing point is smaller than the threshold, the point is not the drawing line, and the brightness value of the point is set to be a drawing space initial value or-100.
Optionally, pixel points with brightness values meeting a preset brightness threshold are reserved, a target ash removal result is generated, and the result has purer drawing backgrounds and drawing lines, so that the subsequent recognition and measurement of drawings are facilitated.
S200: sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
optionally, the first grid set and the second grid set can be obtained by performing grid division on the first CAD image and the second CAD image in the target CAD drawing preprocessing result. The first grid set and the second grid set are generated based on the same preset grid division scheme and have the same grid division precision, so that the division grids in the first grid set and the second grid set are matched and compared with each other.
Optionally, the generation of the predetermined meshing scheme is related to factors such as the shape and the size of the drawing and the requirement for on-screen control precision. The fineness degree of the predetermined grid division scheme influences the accuracy of the same-screen control, the finer the division is, the higher the accuracy of the same-screen control is, and the calculation efficiency can be maintained while the accuracy of the same-screen control is improved through the proper grid division scheme. In addition, through carrying out grid division on the target CAD drawing preprocessing result, the conversion from a complete large-size full image to a small-size partial image is realized, the convenience of parallel processing is provided for drawing measurement, and the performance peak demand of drawing measurement is reduced.
Optionally, the meshing scheme and meshing result also perform scheme design and drawing meshing operation based on the integer scaling method principle, so as to ensure that meshes in the first mesh set and the second mesh set can realize integer scaling display on a display. And further ensuring the accuracy of the comparative analysis based on the first grid set and the second grid set.
S300: traversing the second grid set to obtain a corresponding grid of a first grid, and recording the corresponding grid as a second grid, wherein the first grid refers to any grid in the first grid set;
Optionally, randomly selecting in the first grid set to obtain a first grid; and then, according to the acquired first grids, performing concentrated traversal matching with the second grids, extracting corresponding grids of the first grids, and storing the corresponding grids as the second grids. The first grid and the second grid are different drawing data of the same area in the target CAD drawing, and an image processing technology, such as a method of Structural Similarity (SSIM), mean Square Error (MSE), and the like, is used for comparing each grid in the first grid set with each grid in the second grid set, and finding a corresponding grid with the highest similarity and storing the corresponding grid as the second grid.
Through the steps, the corresponding relation between different drawing data of the same area in the target CAD drawing grid division result is established, so that matching and display during on-screen control can be better performed.
S400: performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation;
Further, the initial display parameters include an initial display proportion and an initial display brightness, and the first grid and the second grid after being adjusted and controlled based on the initial display parameters are subjected to comparative analysis according to a predetermined on-screen comparative scheme to obtain grid comparative deviation, and step S400 includes:
selecting a target reference point according to the preset on-screen comparison scheme;
constructing a target coordinate axis by taking the target reference point as a coordinate origin;
Acquiring a first control point, wherein the first control point is any point in a first key point set corresponding to the first grid;
combining the target coordinate axis to obtain first coordinate information of the first control point;
Acquiring a first virtual corresponding point, wherein the first virtual corresponding point is a point corresponding to and consistent with the first coordinate information in the second grid, and the first virtual corresponding point is provided with the first virtual coordinate information;
acquiring a first actual corresponding point, wherein the first actual corresponding point is a point corresponding to the first control point in the second grid, and the first actual corresponding point is provided with first actual coordinate information;
Comparing the first virtual coordinate information with the first actual coordinate information to obtain a first comparison deviation, wherein the first comparison deviation is the comparison deviation of the first control point;
The grid contrast bias is formed based on the first contrast bias.
Optionally, parameter adjustment control is performed on the first grid and the second grid based on the initial display parameters, including adjustment of display scale and display brightness. By applying an initial display scale to the first grid and the second grid, it is ensured that they are displayed at the same scale. The initial display brightness is applied to the first grid and the second grid, ensuring that they are displayed at the same brightness. The basic parameters of the first grid are standardized, and factors of measurement errors caused by display differences are eliminated.
Optionally, the target reference point is a common fixed point in the first grid and the second grid, typically a point that is easily identified and located. Illustratively, the target reference points include fixed structures, logos, reference axis corner points, etc. in the grid. The target reference point is used as an origin for comparison of the first grid and the second grid. And then, taking the selected target reference point as the origin of coordinates to construct a target coordinate axis. The method comprises the steps of determining the direction and the unit of a coordinate axis, and establishing the target coordinate axis by taking an 80 coordinate system as a reference for a first grid and a second grid generated by a target CAD drawing with the drawing type of a plan view, a horizontal cross-sectional view or a top view, wherein the direction of the coordinate axis is consistent with the 80 coordinate system, and the unit is metric unit comprising meters, millimeters and the like.
The first set of keypoints comprises representative nodes of a drawing in a first grid, illustratively comprising: a drawing corner point diagram (providing overall shape and size information of the drawing), a center point of the drawing (for determining the overall position of the drawing), a structure cross point, a structure stress point, a special mark point, and the like. The first control point is any point in the first key point set, and has the characteristics of being convenient to position and easy to identify.
Combining the target coordinate axis to obtain first coordinate information of the first control point;
Acquiring a first virtual corresponding point, wherein the first virtual corresponding point is a point corresponding to and consistent with the first coordinate information in the second grid, and the first virtual corresponding point is provided with the first virtual coordinate information;
acquiring a first actual corresponding point, wherein the first actual corresponding point is a point corresponding to the first control point in the second grid, and the first actual corresponding point is provided with first actual coordinate information;
Comparing the first virtual coordinate information with the first actual coordinate information to obtain a first comparison deviation, wherein the first comparison deviation is the comparison deviation of the first control point;
The grid contrast bias is formed based on the first contrast bias.
Optionally, the first virtual corresponding point is a point in the second grid corresponding to the first coordinate information. The second grid is mapped to the coordinate system of the target coordinate axis through coordinate system conversion and drawing registration technology, so that the second grid is mapped to the coordinate space where the first coordinate information is located, and the first virtual corresponding point is obtained. The first virtual corresponding point is an expected position of the first control point in the second grid.
Optionally, the first actual corresponding point refers to an actual position of the first control point in the second grid. And storing the coordinates of the first actual corresponding point in the coordinate system of the target coordinate axis as first actual coordinate information.
Optionally, the first virtual coordinate information and the first actual coordinate information are compared, and a difference between the coordinates is obtained, so as to generate a first comparison deviation. And then, carrying out association storage on the first contrast deviation, the first control point, the first virtual corresponding point and the first actual corresponding point to generate a first contrast deviation system. And finally, traversing the first key point set, and carrying out iterative updating on the first control point to obtain a plurality of comparison deviation systems, wherein the iterative updating times are determined based on the measurement accuracy control requirement of the target CAD drawing. Illustratively, the more the number of iterations, the more the contrast deviation is generated, and thus the higher the measurement accuracy is achieved.
S500: and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
Further, a target drawing measurement result of the target CAD drawing is obtained according to the grid contrast deviation, and step S500 includes:
constructing a key point deviation database based on the grid comparison deviation;
taking a first measurement result of the first CAD image as a measurement result of a first drawing in the target CAD drawing;
randomly acquiring a first object, wherein the first object is any measuring object in a second drawing in the target CAD drawing;
Combining the key point deviation database to obtain first deviation information of the first object;
obtaining a second measurement result by combining the first measurement result and the first deviation information, wherein the second measurement result is the measurement result of the second drawing in the target CAD drawing;
and obtaining the target drawing measurement result according to the first measurement result and the second measurement result.
Optionally, firstly, a key point deviation database is established, and the database stores corresponding relation data between grids and key points; providing a reference for subsequent comparative measurements. Then, randomly selecting a measuring object from a second drawing in the target CAD drawing by using a first measuring result of the first CAD image as a reference; then, acquiring deviation information of a first object by utilizing data in a key point deviation database, and calculating and acquiring a measurement result of a second drawing by using the first measurement result and the key point deviation information to generate a second measurement result, wherein the second measurement result is a vector sum of the first measurement result and the key point deviation information; and finally, combining the first measurement result and the second measurement result to obtain the measurement result of the whole target CAD drawing.
And comparing key points among different drawings, and combining the measurement result and deviation information to obtain the measurement result of the target CAD drawing. The precision and consistency of drawing measurement can be improved during the same-screen display.
Further, the first object is one object of any type of predetermined object types, and the predetermined object types include a line segment type and a plane type.
Alternatively, the first object may be any line segment or plane in the target CAD drawing, and if the first object is of a line segment type, measurement of the length, angle, start-stop point, and the like of the line segment is involved. In the case of a plane type, measurement of the area, boundary, etc. of the plane is involved. By selecting different types of predetermined objects, different types of measurement requirements can be accommodated.
Further, the step of obtaining the first deviation information of the first object by combining the keypoint deviation database further includes:
acquiring a first object key point of the first object;
Traversing the first object key points in the key point deviation database to obtain the first deviation information.
Alternatively, first deviation information of the first object is obtained, and first, a first object key point of the first object is obtained, where the key point refers to a point representing a specific object or a specific shape in a target CAD drawing. Then, traversing in a key point deviation database according to the first object key point to acquire first deviation information corresponding to the first object key point. Exemplary include database language based information retrieval, extraction calls. The first deviation information is matched and obtained by querying the key point deviation information in the database using Structured Query Language (SQL) or other database query language.
In summary, the dual-graph on-screen control method for drawing measurement provided by the invention has the following technical effects:
Processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result; sequentially carrying out grid division on a first CAD image and a second CAD image in a target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set; traversing in the second grid set to obtain a corresponding grid of the first grid, and recording the corresponding grid as the second grid, wherein the first grid refers to any grid in the first grid set; performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on the initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation; and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation. Thereby achieving the technical effects of reducing the measurement control difficulty, having good operation convenience and high measurement efficiency.
Example two
Based on the same conception as the double-graph on-screen control method for drawing measurement in the embodiment, as shown in fig. 3, the application also provides a double-graph on-screen control system for drawing measurement, which comprises:
The preprocessing module 11 is used for processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result;
The grid division module 12 is used for sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
The grid matching module 13 is configured to traverse the second grid set to obtain a corresponding grid of a first grid, and record the corresponding grid as a second grid, where the first grid refers to any one grid in the first grid set;
The comparison analysis module 14 is configured to perform a comparison analysis on the first grid and the second grid after adjustment control based on the initial display parameters according to a predetermined on-screen comparison scheme, so as to obtain a grid comparison deviation;
And the measurement feedback module 15 is used for obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
Further, the preprocessing module 11 further includes:
The de-ashing processing unit is used for de-ashing pixels which do not meet a preset brightness threshold value in the target CAD drawing through the de-ashing channel to obtain a target de-ashing result;
the proportion adjusting unit is used for carrying out proportion adjustment on the target ash removal result based on a preset proportion of the memory in the proportion adjustment channel to obtain a target adjustment result, wherein the preset proportion is preset based on display parameters of a preset display;
The object enhancement unit is used for calling a preset contrast enhancement scheme in the contrast enhancement channel to adjust the contrast and saturation of the target regulation and control result so as to obtain a target enhancement result;
and the processing result output unit is used for taking the target enhancement result as the target CAD drawing preprocessing result.
Further, the ash removal processing unit further includes:
the brightness identification unit is used for acquiring that the target CAD drawing comprises a plurality of lines with brightness marks;
The threshold selecting unit is used for screening the brightness parameter with the lowest brightness of the lines with the brightness marks, and determining a preset brightness threshold according to the brightness parameter;
And the threshold setting unit is used for storing the preset brightness threshold value into the ash removing channel.
Further, the comparison analysis module 14 further includes:
the point selecting unit is used for selecting a target reference point according to the preset on-screen comparison scheme;
The coordinate constraint unit is used for constructing a target coordinate axis by taking the target reference point as a coordinate origin;
the point position extraction unit is used for acquiring a first control point, wherein the first control point is any point in a first key point set corresponding to the first grid;
The standard coordinate acquisition unit is used for combining the target coordinate axis to obtain first coordinate information of the first control point;
The virtual coordinate acquisition unit is used for acquiring a first virtual corresponding point, wherein the first virtual corresponding point is a point corresponding to and consistent with the first coordinate information in the second grid, and the first virtual corresponding point is provided with the first virtual coordinate information;
The actual coordinate acquisition unit is used for acquiring a first actual corresponding point, wherein the first actual corresponding point is a point corresponding to the first control point in the second grid, and the first actual corresponding point is provided with first actual coordinate information;
the deviation calculation unit is used for comparing the first virtual coordinate information with the first actual coordinate information to obtain a first comparison deviation, wherein the first comparison deviation is the comparison deviation of the first control point;
And a storage output unit for forming the grid contrast deviation based on the first contrast deviation.
Further, the measurement feedback module 15 further includes:
The association construction unit is used for constructing a key point deviation database based on the grid comparison deviation;
the measurement acquisition unit is used for taking a first measurement result of the first CAD image as a measurement result of a first drawing in the target CAD drawing;
the object acquisition unit is used for randomly acquiring a first object, wherein the first object is any measuring object in a second drawing in the target CAD drawing;
the deviation positioning unit is used for combining the key point deviation database to obtain first deviation information of the first object;
The measurement calculation unit is used for combining the first measurement result and the first deviation information to obtain a second measurement result, wherein the second measurement result is the measurement result of the second drawing in the target CAD drawing;
And the result generating unit is used for obtaining the target drawing measurement result according to the first measurement result and the second measurement result.
Further, the deviation positioning unit further includes:
The point selecting unit is used for acquiring a first object key point of the first object;
And the deviation extraction unit is used for traversing the first object key points in the key point deviation database to obtain the first deviation information.
It should be understood that the embodiments mentioned in this specification focus on the differences from other embodiments, and the specific embodiment in the first embodiment is equally applicable to the dual-image on-screen control system for drawing measurement described in the second embodiment, and is not further developed herein for brevity of the specification.
It is to be understood that both the foregoing description and the embodiments of the present application enable one skilled in the art to utilize the present application. While the application is not limited to the above-mentioned embodiments, obvious modifications, combinations and substitutions of the above-mentioned embodiments are also within the scope of the application.

Claims (7)

1. The double-image on-screen control method for drawing measurement is characterized by comprising the following steps of:
processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result;
Sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
Traversing the second grid set to obtain a corresponding grid of a first grid, and recording the corresponding grid as a second grid, wherein the first grid refers to any grid in the first grid set;
performing contrast analysis on the first grid and the second grid which are adjusted and controlled based on initial display parameters according to a preset on-screen contrast scheme to obtain grid contrast deviation;
selecting a target reference point according to the preset on-screen comparison scheme;
constructing a target coordinate axis by taking the target reference point as a coordinate origin;
Acquiring a first control point, wherein the first control point is any point in a first key point set corresponding to the first grid;
combining the target coordinate axis to obtain first coordinate information of the first control point;
Acquiring a first virtual corresponding point, wherein the first virtual corresponding point is a point corresponding to and consistent with the first coordinate information in the second grid, and the first virtual corresponding point is provided with the first virtual coordinate information;
acquiring a first actual corresponding point, wherein the first actual corresponding point is a point corresponding to the first control point in the second grid, and the first actual corresponding point is provided with first actual coordinate information;
Comparing the first virtual coordinate information with the first actual coordinate information to obtain a first comparison deviation, wherein the first comparison deviation is the comparison deviation of the first control point;
forming the grid contrast bias based on the first contrast bias;
and obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
2. The method of claim 1, wherein the preprocessing channel comprises a de-ashing channel, a proportional control channel, and a contrast enhancement channel, and wherein the preprocessing channel is used for processing the target CAD drawing to obtain the preprocessing result of the target CAD drawing, and the method comprises the steps of:
The de-ashing channel performs de-ashing treatment on pixels which do not meet a preset brightness threshold value in the target CAD drawing to obtain a target de-ashing result;
Performing proportion regulation on the target ash removal result based on a preset proportion of the memory in the proportion regulation channel to obtain a target regulation result, wherein the preset proportion is preset based on display parameters of a preset display;
invoking a preset contrast enhancement scheme in the contrast enhancement channel to adjust the contrast and saturation of the target regulation and control result, so as to obtain a target enhancement result;
and taking the target enhancement result as the target CAD drawing preprocessing result.
3. The method of claim 2, wherein the de-ashing channel de-ashing pixels of the target CAD drawing that do not meet a predetermined brightness threshold to obtain a target de-ashing result, comprising:
the target CAD drawing comprises a plurality of lines with brightness marks;
Screening brightness parameters with the lowest brightness of the lines with brightness marks, and determining a preset brightness threshold according to the brightness parameters;
The predetermined brightness threshold is stored to the de-ashing channel.
4. The method of claim 1, wherein obtaining a target drawing measurement of the target CAD drawing from the grid contrast bias comprises:
constructing a key point deviation database based on the grid comparison deviation;
taking a first measurement result of the first CAD image as a measurement result of a first drawing in the target CAD drawing;
randomly acquiring a first object, wherein the first object is any measuring object in a second drawing in the target CAD drawing;
Combining the key point deviation database to obtain first deviation information of the first object;
obtaining a second measurement result by combining the first measurement result and the first deviation information, wherein the second measurement result is the measurement result of the second drawing in the target CAD drawing;
and obtaining the target drawing measurement result according to the first measurement result and the second measurement result.
5. The method of claim 4, wherein the first object is one of any of a predetermined object types, the predetermined object types including a line segment type and a plane type.
6. The method of claim 5, wherein combining the keypoint deviation database to obtain the first deviation information for the first object comprises:
acquiring a first object key point of the first object;
Traversing the first object key points in the key point deviation database to obtain the first deviation information.
7. A two pictures are with screen control system for drawing measurement, its characterized in that includes:
The preprocessing module is used for processing the target CAD drawing through the preprocessing channel to obtain a target CAD drawing preprocessing result;
The grid division module is used for sequentially carrying out grid division on a first CAD image and a second CAD image in the target CAD drawing preprocessing result based on a preset grid division scheme to respectively obtain a first grid set and a second grid set;
the grid matching module is used for traversing the second grid set to obtain a corresponding grid of a first grid, and recording the corresponding grid as the second grid, wherein the first grid refers to any grid in the first grid set;
The comparison analysis module is used for carrying out comparison analysis on the first grid and the second grid which are adjusted and controlled based on the initial display parameters according to a preset same-screen comparison scheme to obtain grid comparison deviation;
The point selecting unit is used for selecting a target reference point according to the preset same-screen comparison scheme;
the coordinate constraint unit is used for constructing a target coordinate axis by taking the target reference point as a coordinate origin;
the point position extraction unit is used for obtaining a first control point, wherein the first control point is any point in a first key point set corresponding to the first grid;
The standard coordinate acquisition unit is used for combining the target coordinate axis to obtain first coordinate information of the first control point;
The virtual coordinate acquisition unit is used for acquiring a first virtual corresponding point, wherein the first virtual corresponding point is a point corresponding to and consistent with the first coordinate information in the second grid, and the first virtual corresponding point is provided with first virtual coordinate information;
The actual coordinate acquisition unit is used for acquiring a first actual corresponding point, wherein the first actual corresponding point is a point corresponding to the first control point in the second grid, and the first actual corresponding point is provided with first actual coordinate information;
The deviation calculation unit is used for comparing the first virtual coordinate information with the first actual coordinate information to obtain a first comparison deviation, and the first comparison deviation is the comparison deviation of the first control point;
A storage output unit for forming the grid contrast bias based on the first contrast bias;
and the measurement feedback module is used for obtaining a target drawing measurement result of the target CAD drawing according to the grid comparison deviation.
CN202410134656.6A 2024-01-31 2024-01-31 Double-drawing same-screen control method and system for drawing measurement Active CN117831063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410134656.6A CN117831063B (en) 2024-01-31 2024-01-31 Double-drawing same-screen control method and system for drawing measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410134656.6A CN117831063B (en) 2024-01-31 2024-01-31 Double-drawing same-screen control method and system for drawing measurement

Publications (2)

Publication Number Publication Date
CN117831063A CN117831063A (en) 2024-04-05
CN117831063B true CN117831063B (en) 2024-06-28

Family

ID=90513594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410134656.6A Active CN117831063B (en) 2024-01-31 2024-01-31 Double-drawing same-screen control method and system for drawing measurement

Country Status (1)

Country Link
CN (1) CN117831063B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073769A (en) * 2011-01-12 2011-05-25 山东大学 Method for quickly predicting casting hot spot
CN116415367A (en) * 2021-12-27 2023-07-11 维森股份有限公司 System and method for alignment and comparison of reference image with image of part

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003032639A (en) * 2001-05-09 2003-01-31 Monolith Co Ltd Image processing method and equipment, and contents recording method capable of being used for the method and the equipment
US20080303810A1 (en) * 2007-06-07 2008-12-11 Seockhoon Bae System and method for calculating loft surfaces using 3d scan data
CN112699430A (en) * 2021-01-04 2021-04-23 福建汇川物联网技术科技股份有限公司 Method and device for detecting remote video and drawing models
CN114399784A (en) * 2022-01-20 2022-04-26 广东博智林机器人有限公司 Automatic identification method and device based on CAD drawing
CN115292853B (en) * 2022-09-30 2022-12-20 北京科技大学 Rigid roller grid dividing method in section steel rolling simulation analysis engineering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073769A (en) * 2011-01-12 2011-05-25 山东大学 Method for quickly predicting casting hot spot
CN116415367A (en) * 2021-12-27 2023-07-11 维森股份有限公司 System and method for alignment and comparison of reference image with image of part

Also Published As

Publication number Publication date
CN117831063A (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US6816187B1 (en) Camera calibration apparatus and method, image processing apparatus and method, program providing medium, and camera
JP7004826B2 (en) Dimension measuring device, dimensional measuring method and semiconductor manufacturing system
CN109948135B (en) Method and equipment for normalizing image based on form characteristics
US8045791B2 (en) System and method for measuring digital images of a workpiece
US11663713B2 (en) Image generation system
CN109086286B (en) Method for producing and publishing color topographic map
CN109858452A (en) Architectural drawing automatic comparison method and device
CN104182757A (en) Method of acquiring actual coverage area of measured target and device
US20230384085A1 (en) Phase unwrapping method based on multi-view constraints of light field and related components
Ogawa et al. Comparison with accuracy of terrestrial laser scanner by using point cloud aligned with shape matching and best fitting methods
CN113689451A (en) Carbon plate boundary extraction method and device, storage medium and electronic equipment
CN117831063B (en) Double-drawing same-screen control method and system for drawing measurement
JP2018009927A (en) Image processing device, image processing method and program
CN112050752B (en) Projector calibration method based on secondary projection
CN110689586B (en) Tongue image identification method in traditional Chinese medicine intelligent tongue diagnosis and portable correction color card used for same
CN116563460A (en) Three-dimensional reconstruction optimization method and device, medium and equipment
US9243935B2 (en) Distance information estimating apparatus
CN114283081B (en) Depth recovery method based on pyramid acceleration, electronic device and storage medium
CN113379816B (en) Structure change detection method, electronic device, and storage medium
CN113344983B (en) Multi-point cloud registration method based on Ping Miandian cloud segmentation
CN115311336A (en) Image registration method, device and equipment of multiple cameras and storage medium
CN111340891B (en) Method and system for calibrating camera by using LED screen
CN111260699B (en) High-definition pathological image registration method, device, equipment and storage medium
US20200364933A1 (en) Image processing apparatus, image processing method and storage medium
CN108280815B (en) Geometric correction method for monitoring scene structure

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