A method for integrating scanning function into passbook printer
By introducing a contact scanning paper feed mechanism and photoelectric sensors into the passbook printer, the problems of complex assembly and slow scanning speed in the existing technology have been solved, achieving accurate image acquisition, correction and uploading, reducing hardware overhead and improving scanning speed.
Patent Information
- Application Number
- CN201910617527.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-01
- Filing Date
- 2019-07-10
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2039-07-10
AI Technical Summary
The built-in scanning function of existing passbook printers results in complex assembly, high hardware costs, and slow scanning speed, which cannot meet the needs of users.
It adopts a contact scanning paper feeding mechanism, combined with reflective and through-beam photoelectric sensors, and performs image correction through histogram matching. This reduces hardware overhead and speeds up scanning while simultaneously enabling image acquisition, correction and uploading.
It enables accurate determination of the position and size of the printing medium, simplifies assembly, reduces hardware costs, improves scanning speed, and ensures reliable results.
Smart Images

Figure CN110341329B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for implementing an integrated scanning function in a passbook printer, and is applicable to the field of passbook printers. Background Art
[0002] A passbook, commonly known as a red book, is a book used to record bank transactions of a deposit account. Its size varies depending on the country and bank institution, and can be as large as a checkbook or a passport. Currently, most passbook printers used for passbook printing on the market use an embedded scanning function, which makes the assembly of the passbook printer more complicated. During the scanning process, image data of the entire scanning tube width is collected, and image correction processing and upload are performed only after the image data of the entire print medium is collected. When scanning a smaller print medium, this will forcibly increase the hardware overhead of the printer control system and extend the scanning time, making the hardware successful and the scanning speed slow. This type of passbook printer cannot fully meet the use requirements. Summary of the invention
[0003] The purpose of the present invention is to provide a method for integrating a scanning function into a passbook printer. The method has simple process and reliable assembly, can accurately determine the current printing medium position and size, can simultaneously realize image acquisition, image correction and image upload, and can speed up the scanning speed and achieve reliable results while reducing hardware overhead.
[0004] The technical solution of the present invention is: a method for implementing an integrated scanning function in a passbook printer, comprising a contact scanning paper feeding mechanism, the contact scanning paper feeding mechanism comprising a rear upper paper guide rack and a rear lower paper guide rack located at the lower side of the rear upper paper guide rack, a front upper paper guide plate and a front lower paper guide plate are respectively arranged at the front sides of the rear upper paper guide rack and the rear lower paper guide rack, a first rear upper paper feeding wheel, a first scanning tube and a second rear upper paper feeding wheel are embedded in the rear upper paper guide rack from front to back, a rear lower paper feeding wheel and a second scanning tube are embedded in the rear lower paper guide rack from front to back, the first rear upper paper feeding wheel is located at the upper side of the rear lower paper feeding wheel, the first scanning tube and the second scanning tube are placed in a mirror image, a print head movable leftward and rightward is arranged at the front side of the rear upper paper guide rack and the rear lower paper guide rack, a reflective photoelectric sensor is installed on the print head, a front paper feeding wheel and four pairs of opposing photoelectric sensors are embedded in the front upper paper guide plate, the front upper paper guide plate and the front lower paper guide plate are arranged at the front side of the print head, and the implementation steps are as follows:
[0005] (1) The lateral position and width of the print medium to be scanned are obtained by moving the reflective photoelectric sensor installed on the print head left and right;
[0006] (2) Obtaining the current longitudinal position and length of the print medium to be scanned by controlling four pairs of opposing photoelectric sensors installed on the front side;
[0007] (3) Start the scanning tube before the printing medium to be scanned moves to the scanning tube image acquisition lamp;
[0008] (4) Correct image information through histogram matching;
[0009] (5) Simultaneously control the movement of the print media to be scanned, image acquisition, image information correction and image upload.
[0010] Further, the following steps are specifically performed:
[0011] (1) When in use, the print media is manually fed between the front upper paper guide and the front lower paper guide;
[0012] (2) The control system controls the front paper feed wheel to rotate and place the print medium to be scanned against the front lower paper guide, feeds it into the printer, and moves the medium inward at a uniform speed;
[0013] (3) When the printing medium passes through four pairs of photoelectric sensors, the control system will know that the printing medium has been fed into the interior and start to calculate the length of the printing medium based on the total rotation angle of the front paper feed wheel and its radius;
[0014] (4) When the print medium passes through the print head, the control system controls the left and right movement of the print head and obtains the print medium width through the reflective photoelectric sensor;
[0015] (5) When the printing medium moves to between the rear upper paper guide and the rear lower paper guide, the control system controls the first rear upper paper feed roller, the rear lower paper feed roller and the front paper feed roller to rotate synchronously, so as to continue to roll the printing medium forward and ensure its smooth movement;
[0016] (6) When the tail of the printing medium passes through four pairs of photoelectric sensors, the control system can learn the length of the printing medium and calculate the time required to activate the scanning tube for the entire format or a rectangular area in the format;
[0017] (7) The control system calculates the total rotation angle of the front paper feed wheel and its radius to determine that when the tail of the current printing medium is at the rear side of the image acquisition tube in the scanning tube, the rolling direction of the front paper feed wheel, the first rear upper paper feed wheel, and the second rear upper paper feed wheel is changed to make the printing medium roll in the reverse direction, and the first scanning tube and the second scanning tube are activated to collect images, and the printing medium is kept rolling in the reverse direction, and image data processing, image information correction and image upload are performed during the movement;
[0018] (8) When the head of the printing medium returns to the front side of the first scanning tube and the second scanning tube or the area to be collected returns to the front side of the first scanning tube and the second scanning tube, the image collection ends and the scanning is completed.
[0019] Compared with the prior art, the present invention has the following advantages: the implementation method of integrating the scanning function in the passbook printer is simple in process, the passbook printer is firmly assembled, the current printing medium position and size can be accurately determined, image acquisition, image correction and image upload can be realized simultaneously, while reducing hardware costs, the scanning speed is accelerated and the effect is reliable, and it has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a structural schematic diagram of the present invention;
[0021] Figure 2 is a side view of the present invention;
[0022] Figure 3 A top view of the present invention;
[0023] Figure 4 A bottom view of the present invention;
[0024] Figure 5 is a control flow chart of the control system in the present invention;
[0025] In the figure: 101-rear upper paper guide rack, 102-rear lower paper guide rack, 103-first rear upper paper feed roller, 104-second rear upper paper feed roller, 105-rear lower paper feed roller, 106-front paper feed roller, 107-print head, 108-front upper paper guide, 109-front lower paper guide, 201-first scanning tube, 202-second scanning tube, 203-reflective photoelectric sensor, 204-four pairs of opposing photoelectric sensors. DETAILED DESCRIPTION
[0026] In order to make the above features and advantages of the present invention more obvious and easy to understand, embodiments are given below with reference to the accompanying drawings for detailed description, but the present invention is not limited thereto.
[0027] refer to Figures 1 to 5
[0028] A method for implementing an integrated scanning function in a passbook printer includes a contact scanning paper feeding mechanism, the contact scanning paper feeding mechanism includes a rear upper paper guide frame 101 and a rear lower paper guide frame 102 located at the lower side of the rear upper paper guide frame, a front upper paper guide 108 and a front lower paper guide 109 are respectively arranged at the front sides of the rear upper paper guide frame and the rear lower paper guide frame, a first rear upper paper feeding wheel 103, a first scanning tube 201 and a second rear upper paper feeding wheel 104 are embedded in the rear upper paper guide frame from front to back, a rear lower paper feeding wheel and a second scanning tube 202 are embedded in the rear lower paper guide frame from front to back, the first rear upper paper feeding wheel is located at the upper side of the rear lower paper feeding wheel and overlaps in the longitudinal position, and the first scanning tube and the second scanning tube are placed in a mirror image to avoid the scanning tube light source from being reflected. A print head 107 that can move left and right is arranged at the front side of the rear upper paper guide rack and the rear lower paper guide rack, and a reflective photoelectric sensor 203 is installed on the print head. A front paper feed wheel 106 and four pairs of opposing photoelectric sensors 204 are embedded in the front upper paper guide. The front upper paper guide and the front lower paper guide are arranged at the front side of the print head; the first scanning tube, the second scanning tube, the reflective photoelectric sensor, and the four pairs of opposing photoelectric sensors constitute hardware components that help analyze and process images; the control system controls the contact scanning paper feed mechanism and the hardware components through the motor to realize the integrated scanning function inside the passbook printer.
[0029] In this embodiment, the implementation steps of the hardware components are as follows:
[0030] (1) Obtaining the lateral position and width of the print medium to be scanned by moving the reflective photoelectric sensor 203 mounted on the print head 107 left and right;
[0031] (2) Obtaining the current longitudinal position and length of the print medium to be scanned by controlling four pairs of opposing photoelectric sensors 204 installed on the front side;
[0032] (3) Start the scanning tube before the printing medium to be scanned moves to the scanning tube image acquisition lamp;
[0033] (4) Correct image information through histogram matching;
[0034] (5) Simultaneously control the movement of the print media to be scanned, image acquisition, image information correction and image upload.
[0035] In this embodiment, the implementation method is specifically performed according to the following steps:
[0036] (1) When in use, the print medium is manually fed between the front upper paper guide 108 and the front lower paper guide 109;
[0037] (2) The control system controls the front paper feed wheel 106 to rotate and place the print medium to be scanned against the front lower paper guide 109, feeds the medium into the printer, and causes the medium to move inward at a uniform speed;
[0038] (3) When the printing medium passes through the four pairs of opposing photoelectric sensors 204, the control system will know that the printing medium has been fed into the interior, and will start to calculate the length of the printing medium by the total rotation angle of the front paper feeding wheel 106 and its radius;
[0039] (4) When the print medium passes through the print head 107, the control system controls the print head to move left and right and obtains the print medium width through the reflective photoelectric sensor 203;
[0040] (5) When the printing medium moves to between the rear upper paper guide rack 101 and the rear lower paper guide rack 102, the control system controls the first rear upper paper feed roller 103, the rear lower paper feed roller 105 and the front paper feed roller 106 to rotate synchronously, so as to continue to roll the printing medium forward and ensure its smooth movement;
[0041] (6) When the tail of the printing medium passes through the four pairs of opposing photoelectric sensors / 204, the control system can obtain the length of the printing medium and calculate the time required to activate the scanning tube for the entire format or a rectangular area in the format;
[0042] (7) The control system calculates the total rotation angle of the front paper feed wheel 106 and its radius to determine that when the tail of the current printing medium is at the rear side of the image acquisition tube in the scanning tube, the front paper feed wheel 106, the first rear upper paper feed wheel 103, and the second rear upper paper feed wheel 104 are changed to roll the printing medium in the reverse direction, and the first scanning tube 201 and the second scanning tube 202 are activated to acquire the image, and the printing medium is kept rolling in the reverse direction, and image data processing, image information correction, and image upload are performed during the movement;
[0043] (8) When the head of the printing medium returns to the front side of the first scanning tube 201 and the second scanning tube 202 or the area to be collected returns to the front side of the first scanning tube 201 and the second scanning tube 202, the image collection is completed and the scanning is completed.
[0044] Among them, the control process of the control system (see Figure 5): When the printer starts working, the front paper feed roller 106 is controlled to rotate to feed the print medium into the printer; the system determines whether the four pairs of photoelectric sensors 204 are blocked. If blocked, the paper feed roller 106 is controlled to continue rotating, the print medium is fed into the printer, and the length of the medium is accumulated and calculated; when the print medium passes through the print head 107, the software controls the print head 107 to move left and right and obtains the print medium width through the reflective photoelectric sensor 203; when the print medium moves between the rear upper paper guide rack 101 and the rear lower paper guide rack 102, the software controls the rear upper paper feed roller 1 103, the rear lower paper feed wheel 105 and the front paper feed wheel 106 rotate synchronously; the system determines whether the tail of the printing medium passes through the four pairs of opposing photoelectric sensors 204. If so, the length of the printing medium can be obtained by the total rotation angle of the front paper feed wheel 106; the rear lower paper feed wheel 105 and the front paper feed wheel 106 continue to rotate until the tail of the printing medium is at the rear side of the image acquisition tube in the first scanning tube 201; the rolling direction of the front paper feed wheel 106, the first rear upper paper feed wheel 103, and the second rear lower paper feed wheel 104 is changed to make the printing medium roll in the opposite direction; then the first scanning tube 201 and the second scanning tube 202 are activated to collect the head portrait, and the image data is processed and uploaded at the same time; then the system determines whether the image data processing and uploading are completed. If completed, the scanning work is terminated. If the image data processing and uploading are not completed, the image data processing and uploading are continued. When the printer starts working, if the printing medium is fed into the printer, the system determines that the four pairs of opposing photoelectric sensors are not blocked, then controls the front paper feed roller 106 to continue rotating, and then determines whether the printing medium exceeds the distance from the paper feed roller 106 to the four pairs of opposing photoelectric sensors 204. If exceeded, controls the front paper feed roller 106 to continue rotating, if not exceeded, ends the scanning work. When the system determines that the tail of the printing medium has not passed through the four pairs of opposing photoelectric sensors 204, it further determines whether the rotation radius of the front paper feed wheel 106 is greater than 14 inches. If it is greater than 14 inches, the tail of the printing medium is positioned at 14 inches of its length, that is, the printing medium is considered to be 14 inches long. Thereafter, the rear lower paper feed wheel 105 and the front paper feed wheel 106 continue to rotate until the tail of the printing medium is at the rear side of the image acquisition tube in the first scanning tube 201, and then the subsequent process is continued; if the rotation radius of the front paper feed wheel 106 is less than 14 inches, it returns to determine whether the tail of the printing medium passes through the four pairs of opposing photoelectric sensors 204, and then the subsequent process is continued; the rotation radius is the total rotation angle / 360°.
[0045] The above description is only a preferred embodiment of the present invention. For ordinary technicians in this field, according to the teachings of the present invention, it does not require creative labor to design different forms of a method for integrating a scanning function in a passbook printer. Without departing from the principle and spirit of the present invention, all equal changes, modifications, substitutions and variations made within the scope of the patent application of the present invention should fall within the scope of the present invention.
Claims
1. A method for implementing an integrated scanning function in a passbook printer, comprising a contact scanning paper feeding mechanism, wherein the contact scanning paper feeding mechanism comprises a rear upper paper guide rack and a rear lower paper guide rack located at the lower side of the rear upper paper guide rack, a front upper paper guide plate and a front lower paper guide plate are respectively arranged at the front sides of the rear upper paper guide rack and the rear lower paper guide rack, a first rear upper paper feeding wheel, a first scanning tube and a second rear upper paper feeding wheel are embedded in the rear upper paper guide rack from front to back, a rear lower paper feeding wheel and a second scanning tube are embedded in the rear lower paper guide rack from front to back, the first rear upper paper feeding wheel is located at the upper side of the rear lower paper feeding wheel and overlaps in the longitudinal position, the first scanning tube and the second scanning tube are embedded in the rear lower paper guide rack from front to back, The two scanning tubes are placed in a mirror image, and a print head that can move left and right is arranged on the front side of the rear upper paper guide and the rear lower paper guide, and a reflective photoelectric sensor is installed on the print head. The front upper paper guide is embedded with a front paper feed wheel and four pairs of opposing photoelectric sensors. The front upper paper guide and the front lower paper guide are arranged on the front side of the print head, wherein the first scanning tube, the second scanning tube, the reflective photoelectric sensor, and the four pairs of opposing photoelectric sensors constitute a hardware component that helps to parse and process images; the control system controls the contact scanning paper feed mechanism and the hardware component through a motor to realize the integrated scanning function inside the passbook printer; it is characterized in that, The implementation steps are as follows: (1) When in use, the print medium is manually fed between the front upper paper guide and the front lower paper guide; the control system controls the front paper feed wheel to rotate and place the print medium to be scanned against the front lower paper guide, feeds it into the printer, and moves the medium inward at a uniform speed; when the print medium passes through the print head, the control system controls the print head to move left and right, and obtains the lateral position and width of the print medium to be scanned through the left and right movement of the reflective photoelectric sensor installed on the print head; (2) When the printing medium passes through the four pairs of opposing photoelectric sensors, the control system will know that the printing medium has been fed into the interior. By controlling the four pairs of opposing photoelectric sensors installed on the front side and calculating the total rotation angle and radius of the front paper feed wheel, the current longitudinal position and length of the printing medium to be scanned can be obtained; (3) When the printing medium moves to between the rear upper paper guide and the rear lower paper guide, the control system controls the first rear upper paper feed roller, the rear lower paper feed roller and the front paper feed roller to rotate synchronously, so as to continue to roll the printing medium forward and ensure its smooth movement; when the tail of the printing medium passes through the four pairs of opposing photoelectric sensors, the control system can obtain the length of the printing medium and calculate the time required to activate the scanning tube for the entire format or a rectangular area in the format; (4) Start the scanning tube before the print medium to be scanned moves to the image acquisition lamp of the scanning tube; (5) The control system calculates the total rotation angle of the front paper feed wheel and its radius to determine that when the tail of the current printing medium is at the rear side of the image acquisition tube in the scanning tube, the rolling direction of the front paper feed wheel, the first rear upper paper feed wheel, and the second rear upper paper feed wheel is changed to make the printing medium roll in the reverse direction, and the first scanning tube and the second scanning tube are activated to collect images, and the printing medium is kept rolling in the reverse direction. Image data processing is performed during the movement, and image information correction is performed by histogram matching; (6) Simultaneously controlling the movement of the print medium to be scanned, image acquisition, image information correction and image upload, when the print medium head returns to the front side of the first scanning tube and the second scanning tube or the area to be acquired returns to the front side of the first scanning tube and the second scanning tube, the image acquisition is completed and the scanning is completed; Among them, the control process of the control system is: When the printer starts working, the front paper feed wheel is controlled to rotate and the print medium is fed into the printer; the system determines whether the four pairs of opposing photoelectric sensors are blocked. If blocked, the paper feed wheel is controlled to continue rotating, the print medium is fed into the printer, and the length of the media is accumulated and calculated; when the print medium passes through the print head, the software controls the print head to move left and right and obtains the print medium width through the reflective photoelectric sensor; when the print medium moves between the rear upper paper guide rack and the rear lower paper guide rack, the software controls the rear upper paper feed wheel, the rear lower paper feed wheel and the front paper feed wheel to rotate synchronously; the system determines whether the tail of the print medium passes through the four pairs of opposing photoelectric sensors sensor, if it passes, the length of the printing medium can be obtained by the total rotation angle of the front paper feed wheel; continue to rotate the rear lower paper feed wheel and the front paper feed wheel until the tail of the printing medium is at the rear side of the image acquisition tube in the first scanning tube; change the rolling direction of the front paper feed wheel, the first rear upper paper feed wheel, and the second rear lower paper feed wheel to make the printing medium roll in the opposite direction; then activate the first scanning tube and the second scanning tube to collect the head portrait, and process and upload the image data at the same time; then the system determines whether the image data processing and uploading are completed, if completed, the scanning work is ended, if the image data processing and uploading are not completed, then continue to process and upload the image data; When the printer starts working, if the printing medium is fed into the printer, the system determines that the four pairs of opposing photoelectric sensors are not blocked, then controls the front paper feed wheel to continue rotating, and then determines whether the printing medium exceeds the distance from the paper feed wheel to the four pairs of opposing photoelectric sensors. If so, controls the front paper feed wheel to continue rotating, and if not, terminates the scanning work; When the system determines that the tail of the print medium has not passed through the four pairs of opposing photoelectric sensors, it further determines whether the rotation radius of the front paper feed wheel is greater than 14 inches. If it is greater than 14 inches, the tail of the print medium is positioned at 14 inches of its length, that is, the print medium is considered to be 14 inches long. Thereafter, the rear lower paper feed wheel and the front paper feed wheel continue to rotate until the tail of the print medium is at the rear side of the image acquisition tube in the first scanning tube, and then the subsequent process is continued; if the rotation radius of the front paper feed wheel is less than 14 inches, it returns to determine whether the tail of the print medium passes through the four pairs of opposing photoelectric sensors, and then the subsequent process is continued; the rotation radius is the total rotation angle / 360°.
Citation Information
Patent Citations
Integrated scanning bankbook printer
CN101850666A
Transportation alignment device, control method for a transportation alignment device, and recording device
CN101987535A
Bankbook printer with integrated scanning function
CN211031777U