A kind of projection print implementation method and implement device thereof
Technical field
The invention belongs to rapid shaping field, be specifically related to a kind of rapid shaping implementation method and implement device thereof of projection print.
Background technology
Rapid shaping technique is the advanced manufacturing technology that the nineties grows up.Its ultimate principle is " Layered manufacturing successively superposes ", is similar to mathematical integral process.It when without the need to preparing any mould, cutter and tooling fixture, can directly accept product design cad data, produces the exemplar of new product, mould or model fast.But the receptible data of all kinds of rapid forming equipment are three-dimensional CAD model data, can not identify common image data, also cannot by the dump in picture out.
Therefore, how using rapid forming equipment to print content in photo, can realize projecting out photo content under light irradiates, be the still unsolved technical barriers of those skilled in the art.
Summary of the invention
The invention provides a kind of projection print implementation method, to realize using picture file, adopt rapid forming equipment to print projection print.
The technical scheme that the present invention uses is:
An implementation method for projection print, comprises the following steps: (1) image scaling, and caption book is adjusted to suitable size; (2) obtaining the gray-scale value of each pixel in picture, in picture, store the colouring information of each pixel, by calculating, the gray-scale value of each pixel can be obtained; (3) generate the pattern filling of different size according to each pixel gray-scale value, the size of pattern filling is directly proportional to gray-scale value, adopts line and curve connection together between adjacent fill pattern; (4) geometric model obtained in step (3) is generated the data layout that rapid forming equipment can identify, data are sent to rapid forming equipment and print.
In above-mentioned steps (1), image scaling can self-defined ratio, also can redefine.
Above-mentioned steps (2) also comprises extraction picture and often puts pixel value.
Above-mentioned picture is the electronic pictures of arbitrary format, as format pictures such as jpg, bmp, png.
Above-mentioned pattern filling can have difformity, comprises rectangle, circular, triangle etc.
Another object of the present invention is to provide a kind of rapid molding device that can realize above-mentioned projection print implementation method:
Comprise host computer, data transmission device and rapid forming equipment.Described host computer can read picture, and process image data, calculates each pixel gray-scale value in picture, and generates corresponding pattern filling and connecting line segment according to picture gray-scale value.Described data transmission device is used for the pattern filling of host computer generation and connecting line segment data to send to rapid forming equipment.Described rapid forming equipment can identify figure and segment data form, and prints projection print.
Above-mentioned host computer comprises desktop computer, notebook computer, smart mobile phone etc.
Above-mentioned data transmission device comprises wireless data transmission device (as bluetooth, wifi etc.) and wired data transfer device (as serial ports etc.).
Above-mentioned rapid forming equipment can be multiple rapid forming equipment: as fusion sediment mo(u)lding equipment (FusedDeposition Modeling, FDM), Selective Laser Sintering (Selective Laser Sintering, SLS), 3 D-printing equipment (Three-Dimensional Printing, 3DP) etc.
Accompanying drawing explanation
Fig. 1 is projection print two-dimensional shapes schematic diagram (pattern filling is for circular);
Fig. 2 is projection print drop shadow effect figure;
Fig. 3 is projection print Making programme figure.
Embodiment
In order to make those skilled in the art better understand the present invention program, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.In this example, host computer adopts smart mobile phone; Rapid forming equipment adopts FDM equipment; Data transmission device adopts bluetooth.
The quick molding method of the projection print that example of the present invention provides, comprise: step (1) image scaling, picture is adjusted to suitable size, because be subject to the restriction of rapid forming equipment work top, dimension of picture can not be very large, within should being arranged on 100*100 pixel; Step (2) obtains the gray-scale value of each pixel in picture, stores the colouring information of each pixel in picture, by calculating, can obtain the gray-scale value of each pixel; Step (3) generates the pattern filling of different size according to each pixel gray-scale value, selects circular in this example.As shown in Figure 1, circular size is directly proportional to respective pixel gray-scale value size, adopts line segment to link together between adjacent fill pattern.In projection print, each pixel correspond to the region of a fixed size, and regional extent is relatively suitable between 1.5mm ~ 2mm.In this region, the circle of filling is used to shut out the light.The gray-scale value of pixel is larger, and corresponding circle of filling is larger; The gray-scale value of pixel is less, and corresponding circle of filling is less.When filling circle and being larger, more light can be blocked, the screen of projection shows as darker region; When filling circle and being less, through more light, the screen of projection can show as brighter region.Use line segment to connect between adjacent fill pattern, in this example, line segment end points in the midpoint of circular edges, to ensure the globality of its structure.By the difference of bright and dark light change after projecting, projection print can reduce the content of original photo.(4) circular for a series of fillings obtained in step (3) and connecting line segment are generated the data layout that rapid forming equipment can identify, in this example, the data layout that FDM equipment used can identify is g code.The g code data of generation is sent to FDM equipment to print.
The present invention also provides a kind of device that can realize appeal projection print method for fast mfg, and in this example, comprising host computer is smart mobile phone, and rapid forming equipment adopts FDM equipment; Data transmission device adopts bluetooth.The source image credit of projection print is in taking photograph of intelligent mobile phone caption book or built-in picture, and smart mobile phone can process picture, obtains the color value of each pixel of picture, and calculates gray-scale value.After obtaining image intensity value, each pixel correspondence can be calculated and fill circular size and the position of connecting line segment, utilize these positions can generate corresponding g code.Above-mentioned g code is sent to FDM equipment by bluetooth, finally by the print job of the complete projection print of FDM equipment by smart mobile phone.
In this part, apply instantiation and set forth principle of the present invention and embodiment, above example illustrates only understands method of the present invention for helping.