[go: up one dir, main page]

CN109345607B - Method for automatically marking EPC picture - Google Patents

Method for automatically marking EPC picture Download PDF

Info

Publication number
CN109345607B
CN109345607B CN201811181643.5A CN201811181643A CN109345607B CN 109345607 B CN109345607 B CN 109345607B CN 201811181643 A CN201811181643 A CN 201811181643A CN 109345607 B CN109345607 B CN 109345607B
Authority
CN
China
Prior art keywords
coordinate
line
epc
point
grid
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811181643.5A
Other languages
Chinese (zh)
Other versions
CN109345607A (en
Inventor
段绍斌
刘华正
邓志超
刘裕雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Qianshi Network Technology Co ltd
Original Assignee
Guangzhou Qianshi Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Qianshi Network Technology Co ltd filed Critical Guangzhou Qianshi Network Technology Co ltd
Priority to CN201811181643.5A priority Critical patent/CN109345607B/en
Publication of CN109345607A publication Critical patent/CN109345607A/en
Application granted granted Critical
Publication of CN109345607B publication Critical patent/CN109345607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a method for automatically marking EPC pictures, which comprises the following processing steps: step 1: deriving a two-dimensional plane map of the EPC without marks, then establishing a grid map with the same size as the two-dimensional plane map of the EPC, and overlapping the grid map and the two-dimensional plane map of the EPC; step 2: respectively coding grids corresponding to the part graphs in the EPC two-dimensional plane graph and grids for marking OE numbers on the grid graph, so that coordinate points with different values are formed on each grid; and step 3: and respectively selecting a coordinate point of the position edge of the part and a coordinate point for marking the position edge corresponding to the OE number, and then connecting to form an indicating line. The method and the device can solve the problem of coincidence of the indicating lines and the outlines of the spare parts, and improve the efficiency of manufacturing the EPC two-dimensional plane map.

Description

Method for automatically marking EPC picture
Technical Field
The invention relates to the field of picture processing, in particular to a method for automatically marking an EPC picture.
Background
The EPC is a short name of electronic parts catalog, and refers to each type of automobile parts, OE numbers of parts, information, or ordered catalog of each whole car factory. The electronic catalog of the automobile parts is software compiled by an automobile supplier for conveniently checking the information of all automobile types, automobile part information and the like produced by the automobile supplier, and the assembly drawing, the exploded drawing and the part drawing of all parts of the whole car can be conveniently browsed through the software, so that the parts can be conveniently searched.
A conventional EPC diagram of an automobile is designed by 3D engineering software, and an engineer marks OE numbers of corresponding parts in the 3D engineering software. However, the indication lines of the 3D engineering software often overlap with the contours of the parts themselves, thereby interfering with the user of the EPC two-dimensional plan, and many derived EPC two-dimensional plans require the indication lines and marks to be modified again later by the image processing software.
Disclosure of Invention
The invention aims to provide a method for automatically marking an EPC picture, which can solve the problem of coincidence of an indication line and the outline of a part and improve the efficiency of manufacturing an EPC two-dimensional plane map.
In order to realize the aim, the method for automatically marking the EPC picture is provided, and comprises the following processing steps:
step 1: deriving an unmarked EPC two-dimensional plane map, then establishing a grid map with the same size as the EPC two-dimensional plane map, and overlapping the grid map and the EPC two-dimensional plane map;
step 2: respectively coding grids corresponding to the part graphs in the EPC two-dimensional plane graph and grids for marking OE numbers on the grid graph, so that coordinate points with different values are formed on each grid;
and step 3: and respectively selecting a coordinate point of the position edge of the part and a coordinate point for marking the position edge corresponding to the OE number, and then connecting to form an indication line.
Preferably, in step 1 and step 2, the grid map is composed of 3x3 pixel small grids, and a coordinate point set Q = { (3m +2,3n + 2) | m =0,1,2.. N is formed in the grid map with the coordinate of a 1x1 pixel square in the middle of each small grid as a coordinate point; n =0,1,2.
Preferably, in step 2, each small grid is subjected to identification coding through image identification.
Preferably, the image recognition process is performed by traversing a set of coordinate points Q = { (3m +2,3n + 2) | m =0,1,2.. N; n =0,1,2.. N }, each coordinate point q ∈ 0 is identified, and if R is less than 255, g is less than 255, and b is less than 255 in RGB values of the coordinate point q, the value of the coordinate point q is set to 1, otherwise, the value is set to 0.
Preferably, in step 3, the coordinate point of the edge of the position where the component is located with the value 1 is selected as the component coordinate a (x 1, y 1), and the coordinate point of the edge of the position marked with OE number with the value 0 is selected as the mark coordinate B (x 2, y 2)
Preferably, when the part coordinate a (x 1, y 1) is determined, the RGB values of the part coordinate a (x 1, y 1) are also determined, and if R <255, g <255, and b <255 in the RGB values of the part coordinate a (x 1, y 1), the point is selected and the determination of the coordinates is returned, otherwise, the point is discarded and no part is prompted to be selected.
Preferably, after the part coordinate a (x 1, y 1) and the mark coordinate B (x 2, y 2) are determined, whether the formed indication line is a horizontal indication line or a vertical indication line is judged; the judgment process is to compare | x1-x2| with | y1-y2| and to determine a transverse indicator line if | x1-x2| > | y1-y2 |; if | x1-x2| < = | y1-y2|, then it is a vertical indicator line.
Preferably, in step 3, the formation process of the horizontal indicating line is to form a first intersection point D by drawing a perpendicular line from the part coordinate a (x 1, y 1) to the x-axis and a perpendicular extension line from the mark coordinate B (x 2, y 2) to the y-axis, obtain a first intersection point D coordinate (x 1, y 2), then draw a line from the part coordinate a (x 1, y 1) and intersect with a second intersection point C point with the perpendicular extension line from the mark coordinate B (x 2, y 2) to the y-axis, so that an included angle of a set angle is formed between AC and AD, and connect ACB to obtain the horizontal indicating line.
Preferably, in step 3, the vertical indicator line is formed by forming a third intersection point E by drawing a perpendicular line from the part coordinate a (x 1, y 1) to the y-axis and a perpendicular extension line from the mark coordinate B (x 2, y 2) to the x-axis, obtaining a third intersection point E coordinate (x 2, y 1), then drawing a line from the part coordinate a (x 1, y 1) and intersecting the perpendicular extension line from the mark coordinate B (x 2, y 2) to the x-axis with a fourth F point, so that an included angle of a set angle is formed between the AE and the AF, and connecting the AFB to obtain the vertical indicator line.
Compared with the prior art, the invention has the beneficial effects that:
according to the invention, the indication lines are formed by establishing coordinates through the grids, so that the problem of coincidence of the indication lines and the outlines of the parts can be solved, and the efficiency of manufacturing the EPC two-dimensional plane graph is improved. The invention can effectively improve the definition and the identification degree of the EPC two-dimensional plane graph, thereby improving the product quality. By the method, the vertex coordinates of the hot zone for interaction can be obtained from the terminal coordinate values of the marking lines through a series of related coordinate conversion algorithms, and powerful basic bottom layer support is provided for the scheme of automatically marking the interactive area of the EPC two-dimensional plane graph.
Drawings
FIG. 1 is a schematic diagram of a grid diagram structure according to the present invention;
FIG. 2 is a schematic view of the process of step 2 in the present invention;
FIG. 3 is a schematic view of the present invention showing the formation of horizontal indicating lines;
FIG. 4 is a schematic diagram of the part coordinate A and the mark coordinate determination and grid removal in the present invention;
FIG. 5 is a block flow diagram of the present invention.
Detailed Description
The invention will now be further described with reference to the following examples, which are not to be construed as limiting the invention in any way, and any limited number of modifications which can be made within the scope of the claims of the invention are still within the scope of the claims of the invention.
As shown in fig. 1-5, the present invention provides a method for automatically marking an EPC picture, which includes the following processing steps:
step 1: deriving an unmarked EPC two-dimensional plane map, then establishing a grid map with the same size as the EPC two-dimensional plane map, and overlapping the grid map and the EPC two-dimensional plane map;
and 2, step: respectively coding grids corresponding to the part graphs in the EPC two-dimensional plane graph and grids for marking OE numbers on the grid graph, so that coordinate points with different values are formed on each grid;
and step 3: and respectively selecting a coordinate point of the position edge of the part and a coordinate point for marking the position edge corresponding to the OE number, and then connecting to form an indicating line. And after forming the indication lines and OE marks on the parts in the EPC two-dimensional plane map, removing the grid map and obtaining the EPC two-dimensional plane map with the marks.
In step 1 and step 2, a grid map is composed of 3x3 pixel small grids, and a coordinate point set Q = { (3m +2,3n + 2) | m =0,1,2.. N is formed in the grid map by taking the coordinate of a 1x1 pixel square in the middle of each small grid as a coordinate point; n =0,1,2.
In step 2, each small grid is subjected to identification coding through image identification. The image recognition processing procedure is that the method comprises the steps of traversing a coordinate point set Q = { (3m +2,3n + 2) | m =0,1,2.. N; n =0,1,2.. N }, identifying each coordinate point q epsilon 0, and if R is less than 255, g is less than 255, and b is less than 255 in the RGB values of the coordinate point q, setting the value of the coordinate point q to be 1, otherwise, setting the value of the coordinate point q to be 0.
The operation code is as follows:
Figure GDA0003944170280000041
Figure GDA0003944170280000051
in this embodiment, a two-dimensional plane view of the EPC without markers is derived in the 3D engineering software, and the positions of the parts and the positions of the OE numbers corresponding to the markers are selected by manually clicking with a mouse. RGB values, i.e., color values, RGB is a color standard in the industry, i.e., RGB represents the colors of three channels, red, green and blue, and the standard includes almost all colors that can be perceived by human vision, and is one of the most widely used color systems.
In step 3, the coordinate point with the edge value of 1 at the position where the part is located is selected as a part coordinate a (x 1, y 1), and the coordinate point with the edge value of 0 at the mark position with the OE number is selected as a mark coordinate B (x 2, y 2), wherein the part coordinate a (x 1, y 1) is the most marginal coordinate point at the position where the part is located, so that the indication line cannot coincide with the contour of the part. When the part coordinates A (x 1, y 1) are determined, the RGB values of the part coordinates A (x 1, y 1) are also judged, if R <255, G <255 and B <255 in the RGB values of the part coordinates A (x 1, y 1), the point is selected and the coordinates are determined, otherwise, the point is abandoned and no part is selected, so that the operation is accurate and the definition and the recognition are ensured. The operation code is as follows:
Figure GDA0003944170280000052
Figure GDA0003944170280000061
after the part coordinate A (x 1, y 1) and the mark coordinate B (x 2, y 2) are determined, whether the formed indicating line is a horizontal indicating line or a vertical indicating line is judged; the judgment process is to compare | x1-x2| with | y1-y2| and to determine a transverse indicator line if | x1-x2| > | y1-y2 |; if | x1-x2| < = | y1-y2|, then it is a vertical indicator line.
In step 3, the forming process of the horizontal indicating line is to form a first intersection point D by leading a perpendicular line from the part coordinate a (x 1, y 1) to the x axis and a perpendicular extension line from the mark coordinate B (x 2, y 2) to the y axis, obtain a first intersection point D coordinate (x 1, y 2), then lead out a line from the part coordinate a (x 1, y 1) and intersect the perpendicular extension line from the mark coordinate B (x 2, y 2) to the y axis at a second intersection point C, so that a set 45-degree included angle is formed between the AC and the AD, and connect the ACB to obtain the horizontal indicating line. In this embodiment, the processing manner of the vertical indicating line is similar to that of the horizontal indicating line, the vertical indicating line is formed by forming a third intersection point E by drawing a perpendicular line from the part coordinate a (x 1, y 1) to the y axis and drawing a perpendicular extension line from the mark coordinate B (x 2, y 2) to the x axis, obtaining a third intersection point E coordinate (x 2, y 1), then drawing a line from the part coordinate a (x 1, y 1) and intersecting the perpendicular extension line from the mark coordinate B (x 2, y 2) to the x axis with a fourth F point, so that an included angle of 45 degrees is formed between AE and AF, and connecting AFB to obtain the vertical indicating line. In addition, the included angle may be 30 degrees, 40 degrees, 50 degrees, or 60 degrees.
The above is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that several variations and modifications can be made without departing from the structure of the present invention, which will not affect the effect of the implementation of the present invention and the utility of the patent.

Claims (3)

1. A method for automatically marking EPC pictures is characterized by comprising the following processing steps:
step 1: deriving an unmarked EPC two-dimensional plane map, then establishing a grid map with the same size as the EPC two-dimensional plane map, and overlapping the grid map and the EPC two-dimensional plane map;
the grid map consists of 3x3 pixel small grids, and a coordinate point set Q = (3m +2,3n + 2) | m =0,1,2.. N is formed in the grid map by taking the coordinates of 1x1 pixel grids in the middle of each small grid as coordinate points; n =0,1,2.. N };
step 2: respectively coding grids corresponding to the part graphs in the EPC two-dimensional plane graph and grids for marking OE numbers on the grid graph, so that coordinate points with different values are formed on each grid;
identifying and coding each small grid through image identification; the image recognition processing process is that the coordinate point set Q = { (3m +2,3n + 2) | m =0,1,2.. N is traversed; n =0,1,2.. N }, identifying each coordinate point q ∈ O, if R <255, g-restricted 255 and b-restricted 255 in RGB values of the coordinate point q, setting the value of the coordinate point q to be 1, otherwise, setting the value to be 0;
and step 3: respectively selecting a coordinate point of the position edge of the spare and accessory part and a coordinate point for marking the position edge corresponding to the OE number, and then connecting to form an indicating line;
the coordinate point with the value of 1 of the edge of the position where the selected part is located is a part coordinate A (x 1, y 1), and the coordinate point with the value of 0 of the edge of the position marked by the OE number is a marked coordinate B (x 2, y 2);
when the component coordinates A (x 1, y 1) are determined, the RGB values of the component coordinates A (x 1, y 1) are also judged, if R <255, G < -255 and B < -255 in the RGB values of the component coordinates A (x 1, y 1), the point is selected and the coordinates are determined, otherwise, the point is abandoned and no component is selected;
after the part coordinate A (x 1, y 1) and the mark coordinate B (x 2, y 2) are determined, whether the formed indicating line is a horizontal indicating line or a vertical indicating line is judged; the judgment process is to compare the size of | x1-x2| with | y1-y2|, and if | x1-x2| > | y1-y2|, the judgment process is to be a transverse indicator line; if | x1-x2| < = | y1-y2|, then it is a vertical indicator line.
2. The method for automatically marking EPC pictures according to claim 1, wherein in step 3, the horizontal indicating line is formed by forming a first intersection point D by drawing a perpendicular line from the part coordinate A (x 1, y 1) to the x-axis and a perpendicular extension line from the marking coordinate B (x 2, y 2) to the y-axis, obtaining a first intersection point D coordinate (x 1, y 2), drawing a line from the part coordinate A (x 1, y 1) and intersecting the perpendicular extension line from the marking coordinate B (x 2, y 2) to the y-axis at a second intersection point C, so that an included angle of a set angle is formed between AC and AD, and connecting ACB to obtain the horizontal indicating line.
3. The method of claim 1, wherein in step 3, the vertical indication line is formed by drawing a perpendicular line from the part coordinate a (x 1, y 1) to the y-axis and a perpendicular extension line from the mark coordinate B (x 2, y 2) to the x-axis to form a third intersection point E, obtaining a third intersection point E coordinate (x 2, y 1), drawing a line from the part coordinate a (x 1, y 1) and intersecting a fourth F point with the perpendicular extension line from the mark coordinate B (x 2, y 2) to the x-axis, so that an included angle of a set angle is formed between AE and AF, and connecting AFB to obtain the vertical line.
CN201811181643.5A 2018-10-11 2018-10-11 Method for automatically marking EPC picture Active CN109345607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811181643.5A CN109345607B (en) 2018-10-11 2018-10-11 Method for automatically marking EPC picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811181643.5A CN109345607B (en) 2018-10-11 2018-10-11 Method for automatically marking EPC picture

Publications (2)

Publication Number Publication Date
CN109345607A CN109345607A (en) 2019-02-15
CN109345607B true CN109345607B (en) 2023-02-28

Family

ID=65308982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811181643.5A Active CN109345607B (en) 2018-10-11 2018-10-11 Method for automatically marking EPC picture

Country Status (1)

Country Link
CN (1) CN109345607B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751597A (en) * 1994-08-15 1998-05-12 Fujitsu Limited CAD apparatus for LSI or printed circuit board
CN105183178A (en) * 2015-09-06 2015-12-23 广州南馨网络科技有限公司 Virtual VIN input keyboard and operation method thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW338868B (en) * 1997-09-12 1998-08-21 Image scanner and fast positioning method
EP1136951A3 (en) * 2000-03-23 2004-11-24 Optimod Software Systems, Ltd. Method for accelerating mesh generation
JP2007043049A (en) * 2004-12-20 2007-02-15 Matsushita Electric Ind Co Ltd Cell, standard cell, standard cell arrangement method, standard cell library, and semiconductor integrated circuit
US7362325B2 (en) * 2004-12-21 2008-04-22 Qualcomm Incorporated 2D/3D line rendering using 3D rasterization algorithms
WO2010105084A1 (en) * 2009-03-11 2010-09-16 Fugoo LLC A graphical user interface for the representation of and interaction with one or more objects
CN103377303A (en) * 2012-04-28 2013-10-30 鸿富锦精密工业(深圳)有限公司 Curve surface measurement system and method
CN105676670B (en) * 2014-11-18 2019-07-19 北京翼虎能源科技有限公司 For handling the method and system of multi-energy data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5751597A (en) * 1994-08-15 1998-05-12 Fujitsu Limited CAD apparatus for LSI or printed circuit board
CN105183178A (en) * 2015-09-06 2015-12-23 广州南馨网络科技有限公司 Virtual VIN input keyboard and operation method thereof

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
A code-based approach for labeling in complex irregular regions;Zhi-longLi 等;《Journal of Zhejiang University(Science A:An International Applied Physics & Engineering Journal)》;20091015(第10期);第70-80页 *
Automatic placement and routing technology for interactive 3D application;万旺根等;《Journal of Shanghai University(English Edition)》;20100415(第02期);第52-56页 *
CYCAD空间网格结构辅助设计软件的开发与进展;陈月明,叶继红;《工业建筑》;19990330(第03期);第56-59页 *
基于三维特征建模的汽车车身工程图转换的实现;鞠春雷等;《湖南大学学报(自然科学版)》;20020630(第03期);第54-58页 *
基于面向对象技术的车用发动机CAD系统研究;马幼鸣等;《制造业自动化》;19970315(第01期);第15-17+58页 *
标注自动布局的网格化方法;黄学良等;《计算机辅助设计与图形学学报》;20080815(第08期);第116-123页 *
轴类零件三维尺寸自动标注算法;王勃等;《北京航空航天大学学报》;20121129(第06期);第122-127页 *

Also Published As

Publication number Publication date
CN109345607A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN110047109B (en) Camera calibration plate based on self-identification mark and identification detection method thereof
CN107507167B (en) Cargo tray detection method and system based on point cloud plane contour matching
CN1421020B (en) Image processing apparatus
JP5699788B2 (en) Screen area detection method and system
CN110765992B (en) Seal identification method, medium, equipment and device
CN101398907B (en) Two-dimension code structure and decoding method for movable robot
CN114140679A (en) Defect fusion method, device, recognition system and storage medium
US8670605B2 (en) Identification method of data point distribution area on coordinate plane and recording medium
CN108846401A (en) Commodity detect terminal, method, system and computer equipment, readable medium
CN109215016B (en) Identification and positioning method for coding mark
WO2015019526A1 (en) Image processing device and markers
CN103400373A (en) Method for automatically identifying and positioning coordinates of image point of artificial mark in camera calibration control field
CN110569774A (en) An Automatic Digitization Method of Line Chart Image Based on Image Processing and Pattern Recognition
CN110490887B (en) 3D vision-based method for quickly identifying and positioning edges of rectangular packages
CN110807807A (en) A pattern, method, device and equipment for target positioning of monocular vision
CN111222507A (en) Automatic identification method of digital meter reading, computer readable storage medium
CN113177941B (en) Steel coil edge crack identification method, system, medium and terminal
CN109685764B (en) Product positioning method and device and terminal equipment
CN105741268B (en) A kind of vision positioning method based on colored segment and its topological relation
CN109727282A (en) A kind of Scale invariant depth map mapping method of 3-D image
CN115187769B (en) Positioning method and device
JP2019211981A (en) Information processor, information processor controlling method and program
CN109345607B (en) Method for automatically marking EPC picture
CN115063578A (en) Method and device for detecting and positioning target object in chip image and storage medium
CN108665439B (en) Substrate detection method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant