Vehicle front and rear visual inspection printer and scanning and printing method thereof

By setting up visual detection components on the back side of the front of the flatbed printer, image data is collected in advance and printing immediately when the front of the printing car is advanced, the problem of inefficient printing in the prior art is solved, and printing is achieved while scanning is achieved, printing is improved and printing efficiency is improved. flexibility.

CN118514445BActive Publication Date: 2024-11-19SHENZHEN DINGLI DIGITAL TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410744439.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-11-19
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Before printing, existing flatbed printers require the front-vehicle visual scanning device to acquire images and locate them, resulting in increased waiting time and unnecessary movement actions, reducing printing efficiency.

Method used

Design a visual detection printer for the front and back of the vehicle. By setting up visual detection components on the back of the printing front, image data is collected in advance, and printing immediately when the printing front and forward to the next area, avoiding scanning waiting and unnecessary movement, and realizing edges Scan the edge print.

Benefits of technology

Improves printing efficiency, reduces waiting time and unnecessary movement actions, and enhances the flexibility and personalized printing capabilities of the printer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118514445B_ABST
    Figure CN118514445B_ABST
Patent Text Reader

Abstract

The present invention relates to a head-on visual inspection printer and a scanning and printing method thereof, the method comprising: obtaining the position of a printing head; judging whether the printing head moves to a preset endpoint position in the x-axis direction; if so, judging whether the preset endpoint position is a printing start position; if not, sending a y-axis movement instruction of a beam to the printing head; judging whether the beam has completed the advancement of a preset distance; if completed, sending a head x-axis movement instruction and a printing instruction to the printing head, and sending a visual acquisition instruction to a visual inspection component; continuously obtaining image data collected by the visual inspection component; processing the image data into printing dot matrix data, and using the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction to be sent next time; achieving the effect of the printer scanning and printing, without the need for scanning waiting, and avoiding unnecessary reciprocating movement of the printing head, thereby greatly improving printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of printers, and in particular to a front-end and back-end visual inspection printer and a scanning and printing method thereof. Background Art

[0002] A flatbed printer is a device that prints on flat materials, usually for printing various patterns, texts or pictures. It is widely used and can be printed on various flat materials, including metal, glass, plastic, ceramics, wood, etc. It can accurately print detailed patterns, texts and pictures to meet various usage requirements. Moreover, flatbed printers can be customized to print personalized patterns, colors and shapes, which has great flexibility. Therefore, it has been widely used in all walks of life.

[0003] However, before printing a pattern, the current flatbed printer needs the head vision scanning device to first collect the image of all the printed products on the printing platform, and wait for the image to be formed and positioned before starting to print the printing material. This wastes the scanning waiting time, and on the other hand, the printing head has to make unnecessary reciprocating movements, which greatly reduces the printing efficiency.

[0004] Therefore, there is an urgent need to improve the structure and printing method of the flatbed printer. Summary of the invention

[0005] The main purpose of the present invention is to provide a front-back visual inspection printer and a scanning and printing method thereof, so as to solve the problem of low printing efficiency of the printer in the prior art.

[0006] To achieve the above-mentioned purpose, the present invention provides a head-on visual inspection printer, comprising a chassis, a printing platform, a crossbeam assembly, a crossbeam motion carrier, a printing head, and a visual inspection assembly.

[0007] The printing platform is arranged on the upper surface of the base frame, the beam moving carrier is arranged on both sides of the printing platform and on the upper surface of the base frame, the beam assembly is arranged above the printing platform and the beam moving carrier, and the beam assembly can move back and forth in the y-axis direction along the beam moving carrier, during the printing process, the distance that the beam assembly advances in the y-axis direction at a time is a preset distance, the printing head is carried on the beam assembly, and the printing head can move back and forth in the x-axis direction, the x-axis direction and the y-axis direction are both on a horizontal plane, and the x-axis direction is perpendicular to the y-axis direction,

[0008] The printing head includes a front side and a back side, the direction from the front side to the back side is parallel to the y-axis direction, and at the printing start position, the back side is closer to the printing platform than the front side, wherein the printing start position is the position of the printing head when the printer is in a standby state, and the visual detection component is arranged on the back side of the printing head, and the width of the image captured by the visual detection component is greater than or equal to the preset distance.

[0009] Further, the beam assembly includes a beam, a first linear guide and a second linear guide, the first linear guide and the second linear guide are arranged on opposite sides of the beam in the x-axis direction, the first linear guide and the second linear guide are parallel to the x-axis direction, the print head is electrically connected to the first motor, the print head can move back and forth along the first linear guide when driven by the first motor, and the visual detection assembly can move back and forth along the second linear guide.

[0010] Furthermore, the visual detection component is electrically connected to a second motor, and the visual detection component can move back and forth along the second linear guide rail when driven by the second motor.

[0011] Furthermore, the visual detection component includes a mounting bracket and a camera assembly, the mounting bracket is used to support the camera assembly, the light incident surface of the camera assembly faces the printing platform, a slide groove is provided on one side of the mounting bracket, and the slide groove cooperates with the second linear guide rail so that the visual detection component can move back and forth along the second linear guide rail; a light source assembly is provided at the bottom of the camera assembly, and the light source assembly is installed at the bottom of the mounting bracket.

[0012] Furthermore, at least a portion of a side of the mounting bracket where the slide slot is disposed is fixed to a back side of the printing head.

[0013] The present invention also provides a scanning and printing method of a front and back visual inspection printer, comprising the following steps:

[0014] Get the position of the printing head;

[0015] Determine whether the printing head moves to a preset endpoint position in the x-axis direction;

[0016] If it moves to the preset endpoint position, determining whether the preset endpoint position is the printing start position;

[0017] If it is not the printing start position, sending a beam y-axis movement instruction to the printing head, the beam y-axis movement instruction is used to move the beam forward a preset distance in the y-axis direction of the printing platform;

[0018] Determining whether the beam has completed the advance of the preset distance;

[0019] If the preset distance is advanced, a head x-axis movement instruction and a printing instruction are sent to the printing head, and a visual acquisition instruction is sent to the visual detection component; the head x-axis movement instruction is used to move the printing head from one end of the x-axis direction of the printing platform to the other end of the x-axis direction of the printing platform; the printing instruction carries pre-processed printing dot matrix data, and the printing instruction is used to control the printing head to print according to the pre-processed printing dot matrix data;

[0020] In the process of the printing head moving from one end to the other end, continuously acquiring the image data collected by the visual detection component;

[0021] The image data is processed into printing dot matrix data, and the printing dot matrix data is used as pre-processed printing dot matrix data carried in the printing instruction sent next time.

[0022] Furthermore, after the step of determining whether the preset endpoint position is the printing start position, the following steps are performed:

[0023] If it is at the printing start position, sending the head x-axis movement instruction to the printing head, and sending the visual acquisition instruction to the visual detection component;

[0024] Acquiring image data collected by the visual detection component;

[0025] Processing the image data into printing dot matrix data;

[0026] In the process of the printing head moving from one end to the other end, continuously acquiring the image data collected by the visual detection component;

[0027] The image data is processed into printing dot matrix data, and the printing dot matrix data is used as pre-processed printing dot matrix data carried in the printing instruction sent for the first time.

[0028] Furthermore, the visual acquisition instruction includes a visual x-axis movement instruction and an image acquisition instruction, and the step of sending the visual acquisition instruction to the visual detection component includes:

[0029] Sending a visual x-axis movement instruction to the visual detection component, and sending an image acquisition instruction to the visual detection component; wherein the visual x-axis movement instruction is used to move the visual detection component from one end of the printing platform in the x-axis direction to the other end of the printing platform in the x-axis direction; the image acquisition instruction is used to continuously acquire image data during the process of the visual detection component moving from one end to the other end.

[0030] Furthermore, the vehicle head x-axis movement instruction carries a vehicle head movement speed, and the visual x-axis movement instruction carries a visual movement speed; the vehicle head movement speed is equal to the visual movement speed, or the vehicle head movement speed is not equal to the visual movement speed.

[0031] Furthermore, the step of processing the image data into printing dot matrix data and using the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time includes:

[0032] Extracting a graphic outline contained in the image data;

[0033] Performing contour matching on the graphic contour in a preset image library to obtain a matching image;

[0034] Acquire printing dot matrix data of the matching image;

[0035] Generate initial printing dot matrix data corresponding to the image data;

[0036] The printing start line is determined according to the current printing position of the printing head, and the printing width is determined according to the preset distance. The printing dot matrix data is extracted from the initial printing dot matrix data according to the printing start line and the printing width to serve as the pre-processed printing dot matrix data carried in the printing instruction sent next time.

[0037] The front and back visual inspection printer and the scanning and printing method thereof provided by the present invention have the following beneficial effects:

[0038] By setting the visual detection component on the back side of the printing head, the visual detection component can collect image data one line earlier than the printing head. That is, when the print head of the printing head is printing the image of the Nth area, the visual acquisition detection is collecting the image data of the N+1th area. When the print head of the printing head advances to the N+1th area, it can print immediately, realizing the effect of the printer scanning and printing at the same time, without the need to wait for scanning, and avoiding unnecessary reciprocating movement of the printing head, thereby greatly improving printing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a schematic diagram of the structure of a front-end visual inspection printer according to an embodiment of the present invention;

[0040] Figure 2 yes Figure 1 A schematic diagram of the enlarged structure of part A;

[0041] Figure 3 It is a flow chart of a scanning and printing method of a front-back visual inspection printer in one embodiment of the present invention.

[0042] 1: chassis; 2: printing platform; 3: crossbeam assembly; 301: crossbeam; 302: second linear guide rail; 4: crossbeam motion carrier; 5: printing head; 501: front side; 502: back side; 6: visual detection assembly; 61: mounting bracket; 611: fixing assembly; 612: first positioning assembly; 6121: first adjustment edge; 6122: second adjustment edge; 613: second positioning assembly; 62: camera assembly; 621: camera control module; 622: camera body; 623: lens; 63: slide slot; 64: light source assembly; 641: light source fixing bracket; 642: heat dissipation assembly; 643: light source housing; 644: light through slot.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0045] Reference Figure 1 , which is a head-on visual inspection printer provided by the present invention, comprises a chassis 1, a printing platform 2, a crossbeam assembly 3, a crossbeam moving carrier 4, a printing head 5, and a visual inspection assembly 6,

[0046] The printing platform 2 is arranged on the upper surface of the base frame 1, and the beam moving carrier 4 is arranged on both sides of the printing platform 2 and on the upper surface of the base frame 1. The beam assembly 3 is arranged above the printing platform 2 and the beam moving carrier 4, and the beam assembly 3 can move back and forth in the y-axis direction along the beam moving carrier 4. During the printing process, the single forward distance of the beam assembly 3 in the y-axis direction is the forward preset distance. The printing head 5 is carried on the beam assembly 3, and the printing head 5 can move back and forth in the x-axis direction. The x-axis direction and the y-axis direction are both on the horizontal plane, and the x-axis direction is perpendicular to the y-axis direction.

[0047] The printing head 5 includes a front side 501 and a back side 502, the direction from the front side 501 to the back side 502 is parallel to the y-axis direction, and at the printing start position, the back side 502 is closer to the printing platform 2 than the front side 501, wherein the printing start position is the position of the printing head 5 when the printer is in a standby state, and the visual detection component 6 is arranged on the back side 502 of the printing head 5, and the width of the image collected by the visual detection component 6 is greater than or equal to the preset distance. The visual detection component 6 can be connected to the back side 502 of the printing head 5, and can also be disconnected from the back side 502 of the printing head 5.

[0048] In this embodiment, the printing platform 2 of the printer is divided into areas along the y-axis direction, starting from the y-axis end of the printing platform 2 where the printing task starts, and is divided into several rectangular areas with a width of a preset distance, which are respectively used as the first area, the second area, the third area... It can be understood that the width of the last area is less than or equal to the preset distance.

[0049] When the printer is in standby mode, the print head 5 is reset to the printing start position. When the printing task is started, the print head 5 performs the process of moving from one end of the printing platform 2 to the other end along the beam component 3 on the x-axis for the first time in this printing task. During this process, the area passed by the print head of the print head 5 is the printing buffer area of ​​the printer. The printing buffer area is not on the printing platform 2, and the print head 5 does not print. At the same time, the visual detection component 6 synchronously performs the process of moving from one end of the printing platform 2 to the other end along the beam component 3 on the x-axis for the first time. Since the visual detection component 6 is located on the back side 502 of the print head 5, the visual detection component 6 is just located above the first area of ​​the printing platform 2. During this process, the visual detection component 6 captures the image of the first area of ​​the printing platform 2. The image is further sent to the processor for image processing and converted into pre-processed printing dot matrix data corresponding to the first area.

[0050] After completing the task of the first row, the print head 5 moves to the other end of the printing platform 2, and the beam assembly 3 advances a preset distance on the beam motion carrier 4 to start the task of the second row. At this time, the print head of the print head 5 reaches directly above the first area, and the visual detection assembly 6 reaches directly above the second area. The print head 5 executes the print command according to the pre-processed printing dot matrix data corresponding to the first area, and the visual acquisition component acquires the image corresponding to the second area, and further processes to obtain the pre-processed printing dot matrix data corresponding to the second area. Similar to the execution of the task of the second row, in the tasks of subsequent rows, when the print head of the print head 5 prints the Nth area, the visual detection assembly 6 acquires the image of the N+1th area, where N is a natural number, N≥1, and the maximum value of N is the number of areas into which the printing platform 2 is divided. It can be understood that the N+1th area exceeds the range of the printing platform. When the print head executes the printing task of the last area, the shooting range of the visual detection assembly 6 has exceeded the printing platform 2. At this time, the visual detection assembly 6 can stop acquiring images. Of course, the visual detection assembly 6 can also acquire images, but there is no need to process the image again. Since the print head of the print head 5 advances a preset distance on the y-axis each time, the printing width of the print head is usually equal to the preset distance. The width of the image collected by the visual detection component 6 needs to be greater than or equal to the preset distance to ensure that there are no gaps between rows when the print head prints the pattern.

[0051] In this embodiment, the visual detection component 6 is arranged on the back side 502 of the printing head 5, so that the visual detection component 6 can collect image data one line earlier than the printing head 5. That is, when the print head of the printing head 5 is printing the image of the Nth area, the visual acquisition detection 6 is collecting the image data of the N+1th area. When the print head of the printing head 5 advances to the N+1th area, it can print immediately, thereby achieving the effect of the printer scanning and printing at the same time, without the need to wait for scanning, and avoiding unnecessary reciprocating movement of the printing head 5, thereby greatly improving printing efficiency.

[0052] like Figure 1 As shown, in one embodiment, the beam assembly 3 includes a beam 301, a first linear guide and a second linear guide 302, the first linear guide and the second linear guide 302 are arranged on opposite sides of the beam 301 in the x-axis direction, the first linear guide and the second linear guide 302 are parallel to the x-axis direction, the print head 5 is electrically connected to the first motor, the print head 5 can move back and forth along the first linear guide when driven by the first motor, and the visual detection assembly 6 can move back and forth along the second linear guide 302.

[0053] In this embodiment, the arrangement of the first linear guide, the matching mode between the print head 5 and the first linear guide, and the connection mode between the print head 5 and the first motor are all prior arts well known to those skilled in the art, and will not be described in detail in this embodiment of the present invention. The second linear guide 302 is arranged on the back side 502 of the beam 301, and the visual detection component 6 can move along the second linear guide 302 to collect image data of the entire row of the corresponding area.

[0054] In one embodiment, the visual detection component 6 is electrically connected to a second motor, and the visual detection component 6 can move back and forth along the second linear guide rail 302 when driven by the second motor.

[0055] In this embodiment, the visual detection component 6 can be electrically connected to the second motor (not shown in the figure) in any feasible way in the prior art, so as to satisfy that the second motor can drive the visual detection component 6 to move back and forth along the second linear guide rail 302. The visual detection component 6 is spatially located on the back side 502 of the printing head 5, but is not connected to the back side 502 of the printing head 5, and the visual detection component 6 is independently driven by the second motor. The printing head 5 is driven by the first motor, and the moving speeds of the printing head 5 and the visual detection component 6 can be the same or different. Driving the printing head 5 and the visual detection component 6 separately by different motors can meet more personalized printing needs; for example, the moving speed of the visual detection component 6 can be controlled to be faster than the moving speed of the printing head 5, thereby leaving more time for processing the image data collected by the visual detection component 6, so as to facilitate personalized special data processing.

[0056] like Figure 1 and Figure 2 As shown, in one embodiment, the visual detection component 6 includes a mounting bracket 61 and a camera component 62, the mounting bracket 61 is used to support the camera component 62, the light incident surface of the camera component 62 faces the printing platform 2, and a slide groove 63 is provided on one side of the mounting bracket 61, and the slide groove 63 cooperates with the second linear guide rail 302 so that the visual detection component 6 can move back and forth along the second linear guide rail 302; a light source component 64 is provided at the bottom of the camera component 62, and the light source component 64 is installed at the bottom of the mounting bracket 61.

[0057] like Figure 1 and Figure 2 As shown, in a specific embodiment, the mounting bracket 61 includes a fixing component 611, a first positioning component 612 and a second positioning component 613.

[0058] The slide groove 63 is arranged on one side of the fixing assembly 611 close to the second linear guide rail 302, and the first positioning assembly 612 and the second positioning assembly 613 are detachably connected to the other side of the fixing assembly 611, so that the height position of the camera assembly 62 can be adjusted according to printing requirements. The first positioning assembly 612 is located above the second positioning assembly 613.

[0059] The camera assembly 62 includes a camera control module 621, a camera body 622 and a lens 623 connected in sequence from top to bottom. The camera control module 621 is mounted on the first positioning assembly 612. The lower end of the camera body 622 is arranged on the upper surface of the second positioning assembly 613. The second positioning assembly 613 has a through hole. The lens 623 passes through the through hole and is connected to the camera body 622. The light incident surface of the lens 623 faces downward. In the specific use process, the lens 623 can be replaced according to the printing requirements.

[0060] like Figure 1 and Figure 2 As shown, in a specific embodiment, the first positioning component 612 includes two adjustment brackets arranged flush with each other, the adjustment bracket includes a first adjustment edge 6121 and a second adjustment edge 6122 perpendicular to each other, the first adjustment edge 6121 and the second adjustment edge 6122 are arranged in an L shape, a first slot is arranged on the first adjustment edge 6121, and at least one second slot is arranged on the second adjustment edge 6122. The first slot is an oblong hole, and a bolt can be passed through the first slot to connect the adjustment bracket and the fixing component 611, so that the adjustment bracket is fixed on the fixing component 611, and the vertical position of the camera component 62 can be adjusted by adjusting the vertical position of the first slot. At least one second slot is arranged on the second adjustment edge 6122, and the second slot is an oblong hole, and a bolt can be passed through the second slot to connect the adjustment bracket and the camera control module 621, so that the camera control module 621 is installed on the adjustment bracket, and the horizontal position of the camera control module 621 can be adjusted within the lateral range of the second slot, so that the horizontal position of the camera component 62 can be adjusted.

[0061] like Figure 1 and Figure 2As shown, in one embodiment, a light source assembly 64 is provided at the bottom of the camera assembly 62, and the light source assembly 64 is installed at the bottom of the mounting bracket 61. In a specific embodiment, the light source assembly 64 includes a light source fixing bracket 641, a heat dissipation assembly 642, a light source housing 643 and a light source (not shown in the figure), the light source is arranged inside the light source housing 643, a heat dissipation assembly 642 is provided on one side of the light source housing 643, the heat dissipation assembly 642 is connected to the light source fixing bracket 641, and one end of the light source fixing bracket 641 is fixed to the bottom of the mounting bracket 61. The height of the light source can be adjusted by adjusting the installation position of the light source fixing bracket 641 and the mounting bracket 61, so that the light brightness and divergence can be adjusted to adapt to more different products. The color of the light source can also be adjusted, for example, it can be white light, red light, and blue light. It can be selected according to the color of the printed material when used. For example, when shooting an image of a black printed material, red light can be used, because the reflectivity of red light to black objects is higher. Selecting a suitable light source color is conducive to improving the contrast and clarity of the captured image, thereby improving the printing accuracy.

[0062] like Figure 1 and Figure 2 As shown, in one embodiment, a light slot 644 is provided on the light source housing 643, and the light incident surface of the visual detection component 6 is located directly above the light slot 644. The light slot 644 is used to transmit light so that the camera component 62 can capture the image of the printing material located on the printing platform 2. Since the main purpose of the pattern captured by the visual detection component 6 of the printer is to identify the image contour of the printing material, the image captured through the light slot 644 can meet the use requirements.

[0063] like Figure 1 and Figure 2 As shown, in one embodiment, at least a portion of a side of the mounting bracket 61 where the slide slot 63 is disposed is fixed to the back side 502 of the printing head 5 .

[0064] In this embodiment, the visual detection component 6 is fixed to the back side 502 of the printing head 5 by connecting the mounting bracket 61 to the printing head 5. For example, a fixing bolt can be provided, and the fixing bolt can be horizontally passed through the fixing component 611 of the mounting bracket 61, and then horizontally passed through the back shell of the printing platform 2, and fixedly connected to the bracket (not shown in the figure) inside the shell of the printing platform 2. It can be understood that other methods can also be used to fix the mounting bracket 61 to the back side 502 of the printing head 5, all of which should be within the protection scope of the present invention. When the visual detection component 6 is fixed to the back side 502 of the printing head 5, the visual detection component 6 does not need to be connected to the second motor, and the movement of the printing head 5 will drive the visual detection component 6 to slide along the second linear guide rail 302. The movement speed of the visual detection component 6 is consistent with that of the printing head 5.

[0065] Reference Figure 3 The embodiment of the present invention discloses a scanning and printing method of a front-end visual inspection printer, comprising the following steps:

[0066] S1, obtain the position of the printing head;

[0067] S2, determining whether the printing head has moved to a preset endpoint position in the x-axis direction;

[0068] S3, if the preset endpoint position is reached, determining whether the preset endpoint position is the printing start position;

[0069] S4, if it is not the printing start position, sending a beam y-axis movement instruction to the printing head, the beam y-axis movement instruction is used to move the beam forward a preset distance in the y-axis direction of the printing platform;

[0070] S5, determining whether the beam has completed the advance of the preset distance;

[0071] S6. If the preset distance is advanced, a head x-axis movement instruction and a printing instruction are sent to the printing head, and a visual acquisition instruction is sent to the visual detection component; the head x-axis movement instruction is used to move the printing head from one end of the x-axis direction of the printing platform to the other end of the x-axis direction of the printing platform; the printing instruction carries pre-processed printing dot matrix data, and the printing instruction is used to control the printing head to print according to the pre-processed printing dot matrix data;

[0072] S7, continuously acquiring image data collected by the visual detection component during the process of the printing head moving from one end to the other end;

[0073] S8. Process the image data into printing dot matrix data, and use the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time.

[0074] This embodiment realizes the scanning and printing effect of the front and back visual detection printer through steps S1 to S8, which can be executed by the processor of the printer or by a cloud processor remotely connected to the printer.

[0075] In the above step S1, the position of the printing head includes the position in the x-axis direction and the position in the y-axis direction.

[0076] In the above step S2, the above preset endpoint position is any end of the printing platform, that is, the starting point or end point of the x-axis direction of any line of printing tasks of the printing head during the printing process. There are multiple preset endpoint positions of the printing platform. The coordinates of each preset endpoint position, that is, its position in the x-axis direction and in the y-axis direction, are pre-stored in the processor.

[0077] In the above step S3, the above printing start position is the position of the printing head when the printer is in the standby state. The coordinates of the printing start position are pre-stored in the processor, that is, its position in the x-axis direction and in the y-axis direction. When the printer is in the standby state, the printing head is reset to the printing start position. The printing platform of the printer is divided into regions along the y-axis direction. From the y-axis end where the printing platform starts the printing task, it is divided into several rectangular regions with a width of a preset distance, which are successively referred to as the first region, the second region, the third region... It can be understood that the width of the last region is less than or equal to the preset distance. The printing start position is not located directly above the printing platform. When the printing head moves horizontally along the x-axis from the printing start position, the area passed by the print head of the printing head is the printing buffer area of ​​the printer. The printing buffer area is not on the printing platform, and the printing buffer area and the second area are located on opposite sides of the first area.

[0078] In the above steps S4-S6, when the printing head is at the preset endpoint position but not at the printing start position, the print head of the printing head is not located above the printing buffer area, but above the Nth area, where N is a natural number, N≥1, and the maximum value of N is the number of areas into which the printing platform is divided; the visual detection component 6 is located above the N+1th area. It can be understood that the N+1th area exceeds the range of the printing platform. The distance that the beam moves forward in the y-axis movement instruction of the beam is the aforementioned preset distance. That is, the beam moves forward a preset distance along the beam motion carrier 4, thereby bringing the print head of the printing head into the next area for printing in the next area. For ease of understanding, an example is given to illustrate the positional relationship between the print head and the visual acquisition device of the print carriage. After completing the task of the first row (it should be noted that the first row does not refer to the first area. When executing the task of the first row, the print head is above the print buffer area, and the visual acquisition component is above the first area), the print carriage moves to one end of the printing platform (i.e., a preset end point position), and then the crossbeam moves forward a preset distance on the crossbeam motion carrier to start the task of the second row. At this time, the print head of the print carriage arrives directly above the first area, and the visual detection component arrives directly above the second area.

[0079] The x-axis movement instruction of the head includes the movement speed of the printing head. When the printing head moves along the x-axis, it prints according to the received pre-processed printing dot matrix data. The pre-processed printing dot matrix data is processed in advance by the processor before the printing head reaches the area.

[0080] In the above S7-S8, when the print head of the printing head is above the Nth area, the visual acquisition component collects the image data of the N+1th area, and then processes it into the pre-processed printing dot matrix data of the N+1th area. When the printing head arrives at the N+1th area, it can immediately print according to the pre-processed printing dot matrix data of the N+1th area, and the printing head does not need to wait, which greatly improves the printing efficiency. It can be understood that when the print head performs the printing task of the Nth area, the shooting range of the visual detection component has exceeded the printing platform. At this time, the visual detection component can stop collecting images. Of course, the visual detection component can also collect images, but there is no need to process the image again.

[0081] This embodiment arranges the visual detection component on the back side of the print head so that the visual detection component can collect image data one line earlier than the print head. That is, when the print head of the print head is printing the image of the Nth area, the visual detection is collecting image data of the N+1th area. When the print head of the print head advances to the N+1th area, printing can be performed immediately, thereby achieving the effect of the printer scanning and printing at the same time. There is no need to wait for scanning, and unnecessary reciprocating movement of the print head is avoided, thereby greatly improving printing efficiency.

[0082] In a specific embodiment, after the step S3 of determining whether the preset endpoint position is the printing start position, the following steps are included:

[0083] S9, if it is at the printing start position, sending the head x-axis movement instruction to the printing head, and sending the visual acquisition instruction to the visual detection component;

[0084] S10, acquiring image data collected by the visual detection component;

[0085] S11, processing the image data into printing dot matrix data;

[0086] S12, continuously acquiring image data collected by the visual detection component during the process of the printing head moving from one end to the other end;

[0087] S13: Process the image data into printing dot matrix data, and use the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent for the first time.

[0088] In this embodiment, through the above steps S9-S13, the print head of the printer is in the printing starting position. When the printing task starts, the print head performs the process of moving from one end of the printing platform to the other end along the beam component on the x-axis for the first time in this printing task. During this process, the area passed by the print head of the print head is the print buffer area of ​​the printer. The print buffer area is not on the printing platform, and the print head does not print, so there is no need to send a print instruction to the print head; the visual detection component synchronously moves from one end of the printing platform to the other end along the beam component on the x-axis for the first time. The visual detection component is now located directly above the first area of ​​the printing platform. During this process, the visual detection component captures an image of the first area of ​​the printing platform. The image data is further sent to the processor for image processing and converted into pre-processed printing dot matrix data corresponding to the first area. When the print head of the print head moves to the first area, printing can be performed immediately according to the pre-processed printing dot matrix data corresponding to the first area without additional waiting.

[0089] In a specific embodiment, the visual acquisition instruction includes a visual x-axis movement instruction and an image acquisition instruction, and the step S6 of sending the visual acquisition instruction to the visual detection component includes:

[0090] S601, sending a visual x-axis movement instruction to the visual detection component, and sending an image acquisition instruction to the visual detection component; wherein the visual x-axis movement instruction is used to move the visual detection component from one end of the printing platform in the x-axis direction to the other end of the printing platform in the x-axis direction; the image acquisition instruction is used to continuously acquire image data during the process of the visual detection component moving from one end to the other end.

[0091] In this embodiment, when the printing head and the visual detection component are driven by the first motor and the second motor respectively, it is necessary to send a visual x-axis movement instruction to the visual detection component. The visual x-axis movement instruction includes the movement speed of the visual detection component.

[0092] In a specific embodiment, the vehicle head x-axis movement instruction carries the vehicle head movement speed, and the visual x-axis movement instruction carries the visual movement speed; the vehicle head movement speed is equal to the visual movement speed, or the vehicle head movement speed is not equal to the visual movement speed.

[0093] The moving speeds of the print head and the visual inspection component can be the same or different. By controlling the movement of the print head and the visual inspection component separately, more personalized printing needs can be met; for example, the moving speed of the visual inspection component can be controlled to be faster than the moving speed of the print head, thereby leaving more time for processing the image data of the visual inspection component 6 sets, so as to facilitate personalized special data processing.

[0094] In a specific embodiment, the step S8 of processing the image data into printing dot matrix data and using the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time includes:

[0095] S801, extracting the graphic outline contained in the image data;

[0096] S802, performing contour matching on the graphic contour in a preset image library to obtain a matching image;

[0097] S803, obtaining printing dot matrix data of the matching image;

[0098] S804, generating initial printing dot matrix data corresponding to the image data;

[0099] S805. Determine the print start line according to the current print position of the print head, and determine the print width according to the preset distance, and extract the print dot data from the initial print dot data according to the print start line and the print width as the pre-processed print dot data carried in the print instruction to be sent next time.

[0100] In this embodiment, in the above step S801, the graphic outline is the outline of the printed object placed on the printing platform. Exemplarily, the extraction method can be implemented by the following steps: converting the RGB channels of the image into a grayscale image by weighted averaging; denoising the grayscale image by using a denoising method such as Gaussian filtering and median filtering to obtain a denoised image; calculating the gradient of the grayscale value of the pixel points of the denoised image to obtain a gradient amplitude map; obtaining edge pixels from the gradient amplitude map, connecting the edge pixels, and forming at least a partial image outline of the printed material. Other graphic outline acquisition methods in the prior art can also be used.

[0101] In the above step S802, the preset image library stores preset images for printing, and the preset images include images that match the patterns on the printing materials. Since the number of printing materials placed on the printing platform can be one or more, and the shapes of the multiple printing materials can be the same or different, the number of matching images can be one or more.

[0102] In the above step S803, the acquisition of the printing dot matrix data of the matching image includes: preprocessing the matching image, the preprocessing includes adjusting the size and rotation angle to adapt to the printing material; converting the bitmap data of the matching image into printing dot matrix data recognizable by the printer.

[0103] In the above step S804, the initial printing dot matrix data is all the printing dot matrix data corresponding to the image data of the N+1th area detected by the visual detection device, including the position information of each matching image of the N+1th area, background information, etc.

[0104] In the above step S805, since the image data of the N+1th area detected by the visual detection device is not necessarily completely consistent with the print width of the image printed by the print head of the print carriage, it is necessary to further process the above initial print dot matrix data to obtain pre-processed print dot matrix data that matches the print width of the print head and the print start line. Since the print head of the print carriage advances a preset distance on the y-axis each time, the print width is usually equal to the preset distance. The print start line is the next line of the last line printed in the previous area of ​​the print carriage.

[0105] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0106] The processor executes the steps of the above-mentioned scanning and printing method, including:

[0107] The processor obtains the position of the printing head;

[0108] Determine whether the printing head moves to a preset endpoint position in the x-axis direction;

[0109] If it moves to the preset endpoint position, determining whether the preset endpoint position is the printing start position;

[0110] If it is not the printing start position, sending a beam y-axis movement instruction to the printing head, the beam y-axis movement instruction is used to move the beam forward a preset distance in the y-axis direction of the printing platform;

[0111] Determining whether the beam has completed the advance of the preset distance;

[0112] If the preset distance is advanced, a head x-axis movement instruction and a printing instruction are sent to the printing head, and a visual acquisition instruction is sent to the visual detection component; the head x-axis movement instruction is used to move the printing head from one end of the x-axis direction of the printing platform to the other end of the x-axis direction of the printing platform; the printing instruction carries pre-processed printing dot matrix data, and the printing instruction is used to control the printing head to print according to the pre-processed printing dot matrix data;

[0113] In the process of the printing head moving from one end to the other end, continuously acquiring the image data collected by the visual detection component;

[0114] The image data is processed into printing dot matrix data, and the printing dot matrix data is used as pre-processed printing dot matrix data carried in the printing instruction sent next time.

[0115] In a specific embodiment, after the processor determines whether the preset endpoint position is the printing start position, the process includes:

[0116] If it is at the printing start position, sending the head x-axis movement instruction to the printing head, and sending the visual acquisition instruction to the visual detection component;

[0117] Acquiring image data collected by the visual detection component;

[0118] Processing the image data into printing dot matrix data;

[0119] In the process of the printing head moving from one end to the other end, continuously acquiring the image data collected by the visual detection component;

[0120] The image data is processed into printing dot matrix data, and the printing dot matrix data is used as pre-processed printing dot matrix data carried in the printing instruction sent for the first time.

[0121] In a specific embodiment, the visual acquisition instruction includes a visual x-axis movement instruction and an image acquisition instruction, and the step of the processor sending the visual acquisition instruction to the visual detection component includes:

[0122] Sending a visual x-axis movement instruction to the visual detection component, and sending an image acquisition instruction to the visual detection component; wherein the visual x-axis movement instruction is used to move the visual detection component from one end of the printing platform in the x-axis direction to the other end of the printing platform in the x-axis direction; the image acquisition instruction is used to continuously acquire image data during the process of the visual detection component moving from one end to the other end.

[0123] In a specific embodiment, the vehicle head x-axis movement instruction carries the vehicle head movement speed, and the visual x-axis movement instruction carries the visual movement speed; the vehicle head movement speed is equal to the visual movement speed, or the vehicle head movement speed is not equal to the visual movement speed.

[0124] In a specific embodiment, the processor processes the image data into printing dot matrix data, and uses the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time, including:

[0125] Extracting a graphic outline contained in the image data;

[0126] Performing contour matching on the graphic contour in a preset image library to obtain a matching image;

[0127] Acquire printing dot matrix data of the matching image;

[0128] Generate initial printing dot matrix data corresponding to the image data;

[0129] The printing start line is determined according to the current printing position of the printing head, and the printing width is determined according to the preset distance. The printing dot matrix data is extracted from the initial printing dot matrix data according to the printing start line and the printing width to serve as the pre-processed printing dot matrix data carried in the printing instruction sent next time.

[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0131] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0132] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A scanning and printing method for a front and back visual inspection printer, characterized in that: The head-on visual inspection printer comprises a chassis, a printing platform, a beam assembly, a beam motion carrier, a printing head, and a visual inspection assembly. The printing platform is arranged on the upper surface of the base frame, the beam moving carrier is arranged on both sides of the printing platform and on the upper surface of the base frame, the beam assembly is arranged above the printing platform and the beam moving carrier, and the beam assembly can move back and forth in the y-axis direction along the beam moving carrier, during the printing process, the distance that the beam assembly advances in the y-axis direction at a time is a preset distance, the printing head is carried on the beam assembly, and the printing head can move back and forth in the x-axis direction, the x-axis direction and the y-axis direction are both on a horizontal plane, and the x-axis direction is perpendicular to the y-axis direction, The printing head includes a front side and a back side, the direction from the front side to the back side is parallel to the y-axis direction, and at a printing start position, the back side is closer to the printing platform than the front side, wherein the printing start position is the position of the printing head when the printer is in a standby state, the visual detection component is arranged on the back side of the printing head, and the width of the image collected by the visual detection component is greater than or equal to the preset distance, The printing method comprises the following steps: Get the position of the printing head; Determine whether the printing head moves to a preset endpoint position in the x-axis direction; If it moves to the preset endpoint position, determining whether the preset endpoint position is the printing start position; If it is not the printing start position, sending a beam y-axis movement instruction to the printing head, the beam y-axis movement instruction is used to move the beam forward a preset distance in the y-axis direction of the printing platform; Determining whether the beam has completed the advance of the preset distance; If the preset distance is advanced, a head x-axis movement instruction and a printing instruction are sent to the printing head, and a visual acquisition instruction is sent to the visual detection component; the head x-axis movement instruction is used to move the printing head from one end of the x-axis direction of the printing platform to the other end of the x-axis direction of the printing platform; the printing instruction carries pre-processed printing dot matrix data, and the printing instruction is used to control the printing head to print according to the pre-processed printing dot matrix data; During the process of the printing head moving from one end to the other end, continuously acquiring image data collected by the visual detection component; Processing the image data into printing dot matrix data, and using the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time; The step of processing the image data into printing dot matrix data and using the printing dot matrix data as pre-processed printing dot matrix data carried in the printing instruction sent next time includes: Extracting a graphic outline contained in the image data; Performing contour matching on the graphic contour in a preset image library to obtain a matching image; Acquire printing dot matrix data of the matching image; Generate initial printing dot matrix data corresponding to the image data; The printing start line is determined according to the current printing position of the printing head, and the printing width is determined according to the preset distance. The printing dot matrix data is extracted from the initial printing dot matrix data according to the printing start line and the printing width to serve as the pre-processed printing dot matrix data carried in the printing instruction sent next time.

2. The scanning and printing method of the front and back visual inspection printer according to claim 1 is characterized in that: After the step of determining whether the preset endpoint position is the printing start position, the method further comprises: If it is at the printing start position, sending the head x-axis movement instruction to the printing head, and sending the visual acquisition instruction to the visual detection component; Acquiring image data collected by the visual detection component; Processing the image data into printing dot matrix data; During the process of the printing head moving from one end to the other end, continuously acquiring image data collected by the visual detection component; The image data is processed into printing dot matrix data, and the printing dot matrix data is used as pre-processed printing dot matrix data carried in the printing instruction sent for the first time.

3. The scanning and printing method of the front and back visual inspection printer according to claim 1 is characterized in that: The visual acquisition instruction includes a visual x-axis movement instruction and an image acquisition instruction, and the step of sending the visual acquisition instruction to the visual detection component includes: Sending a visual x-axis movement instruction to the visual detection component, and sending an image acquisition instruction to the visual detection component; wherein the visual x-axis movement instruction is used to move the visual detection component from one end of the printing platform in the x-axis direction to the other end of the printing platform in the x-axis direction; the image acquisition instruction is used to continuously acquire image data during the process of the visual detection component moving from one end to the other end.

4. The scanning and printing method of the front and back visual inspection printer according to claim 3 is characterized in that: The vehicle head x-axis movement instruction carries the vehicle head movement speed, and the visual x-axis movement instruction carries the visual movement speed; The vehicle head moving speed is equal to the visual moving speed, or the vehicle head moving speed is not equal to the visual moving speed.

Citation Information

Patent Citations

  • Digital embroidered cloth printing method capable of realizing intelligent visual guidance

    CN103434290A

  • Reciprocating type scanning printing control method and device, equipment and storage medium

    CN110421984A

  • Printer and printing method

    CN117656657A

  • Method and equipment for controlling UV lamp for printing irregular patterns and storage medium

    CN117984660A

  • Ink-jet printer with printing position synchronous positioning function

    CN118144429A