CN111325826A - Engineering drawing model projection system and method - Google Patents

Engineering drawing model projection system and method Download PDF

Info

Publication number
CN111325826A
CN111325826A CN202010024747.6A CN202010024747A CN111325826A CN 111325826 A CN111325826 A CN 111325826A CN 202010024747 A CN202010024747 A CN 202010024747A CN 111325826 A CN111325826 A CN 111325826A
Authority
CN
China
Prior art keywords
projection
information
module
engineering drawing
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010024747.6A
Other languages
Chinese (zh)
Inventor
陈志远
王丽萍
杨静
陈近平
王芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou University of Aeronautics
Original Assignee
Zhengzhou University of Aeronautics
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 Zhengzhou University of Aeronautics filed Critical Zhengzhou University of Aeronautics
Priority to CN202010024747.6A priority Critical patent/CN111325826A/en
Publication of CN111325826A publication Critical patent/CN111325826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to the technical field of projection, and discloses an engineering drawing model projection system and a method. The invention automatically acquires the modification history information through the information modification module, automatically generates the corresponding modification history table, and automatically stores the modification history information into the modification history table, thereby improving the efficiency of recording the modification information of the engineering drawing and providing convenience for users. The noise reduction method provided by the invention can be carried out in the GPU, so that the requirements of a user on carrying out real-time noise reduction processing on the shot video image can be met, the real-time noise reduction processing can also be carried out on the video image in the transmission process of the video image, and the visual effect is improved.

Description

Engineering drawing model projection system and method
Technical Field
The invention belongs to the technical field of projection, and particularly relates to an engineering drawing model projection system and method.
Background
The engineering drawing, called pattern below, is a projection plane for expressing an object according to a projection method, and can be divided into orthographic projection and oblique projection according to different projection modes. The engineering drawings are most commonly one-dimensional projection, two-dimensional projection and axonometric projection (stereo projection is also called three-dimensional projection). Drawing frames are drawn according to the requirements of Chinese specified drawings, and the drawing frames can be divided into Y-type drawings and X-type drawings according to the difference of the drawing frames. Patterns are technical documents used in the engineering community to accurately express the shape, size and related technical requirements of objects. The design, manufacture and construction, use and maintenance of all modern products and equipment such as machines, instruments, engineering buildings and the like are realized through patterns. The designer expresses design intentions and requirements through patterns, the manufacturer understands the design requirements and organizes production processing through the patterns, and the user knows the product structure and performance, correct use method and maintenance method according to the patterns. Therefore, the drawings, like characters and numbers, are one of important tools for expressing design intentions, recording inspiration of innovative ideas and communicating technical ideas, and are known as technical languages in the engineering world, and engineers must be skilled in the languages. However, the existing engineering drawing model projection system adopts a manual marking or semi-automatic marking mode for the engineering icon; manually marking needs to select each size to be marked and appoint a marking position; semi-automatic marking can mark holes in the view and outline information of the holes, and cannot mark detailed features; meanwhile, the modification of the engineering information needs to be carried out in a mode of manually editing the modification information item by item, which wastes time and labor.
In summary, the problems of the prior art are as follows: the existing engineering drawing model projection system adopts a manual marking or semi-automatic marking mode for the engineering icon; manually marking needs to select each size to be marked and appoint a marking position; semi-automatic marking can mark holes in the view and outline information of the holes, and cannot mark detailed features; meanwhile, the modification of the engineering information needs to be carried out in a mode of manually editing the modification information item by item, which wastes time and labor.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an engineering drawing model projection system.
The invention is realized in such a way that an engineering drawing model projection method comprises the following steps:
firstly, acquiring engineering drawing data; extracting a target entity from the engineering drawing data; constructing a three-dimensional model according to a target entity through a modeling program;
secondly, analyzing the two-dimensional view data and the three-dimensional model data, converting the two-dimensional view data and the three-dimensional model data into information required by labeling, caching the information into a memory, comparing the two-dimensional view data and the three-dimensional model data, and establishing a mapping relation between the two data and the three-dimensional model data; comparing the two-dimensional view data with the three-dimensional model data, and screening straight line segments and arcs in the two-dimensional view; traversing the side information of the geometric body under the three-dimensional model, expressing the side information in a point set mode and caching the side information in a memory; projecting the point set coordinates of the three-dimensional model into a two-dimensional view coordinate system through matrix transformation;
comparing the position relation of the object in the two-dimensional view and the three-dimensional point set coordinate projection, and storing the object and the point set projection with consistent position relation into a mapping table; the point set is obtained by equally dividing edges under the three-dimensional model according to a certain number, and a set formed by equally dividing points is the point set; respectively weighing the X/Y/Z coordinates of each point in the point set to form the center of the point set;
thirdly, performing chamfer analysis on the three-dimensional model, and traversing all side information under the three-dimensional model; if the edge C of the adjacent surface B of the edge A exists, any point X on the edge A can find a corresponding point X ' on the extension line of the edge C or the second derivative of the edge C, so that the tangential direction of the edge A at the point X is the same as the tangential direction of the edge C at the point X ', and the X-X ' direction is perpendicular to the tangential direction, the surface B is considered to be a chamfer possibly, and the further judgment is carried out: if the surface B is a plane, the surface B is regarded as a chamfer angle;
if the curvature radii of all points on the surface B are the same and the section lines are made at any positions, the included angles of the obtained circular arcs are consistent and the included angle is smaller than 135 degrees, the surface B is considered to be a rounded corner; finally, obtaining a chamfer surface in the three-dimensional model;
and fourthly, simultaneously screening quasi-broken faces according to other faces except for the plane, the cylindrical face and the conical face in the area filtering three-dimensional model, and screening the broken faces for filtering according to the normal relation between the quasi-broken faces and the adjacent faces, wherein the method specifically comprises the following steps: calculating the overall dimension of the three-dimensional model; triangularization processing is carried out on each surface of the three-dimensional model, the area of each surface is calculated, if the area of a certain surface is larger than the external dimension N, other surfaces except a plane, a cylindrical surface and a conical surface in the three-dimensional model are filtered according to surface information, and only the plane, the cylindrical surface and the conical surface information in the three-dimensional model are reserved;
if the area of a certain face is smaller than the overall dimension x N, the face is summarized as a quasi-broken face, if the certain quasi-broken face is a non-plane face, the face is summarized as a broken face which is not used as a marking reference, and then the rest quasi-broken faces are further judged; wherein N is an empirical coefficient;
then searching all adjacent surfaces of the quasi-crushing surface, and if one adjacent surface is a plane and the normal direction of the adjacent surface is consistent with the normal direction of the quasi-crushing surface, sewing the quasi-crushing surface and the adjacent surface into a complete plane; if the normal direction of the quasi-broken surface is inconsistent with the normal directions of all adjacent surfaces or the adjacent surfaces of the quasi-broken surface are non-planar, summarizing the broken plane into broken surfaces without making a reference for marking; iteration is carried out until all the quasi-fragmented surfaces are judged;
marking lines in the two-dimensional view corresponding to the surfaces in the reserved three-dimensional model, then executing duplication elimination operation and rearranging marking information according to the position relation;
further, in the second step, the method of projection processing includes:
when the processing module receives the detection data sent by the detection module, noise reduction processing is carried out on the detection data, and noise data brought by ambient light when the photosensitive array receives the projection light is removed; the method specifically comprises the following steps:
1) converting an image to be processed into an RGB image S in a texture format;
2) the RGB image S is processed as follows in the R, G and B channels, respectively:
with RGB imageTaking each pixel point in the S as a central point, respectively performing two-dimensional Gaussian blur of R, G and B channels in the neighborhood range of 3 × 3, 5 × 5 or 7 × 7 to obtain a Gaussian blur value G of R, G and B channels corresponding to each pixel pointΣThen, the noise intensity of R, G and B channels corresponding to each pixel point is calculated according to the following formula:
if 2Sp-GΣWhen the value is more than or equal to 255, A is 255;
if 2Sp-GΣIf < 255 then A ═ 2Sp-GΣ
In the formula, SpThe gray value of each pixel point R, G or B channel in the RGB image S;
3) using the noise intensity A of R, G and B channels corresponding to each pixel point as a mixing coefficient, and performing gray scale value of R, G and B channels of each pixel point in the RGB image S and Gaussian blur value G of R, G and B channels corresponding to the pixel pointΣMixing according to the following formula to obtain mixed RGB three-channel image data Q of each pixel point:
Figure BDA0002362044670000041
in the formula, GΣThe Gaussian blur value of the R, G or B channel corresponding to each pixel point;
4) firstly, converting the obtained RGB three-channel image data Q into Lab color space image data, then removing high frequency processing on the a channel image data and the b channel image data in the Lab color space image data by using two-dimensional Gaussian blur, and then returning the obtained result to the RGB color space, so as to obtain the RGB image subjected to noise reduction processing.
Further, the Gaussian blur value GΣFirstly, a Gaussian matrix G with the size of r × r is generated according to a two-dimensional normal distribution formula shown in the following formulapThen, taking each pixel point of the image as a central point, and multiplying gray values in three channels of R, G and B of each pixel point in the r × r neighborhood range of the central point by the respective Gauss matrix G of each pixel pointpThe corresponding element value G inp(u,v)Then summed to obtain;
Figure BDA0002362044670000042
2×|u|+1≤r;
2×|v|+1≤r;
Wherein r is 3, 5 or 7, Gp(u,v)Is a Gaussian matrix GpWherein u and v are respectively an abscissa value and an ordinate value of a point in a two-dimensional space, and δ is a standard deviation of normal distribution, and is taken according to the following formula:
Figure BDA0002362044670000043
further, in the second step, the method for correcting the projection of the three-dimensional model by the projection correction model comprises:
a rectangular coordinate system is established in the projection image and used for acquiring and maintaining coordinate values corresponding to each pixel on the projection screen; controlling the four vertex angles of the projected image to move according to the coordinate conversion;
the four photosensitive arrays are respectively arranged at four corners of the display screen; the photosensitive arrays are right-angle photosensitive arrays, and when the photosensitive arrays are arranged, the horizontal edge line of each photosensitive array is coincided with two edges of the corresponding screen corner.
Further, when the four corners of the projection image are moved, when the photosensitive array in one direction of one corner of the projection screen cannot detect the projection light, the projection image does not move in the direction of the corner, and only moves in the other direction to the center direction until the photosensitive array in the corner of the projection screen cannot detect the projection light.
Further, after the fifth step, modifying the rearranged engineering drawing attribute information through a modification program, which specifically includes:
1) constructing an engineering drawing information database and storing the attribute information of the engineering drawing; acquiring attribute information of a modification cloud line of the engineering drawing, wherein the attribute information comprises modification history information;
2) generating a modification history list according to the quantity of the modification history information, wherein the modification history list comprises a plurality of information pieces, so that each piece of modification history information corresponds to one information piece, and each information piece comprises an item column corresponding to the type of the modification history information;
3) correspondingly storing the modification history information into the project bar;
4) displaying the modified resume on the engineering drawing, establishing a modified lead between the information bar and the modified cloud line corresponding to the information bar, and/or displaying the modified resume on the engineering drawing, and displaying a modified mark in a preset range from the modified cloud line, wherein the modified mark comprises the modified mark information.
Further, the modification history information includes modification content information, presenter information, modification basis information, modification flag information, and modification date information;
each of the information bars includes a modified content item column, a presenter item column, a modified basis item column, a modified markup item column, and a modified date item column, where the modified content item column is used to store the modified content information, the presenter item column is used to store the presenter information, the modified basis item column is used to store the modified basis information, the modified markup item column is used to store the modified markup information, and the modified date item column is used to store the modified date information.
Another object of the present invention is to provide an engineering drawing model projection system, comprising:
the engineering parameter import module is connected with the central control module and used for importing engineering parameters through an import program;
the central control module is connected with the engineering parameter importing module, the engineering drawing module, the correcting module, the three-dimensional modeling module, the rendering module, the labeling module, the information modifying module, the projection detection module, the projection processing module, the projection correcting module, the early warning module, the data storage module and the display module and is used for controlling the modules to normally work through the host;
the engineering drawing module is connected with the central control module and used for drawing the engineering drawing according to the import parameters through a drawing program;
the engineering drawing correction module is connected with the central control module and is used for correcting the drawn engineering drawing through a correction program;
the three-dimensional modeling module is connected with the central control module and used for constructing a three-dimensional model of the engineering drawing through modeling software;
the rendering module is connected with the central control module and used for rendering the three-dimensional model of the engineering drawing through a rendering program;
the marking module is connected with the central control module and is used for marking the three-dimensional model through a marking program;
the information modification module is connected with the central control module and is used for modifying the attribute information of the engineering drawing through a modification program;
the projection module is connected with the central control module and is used for projecting the drawn engineering drawing and the three-dimensional model through a projector; projecting a projection image according to the projection control signal;
the projection detection module is connected with the central control module and used for detecting the position information of the projection picture through the photosensitive array to obtain detection data;
the projection processing module is connected with the central control module and is used for controlling the projection module to project the image through the projection control signal; receiving detection data sent by the detection module to generate a projection correction model;
the projection correction module is connected with the central control module and is used for correcting the projection of the three-dimensional model through the projection correction model;
the early warning module is connected with the central control module and is used for early warning abnormal projection correction information through the audible and visual alarm;
the data storage module is connected with the central control module and used for storing the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a memory;
and the display module is connected with the central control module and used for displaying the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a display screen.
It is a further object of the invention to provide a computer program product stored on a computer readable medium, comprising a computer readable program for providing a user input interface for implementing said engineering drawing model projection method when executed on an electronic device.
It is another object of the present invention to provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the engineering drawing model projection method.
The invention has the advantages and positive effects that: according to the invention, after automatic labeling can be carried out through the labeling module, the view is automatically placed, the picture frame information is automatically filled, and the size on the view can be automatically labeled; meanwhile, the modification history information is automatically acquired through the information modification module, the corresponding modification history table is automatically generated, and the modification history information is automatically stored in the modification history table, so that the efficiency of recording the modification information of the engineering drawing is improved, and convenience is provided for users.
The four photosensitive arrays are respectively arranged at four corners of the display screen through the projection detection module, and the position information of a projection picture is detected by utilizing the photosensitive arrays to obtain detection data; the projection processing module generates a projection correction model according to detection data obtained by each photosensitive array, and the projection correction model gradually moves the four vertex angles of the projected image to the vertex angles of the projection screen closest to the projection correction model until all the photosensitive arrays cannot detect the projection light, so that the precise matching of the projection image and the projection screen is realized, the intelligence of the projection display system is improved, and the convenience for operating the projection display system is improved.
According to the invention, the noise intensity of each pixel point of the RGB image S is calculated by the projection processing module, so that different noise suppression can be obtained at each point during noise reduction processing, and the final image noise reduction effect is better. Meanwhile, the noise reduction method provided by the invention can be directly carried out in the GPU, so that the requirement of a user on carrying out real-time noise reduction processing on the shot video image can be met, and the real-time noise reduction processing can also be carried out on the video image in the transmission process of the video image, so that the visual effect is improved.
Drawings
Fig. 1 is a block diagram of a projection system of an engineering drawing model according to an embodiment of the present invention.
In the figure: 1. an engineering parameter importing module; 2. a central control module; 3. an engineering drawing module; 4. a correction module; 5. a three-dimensional modeling module; 6. a rendering module; 7. a labeling module; 8. an information modification module; 9. a projection module; 10. a projection detection module; 11. a projection processing module; 12. a projection correction module; 13. an early warning module; 14. a data storage module; 15. and a display module.
Fig. 2 is a flowchart of an engineering drawing model projection method according to an embodiment of the present invention.
Detailed Description
In order to further understand the contents, features and effects of the present invention, the following embodiments are illustrated and described in detail with reference to the accompanying drawings.
The structure of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an engineering drawing model projection system provided by an embodiment of the present invention includes: the system comprises an engineering parameter importing module 1, a central control module 2, an engineering drawing module 3, a correction module 4, a three-dimensional modeling module 5, a rendering module 6, a labeling module 7, an information modifying module 8, a projection module 9, a projection detection module 10, a projection processing module 11, a projection correcting module 12, an early warning module 13, a data storage module 14 and a display module 15.
And the engineering parameter importing module 1 is connected with the central control module 2 and is used for importing engineering parameters through an importing program.
The central control module 2 is connected with the engineering parameter importing module 1, the engineering drawing module 3, the correction module 4, the three-dimensional modeling module 5, the rendering module 6, the labeling module 7, the information modification module 8, the projection module 9, the projection detection module 10, the projection processing module 11, the projection correction module 12, the early warning module 13, the data storage module 14 and the display module 15, and is used for controlling the normal work of each module through a host.
And the engineering drawing module 3 is connected with the central control module 2 and used for drawing the engineering drawing according to the import parameters through a drawing program.
And the correction module 4 is connected with the central control module 2 and is used for correcting the drawn engineering drawing through a correction program.
And the three-dimensional modeling module 5 is connected with the central control module 2 and used for constructing a three-dimensional model of the engineering drawing through modeling software.
And the rendering module 6 is connected with the central control module 2 and used for rendering the three-dimensional model of the engineering drawing through a rendering program.
And the marking module 7 is connected with the central control module 2 and is used for marking the three-dimensional model through a marking program.
And the information modification module 8 is connected with the central control module 2 and is used for modifying the attribute information of the engineering drawing through a modification program.
And the projection module 9 is connected with the central control module 2 and is used for projecting the drawn engineering drawing and the three-dimensional model through a projector. And projecting a projection image according to the projection control signal.
And the projection detection module 10 is connected with the central control module 2 and is used for detecting the position information of the projection picture through the photosensitive array to obtain detection data.
And the projection processing module 11 is connected with the central control module 2 and is used for controlling the projection module to project the image through the projection control signal. And receiving the detection data sent by the detection module to generate a projection correction model.
And the projection correction module 12 is connected with the central control module 2 and is used for correcting the projection of the three-dimensional model through the projection correction model.
And the early warning module 13 is connected with the central control module 2 and is used for early warning abnormal projection correction information through an audible and visual alarm.
And the data storage module 14 is connected with the central control module 2 and is used for storing the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a memory.
And the display module 15 is connected with the central control module 2 and used for displaying the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a display screen.
The invention is further described with reference to specific examples.
Example 1
The method for labeling the three-dimensional model through the labeling program provided by the embodiment of the invention comprises the following steps:
(1) and acquiring engineering drawing data. And extracting the target entity from the engineering drawing data. And constructing a three-dimensional model according to the target entity through a modeling program.
(2) And analyzing the two-dimensional view data and the three-dimensional model data, converting the two-dimensional view data and the three-dimensional model data into information required by labeling, caching the information into a memory, comparing the two-dimensional view data and the three-dimensional model data, and establishing a mapping relation between the two data and the three-dimensional model data.
(3) And performing chamfer analysis on the three-dimensional model to obtain a chamfer surface in the three-dimensional model.
(4) And simultaneously screening quasi-broken surfaces according to other surfaces except for the plane, the cylindrical surface and the conical surface in the area filtering three-dimensional model, and screening the broken surfaces for filtering according to the normal relation between the quasi-broken surfaces and the adjacent surfaces.
(5) And marking lines in the two-dimensional view corresponding to the surfaces in the reserved three-dimensional model, then executing duplication removing operation and rearranging marking information according to the position relation.
The step (2) provided by the embodiment of the invention comprises the following steps:
and screening straight line segments and circular arcs in the two-dimensional view.
And traversing the side information of the geometric body under the three-dimensional model, expressing the side information in a point set mode, and caching the side information into a memory.
And projecting the point set coordinates of the three-dimensional model into a two-dimensional view coordinate system through matrix transformation.
And comparing the position relation of the object in the two-dimensional view and the three-dimensional point set coordinate projection, and storing the object and the point set projection with consistent position relation into a mapping table.
The point set is obtained by equally dividing edges under the three-dimensional model according to a certain number, and the set formed by equally dividing points is the point set. And respectively weighing the X/Y/Z coordinates of each point in the point set, namely the center of the point set.
The step (3) provided by the embodiment of the invention comprises the following steps:
and traversing all the side information under the three-dimensional model.
If the edge C of the adjacent surface B of the edge A exists, any point X on the edge A can find a corresponding point X ' on the extension line of the edge C or the second derivative of the edge C, so that the tangential direction of the edge A at the point X is the same as the tangential direction of the edge C at the point X ', and the X-X ' direction is perpendicular to the tangential direction, the surface B is considered to be a chamfer possibly, and the further judgment is carried out:
if plane B is a plane, it is considered to be a chamfer.
If the curvature radius of each point on the surface B is the same and a section line is made at any position, the included angles of the obtained circular arcs are consistent and the included angle is smaller than 135 degrees, the surface B is considered to be a rounded corner.
The step (4) provided by the embodiment of the invention comprises the following steps:
and a, calculating the external dimension of the three-dimensional model.
And b, triangularizing each surface of the three-dimensional model and calculating the area of each surface, if the area of a certain surface is larger than the external dimension N, filtering out other surfaces except a plane, a cylindrical surface and a conical surface in the three-dimensional model according to surface information, and only keeping the plane, the cylindrical surface and the conical surface information in the three-dimensional model.
If the area of a certain face is smaller than the external dimension x N, the face is summarized as a quasi-broken face, if the certain quasi-broken face is a non-plane face, the face is summarized as a broken face which is not used as a marking reference, and then the rest quasi-broken faces are further judged. Where N is an empirical coefficient.
And c, searching all adjacent surfaces of the quasi-crushing surfaces, and sewing the quasi-crushing surfaces and the adjacent surfaces into a complete plane if one adjacent surface is a plane and the normal direction of the quasi-crushing surface is consistent with the normal direction of the quasi-crushing surface. If the normal direction of the quasi-broken surface is inconsistent with the normal directions of all adjacent surfaces or the adjacent surfaces of the quasi-broken surface are non-planar, the broken plane is summarized into a broken surface without reference.
And d, iteratively executing the step c until all the quasi-fragmented surfaces are judged.
Example 2
The method for modifying the engineering drawing attribute information through the modification program provided by the embodiment of the invention comprises the following steps:
1) and constructing an engineering drawing information database and storing the engineering drawing attribute information. And acquiring attribute information of the modified cloud line of the engineering drawing, wherein the attribute information comprises modification history information.
2) And generating a modification record table according to the quantity of the modification record information, wherein the modification record table comprises a plurality of information pieces, so that each piece of modification record information corresponds to one information piece, and each information piece comprises an item column corresponding to the type of the modification record information.
3) And correspondingly storing the modification history information into the project column.
4) Displaying the modified resume on the engineering drawing, establishing a modified lead between the information bar and the modified cloud line corresponding to the information bar, and/or displaying the modified resume on the engineering drawing, and displaying a modified mark in a preset range from the modified cloud line, wherein the modified mark comprises the modified mark information.
The modification history information provided by the embodiment of the invention comprises modification content information, presenter information, modification basis information, modification mark information and modification date information.
Each of the information bars includes a modified content item column, a presenter item column, a modified basis item column, a modified markup item column, and a modified date item column, where the modified content item column is used to store the modified content information, the presenter item column is used to store the presenter information, the modified basis item column is used to store the modified basis information, the modified markup item column is used to store the modified markup information, and the modified date item column is used to store the modified date information.
Example 3
The projection processing method provided by the embodiment of the invention comprises the following steps:
and when the processing module receives the detection data sent by the detection module, the noise reduction processing is carried out on the detection data, and noise data brought by the ambient light when the photosensitive array receives the projection light is removed. The method specifically comprises the following steps:
1) and converting the image to be processed into an RGB image S in a texture format.
2) The RGB image S is processed as follows in the R, G and B channels, respectively:
taking each pixel point in the RGB image S as a central point, respectively carrying out two-dimensional Gaussian blur of R, G and B channels in the neighborhood range of 3 × 3, 5 × 5 or 7 × 7 to obtain a Gaussian blur value G of R, G and B channels corresponding to each pixel pointΣThen, the noise intensity of R, G and B channels corresponding to each pixel point is calculated according to the following formula:
if 2Sp-GΣAnd when the value is more than or equal to 255, A is 255.
If 2Sp-GΣIf < 255 then A ═ 2Sp-GΣ
In the formula, SpThe gray value of each pixel R, G or B channel in the RGB image S.
3) Using the noise intensity A of R, G and B channels corresponding to each pixel point as a mixing coefficient, and performing gray scale value of R, G and B channels of each pixel point in the RGB image S and Gaussian blur value G of R, G and B channels corresponding to the pixel pointΣMixing according to the following formula to obtain mixed RGB three-channel image data Q of each pixel point:
Figure BDA0002362044670000131
in the formula, GΣThe gaussian blur value of R, G or B channel corresponding to each pixel point.
4) Firstly, converting the obtained RGB three-channel image data Q into Lab color space image data, then removing high frequency processing on the a channel image data and the b channel image data in the Lab color space image data by using two-dimensional Gaussian blur, and then returning the obtained result to the RGB color space, so as to obtain the RGB image subjected to noise reduction processing.
The Gaussian blur value G provided by the embodiment of the inventionΣFirstly, a Gaussian matrix G with the size of r × r is generated according to a two-dimensional normal distribution formula shown in the following formulapThen, taking each pixel point of the image as a central point, and multiplying gray values in three channels of R, G and B of each pixel point in the r × r neighborhood range of the central point by the respective Gauss matrix G of each pixel pointpThe corresponding element value G inp(u,v)And then the sum is obtained by summing,
Figure BDA0002362044670000132
2×|u|+1≤r。
2×|v|+1≤r。
wherein r is 3, 5 or 7, Gp(u,v)Is a Gaussian matrix GpWherein u and v are respectively an abscissa value and an ordinate value of a point in a two-dimensional space, and δ is a standard deviation of normal distribution, and is taken according to the following formula:
Figure BDA0002362044670000133
example 4
The method for correcting the projection of the three-dimensional model through the projection correction model provided by the embodiment of the invention comprises the following steps:
a rectangular coordinate system is established in the projection image and used for acquiring and maintaining coordinate values corresponding to each pixel on the projection screen. And controlling the four vertex angles of the projected image to move according to the coordinate conversion.
The four photosensitive arrays are respectively arranged at four corners of the display screen. The photosensitive arrays are right-angle photosensitive arrays, and when the photosensitive arrays are arranged, the horizontal edge line of each photosensitive array is coincided with two edges of the corresponding screen corner.
When the four corners of the projection image are moved, when the photosensitive array cannot detect the projection light in one direction of one corner of the projection screen, the projection image does not move in the direction of the corner, and only moves to the center direction in the other direction until the photosensitive array on the corner of the projection screen cannot detect the projection light any more.
Example 5
Fig. 2 is a projection method of an engineering drawing model provided in an embodiment of the present invention, including:
s101, importing engineering parameters by an import program through an engineering parameter import module 1; the central control module 2 draws an engineering drawing according to the import parameters by using a drawing program through an engineering drawing module 3; correcting the drawn engineering drawing by using a correction program through a correction module 4; and constructing a three-dimensional model of the engineering drawing by using modeling software through a three-dimensional modeling module 5.
S102, rendering the three-dimensional model of the engineering drawing by using a rendering program through a rendering module 6; labeling the three-dimensional model by using a labeling program through a labeling module 7; modifying the attribute information of the engineering drawing by using a modification program through an information modification module 8; and projecting the drawn engineering drawing and the three-dimensional model by using a projector through a projection module 9, and projecting a projection image according to the projection control signal.
S103, detecting the position information of the projection picture by using the photosensitive array through the projection detection module 10 to obtain detection data; controlling the projection module to project the image by the projection processing module 11 by using the projection control signal; receiving detection data sent by the detection module to generate a projection correction model; correcting the projection of the three-dimensional model by using the projection correction model through the projection correction module 12; the early warning module 13 utilizes an audible and visual alarm to carry out early warning on abnormal projection correction information; the data storage module 14 stores the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information by using a memory.
And S104, displaying the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information by using a display screen through the display module 15.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, can be implemented in a computer program product that includes one or more computer instructions. When loaded or executed on a computer, cause the flow or functions according to embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.)). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications, equivalent changes and modifications made to the above embodiment according to the technical spirit of the present invention are within the scope of the technical solution of the present invention.

Claims (10)

1. A projection method of an engineering drawing model is characterized by comprising the following steps:
firstly, acquiring engineering drawing data; extracting a target entity from the engineering drawing data; constructing a three-dimensional model according to a target entity through a modeling program;
secondly, analyzing the two-dimensional view data and the three-dimensional model data, converting the two-dimensional view data and the three-dimensional model data into information required by labeling, caching the information into a memory, comparing the two-dimensional view data and the three-dimensional model data, and establishing a mapping relation between the two data and the three-dimensional model data; comparing the two-dimensional view data with the three-dimensional model data, and screening straight line segments and arcs in the two-dimensional view; traversing the side information of the geometric body under the three-dimensional model, expressing the side information in a point set mode and caching the side information in a memory; projecting the point set coordinates of the three-dimensional model into a two-dimensional view coordinate system through matrix transformation;
comparing the position relation of the object in the two-dimensional view and the three-dimensional point set coordinate projection, and storing the object and the point set projection with consistent position relation into a mapping table; the point set is obtained by equally dividing edges under the three-dimensional model according to a certain number, and a set formed by equally dividing points is the point set; respectively weighing the X/Y/Z coordinates of each point in the point set to form the center of the point set;
thirdly, performing chamfer analysis on the three-dimensional model, and traversing all side information under the three-dimensional model; if the edge C of the adjacent surface B of the edge A exists, any point X on the edge A can find a corresponding point X ' on the extension line of the edge C or the second derivative of the edge C, so that the tangential direction of the edge A at the point X is the same as the tangential direction of the edge C at the point X ', and the X-X ' direction is perpendicular to the tangential direction, the surface B is considered to be a chamfer possibly, and the further judgment is carried out: if the surface B is a plane, the surface B is regarded as a chamfer angle;
if the curvature radii of all points on the surface B are the same and the section lines are made at any positions, the included angles of the obtained circular arcs are consistent and the included angle is smaller than 135 degrees, the surface B is considered to be a rounded corner; finally, obtaining a chamfer surface in the three-dimensional model;
and fourthly, simultaneously screening quasi-broken faces according to other faces except for the plane, the cylindrical face and the conical face in the area filtering three-dimensional model, and screening the broken faces for filtering according to the normal relation between the quasi-broken faces and the adjacent faces, wherein the method specifically comprises the following steps: calculating the overall dimension of the three-dimensional model; triangularization processing is carried out on each surface of the three-dimensional model, the area of each surface is calculated, if the area of a certain surface is larger than the external dimension N, other surfaces except a plane, a cylindrical surface and a conical surface in the three-dimensional model are filtered according to surface information, and only the plane, the cylindrical surface and the conical surface information in the three-dimensional model are reserved;
if the area of a certain face is smaller than the overall dimension x N, the face is summarized as a quasi-broken face, if the certain quasi-broken face is a non-plane face, the face is summarized as a broken face which is not used as a marking reference, and then the rest quasi-broken faces are further judged; wherein N is an empirical coefficient;
then searching all adjacent surfaces of the quasi-crushing surface, and if one adjacent surface is a plane and the normal direction of the adjacent surface is consistent with the normal direction of the quasi-crushing surface, sewing the quasi-crushing surface and the adjacent surface into a complete plane; if the normal direction of the quasi-broken surface is inconsistent with the normal directions of all adjacent surfaces or the adjacent surfaces of the quasi-broken surface are non-planar, summarizing the broken plane into broken surfaces without making a reference for marking; iteration is carried out until all the quasi-fragmented surfaces are judged;
and fifthly, marking lines in the two-dimensional view corresponding to the surfaces in the reserved three-dimensional model, then executing duplication elimination operation and rearranging marking information according to the position relation.
2. The method for projecting an engineering drawing model according to claim 1, wherein in the second step, the projection processing method comprises:
when the processing module receives the detection data sent by the detection module, noise reduction processing is carried out on the detection data, and noise data brought by ambient light when the photosensitive array receives the projection light is removed; the method specifically comprises the following steps:
1) converting an image to be processed into an RGB image S in a texture format;
2) the RGB image S is processed as follows in the R, G and B channels, respectively:
taking each pixel point in the RGB image S as a central point, respectively carrying out two-dimensional Gaussian blur of R, G and B channels in the neighborhood range of 3 × 3, 5 × 5 or 7 × 7 to obtain a Gaussian blur value G of R, G and B channels corresponding to each pixel pointΣThen, the noise intensity of R, G and B channels corresponding to each pixel point is calculated according to the following formula:
if 2Sp-GΣWhen the value is more than or equal to 255, A is 255;
if 2Sp-GΣIf < 255 then A ═ 2Sp-GΣ
In the formula, SpThe gray value of each pixel R, G or B channel in the RGB image S.
3) Using the noise intensity A of R, G and B channels corresponding to each pixel point as a mixing coefficient, and performing gray scale value of R, G and B channels of each pixel point in the RGB image S and Gaussian blur value G of R, G and B channels corresponding to the pixel pointΣMixing according to the following formula to obtain mixed RGB three-channel image data Q of each pixel point:
Figure FDA0002362044660000031
in the formula, GΣThe Gaussian blur value of the R, G or B channel corresponding to each pixel point;
4) firstly, converting the obtained RGB three-channel image data Q into Lab color space image data, then removing high frequency processing on the a channel image data and the b channel image data in the Lab color space image data by using two-dimensional Gaussian blur, and then returning the obtained result to the RGB color space, so as to obtain the RGB image subjected to noise reduction processing.
3. The engineering drawing model projection method of claim 2, wherein the gaussian blur value GΣFirstly, a Gaussian matrix G with the size of r × r is generated according to a two-dimensional normal distribution formula shown in the following formulapThen, taking each pixel point of the image as a central point, and multiplying gray values in three channels of R, G and B of each pixel point in the r × r neighborhood range of the central point by the respective Gauss matrix G of each pixel pointpThe corresponding element value G inp(u,v)Then summing to obtain;
Figure FDA0002362044660000032
2×|u|+1≤r;
2×|v|+1≤r;
wherein r is 3, 5 or 7, Gp(u,v)Is a Gaussian matrix GpWherein the element values u and v are two-dimensional respectivelyThe abscissa and ordinate values of points in space, δ being the standard deviation of the normal distribution, are taken as follows:
Figure FDA0002362044660000033
4. the method for projecting an engineering drawing model according to claim 1, wherein in the second step, the correction of the projection of the three-dimensional model by the projection correction model is performed by:
a rectangular coordinate system is established in the projection image and used for acquiring and maintaining coordinate values corresponding to each pixel on the projection screen; controlling the four vertex angles of the projected image to move according to the coordinate conversion;
the four photosensitive arrays are respectively arranged at four corners of the display screen; the photosensitive arrays are right-angle photosensitive arrays, and when the photosensitive arrays are arranged, the horizontal edge line of each photosensitive array is coincided with two edges of the corresponding screen corner.
5. The engineering drawing model projection method according to claim 4, wherein when the projected image moves four corners, when the photosensitive array does not detect the projected light in one direction of one corner of the projection screen, the projected image does not move in the one direction of the corner, and moves to the center direction only in the other direction until the photosensitive array on the corner of the projection screen does not detect the projected light any more.
6. The engineering drawing model projection method according to claim 1, wherein after the fifth step, the rearranged engineering drawing attribute information is modified by a modification program, specifically comprising:
1) constructing an engineering drawing information database and storing the attribute information of the engineering drawing; acquiring attribute information of a modification cloud line of the engineering drawing, wherein the attribute information comprises modification history information;
2) generating a modification history list according to the quantity of the modification history information, wherein the modification history list comprises a plurality of information pieces, so that each piece of modification history information corresponds to one information piece, and each information piece comprises an item column corresponding to the type of the modification history information;
3) correspondingly storing the modification history information into the project bar;
4) displaying the modified resume on the engineering drawing, establishing a modified lead between the information bar and the modified cloud line corresponding to the information bar, and/or displaying the modified resume on the engineering drawing, and displaying a modified mark in a preset range from the modified cloud line, wherein the modified mark comprises the modified mark information.
7. The engineering drawing model projection method according to claim 6, wherein the modification history information includes modification content information, presenter information, modification basis information, modification flag information, and modification date information;
each of the information bars includes a modified content item column, a presenter item column, a modified basis item column, a modified markup item column, and a modified date item column, where the modified content item column is used to store the modified content information, the presenter item column is used to store the presenter information, the modified basis item column is used to store the modified basis information, the modified markup item column is used to store the modified markup information, and the modified date item column is used to store the modified date information.
8. An engineering drawing model projection system, comprising:
the engineering parameter import module is connected with the central control module and used for importing engineering parameters through an import program;
the central control module is connected with the engineering parameter importing module, the engineering drawing module, the correcting module, the three-dimensional modeling module, the rendering module, the labeling module, the information modifying module, the projection detection module, the projection processing module, the projection correcting module, the early warning module, the data storage module and the display module and is used for controlling the modules to normally work through the host;
the engineering drawing module is connected with the central control module and used for drawing the engineering drawing according to the import parameters through a drawing program;
the engineering drawing correction module is connected with the central control module and is used for correcting the drawn engineering drawing through a correction program;
the three-dimensional modeling module is connected with the central control module and used for constructing a three-dimensional model of the engineering drawing through modeling software;
the rendering module is connected with the central control module and used for rendering the three-dimensional model of the engineering drawing through a rendering program;
the marking module is connected with the central control module and is used for marking the three-dimensional model through a marking program;
the information modification module is connected with the central control module and is used for modifying the attribute information of the engineering drawing through a modification program;
the projection module is connected with the central control module and is used for projecting the drawn engineering drawing and the three-dimensional model through a projector; projecting a projection image according to the projection control signal;
the projection detection module is connected with the central control module and used for detecting the position information of the projection picture through the photosensitive array to obtain detection data;
the projection processing module is connected with the central control module and is used for controlling the projection module to project the image through the projection control signal; receiving detection data sent by the detection module to generate a projection correction model;
the projection correction module is connected with the central control module and is used for correcting the projection of the three-dimensional model through the projection correction model;
the early warning module is connected with the central control module and is used for early warning abnormal projection correction information through the audible and visual alarm;
the data storage module is connected with the central control module and used for storing the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a memory;
and the display module is connected with the central control module and used for displaying the real-time data of the engineering drawing attribute information, the projection detection data, the projection correction data and the alarm information through a display screen.
9. A computer program product stored on a computer readable medium, comprising a computer readable program for providing a user input interface for implementing a method for engineering drawing model projection according to any one of claims 1 to 7 when executed on an electronic device.
10. A computer readable storage medium storing instructions which, when executed on a computer, cause the computer to perform a method of projecting an engineering drawing model as claimed in any one of claims 1 to 7.
CN202010024747.6A 2020-01-10 2020-01-10 Engineering drawing model projection system and method Pending CN111325826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010024747.6A CN111325826A (en) 2020-01-10 2020-01-10 Engineering drawing model projection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010024747.6A CN111325826A (en) 2020-01-10 2020-01-10 Engineering drawing model projection system and method

Publications (1)

Publication Number Publication Date
CN111325826A true CN111325826A (en) 2020-06-23

Family

ID=71168704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010024747.6A Pending CN111325826A (en) 2020-01-10 2020-01-10 Engineering drawing model projection system and method

Country Status (1)

Country Link
CN (1) CN111325826A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379872A (en) * 2021-07-13 2021-09-10 重庆云图软件科技有限公司 Engineering drawing generation method, device and system and computer readable storage medium
CN114356295A (en) * 2021-12-24 2022-04-15 北京有竹居网络技术有限公司 Three-dimensional model construction method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595933A (en) * 2013-11-25 2014-02-19 陈皓 Method for image noise reduction
WO2016165209A1 (en) * 2015-04-17 2016-10-20 青岛海信医疗设备股份有限公司 3d image cropping method
CN108121862A (en) * 2017-12-13 2018-06-05 武汉益模科技股份有限公司 A kind of engineering drawing automatic marking method based on three-dimensional geometry feature
CN109361909A (en) * 2018-12-05 2019-02-19 四川长虹电器股份有限公司 Projection display system and projection correction's method
CN110347686A (en) * 2019-07-02 2019-10-18 上海外高桥造船有限公司 Record the method and system of engineering drawing modification information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595933A (en) * 2013-11-25 2014-02-19 陈皓 Method for image noise reduction
WO2016165209A1 (en) * 2015-04-17 2016-10-20 青岛海信医疗设备股份有限公司 3d image cropping method
CN108121862A (en) * 2017-12-13 2018-06-05 武汉益模科技股份有限公司 A kind of engineering drawing automatic marking method based on three-dimensional geometry feature
CN109361909A (en) * 2018-12-05 2019-02-19 四川长虹电器股份有限公司 Projection display system and projection correction's method
CN110347686A (en) * 2019-07-02 2019-10-18 上海外高桥造船有限公司 Record the method and system of engineering drawing modification information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李晓春等: "基于最优分区搜索法的线结构激光成像方法研究", 《南京理工大学学报》 *
黄晓建等: "超二维环境下尺寸驱动和参数设计的研究", 《计算机辅助设计与图形学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379872A (en) * 2021-07-13 2021-09-10 重庆云图软件科技有限公司 Engineering drawing generation method, device and system and computer readable storage medium
CN114356295A (en) * 2021-12-24 2022-04-15 北京有竹居网络技术有限公司 Three-dimensional model construction method and device and electronic equipment
CN114356295B (en) * 2021-12-24 2023-05-26 北京有竹居网络技术有限公司 Three-dimensional model construction method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112581629A (en) Augmented reality display method and device, electronic equipment and storage medium
US6774889B1 (en) System and method for transforming an ordinary computer monitor screen into a touch screen
EP1267309B1 (en) 3D Computer Modelling Apparatus
CN111985036B (en) House type frame line drawing method and device, storage medium and electronic equipment
US10761721B2 (en) Systems and methods for interactive image caricaturing by an electronic device
US20180253852A1 (en) Method and device for locating image edge in natural background
CN111325826A (en) Engineering drawing model projection system and method
US20210306389A1 (en) Method for separating local and remote content in a camera-projector based collaborative system
US20230386041A1 (en) Control Method, Device, Equipment and Storage Medium for Interactive Reproduction of Target Object
WO2019001164A1 (en) Optical filter concentricity measurement method and terminal device
CN116362957B (en) PCB card image alignment method, device, medium and electronic equipment
CN113538623A (en) Method and device for determining target image, electronic equipment and storage medium
US9319666B1 (en) Detecting control points for camera calibration
US8462176B1 (en) Automatic annotation generation
CN111435589B (en) Target display method and device and target display system
US9881210B2 (en) Generating a computer executable chart visualization by annotating a static image
CN116912331A (en) Calibration data generation method and device, electronic equipment and storage medium
CN113762173B (en) Training method and device for face optical flow estimation and optical flow value prediction model
CN111435969B (en) Image processing apparatus, control method thereof, recording medium, and information processing system
CN111260723B (en) Barycenter positioning method of bar and terminal equipment
CN113192171A (en) Three-dimensional effect graph efficient rendering method and system based on cloud rendering
US20220005260A1 (en) System for determining visually relevant design differences between 3d models
CN111696154A (en) Coordinate positioning method, device, equipment and storage medium
WO2023151568A1 (en) Method for measuring size of object, storage medium, and electronic device
CN113656876B (en) Automatic cabinet model generation method, device, medium and electronic equipment

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200623