Method for realizing integrated scanning function in deposit book printer
Technical Field
The invention relates to a realization method for integrating a scanning function in a passbook printer, which is applicable to the field of passbook printers.
Background
The passbook is commonly called a red book and is a book used for recording bank transactions of deposit accounts. The size of the area may vary from country to country and from banking institution to banking institution, and may be as large as a checkbook or as large as a passport. The bankbook printer for bankbook printing in the market at present mostly adopts embedded scanning function, and the mode of this kind of embedded scanning function makes the assembly of bankbook printer more complicated, gathers the image data of whole scanning pipe breadth width in the scanning process, and just carries out correction processing and uploading of image after the image data of whole printing medium has been gathered, when the printing medium of scanning small size, this can increase the hardware cost of printer control system and prolong the time of scanning by force for the hardware is successfully pulled up, and scanning speed is slow. The passbook printer with such a configuration cannot fully satisfy the use requirements.
Disclosure of Invention
The invention aims to provide a realization method for integrating a scanning function in a fold-over printer, which has the advantages of simple process, firm assembly, accurate judgment of the current printing medium position and size, realization of image acquisition, image correction and image uploading, hardware cost reduction, speed up of scanning and reliable effect.
The technical scheme of the invention is that the method for realizing the integrated scanning function in the folding printer comprises a contact type scanning paper feeding mechanism, wherein the contact type scanning paper feeding mechanism comprises a rear upper paper guide frame and a rear lower paper guide frame which is positioned at the lower side of the rear upper paper guide frame, front upper paper guide plates and front lower paper guide plates 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, a first scanning tube and a second rear upper paper feeding wheel are embedded in the rear upper paper guide frame from front to back, a rear lower paper feeding wheel and a second scanning tube are embedded in the rear lower paper guide frame from front to back, the first rear upper paper feeding wheel is positioned at the upper side of the rear lower paper feeding wheel, the first scanning tube and the second scanning tube are in mirror image placement, printing heads capable of moving left and right are arranged at the front sides of the rear upper paper guide frame and the rear lower paper guide frame, a reflective photoelectric sensor is arranged on the printing heads, a front upper paper guide plate is embedded with four pairs of front paper feeding wheels and a front paper guide plate, and a front paper guide plate is arranged at the front side of the printing heads, and the front paper guide plate is realized:
(1) The lateral position and width of the printing medium to be scanned are obtained through the left-right movement of a reflective photoelectric sensor arranged on the printing head;
(2) The current longitudinal position and length of the printing medium to be scanned are obtained by controlling four pairs of correlation photoelectric sensors arranged on the front side;
(3) Starting a scanning tube before a printing medium to be scanned moves to a scanning tube image acquisition lamp tube;
(4) Correcting the image information in a histogram matching mode;
(5) And simultaneously controlling the movement of the printing medium to be scanned, the image acquisition, the image information correction and the image uploading.
Further, the method specifically comprises the following steps:
(1) When in use, the printing medium is manually fed between the front upper paper guide plate and the front lower paper guide plate;
(2) The control system controls the front paper feeding wheel to rotate, supports the printing medium to be scanned on the front lower paper guide plate, sends the printing medium into the printer, and enables the medium to move inwards at a constant speed;
(3) When the printing medium passes through the four pairs of opposite-type photoelectric sensors, the control system can know that the printing medium is fed into the interior, and starts to calculate the length of the printing medium through the total rotation angle of the front paper feeding wheel and the radius of the front paper feeding wheel;
(4) When the printing medium passes through the printing head, the control system controls the printing head to move left and right and obtains the width of the printing medium through the reflective photoelectric sensor;
(5) When the printing medium moves between the rear upper paper guide frame and the rear lower paper guide frame, the control system controls the first rear upper paper feed wheel, the rear lower paper feed wheel and the front paper feed wheel to synchronously rotate, so that the printing medium is continuously rolled forwards, and the stable movement of the printing medium is ensured;
(6) When the tail part of the printing medium passes through four opposite-incidence photoelectric sensors, the control system can learn the length of the printing medium and calculate the time for activating the scanning tube to work in the whole breadth or a certain rectangular area in the breadth;
(7) When the control system calculates the total rotation angle of the front paper feeding wheel and the radius thereof to obtain that the tail of the current printing medium is positioned at the rear side of the image acquisition tube in the scanning tube, changing the rolling directions of the front paper feeding wheel, the first rear upper paper feeding wheel and the second rear upper paper feeding wheel to enable the printing medium to reversely roll, activating the first scanning tube and the second scanning tube to acquire images, keeping the printing medium to reversely roll, and carrying out image data processing, image information correction and image uploading in the moving process;
(8) When the printing medium head returns to the front sides of the first scanning tube and the second scanning tube or the area needing to be acquired returns to the front sides of the first scanning tube and the second scanning tube, the image acquisition is finished, and the scanning is completed.
Compared with the prior art, the method for realizing the integrated scanning function in the passbook printer has the advantages that the process is simple, the passbook printer is firmly assembled, the position and the size of the current printing medium can be accurately judged, the collected image, the image correction and the image uploading can be simultaneously realized, the hardware cost is reduced, the scanning speed is increased, the effect is reliable, and the method has wide application prospect.
Drawings
FIG. 1 is a schematic diagram of the structure of the present invention;
FIG. 2 is a side view of the present invention;
FIG. 3 is a top view of the present invention;
FIG. 4 is a bottom view of the present invention;
FIG. 5 is a control flow chart of the control system of the present invention;
In the figure, the three-dimensional image scanning device comprises a 101-rear upper paper guide frame, a 102-rear lower paper guide frame, a 103-first rear upper paper feed wheel, a 104-second rear upper paper feed wheel, a 105-rear lower paper feed wheel, a 106-front paper feed wheel, a 107-printing head, a 108-front upper paper guide plate, a 109-front lower paper guide plate, a 201-first scanning tube, a 202-second scanning tube, a 203-reflective photoelectric sensor and 204-four pairs of opposite-reflective photoelectric sensors.
Detailed Description
In order to make the above features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below, but the present invention is not limited thereto.
Referring to fig. 1 to 5
The method for realizing the integrated scanning function in the folding printer comprises a contact type scanning paper feeding mechanism, wherein the contact type scanning paper feeding mechanism comprises a rear upper paper guide frame 101 and a rear lower paper guide frame 102 positioned at the lower side of the rear upper paper guide frame, front side of the rear upper paper guide frame and front side of the rear lower paper guide frame are respectively provided with a front upper paper guide 108 and a front lower paper guide 109, a first rear upper paper feed wheel 103, a first scanning tube 201 and a second rear upper paper feed wheel 104 are embedded in the rear upper paper guide frame from front to back, a rear lower paper feed 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 feed wheel is positioned at the upper side of the rear lower paper feed wheel and coincides at the longitudinal position, and the first scanning tube and the second scanning tube are placed in a mirror image mode, so that the light source of the scanning tube is prevented from being emitted. The front sides of the rear upper paper guide frame and the rear lower paper guide frame are provided with a printing head 107 capable of moving left and right, the printing head is provided with a reflective photoelectric sensor 203, the front upper paper guide plate is embedded with a front paper feed wheel 106 and four pairs of opposite photoelectric sensors 204, and the front upper paper guide plate and the front lower paper guide plate are arranged at the front sides of the printing head; the control system controls the contact type scanning paper feeding mechanism and the hardware component through the motor to realize the internal integration scanning function of the bankbook printer.
In this embodiment, the implementation steps of the hardware component are as follows:
(1) The lateral position and width of the print medium to be scanned are obtained by the left-right movement of the reflective photosensor 203 mounted on the print head 107;
(2) The current longitudinal position and length of the printing medium to be scanned are obtained by controlling four pairs of correlation photoelectric sensors 204 installed on the front side;
(3) Starting a scanning tube before a printing medium to be scanned moves to a scanning tube image acquisition lamp tube;
(4) Correcting the image information in a histogram matching mode;
(5) And simultaneously controlling the movement of the printing medium to be scanned, the image acquisition, the image information correction and the image uploading.
In this embodiment, the implementation method specifically includes the following steps:
(1) In use, the print medium is manually fed between the front upper paper guide 108 and the front lower paper guide 109;
(2) The control system controls the front paper feeding wheel 106 to rotate and support the printing medium to be scanned on the front lower paper guide plate 109, and sends the printing medium into the printer, and enables the medium to move inwards at a constant speed;
(3) When the printing medium passes through the four pairs of opposite-type photoelectric sensors 204, the control system can know that the printing medium is fed into the interior, and starts to calculate the length of the printing medium through the total rotation angle of the front paper feeding wheel 106 and the radius thereof;
(4) When the printing medium passes through the printing head 107, the control system controls the printing head to move left and right and obtains the width of the printing medium through the reflective photoelectric sensor 203;
(5) When the printing medium moves between the rear upper paper guide frame 101 and the rear lower paper guide frame 102, the control system controls the first rear upper paper feed wheel 103, the rear lower paper feed wheel 105 and the front paper feed wheel 106 to synchronously rotate, so that the printing medium is continuously rolled forwards, and the stable movement of the printing medium is ensured;
(6) When the tail part of the printing medium passes through four pairs of opposite-emission photoelectric sensors/204, the control system can learn the length of the printing medium and calculate the time for activating the scanning tube to work in the whole breadth or a certain rectangular area in the breadth;
(7) When the control system calculates the total rotation angle of the front paper feeding wheel 106 and the radius thereof to obtain that the tail of the current printing medium is positioned at the rear side of the image acquisition tube in the scanning tube, changing the rolling directions of the front paper feeding wheel 106, the first rear upper paper feeding wheel 103 and the second rear upper paper feeding wheel 104 to enable the printing medium to reversely roll, activating the first scanning tube 201 and the second scanning tube 202 to acquire images, keeping the printing medium reversely roll, and processing image data, correcting image information and uploading the images in the moving process;
(8) When the printing medium head returns to the front sides of the first scanning tube 201 and the second scanning tube 202 or the area to be acquired returns to the front sides of the first scanning tube 201 and the second scanning tube 202, the image acquisition is finished and the scanning is completed.
The control flow of the control system (see in detail fig. 5) is that after the printer starts to work, the front paper feeding wheel 106 is controlled to rotate and the printing medium is fed into the printer, the system judges whether the tail of the printing medium passes through the four pairs of opposite-jet photoelectric sensors 204, if so, the front paper feeding wheel 106 is controlled to rotate continuously, the printing medium is fed into the printer and the calculated medium length starts to be accumulated, when the printing medium passes through the printing head 107, the software controls the printing head 107 to move left and right and obtain the printing medium width through the reflective photoelectric sensor 203, when the printing medium moves between the rear upper paper feeding frame 101 and the rear lower paper feeding frame 102, the software controls the rear upper paper feeding wheel 1103, the rear lower paper feeding wheel 105 and the front paper feeding wheel 106 to rotate synchronously, if so, the front paper feeding wheel 106 rotates by a total angle, the rear lower paper feeding wheel 105 and the front paper feeding wheel 106 continue to rotate until the tail of the printing medium is positioned at the rear side of the image acquisition tube 201, when the printing medium moves between the rear paper feeding wheel 106, the first rear paper feeding wheel 103, the second paper feeding wheel 104 and the image scanning tube is started, and the image data is processed after the image is completed by rolling, and the image data is processed by the image scanning system is completed when the image scanning and the image scanning is completed. After the printer starts to work, if the printing medium is fed into the printer, the system judges that the four pairs of opposite-type photoelectric sensors are not shielded, the front paper feeding wheel 106 is controlled to continue rotating, whether the printing medium exceeds the distance from the paper feeding wheel 106 to the four pairs of opposite-type photoelectric sensors 204 is judged, if yes, the front paper feeding wheel 106 is controlled to continue rotating, and if not, the scanning work is ended. When the system determines that the tail of the printing medium does not pass through the four-pair-type photoelectric sensors 204, it further determines whether the rotation radius of the front paper feeding wheel 106 is greater than 14 inches, if so, the tail of the printing medium is positioned at the position with the length of 14 inches, namely, the length of the printing medium is considered to be 14 inches, then the rear lower paper feeding wheel 105 and the front paper feeding wheel 106 continue to rotate until the tail of the printing medium is positioned at the rear side of the image acquisition tube in the first scanning tube 201, then the rear flow is continuously executed, if the rotation radius of the front paper feeding wheel 106 is less than 14 inches, then the rear flow is continuously executed, and the rotation radius is the total rotation angle/360 degrees.
The foregoing is merely illustrative of the principles of the invention, and it will be apparent to those skilled in the art that, in light of the teachings of this invention, it is desired to devise a method of implementing an integrated scanning function in an deposit and withdrawal printer without the inventive faculty, and without departing from the spirit and scope of the invention, it is intended to cover all such equivalent changes, modifications, substitutions and alterations herein set forth.