Method and device for debugging line scan camera for printing test, and electronic equipment

By integrating the encoder component with the camera body through the debugging method of the line scan camera, the printing axis status is sensed and the image matching degree is calculated, which solves the problems of high installation difficulty and low testing accuracy, and realizes high-precision printing testing.

CN116489341BActive Publication Date: 2025-11-25深圳市光太科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310481427.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2025-11-25
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

Existing printing testing technologies suffer from problems such as high installation difficulty and low testing accuracy, especially when the encoder is attached to the printing shaft, the installation is difficult and the indirect installation leads to a decrease in accuracy.

Method used

The debugging method using a line scan camera involves assembling an encoder assembly onto the camera body, making contact with the printer's print shaft, sensing the state of the print shaft's rotation, and transmitting the image to the camera body for calculation and processing to determine the image matching degree and provide feedback on whether the contact is qualified or unqualified.

Benefits of technology

This eliminates the need to install the encoder directly on the printing shaft, simplifying the installation process, improving testing accuracy and convenience, and enhancing the contact stability between the encoder and the printing shaft for more accurate sensing of the printed image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116489341B_ABST
    Figure CN116489341B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of camera-based printing signal test, and provides a debugging method and device of a line-scan camera for printing test and electronic equipment. The printing image captured by the line-scan camera is acquired, the line-scan camera comprises a camera main body and an encoder assembly, the acquired printing image is calculated and processed with a preset standard image, whether the printing image matches the preset standard image is determined according to the calculation and processing result, when the printing image matches the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is qualified, when the printing image does not match the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is required, so that the encoder assembly is in qualified contact with the printing shaft, the printing state of the printing shaft is accurately sensed, and the precision of the printing image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of camera-based printing signal test, and particularly relates to a debugging method and device of a line-scan camera for printing test and electronic equipment. BACKGROUND

[0002] The quality of printing often relates to whether the printer is qualified or not. In the prior art, an image printed by a printer is analyzed, which is a common method for judging the printing quality. At present, the technology for judging the printing quality of the printed image mainly comprises an automatic shooting uploading calculation processing judgment method. The automatic shooting uploading calculation processing judgment method mainly comprises the following steps: a camera is arranged on the paper outlet side of the printer, and an encoder is sleeved on the printing shaft of the printer. After the printing shaft pushes out the printing paper, the encoder rotates with the rotation of the printing shaft, so that the printing state of the printing shaft can be transmitted to the camera, and the camera controls the shooting of the pushed-out printing paper. Since the encoder needs to be sleeved on the printing shaft, this scheme of sleeving the encoder on the printing shaft is also called a coaxial scheme. In the specific implementation of the coaxial scheme, the installation position provided by the printing shaft in the printer is very small, so that the scheme of directly sleeving the encoder on the printing shaft has a great installation difficulty. In order to solve this problem of great installation difficulty, the prior art proposes an indirect installation method of installing the encoder on the driving shaft of the printing shaft. However, the indirect installation method reduces the precision of the printing state of the printing shaft collected by the encoder.

[0003] In summary, the existing camera-based printing test technology has technical problems of great installation difficulty and low test precision. SUMMARY

[0004] The present application aims to at least partially solve the problems in the prior art, and provides a debugging method and device of a line-scan camera for printing test and electronic equipment, so as to reduce the installation difficulty, improve the use convenience, and improve the test precision.

[0005] In a first aspect, the present application provides a debugging method of a line-scan camera for printing test, comprising the following steps:

[0006] An image printed by a printer is analyzed, which is a common method for judging the printing quality. At present, the technology for judging the printing quality of the printed image mainly comprises an automatic shooting uploading calculation processing judgment method. The automatic shooting uploading calculation processing judgment method mainly comprises the following steps: a camera is arranged on the paper outlet side of the printer, and an encoder is sleeved on the printing shaft of the printer. After the printing shaft pushes out the printing paper, the encoder rotates with the rotation of the printing shaft, so that the printing state of the printing shaft can be transmitted to the camera, and the camera controls the shooting of the pushed-out printing paper. Since the encoder needs to be sleeved on the printing shaft, this scheme of sleeving the encoder on the printing shaft is also called a coaxial scheme. In the specific implementation of the coaxial scheme, the installation position provided by the printing shaft in the printer is very small, so that the scheme of directly sleeving the encoder on the printing shaft has a great installation difficulty. In order to solve this problem of great installation difficulty, the prior art proposes an indirect installation method of installing the encoder on the driving shaft of the printing shaft. However, the indirect installation method reduces the precision of the printing state of the printing shaft collected by the encoder.

[0007] The obtained printing image is calculated and processed with a preset standard image;

[0008] It is judged whether the printing image matches the preset standard image according to the calculation processing result, and when the printing image matches the preset standard image, it is fed back that the encoder assembly is qualified in contact with the printing shaft; when the printing image does not match the preset standard image, it is fed back that the encoder assembly is unqualified in contact with the printing shaft, and contact debugging is needed.

[0009] In the second aspect, the present application provides a debugging device for a line-scan camera for printing test, comprising:

[0010] A printing image acquisition module is configured to acquire a printing image captured by a line-scan camera, wherein the line-scan camera comprises a camera main body and an encoder assembly; the camera main body is configured to be arranged on one side of the printer to perform image sensing on a printed paper after printing by the printer to obtain the printing image; the encoder assembly is assembled on the camera main body and is in contact with a printing shaft of the printer, and is configured to rotate with the printing shaft when the printing shaft rotates to sense a printing state of the printing shaft when rotating and transmit the printing state to the camera main body; and the camera main body performs image sensing on the printed paper according to the printing state to obtain the printing image;

[0011] A printing image calculation processing module is configured to calculate and process the obtained printing image with a preset standard image;

[0012] A contact debugging judgment module is configured to judge whether the printing image matches the preset standard image according to the calculation processing result, and when the printing image matches the preset standard image, it is fed back that the encoder assembly is qualified in contact with the printing shaft; when the printing image does not match the preset standard image, it is fed back that the encoder assembly is unqualified in contact with the printing shaft, and contact debugging is needed.

[0013] In the third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores program modules, and the processor implements the debugging method of the line-scan camera for printing test according to any one of the above aspects when running the program modules.

[0014] Compared with the prior art, the present application has the following beneficial effects:

[0015] The debugging method of the line-scan camera for printing test provided by the application obtains a printing image photographed by the line-scan camera, the line-scan camera comprises a camera main body and an encoder assembly; the camera main body is arranged on one side of the printer to sense the printing paper after printing by the printer and obtain the printing image; the encoder assembly is assembled on the camera main body and contacts the printing shaft of the printer to rotate with the printing shaft when the printing shaft rotates to sense the printing state of the printing shaft and transmit the printing state to the camera main body; the camera main body senses the printing paper according to the printing state to obtain the printing image; then the obtained printing image is calculated and processed with a preset standard image, whether the printing image matches the preset standard image is judged according to the calculation and processing result, when the printing image matches the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is qualified; when the printing image does not match the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is needed, so that the encoder assembly is in qualified contact with the printing shaft, the printing state of the printing shaft is sensed accurately, and the precision of the printing image is improved. In addition, the encoder assembly is arranged on the camera main body to form a whole with the camera main body, the camera main body is located on one side of the printer to photograph the printing paper pushed out by the printing shaft, the encoder assembly contacts the printing shaft on one side of the printing shaft and senses the printing state of the printing shaft when the printing shaft rotates and transmits the printing state to the camera main body, the camera main body senses the printing paper according to the printing state to obtain the printing image, there is no problem of difficult installation, and the testing precision is high. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only show some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0017] Figure 1 is a flowchart of the debugging method of the line-scan camera for printing test in the embodiment of the application;

[0018] Figure 2 is a schematic diagram of the architecture of the electronic device and the line-scan camera in the embodiment of the application;

[0019] Figure 3 is a schematic diagram of the structure of the line-scan camera arranged on one side of the printer in the embodiment of the application;

[0020] Figure 4 is a schematic diagram of one assembly structure of the line-scan camera in the embodiment of the application;

[0021] Figure 5 is a schematic diagram of another assembly structure of the line-scan camera in the embodiment of the application;

[0022] Figure 6 is an exploded structural schematic diagram of a line-scan camera according to an embodiment of the present application;

[0023] Figure 7 is a partial structural schematic diagram of a camera body according to an embodiment of the present application;

[0024] Figure 8 is another partial structural schematic diagram of a camera body according to an embodiment of the present application;

[0025] Figure 9 is another partial structural schematic diagram of a camera body according to an embodiment of the present application;

[0026] Figure 10 is a structural schematic diagram of an encoder assembly according to an embodiment of the present application;

[0027] Figure 11 is another structural schematic diagram of an encoder assembly according to an embodiment of the present application;

[0028] Figure 12 is a structural schematic diagram of a debugging device for a line-scan camera used for printing test according to an embodiment of the present application.

[0029] In the drawings, the reference signs represent:

[0030] 1. camera body; 10. camera support; 11. encoder mounting space; 12. movement control assembly; 120. base; 1200. adjustment through hole; 1201. guide hole; 1202. bottom plate; 1203. vertical plate; 121. adjustment piece; 1210. main body part; 1211. adjustment end; 13. sensing assembly; 130. sensor; 131. sensing support; 132. limiting cylinder; 133. rotating shaft; 14. control assembly; 140. lower cover; 141. upper cover; 142. acquisition card support; 143. acquisition card; 144. switch; 15. first paper passing gap; 16. paper guiding adjustment plate; 160. adjustment hole; 17. second paper passing gap;

[0031] 2. encoder assembly; 20. encoder wheel; 21. encoder body; 210. encoder; 211. elastic piece; 212. guide rod; 213. encoder support;

[0032] 3. printer; 30. printing shaft; 31. printer support. DETAILED DESCRIPTION

[0033] Embodiments of the present application are described below in detail, examples of the embodiments are shown in the drawings, wherein the same or similar reference signs represent the same or similar methods or methods with the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present application, and cannot be understood as a limitation on the present application, all other embodiments obtained by those skilled in the art without creative labor based on the embodiments in the present application fall within the scope of protection of the present application.

[0034] Embodiment one

[0035] Please refer to Figures 1-11 The embodiment provides a debugging method for printing test line scan camera, comprising steps S101, S102 and S103. Wherein, steps S101, S102 and S103 can run in electronic equipment, by acquiring the printing image photographed by the line scan camera, the line scan camera comprises a camera body 1 and an encoder assembly 2; the camera body 1 is used to be arranged on one side of the printer 3 to image sense the printed paper after printing by the printer 3 to obtain the printing image; the encoder assembly 2 is assembled on the camera body 1 and contacts the printing shaft 30 of the printer 3, which is used to rotate with the printing shaft 30 when the printing shaft 30 rotates to transmit the printing state of the printing shaft 30 to the camera body 1; the camera body 1 images senses the printed paper according to the printing state to obtain the printing image; then the acquired printing image is calculated and processed with the preset standard image, whether the printing image matches the preset standard image is judged according to the calculation processing result, when the printing image matches the preset standard image, it is feedback that the encoder assembly 2 contacts the printing shaft 30 qualified; when the printing image does not match the preset standard image, it is feedback that the encoder assembly 2 contacts the printing shaft 30 unqualified, which needs to be debugged, so that the encoder assembly 2 and the printing shaft 30 are in contact with each other, the printing state of the printing shaft 30 is accurately sensed, and the precision of the printing image is improved. In addition, since the encoder assembly 2 is arranged on the camera body 1 and constitutes a whole with the camera host, the camera host is located on one side of the printer 3 to photograph the printed paper pushed out by the friction of the printing shaft 30, the encoder assembly 2 contacts the printing shaft 30 on one side of the printing shaft 30 and senses the printing state of the printing shaft 30 when the printing shaft 30 rotates to transmit the printing state to the camera body 1, the camera body 1 images senses the printed paper according to the printing state to obtain the printing image, there is no problem of difficult installation, and the test precision is higher.

[0036] It should be noted that the electronic device includes a memory, a processor, and a network interface which are communicatively connected through a system bus. The electronic device herein can be a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions. The electronic device can interact with a user through a keyboard, a mouse, a remote controller, a touchpad, a voice control device, or the like. The memory includes at least one type of readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, or the like. In some embodiments, the memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, or the like. Of course, the memory can include both the internal storage unit and the external storage device of the electronic device.

[0037] In step S101, the electronic device acquires a printed image captured by a line scan camera, the line scan camera including a camera body 1 and an encoder assembly 2; the camera body 1 is configured to be arranged on one side of the printer 3 to perform image sensing on the printed paper after printing by the printer 3, so as to obtain the printed image; the encoder assembly 2 is assembled on the camera body 1 and in contact with a printing shaft 30 of the printer 3, and is configured to rotate with the printing shaft 30 when the printing shaft 30 rotates, so as to transmit a printing state of the printing shaft 30 when rotating to the camera body 1; the camera body 1 performs image sensing on the printed paper according to the printing state, so as to obtain the printed image. The electronic device can be connected and communicated with the line scan camera in a wired or wireless manner, so as to acquire the printed image captured by the line scan camera.

[0038] It should be noted that, since the encoder assembly 2 is arranged on the camera body 1 to form a whole with the camera host, the camera host is arranged on one side of the printer 3 to capture the printing paper rubbed out by the printing shaft 30, the encoder assembly 2 is in contact with the printing shaft 30 on one side of the printing shaft 30 and transmits the printing state of the printing shaft 30 when rotating to the camera body 1, the camera body 1 senses the image of the printing paper according to the printing state to obtain the printing image, and there is no problem of difficult installation, and the test precision is high. In the prior art, the encoder 210 needs to be sleeved on the printing shaft 30 coaxially with the printing shaft 30, but the installation position provided by the printing shaft 30 in the printer 3 is small, so that it is difficult to directly sleeve the encoder 210 on the printing shaft 30. In order to solve the problem of difficult installation, the prior art proposes an indirect installation mode of installing the encoder 210 on the driving shaft of the printing shaft 30, and then the indirect installation reduces the precision of the printing state of the printing shaft 30 collected by the encoder 210. It should be noted that the camera and the encoder 210 in the prior art are separated, and when the coaxial encoder 210 on the printing shaft 30 needs to transmit the printing state of the printing shaft 30 to the camera, a signal transmission medium such as a data line needs to be used for transmission, so that the test of the printing quality of the printer 3 is more complex as a whole. In the embodiment, since the encoder assembly 2 is assembled on the camera body 1 and forms a whole with the camera, the sensed printing state can be transmitted to the camera body 1 through the internal signal line, so that the structure is simple and compact, the use is convenient, and the cost is saved. In addition, since the encoder assembly 2 is in contact with the printing shaft 30 of the printer 3 and rotates with the printing shaft 30 when the printing shaft 30 rotates, different pulse signals can be generated according to the rotation of the printing shaft 30, the pulse signals can reflect the printing state of the printer 3, and the shooting state corresponding to the printing state of the printing shaft 30 can be obtained after the camera body 1 decodes, so that accurate test is realized. At the same time, since the encoder assembly 2 is assembled on the camera body 1 and forms a whole with the camera, and the camera body 1 is arranged on one side of the printer 3, for example, is fixed on one side of the printer 3, so that the encoder assembly 2 is stably fixed and cannot shake, so that the accurate printing state is sensed.

[0039] In some preferred embodiments, the camera body 1 can be fixed by detachable installation of the camera support 10 and the printer support 31, so that the disassembly and installation of the line-scan camera are very convenient, and since the encoder assembly 2 is connected with the printing shaft 30 in a contact mode, the line-scan camera can be disassembled at any time to test the printing quality of different printers 3, so that the technical effect of universal test is achieved. A user who tests the printing only needs to have one line-scan camera in the embodiment to test different printers 3, and the test cost is greatly reduced.

[0040] In some improved embodiments, the camera body 1 is provided with an encoder mounting space 11 which is in communication with the outside of the camera body 1; the encoder assembly 2 is assembled in the encoder mounting space 11 and the rotatable part structure is exposed to the outside of the camera body 1 and contacts the printing shaft 30. Specifically, the encoder assembly 2 can include an encoder wheel 20 and an encoder body 21; the encoder wheel 20 is connected to the encoder body 21 and is assembled in the encoder mounting space 11 together with the encoder body 21, and the encoder wheel 20 is the rotatable part structure.

[0041] In some improved embodiments, the camera body 1 is provided with a movement control assembly 12; the movement control assembly 12 and the encoder mounting space 11 are located in the vertical direction of the printing shaft 30; the encoder body 21 is movably connected to the movement control assembly 12 and moves in the vertical direction of the printing shaft 30 under the adjustment control of the movement control assembly 12. Further, the movement control assembly 12 includes a base 120 and an adjustment piece 121; the base 120 is provided with an adjustment through hole 1200 and a guide hole 1201; the encoder body 21 includes an encoder 210, an elastic piece 211 and a guide rod 212; the elastic piece 211 and the guide rod 212 are installed on one side of the encoder 210; the guide rod 212 extends into the guide hole 1201 so that the encoder body 21 is movably connected to the base 120; the adjustment piece 121 includes a main body part 1210, an adjustment end 1211 and a contact end, the main body part 1210 passes through the adjustment through hole 1200, the adjustment end 1211 is exposed to the outside of the camera body 1, and the contact end contacts the elastic piece 211. Further, the base 120 includes a bottom plate 1202 and a standing plate 1203, and the standing plate 1203 is provided on the bottom plate 1202; the adjustment through hole 1200 is provided on the standing plate 1203, and the guide hole 1201 is provided on the bottom plate 1202.

[0042] In some improved embodiments, the adjustment through hole 1200, the adjustment piece 121 and the elastic piece 211 are kept in the same straight line, and when the encoder body 21 is driven to move, it is ensured that the contact between the encoder wheel 20 and the printing shaft 30 is tangential contact and does not tilt, thereby facilitating the adjustment of the tightness of the contact between the encoder wheel 20 and the printing shaft 30 to achieve the best contact tightness, so that the encoder assembly 2 can accurately sense the printing state.

[0043] In some improved embodiments, the camera body 1 comprises a sensing assembly 13 and a control assembly 14; the sensing assembly 13 is rotationally connected with the control assembly 14 through a rotation shaft 133, rotates around the rotation shaft 133 to adhere to or leave the surface of the control assembly 14; the sensing assembly 13 and the surface of the control assembly 14 jointly form a first paper passing gap 15 when the sensing assembly 13 adheres to the surface of the control assembly 14; the printing paper is guided by the surface of the control assembly 14 and the surface of the sensing assembly 13 when passing through the first paper passing gap 15. Further, the printing state of the printing shaft 30 when rotating is sensed by the encoder assembly 2 and transmitted to the control assembly 14; the control assembly 14 analyzes the printing state to obtain a shooting control signal and transmits the shooting control signal to the sensing assembly 13; the sensing assembly 13 shoots the printing paper passing through the first paper passing gap 15 according to the shooting control signal to obtain a printing image. Further, the sensing assembly 13 comprises a sensor 130 and a sensing bracket 131; the sensor 130 is assembled in the sensing bracket 131; one end of the sensing bracket 131 is provided with a limiting cylinder 132; the rotation shaft 133 passes through the limiting cylinder 132 and is rotationally connected with the control assembly 14. Further, the control assembly 14 comprises a lower cover 140, an upper cover 141 and a collection card 143 located on a collection card bracket 142; the upper cover 141 is assembled on the lower cover 140; the collection card bracket 142 is assembled in the cavity surrounded by the lower cover 140 and the upper cover 141; the outer surface of the upper cover 141 and the surface of the sensing assembly 13 jointly form the first paper passing gap 15; the printing state of the printing shaft 30 when rotating is sensed by the encoder assembly 2 and transmitted to the collection card 143; the collection card 143 analyzes the printing state to obtain a shooting control signal and transmits the shooting control signal to the sensing assembly 13. In addition, the control assembly 14 can further comprise a switch 144, which is arranged at one end of the lower cover 140 and used for controlling the on-off of the line-scan camera.

[0044] It should be noted that in the camera body 1, the sensing assembly 13 is a visual assembly with shooting function. Since the printing paper is guided by the surface of the control assembly 14 and the surface of the sensing assembly 13 when passing through the first paper passing gap 15, the visual assembly can shoot clearer images for printing quality judgment. In addition, since the sensing assembly 13 is rotationally connected with the control assembly 14 through the rotation shaft 133, rotates around the rotation shaft 133 to adhere to or leave the surface of the control assembly 14, the sensing assembly 13 can be conveniently lifted or pressed down.

[0045] In a further improved embodiment, the camera body 1 further comprises a paper guide adjusting plate 16; the paper guide adjusting plate 16 is arranged on one side of the sensing assembly 13, the bottom of the paper guide adjusting plate 16 and the outer surface of the control assembly 14 form a second paper passing gap 17, the printing paper passes through the second paper passing gap 17 and then passes through the first paper passing gap 15; the paper guide adjusting plate 16 can move up and down relative to the sensing assembly 13 to change the width of the second paper passing gap 17. Further, the paper guide adjusting plate 16 comprises an adjusting hole 160, the paper guide adjusting plate 16 is connected with the sensing assembly 13 through the adjusting hole 160, by adjusting the position of the paper guide adjusting plate 16 in the adjusting hole 160, the second paper passing gap 17 becomes wider or narrower. Wherein, the paper guide adjusting plate 16 can be made of steel plate.

[0046] It should be noted that, since the camera body 1 further comprises a paper guide adjusting plate 16, the bottom of the paper guide adjusting plate 16 and the outer surface of the control assembly 14 form a second paper passing gap 17, the printing paper passes through the second paper passing gap 17 and then passes through the first paper passing gap 15, the paper guide adjusting plate 16 can move up and down relative to the sensing assembly 13 to change the width of the second paper passing gap 17, in the case of high-definition shooting, the second paper passing gap 17 can be adjusted to be narrower, and the printing paper can be further guided flat to achieve high-definition shooting.

[0047] In step S102, the electronic device performs calculation processing on the obtained printing image and a preset standard image. The preset standard image can be an image in a calibration card, and the preset standard image can be an image formed by text or an image formed by graphics.

[0048] In step S103, the electronic device determines whether the printing image matches the preset standard image according to the calculation processing result. When the printing image matches the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is qualified. When the printing image does not match the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified, and contact debugging is required.

[0049] It should be noted that step S103 is after step S102, and after step S102, the following steps can also be included: obtaining a printed image photographed by the line-scan camera after contact debugging; performing calculation processing on the printed image photographed by the line-scan camera after contact debugging and a preset standard image; determining whether the printed image photographed after contact debugging matches the preset standard image according to the calculation processing result, and when the printed image photographed after contact debugging matches the preset standard image, feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is qualified; and when the printed image photographed after contact debugging does not match the preset standard image, feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified, and contact debugging is needed.

[0050] In some embodiments, step S103 can include the following preferred steps: when the calculation processing result is that there is no deformation of the printed image compared with the preset standard image, determining that the printed image matches the preset standard image, and feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is qualified; and when the calculation processing result is that there is deformation of the printed image compared with the preset standard image, feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified, and contact debugging is needed. Further, the feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified when the calculation processing result is that there is deformation of the printed image compared with the preset standard image, and contact debugging is needed, can include the following preferred steps: when the calculation processing result is that there is stretching of the printed image compared with the preset standard image, feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is too tight, and contact debugging for loosening is needed; and when the calculation processing result is that there is compression of the printed image compared with the preset standard image, feeding back that the encoder assembly 2 is in contact with the printing shaft 30 and is too loose, and contact debugging for tightening is needed.

[0051] It should be noted that, since the mobile control assembly 12 is arranged in the camera body 1, the mobile control assembly 12 and the encoder installation space 11 are located in the vertical direction of the printing shaft 30, the encoder body 21 is movably connected with the mobile control assembly 12 and moves along the vertical direction of the printing shaft 30 under the adjustment control of the mobile control assembly 12, so that the encoder body 21 can be adjusted and controlled to move along the vertical direction of the printing shaft 30 by the mobile control assembly 12, thereby driving the encoder wheel 20 to move, adjusting the tightness of the contact between the encoder wheel 20 and the printing shaft 30, achieving the best contact tightness state, so that the encoder assembly 2 senses the accurate printing state. In addition, the guide rod 212 extends into the guide hole 1201 to movably connect the encoder body 21 with the base 120, which not only can keep the encoder body 21 movably connected with the base 120, but also can limit the encoder body 21 by the cooperation of the guide rod 212 and the guide hole 1201, avoiding the encoder body 21 from shaking and reducing the sensing accuracy of the encoder assembly 2. In addition, since the main part 1210 of the adjusting part 121 passes through the adjusting through hole 1200 and the adjusting end 1211 is exposed outside the camera body 1 and contacts the elastic part 211, the tightness of the contact between the encoder wheel 20 and the printing shaft 30 can be adjusted to achieve the best contact tightness state, so that the encoder assembly 2 senses the accurate printing state.

[0052] In some preferred embodiments, the acquired printing image is calculated and processed with the preset standard image, including:

[0053] Suppose the resolution of the encoder assembly is F, the synchronization coefficient of the line scan camera is m, the synchronization step distance of the line scan camera is mF, and the longitudinal distance between the two test points of the preset standard image is P pixels;

[0054] The pixel difference ΔP between the printing image and the preset standard image is calculated;

[0055] The synchronization coefficient m of the line scan camera is adjusted according to the pixel difference ΔP until the pixel difference ΔP is less than a predetermined value.

[0056] It should be noted that, by calculating the pixel difference ΔP between the printing image and the preset standard image and adjusting the synchronization coefficient m of the line scan camera according to the pixel difference ΔP until the pixel difference ΔP is less than a predetermined value, precise debugging can be realized to obtain the matching result of the printing image and the preset standard image and the qualified result of the contact between the encoder assembly 2 and the printing shaft 30.

[0057] Embodiment two

[0058] Please refer to Figures 2-12 The embodiment provides a debugging device for a line scan camera for printing test, which comprises:

[0059] a printing image acquisition module, configured to acquire a printing image captured by a line scan camera, the line scan camera comprising a camera body 1 and an encoder assembly 2; the camera body 1 is configured to be arranged on one side of the printer 3 to perform image sensing on the printed paper after printing by the printer 3 to obtain the printing image; the encoder assembly 2 is assembled on the camera body 1 and in contact with a printing shaft 30 of the printer 3, and is configured to rotate with the printing shaft 30 when the printing shaft 30 rotates to transmit the printing state of the printing shaft 30 when rotating to the camera body 1; the camera body 1 performs image sensing on the printed paper according to the printing state to obtain the printing image;

[0060] a printing image calculation processing module, configured to perform calculation processing on the acquired printing image and a preset standard image;

[0061] a contact debugging judgment module, configured to judge whether the printing image matches the preset standard image according to the calculation processing result; when the printing image matches the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is qualified; when the printing image does not match the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified, and contact debugging is required.

[0062] It should be noted that the debugging device for the line scan camera for printing test provided in the embodiment can be run in an electronic device, and the printing image captured by the line scan camera is obtained, the line scan camera comprising a camera main body 1 and an encoder assembly 2; the camera main body 1 is arranged on one side of a printer 3 to perform image sensing on the printed paper after printing by the printer 3 to obtain a printing image; the encoder assembly 2 is assembled on the camera main body 1 and contacts a printing shaft 30 of the printer 3, and is used to rotate with the printing shaft 30 when the printing shaft 30 rotates to transmit the printing state of the printing shaft 30 when rotating to the camera main body 1; the camera main body 1 performs image sensing on the printed paper according to the printing state to obtain the printing image; then the obtained printing image is calculated and processed with a preset standard image, whether the printing image matches the preset standard image is judged according to the calculation and processing result, when the printing image matches the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is qualified; when the printing image does not match the preset standard image, it is fed back that the encoder assembly 2 is in contact with the printing shaft 30 and is unqualified, and contact debugging is needed, so that the encoder assembly 2 is in qualified contact with the printing shaft 30, the printing state of the printing shaft 30 is accurately sensed, and the precision of the printing image is improved. In addition, since the encoder assembly 2 is arranged on the camera main body 1 and constitutes a whole with the camera host, the camera host is located on one side of the printer 3 to capture the printed paper pushed out by the printing shaft 30 by friction, the encoder assembly 2 contacts the printing shaft 30 on one side of the printing shaft 30 and transmits the printing state of the printing shaft 30 when rotating to the camera main body 1, the camera main body 1 performs image sensing on the printed paper according to the printing state to obtain the printing image, there is no problem of difficult installation, and the test precision is high.

[0063] In addition, the above embodiments can be combined by those skilled in the art without contradiction to form different embodiments.

[0064] The above is the description of the technical solutions provided by the present application. For those skilled in the art, according to the idea of the embodiment of the present application, the specific implementation and application range can be changed, and the above description should not be understood as a limitation of the present application.

Claims

1. A method of debugging a line-scan camera for printing tests, characterized in that, The method comprises the following steps: acquiring a printing image captured by a line-scan camera, the line-scan camera comprising a camera body and an encoder assembly; the camera body is arranged on one side of a printer to image sense a printed paper after printing by the printer, and obtain the printing image; the encoder assembly is assembled on the camera body and in contact with a printing shaft of the printer, and is used to rotate with the printing shaft when the printing shaft rotates, so as to sense a printing state of the printing shaft when the printing shaft rotates and transmit the printing state to the camera body; the camera body images senses the printed paper according to the printing state, so as to obtain the printing image; performing calculation and processing on the acquired printing image and a preset standard image; judging whether the printing image matches the preset standard image according to a calculation and processing result; when the printing image matches the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is qualified; when the printing image does not match the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact adjustment is required; the camera body is provided with an encoder mounting space, the encoder mounting space is in communication with the outside of the camera body; the encoder assembly is assembled in the encoder mounting space and exposes a rotatable part structure to the outside of the camera body and is in contact with the printing shaft; the encoder assembly comprises an encoder wheel and an encoder body; the encoder wheel is connected to the encoder body and is assembled in the encoder mounting space together with the encoder body, and the encoder wheel is the rotatable part structure; the camera body is provided with a movement control assembly; the movement control assembly and the encoder mounting space are located in a vertical direction of the printing shaft; the encoder body is movably connected to the movement control assembly and moves along the vertical direction of the printing shaft under the adjustment and control of the movement control assembly; the movement control assembly comprises a base and an adjusting piece; the base is provided with an adjusting through hole and a guide hole; the encoder body comprises an encoder, an encoder support, an elastic piece and a guide rod; the elastic piece and the guide rod are installed on one side of the encoder, and the encoder is installed on the encoder support; the guide rod extends into the guide hole, so that the encoder body is movably connected to the base; the adjusting piece comprises a main body part, an adjusting end and a contact end, the main body part passes through the adjusting through hole, the adjusting end is exposed to the outside of the camera body, and the contact end is in contact with the elastic piece.

2. The method of claim 1, wherein, after the calculation and processing on the acquired printing image and the preset standard image, the method further comprises the following steps: acquiring a printing image captured by a line-scan camera after contact adjustment; performing calculation and processing on the printing image captured by the line-scan camera after contact adjustment and a preset standard image; According to the calculation processing result, it is judged whether the printed image obtained by contact debugging is matched with the preset standard image. When the printed image obtained by contact debugging is matched with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is qualified. When the printed image obtained by contact debugging is not matched with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is needed.

3. The method of claim 1, wherein, According to the calculation processing result, it is judged whether the printed image obtained by contact debugging is matched with the preset standard image. When the printed image obtained by contact debugging is matched with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is qualified. When the printed image obtained by contact debugging is not matched with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is needed. When the calculation processing result is that there is no deformation of the printed image compared with the preset standard image, it is judged that the printed image is matched with the preset standard image, and it is fed back that the encoder assembly is in contact with the printing shaft and is qualified. When the calculation processing result is that there is deformation of the printed image compared with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is needed.

4. The method of claim 3, wherein, When the calculation processing result is that there is deformation of the printed image compared with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is unqualified, and contact debugging is needed. When the calculation processing result is that there is stretching of the printed image compared with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is too tight, and contact debugging for loosening is needed. When the calculation processing result is that there is compression of the printed image compared with the preset standard image, it is fed back that the encoder assembly is in contact with the printing shaft and is too loose, and contact debugging for tightening is needed.

5. The method of debugging a line-scan camera for printing tests according to any of claims 1 to 4, characterized in that, The calculation processing of the obtained printed image and the preset standard image includes: The resolution of the encoder assembly is F, the synchronization coefficient of the line scanning camera is m, the synchronization step distance of the line scanning camera is mF, and the longitudinal distance of two test points of the preset standard image is P pixels; The pixel difference ΔP of the printed image and the preset standard image is calculated; The synchronization coefficient m of the line scanning camera is adjusted according to the pixel difference ΔP until the pixel difference ΔP is less than a predetermined value.

6. A debugging apparatus for a line-scan camera for printing tests, characterized in that It includes: A printed image acquisition module is configured to acquire a printed image captured by a line scanning camera, the line scanning camera including a camera body and an encoder assembly; the camera body is configured to be arranged on one side of a printer to sense an image of a printed paper after printing by the printer to obtain the printed image; The encoder assembly is assembled on the camera body and is in contact with a printing shaft of the printer to rotate with the printing shaft when the printing shaft rotates to sense a printing state of the printing shaft when rotating and transmit the printing state to the camera body; The camera body senses an image of the printed paper according to the printing state to obtain the printed image; The printing image computing processing module is configured to perform computing processing on the acquired printing image and a preset standard image. The contact debugging judgment module is configured to judge whether the printing image matches the preset standard image according to the computing processing result, and feed back that the encoder assembly and the printing shaft are in contact with each other and are qualified when the printing image matches the preset standard image, and feed back that the encoder assembly and the printing shaft are in contact with each other and are unqualified and need to be debugged when the printing image does not match the preset standard image. The camera main body is provided with an encoder mounting space which is in communication with the outside of the camera main body; the encoder assembly is assembled in the encoder mounting space and exposes a rotatable part structure to the outside of the camera main body and contacts the printing shaft; the encoder assembly comprises an encoder wheel and an encoder main body; the encoder wheel is connected to the encoder main body and is assembled in the encoder mounting space together with the encoder main body, and the encoder wheel is the rotatable part structure; the camera main body is provided with a movement control assembly; the movement control assembly and the encoder mounting space are located in the vertical direction of the printing shaft; the encoder main body is movably connected to the movement control assembly and moves in the vertical direction of the printing shaft under the adjustment and control of the movement control assembly; the movement control assembly comprises a base and an adjusting piece; the base is provided with an adjusting through hole and a guide hole; the encoder main body comprises an encoder, an encoder support, an elastic piece and a guide rod; the elastic piece and the guide rod are installed on one side of the encoder, and the encoder is installed on the encoder support; the guide rod extends into the guide hole, so that the encoder main body is movably connected to the base; the adjusting piece comprises a main body part, an adjusting end and a contact end, the main body part passes through the adjusting through hole, the adjusting end is exposed to the outside of the camera main body, and the contact end contacts the elastic piece.

Citation Information

Patent Citations

  • Small-type printer

    JP1989016674A

  • Encoders and inkjet printers

    JP6804116B1