CN112150365B - Expansion and shrinkage processing method of jet printing image and jet printing equipment - Google Patents

Expansion and shrinkage processing method of jet printing image and jet printing equipment Download PDF

Info

Publication number
CN112150365B
CN112150365B CN202011102368.0A CN202011102368A CN112150365B CN 112150365 B CN112150365 B CN 112150365B CN 202011102368 A CN202011102368 A CN 202011102368A CN 112150365 B CN112150365 B CN 112150365B
Authority
CN
China
Prior art keywords
image
expansion
jet printing
contraction
module
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
CN202011102368.0A
Other languages
Chinese (zh)
Other versions
CN112150365A (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.)
Jiangxi Weiligu Intelligent Equipment Co ltd
Original Assignee
Jiangxi Weiligu Intelligent Equipment 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 Jiangxi Weiligu Intelligent Equipment Co ltd filed Critical Jiangxi Weiligu Intelligent Equipment Co ltd
Priority to CN202011102368.0A priority Critical patent/CN112150365B/en
Publication of CN112150365A publication Critical patent/CN112150365A/en
Application granted granted Critical
Publication of CN112150365B publication Critical patent/CN112150365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T5/94
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30144Printing quality

Abstract

The invention discloses a method for treating expansion and contraction of a jet printing image and jet printing equipment, and relates to the technical field of circuit board printing; the jet printing equipment comprises an image processing system; the image processing system comprises an input module, a segmentation module, a harmomegathus region setting module, a scaling module, a local spray printing image acquisition module and a merging module; the expansion and contraction coefficients of 2N jet printing areas are obtained by dividing the circuit board to be jet printed according to a preset rule, so that the condition that the accumulated length error is overlarge due to the fact that the side length is too long is avoided, and the accuracy of the expansion and contraction coefficients is improved; and then, the original jet printing image is sequentially zoomed according to the image zoom ratio determined by the expansion and contraction coefficient to obtain the local jet printing image which corresponds to the expansion and contraction area one by one, so that the zoom effect of the combined new jet printing image is closer to the actual expansion and contraction condition of a jet printing circuit board, and the problem of deviation when the jet printing equipment performs jet printing is avoided.

Description

Expansion and shrinkage processing method of jet printing image and jet printing equipment
Technical Field
The invention relates to the technical field of circuit board printing, in particular to a method for treating expansion and contraction of a jet printing image and jet printing equipment.
Background
With the development and popularization of electronic devices, more and more electronic devices enter people's lives, and circuit boards play an indispensable role as basic elements in the electronic devices.
The circuit board is usually printed with characters or oil blocks, and with the improvement of production process and the popularization of automation equipment, the circuit board is usually subjected to jet printing process by jet printing equipment instead of manual work, so that the production efficiency is greatly improved.
However, since the circuit board may have an overall expansion and shrinkage or an irregular expansion and shrinkage during the production process, the inkjet printer in the prior art needs to calculate the expansion and shrinkage of the circuit board before performing inkjet printing on the circuit board, so as to overcome the problem of the expansion and shrinkage of the circuit board during the production process.
In the prior art, four corner points in a circuit board are captured, and one of the corner points is selected as an origin; and then, calculating the lengths of the other three edge points relative to the original point, comparing the lengths with the lengths of corresponding edges in the non-expanded circuit board, and calculating the expansion and contraction proportion of the expanded and contracted circuit board relative to the non-expanded and contracted circuit board, so that the jet printer can adjust parameters to adapt to the expanded and contracted circuit board conveniently.
However, when the circuit board with large size is printed by the jet printing method, the calculation result has the problem of accumulated length error, and the calculated expansion and shrinkage proportion has a larger difference with the actual expansion and shrinkage of the circuit board, so that the jet printing machine still has the problem of jet printing deviation.
Disclosure of Invention
The invention aims to provide a method for treating expansion and contraction of a jet printing image and jet printing equipment, which are used for solving the problem of jet printing deviation of a jet printing machine.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for processing expansion and contraction of jet printing images comprises the following steps:
providing a circuit board to be jet printed and an original jet printing image;
dividing the circuit board to be jet-printed according to a preset rule to obtain 2N jet-printed areas; the spray printing area covers one edge of the circuit board to be spray printed;
respectively acquiring the expansion and contraction coefficients of 2N jet printing areas; dividing every two adjacent spray printing areas into an expansion area;
determining the image scaling of the original jet printing image according to the expansion and contraction coefficients of the two jet printing areas in the expansion and contraction area;
sequentially zooming the original spray printing images according to the image zooming ratios to obtain N zoomed images of the original spray printing images;
acquiring local spray printing images for spray printing on the expansion and contraction areas from the expansion and contraction images;
and combining the N local spray printing images to generate a new spray printing image.
Optionally, the step of: dividing the circuit board to be jet-printed according to a preset rule to obtain 2N jet-printed areas, wherein the method specifically comprises the following steps:
acquiring 2N actual position identification points of the circuit board to be jet-printed; the actual position identification point is a sideline intersection point of the circuit board to be printed;
determining the centroid of the circuit board to be subjected to jet printing according to the actual position identification point;
connecting the centroid of the circuit board to be printed with the actual position identification point to form 2N actual dividing lines;
and cutting the circuit board to be subjected to spray printing according to the actual dividing line to obtain the 2N spray printing areas.
Optionally, the step of: respectively acquiring the expansion and contraction coefficients of the 2N jet printing areas, and dividing every two adjacent jet printing areas into an expansion and contraction area, wherein the method further comprises the following steps:
segmenting the original spray printing image according to the preset rule to obtain 2N original segmentation images;
calculating the expansion and contraction coefficients of 2N jet printing areas; the method specifically comprises the following steps:
acquiring the centroid of each original segmentation image and the original distance between each corner point of the original segmentation image, and acquiring the actual distance between the solid centroid of each spray printing area and each corner point of the spray printing area;
and calculating the expansion and contraction coefficient of each spray printing area according to the actual distance and the original distance.
Optionally, at the step: after determining the image scaling of the original jet printing image according to the expansion and contraction coefficients of the two jet printing areas in the expansion and contraction area, the method further comprises the following steps:
and if the scaling ratios of the images are equal, scaling the original spray printing image according to the scaling ratios of the images to generate a new spray printing image.
Optionally, the step of: after acquiring the local inkjet printing image for inkjet printing on each collapsible area from each of the zoomed images, the method further includes:
splicing N local spray printing images in advance;
judging whether an image element dislocated into two sub-image elements exists at the joint of two adjacent local spray printing images;
if yes, widening the two sub-image elements in opposite directions to form widened image elements;
if not, executing the steps: and combining the N local spray printing images to generate a new spray printing image.
An inkjet printing apparatus includes an image processing system; the image processing system comprises an input module, a segmentation module, a harmomegathus region setting module, a scaling ratio setting module, a scaling module, a local spray printing image acquisition module and a merging module;
the input module is used for providing a circuit board to be subjected to jet printing and an original jet printing image;
the cutting module is used for cutting the circuit board to be subjected to jet printing according to a preset rule to obtain 2N jet printing areas; the spray printing area covers one edge of the circuit board to be spray printed;
the expansion and contraction area setting module is used for respectively acquiring expansion and contraction coefficients of the 2N jet printing areas; dividing every two adjacent spray printing areas into a collapsible area;
the scaling setting module is used for determining the image scaling of the original jet printing image according to the expansion and contraction coefficients of the two jet printing areas in the expansion and contraction area;
the scaling module is used for sequentially scaling the original spray printing images according to the scaling of each image to obtain N scaled images of the original spray printing images;
the local spray printing image acquisition module is used for acquiring local spray printing images which are used for spray printing on the expansion and contraction areas from the expansion and contraction images;
and the merging module is used for merging the N local spray printing images to generate a new spray printing image.
Optionally, the segmentation module includes an actual position identification point obtaining unit, a centroid determining unit, an actual segmentation line forming unit, and a segmentation unit;
the actual position identification point acquisition unit is used for acquiring 2N actual position identification points of the circuit board to be printed; the actual position identification point is positioned at the boundary line intersection of the circuit board to be jet-printed;
the centroid determining unit is used for determining the centroid of the circuit board to be subjected to jet printing according to the actual position identification point;
the actual dividing line forming unit is used for connecting the centroid of the circuit board to be printed and the actual position identification point to form 2N actual dividing lines;
and the dividing unit is used for dividing the circuit board to be subjected to jet printing according to the actual dividing line to obtain the 2N jet printing areas.
Optionally, the image processing system further comprises an original segmentation module and a harmomegathus coefficient calculation module;
the original segmentation module is used for segmenting the original spray printing image according to the preset rule to obtain 2N original segmentation images;
the expansion and contraction coefficient calculation module is used for calculating expansion and contraction coefficients of the 2N jet printing areas;
the expansion and contraction coefficient calculation module comprises a spacing acquisition unit and an expansion and contraction coefficient calculation unit;
the distance obtaining unit is used for obtaining the centroid of each original segmentation image and the original distance between each corner point of the original segmentation image, and obtaining the actual distance between the solid centroid of each jet printing area and each corner point of the jet printing area;
and the expansion and contraction coefficient calculation unit is used for calculating the expansion and contraction coefficient of each spray printing area according to the actual distance and the original distance.
Optionally, the image processing system further comprises an overall scaling module;
and the integral scaling module is used for scaling the original spray printing image according to the image scaling ratio to generate a new spray printing image when the scaling ratios of the images are equal.
Optionally, the image processing system further includes a pre-stitching module, a misalignment determination module, and a widening module;
the pre-splicing module is used for splicing N local spray printing images in advance;
the dislocation judgment module is used for judging whether an image element dislocated into two sub-image elements exists at the joint of two adjacent local spray printing images;
and the widening module is used for widening the two sub-image elements oppositely to form a widened image element when the image element which is dislocated into the two sub-image elements exists at the joint of the two adjacent local jet printing images.
Compared with the prior art, the invention has the following beneficial effects:
according to the expansion and contraction processing method and the spray printing equipment for the spray printing image, the circuit board to be subjected to spray printing is divided according to the preset rule, so that 2N spray printing areas which correspond to the edges of the circuit board to be subjected to spray printing one by one are obtained; then respectively obtaining the expansion and shrinkage coefficients of 2N jet printing areas, dividing every two adjacent jet printing areas into an expansion and shrinkage area, and zooming the original jet printing image according to the image zooming proportion of the expansion and shrinkage area to obtain N zoomed images of the original jet printing image; then obtaining local spray printing images from the zoomed images, and combining the N local spray printing images to generate new spray printing images; the method comprises the following steps of dividing a circuit board to be subjected to jet printing according to a preset rule to obtain the expansion and contraction coefficients of 2N jet printing areas, and avoiding the condition of overlarge accumulated length error caused by overlong calculated side length, so that the accuracy of the expansion and contraction coefficients is improved; and then, the original spray printing images are sequentially zoomed according to the image zoom ratio determined by the expansion and contraction coefficient to obtain the local spray printing images which are in one-to-one correspondence with the expansion and contraction areas, so that the zoom effect of the combined new spray printing images is closer to the actual expansion and contraction condition of the circuit board with the spray printing function, and the problem of deviation when the spray printing equipment sprays printing is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
The structure, proportion, size and the like shown in the drawings are only used for matching with the content disclosed in the specification, so that the person skilled in the art can understand and read the description, and the description is not used for limiting the limit condition of the implementation of the invention, so the method has no technical essence, and any structural modification, proportion relation change or size adjustment still falls within the scope of the technical content disclosed by the invention without affecting the effect and the achievable purpose of the invention.
FIG. 1 is a schematic overall flow chart of a method according to a first embodiment of the present invention;
fig. 2 is a schematic overall structural diagram of the inkjet printing apparatus according to the second embodiment of the present invention.
Illustration of the drawings: 1. an input module; 2. a segmentation module; 3. a collapsible area setting module; 4. a scaling setting module; 5. a scaling module; 6. a local spray printing image acquisition module; 7. and a merging module.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. It should be noted that when one component is referred to as being "connected" to another component, it can be directly connected to the other component or intervening components may also be present.
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
Referring to fig. 1 to fig. 2, fig. 1 is a schematic overall flow chart of a method according to a first embodiment of the present invention, and fig. 2 is a schematic overall structure of a jet printing apparatus according to a second embodiment of the present invention.
Example one
The method for processing the expansion and shrinkage of the jet printing image provided by the embodiment is applied to jet printing equipment, and is used for adjusting the jet printing image according to the expansion and shrinkage amount of a circuit board, overcoming the problem of expansion and shrinkage of the circuit board and preventing deviation during jet printing.
As shown in fig. 1, the method for processing the expansion and contraction of the jet printing image comprises the following steps:
s100, providing a circuit board to be subjected to jet printing and an original jet printing image;
s200, dividing the circuit board to be jet printed according to a preset rule to obtain 2N jet printing areas; the spray printing area covers one edge of the circuit board to be spray printed; wherein N is greater than or equal to 2;
s300, respectively obtaining the expansion and contraction coefficients of 2N jet printing areas; dividing every two adjacent spray printing areas into a collapsible area;
s400, determining the image scaling of the original spray printing image according to the expansion and contraction coefficients of the two spray printing areas in the expansion and contraction area;
s500, sequentially zooming the original jet printing images according to the image zooming proportion to obtain N zoomed images of the original jet printing images;
s600, acquiring local spray printing images for spray printing on the collapsible areas from the collapsible images;
and S700, combining the N local spray printing images to generate a new spray printing image.
Specifically, 2N jet printing areas which correspond to the edges of the circuit board to be jet printed one by one are obtained by dividing the circuit board to be jet printed according to a preset rule; then respectively obtaining the expansion and shrinkage coefficients of 2N jet printing areas, dividing every two adjacent jet printing areas into an expansion and shrinkage area, and zooming the original jet printing image according to the image zooming proportion of the expansion and shrinkage area to obtain N zoomed images of the original jet printing image; then obtaining local spray printing images from the zoomed images, and combining the N local spray printing images to generate new spray printing images; the method comprises the following steps of dividing a circuit board to be subjected to jet printing according to a preset rule to obtain the expansion and contraction coefficients of 2N jet printing areas, and avoiding the condition of overlarge accumulated length error caused by overlong calculated side length, so that the accuracy of the expansion and contraction coefficients is improved; and then, the original spray printing images are sequentially zoomed according to the image zoom ratio determined by the expansion and contraction coefficient to obtain the local spray printing images which are in one-to-one correspondence with the expansion and contraction areas, so that the zoom effect of the combined new spray printing images is closer to the actual expansion and contraction condition of the circuit board with the spray printing function, and the problem of deviation when the spray printing equipment sprays printing is avoided.
Further, step S200 specifically includes:
s201, obtaining 2N actual position identification points of a circuit board to be printed; the actual position identification point is a sideline intersection point of the circuit board to be jet-printed;
s202, determining the centroid of the circuit board to be printed according to the actual position identification points;
s203, connecting the centroid of the circuit board to be printed and the actual position identification point to form 2N actual dividing lines;
and S204, dividing the circuit board to be subjected to jet printing according to the actual dividing line to obtain 2N jet printing areas.
Specifically, acquiring 2N actual position identification points of a circuit board to be printed, and acquiring the actual position identification points of the circuit board to be printed by a CCD (charge coupled device) detection device; then, determining the centroid coordinate of the circuit board to be printed according to the coordinate of the actual position identification point; then, connecting the centroid and the actual position identification point to form 2N actual dividing lines; finally, the circuit board to be subjected to jet printing is divided through an actual dividing line to obtain 2N jet printing areas; the method can rapidly divide the circuit board to be jet printed, and only the sideline intersection point of the circuit board to be jet printed needs to be acquired, so that the sideline intersection point has clear characteristics, and the jet printing equipment can rapidly acquire the actual position identification; meanwhile, the circuit board to be printed is divided through the actual dividing line, so that the condition that the edge of the circuit board to be printed is correspondingly covered by the printing area can be effectively ensured, and the subsequent calculation of the expansion and contraction coefficient of the circuit board to be printed is facilitated.
Illustratively, for the condition that the circuit board to be subjected to jet printing is rectangular, the circuit board to be subjected to jet printing is provided with 4 actual position identification points, after the centroid of the circuit board to be subjected to jet printing is obtained, the centroid is respectively connected with the actual position identification points, so that 4 actual dividing lines are obtained, wherein the 2 nonadjacent actual dividing lines are parallel; then, each side line of the circuit board to be jet-printed and 2 intersected actual dividing lines form a jet-printing area; similarly, the printed circuit board can be hexagonal, octagonal or the like.
Further, step S300 is preceded by:
s210, segmenting the original spray printing image according to a preset rule to obtain 2N original segmentation images;
s220, calculating the expansion and contraction coefficients of the 2N jet printing areas;
step S220 specifically includes:
s221, acquiring the centroid of each original segmentation image and the original distance between each corner point of each original segmentation image, and acquiring the real centroid of each spray printing area and the actual distance between each corner point of each spray printing area;
s222, calculating the expansion and contraction coefficient of each jet printing area according to the actual interval and the original interval.
Specifically, when the expansion and shrinkage coefficient corresponding to one side of the circuit board to be jet printed is calculated, the jet printing area corresponding to the side is compared with an original segmentation object, namely the actual space is divided by the original space to obtain the expansion and shrinkage coefficient, which is equivalent to twice thinning, the first time is the segmentation according to the preset rule mentioned in the step S200, the second time is the step of calculating the expansion and shrinkage coefficient of each jet printing area according to the actual space and the original space, and the expansion and shrinkage coefficient of each jet printing area is obtained through twice thinning, so that the problem that the accumulated length error exists in the expansion and shrinkage coefficient calculation in the prior art is solved, the actual expansion and shrinkage condition of the circuit board to be jet printed is fed back more effectively, and the jet printing precision is improved.
For example, in the case of a rectangular printed circuit board, the outline of the original printed image is also rectangular, and the rectangle can form 4 triangles according to the above-mentioned predetermined rule; namely, each original segmentation image and each jet printing area are triangles; taking a certain original segmentation image of a triangle as an example, 3 corner points exist, wherein 2 corner points are rectangular corner points, and the other corner point is a rectangular centroid, then the centroid of the original segmentation image obtained through the 3 corner points can be obtained, and the original distances between the centroid of the original segmentation image and the 3 corner points are respectively measured; similarly, the actual distance between the triangular jet printing areas can be correspondingly obtained; and finally, dividing the actual space by the original space to obtain 3 sub-expansion and contraction coefficients, and taking the average value of the 3 sub-expansion and contraction coefficients as the expansion and contraction coefficient of the jet printing area.
Further, after step S400, the method further includes:
and S410, if the scaling ratios of the images are equal, scaling the original jet printing image according to the scaling ratios of the images to generate a new jet printing image.
Specifically, when the scaling ratios of the images are equal, the original jet printing image is scaled to generate a new jet printing image, and the steps S500-S700 do not need to be executed, so that the execution efficiency of the program is improved, and the production efficiency is effectively improved.
Further, after step S600, the method further includes:
s610, splicing N local spray printing images in advance;
s620, judging whether image elements dislocated into two sub-image elements exist at the joint of two adjacent local spray printing images;
s630, if yes, widening the two sub-image elements oppositely to form a widened image element;
s640, if not, executing the step S700: and combining the N local spray printing images to generate a new spray printing image.
Through the steps, the problem of position offset caused by respective expansion and contraction of the original spray-printed image after being segmented is solved, and the problem of image element fracture or dislocation of the original spray-printed image after being processed is avoided.
For example, in step S400, for a rectangular printed circuit board to be subjected to inkjet printing, the number of the collapsible regions is 2, and the collapsible regions are separated along a certain diagonal line of the rectangle; any one expansion and contraction area comprises 2 jet printing areas, and the jet printing areas are correspondingly provided with expansion and contraction coefficients, so that the image scaling of the original jet printing image is determined through the expansion and contraction coefficients in two different directions.
Specifically, step S600 specifically includes:
s601, determining 2 corner points of a local spray printing image in the zoomed image according to the edge covered by the spray printing area corresponding to the image zoom scale corresponding to the zoomed image;
s602, connecting 2 corner points of the local spray printing image with the centroid of the zoomed image to form 2 local dividing lines;
and S603, separating the local spray printing image from the scaled image along the 2 local dividing lines to obtain the local spray printing image for spray printing on the collapsible area.
By the mode, the local spray printing image is quickly separated from the scaling image to which the local spray printing image belongs, and the program execution efficiency is improved.
Specifically, the specific implementation manner of step S700 is to use one of the local jet printing images as a reference jet printing image, then splice the other local jet printing image adjacent to the one of the local jet printing images with the reference jet printing image, specifically make the corner points and the side lines of the local jet printing image coincide with the corner points and the side lines of the reference jet printing image, and then splice the next local jet printing image in sequence until the nth local jet printing image is spliced, so as to generate a new jet printing image; for example, for an original rectangular jet printing image, after step S600, 2 local jet printing images are obtained, one of the local jet printing images is used as a reference jet printing image, one of the edge lines and the corner points are determined, and the edge line and the corner point corresponding to the other local jet printing image are overlapped with each other, so as to generate a new jet printing image.
In summary, the method for processing the printed circuit board by expansion and shrinkage provided by the embodiment can effectively grasp the actual expansion and shrinkage condition of the printed circuit board to be printed, and can perform scaling processing on the original printed circuit board according to the expansion and shrinkage condition of the printed circuit board to be printed, thereby avoiding the problem of deviation caused by the expansion and shrinkage of the printed circuit board to be printed, and having the problems of high execution efficiency and high printing precision.
Example two
As shown in fig. 2, the inkjet printing apparatus includes an image processing system; the image processing system comprises an input module 1, a segmentation module 2, a harmomegathus region setting module 3, a scaling setting module 4, a scaling module 5, a local spray printing image acquisition module 6 and a merging module 7;
the device comprises an input module 1, a printing module and a printing module, wherein the input module is used for providing a circuit board to be subjected to jet printing and an original jet printing image;
the cutting module 2 is used for cutting the circuit board to be jet printed according to a preset rule to obtain 2N jet printing areas; the spray printing area covers one edge of the circuit board to be spray printed;
the expansion and contraction area setting module 3 is used for respectively acquiring expansion and contraction coefficients of the 2N jet printing areas; dividing every two adjacent spray printing areas into an expansion area;
the scaling setting module 4 is used for determining the image scaling of the original spray printing image according to the expansion and contraction coefficients of the two spray printing areas in the expansion and contraction area;
the scaling module 5 is used for sequentially scaling the original jet printing images according to the scaling of each image to obtain N scaled images of the original jet printing images;
a local spray printing image acquisition module 6, configured to acquire a local spray printing image for spray printing on each collapsible area from each of the scaled images;
and the merging module 7 is used for merging the N local spray printing images to generate a new spray printing image.
Specifically, 2N jet printing areas which correspond to the edges of the circuit board to be jet printed one by one are obtained by dividing the circuit board to be jet printed according to a preset rule; then respectively obtaining the expansion and shrinkage coefficients of 2N jet printing areas, dividing every two adjacent jet printing areas into an expansion and shrinkage area, and zooming the original jet printing image according to the image zooming proportion of the expansion and shrinkage area to obtain N zoomed images of the original jet printing image; then obtaining local spray printing images from the zoomed images, and combining the N local spray printing images to generate new spray printing images; the method comprises the following steps of dividing a circuit board to be subjected to jet printing according to a preset rule to obtain the expansion and contraction coefficients of 2N jet printing areas, and avoiding the condition of overlarge accumulated length error caused by overlong calculated side length, so that the accuracy of the expansion and contraction coefficients is improved; and then, the original spray printing images are sequentially zoomed according to the image zoom ratio determined by the expansion and contraction coefficient to obtain the local spray printing images which are in one-to-one correspondence with the expansion and contraction areas, so that the zoom effect of the combined new spray printing images is closer to the actual expansion and contraction condition of the circuit board with the spray printing function, and the problem of deviation when the spray printing equipment sprays printing is avoided.
Further, the segmentation module 2 comprises an actual position identification point acquisition unit, a centroid determination unit, an actual segmentation line forming unit and a segmentation unit;
the actual position identification point acquisition unit is used for acquiring 2N actual position identification points of the circuit board to be printed; the actual position identification point is positioned at the edge line intersection of the circuit board to be jet-printed;
the centroid determining unit is used for determining the centroid of the circuit board to be printed according to the actual position identification point;
the actual dividing line forming unit is used for connecting the centroid of the circuit board to be printed and the actual position identification point to form 2N actual dividing lines;
and the cutting unit is used for cutting the circuit board to be subjected to jet printing according to the actual cutting line to obtain 2N jet printing areas.
Furthermore, the image processing system also comprises an original segmentation module and a harmomegathus coefficient calculation module;
the original segmentation module is used for segmenting the original spray printing image according to a preset rule to obtain 2N original segmentation images;
the expansion and contraction coefficient calculation module is used for calculating expansion and contraction coefficients of the 2N jet printing areas;
the expansion and contraction coefficient calculation module comprises a spacing acquisition unit and an expansion and contraction coefficient calculation unit;
the distance acquisition unit is used for acquiring the centroid of each original segmentation image and the original distance between each corner point of each original segmentation image, and acquiring the real centroid of each spray printing area and the actual distance between each corner point of each spray printing area;
and the expansion and contraction coefficient calculation unit is used for calculating the expansion and contraction coefficient of each spray printing area according to the actual interval and the original interval.
Further, the image processing system further comprises an overall scaling module;
and the integral scaling module is used for scaling the original jet printing image according to the image scaling ratio to generate a new jet printing image when the scaling ratios of the images are equal.
Furthermore, the image processing system also comprises a pre-splicing module, a dislocation judgment module and a widening module;
the pre-splicing module is used for splicing the N local spray printing images in advance;
the dislocation judgment module is used for judging whether an image element dislocated into two sub-image elements exists at the joint of two adjacent local spray printing images;
and the widening module is used for widening the two sub-image elements oppositely to form a widened image element when the image element which is dislocated into the two sub-image elements exists at the joint of the two adjacent local jet printing images.
Further, the local spray printing image acquisition module 6 comprises a corner point determination unit, a local dividing line forming unit and a separation unit;
the edge point determining unit is used for determining 2 edge points of the local spray printing image in the zoomed image according to the edge covered by the spray printing area corresponding to the image zoom scale corresponding to the zoomed image;
the local dividing line forming unit is used for connecting 2 corner points of the local spray printing image with the centroid of the zoomed image to form 2 local dividing lines;
and the separation unit is used for separating the local spray printing image from the scaling image along the 2 local dividing lines to obtain the local spray printing image which is used for spray printing on the expansion and contraction area.
In summary, the inkjet printing apparatus provided in this embodiment can effectively grasp the actual expansion and contraction condition of the printed circuit board to be inkjet printed, and perform scaling processing on the original inkjet printed image according to the expansion and contraction condition of the printed circuit board to be inkjet printed, thereby avoiding the problem of deviation caused by the expansion and contraction of the printed circuit board to be inkjet printed, and having the problems of high execution efficiency and high inkjet printing precision.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for processing expansion and contraction of a jet printing image is characterized by comprising the following steps:
providing a circuit board to be jet printed and an original jet printing image;
dividing the circuit board to be subjected to jet printing according to a preset rule to obtain 2N jet printing areas; the spray printing area covers one edge of the circuit board to be spray printed;
segmenting the original spray printing image according to the preset rule to obtain 2N original segmented images;
calculating the expansion and contraction coefficients of 2N jet printing areas;
respectively acquiring the expansion and contraction coefficients of 2N jet printing areas; dividing every two adjacent spray printing areas into a collapsible area;
determining the image scaling of the original spray printing image according to the expansion and contraction coefficients of the two spray printing areas in the expansion and contraction area;
sequentially zooming the original spray printing images according to the image zooming ratios to obtain N zoomed images of the original spray printing images;
acquiring local spray printing images for spray printing on the expansion and contraction areas from the expansion and contraction images;
merging the N local spray printing images to generate a new spray printing image;
wherein the steps of: dividing the circuit board to be jet-printed according to a preset rule to obtain 2N jet-printed areas, wherein the method specifically comprises the following steps:
acquiring 2N actual position identification points of the circuit board to be jet-printed; the actual position identification point is a sideline intersection point of the circuit board to be printed;
determining the centroid of the circuit board to be subjected to jet printing according to the actual position identification point;
connecting the centroid of the circuit board to be printed with the actual position identification point to form 2N actual dividing lines;
cutting the circuit board to be subjected to spray printing according to the actual dividing line to obtain the 2N spray printing areas;
wherein the steps of: calculating the expansion and contraction coefficients of the 2N jet printing areas, and specifically comprising the following steps:
acquiring the centroid of each original segmentation image and the original distance between each corner point of the original segmentation image, and acquiring the actual distance between the solid centroid of each spray printing area and each corner point of the spray printing area;
and calculating the expansion and contraction coefficient of each spray printing area according to the actual distance and the original distance.
2. The method for processing the expansion and contraction of the jet printed image according to claim 1, wherein in the step: after determining the image scaling of the original jet printing image according to the expansion and contraction coefficients of the two jet printing areas in the expansion and contraction area, the method further comprises the following steps:
and if the scaling ratios of the images are equal, scaling the original spray printing image according to the scaling ratios of the images to generate a new spray printing image.
3. The method for processing the expansion and contraction of the jet printed image according to claim 1, wherein the steps of: after acquiring the local inkjet printing image for inkjet printing on each collapsible area from each of the zoomed images, the method further includes:
splicing N local spray printing images in advance;
judging whether an image element dislocated into two sub-image elements exists at the joint of two adjacent local spray printing images;
if yes, widening the two sub-image elements in opposite directions to form widened image elements;
if not, executing the steps: and combining the N local spray printing images to generate a new spray printing image.
4. An inkjet printing apparatus, comprising an image processing system; the image processing system comprises an input module, a segmentation module, an expansion and contraction area setting module, a scaling ratio setting module, a scaling module, a local spray printing image acquisition module, a merging module, an original segmentation module and an expansion and contraction coefficient calculation module;
the input module is used for providing a circuit board to be jet-printed and an original jet-printed image;
the cutting module is used for cutting the circuit board to be subjected to jet printing according to a preset rule to obtain 2N jet printing areas; the spray printing area covers one edge of the circuit board to be spray printed;
the original segmentation module is used for segmenting the original spray printing image according to the preset rule to obtain 2N original segmentation images;
the expansion and contraction coefficient calculation module is used for calculating expansion and contraction coefficients of the 2N jet printing areas;
the expansion and contraction area setting module is used for respectively acquiring expansion and contraction coefficients of the 2N jet printing areas; dividing every two adjacent spray printing areas into an expansion area;
the scaling setting module is used for determining the image scaling of the original jet printing image according to the expansion and contraction coefficients of the two jet printing areas in the expansion and contraction area;
the scaling module is used for scaling the original jet printing images in sequence according to the scaling of each image to obtain N scaled images of the original jet printing images;
the local spray printing image acquisition module is used for acquiring local spray printing images which are used for spray printing on the expansion and contraction areas from the expansion and contraction images;
the merging module is used for merging the N local spray printing images to generate a new spray printing image;
the segmentation module comprises an actual position identification point acquisition unit, a centroid determining unit, an actual segmentation line forming unit and a segmentation unit;
the actual position identification point acquisition unit is used for acquiring 2N actual position identification points of the circuit board to be printed; the actual position identification point is positioned at the boundary line intersection of the circuit board to be jet-printed;
the centroid determining unit is used for determining the centroid of the circuit board to be subjected to jet printing according to the actual position identification point;
the actual dividing line forming unit is used for connecting the centroid of the circuit board to be printed and the actual position identification point to form 2N actual dividing lines;
the dividing unit is used for dividing the circuit board to be subjected to jet printing according to the actual dividing line to obtain the 2N jet printing areas;
the expansion and contraction coefficient calculation module comprises a distance acquisition unit and an expansion and contraction coefficient calculation unit;
the distance obtaining unit is used for obtaining the centroid of each original segmentation image and the original distance between each corner point of the original segmentation image, and obtaining the actual distance between the solid centroid of each jet printing area and each corner point of the jet printing area;
and the expansion and contraction coefficient calculation unit is used for calculating the expansion and contraction coefficient of each spray printing area according to the actual distance and the original distance.
5. The jet printing apparatus of claim 4, wherein the image processing system further comprises an integral scaling module;
and the integral scaling module is used for scaling the original jet printing image according to the image scaling when the scaling of each image is equal to generate a new jet printing image.
6. The jet printing apparatus of claim 5, wherein the image processing system further comprises a pre-stitching module, a misalignment determination module, and a widening module;
the pre-splicing module is used for splicing N local spray printing images in advance;
the dislocation judgment module is used for judging whether an image element dislocated into two sub-image elements exists at the joint of two adjacent local spray printing images;
and the widening module is used for widening the two sub-image elements oppositely to form a widened image element when the image element which is dislocated into the two sub-image elements exists at the joint of the two adjacent local jet printing images.
CN202011102368.0A 2020-10-15 2020-10-15 Expansion and shrinkage processing method of jet printing image and jet printing equipment Active CN112150365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011102368.0A CN112150365B (en) 2020-10-15 2020-10-15 Expansion and shrinkage processing method of jet printing image and jet printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011102368.0A CN112150365B (en) 2020-10-15 2020-10-15 Expansion and shrinkage processing method of jet printing image and jet printing equipment

Publications (2)

Publication Number Publication Date
CN112150365A CN112150365A (en) 2020-12-29
CN112150365B true CN112150365B (en) 2023-02-21

Family

ID=73952013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011102368.0A Active CN112150365B (en) 2020-10-15 2020-10-15 Expansion and shrinkage processing method of jet printing image and jet printing equipment

Country Status (1)

Country Link
CN (1) CN112150365B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115518B (en) * 2021-04-13 2022-07-12 生益电子股份有限公司 Collapsible translation method
CN114723749B (en) * 2022-06-06 2022-10-11 深圳市国人光速科技有限公司 Image processing method and device for improving definition of jet printing characters and jet printing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1994751A (en) * 2005-12-31 2007-07-11 财团法人工业技术研究院 Graph printing system and data processing method thereof
CN104297254A (en) * 2014-10-08 2015-01-21 华南理工大学 Mixing-method-based method and system applied to defect detection of printed circuit board
CN107506817A (en) * 2017-07-13 2017-12-22 海南亚元防伪技术研究所(普通合伙) The virtual endowed method and system of commodity based on individualized pattern
CN109886974A (en) * 2019-01-28 2019-06-14 北京易道博识科技有限公司 A kind of seal minimizing technology
CN110852994A (en) * 2019-10-15 2020-02-28 江门市得实计算机外部设备有限公司 Visual detection method and system for jet printing card

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007219336B8 (en) * 2007-09-28 2011-07-21 Canon Kabushiki Kaisha Method and apparatus for abitrary ratio image reduction
JP5630541B2 (en) * 2009-01-20 2014-11-26 ソニー株式会社 Information processing apparatus, information processing method, and program
CN111091572B (en) * 2019-12-18 2023-06-30 上海众源网络有限公司 Image processing method and device, electronic equipment and storage medium
CN111488881A (en) * 2020-04-10 2020-08-04 杭州睿琪软件有限公司 Method, device and storage medium for removing handwritten content in text image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1994751A (en) * 2005-12-31 2007-07-11 财团法人工业技术研究院 Graph printing system and data processing method thereof
CN104297254A (en) * 2014-10-08 2015-01-21 华南理工大学 Mixing-method-based method and system applied to defect detection of printed circuit board
CN107506817A (en) * 2017-07-13 2017-12-22 海南亚元防伪技术研究所(普通合伙) The virtual endowed method and system of commodity based on individualized pattern
CN109886974A (en) * 2019-01-28 2019-06-14 北京易道博识科技有限公司 A kind of seal minimizing technology
CN110852994A (en) * 2019-10-15 2020-02-28 江门市得实计算机外部设备有限公司 Visual detection method and system for jet printing card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Adaptive Image Zooming Technique with the aid of correlation matrix and hybrid interpolation;P P Lisha等;《2019 9th International Conference on Advances in Computing and Communication (ICACC)》;20200210;第310 - 315页 *
基于ARM9高解析喷码机的数字图像处理系统分析与研究;郝春华;《cnki优秀硕士学位论文全文库 信息科技辑》;20160315;第I138-6011页 *

Also Published As

Publication number Publication date
CN112150365A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN112150365B (en) Expansion and shrinkage processing method of jet printing image and jet printing equipment
KR100869570B1 (en) Camera calibrating method and camera calibrating device
US6546118B1 (en) Image processing apparatus for vehicle
CN110223226B (en) Panoramic image splicing method and system
JPH03191600A (en) Inspection apparatus provided with automatic formation function of inspection program data
CN105096283A (en) Panoramic image acquisition method and device
US11880993B2 (en) Image processing device, driving assistance system, image processing method, and program
US6442292B1 (en) Measuring apparatus
CN107948639B (en) Calibration method and calibration system for back-to-back camera module
CN111243034A (en) Panoramic auxiliary parking calibration method, device, equipment and storage medium
US6141439A (en) Apparatus for image measurement
JP4139137B2 (en) Building outline extraction method and system
CN112150355B (en) Image processing method and related equipment
CN113139399A (en) Image line frame identification method and server
JP3625245B2 (en) Image processing method and image processing apparatus
CN112651261A (en) Calculation method for conversion relation between high-precision 2D camera coordinate system and mechanical coordinate system
JP3857668B2 (en) Pattern alignment method
JPH03201454A (en) Aligning method for semiconductor device
CN117102661B (en) Visual positioning method and laser processing equipment
JP2974794B2 (en) Multi-view recognition method for polygonal parts
JPH11248446A (en) Stereo picture processor
JP4091231B2 (en) Pattern alignment method
JPH07134014A (en) Device for measuring magnification/angle of pattern
JPH1091788A (en) Device for positioning pattern and method therefor
JP2001202520A (en) Method for composing pattern

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