WO2016145581A1 - Method for generating precise pattern according to hand-drawn graph - Google Patents

Method for generating precise pattern according to hand-drawn graph Download PDF

Info

Publication number
WO2016145581A1
WO2016145581A1 PCT/CN2015/074250 CN2015074250W WO2016145581A1 WO 2016145581 A1 WO2016145581 A1 WO 2016145581A1 CN 2015074250 W CN2015074250 W CN 2015074250W WO 2016145581 A1 WO2016145581 A1 WO 2016145581A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
information
generating
point
hand
Prior art date
Application number
PCT/CN2015/074250
Other languages
French (fr)
Chinese (zh)
Inventor
王浩屹
王建新
Original Assignee
王浩屹
王建新
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 王浩屹, 王建新 filed Critical 王浩屹
Priority to PCT/CN2015/074250 priority Critical patent/WO2016145581A1/en
Publication of WO2016145581A1 publication Critical patent/WO2016145581A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention relates to a graphics processing method, and more particularly to a method of generating an accurate pattern based on a hand drawing.
  • hand-painting is the most primitive and basic way for humans to express and think about graphics.
  • Modern use of computers to draw vector paper through the mouse and keyboard is just a helpless choice when humans use computers.
  • the reason why hand-drawn drawing tools that are not suitable for modern computers are drawn is that human hands-free drawing is impossible to draw graphics accurately, but computers can only process vector graphics by processing precise data.
  • the technical problem to be solved by the present invention is to provide a method for directly generating an accurate pattern according to a hand drawing.
  • the technical solution adopted by the present invention to solve the technical problem thereof is: constructing a method for generating an accurate pattern according to a hand drawing, comprising the following steps:
  • the identification information includes instruction flag information; in the step S3, the graphic element is processed according to the instruction flag information.
  • the instruction mark information includes one or more of a delete instruction, a modification instruction, an addition instruction, and a query instruction.
  • the identification information includes graphic type information and graphic annotation information
  • the step S3 includes:
  • step S3-1 determining whether the graphic type information is included in the identification information, if yes, executing step S3-2, otherwise performing step S3-3;
  • S3-3 Determine a graphic type corresponding to the graphic element according to the graphic element, and generate a standard graphic of the graphic of the type.
  • the step S3-3 includes the following steps:
  • S3-3-1 a first endpoint, a second endpoint, and at least one sampling point between the first endpoint and the second endpoint in the identified graphical element;
  • S3-3-2 identifying, according to the first endpoint, the second endpoint, and the sampling point, hand-drawn graphic information of the graphic element between the first endpoint and the second endpoint, and according to the The hand drawn graphic information gets the graphic type.
  • step S3-3-2 connecting the first end point and the second end point, determining the sampling point and the first end point a distance relationship between the second endpoint connection lines, the hand-drawn graphics information is obtained to determine the type of the graphic between the first endpoint and the second endpoint;
  • the method further includes a canvas setting step:
  • a drawing area is set for the user to draw the hand drawing in the drawing area through an input device.
  • the step S3 further includes:
  • step S3-4 determining whether there is graphic annotation information in the identification information, if yes, executing step S3-5, otherwise performing step S3-6;
  • S3-6 Perform fuzzy calculation according to the position and shape of the brush cover canvas in the drawing area according to the graphic element, and stake out the standard graphic obtained in step S3-2 or S3-3 to generate the accurate pattern.
  • the step S3-5 includes the following steps:
  • step S3-5-1 determining whether the graphic annotation information includes unit information, if yes, executing step S3-5-2, otherwise performing step S3-5-3;
  • S3-5-3 determining unit information according to the annotation data in the graphic annotation information, combining the scale of the hand drawing, and/or the user setting ratio, and/or a common unit, and according to the annotation data and The unit information is staked to generate the exact pattern.
  • step S3 it is determined whether the graphic element and/or the data element obtains a valid component group; if a valid component group is obtained, a basic element group is generated, and the basic element group data is generated according to the obtained basic element group data. Precise pattern.
  • the identified element, the reference element, the graphic type information, and the graphic annotation information constitute the graphic element and/or the data element.
  • the present invention has the following beneficial effects: the present invention realizes converting the graphic elements on the hand drawing to generate corresponding accurate patterns by recognizing the corresponding identification information of the graphic elements, thereby avoiding the need to additionally use the keyboard and the like in the prior art.
  • the input tool re-enters the time to draw the accurate pattern, which has the advantages of high work efficiency, time saving cost, and more in line with the way people express and think about graphics.
  • FIG. 1 is a flow chart showing an embodiment of a method for generating an accurate pattern according to a hand drawing according to the present invention
  • FIG. 2 is a flow chart showing the steps of generating an accurate pattern in the method for generating an accurate pattern according to the hand drawing of the present invention.
  • FIG. 1 it is a flowchart of an embodiment of a method for generating an accurate pattern according to the present invention, by identifying at least one graphic element of a hand drawing (step S1); and then identifying corresponding identification information in the graphic element. (Step S2); Then, an accurate pattern corresponding to the graphic element is generated based on the identification information (step S3).
  • the contents of the selected range of the original drawing can be added, deleted, changed, checked, etc., so as to facilitate the purpose of modification; or a new accurate pattern can be generated according to the newly drawn hand drawing, and the standard is generated.
  • the model is thus represented as a standard drawing.
  • the graphical element is an element of the hand-drawn graphic (one or more combinations of points, lines, faces) used for avatar, and may include graphics and/or one or more identification information about the graphic.
  • the graphic element contains three parts: (1) an inaccurate line (graphic) of hand-drawn, (2) a length dimension of the line (graphic) of 3m (identification information), and (3) the line.
  • An endpoint coordinate (identification information), in the above three parts, (1) is a graphic
  • (2) and (3) are identification information, which can be combined into one graphic element; if only the above (1) can also be used as a graphic element Although it is not precise, it can be identified by other methods; if only (2) and (3), it can also be used as a graphic element, only need to indicate that it represents a straight line, and can also be correctly identified; if only (2) Although it can also be used as a graphic element, the expression is a 3m long line, but the exact position of the line needs to be determined by other methods; if only (3) as a graphic element, only one coordinate identification information, it can only be accurate. Position the position of a point instead of a precise line.
  • the instruction tag information includes one or more of a delete instruction, a modification instruction, an addition instruction, and a query instruction.
  • step S3-1 it can also be determined whether there is graphics type information in the identification information (step S3-1), if yes, step S3-2 is performed, otherwise step S3-3 is performed;
  • S3-3 Judging the corresponding graphic type according to the graphic of the graphic element, and generating a standard graphic of the graphic of the type. a first endpoint in the identified graphical element, a second endpoint, and at least one sample point between the first endpoint and the second endpoint; identifying the first end based on the first endpoint, the second endpoint, and the sampling point.
  • the hand-drawn graphic information of the graphic element between the point and the second end point, and the graphic type is obtained according to the hand-drawn graphic information.
  • the standard graphics that generate the type of graphics can be generated by various geometric methods, for example, by straight line drawing, angle drawing, various geometric drawing, and the like.
  • the identification of the first endpoint, the second endpoint, and the sampling point can be determined by identifying the initial input point of the input device in the drawing area and the input trajectory process.
  • S3-6 Perform fuzzy calculation according to the position and shape of the brush covering the canvas in the drawing area, and stake out the image obtained in step S3-2 or S3-3 to generate an accurate pattern.
  • the method includes a step of setting a canvas, a step of drawing a graphic element, a step of identifying a graphic element, and a step of generating an accurate pattern. It can be understood that the above steps can be deleted or sequentially adjusted as needed.
  • the step of setting the canvas it is equivalent to setting an area for drawing, for the user to draw the hand drawing.
  • the user can perform hand-drawing through various input devices of the hand drawing to form a hand drawing that needs to identify and generate an accurate pattern.
  • the hand drawing may be using a mouse, a keyboard, an electronic tablet, or a mobile phone with a touch screen, a Pad device, a scanner or a camera image capturing device, and the like as an input device, and the drawing may be drawn.
  • a combination of graphs or graphics such as dots, lines, and faces, inputting images and information processed by a computer.
  • the hand drawing When the hand drawing is drawn using paper-based media and then input to the computer using a scanner or camera-type image capture device, it can be considered as a bitmap image; when using an electronic tablet, or a mobile phone with a touch screen, or a Pad device, The information entered may be more than just a bitmap image, and may also have hand-drawn sequences, starting point, end point, coordinates of key points, and the like. When using the mouse or keyboard input, the hand drawing also has additional information entered. The hand drawings are all inaccurate. At the current level, it is difficult for people to draw a figure with precise dimensions.
  • the canvas size which is the range that can actually be used for hand-drawn drawing. Such as the size of a piece of paper, the size of the screen, and so on.
  • Determine the canvas range select the need to add, delete, modify, query the model or model part, the model or model part is presented on the 2D display device in the form of drawings or output on the paper type media.
  • the origin of the canvas The user can set the specified point as the origin through the input device.
  • the horizontal coordinate of the origin is set to select the horizontal coordinate of the leftmost point of the canvas range
  • the vertical coordinate is set to the vertical coordinate of the lowest point of the selection range.
  • the user can set the specified direction as the direction of the canvas through the input device, so as to facilitate the subsequent reference of the driving graphic element. It can be understood that when the original image is modified by the method, the specified direction of the original image can also be directly called.
  • the reference graphic element of the scale may be: when setting the canvas scale, there are multiple graphic elements in the figure, and only one of them is used as a basis for calculating the set proportion, and the graphic element is the reference graphic element of the scale.
  • the scaled reference graphic element can be a graphic element used to generate an accurate pattern in a hand drawing, or a graphic element specifically used to set a scale.
  • the user can set different attribute parameters corresponding to different graphics and different identification information, and different attribute parameters may include colors, layers, internal attribute parameters, etc., thereby facilitating hand-drawn graphics.
  • the line with red (different color is parameter) is the center line of a building component wall.
  • the thickness of this wall is 200mm and the height is 3000mm.
  • the exact pattern of the red pair will be offset by 100mm on both sides.
  • the seal (precision pattern) stretches the cube (model) of 3000mm to build the model, and then outputs the plane of the wall member in the form of a building plan; at the same time, set the point of black (different colors as parameters) as the circular cross in the building component.
  • the center of the column with a cross section of 200 mm and the height of the column is 3000 mm.
  • the cylinder with the height of 3000 mm is retracted from the circle with the black point of the circle of 200 mm (accurate pattern). ).
  • the first step is to determine the actual spacing of the grid. If the actual spacing is defined, it is determined by defining the actual spacing. If the actual spacing is not defined, the actual spacing of the grid is determined according to the scale of the graph. The actual spacing is the actual size represented by the actual spacing of the grid. Each scale will infer the common modulus values for this scale drawing graph. Inferred methods, for example, between 1:100 and 1:500, will be drawn a plan of a building, China's main modulus is 100mm, 300mm and so on. If the ratio is less than 1:500, the general plan plan is drawn. The modulus used in the plan is generally an integral multiple of 1 m or an integral multiple of 1.5 meters.
  • the actual spacing of the grid represented by the scale may be: greater than 5:1, representing 1 mm. Less than 5:1 is greater than 1:100, representing 10mm or 20mm or 50mm. Less than 1:100 is greater than 1:500 , representing an integer multiple of 300mm or 100mm, less than 1:500, representing 1000mm or 1500mm or 3000mm.
  • the grid spacing is determined, and the grid spacing is generally between 10 mm and 3 mm.
  • the grid presented on the canvas is generally sized to be recognizable by human vision.
  • a preferred solution is to use the corresponding method for generating the drawing according to the correspondence relationship, and correspondingly output the same correspondingly.
  • the wall is displayed in the plan as a thick solid rectangle in the plan view, and the red line represents the center line of the wall. Although there is no center line of the wall in the original image, the center is still needed when drawing the original image in the canvas. The line is calculated and drawn on the canvas in the same red color. This is just a setting for the convenience of drawing. If there is no need to display it, there is no need to output it.
  • the user can perform a step of drawing a graphic element on the canvas by using an input device, thereby forming a hand drawing.
  • setting the canvas step is not necessary.
  • the setting content of the canvas can be directly called for the standard format template.
  • the timing of the canvas setting can also be drawn after the drawing is completed. .
  • the drawing of the graphic steps may include drawing a graphic of the graphic element, drawing identification information of the graphic element, and the like.
  • Drawing graphic elements should be based on the following principles: (1) All graphic elements should have preset parameters for recall when they are recognized; (2) the position and shape description of the graphic elements should satisfy the geometric elements. A component group; (3) Each feature value in the valid component group must have a valid input method, otherwise the graphic element will not be recognized.
  • the input method described in the above principle (3) means: (1) directly inputting elements using a byte input device such as a keyboard; (2) inputting elements using graphic annotation information; (3) using a grid or original graphics or custom positioning Graphical input elements; (4) using the coordinates of the hand-drawn contacts fed back by the device, and then calculating the calculated features.
  • a certain priority in the selection method of the above input method.
  • (1)>(2)>(3)>(4) if one element is input by multiple modes, it is input with a high priority.
  • the elements are subject to change. It can be understood that the input method can also be combined by the above several input methods, and the priority is related to the input method of all the elements in the effective constituent element group.
  • point A is a point on the grid
  • now point B is determined from point A to 45 degrees 3m to the upper left
  • the angle is entered using the angle annotation method of the graphic annotation information (2), and the contact feedback is used for 3m.
  • the method input is (4), so the priority of point B as a separate graphic element is related to the priority of the above two input methods, and different working modes can calculate different priorities.
  • the significance of determining the priority of an element is that when the various elements obtained by the graphic can be composed of a plurality of effective constituent elements, and the basic element groups obtained by the effective constituent elements are not necessarily the same or have a certain error, this When it is judged by priority, which valid component group is adopted.
  • an element is an element that describes a graphic.
  • a point on a plane is described by two coordinates: X and Y.
  • the two coordinates of X and Y are the elements of this point; a segment of a line whose graphic elements are two endpoints (A and B), or two endpoints.
  • Four coordinates XA, YA and XB, YB).
  • a graphic itself can be used as a graphic element of another graphic.
  • Graphical elements and data elements can be elements that describe a graphic. To be processed inside the computer, the elements must be digitized.
  • the data elements are a form of data representation of the graphic elements, such as: a segment of a line, the graphic elements are two The endpoints (A and B), or their data elements are the four coordinates of the two endpoints (XA, YA, and XB, YB). It can be further understood that the elements of the line segment AB are composed of the graphic element A and the data element XB, YB composition.
  • the basic feature group can be a group of the most primitive data elements that the computer uses to process a graph. All the feature values in the group need to be processed, and the graph can be processed.
  • the computer needs to process a point.
  • the computer processes the X and Y coordinates of the point; the computer processes a line segment, and the computer processes the four coordinates of the two endpoints of the line segment (XA, YA, and XB, YB);
  • the computer will be input by the four
  • the elements through the calculation of the trigonometric function, calculate XB and YB, because (XA, YA, and XB, YB) are the data elements (basic feature groups) that the computer actually processes.
  • the basic feature groups may be different, depending on the application, some programs may use vectors, some may use three
  • a component group can be a group of elements used in a computer to process a basic feature group that can be used to derive a graph without using other elements.
  • the component group may not be a basic feature group, but only through the elements in the component group. Calculation, you can get the basic feature group.
  • the component group can be directly a basic feature group, but when the basic feature group is lacking, it is entirely possible to use other features to derive the basic feature group.
  • a circle can be determined by (a) the center and radius, or by (b) any three points on the circle, or even by (c) the center of the circle and the area of the circle, above (a) (b) (c) are all constituent elements, and the elements in any one of them are complete, and this figure can be accurately constructed.
  • a valid component group is a group of component groups that can be processed into a basic feature group. All of the elements must be valid. In the present embodiment, whether or not the effective constituent element group is obtained by judging the obtained graphic element and/or data element; if the effective constituent element group is obtained, the basic element group is generated, and an accurate pattern is generated based on the obtained basic element group data.
  • the graphic types of the drawn graphic elements include, but are not limited to, points, lines, faces, and the like.
  • the tap type classification includes a single point, an endpoint, an intersection point, and the like.
  • a single point can identify the desired point with a figure of no more than 5 mm; both ends of the line are treated as two points as endpoints; points where several lines intersect are considered intersections.
  • Lines include lines, polylines, arcs, curves, and more.
  • Each of the lines has its own set of multiple constituent elements, such as an arc with a clear arc length, a radius of the center of the circle, a third point, or a component group composed of other elements.
  • the curve may be a plurality of arcs or a plurality of sampling points to form a component group, or may be a component group of a smooth curve composed of points that are not on a straight line or on the same arc. It can be understood that when the line does not have a clear schematic type information, it needs to be judged when it is recognized.
  • the face includes a face contour and a face fill, wherein the face contour can be surrounded by lines that meet end to end, and the face fill can be done by introducing a fill line or drawing a fill line.
  • the user can also customize more graphic elements according to work habits, and these graphic elements may not be limited to points, lines, faces and identification information. Then set up the component groups for the custom graphic elements and the method for generating an accurate pattern from each of the component groups.
  • An accurate pattern is a graphic that is used to stake out by identifying and calculating a process graphic. For example, when drawing a line, give this line a precise length of 3m, and determine the coordinates of the two end points of the line, set this line to be the center line of the wall. At this time, the 3m long line (that is, the exact pattern) is recognized. After the line is laid out as a model of a wall, this line is not necessarily presented in the form of a line. Instead, the line is centered and offset by the preset wall thickness. After that, it is presented as the final result in the form of a wall outline. In this embodiment, the accurate pattern may be a 3 m long line that is not staked out as a wall contour, that is, information used to control the position and length of the wall model.
  • the identification information is information that describes the processing of the graphics in the graphic elements.
  • One identification information includes one or more of instruction mark information, graphic type information, and graphic annotation information.
  • Identification information is usually expressed in a mark and text that people are accustomed to. Such marks and characters are recognized by the computer when they need to be recognized.
  • a set of tokens and text can be used to express one or more messages. For example, when a new graph is marked with only one coordinate, and it has complete and unambiguous coordinate values, it has at least 3 pieces of information, (1) represents the drive mark, and a graphic needs to be added; (2) and represents a graphic type of one Point, (3) The graphic annotation information of this point graphic is that this point is on a specific set of complete coordinates.
  • the identification information is used to identify the corresponding graphic element.
  • the circle may be circled by a circle of no more than 5 mm; when the line is marked, the rectangle may be circled with a width of not more than 5 mm.
  • the modified line with the break line, intercepts the required part, and needs to drive the partition line to size; when identifying the surface, the surface to be modified is contoured and coiled, and a diagonal line is drawn for explanation.
  • the identification information includes instruction mark information, and the identified graphic element can be processed according to the instruction mark information.
  • the instruction mark information includes one or more of a delete instruction, a modification instruction (including displacement, interception, etc.), an increase instruction, and a query instruction, and the corresponding graphic element is deleted, modified, added, and queried by identifying the instruction. Wait for processing.
  • the graphic annotation information is an accurate expression of the graphic element, and the labeling style of the graphic annotation information may include a dimension label, an angle label, a coordinate label, an elevation label, an area label, and the like.
  • the dimension is used to indicate the distance between the graphical elements; the angular dimension is used to indicate the angle between the two lines, and the unit information may be degrees or radians; the coordinate label is used to refer to the coordinates of the coordinate points; Annotation is used to identify the elevation; this area is used to mark the area of the face.
  • the graphical annotation information may include dimension lines and/or dot markers and/or leads and/or text, and the like.
  • dimension lines represent dimensioning styles.
  • the dot mark is used to clearly indicate the point at which the lead is pointed.
  • the lead can point to a clear point, which can be clearly marked with a marker; the lead can also be explicitly pointed to a line.
  • the marked text is located near the dimension line, labeled with the distance or angle represented by the dimension line, or the coordinate value represented by the point marker.
  • the marked text must be a clear number, with or without unit information.
  • the coordinate label must be a set of numbers, and the text of the label can also be a set of calculations.
  • the steps of recognizing the graphic element step and generating the accurate pattern are entered.
  • the identification of the opponent's drawing can identify the entire hand drawing, or can identify the part of the drawing that needs to be revised. It can be understood that the user can also scan the hand-drawn paper-based medium hand drawing and then perform the step of identifying the graphic element.
  • At least one graphic element of the hand drawing is identified; then, the identification information corresponding to the graphic element is identified; and then an accurate pattern corresponding to the graphic element is generated according to the identification information.
  • Identifying at least one graphical element of the hand drawing including identifying graphics and identification information in the graphical element, or one of graphics and identification information.
  • Different components of the graphical elements will use different recognition methods.
  • the identification information corresponding to the graphic element is identified, and the identification information may include instruction mark information, graphic type information, graphic annotation information, and the like.
  • the graphic type information may be description information of the graphic type in the graphic element, such as: a point, a straight line, an arc, a curve, a surface, or the like, or a combination thereof. It can also be judged according to the labeling style of the graphic annotation information. For example, the coordinate label generally indicates the point, the dimension label generally indicates the line, the radius label or the radians label generally indicates the arc, and the area label generally represents one surface.
  • the single graphic covering canvas size in the hand drawing is smaller than the minimum range that the user can recognize, that is, the point is determined, and the end points, intersection points, and vertices of the line are also identified as being online.
  • Point A single graphic overlay canvas is linearly continuous and has a width that is much smaller than the length of the shape and is recognized as a line.
  • the size of the canvas covered by a certain image is larger than the minimum range that the user can recognize, and the coverage is a continuous distribution, which is recognized as a face, and the boundary whose cover is closed is recognized as a boundary line, and the overall content of the cover is filled.
  • a closed line enclosing can also be identified as a face, the closed line is the boundary line of the face, wherein the enclosed part is the face.
  • the first endpoint, the second endpoint, and at least one sample point between the first endpoint and the second endpoint are identified by the identified graphical element; the first endpoint, the second endpoint, and The sampling point identifies hand-drawn graphic information of the graphic element between the first end point and the second end point, and obtains the graphic type according to the hand-drawn graphic information.
  • the distance relationship between the sampling point and the first end point and the second end point connecting line may be determined by connecting the first end point and the second end point, and hand-drawn graphic information is obtained to determine between the first end point and the second end point.
  • Graphic type or,
  • the sampling point is identified, including the first end point, the second end, the center point, and the like, and the label length is used to identify the arc length, the radius, and the like of the label; or, the geometric method or the tool is used to identify the arc.
  • sampling points such as starting point, ending point, and multiple sampling points. If there is a curve composed of multiple arcs, the segments are identified by arcs. If it is a spline curve, each sample point is smoothly connected in turn, and is identified as a spline curve.
  • the first end point and the second end point may be identified and connected, and the length is (x), and a straight line perpendicular to the connecting line is made at the first point. Project the points on the original line on this line. Calculate the length (y) of the two farthest projection points. If the value is less than 0.05, it is recognized as a straight line. If the value is greater than 0.05, take the line point O corresponding to the farthest projection point. The intersection of the line and the plurality of grid lines is taken as a sampling point, and the point set A is composed in the order from the starting point to the O point, wherein there are ⁇ a1, a2, a3, ... ⁇ .
  • Each projection point of the set A is distanced to the first end point to form a set B of distances, wherein there are ⁇ b1, b2, b3, ... ⁇ . If the size of each element in the set B is arranged from small to large, the first end point in the judging process is changed to the second end point and judged once again. If the size of each element in the set B is arranged from small to large, it is judged to be an arc, and the point O and the first end point and the second end point are identified as arcs. If the size of each element in the set B is not completely arranged from small to large, it is judged to be a curve. The first endpoint and the second endpoint together with the sample points are identified as a curve.
  • the recognized type of graphics can also be identified by pre-rendering the graphics on the canvas, because the graphics drawn on the canvas in advance have clear data (it is understandable that explicit data of course contains this graphic type), if the drawn line Referring to the line drawn on the canvas in advance, the line is consistent with the type of the line on which the language is drawn on the canvas.
  • Graphic annotation information is an accurate representation of graphical elements. Its graphic features are similar to those commonly used by users, including: coordinate labels, dimension labels, angle labels, radius labels, arc length labels, and elevation labels. Its constituent elements include: marking lines, leads, and text. The difference in the constituent elements represents the difference in their type. The difference method is similar to the way people usually distinguish graphic annotations. For example, if the dimension text is a clear angle with a unit, the shape label information must be an angle label. If the label text is a clear label data with a unit, the shape label information must be a Dimensioning, if one end of the dimensioning lead points to a point and the other end points to a line that is almost coincident with the line, it represents a vertical distance from one point to one line. If the dimensioning lead does not coincide or be parallel to the line, it means that the other end points to a point on the line instead of the line, which is the point-to-point distance.
  • the annotation is composed of three intersecting but not closed segments, the segment intersecting the two is the dimension line, the other two are the leads, the intersection is the endpoint of the dimension line, and the dimension is the dimension Label or angular dimension.
  • the dimension line is judged as a line without a clear indication. If the dimension line is a straight line, it is a dimension. If the dimension line is an arc or a curve, it is an angular dimension. If the label is composed of a special elevation symbol and a number, it is marked as an elevation. If the label consists of a point and a lead, and the text is a set of numbers, it is the coordinate label.
  • the character identifying the information is identified. If the character contains numeric characters (that is, the label data), the size is judged. If the recognized characters contain clear unit information, such as degrees, millimeters, centimeters, meters, etc., it should be the actual size unit information; if there is no unit information in the recognized characters, it is judged whether it is a dimension; if so, the dimension line
  • the two endpoints are initially identified, and the actual distance (a) is calculated according to the scale of the hand drawing and/or the ratio set by the user; the labeled data to be recognized is assumed to be a value after adding a common unit such as millimeters, centimeters, meters, etc.
  • Judging the annotation function if the text in the annotation is a specific number (with or without unit information), the graphic annotation information. If there is no text or the position of the text in the label is a special symbol or code variable, the query is marked.
  • the pointing element should be near the pointing end of the lead. If the pointing end points to multiple elements, it should be It is the closest element to the contact point.
  • Query annotation is the instruction used to query the information in the drawing.
  • the difference between the other methods of marking (modifying, adding, deleting) is that the labeling text is empty or special symbol.
  • the effect is to return the value of the labeled pointing element in the meaning of the label to a specific target (a specific target refers to a variable, or may be a system console, etc.).
  • the query is performed. If the pointing end is not all inactive elements, the active element is first identified and generated, and when the active element becomes an inactive element, the query is performed.
  • the order of query annotations and other annotation styles in the actual recognition process is uncertain. However, if a driver annotation contains a query annotation and returns a target variable, the query annotation should be executed first, and the variable value returned by the query annotation is obtained. Identify other labels.
  • Graphical annotation information is a main method for inputting data elements, and its priority is high. It is convenient and fast to use. It is an innovative technical solution protected by this patent.
  • an accurate pattern corresponding to the graphic element is generated: according to the existing element and the graphic type, the effective component group is selected in the component group of the graphic type, and if there are multiple valid component groups, according to the priority
  • the level selects the optimal mode, or the user specifies the constituent feature group, and then the graphic element generates an accurate pattern according to the generation method corresponding to the selected constituent element group.
  • some graphic annotation information such as coordinate annotation, elevation annotation, etc.
  • the coordinate label must be marked with the default origin (0, 0) as the reference, and the elevation label is marked with the reference plane's elevation as a reference.
  • the geometric analysis method of the mathematical operation can be performed by the computer.
  • One of the methods is described below:
  • the method of analyzing the dimensioning First, determine the direction of the dimensioning. Generally speaking, if the dimensioning has a line pointing to one end, the direction of the dimensioning will be perpendicular to the direction of the line, and the quantity is dimensioned. Annotate the amount of data and the exact unit composition. Then, the element of the dimensioned reference end uses the mathematical trigonometric function method to calculate the basic feature set of the new point or line obtained by the vector.
  • Analytic generation method of angle labeling First, the vector size length (L) of the driving end is unchanged, and the direction angle is composed of the labeled data and the accurate unit (angle O). Then, the constituent element group consisting of L and the angle O and the intersection of the line pointed by the reference end and the line indicated by the driving end (point A), and the other end point of the new vector (B) is obtained according to the mathematical trigonometric function. , the line AB can replace the original drive end line.
  • Analytic method for elevation labeling Generally, the elevation label is used, which will involve three-dimensional coordinates.
  • the square can generally be interpreted as perpendicular to the direction of the canvas. It is only necessary to calculate the coordinates of the labeling element of the elevation label perpendicular to the canvas direction. There are coordinate values.
  • the method of obtaining the basic feature group according to the effective component group to generate the accurate pattern can also be performed by the geometric mapping method, but the general geometric mapping method is flexible and varied.
  • One of the methods is described below:
  • the grid and the original image identify the driving line, and the intersection of the lead and the dimension line pointing to the reference end is used as the base point. Keep the base point unchanged, and accurately cut or extend the length of the other end from the base point to the label length. Then, the lead is re-verted to the other end point, and the dimension line is moved parallel to the reference point or the point on the reference line, and the point or line of the drive end is projected onto the new lead. The resulting projection point or line is the point or line that is driven to replace the original line.
  • the mesh identifies the drive line, and finds the intersection (O) of the reference line and the drive line or their extension line, and sets it as a non-mesh point.
  • the cloned element of the reference line is centered on the O point, and the angle is rotated in the direction of the label to obtain a new reference line.
  • O the origin
  • measure the distance between each end of the drive line and O and intercept or extend the original size from the O point to the new reference line. Point the other pointers to the original drive line and rotate them to a new angle.
  • the new reference line that is intercepted or extended replaces the original drive line, and the meta drive line is deleted.
  • Coordinate labeling According to the label value, find the actual coordinate point, move the origin to the new position, delete the origin, and the new coordinate point can be out of the canvas.
  • Elevation Annotation Sets the plane of the pointing point to the label elevation and recalculates all elevations on the plane of the same pointing point, or all elevations based on this elevation.
  • Identifying the identification information of a graphical element is an effective way to accurately identify graphical elements and/or data elements: 1 Identifying the elements that are labeled (ie, related to the identifying information) on the inaccurate graphic of the hand-drawn graphical element (point and / Or line); 2 according to the identified elements, find one or more inactive elements as reference elements for the graphic object to be processed; 3 analyze and judge the style and text of the drawn graphic annotation information to determine the need ( 3-1) need to query, or (3-2) need to drive; 4 according to the requirements obtained in the above steps to process the drawings or data: (4-1) need to query to the specified location (variables and / or console and And/or other output; (4-2) constituting the identified element, the reference element, the graphic type information, and the graphic annotation information into a graphic element and/or a data element.
  • the annotation information will be queried or driven by points and / lines, for example: an existing orthogonal square, The side length is L, and the label now needs to move the square to the right point X to the right and Y to the left point.
  • method A mark its lower left vertex (marked feature point) and make relative coordinate labeling (X, Y);
  • method B can also mark its upper right corner vertex (labeled element) Point), the relative coordinate labeling (X+L, Y+L);
  • method C can also mark the lower side (the edge of the marked element), mark the relative distance with Y, and mark the right side (marked The edge of the feature), and the relative distance is marked X+L.
  • the above three methods (A, B, C) can be completed as required, and different annotation methods correspond to different labeled elements.
  • any annotation is relative to a fixed (inactive element) reference at this stage. When identifying this annotation, you must find it. This reference.
  • Graphic annotation information generally tells the recognition system to do query processing or need to drive processing (drive processing includes, increase , modify), the system will judge according to the label style, whether it is a query label, if the query is marked, the query processing is executed, and if the driver class is marked, the driver processing is executed.
  • the model can be a two-dimensional model or a three-dimensional model.
  • the drawing can be used to render a 2D or 3D model on a 2D plane using projection, perspective, profiling, animation, etc. This 2D plane is the drawing.
  • Drawings can be output to a variety of output devices (such as: various types of display screens, printers, etc.), and can be added with text descriptions and other information as needed.
  • the model being expressed is a two-dimensional model or other case, then the drawing is equivalent to the model, and the step of stakeouting the model from the exact pattern is equivalent to the step of generating the drawing.

Landscapes

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

Abstract

A method for generating a precise pattern according to a hand-drawn graph, comprising the following steps: S1: recognizing at least one graphic element of a hand-drawn graph; S2: recognizing identification information corresponding to the graphic element; and S3: generating a precise pattern corresponding to the graphic element according to the identification information. In the method, by means of recognizing identification information corresponding to a graphic element, it is realized that the graphic element on a hand-drawn graph is converted to generate a corresponding precise pattern, so that the time for a byte input apparatus, such as a keyboard, needing to be used in the prior art to input the graphic element is avoided. The method has advantages of being high in working efficiency, saving time costs, etc.

Description

根据手绘图生成精确图样的方法  Method for generating accurate patterns based on hand drawings 技术领域 Technical field
本发明涉及绘图处理方法,更具体地说,涉及一种根据手绘图生成精确图样的方法。  The present invention relates to a graphics processing method, and more particularly to a method of generating an accurate pattern based on a hand drawing.
背景技术Background technique
随着科技的发展,人们利用计算机进行绘图已经十分普遍,例如利用AutoCAD、中望CAD等矢量绘图系统进行建筑设计绘图、模具设计绘图、机械设计绘图等。利用这些矢量绘图系统给人们带来了很大的方便,不过这些绘图系统还是存在许多不足之处:这些绘图系统通常需要用户输入计算机可以处理的具体的图形要素要求,在绘图区域上面使用键盘等字节输入装置。With the development of science and technology, it is very common for people to use computer to draw. For example, using AutoCAD, Zhongwang CAD and other vector drawing systems for architectural design drawing, mold design drawing, mechanical design drawing and so on. The use of these vector drawing systems has brought great convenience to people, but these drawing systems still have many shortcomings: these drawing systems usually require the user to input the specific graphic element requirements that the computer can handle, and use the keyboard on the drawing area. Byte input device.
其实,手绘才是人类表达和思考图形的最原始和最基本的方式,现代使用计算机通过鼠标键盘的绘制矢量图纸,只是人类使用计算机时无奈的选择。手绘不适应现代计算机为基础的绘图工具的原因在于,人类徒手绘制是无法精确绘制图形,但计算机只能用处理精确的数据的方式来处理矢量图形。In fact, hand-painting is the most primitive and basic way for humans to express and think about graphics. Modern use of computers to draw vector paper through the mouse and keyboard is just a helpless choice when humans use computers. The reason why hand-drawn drawing tools that are not suitable for modern computers are drawn is that human hands-free drawing is impossible to draw graphics accurately, but computers can only process vector graphics by processing precise data.
从计算机图形上来说:对于人类用手绘,计算机从前一直是以位图图像的方式进行处理的,但用计算机处理矢量图纸早已成为大量工程设计、机械设计等多数行业的工具。From the computer graphics point of view: for human hand-drawn, the computer has always been processed as a bitmap image, but the use of computer processing vector paper has long been a tool for most industries such as engineering design, mechanical design.
发明内容Summary of the invention
本发明要解决的技术问题在于,提供一种可根据手绘图直接生成精确图样的方法。The technical problem to be solved by the present invention is to provide a method for directly generating an accurate pattern according to a hand drawing.
本发明解决其技术问题所采用的技术方案是:构造一种根据手绘图生成精确图样的方法,包括以下步骤:The technical solution adopted by the present invention to solve the technical problem thereof is: constructing a method for generating an accurate pattern according to a hand drawing, comprising the following steps:
S1:识别手绘图的至少一个图形元素;S1: identifying at least one graphic element of the hand drawing;
S2:识别与所述图形元素中对应的标识信息;S2: identifying identification information corresponding to the graphic element;
S3:根据所述标识信息生成与所述图形元素对应的精确图样。S3: Generate an accurate pattern corresponding to the graphic element according to the identification information.
在本发明的根据手绘图生成精确图样的方法中,所述标识信息包括指令标记信息;在所述步骤S3中,根据所述指令标记信息处理所述图形元素。In the method of generating an accurate pattern according to the hand drawing of the present invention, the identification information includes instruction flag information; in the step S3, the graphic element is processed according to the instruction flag information.
在本发明的根据手绘图生成精确图样的方法中,所述指令标记信息包括删除指令、修改指令、增加指令、查询指令中的一种或多种。In the method for generating an accurate pattern according to the hand drawing of the present invention, the instruction mark information includes one or more of a delete instruction, a modification instruction, an addition instruction, and a query instruction.
在本发明的根据手绘图生成精确图样的方法中,所述标识信息包括图形类型信息、以及图形标注信息;In the method for generating an accurate pattern according to the hand drawing of the present invention, the identification information includes graphic type information and graphic annotation information;
所述步骤S3包括:The step S3 includes:
S3-1:判断所述标识信息中是否有所述图形类型信息,有则执行步骤S3-2,否则执行步骤S3-3;S3-1: determining whether the graphic type information is included in the identification information, if yes, executing step S3-2, otherwise performing step S3-3;
S3-2:根据所述图形类型信息,判断图形类型,并生成该类型图形的标准图形; S3-2: determining a graphic type according to the graphic type information, and generating a standard graphic of the graphic of the type;
S3-3:根据所述图形元素判断与其对应的图形类型,并生成该类型图形的标准图形。S3-3: Determine a graphic type corresponding to the graphic element according to the graphic element, and generate a standard graphic of the graphic of the type.
在本发明的根据手绘图生成精确图样的方法中,所述步骤S3-3包括以下步骤:In the method for generating an accurate pattern according to the hand drawing of the present invention, the step S3-3 includes the following steps:
S3-3-1:识别的所述图形元素中的第一端点、第二端点、以及在所述第一端点和第二端点之间的至少一个采样点;S3-3-1: a first endpoint, a second endpoint, and at least one sampling point between the first endpoint and the second endpoint in the identified graphical element;
S3-3-2:根据所述第一端点、第二端点和采样点,识别所述第一端点与所述第二端点之间的所述图形元素的手绘图形信息,并根据所述手绘图形信息得到所述图形类型。S3-3-2: identifying, according to the first endpoint, the second endpoint, and the sampling point, hand-drawn graphic information of the graphic element between the first endpoint and the second endpoint, and according to the The hand drawn graphic information gets the graphic type.
在本发明的根据手绘图生成精确图样的方法中,在所述步骤S3-3-2中,连接所述第一端点和第二端点,判断所述采样点与所述第一端点和第二端点连接线之间的距离关系,得到所述手绘图形信息,来确定所述第一端点和第二端点之间的所述图形类型;或者,In the method for generating an accurate pattern according to the hand drawing of the present invention, in the step S3-3-2, connecting the first end point and the second end point, determining the sampling point and the first end point a distance relationship between the second endpoint connection lines, the hand-drawn graphics information is obtained to determine the type of the graphic between the first endpoint and the second endpoint; or
以所述第一端点为起点,连续计算下一所述采样点的函数关系,直到所述第二端点,根据得出的函数关系,得到所述手绘图形信息,来确定所述第一端点和第二端点之间的所述图形类型。 Taking the first endpoint as a starting point, continuously calculating a function relationship of the next sampling point until the second endpoint, according to the obtained function relationship, obtaining the hand-drawn graphic information to determine the first end The type of graphics between the point and the second endpoint.
在本发明的根据手绘图生成精确图样的方法中,该方法还包括画布设置步骤:In the method for generating an accurate pattern according to the hand drawing of the present invention, the method further includes a canvas setting step:
设定绘图区域,用于供使用者通过输入装置在所述绘图区域中进行绘制所述手绘图。A drawing area is set for the user to draw the hand drawing in the drawing area through an input device.
在本发明的根据手绘图生成精确图样的方法中,通过识别所述输入装置在所述绘图区域中的起始输入点以及输入轨迹过程,判断识别得到所述第一端点、第二端点和采样点。In the method for generating an accurate pattern according to the hand drawing of the present invention, by identifying the initial input point of the input device in the drawing area and the input trajectory process, determining that the first end point, the second end point, and Sampling point.
在本发明的根据手绘图生成精确图样的方法中,所述步骤S3还包括:In the method for generating an accurate pattern according to the hand drawing of the present invention, the step S3 further includes:
S3-4:判断所述标识信息中是否有图形标注信息,有则执行步骤S3-5,否则执行步骤S3-6;S3-4: determining whether there is graphic annotation information in the identification information, if yes, executing step S3-5, otherwise performing step S3-6;
S3-5:根据所述图形标注信息,放样步骤S3-2或S3-3所得到的所述标准图形,生成所述精确图样;S3-5: The standard pattern obtained by the step S3-2 or S3-3 is staked according to the graphic annotation information, and the accurate pattern is generated;
S3-6:根据所述图形元素在绘图区域中笔触覆盖画布的位置及形状进行模糊计算,放样步骤S3-2或S3-3所得到的所述标准图形,生成所述精确图样。S3-6: Perform fuzzy calculation according to the position and shape of the brush cover canvas in the drawing area according to the graphic element, and stake out the standard graphic obtained in step S3-2 or S3-3 to generate the accurate pattern.
在本发明的根据手绘图生成精确图样的方法中,所述步骤S3-5包括以下步骤:In the method for generating an accurate pattern according to the hand drawing of the present invention, the step S3-5 includes the following steps:
S3-5-1:判断所述图形标注信息是否包含单位信息,有则执行步骤S3-5-2,否则执行步骤S3-5-3;S3-5-1: determining whether the graphic annotation information includes unit information, if yes, executing step S3-5-2, otherwise performing step S3-5-3;
S3-5-2:根据所述图形标注信息中的标注数据以及单位信息,放样生成所述精确图样;S3-5-2: generating the accurate pattern according to the annotation data and the unit information in the graphic annotation information;
S3-5-3:根据所述图形标注信息中的标注数据,结合所述手绘图的比例、和/或用户设定比例、和/或常用单位,确定单位信息,并根据所述标注数据和单位信息放样生成所述精确图样。S3-5-3: determining unit information according to the annotation data in the graphic annotation information, combining the scale of the hand drawing, and/or the user setting ratio, and/or a common unit, and according to the annotation data and The unit information is staked to generate the exact pattern.
在本发明的根据手绘图生成精确图样的方法中,在所述步骤S1、S2中,根据识别的所述图形元素,得到图形要素和/或数据要素;In the method for generating an accurate pattern according to the hand drawing of the present invention, in the steps S1 and S2, graphic elements and/or data elements are obtained according to the identified graphic elements;
在所述步骤S3中,判断所述图形要素和/或数据要素,是否得到有效构成要素组;若得到有效构成要素组则生成基本要素组,并根据获得的所述基本要素组数据生成所述精确图样。In the step S3, it is determined whether the graphic element and/or the data element obtains a valid component group; if a valid component group is obtained, a basic element group is generated, and the basic element group data is generated according to the obtained basic element group data. Precise pattern.
在本发明的根据手绘图生成精确图样的方法中,在所述步骤S1、S2中,识别与所述标识信息相关的元素;In the method for generating an accurate pattern according to the hand drawing of the present invention, in the steps S1, S2, identifying an element related to the identification information;
根据所识别的元素来确定参照元素;Determining a reference element based on the identified element;
识别所述标识信息中的图形类型信息、以及图形标注信息;Identifying graphic type information and graphic annotation information in the identification information;
所识别的元素、参照元素、所述图形类型信息、以及图形标注信息构成所述图形要素和/或数据要素。The identified element, the reference element, the graphic type information, and the graphic annotation information constitute the graphic element and/or the data element.
实施本发明具有以下有益效果:本发明通过识别图形元素的对应标识信息,来实现将手绘图上的图形元素进行转换,生成对应的精确图样,从而避免了现有技术需要另外使用键盘等字节输入工具重新输入绘制精确图样的时间,具有工作效率高、节约时间成本等优点,并更符合人表达和思考图形的方式。The present invention has the following beneficial effects: the present invention realizes converting the graphic elements on the hand drawing to generate corresponding accurate patterns by recognizing the corresponding identification information of the graphic elements, thereby avoiding the need to additionally use the keyboard and the like in the prior art. The input tool re-enters the time to draw the accurate pattern, which has the advantages of high work efficiency, time saving cost, and more in line with the way people express and think about graphics.
附图说明DRAWINGS
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是本发明根据手绘图生成精确图样的方法的一个实施例的流程示意图;1 is a flow chart showing an embodiment of a method for generating an accurate pattern according to a hand drawing according to the present invention;
图2是本发明根据手绘图生成精确图样的方法中的精确图样生成步骤的流程示意图。2 is a flow chart showing the steps of generating an accurate pattern in the method for generating an accurate pattern according to the hand drawing of the present invention.
具体实施方式detailed description
如图1所示,是本发明根据手绘图生成精确图样的方法的一个实施例的流程图,通过识别手绘图的至少一个图形元素(步骤S1);然后,识别与图形元素中对应的标识信息(步骤S2);然后,根据标识信息生成与图形元素对应的精确图样(步骤S3)。通过该方法,可以对原有图纸选定范围内的内容进行增、删、改、查等操作,以达到方便修改的目的;也可以根据全新绘制的手绘图生成全新的精确图样,再生成标准模型,从而表现为标准图纸。As shown in FIG. 1, it is a flowchart of an embodiment of a method for generating an accurate pattern according to the present invention, by identifying at least one graphic element of a hand drawing (step S1); and then identifying corresponding identification information in the graphic element. (Step S2); Then, an accurate pattern corresponding to the graphic element is generated based on the identification information (step S3). Through this method, the contents of the selected range of the original drawing can be added, deleted, changed, checked, etc., so as to facilitate the purpose of modification; or a new accurate pattern can be generated according to the newly drawn hand drawing, and the standard is generated. The model is thus represented as a standard drawing.
其中,图形元素是用来形象表达的手绘图形(点、线、面中的一个或多个组合)的元素,可以包括图形和/或关于这个图形的一个或多个标识信息。比如:图形元素中含有三部分:(1)手绘的一条不精确的线(图形),(2)这条线(图形)的一个长度尺寸标注3m(标识信息),(3)这条线其中一个端点坐标(标识信息),以上三部分中(1)为图形、(2)和(3)为标识信息,它们可以组合为一个图形元素;若只有以上的(1)也可以作为一个图形元素,虽然不精确,但可以用其他方法将其识别;若只有(2)和(3),也可以作为一个图形元素,只需要说明其代表一条直线,也可以被正确识别;若只有(2),虽然也可以作为一个图形元素,表达是一条3m长的线,但其线的精确位置需要通过其他方法确定;若只有(3)作为一个图形元素,只有一个坐标标识信息,就只能够精确的定位一个点的位置,而不是一条精确的线。Wherein, the graphical element is an element of the hand-drawn graphic (one or more combinations of points, lines, faces) used for avatar, and may include graphics and/or one or more identification information about the graphic. For example, the graphic element contains three parts: (1) an inaccurate line (graphic) of hand-drawn, (2) a length dimension of the line (graphic) of 3m (identification information), and (3) the line. An endpoint coordinate (identification information), in the above three parts, (1) is a graphic, (2) and (3) are identification information, which can be combined into one graphic element; if only the above (1) can also be used as a graphic element Although it is not precise, it can be identified by other methods; if only (2) and (3), it can also be used as a graphic element, only need to indicate that it represents a straight line, and can also be correctly identified; if only (2) Although it can also be used as a graphic element, the expression is a 3m long line, but the exact position of the line needs to be determined by other methods; if only (3) as a graphic element, only one coordinate identification information, it can only be accurate. Position the position of a point instead of a precise line.
在生成精确图样时,首先判断标识信息是否包括指令标记信息;是则根据指令标记信息处理图形元素。指令标记信息包括删除指令、修改指令、增加指令、查询指令中的一种或多种。When generating the accurate pattern, it is first determined whether the identification information includes the instruction mark information; if so, the graphic element is processed according to the instruction mark information. The instruction tag information includes one or more of a delete instruction, a modification instruction, an addition instruction, and a query instruction.
同时,如图2所示,还可以判断标识信息中是否有图形类型信息(步骤S3-1),有则执行步骤S3-2,否则执行步骤S3-3;Meanwhile, as shown in FIG. 2, it can also be determined whether there is graphics type information in the identification information (step S3-1), if yes, step S3-2 is performed, otherwise step S3-3 is performed;
S3-2:根据图形类型信息,判断图形类型,并生成该类型图形的标准图形; S3-2: determining a graphic type according to the graphic type information, and generating a standard graphic of the graphic of the type;
S3-3:根据图形元素的图形判断与其对应的图形类型,并生成该类型图形的标准图形。识别的图形元素中的第一端点、第二端点、以及在第一端点和第二端点之间的至少一个采样点;根据第一端点、第二端点和采样点,识别第一端点与第二端点之间的图形元素的手绘图形信息,并根据手绘图形信息得到图形类型。其中,并生成该类型图形的标准图形可以通过各种几何方法生成,例如,通过直线绘制、角度绘制、各种几何图形绘制等来生成。S3-3: Judging the corresponding graphic type according to the graphic of the graphic element, and generating a standard graphic of the graphic of the type. a first endpoint in the identified graphical element, a second endpoint, and at least one sample point between the first endpoint and the second endpoint; identifying the first end based on the first endpoint, the second endpoint, and the sampling point The hand-drawn graphic information of the graphic element between the point and the second end point, and the graphic type is obtained according to the hand-drawn graphic information. Among them, the standard graphics that generate the type of graphics can be generated by various geometric methods, for example, by straight line drawing, angle drawing, various geometric drawing, and the like.
可以通过识别输入装置在绘图区域中的起始输入点以及输入轨迹过程,判断识别得到第一端点、第二端点和采样点。The identification of the first endpoint, the second endpoint, and the sampling point can be determined by identifying the initial input point of the input device in the drawing area and the input trajectory process.
然后,S3-4:判断标识信息中是否有图形标注信息,有则执行步骤S3-5,否则执行步骤S3-6;Then, S3-4: determining whether there is graphic annotation information in the identification information, if yes, executing step S3-5, otherwise performing step S3-6;
S3-5:根据图形标注信息,放样步骤S3-2或S3-3所得到的图形,生成精确图样;S3-5: according to the graphic annotation information, stake out the graphics obtained in step S3-2 or S3-3 to generate an accurate pattern;
S3-6:根据图形元素在绘图区域中笔触覆盖画布的位置及形状进行模糊计算,放样步骤S3-2或S3-3所得到的图形,生成精确图样。S3-6: Perform fuzzy calculation according to the position and shape of the brush covering the canvas in the drawing area, and stake out the image obtained in step S3-2 or S3-3 to generate an accurate pattern.
在本实施例中,该方法包括设置画布步骤、绘制图形元素步骤、识别图形元素步骤、生成精确图样步骤,可以理解的,上述步骤可以根据需要进行删减或者顺序调整。In this embodiment, the method includes a step of setting a canvas, a step of drawing a graphic element, a step of identifying a graphic element, and a step of generating an accurate pattern. It can be understood that the above steps can be deleted or sequentially adjusted as needed.
在设置画布步骤中,相当于设定一块用来绘图的区域,以供使用者进行绘制手绘图。使用者可以通过手绘图的各种输入装置进行手绘,形成需要识别生成精确图样的手绘图。In the step of setting the canvas, it is equivalent to setting an area for drawing, for the user to draw the hand drawing. The user can perform hand-drawing through various input devices of the hand drawing to form a hand drawing that needs to identify and generate an accurate pattern.
其中,在本实施例中,该手绘图可以是使用鼠标、键盘;电子手写板类、或带有触摸屏幕的手机、Pad设备;扫描仪或照相机类图像采集设备等设备作为输入设备,将绘制的点、线、面等图形或图形的组合,输入计算机进行处理的图像和信息。当手绘图使用纸张类介质绘制再使用扫描仪或照相机类图像采集设备输入计算机时,可以认为其是位图图像;当使用电子手写板类、或带有触摸屏幕的手机、Pad设备输入时,输入的信息可能不仅仅是位图图像,可能还具有手绘的顺序,起点、终点、关键点的坐标等信息。当使用鼠标、键盘输入时,手绘图还具输入的其他信息。手绘图都是不精确的,在现有水平下,人很难徒手绘制出一个尺寸位置都精确的图形。In this embodiment, the hand drawing may be using a mouse, a keyboard, an electronic tablet, or a mobile phone with a touch screen, a Pad device, a scanner or a camera image capturing device, and the like as an input device, and the drawing may be drawn. A combination of graphs or graphics such as dots, lines, and faces, inputting images and information processed by a computer. When the hand drawing is drawn using paper-based media and then input to the computer using a scanner or camera-type image capture device, it can be considered as a bitmap image; when using an electronic tablet, or a mobile phone with a touch screen, or a Pad device, The information entered may be more than just a bitmap image, and may also have hand-drawn sequences, starting point, end point, coordinates of key points, and the like. When using the mouse or keyboard input, the hand drawing also has additional information entered. The hand drawings are all inaccurate. At the current level, it is difficult for people to draw a figure with precise dimensions.
首先,设定画布尺寸,画布尺寸就是实际可以用于手绘绘制的范围。比如一张纸的尺寸,屏幕尺寸等。确定画布范围,选择需要增加、删除、修改、查询模型或模型局部,模型或模型局部以图纸的方式呈现在二维显示装置上或输出在纸张类介质上。First, set the canvas size, which is the range that can actually be used for hand-drawn drawing. Such as the size of a piece of paper, the size of the screen, and so on. Determine the canvas range, select the need to add, delete, modify, query the model or model part, the model or model part is presented on the 2D display device in the form of drawings or output on the paper type media.
然后,设置画布的原点。使用者可以通过输入装置设定指定点为原点。当使用者未指定时,原点的横向坐标设置为选择画布范围最左边点的横向坐标,纵向坐标设置为选择范围最下方点的纵向坐标。Then, set the origin of the canvas. The user can set the specified point as the origin through the input device. When the user does not specify, the horizontal coordinate of the origin is set to select the horizontal coordinate of the leftmost point of the canvas range, and the vertical coordinate is set to the vertical coordinate of the lowest point of the selection range.
然后,设定画布方向。使用者可以通过输入装置设定指定方向作为画布的方向,从而以便于后续驱动图形元素的参照。可以理解的,当利用本方法修改原图时,也可以直接调用原图的指定方向。Then, set the canvas direction. The user can set the specified direction as the direction of the canvas through the input device, so as to facilitate the subsequent reference of the driving graphic element. It can be understood that when the original image is modified by the method, the specified direction of the original image can also be directly called.
然后,设定画布比例。使用者可以通过输入装置设定比例;也可以使用比例的基准图形元素设置比例;在有原图的情况下,也可以使用在画布中绘制原图所使用的比例。Then, set the canvas ratio. The user can set the scale by inputting the device; you can also set the scale using the scaled reference graphic element; in the case of the original image, you can also use the scale used to draw the original image in the canvas.
其中,比例的基准图形元素可以为:用于设置画布比例时,图中有多个图形元素,只取其中一个作为计算设置比例的依据,这个图形元素就是比例的基准图形元素。比例的基准图形元素可以是手绘图中用于生成精确图样的图形元素,也可以是专门只用于设置比例的图形元素。The reference graphic element of the scale may be: when setting the canvas scale, there are multiple graphic elements in the figure, and only one of them is used as a basis for calculating the set proportion, and the graphic element is the reference graphic element of the scale. The scaled reference graphic element can be a graphic element used to generate an accurate pattern in a hand drawing, or a graphic element specifically used to set a scale.
若此时绘制的是一张没有原图的新图,新图并没有设置比例,这里提供一种使用手绘图形元素设置精确比例的方法:(1)若设置了比例的基准图形元素,则以设置的比例的基准图形元素进行计算,若未设置比例的基准图形元素,则在手绘图所有的图形元素中找覆盖画布范围最大的,且图形元素中有完整的图形标注信息的作为比例的基准图形元素;(2)依照比例的基准图形元素中图形标注信息所指向图形所代表的实际大小;与的标注文字含义(标注数据或带有单位的标注数据)的值进行比值运算;(3)若预设了常用比例值库,则将上一步得到的比例值与常用比例值库中的比例值进行对比,一般取接近并小于上一步得到的比例值的常用比例值,若没有设置常用比例值,则直接进入下一步;(4)将上一步取得的比例值设置为此画布的比例。(1)至(4)步骤所涉及的方法,可以单独作为一套技术方案。If you are drawing a new image without the original image, the new image does not have a scale. Here is a way to set the exact scale using the hand-drawn graphic elements: (1) If the scaled reference graphic element is set, The scaled reference graphic element is calculated. If the scaled reference graphic element is not set, the scale of the covered canvas is found in all the graphic elements of the hand drawing, and the complete graphic annotation information in the graphic element is used as the reference of the scale. Graphical elements; (2) the actual size represented by the graphic pointed to by the graphic annotation information in the scaled reference graphic element; the ratio of the meaning of the labeled text (labeled data or labeled data with units); (3) If the common scale value library is preset, the scale value obtained in the previous step is compared with the scale value in the common scale value library, generally taking a common scale value close to and smaller than the scale value obtained in the previous step, if the common ratio is not set. Value, go directly to the next step; (4) set the scale value obtained in the previous step to the scale of this canvas. The methods involved in steps (1) through (4) can be used as a set of technical solutions.
然后,使用者可以设定不同属性参数对应不同的图形和不同的标识信息,不同属性参数可以包括颜色、图层、内部的属性参数等,从而方便手绘图形。Then, the user can set different attribute parameters corresponding to different graphics and different identification information, and different attribute parameters may include colors, layers, internal attribute parameters, etc., thereby facilitating hand-drawn graphics.
同时,设置图形元素对应的精确图样,以及精确图样放样成为模型,和模型生成图纸的方法。比如:此时设置红色(不同颜色为参数)的线为一个建筑构件墙的中线线,此墙的厚度是200mm,高度是3000mm,红色的线对的精确图样将以各向两边偏移100mm,然后封口(精确图样)拉伸3000mm的立方体(模型)的方式建立模型,再以建筑平面图的方式输出这个墙构件的平面;同时设置黑色(不同颜色为参数)的点作为建筑构件中圆形横截面,且半径为200mm的柱子的圆心,其柱子的高度是3000mm,生成柱子时,则由识别后的黑色点为圆心200mm为半径的圆(精确图样)再拉伸高度3000mm的圆柱体(模型)。At the same time, set the exact pattern corresponding to the graphic elements, as well as the exact pattern lofting to become the model, and the method of the model to generate the drawing. For example, the line with red (different color is parameter) is the center line of a building component wall. The thickness of this wall is 200mm and the height is 3000mm. The exact pattern of the red pair will be offset by 100mm on both sides. Then the seal (precision pattern) stretches the cube (model) of 3000mm to build the model, and then outputs the plane of the wall member in the form of a building plan; at the same time, set the point of black (different colors as parameters) as the circular cross in the building component. The center of the column with a cross section of 200 mm and the height of the column is 3000 mm. When the column is generated, the cylinder with the height of 3000 mm is retracted from the circle with the black point of the circle of 200 mm (accurate pattern). ).
为了能够布置一张适于手绘的画布,可以预先在画布上绘制一些让人容易辨别、并且用于定位手绘图的图形。这些图形可以在画布上预先布置一些定位点、线、面,当人在画布上手绘时,只需要说明手绘图形对于这些定位点、线、面的相对位置关系,系统便会根据坐标几何原理自动计算出手绘的图形元素需要表达的矢量图形信息。这些用于识别和定位的图形包括:原图形和网格或者自定义的定位图形。In order to be able to lay out a canvas suitable for hand-drawing, it is possible to draw on the canvas some graphics that are easily discernible and used to position the hand-drawn images. These graphics can pre-arrange some positioning points, lines and faces on the canvas. When people draw on the canvas, they only need to explain the relative positional relationship of the hand-drawn graphics to these positioning points, lines and faces. The system will automatically follow the coordinate geometry principle. Calculate the vector graphics information that the hand-drawn graphic elements need to express. These graphics for identification and positioning include: original graphics and meshes or custom positioning graphics.
在画布中绘制网格:第一步,确定网格实际间距,若定义实际间距,则以定义实际间距确定。若无定义实际间距,根据图形比例确定网格实际间距,实际间距是一个网格实际间距代表的实际尺寸。每种比例将推断这个比例绘制图形的常用模数值。推断方法比如,在1:100至1:500之间,将绘制的是一个建筑的平面图,中国的主要模数有100mm,300mm等。若比例小于1:500,则绘制的是总平面规划图,规划所用模数一般是以1m的整倍数或1.5米的整倍数。由此可见,比例代表的网格实际间距可能是:大于5:1,代表1mm。小于5:1大于1:100,代表10mm或20mm或50mm。小于1:100大于1:500 ,代表300mm或100mm的整数倍,小于1:500,代表1000mm或1500mm或3000mm。第二步,确定网格间距,按网格间距,一般来说参考网格间距的绘制尺寸在10mm-3mm之间。呈现在画布上的网格,一般以人视觉可识别的大小为宜。Draw a grid in the canvas: The first step is to determine the actual spacing of the grid. If the actual spacing is defined, it is determined by defining the actual spacing. If the actual spacing is not defined, the actual spacing of the grid is determined according to the scale of the graph. The actual spacing is the actual size represented by the actual spacing of the grid. Each scale will infer the common modulus values for this scale drawing graph. Inferred methods, for example, between 1:100 and 1:500, will be drawn a plan of a building, China's main modulus is 100mm, 300mm and so on. If the ratio is less than 1:500, the general plan plan is drawn. The modulus used in the plan is generally an integral multiple of 1 m or an integral multiple of 1.5 meters. It can be seen that the actual spacing of the grid represented by the scale may be: greater than 5:1, representing 1 mm. Less than 5:1 is greater than 1:100, representing 10mm or 20mm or 50mm. Less than 1:100 is greater than 1:500 , representing an integer multiple of 300mm or 100mm, less than 1:500, representing 1000mm or 1500mm or 3000mm. In the second step, the grid spacing is determined, and the grid spacing is generally between 10 mm and 3 mm. The grid presented on the canvas is generally sized to be recognizable by human vision.
若需要在画布上绘制原图形:选择需要处理的模型或模型局部,需要预先设置好在模型生成图纸的样式,包括线型、颜色、图层等。If you need to draw the original drawing on the canvas: select the model or model part that needs to be processed, you need to preset the style of the model to generate the drawing, including line type, color, layer and so on.
为了绘制的方便,优选方案是:按照对应关系,将原模型用对应的生成图纸的方法,对应也进行同样对应的输出。比如,墙在平面中以粗实线矩形的形式显示在平面图中,红色的线代表墙的中心线,虽然原图中没有墙的中心线,但在画布中绘制原图时,依然需要将中心线计算出来,并以同样的红色绘制在画布上。这只是为了方便画图而做的设置,如果无需对应显示,也就无需对应输出了。For the convenience of drawing, a preferred solution is to use the corresponding method for generating the drawing according to the correspondence relationship, and correspondingly output the same correspondingly. For example, the wall is displayed in the plan as a thick solid rectangle in the plan view, and the red line represents the center line of the wall. Although there is no center line of the wall in the original image, the center is still needed when drawing the original image in the canvas. The line is calculated and drawn on the canvas in the same red color. This is just a setting for the convenience of drawing. If there is no need to display it, there is no need to output it.
绘制网格,确定网格原点,若指定了网格原点,则以指定点为原点,若没有指定,则以先前确定的画布原点为原点。Draw a grid to determine the grid origin. If the grid origin is specified, the specified point is used as the origin. If not specified, the previously determined canvas origin is used as the origin.
绘制横竖网格,由网格原点,分别向画布横向和纵向绘制贯穿画布的网格。Draw a horizontal and vertical grid, from the grid origin, to the canvas horizontally and vertically to the canvas across the canvas.
在完成上述设置画布步骤后,使用者可以通过使用输入装置,在该画布上执行绘制图形元素步骤,从而形成手绘图。当然,设置画布步骤并不是必须的,画布的设置内容可以为标准格式模板直接调用,画布设置的的时机也可以再绘制完毕手绘图之后。。After the above-described setting canvasing step is completed, the user can perform a step of drawing a graphic element on the canvas by using an input device, thereby forming a hand drawing. Of course, setting the canvas step is not necessary. The setting content of the canvas can be directly called for the standard format template. The timing of the canvas setting can also be drawn after the drawing is completed. .
该绘制图形步骤可以包括绘制图形元素的图形、绘制图形元素的标识信息等。绘制图形元素应当准照以下原则:(1)所有图形元素都应当带有预设的参数,以供识别时调用;(2)图形元素的位置和形状的描述都应当满足其几何要素中的其中一个构成要素组;(3)有效构成要素组中的每个要素值都必须有一种有效的输入方法,否则这个图形元素就将无法被识别。The drawing of the graphic steps may include drawing a graphic of the graphic element, drawing identification information of the graphic element, and the like. Drawing graphic elements should be based on the following principles: (1) All graphic elements should have preset parameters for recall when they are recognized; (2) the position and shape description of the graphic elements should satisfy the geometric elements. A component group; (3) Each feature value in the valid component group must have a valid input method, otherwise the graphic element will not be recognized.
以上原则(3)所述的输入方法是指:(1)使用键盘等字节输入装置直接输入要素;(2)使用图形标注信息输入要素;(3)使用网格或原图形或自定义定位图形输入要素;(4)使用设备反馈的手绘触点的坐标,再经过计算得出的要素。在以上输入方法的选择方式上具有一定的优先级,一般来说(1)>(2)>(3)>(4),一个要素若由多种方式输入,则以优先级大的方式输入的要素为准。可以理解的是,也可以由以上若干种输入方法进行组合的输入方法,其优先级以则与其有效构成要素组中的所有要素的输入方法有关。比如,在A点是网格上一点,现在由A点向左上方45度3m处确定一点B,其角度使用了图形标注信息的角度标注方法输入即(2),其3m使用了触点反馈的方法输入即(4),因此其点B的作为一个单独的图形要素的优先级就与以上两种输入方法的优先级相关,不同的工作方式可以计算不同的优先级。确定要素的优先级的意义在于,当图形获得的各种要素,可以组成多个有效构成要素组,而这些有效的构成要素组所得到的基本要素组不一定相同或由一定的误差时,这时,可以通过优先级判断,采用哪一个有效的构成要素组。The input method described in the above principle (3) means: (1) directly inputting elements using a byte input device such as a keyboard; (2) inputting elements using graphic annotation information; (3) using a grid or original graphics or custom positioning Graphical input elements; (4) using the coordinates of the hand-drawn contacts fed back by the device, and then calculating the calculated features. There is a certain priority in the selection method of the above input method. Generally speaking, (1)>(2)>(3)>(4), if one element is input by multiple modes, it is input with a high priority. The elements are subject to change. It can be understood that the input method can also be combined by the above several input methods, and the priority is related to the input method of all the elements in the effective constituent element group. For example, at point A is a point on the grid, and now point B is determined from point A to 45 degrees 3m to the upper left, and the angle is entered using the angle annotation method of the graphic annotation information (2), and the contact feedback is used for 3m. The method input is (4), so the priority of point B as a separate graphic element is related to the priority of the above two input methods, and different working modes can calculate different priorities. The significance of determining the priority of an element is that when the various elements obtained by the graphic can be composed of a plurality of effective constituent elements, and the basic element groups obtained by the effective constituent elements are not necessarily the same or have a certain error, this When it is judged by priority, which valid component group is adopted.
可以理解的,要素是对于一个图形进行描述的元素。比如:一个平面上的点由X、Y两个坐标进行描述,X、Y两个坐标都是这个点的要素;一段线段,其图形要素是两个端点(A和B),或两个端点的四个坐标(XA、YA和XB、YB)。一个图形本身就可以作为另一个图形的图形要素。As can be appreciated, an element is an element that describes a graphic. For example, a point on a plane is described by two coordinates: X and Y. The two coordinates of X and Y are the elements of this point; a segment of a line whose graphic elements are two endpoints (A and B), or two endpoints. Four coordinates (XA, YA and XB, YB). A graphic itself can be used as a graphic element of another graphic.
图形要素和数据要素可以为描述一个图形的要素,需要在计算机内部进行处理,就必须将要素进行数据化,数据要素是图形要素的一种数据表达形式,比如:一段线段,其图形要素是两个端点(A和B),或其数据要素是两个端点的四个坐标(XA、YA和XB、YB),再扩展我们还可以理解,线段AB的要素由图形要素A和数据要素XB、YB组成。通过识别图形元素,得到与图形元素相对应的图形要素和/或数据要素。Graphical elements and data elements can be elements that describe a graphic. To be processed inside the computer, the elements must be digitized. The data elements are a form of data representation of the graphic elements, such as: a segment of a line, the graphic elements are two The endpoints (A and B), or their data elements are the four coordinates of the two endpoints (XA, YA, and XB, YB). It can be further understood that the elements of the line segment AB are composed of the graphic element A and the data element XB, YB composition. By identifying the graphical elements, graphical elements and/or data elements corresponding to the graphical elements are obtained.
基本要素组可以为计算机用于处理一个图形的最原始的数据要素组成的组,只需要有这个组里所有的要素值,这个图形就可以进行处理了。比如计算机需要处理一个点,一般情况,计算机处理的是这个点的X、Y两个坐标;计算机处理一条线段,计算机处理的是这个线段分别两个端点的四个坐标(XA、YA和XB、YB);也有特殊情况,若输入给计算机的并不是这四个坐标,而是其中一个坐标(XA、YA)和一个向量(角度O和长度L),这时计算机会由输入的这四个要素,通过三角函数的计算,计算出XB和YB,因为(XA、YA和XB、YB)是计算机真正处理的数据要素(基本要素组)。当然,根据计算机程序的不同,基本要素组也可能不同,根据用途不同有些程序可能会使用向量、有些会使用三维坐标等。The basic feature group can be a group of the most primitive data elements that the computer uses to process a graph. All the feature values in the group need to be processed, and the graph can be processed. For example, the computer needs to process a point. In general, the computer processes the X and Y coordinates of the point; the computer processes a line segment, and the computer processes the four coordinates of the two endpoints of the line segment (XA, YA, and XB, YB); There are also special cases, if the four coordinates are input to the computer, but one of the coordinates (XA, YA) and one vector (angle O and length L), then the computer will be input by the four The elements, through the calculation of the trigonometric function, calculate XB and YB, because (XA, YA, and XB, YB) are the data elements (basic feature groups) that the computer actually processes. Of course, depending on the computer program, the basic feature groups may be different, depending on the application, some programs may use vectors, some may use three-dimensional coordinates, and so on.
构成要素组可以为用于计算机处理不再借助其他要素便可以得出一个图形的基本要素组的一组要素,构成要素组可能不是基本要素组,但只通过构成要素组中的要素再经过数学计算,完全可以得出基本要素组。构成要素组中当然可以直接是基本要素组,但当基本要素组缺乏时,完全可以使用其他要素从而得出基本要素组。比如一个圆形,可以由(a)圆心和半径确定,也可以由(b)任意三个在圆上的点确定,甚至可以由(c)圆心和圆面积确定,以上(a)(b)(c)都是构成要素组,其中任意一个组中的要素完整,都可以精确构成这个图形。A component group can be a group of elements used in a computer to process a basic feature group that can be used to derive a graph without using other elements. The component group may not be a basic feature group, but only through the elements in the component group. Calculation, you can get the basic feature group. Of course, the component group can be directly a basic feature group, but when the basic feature group is lacking, it is entirely possible to use other features to derive the basic feature group. For example, a circle can be determined by (a) the center and radius, or by (b) any three points on the circle, or even by (c) the center of the circle and the area of the circle, above (a) (b) (c) are all constituent elements, and the elements in any one of them are complete, and this figure can be accurately constructed.
有效构成要素组是指可以被处理成为基本要素组的一组构成要素组。其中必须所有的要素都是有效的。在本实施例中,通过判断得到的图形要素和/或数据要素,是否得到有效构成要素组;若得到有效构成要素组则生成基本要素组,并根据获得的基本要素组数据生成精确图样。A valid component group is a group of component groups that can be processed into a basic feature group. All of the elements must be valid. In the present embodiment, whether or not the effective constituent element group is obtained by judging the obtained graphic element and/or data element; if the effective constituent element group is obtained, the basic element group is generated, and an accurate pattern is generated based on the obtained basic element group data.
绘制的图形元素的图形类型包括但不限于点、线、面等。其中,点按类型分类包括单点、端点、交点等。单点可以用不大于5mm的图形标识需要的点;线的两端视为两个点作为端点;若干根线相交的点视为交点。The graphic types of the drawn graphic elements include, but are not limited to, points, lines, faces, and the like. Among them, the tap type classification includes a single point, an endpoint, an intersection point, and the like. A single point can identify the desired point with a figure of no more than 5 mm; both ends of the line are treated as two points as endpoints; points where several lines intersect are considered intersections.
线包括直线、折线、弧线、曲线等。其中,每一种线都有独自的多个构成要素组,比如弧线应当有明确的弧长、圆心半径、第三点,或其他要素组成的构成要素组。曲线可以是多条弧线或多个采样点组成构成要素组,也可以是不在一条直线上也不在同一条弧线上的点为采样点,组成的平滑曲线的构成要素组。可以理解的是:当这个线条无明确示意图形类型信息时需要识别时判断。Lines include lines, polylines, arcs, curves, and more. Each of the lines has its own set of multiple constituent elements, such as an arc with a clear arc length, a radius of the center of the circle, a third point, or a component group composed of other elements. The curve may be a plurality of arcs or a plurality of sampling points to form a component group, or may be a component group of a smooth curve composed of points that are not on a straight line or on the same arc. It can be understood that when the line does not have a clear schematic type information, it needs to be judged when it is recognized.
面包括面轮廓和面填充,其中,面轮廓可由首尾相接的线围成,面填充可以通过导入填充线或绘制填充线来完成。The face includes a face contour and a face fill, wherein the face contour can be surrounded by lines that meet end to end, and the face fill can be done by introducing a fill line or drawing a fill line.
可以理解的是:使用者还可以根据工作习惯,自定义更多的图形元素,这些图形元素可能不限于点、线、面以及标识信息。然后设置自定义图形元素的构成要素组以及由每个构成要素组生成精确图样的方法。It can be understood that the user can also customize more graphic elements according to work habits, and these graphic elements may not be limited to points, lines, faces and identification information. Then set up the component groups for the custom graphic elements and the method for generating an accurate pattern from each of the component groups.
精确图样是通过识别、计算得出的过程图形,从而用来放样的图形。比如:当手绘一条线,给这条线一个精确长度3m,并且确定这条线的两个端点坐标,设置这条线是墙的中心线。这时识别出这条3m长的线(即为精确图样)。关于这条线之后如何被放样成为一堵墙的模型,这条线也不一定会以线的形式被呈现出来,而是以这条线为中心线,以预设的墙厚进行偏移放样后,以墙的轮廓线的形式呈现为最终结果。本实施例中,精确图样可以为未被放样为墙轮廓之前的3m长的线,即用来控制墙模型位置及长度的信息。An accurate pattern is a graphic that is used to stake out by identifying and calculating a process graphic. For example, when drawing a line, give this line a precise length of 3m, and determine the coordinates of the two end points of the line, set this line to be the center line of the wall. At this time, the 3m long line (that is, the exact pattern) is recognized. After the line is laid out as a model of a wall, this line is not necessarily presented in the form of a line. Instead, the line is centered and offset by the preset wall thickness. After that, it is presented as the final result in the form of a wall outline. In this embodiment, the accurate pattern may be a 3 m long line that is not staked out as a wall contour, that is, information used to control the position and length of the wall model.
标识信息是对图形元素中的图形的进行处理的说明的信息。一个标识信息中含有指令标记信息、图形类型信息、图形标注信息中的一个或多个。标识信息通常用一种人们习惯的记号和文字进行表达标记,这种记号和文字需要识别时被计算机进行识别。一组记号和文字可以用于表达一个或多个信息。比如:当一张新图中只有用一个坐标标注,并且其中有完整明确的坐标值,它至少有3个信息,(1)代表驱动标记,需要增加一个图形;(2)而且代表一个图形类型为一个点,(3)这个点图形的图形标注信息为,这个点在一组特定完整的坐标上。The identification information is information that describes the processing of the graphics in the graphic elements. One identification information includes one or more of instruction mark information, graphic type information, and graphic annotation information. Identification information is usually expressed in a mark and text that people are accustomed to. Such marks and characters are recognized by the computer when they need to be recognized. A set of tokens and text can be used to express one or more messages. For example, when a new graph is marked with only one coordinate, and it has complete and unambiguous coordinate values, it has at least 3 pieces of information, (1) represents the drive mark, and a graphic needs to be added; (2) and represents a graphic type of one Point, (3) The graphic annotation information of this point graphic is that this point is on a specific set of complete coordinates.
在本实施例中,标识信息用于对相应的图形元素进行标识,例如标识点时,可以用不超过5mm的圆圈圈住该点;标识线时,可以用宽度不超过5mm的矩形圈住需要修改的线,用隔断线,截取需要的部分,并需要将隔断线进行尺寸驱动;标识面时,将需要修改的面用轮廓线圈起来,并绘制斜线进行说明。进一步的,该标识信息包括指令标记信息,可根据该指令标记信息处理被标识的图形元素。该指令标记信息包括删除指令、修改指令(包括位移、截取等)、增加指令、查询指令中的一种或多种,通过识别这些指令,来对对应的图形元素进行删除、修改、增加、查询等处理。In this embodiment, the identification information is used to identify the corresponding graphic element. For example, when the point is marked, the circle may be circled by a circle of no more than 5 mm; when the line is marked, the rectangle may be circled with a width of not more than 5 mm. The modified line, with the break line, intercepts the required part, and needs to drive the partition line to size; when identifying the surface, the surface to be modified is contoured and coiled, and a diagonal line is drawn for explanation. Further, the identification information includes instruction mark information, and the identified graphic element can be processed according to the instruction mark information. The instruction mark information includes one or more of a delete instruction, a modification instruction (including displacement, interception, etc.), an increase instruction, and a query instruction, and the corresponding graphic element is deleted, modified, added, and queried by identifying the instruction. Wait for processing.
其中,图形标注信息是对图形要素的精确表达,该图形标注信息的标注样式可以包括尺寸标注、角度标注、坐标标注、标高标注、面积标注等。该尺寸标注用于表示指向图形元素间的距离;该角度标注用于表示两条线的夹角,单位信息可以是度、也可以是弧度;该坐标标注用于指坐标点的坐标;该标高标注用于标识标高;该面积标注用于标注面的面积。The graphic annotation information is an accurate expression of the graphic element, and the labeling style of the graphic annotation information may include a dimension label, an angle label, a coordinate label, an elevation label, an area label, and the like. The dimension is used to indicate the distance between the graphical elements; the angular dimension is used to indicate the angle between the two lines, and the unit information may be degrees or radians; the coordinate label is used to refer to the coordinates of the coordinate points; Annotation is used to identify the elevation; this area is used to mark the area of the face.
该图形标注信息可以包括尺寸线和/或点标记和/或引线和/或文字等。在尺寸标注和角度标注中,尺寸线代表着标注样式。点标记是用于明确说明引线指向的点。引线可以指向一个明确的点,可以用标记将这个点明确的标记出来;引线也可以明确的指向一段线。标注的文字位于尺寸线附近,标注的是尺寸线所代表的距离或角度,或点标记所代表的坐标值。标注的文字必须是明确的数字,可以带有单位信息,也可以不带有单位信息。坐标标注必须是一组数字,标注的文字也可以是一组计算式。The graphical annotation information may include dimension lines and/or dot markers and/or leads and/or text, and the like. In dimensioning and angular dimensioning, dimension lines represent dimensioning styles. The dot mark is used to clearly indicate the point at which the lead is pointed. The lead can point to a clear point, which can be clearly marked with a marker; the lead can also be explicitly pointed to a line. The marked text is located near the dimension line, labeled with the distance or angle represented by the dimension line, or the coordinate value represented by the point marker. The marked text must be a clear number, with or without unit information. The coordinate label must be a set of numbers, and the text of the label can also be a set of calculations.
通过设置上述点、线、面、标识信息的定义,从而可以通过识别对应的特征,来识别图形元素的组成及各部分所表达的含义,以便于后续的精确图样的生成。By setting the definitions of the above points, lines, faces, and identification information, it is possible to identify the composition of the graphic elements and the meanings expressed by the respective parts by identifying the corresponding features, so as to facilitate the generation of subsequent accurate patterns.
当使用者利用输入装置完成手绘图的绘制后,则进入识别图形元素步骤及生成精确图样的步骤。对手绘图的识别,如前所述,可以对整个手绘图进行识别,也可以对手绘图中需要修订的部分进行识别。可以理解的,使用者也可以将手绘的纸张类介质手绘图进行扫描输入,再进行识别图形元素步骤。After the user finishes drawing the hand drawing with the input device, the steps of recognizing the graphic element step and generating the accurate pattern are entered. The identification of the opponent's drawing, as described above, can identify the entire hand drawing, or can identify the part of the drawing that needs to be revised. It can be understood that the user can also scan the hand-drawn paper-based medium hand drawing and then perform the step of identifying the graphic element.
首先,识别手绘图的至少一个图形元素;然后,识别与图形元素中对应的标识信息;然后根据标识信息生成与图形元素对应的精确图样。First, at least one graphic element of the hand drawing is identified; then, the identification information corresponding to the graphic element is identified; and then an accurate pattern corresponding to the graphic element is generated according to the identification information.
识别手绘图的至少一个图形元素,包括识别图形元素中的图形和标识信息,或图形和标识信息中之一。图形元素不同的构成将使用不同的识别方法。Identifying at least one graphical element of the hand drawing, including identifying graphics and identification information in the graphical element, or one of graphics and identification information. Different components of the graphical elements will use different recognition methods.
识别图形元素对应的标识信息,该标识信息可以包括指令标记信息、图形类型信息、以及图形标注信息等。The identification information corresponding to the graphic element is identified, and the identification information may include instruction mark information, graphic type information, graphic annotation information, and the like.
其中,图形类型信息可以为图形元素中对图形类型的说明信息,比如:点、直线、弧线、曲线、面等或其组合。也可以根据图形标注信息的标注样式判断,比如:坐标标注一般表示点、尺寸标注一般表示直线、半径标注或弧度标注一般表示弧线、面积标注一般表示一个面。The graphic type information may be description information of the graphic type in the graphic element, such as: a point, a straight line, an arc, a curve, a surface, or the like, or a combination thereof. It can also be judged according to the labeling style of the graphic annotation information. For example, the coordinate label generally indicates the point, the dimension label generally indicates the line, the radius label or the radians label generally indicates the arc, and the area label generally represents one surface.
在没有明确图形类型信息时,可以认为:手绘图中的单个图形覆盖画布大小小于使用者所能够识别的最小范围,即判断为点,另外,线的端点、交点、折点也识别为所在线的点。某个单个图形覆盖画布呈线性连续分布,且宽度远小于长度的形状,则识别为线。某个图形覆盖的画布大小大于使用者所能够识别的最小范围,且覆盖的是各向连续的分布,则识别为面,将其覆盖面闭合的边界识别为边界线,其中覆盖的整体内容为填充面;或者,有一条闭合的线围合,也可以识别为面,其闭合的线为面的边界线,其中被围合的部分为面。When there is no clear graphic type information, it can be considered that the single graphic covering canvas size in the hand drawing is smaller than the minimum range that the user can recognize, that is, the point is determined, and the end points, intersection points, and vertices of the line are also identified as being online. Point. A single graphic overlay canvas is linearly continuous and has a width that is much smaller than the length of the shape and is recognized as a line. The size of the canvas covered by a certain image is larger than the minimum range that the user can recognize, and the coverage is a continuous distribution, which is recognized as a face, and the boundary whose cover is closed is recognized as a boundary line, and the overall content of the cover is filled. Or; a closed line enclosing, can also be identified as a face, the closed line is the boundary line of the face, wherein the enclosed part is the face.
对于没有明确标注图形类型信息的线图形元素,其类型比较多,可以有直线、弧线、曲线等。对于这种线的识别,通过识别的图形元素中的第一端点、第二端点、以及在第一端点和第二端点之间的至少一个采样点;第一端点、第二端点和采样点,识别第一端点与第二端点之间的图形元素的手绘图形信息,并根据手绘图形信息得到图形类型。下面提供几种判断方法,但实际却不限于以下几种方法:For line graphic elements that do not explicitly label graphic type information, there are many types, such as straight lines, arcs, curves, and so on. For the identification of such a line, the first endpoint, the second endpoint, and at least one sample point between the first endpoint and the second endpoint are identified by the identified graphical element; the first endpoint, the second endpoint, and The sampling point identifies hand-drawn graphic information of the graphic element between the first end point and the second end point, and obtains the graphic type according to the hand-drawn graphic information. Several methods of judgment are provided below, but the actual methods are not limited to the following methods:
可以通过连接第一端点和第二端点,判断采样点与第一端点和第二端点连接线之间的距离关系,得到手绘图形信息,来确定第一端点和第二端点之间的图形类型;或者,The distance relationship between the sampling point and the first end point and the second end point connecting line may be determined by connecting the first end point and the second end point, and hand-drawn graphic information is obtained to determine between the first end point and the second end point. Graphic type; or,
以第一端点为起点,连续计算下一采样点的函数关系,直到第二端点,根据得出的函数关系,得到手绘图形信息,来确定第一端点和第二端点之间的图形类型。 Starting from the first endpoint, continuously calculating the function relationship of the next sampling point until the second endpoint, according to the obtained functional relationship, obtaining hand-drawn graphic information to determine the graphic type between the first endpoint and the second endpoint .
对于弧线的识别,识别采样点,包括第一端点、第二端、圆心点等,结合标识信息识别标注的弧长、半径等标注;或者,按照几何方法或使用工具,识别弧线。For the recognition of the arc, the sampling point is identified, including the first end point, the second end, the center point, and the like, and the label length is used to identify the arc length, the radius, and the like of the label; or, the geometric method or the tool is used to identify the arc.
对于曲线的识别,识别采样点,如起始点、终止点以及多个采样点等。若是多个弧线组成的曲线,则分段按照弧线识别。若为样条曲线的,则依次平滑的连接各采样点,识别为样条曲线。For the identification of curves, identify sampling points, such as starting point, ending point, and multiple sampling points. If there is a curve composed of multiple arcs, the segments are identified by arcs. If it is a spline curve, each sample point is smoothly connected in turn, and is identified as a spline curve.
对于无明确示意线的识别,可以先识别并连接第一端点和第二端点,其长度为(x),在第一点上做一条垂直于连接线的直线。将原线上各点投影在这条直线上。计算出最远的两个投影点的长度(y)。若其值小于0.05,则作为直线进行识别。若其值大于0.05,取最远投影点对应的线上点O。取该线与若干条网格线的交点为采样点,并以从起始点到O点的顺序组成点集合A,其中有{a1,a2,a3,...}。将集合A的各投影点,到第一端点距离,组成距离的集合B,其中有{b1,b2,b3,...}。若集合B中各元素大小都是由小到大排列,则将该判断过程中第一端点改为第二端点再判断一次。若集合B中各元素大小都是由小到大排列,则判断其为弧线,取点O及第一端点和第二端点作为弧线进行识别。若集合B中各元素大小不完全是由小到大排列,则判断其为曲线。第一端点和第二端点以及采样点一起作为曲线进行识别。For the identification without a clear line, the first end point and the second end point may be identified and connected, and the length is (x), and a straight line perpendicular to the connecting line is made at the first point. Project the points on the original line on this line. Calculate the length (y) of the two farthest projection points. If the value is less than 0.05, it is recognized as a straight line. If the value is greater than 0.05, take the line point O corresponding to the farthest projection point. The intersection of the line and the plurality of grid lines is taken as a sampling point, and the point set A is composed in the order from the starting point to the O point, wherein there are {a1, a2, a3, ...}. Each projection point of the set A is distanced to the first end point to form a set B of distances, wherein there are {b1, b2, b3, ...}. If the size of each element in the set B is arranged from small to large, the first end point in the judging process is changed to the second end point and judged once again. If the size of each element in the set B is arranged from small to large, it is judged to be an arc, and the point O and the first end point and the second end point are identified as arcs. If the size of each element in the set B is not completely arranged from small to large, it is judged to be a curve. The first endpoint and the second endpoint together with the sample points are identified as a curve.
识别的图形类型,还可以通过预先绘制在画布的图形进行识别,因为预先绘制在画布上的图形有明确的数据(可以理解的是,明确的数据当然包含了这个图形类型),若绘制的线是以预先绘制在画布上的线为参照的,则此线就与语言绘制在画布上的线的图形类型一致。The recognized type of graphics can also be identified by pre-rendering the graphics on the canvas, because the graphics drawn on the canvas in advance have clear data (it is understandable that explicit data of course contains this graphic type), if the drawn line Referring to the line drawn on the canvas in advance, the line is consistent with the type of the line on which the language is drawn on the canvas.
图形标注信息是图形要素的精确表达。其图形特征与一般使用者习惯的的标注类似,包括:坐标标注、尺寸标注、角度标注、半径标注、弧长标注、标高标注等。其构成元素包括:标注线、引线、文字。构成元素的不同,代表其类型的不同。其区别方法,与人们通常辨别图形标注的方法类似。比如:若标注文字是一个带有单位的明确的角度,则此形状标注信息就一定是一个角度标注,若标注文字是一个带有单位的明确的标注数据,则此形状标注信息就一定是一个尺寸标注,若尺寸标注引线一端指向一个点,另一的端指向一条线比与此线几乎重合,则代表这是一个点至一条线的垂直距离。若尺寸标注引线并不与此线重合或平行,则代表另一端指向的是此线上的一个点而并非这条线,此时就是点到点的距离。Graphic annotation information is an accurate representation of graphical elements. Its graphic features are similar to those commonly used by users, including: coordinate labels, dimension labels, angle labels, radius labels, arc length labels, and elevation labels. Its constituent elements include: marking lines, leads, and text. The difference in the constituent elements represents the difference in their type. The difference method is similar to the way people usually distinguish graphic annotations. For example, if the dimension text is a clear angle with a unit, the shape label information must be an angle label. If the label text is a clear label data with a unit, the shape label information must be a Dimensioning, if one end of the dimensioning lead points to a point and the other end points to a line that is almost coincident with the line, it represents a vertical distance from one point to one line. If the dimensioning lead does not coincide or be parallel to the line, it means that the other end points to a point on the line instead of the line, which is the point-to-point distance.
首先,判断标注形式:若标注是由三条相交但不闭合的线段组成,其中与两条都相交的线段是尺寸线,其余两条是引线,相交点是尺寸线的端点,并且标注形式是尺寸标注或角度标注。将尺寸线作为无明确示意的线进行判断。若尺寸线为直线,则是尺寸标注,若尺寸线为弧线或曲线,则是角度标注。若标注是有特殊标高符号和数字组成,则为标高标注。若标注是由一个点和一条引线组成,且文字为一组数字,则为坐标标注。First, judge the annotation form: if the annotation is composed of three intersecting but not closed segments, the segment intersecting the two is the dimension line, the other two are the leads, the intersection is the endpoint of the dimension line, and the dimension is the dimension Label or angular dimension. The dimension line is judged as a line without a clear indication. If the dimension line is a straight line, it is a dimension. If the dimension line is an arc or a curve, it is an angular dimension. If the label is composed of a special elevation symbol and a number, it is marked as an elevation. If the label consists of a point and a lead, and the text is a set of numbers, it is the coordinate label.
然后,识别标识信息的字符。若字符中包含有数字字符(即标注数据),则判断大小。若识别的字符中含有明确的单位信息,比如度、毫米,厘米、米等则应当为实际尺寸单位信息;若识别的字符中无单位信息,则判断是否为尺寸标注;若是,则将尺寸线两个端点进行初步识别,根据手绘图的比例和/或用户设定比例计算出实际距离(a);将识别出的标注数据,假设加上毫米、厘米、米等常用单位后的值(b);判断a、b的值最为接近的对应的单位信息,即为其单位。若为角度标注,将引线进行初步识别,根据手绘图的比例和/或用户设定比例计算出其夹角(a)。将识别出的数字,假设加度或弧度等常用单位后的值(b);判断a、b的值最为接近的对应的单位信息,即为其单位。计算公式,若计算公式中无未知数,则直接计算,将计算结果直接判断大小;若计算公式中有未知数,则先计算其未知数,再计算判断其结果大小。可以理解的,该尺寸单位信息识别方法也可以作为独立的技术方案而应用于其他场合。Then, the character identifying the information is identified. If the character contains numeric characters (that is, the label data), the size is judged. If the recognized characters contain clear unit information, such as degrees, millimeters, centimeters, meters, etc., it should be the actual size unit information; if there is no unit information in the recognized characters, it is judged whether it is a dimension; if so, the dimension line The two endpoints are initially identified, and the actual distance (a) is calculated according to the scale of the hand drawing and/or the ratio set by the user; the labeled data to be recognized is assumed to be a value after adding a common unit such as millimeters, centimeters, meters, etc. (b) ); the corresponding unit information that determines the value of a and b is the closest, that is, its unit. If the angle is marked, the lead is initially identified, and the angle (a) is calculated according to the scale of the hand drawing and/or the user setting ratio. The number to be recognized, the value after the usual unit such as the addition degree or the radians (b); the unit information corresponding to the value closest to the judgment of a and b is the unit. Calculate the formula. If there is no unknown in the calculation formula, calculate it directly and judge the result directly. If there is an unknown number in the calculation formula, calculate the unknown number first, and then calculate the result size. It can be understood that the size unit information identification method can also be applied to other occasions as an independent technical solution.
判断标注功能,若标注中的文字为具体数字(无论有无单位信息),则为图形标注信息。若标注中没有文字或文字位置为特殊符号或代号变量,则为查询标注。Judging the annotation function, if the text in the annotation is a specific number (with or without unit information), the graphic annotation information. If there is no text or the position of the text in the label is a special symbol or code variable, the query is marked.
识别引线指向。一般情况下,绘制图形标注时,使用者会刻意的将引线明确的指向所需要标注的的元素,因此识别时,指向元素应当就在引线的指向端的附近,若指向端指向多个元素,应当是触点距离最近者为指向元素。Identify the lead pointing. Under normal circumstances, when drawing a graphic annotation, the user will deliberately point the lead to the element to be labeled. Therefore, when pointing, the pointing element should be near the pointing end of the lead. If the pointing end points to multiple elements, it should be It is the closest element to the contact point.
查询标注是用来查询图纸中信息的指令,与其他驱动标注(修改、增加、删除)在示意方法的区别的是:它的标注文字为空或是特殊符号。其作用是,将标注的指向元素在标注意义上的值返回特定的目标(特定目标指某个变量,也可能是系统控制台等)。其指向端都为不活动元素时,才进行查询,若指向端不全为不活动元素,则先活动元素进行识别和生成,待活动元素成为不活动元素时,再进行查询。Query annotation is the instruction used to query the information in the drawing. The difference between the other methods of marking (modifying, adding, deleting) is that the labeling text is empty or special symbol. The effect is to return the value of the labeled pointing element in the meaning of the label to a specific target (a specific target refers to a variable, or may be a system console, etc.). When the pointing end is an inactive element, the query is performed. If the pointing end is not all inactive elements, the active element is first identified and generated, and when the active element becomes an inactive element, the query is performed.
查询标注与其他标注样式在实际识别过程中的顺序是不定的,但如果某个驱动标注含有查询标注返回目标变量,则应当先执行这个查询标注,将查询标注返回的变量值求出后,再识别其他标注。The order of query annotations and other annotation styles in the actual recognition process is uncertain. However, if a driver annotation contains a query annotation and returns a target variable, the query annotation should be executed first, and the variable value returned by the query annotation is obtained. Identify other labels.
图形标注信息作为数据要素输入的一种主要方式,且优先级靠前,使用方便快捷,是本专利所保护的一种创新技术方案。Graphical annotation information is a main method for inputting data elements, and its priority is high. It is convenient and fast to use. It is an innovative technical solution protected by this patent.
然后根据标识信息生成与图形元素对应的精确图样:根据现有的要素,和图形类型,在此图形类型的构成要素组中选择有效构成要素组,若有多个有效构成要素组,则根据优先级选择最优的方式,或由使用者指定构成要素组,然后根据选择的构成要素组所对应的生成方法,将图形元素生成精确图样。Then, according to the identification information, an accurate pattern corresponding to the graphic element is generated: according to the existing element and the graphic type, the effective component group is selected in the component group of the graphic type, and if there are multiple valid component groups, according to the priority The level selects the optimal mode, or the user specifies the constituent feature group, and then the graphic element generates an accurate pattern according to the generation method corresponding to the selected constituent element group.
确定图形标注信息所指的参照元素:(1)在画布中未被修改指令修改的点和/或线;(2)在画布中的网格线以及网格的交点;(3)在画布中自定义确定位置形状的点和/或线;(4)其作为驱动端的所有图形标注信息全部已被驱动完毕的图形。以上(1)(2)(3)(4)所诉图形的元素,都可以作为参照端的元素。对于(4)所诉情况可以理解为:当多个图形一起共有多个图形标注信息时,在其中找到某些图形标注信息的指向元素只有一端是活动元素,另一端为不活动元素,则设置不活动的一端为参照端,活动的一端为驱动端,先驱动只有一端为不活动元素的标注信息所指向活动元素,待驱动至标注所示位置后,活动元素转换为不活动元素。若指向图形元素两端都是活动元素:就先驱动两端活动元素的其他驱动标注信息,待其中一端为不活动端时,再重新判断。Determine the reference elements referred to by the graphic annotation information: (1) points and/or lines modified in the canvas without modification instructions; (2) grid lines in the canvas and intersections of the grids; (3) in the canvas Customize the points and/or lines that determine the shape of the position; (4) The graphics that all of the graphical annotation information as the drive end have been driven. The elements of the graphic referred to in (1)(2)(3)(4) above can be used as the elements of the reference end. For the case of (4), it can be understood as: when multiple graphics share a plurality of graphic annotation information together, only one end of the pointing element in which some graphic annotation information is found is an active element, and the other end is an inactive element, then the setting is The inactive end is the reference end, and the active end is the drive end, which first drives the active element pointed to by the annotation information with only one end as the inactive element. After being driven to the position indicated by the annotation, the active element is converted into the inactive element. If both ends of the graphic element are active elements: first drive the other driving label information of the active elements at both ends, and then re-judgment when one end is the inactive end.
可以理解的是:有些图形标注信息,比如,坐标标注、标高标注等,其在图形示意时的指向元素只有一个,但其一定有默认的参照端图形元素。比如:坐标标注一定是以默认的原点(0,0)为参照的标注,标高标注是以参照平面的标高作为参照进行标注的。It can be understood that some graphic annotation information, such as coordinate annotation, elevation annotation, etc., has only one pointing element in the graphic indication, but it must have a default reference end graphic element. For example, the coordinate label must be marked with the default origin (0, 0) as the reference, and the elevation label is marked with the reference plane's elevation as a reference.
根据有效构成要素组得到基本要素组从而生成精确图样的方法,可以由计算机进行数学运算的几何解析方法,下面介绍其中的一种方法:According to the method of obtaining the basic feature group according to the effective component group to generate the accurate pattern, the geometric analysis method of the mathematical operation can be performed by the computer. One of the methods is described below:
尺寸标注的解析生成方法:首先,判断尺寸标注的方向,一般来说尺寸标注只要有一端指向的是线,则尺寸标注的方向将是垂直于这条线的方向,其量则是尺寸标注的标注数据和准确的单位组成的量。然后,由尺寸标注的参照端的元素用数学的三角函数方法,计算向量所得新的点或线的基本要素组。The method of analyzing the dimensioning: First, determine the direction of the dimensioning. Generally speaking, if the dimensioning has a line pointing to one end, the direction of the dimensioning will be perpendicular to the direction of the line, and the quantity is dimensioned. Annotate the amount of data and the exact unit composition. Then, the element of the dimensioned reference end uses the mathematical trigonometric function method to calculate the basic feature set of the new point or line obtained by the vector.
角度标注的解析生成方法:首先,其驱动端的向量尺寸长度(L)不变,其方向角度由标注数据和准确单位组成的量(角度O)。然后,由L和角度O以及参照端所指的线与驱动端所指线的交点(点A)组成的构成要素组,根据数学三角函数的方式求得新的向量的另一个端点(B),将线AB替代原驱动端线即可。Analytic generation method of angle labeling: First, the vector size length (L) of the driving end is unchanged, and the direction angle is composed of the labeled data and the accurate unit (angle O). Then, the constituent element group consisting of L and the angle O and the intersection of the line pointed by the reference end and the line indicated by the driving end (point A), and the other end point of the new vector (B) is obtained according to the mathematical trigonometric function. , the line AB can replace the original drive end line.
标高标注的解析方法:一般使用标高标注,都会涉及三维坐标,其方一般可以理解为垂直于画布的方向,只需要将标高标注的标注元素的垂直于画布方向的坐标由计算得出,覆盖原有坐标值即可。Analytic method for elevation labeling: Generally, the elevation label is used, which will involve three-dimensional coordinates. The square can generally be interpreted as perpendicular to the direction of the canvas. It is only necessary to calculate the coordinates of the labeling element of the elevation label perpendicular to the canvas direction. There are coordinate values.
根据有效构成要素组得到基本要素组从而生成精确图样的方法,也可以由几何作图方法,但一般几何作图方法灵活多变,下面介绍其中的一种方法:The method of obtaining the basic feature group according to the effective component group to generate the accurate pattern can also be performed by the geometric mapping method, but the general geometric mapping method is flexible and varied. One of the methods is described below:
尺寸标注的作图方法:首先,网格和原图识别驱动线,将指向参照端的引线与尺寸线的交点作为基点。保持基点不变,将另一端与基点的长度精确的截取或延长至标注长度。然后,将引线重新垂直另一个端点上,将尺寸线随着基点平行移动至参照点或参照线上的点,将驱动端的点或线投影在新的引线上。得到的投影点或线是被驱动完成的点或线,替代原有线。Dimensioning method of dimensioning: First, the grid and the original image identify the driving line, and the intersection of the lead and the dimension line pointing to the reference end is used as the base point. Keep the base point unchanged, and accurately cut or extend the length of the other end from the base point to the label length. Then, the lead is re-verted to the other end point, and the dimension line is moved parallel to the reference point or the point on the reference line, and the point or line of the drive end is projected onto the new lead. The resulting projection point or line is the point or line that is driven to replace the original line.
角度标注的作图方法:首先,网格识别驱动线,求出参照线与驱动线的或他们延长线的交点(O),设为非网格化点。将参照线的克隆元素以O点为圆心,按照标注方向旋转标注角度,得到新的参照线。以O为原点,测量驱动线各端点与O的距离,并将原尺寸从O点截取或延长至新的参照线上。将其他指向原驱动线的所有标注,同时旋转至新的角度。被截取或延长的新参照线替代原驱动线,删除元驱动线。The method of drawing the angle mark: First, the mesh identifies the drive line, and finds the intersection (O) of the reference line and the drive line or their extension line, and sets it as a non-mesh point. The cloned element of the reference line is centered on the O point, and the angle is rotated in the direction of the label to obtain a new reference line. Taking O as the origin, measure the distance between each end of the drive line and O, and intercept or extend the original size from the O point to the new reference line. Point the other pointers to the original drive line and rotate them to a new angle. The new reference line that is intercepted or extended replaces the original drive line, and the meta drive line is deleted.
坐标标注:按照标注数值,找到其实际坐标点,将原点移动至新的位置,删除原点即可,新的坐标点可以不在画布范围内。Coordinate labeling: According to the label value, find the actual coordinate point, move the origin to the new position, delete the origin, and the new coordinate point can be out of the canvas.
标高标注:将指向点所在平面设置为标注标高,并将同一指向点所在平面上的所有标高,或基于此标高的所有标高进行重新计算。Elevation Annotation: Sets the plane of the pointing point to the label elevation and recalculates all elevations on the plane of the same pointing point, or all elevations based on this elevation.
识别图形元素的标识信息就是用来精确识别图形要素和/或数据要素的有效方法:1在不精确的手绘图形元素的图形上识别找到被标注(即与标识信息相关)的元素(点和/或线);2根据识别的元素,对于需要处理的图形对象找到一个或多个不活动的元素作为参照元素;3对所绘制的图形标注信息的样式和文字进行解析判断,来确定是需要(3-1)需要查询,还是(3-2)需要驱动;4根据以上步骤得到的需求对图纸或数据进行处理:(4-1)需要查询的则向指定位置(变量和/或控制台和/或其他)输出;(4-2)将所识别的元素、参照元素、所述图形类型信息、以及图形标注信息构成图形要素和/或数据要素。Identifying the identification information of a graphical element is an effective way to accurately identify graphical elements and/or data elements: 1 Identifying the elements that are labeled (ie, related to the identifying information) on the inaccurate graphic of the hand-drawn graphical element (point and / Or line); 2 according to the identified elements, find one or more inactive elements as reference elements for the graphic object to be processed; 3 analyze and judge the style and text of the drawn graphic annotation information to determine the need ( 3-1) need to query, or (3-2) need to drive; 4 according to the requirements obtained in the above steps to process the drawings or data: (4-1) need to query to the specified location (variables and / or console and And/or other output; (4-2) constituting the identified element, the reference element, the graphic type information, and the graphic annotation information into a graphic element and/or a data element.
在不精确的手绘图形元素的图形上找到被标注的要素(点和/或线):一般来说标注信息会以点和/线为对象进行查询或驱动,比如:现有一个正交正方形,其边长为L,标注现需要将这个正方形以左下角为基点移动至某个点向右X,向上Y。这时,我们可以(方法A)标注其左下角顶点(被标注的要素点),对其进行相对坐标标注(X,Y);(方法B)也可以标注其右上角顶点(被标注的要素点),对其进行相对坐标标注(X+L,Y+L);(方法C)也可以标注其下边(被标注的要素边),对其进行相对距离标注Y,同时标注右边(被标注的要素边),对其进行相对距离标注X+L。以上三个方法(A、B、C)都可以按照要求完成,不同的标注方法对应着不同的被标注的要素。Find the marked features (points and/or lines) on the inaccurate graphic of the hand-drawn graphic elements: Generally, the annotation information will be queried or driven by points and / lines, for example: an existing orthogonal square, The side length is L, and the label now needs to move the square to the right point X to the right and Y to the left point. At this time, we can (method A) mark its lower left vertex (marked feature point) and make relative coordinate labeling (X, Y); (method B) can also mark its upper right corner vertex (labeled element) Point), the relative coordinate labeling (X+L, Y+L); (method C) can also mark the lower side (the edge of the marked element), mark the relative distance with Y, and mark the right side (marked The edge of the feature), and the relative distance is marked X+L. The above three methods (A, B, C) can be completed as required, and different annotation methods correspond to different labeled elements.
对于需要处理的对象找到一个或多个不活动的图形作为参照元素,一般来说,任何标注都是相对于一个现阶段固定不变(不活动元素)的参照,在识别这个标注时,必须找到这个参照。Find one or more inactive graphics as reference elements for the objects that need to be processed. In general, any annotation is relative to a fixed (inactive element) reference at this stage. When identifying this annotation, you must find it. This reference.
对所绘制的图形标注信息的样式和文字进行解析判断(3-1)需要查询(3-2)需要驱动:图形标注信息一般告诉识别系统需要做查询处理或需要驱动处理(驱动处理包括,增加、修改),系统会根据标注样式判断,是否是查询标注,若是查询标注则执行查询处理、若是驱动类标注则执行驱动处理。Analyze and judge the style and text of the drawn graphic annotation information (3-1) Need to query (3-2) Need to drive: Graphic annotation information generally tells the recognition system to do query processing or need to drive processing (drive processing includes, increase , modify), the system will judge according to the label style, whether it is a query label, if the query is marked, the query processing is executed, and if the driver class is marked, the driver processing is executed.
根据以上步骤得到的需求对图纸或数据进行处理:(4-1)需要查询的则向指定位置(变量和/或控制台和/或其他)输出;(4-2)将标注信息的参照图形和/或标注数据等信息作为被标注信息的图形要素和/或数据要素。The drawings or data are processed according to the requirements obtained in the above steps: (4-1) If the query is required, the output is to the specified position (variable and/or console and/or other); (4-2) the reference graphic of the labeled information And/or annotated data and the like as graphic elements and/or data elements of the labeled information.
在所有图形元素被识别完之后,本次识别结束,获得基本要素组数据的精确图样,根据预设,将精确图样放样为模型,根据需要将模型生成需要的图纸形式。该模型可以为二维模型、也可以为三维模型。该图纸可以为使用投影、透视、剖析、动画等方法将二维或三维的模型呈现在二维平面上,这个二维平面就是图纸。图纸可以输出至各种输出设备(比如:各类显示屏幕、打印机等),同时可以根据需要加上文字说明等信息。当然,若所表达的模型就是二维模型或其他情况、那么图纸就等同于模型,由精确图样放样为模型的步骤也就等同于生成图纸的步骤。After all the graphic elements are recognized, the recognition ends, and the accurate pattern of the basic feature group data is obtained. According to the preset, the accurate pattern is staked out as a model, and the required drawing form is generated according to the needs. The model can be a two-dimensional model or a three-dimensional model. The drawing can be used to render a 2D or 3D model on a 2D plane using projection, perspective, profiling, animation, etc. This 2D plane is the drawing. Drawings can be output to a variety of output devices (such as: various types of display screens, printers, etc.), and can be added with text descriptions and other information as needed. Of course, if the model being expressed is a two-dimensional model or other case, then the drawing is equivalent to the model, and the step of stakeouting the model from the exact pattern is equivalent to the step of generating the drawing.
可以理解的,以上实施例仅表达了本发明的优选实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制;应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,可以对上述技术特点进行自由组合,还可以做出若干变形和改进,这些都属于本发明的保护范围;因此,凡跟本发明权利要求范围所做的等同变换与修饰,均应属于本发明权利要求的涵盖范围。It is to be understood that the above-described embodiments are merely illustrative of the preferred embodiments of the present invention, and are not to be construed as limiting the scope of the invention; The above technical features may be freely combined, and various modifications and improvements may be made without departing from the spirit and scope of the invention; therefore, the scope of the claims of the present invention is Equivalent transformations and modifications are intended to be included within the scope of the appended claims.

Claims (12)

  1. 一种根据手绘图生成精确图样的方法,其特征在于,包括以下步骤:A method for generating an accurate pattern based on a hand drawing, comprising the steps of:
    S1 :识别手绘图的至少一个图形元素;S1: identifying at least one graphic element of the hand drawing;
    S2 :识别与所述图形元素中对应的标识信息;S2: identifying the identification information corresponding to the graphic element;
    S3 :根据所述标识信息生成与所述图形元素对应的精确图样。S3: Generate an accurate pattern corresponding to the graphic element according to the identification information.
  2. 根据权利要求 1 所述的根据手绘图生成精确图样的方法,其特征在于,所述标识信息包括指令标记信息;在所述步骤 S3 中,根据所述指令标记信息处理所述图形元素。A method for generating an accurate pattern according to a hand drawing according to claim 1, wherein said identification information includes instruction flag information; and said step S3 Processing the graphic element according to the instruction mark information.
  3. 根据权利要求 2 所述的根据手绘图生成精确图样的方法,其特征在于,所述指令标记信息包括删除指令、修改指令、增加指令、查询指令中的一种或多种。According to claim 2 The method for generating an accurate pattern according to the hand drawing is characterized in that the instruction mark information includes one or more of a delete instruction, a modification instruction, an increase instruction, and a query instruction.
  4. 根据权利要求 1-3 任一项所述的根据手绘图生成精确图样的方法,其特征在于,所述标识信息包括图形类型信息、以及图形标注信息;According to claims 1-3 The method for generating an accurate pattern according to a hand drawing according to any one of the preceding claims, wherein the identification information comprises graphic type information and graphic annotation information;
    所述步骤 S3 包括:The step S3 includes:
    S3-1 :判断所述标识信息中是否有所述图形类型信息,有则执行步骤 S3-2 ,否则执行步骤 S3-3 ;S3-1: determining whether the graphic type information is included in the identification information, if yes, executing step S3-2, otherwise performing step S3-3 ;
    S3-2 :根据所述图形类型信息,判断图形类型,并生成该类型图形的标准图形;S3-2: determining a graphic type according to the graphic type information, and generating a standard graphic of the graphic of the type;
    S3-3 :根据所述图形元素判断与其对应的图形类型,并生成该类型图形的标准图形。S3-3: Determine a graphic type corresponding to the graphic element according to the graphic element, and generate a standard graphic of the graphic of the type.
  5. 根据权利要求 4 所述的根据手绘图生成精确图样的方法,其特征在于,所述步骤 S3-3 包括以下步骤:A method for generating an accurate pattern according to a hand drawing according to claim 4, wherein said step S3-3 Includes the following steps:
    S3-3-1 :识别的所述图形元素中的第一端点、第二端点、以及在所述第一端点和第二端点之间的至少一个采样点;S3-3-1 : a first endpoint, a second endpoint, and at least one sample point between the first endpoint and the second endpoint in the identified graphical element;
    S3-3-2 :根据所述第一端点、第二端点和采样点,识别所述第一端点与所述第二端点之间的所述图形元素的手绘图形信息,并根据所述手绘图形信息得到所述图形类型。S3-3-2 And identifying, according to the first endpoint, the second endpoint, and the sampling point, hand-drawn graphic information of the graphic element between the first endpoint and the second endpoint, and obtaining a location according to the hand-drawn graphic information The type of graphics.
  6. 根据权利要求 5 所述根据手绘图生成精确图样的方法,其特征在于,在所述步骤 S3-3-2 中,连接所述第一端点和第二端点,判断所述采样点与所述第一端点和第二端点连接线之间的距离关系,得到所述手绘图形信息,来确定所述第一端点和第二端点之间的所述图形类型;或者,A method for generating an accurate pattern based on a hand drawing according to claim 5, wherein in said step S3-3-2 Connecting the first end point and the second end point, determining a distance relationship between the sampling point and the first end point and the second end point connecting line, and obtaining the hand-drawn graphic information to determine the first The type of graphics between an endpoint and a second endpoint; or,
    以所述第一端点为起点,连续计算下一所述采样点的函数关系,直到所述第二端点,根据得出的函数关系,得到所述手绘图形信息,来确定所述第一端点和第二端点之间的所述图形类型。Taking the first endpoint as a starting point, continuously calculating a function relationship of the next sampling point until the second endpoint, according to the obtained function relationship, obtaining the hand-drawn graphic information to determine the first end The type of graphics between the point and the second endpoint.
  7. 根据权利要求 5 所述的根据手绘图生成精确图样的方法,其特征在于,该方法还包括画布设置步骤:A method for generating an accurate pattern according to a hand drawing according to claim 5, wherein the method further comprises a canvas setting step:
    设定绘图区域,用于供使用者通过输入装置在所述绘图区域中进行绘制所述手绘图。A drawing area is set for the user to draw the hand drawing in the drawing area through an input device.
  8. 根据权利要求 7 所述的根据手绘图生成精确图样的方法,其特征在于,通过识别所述输入装置在所述绘图区域中的起始输入点以及输入轨迹过程,判断识别得到所述第一端点、第二端点和采样点。According to claim 7 The method for generating an accurate pattern according to a hand drawing, characterized in that, by identifying a starting input point of the input device in the drawing area and an input trajectory process, determining that the first end point and the second end are obtained Endpoints and sample points.
  9. 根据权利要求 7 所述的根据手绘图生成精确图样的方法,其特征在于,所述步骤 S3 还包括:The method for generating an accurate pattern according to the hand drawing according to claim 7, wherein the step S3 further comprises:
    S3-4 :判断所述标识信息中是否有图形标注信息,有则执行步骤 S3-5 ,否则执行步骤 S3-6 ;S3-4: determining whether there is graphic labeling information in the identifier information, if yes, executing step S3-5; otherwise, performing step S3-6 ;
    S3-5 :根据所述图形标注信息,放样步骤 S3-2 或 S3-3 所得到的所述标准图形,生成所述精确图样;S3-5: Stakeout step S3-2 or S3-3 according to the graphic annotation information Generating the obtained standard pattern to generate the accurate pattern;
    S3-6 :根据所述图形元素在绘图区域中笔触覆盖画布的位置及形状进行模糊计算,放样步骤 S3-2 或 S3-3 所得到的所述标准图形,生成所述精确图样。S3-6: performing fuzzy calculation according to the position and shape of the brush covering the canvas in the drawing area, and the stakeout step S3-2 or S3-3 The resulting standard pattern is generated to generate the precise pattern.
  10. 根据权利要求 9 所述的根据手绘图生成精确图样的方法,其特征在于,所述步骤 S3-5 包括以下步骤:The method for generating an accurate pattern according to a hand drawing according to claim 9, wherein the step S3-5 Includes the following steps:
    S3-5-1 :判断所述图形标注信息是否包含单位信息,有则执行步骤 S3-5-2 ,否则执行步骤 S3-5-3 ;S3-5-1: determining whether the graphic annotation information includes unit information, if yes, executing step S3-5-2, otherwise performing step S3-5-3 ;
    S3-5-2 :根据所述图形标注信息中的标注数据以及单位信息,放样生成所述精确图样;S3-5-2: generating the accurate pattern according to the annotation data and the unit information in the graphic annotation information;
    S3-5-3 :根据所述图形标注信息中的标注数据,结合所述手绘图的比例、和 / 或用户设定比例、和 / 或常用单位,确定单位信息,并根据所述标注数据和单位信息放样生成所述精确图样。S3-5-3: according to the annotation data in the graphic annotation information, combined with the proportion of the hand drawing, and/or the user setting ratio, and / Or a common unit, determining the unit information, and generating the accurate pattern according to the label data and the unit information loft.
  11. 根据权利要求 1 所述的根据手绘图生成精确图样的方法,其特征在于,A method of generating an accurate pattern based on a hand drawing according to claim 1, wherein
    在所述步骤 S1 、 S2 中,根据识别的所述 图形元素,得到图形要素和 / 或数据要素;In the steps S1 and S2, graphic elements and/or data elements are obtained according to the identified graphic elements;
    在所述步骤 S3 中,判断所述图形要素和 / 或数据要素,是否得到有效构成要素组;若得到有效构成要素组则生成基本要素组,并根据获得的所述基本要素组数据生成所述精确图样。In the step S3, determining the graphic element and / Or a data element, whether a valid component group is obtained; if a valid component group is obtained, a basic feature group is generated, and the accurate pattern is generated according to the obtained basic feature group data.
  12. 根据权利要求 11 所述的根据手绘图生成精确图样的方法,其特征在于, 在所述步骤 S1 、 S2 中,识别与所述标识信息相关的元素;A method for generating an accurate pattern according to a hand drawing according to claim 11, wherein in said steps S1, S2 Identifying an element related to the identification information;
    根据所识别的元素来确定参照元素;Determining a reference element based on the identified element;
    识别所述标识信息中的图形类型信息、以及图形标注信息;Identifying graphic type information and graphic annotation information in the identification information;
    所识别的元素、参照元素、所述 图形类型信息、以及图形标注信息构成所述图形要素和 / 或数据要素。The identified element, the reference element, the graphic type information, and the graphic annotation information constitute the graphic element and/or the data element.
PCT/CN2015/074250 2015-03-13 2015-03-13 Method for generating precise pattern according to hand-drawn graph WO2016145581A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/074250 WO2016145581A1 (en) 2015-03-13 2015-03-13 Method for generating precise pattern according to hand-drawn graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/074250 WO2016145581A1 (en) 2015-03-13 2015-03-13 Method for generating precise pattern according to hand-drawn graph

Publications (1)

Publication Number Publication Date
WO2016145581A1 true WO2016145581A1 (en) 2016-09-22

Family

ID=56918195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074250 WO2016145581A1 (en) 2015-03-13 2015-03-13 Method for generating precise pattern according to hand-drawn graph

Country Status (1)

Country Link
WO (1) WO2016145581A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804825A (en) * 2018-06-12 2018-11-13 上海外高桥造船有限公司 Ship technological design auxiliary sets the system of painting and technique sets the method for painting
CN109147013A (en) * 2018-09-30 2019-01-04 深圳市华阳国际工程设计股份有限公司 A kind of in-depth figure automatic generation method, equipment and the storage medium of component
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
CN110084893A (en) * 2019-04-15 2019-08-02 广联达科技股份有限公司 A kind of method and apparatus of two three-dimensional hybrids editor
CN110334430A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 The automatic marking method of cable tray, system, equipment and storage medium in drawing
CN111401231A (en) * 2020-03-13 2020-07-10 华黔科技有限公司 Engineering drawing identification and verification method and device
CN112163252A (en) * 2020-08-31 2021-01-01 重庆宝图科技发展有限公司 Method and system for landing real estate sketch
CN112883800A (en) * 2021-01-20 2021-06-01 上海品览智造科技有限公司 Method for identifying lightning protection grade in CAD lightning protection plan
CN113051640A (en) * 2021-03-05 2021-06-29 福建省晨曦信息科技股份有限公司 Column proof data reproduction method, computer device and readable storage medium
CN116029012A (en) * 2022-05-07 2023-04-28 中国建筑装饰集团有限公司 Integrated keel distribution diagram drawing, informationized labeling and statistics method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060045343A1 (en) * 2004-08-27 2006-03-02 Tremblay Christopher J Sketch recognition and enhancement
CN101393648A (en) * 2008-10-07 2009-03-25 广东威创视讯科技股份有限公司 Recognition method for hand drawing geometrical drawing
CN101799937A (en) * 2010-03-23 2010-08-11 南京大学 Method for creating three-dimensional model by using sketch
CN101964053A (en) * 2010-09-28 2011-02-02 中国船舶重工集团公司第七○九研究所 On-line identification method of compound pattern
CN103106309A (en) * 2013-02-06 2013-05-15 浙江大学 Sketch behavior identification method and sketch behavior identification system during computer aided design process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060045343A1 (en) * 2004-08-27 2006-03-02 Tremblay Christopher J Sketch recognition and enhancement
CN101393648A (en) * 2008-10-07 2009-03-25 广东威创视讯科技股份有限公司 Recognition method for hand drawing geometrical drawing
CN101799937A (en) * 2010-03-23 2010-08-11 南京大学 Method for creating three-dimensional model by using sketch
CN101964053A (en) * 2010-09-28 2011-02-02 中国船舶重工集团公司第七○九研究所 On-line identification method of compound pattern
CN103106309A (en) * 2013-02-06 2013-05-15 浙江大学 Sketch behavior identification method and sketch behavior identification system during computer aided design process

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure
CN108804825B (en) * 2018-06-12 2022-03-18 上海外高桥造船有限公司 Auxiliary drawing system and method for ship process design
CN108804825A (en) * 2018-06-12 2018-11-13 上海外高桥造船有限公司 Ship technological design auxiliary sets the system of painting and technique sets the method for painting
CN109147013A (en) * 2018-09-30 2019-01-04 深圳市华阳国际工程设计股份有限公司 A kind of in-depth figure automatic generation method, equipment and the storage medium of component
CN110084893A (en) * 2019-04-15 2019-08-02 广联达科技股份有限公司 A kind of method and apparatus of two three-dimensional hybrids editor
CN110084893B (en) * 2019-04-15 2023-05-26 广联达科技股份有限公司 Method and device for two-dimensional and three-dimensional hybrid editing
CN110334430A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 The automatic marking method of cable tray, system, equipment and storage medium in drawing
CN110334430B (en) * 2019-07-01 2022-11-22 上海外高桥造船有限公司 Automatic labeling method, system, equipment and storage medium for cable bracket in drawing
CN111401231A (en) * 2020-03-13 2020-07-10 华黔科技有限公司 Engineering drawing identification and verification method and device
CN112163252A (en) * 2020-08-31 2021-01-01 重庆宝图科技发展有限公司 Method and system for landing real estate sketch
CN112883800A (en) * 2021-01-20 2021-06-01 上海品览智造科技有限公司 Method for identifying lightning protection grade in CAD lightning protection plan
CN113051640A (en) * 2021-03-05 2021-06-29 福建省晨曦信息科技股份有限公司 Column proof data reproduction method, computer device and readable storage medium
CN116029012A (en) * 2022-05-07 2023-04-28 中国建筑装饰集团有限公司 Integrated keel distribution diagram drawing, informationized labeling and statistics method and system
CN116029012B (en) * 2022-05-07 2023-08-15 中国建筑装饰集团有限公司 Integrated keel distribution diagram drawing, informationized labeling and statistics method and system

Similar Documents

Publication Publication Date Title
WO2016145581A1 (en) Method for generating precise pattern according to hand-drawn graph
JPS62159286A (en) Three-dimensional cursor control system
CN103942053A (en) Three-dimensional model gesture touch browsing interaction method based on mobile terminal
JP2559792B2 (en) CAD sketch input drawing method
WO2022205625A1 (en) Dispensing path generation method and apparatus, electronic device, and storage medium
WO2018103227A1 (en) Method and device for drawing symmetrical figure
JP3599198B2 (en) Figure editing device
JP2003167924A (en) Three-dimensional shape processing unit and three- dimensional coordinate value input method
JPS62150423A (en) Coordinate input device
WO2022220344A1 (en) Interfacing method and device for three-dimensional sketch
TW201301877A (en) Imaging sensor based multi-dimensional remote controller with multiple input modes
JPH0668258A (en) Graphic digitizing device
JP2000067258A (en) Drawing plotter
JPH04182721A (en) Three dimension coordinate position designating method
JP2003336119A (en) Virtual paper pattern display and virtual paper pattern displaying program
JPS62150422A (en) Coordinate input device
JP3727975B2 (en) Graphic processing method and apparatus
He et al. Computer vision-based augmented reality system for assembly interaction
TW202340926A (en) Work support system and work support method
JPH0762793B2 (en) 3D cursor display device
JPH06243217A (en) Graphic generating device
JPH0863620A (en) Method and device for processing graphic
KR101186368B1 (en) Apparatus for inputting information of touchpad
JP2011048476A (en) Three-dimensional object generation cad system using augmented reality
JPH08248938A (en) Pointing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15884965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15884965

Country of ref document: EP

Kind code of ref document: A1