CN109345607A - A kind of automatic label EPC picture approach - Google Patents

A kind of automatic label EPC picture approach Download PDF

Info

Publication number
CN109345607A
CN109345607A CN201811181643.5A CN201811181643A CN109345607A CN 109345607 A CN109345607 A CN 109345607A CN 201811181643 A CN201811181643 A CN 201811181643A CN 109345607 A CN109345607 A CN 109345607A
Authority
CN
China
Prior art keywords
coordinate
epc
spare
accessory parts
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.)
Granted
Application number
CN201811181643.5A
Other languages
Chinese (zh)
Other versions
CN109345607B (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

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of automatic label EPC picture approach, this method includes following processing step: step 1: exporting unmarked EPC 2 d plane picture, then establish a grid chart identical with EPC 2 d plane picture size and carry out with EPC 2 d plane picture grid chart be overlapped;Step 2: by the corresponding grid of spare and accessory parts figure in EPC 2 d plane picture and being used for the grid of OE labelled notation on grid chart and encode respectively, so that each grid protocol is provided with the coordinate points of different value;Step 3: selecting the coordinate points at spare and accessory parts position edge and the coordinate points for marking the corresponding position OE edge respectively, then connection forms index line.It is able to solve index line and spare and accessory parts contour convergence problem through the invention, improves the efficiency of production EPC 2 d plane picture.

Description

A kind of automatic label EPC picture approach
Technical field
The present invention relates to picture process fields, more particularly to a kind of automatic label EPC picture approach.
Background technique
EPC is the abbreviation of electronic parts catalog (electronic components catalogue), refers to each money of each vehicle factor Automobile component, No. OE of spare and accessory parts, the catalogue of information or order.Automobile parts electronic directory be automotive supplier for convenience The software that the data such as all vehicles of oneself production, automobile parts information are checked and are weaved into, can be convenient by software Ground browses installation diagram, exploded view, the part drawing of whole all components of car, easily searches components.
Traditional automobile EPC figure is by 3D engineering design software design, and engineer can mark in 3D engineering design software No. OE of corresponding spare and accessory parts.But the index line of 3D engineering design software is often Chong Die with the formation of spare and accessory parts profile itself, thus The user of EPC 2 d plane picture is interfered, many derived EPC 2 d plane pictures also need the later period to pass through image procossing Software modifies index line and label again.
Summary of the invention
It is an object of the present invention to provide a kind of automatic label EPC picture approach, are able to solve index line and spare and accessory parts profile COINCIDENCE PROBLEMS improves the efficiency of production EPC 2 d plane picture.
To realize the purpose, a kind of automatic label EPC picture approach is provided, this method includes following processing step:
Step 1: export unmarked EPC 2 d plane picture, then establish one it is identical with EPC 2 d plane picture size Grid chart and grid chart is carried out with EPC 2 d plane picture be overlapped;
Step 2: by the corresponding grid of spare and accessory parts figure in EPC 2 d plane picture and being used for OE labelled notation on grid chart Grid is encoded respectively, so that each grid protocol is provided with the coordinate points of different value;
Step 3: selecting the coordinate points at spare and accessory parts position edge and the coordinate for marking the corresponding position OE edge respectively Point, then connection forms index line.
Preferably, in step 1 step 2, the grid chart is made of 3x3 pixel small grid, with each in grid chart The coordinate of the 1x1 pixel grid of small grid center be coordinate points formed coordinate point set Q=(3m+2,3n+2) | m=0,1, 2...N;N=0,1,2...N }.
Preferably, in step 2, identification coding is carried out to each small grid by image recognition.
Preferably, described image identification processing procedure be by traversal coordinate point set Q=(3m+2,3n+2) | m=0,1, 2...N;N=0,1,2...N }, each coordinate points q ∈ O is identified, if R < 255 in the rgb value of coordinate points q, G < 255, B < 255, then the value that coordinate points q is arranged is 1, is otherwise provided as 0.
Preferably, in step 3, selecting the value at spare and accessory parts position edge for 1 coordinate points is spare and accessory parts coordinate A (x1, y1), select the value at OE labelled notation position edge for 0 coordinate points be label coordinate B (x2, y2)
Preferably, also the rgb value of spare and accessory parts coordinate A (x1, y1) is sentenced when determining spare and accessory parts coordinate A (x1, y1) It is disconnected, if R < 255 in the rgb value of spare and accessory parts coordinate A (x1, y1), G < 255, B < 255, then choose the point and return to coordinate into Row determines, conversely, then abandoning the point and prompting not select spare and accessory parts.
Preferably, it is determining spare and accessory parts coordinate A (x1, y1) and coordinate B (x2, y2) is marked to judge that the index line to be formed is afterwards Horizontal index line still erects index line;Deterministic process is comparison | x1-x2 | with | y1-y2 | size, if | x1-x2 | > | y1-y2 |, It is then lateral index line;If | x1-x2 |≤| y1-y2 |, for vertical index line.
Preferably, in step 3, the forming process of horizontal index line is by drawing from spare and accessory parts coordinate A (x1, y1) to x-axis Vertical line and from label coordinate B (x2, y2) to y-axis draw vertical extension line formed the first intersection point D, obtain the first intersection point D coordinate (x1, Y2), then the vertical extension line that a line and label coordinate B (x2, y2) draw to y-axis is drawn from spare and accessory parts coordinate A (x1, y1) to hand over In the second intersection point C point, so that forming the angle of set angle between AC and AD, connection ACB obtains horizontal index line.
Preferably, in step 3, the forming process of vertical index line is by from spare and accessory parts coordinate A (x1, y1) to y-axis Draw vertical line and draw vertical extension line to x-axis from label coordinate B (x2, y2) and form third intersection point E, obtains third intersection point E coordinate (x2, y1) then draws the vertical extension that a line and label coordinate B (x2, y2) draw to x-axis from spare and accessory parts coordinate A (x1, y1) Line meets at the 4th F point, so that forming the angle of set angle between AE and AF, connection AFB obtains vertical index line.
Compared with prior art, the present invention the beneficial effect is that:
Coordinate is established by grid in the present invention and forms index line, index line is able to solve and is asked with spare and accessory parts contour convergence Topic improves the efficiency of production EPC 2 d plane picture.Can effectively improve through the invention EPC 2 d plane picture clarity and Resolution, to improve product quality.Make through the invention it is subsequent can be by a series of relevant coordinates transformation methods, from mark Infusing line end coordinates is worth for interactive hot-zone apex coordinate, is that EPC 2 d plane picture automatic marking can interaction area side Case provides strong subfoundation support.
Detailed description of the invention
Fig. 1 is grid figure structure schematic representation of the invention;
Fig. 2 is the process schematic of step 2 in the present invention;
Fig. 3 is that horizontal index line forms schematic diagram in the present invention;
Fig. 4 is spare and accessory parts coordinate A in the present invention and the determination of label coordinate and removes grid schematic diagram;
Fig. 5 is flow diagram of the invention.
Specific embodiment
Below with reference to embodiment, the invention will be further described, but does not constitute any limitation of the invention, any In the modification for the limited times that scope of the invention as claimed is made, still in scope of the presently claimed invention.
As Figure 1-Figure 5, the present invention provides a kind of automatic label EPC picture approach, this method includes following processing Step:
Step 1: export unmarked EPC 2 d plane picture, then establish one it is identical with EPC 2 d plane picture size Grid chart and grid chart is carried out with EPC 2 d plane picture be overlapped;
Step 2: by the corresponding grid of spare and accessory parts figure in EPC 2 d plane picture and being used for OE labelled notation on grid chart Grid is encoded respectively, so that each grid protocol is provided with the coordinate points of different value;
Step 3: selecting the coordinate points at spare and accessory parts position edge and the coordinate for marking the corresponding position OE edge respectively Point, then connection forms index line.After each part forms index line and OE labelled notation in EPC 2 d plane picture, grid is removed Scheme and obtain the EPC 2 d plane picture of tape label.
In step 1 step 2, grid chart is made of 3x3 pixel small grid, with each small grid center in grid chart The coordinate of 1x1 pixel grid be coordinate points formed coordinate point set Q=(3m+2,3n+2) | m=0,1,2...N;N=0,1, 2...N}。
In step 2, identification coding is carried out to each small grid by image recognition.Image recognition processing process be by time Go through coordinate point set Q=(3m+2,3n+2) | m=0,1,2...N;N=0,1,2...N }, each coordinate points q ∈ O is known Not, if R < 255, G < 255, B < 255 in the rgb value of coordinate points q, then the value that coordinate points q is arranged is 1, is otherwise provided as 0.
In step 2, identification coding is carried out to each small grid by image recognition.Image recognition processing process be by time Go through coordinate point set Q=(3m+2,3n+2) | m=0,1,2...N;N=0,1,2...N }, each coordinate points q ∈ O is known Not, if R < 255, G < 255, B < 255 in the rgb value of coordinate points q.The value that coordinate points q is so arranged is 1, is otherwise provided as 0. Operation code:
In the present embodiment, export unmarked EPC 2 d plane picture in 3D engineering design software, spare and accessory parts position and The corresponding position OE is marked to click selection by artificial mouse.Rgb value, that is, color value, RGB are a kind of color standards of industry, RGB is the color for representing three channels of red, green, blue, this standard almost includes all face that human eyesight can perceive Color is current with most wide one of color system.
In step 3, selecting the value at spare and accessory parts position edge for 1 coordinate points is spare and accessory parts coordinate A (x1, y1), Select the value at OE labelled notation position edge for 0 coordinate points be label coordinate B (x2, y2), wherein spare and accessory parts coordinate A (x1, y1) For the most marginal coordinate points in spare and accessory parts position, so that index line will not be with spare and accessory parts contour convergence.Determining that zero matches Also the rgb value of spare and accessory parts coordinate A (x1, y1) is judged when part coordinate A (x1, y1), if spare and accessory parts coordinate A (x1, y1) R < 255 in rgb value, G < 255, B < 255 are then chosen the point and are returned and are determined to coordinate, conversely, then abandon the point and Prompt does not select spare and accessory parts, so that operation is accurate, it is ensured that clarity and resolution.Operation code:
It is determining spare and accessory parts coordinate A (x1, y1) and coordinate B (x2, y2) is marked to judge the index line to be formed as horizontal instruction afterwards Line still erects index line;Deterministic process is comparison | x1-x2 | with | y1-y2 | size, if | x1-x2 | > | y1-y2 |, for cross To index line;If | x1-x2 |≤| y1-y2 |, for vertical index line.
In step 3, the forming process of horizontal index line be by from spare and accessory parts coordinate A (x1, y1) to x-axis draw vertical line and from Label coordinate B (x2, y2) draws vertical extension line to y-axis and forms the first intersection point D, obtains the first intersection point D coordinate (x1, y2), then The vertical extension line that a line and label coordinate B (x2, y2) draw to y-axis, which is drawn, from spare and accessory parts coordinate A (x1, y1) meets at the second friendship Point C point, so that forming the angle of 45 degree of setting between AC and AD, connection ACB obtains horizontal index line.In the present embodiment, vertically The processing mode of index line is similar to the processing mode of horizontal index line, and the forming process of vertical index line is by sitting from spare and accessory parts Mark A (x1, y1) draws vertical line and draw vertical extension line to x-axis from label coordinate B (x2, y2) to y-axis forms third intersection point E, obtains Third intersection point E coordinate (x2, y1) then draws a line and label coordinate B (x2, y2) to x from spare and accessory parts coordinate A (x1, y1) The vertical extension line that axis draws meets at the 4th F point, so that forming the angle of 45 degree of setting between AE and AF, connection AFB obtains vertical Index line.In addition, angle, which can also be, is set to 30 degree or 40 degree or 50 degree or 60 degree.
The above is only the preferred embodiment of the present invention, it should be pointed out that for those skilled in the art, is not taking off Under the premise of from structure of the invention, several modifications and improvements can also be made, these all will not influence the effect that the present invention is implemented And patent practicability.

Claims (9)

1. a kind of automatic label EPC picture approach, which is characterized in that this method includes following processing step:
Step 1: exporting unmarked EPC 2 d plane picture, then establish a grid identical with EPC 2 d plane picture size Scheme and carries out grid chart with EPC 2 d plane picture be overlapped;
Step 2: by the corresponding grid of spare and accessory parts figure in EPC 2 d plane picture and being used for the grid of OE labelled notation on grid chart It is encoded respectively, so that each grid protocol is provided with the coordinate points of different value;
Step 3: selecting the coordinate points at spare and accessory parts position edge and the coordinate points for marking the corresponding position OE edge respectively, then Connection forms index line.
2. a kind of automatic label EPC picture approach according to claim 1, which is characterized in that in step 1 step 2, institute It states grid chart to be made of 3x3 pixel small grid, the coordinate of the 1x1 pixel grid hit exactly in grid chart with each small grid is to sit One coordinate point set Q=of punctuate formation (3m+2,3n+2) | m=0,1,2...N;N=0,1,2...N }.
3. a kind of automatic label EPC picture approach according to claim 2, which is characterized in that in step 2, pass through figure As identification carries out identification coding to each small grid.
4. a kind of automatic label EPC picture approach according to claim 3, which is characterized in that described image identifying processing Process be by traversal coordinate point set Q=(3m+2,3n+2) | m=0,1,2...N;N=0,1,2...N }, to each coordinate Point q ∈ O is identified, if R < 255 in the rgb value of coordinate points q, G < 255, B < 255, then the value that coordinate points q is arranged is 1, no Then it is set as 0.
5. a kind of automatic label EPC picture approach according to claim 1 or 4, which is characterized in that in step 3, selection The coordinate points that the value at spare and accessory parts position edge is 1 are spare and accessory parts coordinate A (x1, y1), select OE labelled notation position edge The coordinate points that value is 0 are label coordinate B (x2, y2).
6. a kind of automatic label EPC picture approach according to claim 5, which is characterized in that determining spare and accessory parts coordinate A Also the rgb value of spare and accessory parts coordinate A (x1, y1) is judged when (x1, y1), if R in the rgb value of spare and accessory parts coordinate A (x1, y1) < 255, G < 255, B < 255 are then chosen the point and are returned and are determined to coordinate, conversely, then abandoning the point and prompting not having Spare and accessory parts are selected.
7. a kind of automatic label EPC picture approach according to claim 5, which is characterized in that determining spare and accessory parts coordinate A (x1, y1) and label coordinate B (x2, y2) judge that the index line to be formed still erects index line as horizontal index line afterwards;Deterministic process is Comparison | x1-x2 | with | y1-y2 | size, if | x1-x2 | > | y1-y2 |, for lateral index line;If | x1-x2 |≤| y1- Y2 |, then it is vertical index line.
8. a kind of automatic label EPC picture approach according to claim 7, which is characterized in that in step 3, horizontal instruction The forming process of line is by drawing vertical line from spare and accessory parts coordinate A (x1, y1) to x-axis and drawing from label coordinate B (x2, y2) to y-axis Vertical extension line forms the first intersection point D, obtains the first intersection point D coordinate (x1, y2), then draws from spare and accessory parts coordinate A (x1, y1) The vertical extension line that one line and label coordinate B (x2, y2) draw to y-axis meets at the second intersection point C point, sets so that being formed between AC and AD Determine the angle of angle, connection ACB obtains horizontal index line.
9. a kind of automatic label EPC picture approach according to claim 7, which is characterized in that in step 3, vertically refer to The forming process of timberline is by drawing vertical line from spare and accessory parts coordinate A (x1, y1) to y-axis and from label coordinate B (x2, y2) to x-axis Draw vertical extension line and form third intersection point E, obtains third intersection point E coordinate (x2, y1), then draw from spare and accessory parts coordinate A (x1, y1) The vertical extension line that a line and label coordinate B (x2, y2) draw to x-axis out meets at the 4th F point, so that forming setting between AE and AF The angle of angle, connection AFB obtain vertical index 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 true CN109345607A (en) 2019-02-15
CN109345607B 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 (9)

* 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
US6229629B1 (en) * 1997-09-12 2001-05-08 Mustek Systems Inc. Device and method for quick and precise determination of scan start point for image scanner
EP1136951A2 (en) * 2000-03-23 2001-09-26 Optimod Software Systems, Ltd. Method for accelerating mesh generation
US20060132495A1 (en) * 2004-12-21 2006-06-22 Anderson Michael H 2D/3D line rendering using 3D rasterization algorithms
US20060136848A1 (en) * 2004-12-20 2006-06-22 Matsushita Electric Industrial Co., Ltd. Cell, standard cell, standard cell library, a placement method using standard cell, and a semiconductor integrated circuit
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
US20130289937A1 (en) * 2012-04-28 2013-10-31 Hon Hai Precision Industry Co., Ltd. Computing device and method of measuring surface dimensions of objects
CN105183178A (en) * 2015-09-06 2015-12-23 广州南馨网络科技有限公司 Virtual VIN input keyboard and operation method thereof
CN105676670A (en) * 2014-11-18 2016-06-15 北京翼虎能源科技有限公司 Method and system for processing energy data

Patent Citations (9)

* 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
US6229629B1 (en) * 1997-09-12 2001-05-08 Mustek Systems Inc. Device and method for quick and precise determination of scan start point for image scanner
EP1136951A2 (en) * 2000-03-23 2001-09-26 Optimod Software Systems, Ltd. Method for accelerating mesh generation
US20060136848A1 (en) * 2004-12-20 2006-06-22 Matsushita Electric Industrial Co., Ltd. Cell, standard cell, standard cell library, a placement method using standard cell, and a semiconductor integrated circuit
US20060132495A1 (en) * 2004-12-21 2006-06-22 Anderson Michael H 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
US20130289937A1 (en) * 2012-04-28 2013-10-31 Hon Hai Precision Industry Co., Ltd. Computing device and method of measuring surface dimensions of objects
CN105676670A (en) * 2014-11-18 2016-06-15 北京翼虎能源科技有限公司 Method and system for processing energy data
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
ZHI-LONGLI 等: "A code-based approach for labeling in complex irregular regions", 《JOURNAL OF ZHEJIANG UNIVERSITY(SCIENCE A:AN INTERNATIONAL APPLIED PHYSICS & ENGINEERING JOURNAL)》 *
万旺根等: "Automatic placement and routing technology for interactive 3D application", 《JOURNAL OF SHANGHAI UNIVERSITY(ENGLISH EDITION)》 *
王勃等: "轴类零件三维尺寸自动标注算法", 《北京航空航天大学学报》 *
陈月明,叶继红: "CYCAD空间网格结构辅助设计软件的开发与进展", 《工业建筑》 *
鞠春雷等: "基于三维特征建模的汽车车身工程图转换的实现", 《湖南大学学报(自然科学版)》 *
马幼鸣等: "基于面向对象技术的车用发动机CAD系统研究", 《制造业自动化》 *
黄学良等: "标注自动布局的网格化方法", 《计算机辅助设计与图形学学报》 *

Also Published As

Publication number Publication date
CN109345607B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
CN109948590B (en) Attitude problem detection method and device
CN103839058A (en) Information locating method for document image based on standard template
CN106251353A (en) Weak texture workpiece and the recognition detection method and system of three-dimensional pose thereof
CN102467513B (en) Image searching method and system
CN103377487A (en) Information processing apparatus, display control method, and program
CN104658030B (en) The method and apparatus of secondary image mixing
CN103345736A (en) Virtual viewpoint rendering method
CN109348731A (en) A kind of method and device of images match
CN105678318A (en) Traffic label matching method and apparatus
CN109272569A (en) A kind of method that autocad builds X-Y scheme rapidly extracting and generates floor contour line
CN107203962B (en) Method for making pseudo-3D image by using 2D picture and electronic equipment
CN112862881A (en) Road map construction and fusion method based on crowd-sourced multi-vehicle camera data
CN106599010B (en) Graph code searching method
CN109543525B (en) Table extraction method for general table image
US8712164B2 (en) Image processing apparatus, image registering method, program causing computer to execute image registering method, and recording medium in which program is recorded
CN107358244B (en) A kind of quick local invariant feature extracts and description method
CN108924434A (en) A kind of three-dimensional high dynamic-range image synthesis method based on exposure transformation
CN109345607A (en) A kind of automatic label EPC picture approach
CN102663665B (en) Display method and edit method of stereo image graphic label with adaptive depth
WO2020237822A1 (en) Learning type intelligent parking method and system
CN109753958A (en) Image character recognition methods
CN106056599B (en) A kind of object recognition algorithm and device based on Object Depth data
CN111429549B (en) Route image generation method, device and storage medium
CN107274456A (en) A kind of recognition methods of picture format and device
CN116704518A (en) Text recognition method and device, electronic equipment and storage medium

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