[go: up one dir, main page]

CN100501751C - Device and method for 3D rough reconstruction design of gemstones based on machine vision - Google Patents

Device and method for 3D rough reconstruction design of gemstones based on machine vision Download PDF

Info

Publication number
CN100501751C
CN100501751C CNB2007100727730A CN200710072773A CN100501751C CN 100501751 C CN100501751 C CN 100501751C CN B2007100727730 A CNB2007100727730 A CN B2007100727730A CN 200710072773 A CN200710072773 A CN 200710072773A CN 100501751 C CN100501751 C CN 100501751C
Authority
CN
China
Prior art keywords
design
blank
processor
dimensional
gemstone
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.)
Expired - Fee Related
Application number
CNB2007100727730A
Other languages
Chinese (zh)
Other versions
CN101118570A (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.)
Shao Chengxun
Original Assignee
Shao Chengxun
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 Shao Chengxun filed Critical Shao Chengxun
Priority to CNB2007100727730A priority Critical patent/CN100501751C/en
Publication of CN101118570A publication Critical patent/CN101118570A/en
Application granted granted Critical
Publication of CN100501751C publication Critical patent/CN100501751C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

A device and a method for reconstruction designing of the precious stone three-dimensional blank based on mechanical vision relates to a device and a method for reconstruction cutting work designing of the precious stone three-dimensional blank based on mechanical vision method, so as to solve the problems that the blank reconstruction device of the existing precious stone is complicated in structure and expensive in cost; as well as the designing method exists the problems that the designing method cannot support automatic designing, the manual design parameter process is fussy and wastes a long time, the experience of the designer is depended on very much, and the best design is very difficult to achieve. The signal output terminal of the picture collection equipment of the present invention is connected with the signal input terminal of the processing system, the control input terminal of the rotate platform equipment and the illumination equipment are connected with the control output terminal of the processing system, the output light of the illumination equipment supplies the input terminal of the picture collection equipment. The method and the step of the present invention is as follows: step one, start; step two, blank reconstruction; step three, cutting work designing; step four, three-dimensional modeling. The present invention has the advantages that the testing time is short, the cutting work designing is flexible and the cost performance is high, and is convenient for users to purchase and apply.

Description

Device and method based on the design of the gem three-dimensional blank reconstruction of machine vision
Technical field
The present invention relates to a kind of jewel blank design system, be specifically related to a kind of device and method that carries out jewel blank reconstruction cutting work designing based on machine vision method.
Background technology
The jewel cutting work designing is a most important procedure in the gem processing technological process, need weigh index, finds out an equilibrium point.The quality of jewel cutting work designing directly has influence on this jewel commercial value in the future.It requires the deviser accurately measuring on the basis of jewel blank, according to having experience and customer requirement to be optimized design, needs very strong space imagining ability and abundant gem processing and commercial experience.Existing manual mode can't meet the demands along with the increasingly sophisticated and demand of customer requirements continues to increase, thereby intellectual technology and Automatic Measurement Technique must be introduced the jewel design field.
The method that the reconstruct of workpiece 3D shape is mainly adopted is structured light scanning reconstruct and multiple-camera imaging method.First kind method precision height, algorithm are ripe relatively, existing lot of research and preliminary realization industrialization in this field at present, as products such as three-dimensional imaging instrument and spatial digitizers, yet the common complex structure of this series products involves great expense, and can't realize miniaturization and requirement cheaply; Second class methods then need to use a plurality of video cameras and carry out precise synchronization, there is the high problem of complex structure and hardware cost equally, existing restructing algorithm is generally only considered the smooth object surface, when having the jewel blank of corner angle or obvious face feature, processing can occur than mistake, and can't be as measurement result and further design use.For the jewel cutting work designing, at present existing multiclass cut Autocad, as GemCAD, JewelCAD etc., can design 3-D display jewel cut and comparing result according to the user, shortcoming is not support automatic design, observations after the necessary one group of parameter of manual designs of user, adjust parameter repeatedly until finally reaching satisfied result according to the result again, whole process is loaded down with trivial details, and length consuming time generally needs dozens of minutes even a few hours just can finish, and the result seriously relies on deviser's experience, is difficult to reach optimal design.
Summary of the invention
The present invention is the complex structure that solves existing jewel blank reconstruction device existence, the problem that involves great expense; And method for designing exist do not support automatic design, the loaded down with trivial details length consuming time of manual design parameter process, too rely on deviser's experience, be difficult to reach the problem of optimal design, a kind of device and method of the gem three-dimensional blank reconstruction design based on machine vision is provided.
The device that designs based on the gem three-dimensional blank reconstruction of machine vision of the present invention is by image capture device 1, rotatable platform equipment 2, disposal system 3 and light fixture 4 are formed, the signal output part of image capture device 1 is connected with the signal input part of disposal system 3, the control input end of rotatable platform equipment 2 and light fixture 4 is connected with the control output end of disposal system 3, the output light of light fixture 4 is supplied with the input end of image capture device 1, described image capture device 1 is made up of video camera 1-1 and image pick-up card 1-2, the signal output part of video camera 1-1 is connected with the signal input part of image pick-up card 1-2, described rotatable platform equipment 2 is by platform body 2-1, drive motor 2-2 and device control card 2-3 form, the transmission output terminal of drive motor 2-2 and platform body 2-1 are in transmission connection, the control input end of the 2-2 of drive motor is connected with the control output end of device control card 2-3, described disposal system 3 is made up of processor 3-1 and display device 3-2, the signal input part of processor 3-1 is connected with the signal output part of image pick-up card 1-2, the signal output part of processor 3-1 is connected with the signal input part of display device 3-2, the control output end of processor 3-1 is connected with the control input end of device control card 2-3, described light fixture 4 comprises secondary light source 4-1, Fresnel Lenses 4-2 and camera lens 4-3, the control input end of secondary light source 4-1 is connected with the control output end of processor 3-1, secondary light source 4-1, Fresnel Lenses 4-2, jewel blank W to be measured, camera lens 4-3 and video camera 1-1 are provided with point-blank successively from right to left, and secondary light source 4-1 and video camera 1-1 are separately positioned on the focus place of Fresnel Lenses 4-2 and camera lens 4-3.
The method step of gem three-dimensional blank reconstruction design of the present invention is as follows:
Step 1, startup: jewel blank W to be measured is placed on the platform body 2-1, sends steering order by processor 3-1 and provide back lighting for platform body 2-1 for secondary light source 4-1;
Step 2, blank reconstruction: processor 3-1 drives platform body 2-1 by device control card 2-3 controlling and driving motor 2-2 with assigned rate and carries out the high precision rotation, gather the video of jewel blank W all angles to be measured by video camera 1-1, the video of gathering is converted into the multiframe digital image sequence by image pick-up card 1-2 and imports among the processor 3-1, the multiframe digital image sequence is calculated three-dimensional surface and the form parameter of jewel blank W to be measured by processor 3-1, and in processor 3-1 the shape of reconstruct jewel blank;
Step 3, cutting work designing: according to the cutting profile of the three-dimensionalreconstruction result of jewel blank W to be measured, jewel to be designed and follow the initial parameter that standard-required is optimized major axes orientation, the size parameter of jewel to be designed by processor 3-1 and calculated each cut surface, compare with the standard database that is kept among the processor 3-1 again, further obtain concrete parameter of each cut surface of jewel to be designed and complete final design result, and reconstruct and design result are kept in the processor 3-1 for consulting retrieval and printout;
Step 4, three-dimensional modeling: by processor 3-1 the 3D shape of jewel blank W to be measured and cutting parameter are provided with form in the mode of three-dimensional stack by the user by the OpenGL technology and are presented on the display device 3-2, and 3-D view is rotated, locally amplifies and jewel blank W to be measured and design result stack are shown.
The present invention has following characteristics:
(1) detection time short, every jewel blank detection time, only about 10 seconds, the cutting work designing time was about 20 seconds; It is convenient to measure, and only needs the jewel blank is arbitrarily placed on the rotation platform, need not manual calibrating position and can realize gem three-dimensional blank reconstruction and cutting work designing, the process full automation.
(2) cutting work designing is flexible, but design parameter is many, and it is accurate to optimize the result, not only can design single jewel cut according to cutting weight maximal criterion according to conventional method, and can finish flaw jewel cutting work designing, many jewels design simultaneously, can carry out manual correction to design result simultaneously; Design parameter not only comprises each cut surface and precious stone shape parameter, also comprises the main shaft three-dimensional, jewel rank, jewel cutting standard etc.
(3) show blank reconstruction and jewel design result intuitively with three dimensional constitution, by superpose with picture 3-D display jewel blank shape and cutting work designing result, the user can carry out the whole and any local facet of jewel intuitively, and with the contrast of former blank shape, allow the user design result to be revised simultaneously, unreasonable part is intuitively demonstrated false alarm by three-dimensional so that interactive mode is manual.
(4) based on the machine vision principle, use component equipments such as video camera, control card, secondary light source, homogeneous system need not special measuring appliance relatively, thereby easy to use, and the cost performance height is convenient to the user and is bought application.
Description of drawings:
Fig. 1 is the structural representation of apparatus of the present invention, and Fig. 2 is the process flow diagram of the inventive method, and Fig. 3 is the process flow diagram of blank reconstruction method, and Fig. 4 is the process flow diagram of cutting work designing method, and Fig. 5 is the process flow diagram of three-dimensional modeling method.
Embodiment
Embodiment one: referring to Fig. 1, the device of present embodiment is by image capture device 1, rotatable platform equipment 2, disposal system 3 and light fixture 4 are formed, the signal output part of image capture device 1 is connected with the signal input part of disposal system 3, the control input end of rotatable platform equipment 2 and light fixture 4 is connected with the control output end of disposal system 3, the output light of light fixture 4 is supplied with the input end of image capture device 1, described image capture device 1 is made up of video camera 1-1 and image pick-up card 1-2, the signal output part of video camera 1-1 is connected with the signal input part of image pick-up card 1-2, described rotatable platform equipment 2 is by platform body 2-1, drive motor 2-2 and device control card 2-3 form, the transmission output terminal of drive motor 2-2 and platform body 2-1 are in transmission connection, the control input end of the 2-2 of drive motor is connected with the control output end of device control card 2-3, described disposal system 3 is made up of processor 3-1 and display device 3-2, the signal input part of processor 3-1 is connected with the signal output part of image pick-up card 1-2, the signal output part of processor 3-1 is connected with the signal input part of display device 3-2, the control output end of processor 3-1 is connected with the control input end of device control card 2-3, described light fixture 4 comprises secondary light source 4-1, Fresnel Lenses 4-2 and camera lens 4-3, the control input end of secondary light source 4-1 is connected with the control output end of processor 3-1, secondary light source 4-1, Fresnel Lenses 4-2, jewel blank W to be measured, camera lens 4-3 and video camera 1-1 are provided with point-blank successively from right to left, and secondary light source 4-1 and video camera 1-1 are separately positioned on the focus place of Fresnel Lenses 4-2 and camera lens 4-3.The light fixture 4 of present embodiment can also increase laser diode 4-4 and slit lens 4-5, laser diode 4-4 is arranged on the focus place of slit lens 4-5, jewel blank W to be measured, slit lens 4-5 and laser diode 4-4 set gradually on an axis, and the straight line at this axis and Fresnel Lenses 4-2, jewel blank W to be measured and camera lens 4-3 place is in same surface level.When there is pit in jewel blank surface, open laser diode 4-4 emission laser, laser becomes linear light radiation to jewel blank surface after by slit lens 4-5, and the pit on jewel blank surface is discerned by the variation of light source projection straight line degree.
Embodiment two: referring to Fig. 2, the method step of present embodiment is:
Step 1, startup: jewel blank W to be measured is placed on the platform body 2-1, sends steering order by processor 3-1 and provide back lighting for platform body 2-1 for secondary light source 4-1;
Step 2, blank reconstruction: processor 3-1 drives platform body 2-1 by device control card 2-3 controlling and driving motor 2-2 with assigned rate and carries out the high precision rotation, gather the video of jewel blank W all angles to be measured by video camera 1-1, the video of gathering is converted into the multiframe digital image sequence by image pick-up card 1-2 and imports among the processor 3-1, the multiframe digital image sequence is calculated three-dimensional surface and the form parameter of jewel blank W to be measured by processor 3-1, and in processor 3-1 the shape of reconstruct jewel blank;
Step 3, cutting work designing: according to the cutting profile of the three-dimensionalreconstruction result of jewel blank W to be measured, jewel to be designed and follow the initial parameter that standard-required is optimized major axes orientation, the size parameter of jewel to be designed by processor 3-1 and calculated each cut surface, compare with the standard database that is kept among the processor 3-1 again, further obtain concrete parameter of each cut surface of jewel to be designed and complete final design result, and reconstruct and design result are kept in the processor 3-1 for consulting retrieval and printout;
Step 4, three-dimensional modeling: by processor 3-1 the 3D shape of jewel blank W to be measured and cutting parameter are provided with form in the mode of three-dimensional stack by the user by the OpenGL technology and are presented on the display device 3-2, and 3-D view is rotated, locally amplifies and jewel blank W to be measured and design result stack are shown.
Embodiment three: referring to Fig. 3, the difference of present embodiment and embodiment two is that the step of blank reconstruction of step 3 is as follows: steps A, start rotating machinery: start video camera 1-1 and rotatable platform body 2-1, drive platform body 2-1 by device control card 2-3 controlling and driving motor 2-2 with assigned rate and carry out the high precision rotation; Step B, image acquisition: by video camera 1-1 jewel blank W to be measured is carried out image acquisition, and the image that collects is sent to processor 3-1 by image pick-up card 1-2; Step C, image pre-service: remove noise, thresholding, jewel blank W to be measured is carried out image segmentation; Step D, the match of jewel outline polygon: from quadrilateral, increase the limit number gradually, surround error less than specifying numerical value until polygon and jewel profile; Step e, calculate each apex coordinate: at first calculate the two-dimensional coordinate on each summit of polygon, then according to current platform angle and table top center calculation summit depth information; Step F, judgement collection finish: judge whether platform body 2-1 rotates a circle, and is, then image acquisition process is finished, and turns to step G, not, then return step B; Step G, divide network: use Delaunday to improve algorithm and divide according to the three-dimensional vertices coordinate; Step H, computing grid normal vector, grid optimization: be optimized according to network flatness constraint, to each grid computing normal vector and with the distance at platform center, calculate adjacent mesh normal vector and distance error then; Step I, judge whether that all grids all can't merge: be, then turn to step J, not, then turn to step H; Step J, obtain each vertex of surface, summit order and face parameter: according to the space law vector and initial point distance of optimizing the back grid, usage space cartesian geometry formula calculates each hand-deliver point as the summit, determines the vertex index and the some preface of each grid then.Other step is identical with embodiment two.
Embodiment four: referring to Fig. 4, the difference of present embodiment and embodiment two is that the step of cutting work designing of step 4 is as follows: step 1., read in designing requirement: judge whether to be then to turn to step 2. into formulating shaped design,, then do not turn to step 7.; Step 2., designated shape design: at first design axially three-dimensional in blank according to shape; Step 3., is further determined the size of wide part of jewel; Step 4., according to the size of wide part and the range of size that cutting work designing requires to determine remainder; Step 5., optimized design: in range of size according to the design objective requirement, jewel to be designed at first is divided into a plurality of basic comprising voxels according to each summit, to each voxel calculation Design index and add up, adopt exploratory searching method in the optimization procedure based on golden section; Step 6., judge whether to reach optimized design: will optimize the result and compare, and be, and then turn to step 8., not, then turn to step 5. with the standard database that is kept among the processor 3-1; Step is 7., freely design: determine the basic configuration classification set of jewel to be designed, to each class shape, according to step 2.~step method is 6. carried out optimal design, and the record design result; Step 8., all kinds of shaped design results are compared is selected optimal result.Other step is identical with embodiment two.
Embodiment five: referring to Fig. 5, the difference of present embodiment and embodiment three is that the step of three-dimensional modeling of step 4 is as follows: step I, initialization: determine true origin, initial visual angle, jewel material, light source parameters; Step I i, eliminate invisible intersection point: each laminar surface is obtained and last layer, one deck adjacent surface down, calculate the hand-deliver point, whether as seen to calculate each intersection point; Step I ii, judge whether to eliminate invisible intersection point: be, then turn to step I v, not, then turn to step I i; Step I v, output parameter: draw jewel envelope grid by the summit, and export the corresponding parameter of each face on the whole; Step v, Rendering: carry out painted to jewel and drafting according to the material of light source position, lighting angle and setting; Step vi, operation response: the input of response user's mouse or keyboard, to jewel be rotated, zoom operations.Other step is identical with embodiment two.

Claims (6)

1、基于机器视觉的宝石三维毛坯重构设计的装置,它由图像采集设备(1)、转动平台设备(2)、处理系统(3)和照明设备(4)组成,其特征在于图像采集设备(1)的信号输出端与处理系统(3)的信号输入端连接,转动平台设备(2)和照明设备(4)的控制输入端与处理系统(3)的控制输出端连接,照明设备(4)的输出光供给图像采集设备(1)的输入端,所述图像采集设备(1)由摄像机(1-1)和图像采集卡(1-2)组成,摄像机(1-1)的信号输出端与图像采集卡(1-2)的信号输入端连接,所述转动平台设备(2)由平台机体(2-1)、驱动电机(2-2)和设备控制卡(2-3)组成,驱动电机(2-2)的传动输出端与平台机体(2-1)传动连接,驱动电机的(2-2)的控制输入端与设备控制卡(2-3)的控制输出端连接,所述处理系统(3)由处理机(3-1)和显示设备(3-2)组成,处理机(3-1)的信号输入端与图像采集卡(1-2)的信号输出端连接,处理机(3-1)的信号输出端与显示设备(3-2)的信号输入端连接,处理机(3-1)的控制输出端与设备控制卡(2-3)的控制输入端连接,所述照明设备(4)包含辅助光源(4-1)、菲涅尔透镜(4-2)和镜头(4-3),辅助光源(4-1)的控制输入端与处理机(3-1)的控制输出端连接,辅助光源(4-1)、菲涅尔透镜(4-2)、待测宝石毛坯(W)、镜头(4-3)和摄像机(1-1)依次从右至左设置在一条直线上,辅助光源(4-1)和摄像机(1-1)分别设置在菲涅尔透镜(4-2)和镜头(4-3)的焦点处。1. A device for reconstructing and designing a three-dimensional gemstone blank based on machine vision, which consists of image acquisition equipment (1), rotating platform equipment (2), processing system (3) and lighting equipment (4), and is characterized in that the image acquisition equipment The signal output terminal of (1) is connected with the signal input terminal of the processing system (3), the control input terminal of the rotating platform equipment (2) and the lighting equipment (4) is connected with the control output terminal of the processing system (3), and the lighting equipment ( 4) the output light is supplied to the input end of the image acquisition device (1), and the image acquisition device (1) is made up of a camera (1-1) and an image acquisition card (1-2), and the signal of the camera (1-1) The output end is connected with the signal input end of the image acquisition card (1-2), and the described rotary platform device (2) is composed of a platform body (2-1), a driving motor (2-2) and a device control card (2-3) Composition, the transmission output end of the driving motor (2-2) is connected with the transmission of the platform body (2-1), the control input end of the driving motor (2-2) is connected with the control output end of the equipment control card (2-3) , the processing system (3) is made up of a processor (3-1) and a display device (3-2), the signal input end of the processor (3-1) and the signal output end of the image acquisition card (1-2) Connection, the signal output end of the processor (3-1) is connected with the signal input end of the display device (3-2), the control output end of the processor (3-1) is connected with the control input of the device control card (2-3) The lighting device (4) includes an auxiliary light source (4-1), a Fresnel lens (4-2) and a lens (4-3), the control input end of the auxiliary light source (4-1) and the processor (3-1) is connected to the control output terminal, auxiliary light source (4-1), Fresnel lens (4-2), gem blank to be tested (W), lens (4-3) and video camera (1-1) They are arranged on a straight line from right to left in sequence, and the auxiliary light source (4-1) and the camera (1-1) are respectively arranged at the focal points of the Fresnel lens (4-2) and the lens (4-3). 2、根据权利要求1所述的基于机器视觉的宝石三维毛坯重构设计的装置,其特征在于它的照明设备(4)增加了激光二极管(4-4)和狭缝透镜(4-5),激光二极管(4-4)设置在狭缝透镜(4-5)的焦点处,待测宝石毛坯(W)、狭缝透镜(4-5)和激光二极管(4-4)依次设置在一条轴线上,并且此轴线与菲涅尔透镜(4-2)、待测宝石毛坯(W)和镜头(4-3)所在的直线处于同一水平面。2. The device of machine vision-based three-dimensional rough reconstruction and design of gemstones according to claim 1, characterized in that its lighting equipment (4) has increased laser diodes (4-4) and slit lenses (4-5) , the laser diode (4-4) is arranged at the focal point of the slit lens (4-5), and the gem blank (W) to be tested, the slit lens (4-5) and the laser diode (4-4) are arranged in a line in sequence axis, and this axis is in the same horizontal plane as the straight line where the Fresnel lens (4-2), the gem blank (W) to be tested and the lens (4-3) are located. 3、基于机器视觉的宝石三维毛坯重构设计的方法,其特征在于它的步骤如下:3, the method for the three-dimensional rough reconstruction design of gemstone based on machine vision, it is characterized in that its steps are as follows: 步骤一、启动:将待测宝石毛坯(W)放置在平台机体(2-1)上,由处理机(3-1)发出控制指令给辅助光源(4-1)为平台机体(2-1)提供背光照明;Step 1. Start: Place the gemstone blank (W) to be tested on the platform body (2-1), and the processor (3-1) sends a control command to the auxiliary light source (4-1) as the platform body (2-1) ) provides backlighting; 步骤二、毛坯重构:通过设备控制卡(2-3)控制驱动电机(2-2)以指定速率驱动平台机体(2-1)进行高精度旋转,通过摄像机(1-1)采集待测宝石毛坯(W)各个角度的视频,采集的视频由图像采集卡(1-2)转化为多帧数字图像序列传入处理机(3-1)中,将多帧数字图像序列通过处理机(3-1)计算得到待测宝石毛坯(W)的三维表面和形状参数,并在处理机(3-1)中重构宝石毛坯的形状;Step 2. Blank reconstruction: Control the drive motor (2-2) through the device control card (2-3) to drive the platform body (2-1) at a specified rate for high-precision rotation, and use the camera (1-1) to capture the data to be tested Videos from various angles of the gemstone blank (W), the collected video is converted into a multi-frame digital image sequence by the image acquisition card (1-2) and transmitted to the processor (3-1), and the multi-frame digital image sequence is passed through the processor ( 3-1) Calculate the three-dimensional surface and shape parameters of the gemstone blank (W) to be tested, and reconstruct the shape of the gemstone blank in the processor (3-1); 步骤三、切工设计:根据待测宝石毛坯(W)的三维重构结果、待设计宝石的切割形状及遵循标准要求通过处理机(3-1)优化待设计宝石的主轴方向、大小参数并计算出各切割面的原始参数,再与保存在处理机(3-1)中的标准数据库进行对比,进一步得到待设计宝石各切割面具体参数及完整的最终设计结果,并将重构和设计结果保存在处理机(3-1)内以供查阅检索和打印输出;Step 3. Cutting design: according to the three-dimensional reconstruction results of the gemstone blank (W) to be tested, the cutting shape of the gemstone to be designed and the standard requirements, optimize the main axis direction and size parameters of the gemstone to be designed through the processor (3-1) and Calculate the original parameters of each cutting surface, and then compare them with the standard database stored in the processor (3-1), and further obtain the specific parameters of each cutting surface of the gemstone to be designed and the complete final design result, and reconstruct and design The results are stored in the processor (3-1) for retrieval and printout; 步骤四、三维建模:通过处理机(3-1)将待测宝石毛坯(W)的三维形状及切割参数通过OpenGL技术以三维叠加的方式按用户设置格式显示在显示设备(3-2)上,并对三维图像进行旋转、局部放大及将待测宝石毛坯(W)和设计结果叠加显示。Step 4, three-dimensional modeling: display the three-dimensional shape and cutting parameters of the gem blank (W) to be tested on the display device (3-2) in the form of three-dimensional superimposition by the OpenGL technology through the processor (3-1) , and the three-dimensional image is rotated, partially enlarged, and the gem rough (W) to be tested and the design result are superimposed and displayed. 4、根据权利要求3所述的基于机器视觉的宝石三维毛坯重构设计的方法,其特征在于步骤二的毛坯重构的步骤如下:步骤A、启动转动设备:启动摄像机(1-1)和转动平台机体(2-1),通过设备控制卡(2-3)控制驱动电机(2-2)以指定速率驱动平台机体(2-1)进行高精度旋转;步骤B、图像采集:由摄像机(1-1)对待测宝石毛坯(W)进行图像采集,并通过图像采集卡(1-2)将采集到的图像传送到处理机(3-1);步骤C、图像预处理:去除噪声、阈值化、对待测宝石毛坯(W)进行图像分割;步骤D、宝石轮廓多边形拟合:从四边形开始,逐渐增加边数,直至多边形与宝石轮廓包围误差小于指定数值;步骤E、计算各顶点坐标:首先计算多边形各顶点的二维坐标,然后根据当前平台角度及台面中心计算顶点深度信息;步骤F、判断采集完毕:判断平台机体(2-1)是否旋转一周,是,则图像采集过程完成,转向步骤G,否,则返回步骤B;步骤G、根据三维顶点坐标划分网络:使用Delaunday改进算法进行划分;步骤H、计算网格法向量,网格优化:根据网络平滑性约束进行优化,对每一网格计算法向量及与平台中心的距离,然后计算相邻网格法向量及距离误差;步骤I、判断是否所有网格均无法合并:是,则转向步骤J,否,则转向步骤H;步骤J、取得各面顶点、顶点顺序及面参数:根据优化后网格的空间法向量与原点距离,使用空间解析几何公式计算各面交点作为顶点,然后确定各网格的顶点索引及点序。4, the method for the three-dimensional rough reconstruction design of gemstone based on machine vision according to claim 3 is characterized in that the step of the rough reconstruction of step 2 is as follows: Step A, start rotating equipment: start video camera (1-1) and Rotate the platform body (2-1), control the drive motor (2-2) through the device control card (2-3) to drive the platform body (2-1) at a specified rate for high-precision rotation; step B, image acquisition: by the camera (1-1) Image acquisition is carried out on the gem blank (W) to be tested, and the image collected is transmitted to the processor (3-1) through the image acquisition card (1-2); step C, image preprocessing: remove noise , thresholding, image segmentation of the gem blank (W) to be tested; Step D, polygon fitting of the gem contour: starting from the quadrilateral, gradually increasing the number of sides until the enclosing error between the polygon and the gem contour is less than a specified value; Step E, calculating each vertex Coordinates: First calculate the two-dimensional coordinates of each vertex of the polygon, and then calculate the vertex depth information according to the current platform angle and the center of the table; Step F, judging that the collection is completed: judging whether the platform body (2-1) has rotated a circle, if yes, then the image acquisition process Complete, turn to step G, if not, return to step B; step G, divide the network according to the three-dimensional vertex coordinates: use Delaunday's improved algorithm for division; step H, calculate the grid normal vector, grid optimization: optimize according to the network smoothness constraints , calculate the normal vector and the distance from the center of the platform for each grid, then calculate the normal vector and the distance error of the adjacent grids; step I, judge whether all grids cannot be merged: if yes, then turn to step J, if not, then Turn to step H; step J, obtain vertices of each surface, vertex sequence and surface parameters: according to the distance between the space normal vector and the origin of the optimized grid, use the spatial analytic geometry formula to calculate the intersection points of each surface as vertices, and then determine the vertices of each grid Index and point sequence. 5、根据权利要求3所述的基于机器视觉的宝石三维毛坯重构设计的方法,其特征在于步骤三的切工设计的步骤如下:步骤①、读入设计要求:判断是否为指定形状设计,是,则转向步骤②,否,则转向步骤⑦;步骤②、指定形状设计:根据形状首先设计在毛坯中的三维轴向;步骤③、进一步确定宝石最宽部分的尺寸;步骤④、根据最宽部分的尺寸和切工设计要求确定其余部分的尺寸范围;步骤⑤、最优化设计:在尺寸范围内按照设计指标要求,将待设计宝石根据各顶点首先分割为多个基本构成体素,对每个体素计算设计指标并进行累加,最优化过程中采用基于黄金分割的试探性搜索方法;步骤⑥、判断是否达到最优化设计:将优化结果与保存在处理机(3-1)中的标准数据库进行对比,是,则转向步骤⑧,否,则转向步骤⑤;步骤⑦、自由设计:确定待设计宝石的基本形状类别集合,对每一类形状,按照步骤②~步骤⑥的方法进行最优设计,并记录设计结果;步骤⑧、对各类形状设计结果进行比较,选择最优结果。5. The method of machine vision-based three-dimensional rough reconstruction and design of gemstones according to claim 3, characterized in that the steps of the cutting design in step 3 are as follows: Step 1. Reading in design requirements: judging whether it is a specified shape design, If yes, turn to step ②; if not, turn to step ⑦; step ②, specify the shape design: first design the three-dimensional axial direction in the rough according to the shape; step ③, further determine the size of the widest part of the gemstone; step ④, according to the most The size and cutting design requirements of the wide part determine the size range of the remaining parts; step 5, optimal design: within the size range, according to the design index requirements, the gemstone to be designed is first divided into a plurality of basic constituent voxels according to each vertex, and the Each voxel calculates the design index and accumulates it. In the optimization process, a tentative search method based on the golden section is adopted; step ⑥, judging whether the optimal design is achieved: the optimization result is compared with the standard stored in the processor (3-1) Database comparison, if yes, then turn to step ⑧, if not, then turn to step ⑤; step ⑦, free design: determine the basic shape category set of gemstones to be designed, for each type of shape, according to the method of step ② to step ⑥ Optimal design, and record the design results; step ⑧, compare the design results of various shapes, and select the optimal result. 6、根据权利要求3所述的基于机器视觉的宝石三维毛坯重构设计的方法,其特征在于步骤四的三维建模的步骤如下:步骤i、初始化:确定坐标原点、初始视角、宝石材质、光源参数;步骤ii、消除不可见交点:对每一层表面获取与上一层、下一层相邻面,计算面交点,计算各交点是否可见;步骤iii、判断是否已消除不可见交点:是,则转向步骤iv,否,则转向步骤ii;步骤iv、输出参数:按顶点绘制宝石包络网格,并在面上输出各面对应参数;步骤v、着色绘制:根据光源位置、光照角度和设定的材质对宝石进行着色和绘制;步骤vi、响应操作:响应用户鼠标或键盘输入,对宝石进行旋转、缩放操作。6. The method according to claim 3, characterized in that the three-dimensional modeling step of step 4 is as follows: step i, initialization: determine the coordinate origin, initial viewing angle, gemstone material, Light source parameters; step ii, eliminate invisible intersections: for each layer surface, obtain adjacent surfaces with the previous layer and the next layer, calculate the intersection points of the surfaces, and calculate whether each intersection point is visible; step iii, judge whether the invisible intersection points have been eliminated: If yes, turn to step iv; if not, turn to step ii; step iv, output parameters: draw the enveloping grid of gemstones by vertices, and output the corresponding parameters of each surface on the surface; step v, coloring and drawing: according to the position of the light source, The lighting angle and the set material are used to color and draw the gemstone; step vi, response operation: responding to the user's mouse or keyboard input, the gemstone is rotated and scaled.
CNB2007100727730A 2007-09-06 2007-09-06 Device and method for 3D rough reconstruction design of gemstones based on machine vision Expired - Fee Related CN100501751C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100727730A CN100501751C (en) 2007-09-06 2007-09-06 Device and method for 3D rough reconstruction design of gemstones based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100727730A CN100501751C (en) 2007-09-06 2007-09-06 Device and method for 3D rough reconstruction design of gemstones based on machine vision

Publications (2)

Publication Number Publication Date
CN101118570A CN101118570A (en) 2008-02-06
CN100501751C true CN100501751C (en) 2009-06-17

Family

ID=39054684

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100727730A Expired - Fee Related CN100501751C (en) 2007-09-06 2007-09-06 Device and method for 3D rough reconstruction design of gemstones based on machine vision

Country Status (1)

Country Link
CN (1) CN100501751C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0919235D0 (en) * 2009-11-03 2009-12-16 De Beers Centenary AG Inclusion detection in polished gemstones
CN102175175B (en) * 2011-01-26 2012-11-28 中国地震局地质研究所 Small slice type three-dimensional structure reconstruction system
CN103218849A (en) * 2012-01-19 2013-07-24 数伦计算机技术(上海)有限公司 Image modeling system
IL295193B2 (en) 2012-12-20 2023-11-01 Sarine Tech Ltd System for accurate 3d modeling of gemstones
US12135202B2 (en) 2012-12-20 2024-11-05 Sarine Technologies Ltd. System and method for determining the traceability of gemstones based on gemstone modeling
CN103488849A (en) * 2013-10-12 2014-01-01 梧州学院 Method for restoring original design of bright circular polished gemstone by using image processing technology
CN104282037A (en) * 2014-09-28 2015-01-14 广东惠利普路桥信息工程有限公司 Three-dimensional modeling system
CN109459589B (en) * 2018-09-26 2020-04-17 东莞市凯融光学科技有限公司 Method for measuring surface type of product with equal-height Fresnel structure
CN111161179B (en) * 2019-12-26 2023-06-16 华南理工大学 Point cloud smoothing method based on normal vector
CN113021037B (en) * 2021-03-09 2025-11-28 苏州名匠阀门设备有限公司 Gate valve blank contactless self-alignment clamping system and self-alignment clamping method
CN118285603B (en) * 2024-05-14 2024-11-29 深圳金照珠宝有限责任公司 Shield-shaped gemstone containing refractive flower pattern and processing method thereof

Also Published As

Publication number Publication date
CN101118570A (en) 2008-02-06

Similar Documents

Publication Publication Date Title
CN100501751C (en) Device and method for 3D rough reconstruction design of gemstones based on machine vision
Carbone et al. Combination of a vision system and a coordinate measuring machine for the reverse engineering of freeform surfaces
US7079137B2 (en) Method for digitally rendering an object using measured BRDF data
CN106683068B (en) Three-dimensional digital image acquisition method
JP4195096B2 (en) Equipment for 3D surface shape reconstruction
Tao et al. A unified approach to streamline selection and viewpoint selection for 3D flow visualization
JP5711039B2 (en) 3D point cloud position data processing apparatus, 3D point cloud position data processing method, 3D point cloud position data processing system, and program
CN1301480C (en) Computerized 3D visual color scan system and its scanning mode
CN106846392A (en) The method and apparatus of three-dimensional modeling
CN100501312C (en) Three-dimensional cut detection method of gemstones based on machine vision
Ahmadabadian et al. Clustering and selecting vantage images in a low-cost system for 3D reconstruction of texture-less objects
CN112528379A (en) Building model generation method and device and electronic equipment
Doan et al. A low-cost digital 3D insect scanner
CN119126668A (en) Metal cutting process path planning system
Stets et al. Scene reassembly after multimodal digitization and pipeline evaluation using photorealistic rendering
Ali Reverse engineering of automotive parts applying laser scanning and structured light techniques
CN201082573Y (en) Jewel three-dimensional autodesign and detecting device based on machine vision
TWI412721B (en) System and method for detecting a gap between two parts of an object
Owczarek et al. Examination of optical coordinate measurement systems in the conditions of their operation
Cheng The workflows of 3D digitizing heritage monuments
Liu et al. Interactive 3D model acquisition and registration
Hwang Three dimensional body scanning systems with potential for use in the apparel industry
KR102786262B1 (en) Precision Reconstruction 3D Modeling System Based on Multi-View Analysis
Del Taglia et al. Axiomatic Design and QFD: A Case Study of a Reverse Engineering System for Cutting Tools
Ioannidis et al. Laser and multi-image reverse engineering systems for accurate 3D modelling of complex cultural artefacts

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090617

Termination date: 20150906

EXPY Termination of patent right or utility model