WO2017215613A1 - Ticket image acquisition method and ticket image acquisition apparatus and system - Google Patents

Ticket image acquisition method and ticket image acquisition apparatus and system Download PDF

Info

Publication number
WO2017215613A1
WO2017215613A1 PCT/CN2017/088294 CN2017088294W WO2017215613A1 WO 2017215613 A1 WO2017215613 A1 WO 2017215613A1 CN 2017088294 W CN2017088294 W CN 2017088294W WO 2017215613 A1 WO2017215613 A1 WO 2017215613A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
ticket
brightness
scan
light source
Prior art date
Application number
PCT/CN2017/088294
Other languages
French (fr)
Chinese (zh)
Inventor
于转龙
朱先刚
李洪明
刘茂林
姜晓军
Original Assignee
山东新北洋信息技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 山东新北洋信息技术股份有限公司 filed Critical 山东新北洋信息技术股份有限公司
Publication of WO2017215613A1 publication Critical patent/WO2017215613A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon
    • G07D7/202Testing patterns thereon using pattern matching
    • G07D7/205Matching spectral properties
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon

Definitions

  • the present disclosure relates to the field of ticket image acquisition technology, for example, to a ticket image acquisition method and a ticket image acquisition apparatus and system.
  • Financial instruments are notes issued by financial institutions or financed by financial institutions. Financial instruments in related technologies include notes, checks, promissory notes, etc.
  • financial instruments (hereinafter referred to as bills) usually include a variety of anti-counterfeiting features. Before a financial institution redeems a bill, it needs to identify the true meaning of the bill according to the anti-counterfeiting characteristics of the bill to be redeemed, as well as the bill number, capitalization amount, seal and other bill contents. Pseudo.
  • the financial institution mostly uses the ticket image acquiring device to acquire an image of the ticket, and authenticates the authenticity of the ticket based on the image of the ticket.
  • the related art discloses a bill counterfeiting system including a bill image acquiring device and a control device, the bill image acquiring device acquiring an optical image of the bill to be authenticated, and transmitting an optical image of the bill to be authenticated to the control device, The control device analyzes the document image, extracts the security feature of the ticket and identifies the ticket content, and authenticates the authenticity of the ticket according to the security feature of the ticket and the ticket content.
  • the bill to be identified may include multiple types, and the thickness and color of different types of bills are different, for different types of bills, at least one of the light transmittance and the light reflectivity of the bill may differ.
  • the technical bill image obtaining device acquires optical images of different types of bills, the brightness of images of different types of bills may be different.
  • the brightness of the bill image is too high or too low, the bill image may not be satisfied or recognized.
  • a false request that is, the security feature of the ticket cannot be extracted from the ticket image or the ticket content is identified, or the authenticity of the ticket cannot be authenticated based on the ticket image.
  • the present disclosure provides a ticket image acquisition method and a ticket image acquisition apparatus and system, which solve the problem that the acquired ticket image cannot meet the requirements when the ticket image acquisition device of the related art acquires images of different types of tickets. The problem.
  • the embodiment provides a method for acquiring a ticket image, the method comprising: scanning a ticket to obtain a first image of the ticket; determining whether a brightness of the first image meets a preset requirement; If the content is not satisfied, the scan parameter related to the brightness of the image is adjusted according to the preset requirement and the brightness of the first image, so that the image scanned by using the adjusted scan parameter satisfies the preset requirement; And rescanning the ticket using the adjusted scan parameters to obtain a second image of the ticket.
  • scanning the ticket to obtain a first image of the ticket comprising: scanning the ticket according to a set scan mode to obtain a first image of the ticket; wherein the set scan The mode includes controlling at least one of setting a light source to illuminate the ticket and controlling a setting area for scanning the ticket, the set light source comprising a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, Any one of a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, the set area of the ticket including an entire area of the ticket or a partial area of the ticket.
  • adjusting the scan parameter related to the brightness of the image according to the brightness of the first image comprising: comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, according to the The scan parameter adjustment value adjusts the scan parameters associated with the brightness of the image.
  • adjusting the scan parameter related to the brightness of the image according to the scan parameter adjustment value includes: adjusting a light-emitting time or a value of the light current of the light source corresponding to the first image according to the scan parameter adjustment value.
  • comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value including:
  • the scan parameter adjustment value is calculated according to a proportional relationship between a brightness of the first image and the preset standard brightness or a difference between a brightness of the first image and the preset standard brightness.
  • comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value including:
  • Adjusting the scan parameter by querying a pre-stored comparison table according to a ratio of a brightness of the first image to a preset standard brightness or a difference between a brightness of the first image and the preset standard brightness value.
  • the preset requirement includes that a difference between a brightness of the image and a preset standard brightness is within a preset range, or the preset requirement includes that the brightness of the image is within a preset value range.
  • rescanning the ticket by using the adjusted scan parameter to obtain a second image of the ticket includes: controlling the ticket to fall back to a set position, and using the adjusted scan parameter pair The ticket is scanned to obtain a second image of the ticket.
  • the embodiment provides a ticket image obtaining apparatus, including:
  • a first obtaining module configured to scan the ticket to obtain a first image of the ticket
  • the image determining module is configured to determine whether the brightness of the first image meets a preset requirement
  • the parameter adjustment module is configured to: if the image determining module determines that the brightness of the first image does not meet the preset requirement, adjust the scan related to the brightness of the image according to the preset requirement and the brightness of the first image a parameter such that an image scanned using the adjusted scan parameter satisfies the preset requirement;
  • the second obtaining module is configured to re-scan the ticket using the adjusted scanning parameter to obtain a second image of the ticket.
  • the first acquiring module includes: a scanning unit configured to scan the ticket according to the set scanning mode to obtain a first image of the ticket; wherein the scanning unit includes a setting subunit, The setting subunit is configured to control at least one of setting a light source to illuminate the ticket and control a setting area for scanning the ticket, the set light source comprising a reflected image white light source, a reflected image infrared light source, and a reflection Any one of an image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, the set region of the ticket including an entire area of the ticket or a partial area of the ticket.
  • the parameter adjustment module includes: a brightness comparison unit configured to compare and analyze the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjust the value according to the scan parameter adjustment value. Scan parameters related to the brightness of the image.
  • the brightness comparison unit includes an adjustment subunit configured to adjust a value of a light emission time or a photocurrent of the light source corresponding to the first image according to the scan parameter adjustment value.
  • the brightness comparison unit is configured to calculate a ratio according to a ratio of a brightness of the first image to the preset standard brightness or a difference between a brightness of the first image and the preset standard brightness.
  • the scan parameter adjustment value is described.
  • the brightness comparison unit is configured to perform a query according to a ratio of a brightness of the first image to a preset standard brightness or a difference between a brightness of the first image and the preset standard brightness.
  • the stored comparison table obtains the scan parameter adjustment value.
  • the preset requirement includes that a difference between a brightness of the image and a preset standard brightness is within a preset range, or the preset requirement includes that the brightness of the image is within a preset value range.
  • the second obtaining module includes: a back-off scanning unit, configured to control the ticket to fall back to the set position, and scan the ticket by using the adjusted scan parameter to obtain the ticket Second image.
  • a back-off scanning unit configured to control the ticket to fall back to the set position, and scan the ticket by using the adjusted scan parameter to obtain the ticket Second image.
  • the embodiment provides a bill image acquiring system, where the system includes a bill image acquiring device and a host, and the bill image acquiring device is communicably connected with the host to perform data interaction;
  • the device scans the ticket to obtain a first image of the ticket, and uploads the first image to the host; the host determines whether the brightness of the first image meets a requirement; if the host determines the first If the brightness of an image does not meet the requirement, the scan parameter adjustment value is calculated according to the brightness of the first image, and the scan parameter adjustment value is sent to the ticket image acquisition device;
  • the ticket image acquisition device is configured according to the scan parameter Adjusting a value to adjust a scan parameter related to brightness of the image such that an image scanned using the adjusted scan parameter satisfies a requirement; and the ticket image acquisition device rescans the ticket using the adjusted scan parameter to obtain The second image of the ticket uploads the second image to the host.
  • the embodiment provides a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the bill image acquiring method and the bill image acquiring apparatus and system of the embodiment after acquiring the first image of the ticket, determining whether the brightness of the first image satisfies the requirement, and if the brightness of the first image does not meet the requirement, according to the first The brightness of the image is adjusted by the scan parameters associated with the brightness of the image, and the ticket is rescanned to obtain a second image of the ticket.
  • the brightness of the image may be adjusted according to the brightness of the first image.
  • FIG. 1 is a block diagram showing the structure of a ticket image acquiring apparatus according to the present embodiment
  • FIG. 2 is a schematic structural diagram of a ticket image acquiring apparatus according to the embodiment.
  • FIG. 3 is a block diagram showing the structure of a ticket image acquiring system according to the present embodiment.
  • FIG. 4 is a schematic flow chart of a ticket image acquiring method according to the embodiment.
  • FIG. 5 is a schematic diagram of functional module division of the ticket image acquiring apparatus according to the embodiment.
  • Fig. 6 is a flow chart showing the workflow of the ticket image obtaining system according to the embodiment.
  • the present invention provides a ticket image acquisition method and a ticket image acquisition device and system, in view of the problem that the acquired ticket image cannot satisfy the requirement when the image of the different types of the ticket is acquired. Description will be made in conjunction with the embodiments.
  • the ticket image acquiring apparatus 1 includes a controller 11, a communication device 12, a conveying device 13, an image collector 14, a memory 15, and position detection.
  • Sensor 16 is a controller 11, a communication device 12, a conveying device 13, an image collector 14, a memory 15, and position detection.
  • Sensor 16 is a controller 11, a communication device 12, a conveying device 13, an image collector 14, a memory 15, and position detection.
  • Sensor 16 is a controller 11, a communication device 12, a conveying device 13, an image collector 14, a memory 15, and position detection.
  • the controller 11 is arranged to control other modules to perform work, for example, the controller 11 controls the communication device 12 to perform data interaction between the ticket image acquiring device 1 and the host, wherein the host is connected to the ticket image acquiring device 1, and the controller 11 controls image capturing.
  • the device 14 cooperates with the transport device 13 to scan the ticket, wherein the scan ticket includes the transport device 13 to drive the ticket to move in the transport path of the ticket image acquiring device 1, and the image collector 14 collects an image of the ticket each time the ticket moves by one dot row .
  • the communication device 12 is arranged to perform data interaction between the ticket image acquisition device 1 and the host, wherein the host is connected to the ticket image acquisition device 1, for example, the communication device 12 receives a control command for scanning a ticket sent by the host, and the communication device 12 will scan The obtained ticket image is uploaded to the host or the like.
  • the conveying device 13 is arranged to drive the movement of the bill in the conveying path of the bill image acquiring device 1, and the conveying device 13 includes a motor driver 131, a conveying motor 132, and a conveying roller assembly 133.
  • Motor driver 131 The current required for the rotation of the transmission shaft of the conveying motor 132 is output according to the control signal output from the controller 11, and the transmission shaft of the conveying motor 132 is drivingly coupled to the conveying roller assembly 133.
  • the transmission shaft of the conveying motor 132 rotates, the conveying roller assembly The 133 then rotates, thereby driving the ticket to move in the transport path.
  • the image collector 14 is arranged to collect a ticket image, wherein the image collector 14 includes an image sensor 141 and an AD (Analog-to-Digital) converter 142.
  • AD Analog-to-Digital
  • the image sensor 141 is arranged to collect an optical image of the ticket and convert the acquired optical signal into an analog electrical signal, ie an analog image signal.
  • the image sensor 141 may be a charge-coupled image sensor (CCD) or a contact image sensor (CIS). In this embodiment, the image sensor 141 is a CIS.
  • the image sensor 141 includes an illuminator 1411 configured to emit light illuminating the ticket, and a photosensitive array 1411 that is a line light source extending in a main scanning direction (ie, a direction perpendicular to the bill transporting direction),
  • the line source may be a line source composed of a plurality of point light sources arranged at intervals, or may be a line source converted by a point source through a light guide strip;
  • the photosensitive array 1412 is formed by a plurality of photoreceptors, and the plurality of photoreceptors are set to receive
  • the light reflected by the bill is an optical signal, and the optical signal is converted into an analog image signal, thereby realizing the reflected image of the collected bill, and the plurality of photoreceptors are arranged along the main scanning direction, wherein each photoreceptor and the bill image are in a row One pixel in the pixel corresponds to.
  • the illuminator 1411 includes a plurality of sub illuminators, such as a white illuminator 1411a, an infrared illuminator 1411b, and an ultraviolet illuminator 1411c, wherein the white illuminator 1411a is configured to emit white light that is illuminated on the ticket, and the infrared illuminating The device 1411b is for emitting infrared light irradiated on the ticket, and the ultraviolet light illuminator 1411c is for emitting ultraviolet light irradiated on the ticket.
  • the white light illuminator 1411a emits white light
  • the photosensitive array 1412 receives the white light reflected by the ticket to collect the ticket.
  • the white light reflects the image.
  • the photosensitive array 1412 receives the infrared light reflected by the ticket to collect the infrared light reflection image of the ticket.
  • the ultraviolet illuminator 1411c emits ultraviolet light
  • the photosensitive array 1412 receives The ultraviolet light reflected by the bill reflects the ultraviolet light of the ticket. Since the photo-sensing array 1412 can receive the light reflected by the bill to collect the corresponding reflected image of the bill when the plurality of sub-illuminators respectively emit the corresponding light-illuminating bills, the white light illuminator 1411a can also be referred to as a reflected image white light source, infrared.
  • the light illuminator 1411b may also be referred to as a reflected image infrared light source
  • the ultraviolet illuminator 1411c may also be referred to as a reflected image ultraviolet light source.
  • each sub-illuminator of the illuminator 1411 is electrically connected to the controller 11 through a DA (Digital-to-Analog) converter (not shown), respectively, when the controller 11
  • DA Digital-to-Analog
  • the input voltage of the sub-illuminator changes accordingly, thereby changing the photocurrent of the sub-illuminator, that is, the sub-lighting The brightness of the device changes.
  • the AD converter 142 is provided to perform AD conversion on the analog image signal output from the image sensor 141 to generate digital image data.
  • the memory 15 is configured to store the control program of the ticket image acquiring device 1 and the data and variables generated during the running of the control program.
  • the memory 15 is configured to store the first preset time, the second preset time, and the third preset time. And the digital image data and the like outputted to store the output of the AD converter 142, wherein the first preset time is a light-emitting time of the white light illuminator 1411a when the white light reflection image of the one-line pixel of the ticket is collected; the second preset time is the collection time.
  • the infrared light illuminator 1411b emits light when the infrared light of the pixel of the ticket is reflected by the infrared light illuminator 1411b; and the third preset time is the illuminating time of the ultraviolet illuminator 1411c when the ultraviolet light is reflected by the pixel of the pixel of the ticket.
  • the position detecting sensor 16 is arranged to detect the position of the ticket in the conveying path, and the position detecting sensor 16 includes a first sensor 161 and a second sensor 162.
  • the first sensor 161 and the second sensor 162 may be photoelectric reflection sensors or photoelectric transmission sensors, each of which includes an illuminator and a receiver (not shown), and the receiver receives the light signal emitted by the illuminator and the light The signal is converted into an electrical signal.
  • the receiver When the sensor is in the covered state, the receiver outputs a first detection signal, and when the sensor is in an uncovered state, the receiver outputs a second detection signal.
  • the first sensor 161 and the second sensor 162 are located at different positions in the delivery channel, and the state change of each sensor is used to indicate that the ticket arrives or leaves the detection position of the sensor, and when the sensor changes from the uncovered state to the covered state, it indicates The ticket arrives at the detection position of the sensor, indicating that the ticket leaves the detection position of the sensor when the sensor changes from the covered state to the uncovered state.
  • the receipt image acquiring device 1 may further include a transmission image light source 17 disposed opposite to the image sensor 141 and configured to emit transmitted light irradiated on the ticket to cooperate with the photosensitive array 1412 of the image sensor 141.
  • a transmission image of the ticket is acquired, wherein the photosensitive array 1412 of the image sensor 141 receives the optical signal of the transmitted ticket transmitted by the transmission image source 17 and converts the optical signal into an analog image signal.
  • the transmission image light source 17 includes a plurality of sub-transmission image light sources, such as a transmission image white light source 17a, a transmission image infrared light source 17b, and a transmission image ultraviolet light source 17c, wherein the transmission image white light source 17a is used to emit illumination on the ticket White light, transmission image infrared light source 17b for emission illumination Infrared light on the ticket, the transmission image ultraviolet light source 17c is used to emit ultraviolet light that is incident on the ticket.
  • a transmission image white light source 17a is used to emit illumination on the ticket White light
  • transmission image infrared light source 17b for emission illumination Infrared light on the ticket
  • the transmission image ultraviolet light source 17c is used to emit ultraviolet light that is incident on the ticket.
  • the photosensitive array 1412 When the transmission image white light source 17a emits white light, the photosensitive array 1412 receives the white light transmitted through the ticket to collect the white light transmission image of the ticket, and when the transmission image infrared light source 17b emits the infrared light, the photosensitive array 1412 receives the infrared light transmitted through the ticket. The infrared light transmission image of the ticket is collected.
  • the transmission image ultraviolet light source 17c emits ultraviolet light
  • the photosensitive array 1412 receives the ultraviolet light transmitted through the ticket to collect the ultraviolet light transmission image of the ticket.
  • each of the sub-transmission image sources of the transmission image source 17 is electrically connected to the controller 11 through a DA converter (not shown), respectively, when the controller 11 outputs to the DA connected to the set sub-transmission image source.
  • the control signal of the converter changes, the input voltage of the sub-transmission image source changes accordingly, thereby changing the photocurrent of the sub-transmission image source, that is, changing the luminance of the sub-transmission image source.
  • the memory 15 is further configured to store a fourth preset time, a fifth preset time, and a sixth preset time, wherein the fourth preset time is a transmission image when the white light transmission image of the one-line pixel of the ticket is collected.
  • the illuminating time of the white light source 17a; the fifth preset time is the illuminating time of the infrared illuminating light source 17b when the infrared light transmitting image of one point of the pixel of the ticket is collected; the sixth preset time is a point of pixel of the collecting ticket
  • the ultraviolet light image transmits the light-emitting time of the image ultraviolet light source 17c.
  • FIG. 2 is a schematic structural view of the receipt image acquiring apparatus according to the present embodiment.
  • the inlet 21 is located at the first end of the conveying passage, and the direction indicated by the arrow 23 is the advance direction of the bill, which is opposite to the direction indicated by the arrow 23.
  • the direction is the bill retreat direction, and the first sensor 161, the second sensor 162, and the image sensor 141 are sequentially arranged in the transport path along the advancement direction of the bill.
  • the conveying roller assembly 133 includes a first conveying roller assembly 1331, a second conveying roller assembly 1332, a third conveying roller assembly 1333, and a fourth conveying roller assembly 1334 which are sequentially arranged in the conveying path in the advancement direction of the bill, wherein each of the conveying rollers
  • the roller assembly includes oppositely disposed driving rollers and driven rollers.
  • Each of the driving rollers is drivingly connected to the conveying motor 132.
  • the transmission shaft of the conveying motor 132 rotates, the driving rollers of each group of conveying roller assemblies rotate accordingly, and the driving roller rotates.
  • the opposite driven roller rotates to drive the ticket to move in the conveying path.
  • the first sensor 161 is located at the inlet 21 of the delivery channel, is arranged to detect whether a ticket is fed into the inlet 21 of the delivery channel, the second sensor 162 is located upstream of the image sensor 141 in the advancement direction of the ticket, and the detection of the second sensor 162
  • the distance between the position and the scanning position of the image sensor 141 is the first distance L1, wherein the scanning position of the image sensor 141 is the position of the photosensitive array 1412 of the image sensor 141 in the conveying path.
  • the bill image obtaining device further includes an outlet 22, and the outlet 22 is located at the second end of the conveying passage, after the scanning of the bill ends The ticket can be sent out of the delivery channel via the outlet 22.
  • the ticket image acquiring system includes a host 2 and a ticket image acquiring device 1 shown in FIG. 1.
  • the host 2 can be a computer, a mobile phone, or a tablet.
  • An electronic device such as a tablet (portable android device), the ticket image acquiring device 1 and the host 2 can be connected and communicated through a wired network, a wireless network, a Bluetooth or a data line, for example, the ticket image acquiring device 1 and the host 2 via USB (Universal Serial Bus)
  • USB Universal Serial Bus
  • the ticket image acquiring device 1 is set to acquire a ticket image and upload the ticket image to the host 2.
  • the host 2 is arranged to send a control instruction for scanning the ticket to the receipt image acquiring device 1, and receives the receipt image sent by the receipt image acquiring device 1, analyzes the document image, extracts the security feature of the ticket and identifies the ticket content, and according to the ticket The security feature and the ticket content authenticate the authenticity of the ticket.
  • the controller 11 of the bill image acquiring device 1 analyzes the bill image, obtains the brightness of the bill image, and determines the bill image according to the brightness of the bill image. Whether the requirement (ie, the preset requirement) is satisfied, wherein the meeting requirement may be satisfying the requirement of authenticity or satisfying the requirement of archiving, and when determining that the document image cannot satisfy the requirement, according to the brightness of the obtained bill image and the preset standard of the bill image
  • the brightness is used to calculate the adjustment value of the scan parameter, and the scan parameter is adjusted, and the control device 13 and the image collector 14 re-scan the ticket, and the controller 11 uploads the ticket image obtained after re-scanning the ticket to the host 2, wherein the scan parameter includes The light-emitting time of the light source, the light current of the light source, and the like are set.
  • the bill image acquiring device 1 uploads the bill image to the host 2, and the host 2 analyzes the received bill image to obtain the brightness of the bill image, and according to the bill image The brightness determination ticket image satisfies the requirement.
  • the adjustment value of the scan parameter is calculated according to the brightness of the acquired ticket image and the preset standard brightness of the ticket image, and the scan parameter adjustment value is sent to the ticket image.
  • the controller 11 of the image acquiring device 1 determines that the communication device 22 receives the scan parameter adjustment value and the control command to rescan the ticket, and then adjusts the scan parameter. And controlling the conveying device 13 and the image collector 14 to re-scan the ticket, and uploading the ticket image obtained after re-scanning the ticket to the host 2.
  • FIG. 4 is a flow chart showing a method for acquiring a bill image according to the embodiment, and an execution subject of the method It may be the ticket image acquiring device shown in FIG. 1 or FIG. 2, and as shown in FIG. 4, the method includes S410 to S440.
  • the ticket is scanned to obtain a first image of the ticket.
  • the scan start position of the ticket is transported to the scan position of the image sensor, and the ticket is scanned by the image sensor to obtain the first image of the ticket.
  • the scanning position of the image sensor is the position of the photosensitive array of the image sensor in the conveying channel
  • the scanning starting position of the ticket is the position of the pixel point of the second distance L2 from the leading edge of the ticket, and the leading edge of the ticket is the ticket
  • the ticket is on the front side in the forward direction when moving.
  • the controller 11 detects the state of the first sensor 161, and when detecting that the first sensor 161 is changed from the uncovered state to the covered state, determines that the leading edge of the ticket is inserted into the transport.
  • the inlet 21 of the passage the controller 11 controls the conveying device 13 to drive the bill to move in the forward direction; or, when the communication device 12 receives the control command of the scanned bill sent by the host, the controller 11 controls the conveying device 13 to drive the bill to move in the forward direction .
  • the controller 11 detects the state of the second sensor 162, and when it is detected that the second sensor 162 changes from the uncovered state to the covered state, determines that the leading edge of the ticket reaches the detected position of the second sensor 162. At this time, the controller 11 continues to control the conveying device 13 to drive the movement of the ticket in the forward direction, and starts recording the distance of the movement of the ticket. When the recorded movement distance of the ticket is equal to the third distance L3, it is determined that the scanning start position of the ticket reaches the image sensor 141.
  • the controller 11 starts controlling the image collector 14 to cooperate with the transport device 13 to scan the ticket, thereby acquiring the first image of the ticket.
  • Scanning the ticket includes the transport device 13 driving the ticket to move in the transport path of the ticket image acquiring device 1, and the image collector 14 captures an image of a row of pixels each time the ticket moves a little.
  • the controller 11 controls to set the light source preset time, and controls the photosensitive array 1412 of the image sensor 141 to collect an analog image signal of a row of pixels, and controls the AD converter 142 to control the image.
  • the analog image signal output from the sensor 141 is converted into a digital image signal, thereby acquiring digital image data of a point of the pixel of the ticket.
  • the length of one line is related to the longitudinal (ie, moving direction of the ticket) resolution of the ticket image acquiring device, and when the vertical resolution is 200 dpi (dot per inch), one line The length is equal to 0.12 mm.
  • the controller 11 controls the image collector 14 and the transport device 13 to scan the ticket.
  • the recording of the distance of the movement of the ticket is started.
  • the recorded movement distance of the ticket is equal to the fourth distance L4
  • the ticket scanning is completed, that is, the first image of the ticket is acquired, wherein the fourth distance L4 is the scanning start of the ticket.
  • the distance between the position and the scanning end position of the ticket, the scanning end position of the ticket is the position of the pixel point of the fifth distance L5 from the trailing edge of the ticket, and the trailing edge of the ticket is the ticket when the ticket moves Located on the back side in the forward direction.
  • the ticket scanning device can scan the reflected image of the ticket or the transmission image of the ticket according to any one of the internally arranged light sources, and can also scan all or part of the area of the ticket to obtain all or part of the image of the ticket, this step
  • the ticket may be scanned according to the set scan mode to obtain a first image of the ticket, wherein the set scan mode includes at least one of controlling a set light source illumination illumination ticket and a control scan ticket setting area.
  • the other item can be either the default setting or the original setting; or the two items can be selected separately.
  • the set light source comprises any one of a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, and the set area of the ticket includes a bill. All areas of the area or parts of the ticket.
  • the reflected image white light source can be a white light illuminator 1411a as shown in FIG. 1
  • the reflected image infrared light source can be an infrared illuminator 1411b as shown in FIG. 1
  • the reflected image ultraviolet light source can be as shown in FIG. 1 .
  • Ultraviolet illuminator 1411c Ultraviolet illuminator 1411c.
  • the controller 11 controls the set light source to emit a preset time each time the ticket moves a little, wherein the set light source may be any one of the image sensors 141.
  • the sub-illuminator such as a white light illuminator, an infrared illuminator or an ultraviolet illuminator, may also be any sub-transmission image source of the transmission image source 17, such as a transmission image white light source, a transmission image infrared light source or a transmission image ultraviolet light. light source.
  • the image sensor 141 collects a reflection image of the ticket corresponding to the corresponding sub-illuminator, and when the set light source is any one of the sub-transmission image sources of the transmission image source 17, The image sensor 141 collects a transmission image of the ticket corresponding to the corresponding sub-transmitted image light source.
  • a first image is obtained by scanning.
  • the white light illuminator 1411a is controlled to illuminate the ticket
  • the scanned first image is obtained.
  • the white light reflection image of the ticket when the transmission image white light source 17a is controlled to illuminate the ticket, the scanned first image is a white light transmission image of the ticket.
  • the plurality of set light sources may be controlled to rotate the illuminated illumination ticket according to the set sequence, and the plurality of first images are scanned, and specifically, when the ticket moves a little line, the controller 11 sequentially controls the plurality of settings.
  • the fixed light source alternately emits light for a preset time, and controls the photosensitive array 1412 of the image sensor 141 to collect an analog image signal of a line of pixels when each light source emits light, and controls the AD converter 142 to convert the analog image signal output by the image sensor 141 into Digital image signal.
  • the image sensor 141 completes the acquisition of the plurality of first images, wherein each of the first images corresponds to a light source, such as
  • the white light illuminator 1411a illuminates the ticket
  • the first image acquired is a white light reflection image of the ticket
  • the transmission image white light source 17a illuminates the ticket
  • the collected first image is a white light transmission image of the ticket.
  • the setting area of the ticket may be the entire area of the ticket, or may be a partial area of the ticket.
  • the first image may be an image of the entire area of the ticket, or may be an image of a partial area of the ticket.
  • the values of the second distance L2 and the fifth distance L5 are both 0, that is, the scanning start position of the ticket is the leading edge of the ticket, and the scanning termination position of the ticket is the trailing edge of the ticket.
  • the acquired first image is an image of the entire area of the ticket; and, in another alternative embodiment, at least one of the second distance L2 and the fifth distance L5. The value is not 0.
  • the acquired first image is an image of a partial area of the ticket.
  • the first image may be an image of a partial region of the ticket.
  • a preset brightness requirement is set, and it is determined whether the brightness of the first image satisfies the preset brightness requirement.
  • the preset brightness requirement includes a difference between the image brightness and the preset standard brightness of the ticket image within a preset range, for example, the preset range may be 20% of the preset standard brightness of the ticket image, for example,
  • the preset range may be 20% of the preset standard brightness of the ticket image, for example.
  • the preset brightness requirement may further include: the image brightness is within a preset range, and the preset range may be a preset value range. For example, after acquiring the first image, calculating the brightness of the first image, when the brightness of the first image is When the preset value range is within, it is determined that the brightness of the first image satisfies the requirement, when the first image is bright When the degree is not within the preset numerical range, it is determined that the brightness of the first image does not satisfy the requirement.
  • the average value of the brightness of all the pixels in the first image is calculated, and the average value of the brightness of all the pixels is used as the brightness value of the first image.
  • the first calculation is performed.
  • the variance of the luminance of all the pixels in the image, and the variance of the luminance of all the pixels is taken as the luminance value of the first image.
  • the preset standard brightness of the ticket image may be calculated by the same calculation method as calculating the brightness value of the first image, such as calculating the mean value or calculating the variance, and calculating the ticket image as a template.
  • the ticket image acquiring means scans the image of the same partial area of the ticket as the template, and calculates it as a template according to the same calculation method as calculating the brightness value of the first image.
  • the brightness value of the image of the same partial area of the ticket, and the brightness value is used as the preset standard brightness of the ticket image.
  • the ticket image acquiring means scans the image of the entire area of the ticket as the template, and calculates the same as the calculation method of the brightness value of the first image.
  • the brightness value of the image of the entire area of the ticket, and the brightness value is used as the preset standard brightness of the ticket image.
  • the method may include: calculating, for any one of the first images, a brightness value thereof, and determining whether the brightness value meets the preset brightness requirement.
  • the bill image obtaining means pre-stores a preset standard brightness corresponding to each of the first images in accordance with the set light source of each of the first images and the corresponding ticket area.
  • the bill image obtaining device calculates the brightness of each of the first images, and determines whether the difference between the brightness of each of the first images and the preset standard brightness corresponding to the first image is within a preset difference range, or each of the first Whether the ratio of the difference between the brightness of the image and the preset standard brightness corresponding to the first image and the preset standard brightness is less than a preset threshold, or whether the brightness of each first image is within a preset value range, when When a first image does not satisfy the preset brightness requirement, it is determined that the brightness of the first image does not meet the requirement.
  • the scan parameter related to the brightness of the image is adjusted according to the preset requirement and the brightness of the first image, so that the image scanned by using the adjusted scan parameter is satisfied. Preset requirements.
  • the following method is used to adjust the scanning parameters related to the brightness of the image: comparing the brightness of the first image with the preset standard brightness, obtaining the scanning parameter adjustment value, and adjusting the scanning parameter related to the image brightness according to the scanning parameter adjustment value,
  • the scan parameter related to the brightness of the image may be the light-emitting time or the value of the light current of the light source corresponding to the first image, and correspondingly, the value is adjusted according to the scan parameter.
  • Adjusting the scan parameter related to the brightness of the image may be: adjusting the light-emitting time or the value of the light current of the light source corresponding to the first image according to the scan parameter adjustment value.
  • the brightness of the first image is compared with the preset standard brightness to obtain a scan parameter adjustment value, including: according to a ratio of the brightness of the first image to the preset standard brightness or the The difference between the brightness of the first image and the preset standard brightness is calculated to obtain the scan parameter adjustment value.
  • the brightness of the first image is compared with the preset standard brightness to obtain a scan parameter adjustment value
  • the method further includes: determining, according to a brightness relationship between the brightness of the first image and the preset standard brightness Or the difference between the brightness of the first image and the preset standard brightness, and the scan parameter adjustment value is obtained by querying a pre-stored comparison table.
  • the scan parameter adjustment value k2 corresponding to the difference is searched according to the difference value A2-A3 in the pre-stored difference table.
  • the light-emitting time of the set light source corresponding to the first image is adjusted to be k2 times the current value, or the value of the light current of the set light source corresponding to the first image is adjusted to be k2 times the current value.
  • the controller 11 calculates the brightness of the first image in step S420, and acquires a preset standard brightness of the pre-stored ticket image, when the controller 11 determines the first image through step S420.
  • the scanning parameter adjustment value is calculated according to the brightness of the first image and the preset standard brightness of the ticket image, and the lighting time or the photocurrent of the light source corresponding to the first image is adjusted according to the scanning parameter adjustment value.
  • the controller 11 modifies the value of the first preset time stored in the memory 15 to the current value.
  • the controller 11 adjusts the control signal output to the DA converter connected to the white light emitter 1411a to adjust the value of the photocurrent of the white light emitter 1411a to k1 times the current value.
  • the brightness of the first image that does not meet the preset brightness requirement is compared with the preset standard brightness corresponding to the first image, and the scan parameter adjustment is obtained. And adjusting a value of the light-emitting time or the photocurrent of the light source corresponding to the first image that does not satisfy the preset brightness requirement according to the scan parameter adjustment value.
  • the The illumination time of the set light source corresponding to the first image that satisfies the preset brightness requirement is adjusted to be k times of the current value, or the value of the photocurrent of the set light source is adjusted to be k times of the current value.
  • the controller 11 calculates the brightness of each first image in step S420, and acquires a preset standard brightness corresponding to each first image stored in advance, when the controller 11 passes Step S420:
  • the scan parameter adjustment is calculated according to the brightness of the first image that does not satisfy the preset brightness requirement and the preset standard brightness corresponding to the first image.
  • the controller 11 modifies the second preset time stored in the memory 15 to k1 times the current value, or the controller 11 adjusts the output to the infrared
  • the control signal of the DA converter connected to the photo illuminator 1411b adjusts the value of the photocurrent of the infrared illuminator 1411b to k1 times the current value.
  • the light-emitting time or the value of the light current of the light source corresponding to the first image is adjusted according to the comparison result, and the preset standard brightness of the ticket image is satisfied. It is required that the brightness of the resulting image also satisfies the requirements when the ticket is rescanned using the adjusted scan parameters.
  • Step S440 re-scanning the ticket using the adjusted scan parameters to obtain a second image of the ticket.
  • the process of this step is: controlling the ticket to fall back to the set position, and scanning the ticket using the adjusted scanning parameter to obtain a second image of the ticket, which can be understood. Since the second image is scanned using the adjusted scan parameters, the light source corresponding to the second image is the same as the light source corresponding to the first image.
  • the set position may be a scan position of the image sensor 141, and the control ticket may be retracted to the set position by retracting the scan start position of the ticket to the scan position of the image sensor 141.
  • the controller 11 controls the transport device 13 to drive the ticket to move in the backward direction.
  • the controller 11 detects the state of the second sensor 162, and when the second is detected When the sensor 162 changes from the covered state to the uncovered state, it is determined that the leading edge of the ticket reaches the detection position of the second sensor 162.
  • the controller 11 controls the conveying device 13 to drive the ticket to move in the forward direction, and starts recording the movement of the ticket.
  • Distance when the recorded ticket moves distance, etc.
  • the controller 11 controls the image collector 14 to cooperate with the transport device 13 to start scanning the ticket, thereby acquiring the second ticket. image.
  • the The brightness of the first image required by the preset brightness adjusts the corresponding scan parameter, and the ticket is re-scanned using the adjusted scan parameter to obtain the second image of the ticket.
  • the adjusted scan parameters corresponding to each of the first images are used to re-scan the ticket respectively to obtain a plurality of second images, wherein one second The image corresponds to a first image whose brightness does not meet the requirement.
  • the adjusted scan parameter corresponding to the first image is used in this step.
  • the ticket is rescanned to obtain a second image corresponding to the first image whose brightness does not satisfy the requirement.
  • the plurality of first images acquired after scanning the ticket in step S410 are respectively a white light reflection image, an infrared light reflection image, an ultraviolet light reflection image, a white light transmission image, an infrared light transmission image, an ultraviolet light transmission image, and the like.
  • step S420 if it is determined in step S420 that the brightness of the white light reflection image does not satisfy the preset brightness requirement, in this step, the difference between the brightness of the white light reflection image and the preset standard brightness corresponding to the white light reflection image is calculated and reflected by the white light.
  • the scan parameter adjustment value corresponding to the image is adjusted, and the scan parameter corresponding to the white light reflection image is adjusted according to the calculated scan parameter adjustment value.
  • the ticket can also be sent out of the delivery channel by the outlet of the conveying channel, and the user is prompted to put the ticket into the entrance of the conveying channel again.
  • the ticket is detected to enter the entrance of the conveying channel, the ticket is scanned again to obtain the second. image.
  • the control conveying device 13 drives the ticket to continue moving in the forward direction until the ticket is sent out of the conveying channel by the outlet of the conveying channel.
  • the bill image obtaining device sends a prompt message to the user to re-enter the bill.
  • the communication device 12 returns a “return ticket to the transport channel” to the host.
  • the control delivery device 13 and the image capture device 14 cooperate to rescan the ticket to obtain a second image.
  • the scanning parameter related to the brightness of the image is adjusted according to the brightness of the first image, and the ticket is re-scanned to obtain the second image of the ticket.
  • the scanning parameter related to the image brightness may be adjusted according to the brightness of the first image, The image obtained by scanning the scanning parameter satisfies the requirement, so that the brightness of the second image of the ticket acquired after the re-scanning of the ticket satisfies the requirement, thereby effectively solving the problem that the ticket image acquiring device of the related art acquires an image of a different type of ticket.
  • the image of the ticket arrived does not meet the required problem.
  • FIG. 5 is a schematic diagram of functional module partitioning of the bill image acquisition device according to the embodiment.
  • the bill image acquisition device 5 includes:
  • the first obtaining module 51 is configured to scan the ticket to obtain a first image of the ticket
  • the image determining module 52 is configured to determine whether the brightness of the first image meets the requirement
  • the parameter adjustment module 53 is configured to: if the image determination module 52 determines that the brightness of the first image does not meet the requirement, adjust the scan parameter related to the image brightness according to the brightness of the first image, so as to scan the image obtained by using the adjusted scan parameter. fulfil requirements;
  • the second obtaining module 54 is configured to re-scan the ticket using the adjusted scanning parameter to obtain a second image of the ticket.
  • the obtaining module 51 includes: a scanning unit configured to scan the ticket according to the set scan mode to obtain a first image of the ticket; wherein the scanning unit includes a setting subunit, and the setting subunit is configured to control the setting light source to illuminate the bill and And or controlling a setting area of the scanning ticket, the set light source comprises a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source.
  • the set area of the ticket includes the entire area of the ticket or a partial area of the ticket.
  • the parameter adjustment module 53 includes: a brightness comparison unit configured to compare and analyze the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjust a scan parameter related to the image brightness according to the scan parameter adjustment value.
  • the scan parameter related to image brightness may correspond to the first image
  • the brightness comparison unit includes an adjustment subunit configured to adjust the illumination time or the value of the photocurrent of the light source corresponding to the first image according to the scan parameter adjustment value.
  • the second acquiring module 54 includes: a back-off scanning unit configured to control the ticket to be retracted to the set position, and the ticket is scanned using the adjusted scan parameter. , get the second image of the ticket.
  • the ticket image acquiring apparatus of this embodiment After the first image of the ticket is acquired, it is determined whether the brightness of the first image satisfies the requirement, and if the brightness of the first image does not satisfy the requirement, the brightness adjustment and the image brightness according to the first image are performed. Related scan parameters and rescan the ticket to obtain a second image of the ticket.
  • the scanning parameter related to the image brightness may be adjusted according to the brightness of the first image, The image obtained by scanning the scanning parameter satisfies the requirement, so that the brightness of the second image of the ticket acquired after the re-scanning of the ticket satisfies the requirement, thereby effectively solving the problem that the ticket image acquiring device of the related art acquires an image of a different type of ticket.
  • the image of the ticket arrived does not meet the required problem.
  • the embodiment further provides a ticket image acquisition system, which includes a ticket image acquisition device and a host, and the ticket image acquisition device performs data interaction with the host; the ticket image acquisition device may be the ticket image acquisition device in FIG. 1 or 2. .
  • FIG. 6 is a schematic diagram showing the workflow of the ticket image acquiring system according to the embodiment. As shown in FIG. 6, the method includes S601 to S605.
  • the ticket image obtaining means scans the ticket to obtain a first image of the ticket, and uploads the first image to the host.
  • the ticket image obtaining device acquires the first image of the ticket by the method shown in step S410, and uploads the first image to the host.
  • the controller 11 of the ticket image acquiring device 1 controls the communication device 12 to upload the first image to the host connected to the ticket image acquiring device 1.
  • the host determines whether the brightness of the first image satisfies a preset requirement.
  • the host receives the first image uploaded by the ticket image acquiring device, and calculates the brightness of the first image, and determines whether the brightness of the first image satisfies the requirement according to the brightness of the first image and the preset standard brightness of the ticket image.
  • the scan parameter adjustment value is calculated according to the brightness of the first image and the preset standard brightness of the ticket image, and then the scan parameter adjustment value is sent to the ticket image acquisition device.
  • the host also sends a control command to re-scan the ticket to the ticket image acquisition device.
  • the ticket image acquiring means adjusts the scanning parameter related to the image brightness according to the scanning parameter adjustment value so that the image scanned using the adjusted scanning parameter satisfies the requirement.
  • the ticket image obtaining device When the ticket image obtaining device receives the scan parameter adjustment value sent by the host and the control command for rescanning the ticket, the ticket image obtaining device adjusts the scan parameter related to the image brightness according to the received scan parameter adjustment value, wherein the image brightness is related to the image brightness
  • the scan parameter is the light-emitting time or the value of the light current of the light source corresponding to the first image.
  • the ticket image acquiring device re-scans the ticket using the adjusted scanning parameters to obtain a second image of the ticket, and uploads the second image to the host.
  • the ticket image obtaining device re-scans the ticket by using the method shown in step S440 to obtain a second image of the ticket, and the ticket image acquiring device also uploads the acquired second image to the host.
  • the ticket image device after acquiring the first image of the ticket, the ticket image device uploads the first image to the host, and the host determines whether the brightness of the first image satisfies the requirement, and the brightness of the first image is not When the requirement is met, the scan parameter adjustment value is calculated according to the brightness of the first image, and the scan parameter adjustment value and the control command for rescanning the ticket are sent to the ticket image acquisition device, and the ticket image acquisition device adjusts the scan parameter according to the scan parameter adjustment value sent by the host. And rescan the ticket.
  • the ticket image acquisition system of the present embodiment it is possible to effectively solve the problem that the acquired ticket image cannot satisfy the requirement when acquiring the image of the different types of the ticket image acquiring device of the related art, and the image analysis processing is placed on the host. End execution can reduce the workload of the ticket image acquisition device and improve the efficiency of ticket image acquisition.
  • the ticket image obtaining device provided in this embodiment may be specific hardware on the device or software or firmware installed on the device.
  • the implementation principle and the technical effects of the device provided in this embodiment are the same as those in the foregoing method embodiment.
  • a person skilled in the art can clearly understand that, for the convenience and brevity of the description, the working processes of the system, the device and the unit described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • a plurality of functional units in the embodiment provided by the present disclosure may be integrated into one processing unit, or a plurality of units may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such an understanding, a portion of the technical solution of the present disclosure that contributes in essence or to the related art or a part of the technical solution may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in this embodiment.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store a program code.
  • the computer storage medium may be a transitory storage medium or a non-transitory storage medium.
  • the scan parameter related to the brightness of the image may be adjusted according to the brightness of the first image. Since the image scanned by using the adjusted scan parameter satisfies the requirement, the second image of the ticket acquired after re-scanning the ticket satisfies the requirement, thereby effectively solving the related technology.
  • the image of the ticket image acquiring device acquires images of different types of tickets, there is a problem that the acquired document image cannot satisfy the requirements.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)
  • Image Input (AREA)

Abstract

A ticket image acquisition method and a ticket image acquisition apparatus and system. The method comprises: scanning a ticket to obtain a first image of the ticket; determining whether the brightness of the first image satisfies a requirement; if same is not satisfied, adjusting the scanning parameter related to the brightness of the image, according to a preset requirement, and the brightness of the first image, so that the image obtained by scanning using the adjusted scanning parameter satisfies the preset requirement; and rescanning the ticket using the adjusted scanning parameter, so as to obtain a second image of the ticket.

Description

票据图像获取方法及票据图像获取装置、***Bill image acquisition method and ticket image acquisition device and system 技术领域Technical field
本公开涉及票据图像获取技术领域,例如涉及一种票据图像获取方法及票据图像获取装置、***。The present disclosure relates to the field of ticket image acquisition technology, for example, to a ticket image acquisition method and a ticket image acquisition apparatus and system.
背景技术Background technique
金融票据是由金融机构签发或由金融机构承担支付义务的票据,相关技术中的金融票据包括票据、支票、本票等。为了保证流通安全,金融票据(以下简称票据)通常都包括多种防伪特征,金融机构兑付票据前,需要根据待兑付票据的防伪特征以及票据号码、大小写金额、***等票据内容鉴别票据的真伪。Financial instruments are notes issued by financial institutions or financed by financial institutions. Financial instruments in related technologies include notes, checks, promissory notes, etc. In order to ensure the safety of circulation, financial instruments (hereinafter referred to as bills) usually include a variety of anti-counterfeiting features. Before a financial institution redeems a bill, it needs to identify the true meaning of the bill according to the anti-counterfeiting characteristics of the bill to be redeemed, as well as the bill number, capitalization amount, seal and other bill contents. Pseudo.
相关技术中,金融机构大多采用票据图像获取装置获取票据的图像,并根据票据的图像鉴别票据的真伪。相关技术公开了一种票据鉴伪***,该票据鉴伪***包括票据图像获取装置和控制装置,票据图像获取装置获取待鉴别票据的光学图像,并将待鉴别票据的光学图像发送至控制装置,控制装置对票据图像进行分析处理,提取票据的防伪特征并识别票据内容,以及根据票据的防伪特征和票据内容鉴别票据的真伪。In the related art, the financial institution mostly uses the ticket image acquiring device to acquire an image of the ticket, and authenticates the authenticity of the ticket based on the image of the ticket. The related art discloses a bill counterfeiting system including a bill image acquiring device and a control device, the bill image acquiring device acquiring an optical image of the bill to be authenticated, and transmitting an optical image of the bill to be authenticated to the control device, The control device analyzes the document image, extracts the security feature of the ticket and identifies the ticket content, and authenticates the authenticity of the ticket according to the security feature of the ticket and the ticket content.
由于待鉴别的票据可能包括多种类型,而不同类型的票据的厚度和颜色不同,因此,对于不同类型的票据,票据的透光率和反光率中的至少一项会存在差异,当采用相关技术的票据图像获取装置获取不同类型的票据的光学图像时,不同类型的票据的图像的亮度就会不同,当票据图像的亮度过高或过低时,可能会导致票据图像不能满足识别或鉴伪的要求,也即,无法根据票据图像提取票据的防伪特征或识别票据内容,或者无法根据票据图像鉴别票据的真伪。Since the bill to be identified may include multiple types, and the thickness and color of different types of bills are different, for different types of bills, at least one of the light transmittance and the light reflectivity of the bill may differ. When the technical bill image obtaining device acquires optical images of different types of bills, the brightness of images of different types of bills may be different. When the brightness of the bill image is too high or too low, the bill image may not be satisfied or recognized. A false request, that is, the security feature of the ticket cannot be extracted from the ticket image or the ticket content is identified, or the authenticity of the ticket cannot be authenticated based on the ticket image.
针对相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题,目前尚未提出有效解决方法。When the bill image acquiring device of the related art acquires an image of a different type of bill, there is a problem that the acquired bill image cannot satisfy the requirement, and an effective solution has not been proposed yet.
发明内容Summary of the invention
有鉴于此,本公开提供了一种票据图像获取方法及票据图像获取装置、***,解决了相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题。 In view of the above, the present disclosure provides a ticket image acquisition method and a ticket image acquisition apparatus and system, which solve the problem that the acquired ticket image cannot meet the requirements when the ticket image acquisition device of the related art acquires images of different types of tickets. The problem.
第一方面,本实施例提供了一种票据图像获取方法,所述方法包括:对票据进行扫描,得到所述票据的第一图像;判断所述第一图像的亮度是否满足预设要求;若不满足,则根据所述预设要求以及所述第一图像的亮度,调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足所述预设要求;以及使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像。In a first aspect, the embodiment provides a method for acquiring a ticket image, the method comprising: scanning a ticket to obtain a first image of the ticket; determining whether a brightness of the first image meets a preset requirement; If the content is not satisfied, the scan parameter related to the brightness of the image is adjusted according to the preset requirement and the brightness of the first image, so that the image scanned by using the adjusted scan parameter satisfies the preset requirement; And rescanning the ticket using the adjusted scan parameters to obtain a second image of the ticket.
可选的,对票据进行扫描,得到所述票据的第一图像,包括:按照设定的扫描模式对所述票据进行扫描,得到所述票据的第一图像;其中,所述设定的扫描模式包括控制设定光源发光照射所述票据和控制扫描所述票据的设定区域中的至少一项,所述设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,所述票据的设定区域包括所述票据的全部区域或者所述票据的部分区域。Optionally, scanning the ticket to obtain a first image of the ticket, comprising: scanning the ticket according to a set scan mode to obtain a first image of the ticket; wherein the set scan The mode includes controlling at least one of setting a light source to illuminate the ticket and controlling a setting area for scanning the ticket, the set light source comprising a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, Any one of a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, the set area of the ticket including an entire area of the ticket or a partial area of the ticket.
可选的,根据所述第一图像的亮度调整与图像的亮度相关的扫描参数,包括:将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数。Optionally, adjusting the scan parameter related to the brightness of the image according to the brightness of the first image, comprising: comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, according to the The scan parameter adjustment value adjusts the scan parameters associated with the brightness of the image.
可选的,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数,包括:根据所述扫描参数调整值调整所述第一图像对应的光源的发光时间或者光电流的值。Optionally, adjusting the scan parameter related to the brightness of the image according to the scan parameter adjustment value includes: adjusting a light-emitting time or a value of the light current of the light source corresponding to the first image according to the scan parameter adjustment value.
可选的,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,包括:Optionally, comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, including:
根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,计算得到所述扫描参数调整值。The scan parameter adjustment value is calculated according to a proportional relationship between a brightness of the first image and the preset standard brightness or a difference between a brightness of the first image and the preset standard brightness.
可选的,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,包括:Optionally, comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, including:
根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,通过查询预先存储的对照表得到所述扫描参数调整值。Adjusting the scan parameter by querying a pre-stored comparison table according to a ratio of a brightness of the first image to a preset standard brightness or a difference between a brightness of the first image and the preset standard brightness value.
可选的,所述预设要求包括图像的亮度与预设标准亮度之间的差值在预设范围内,或者,所述预设要求包括所述图像的亮度在预设数值范围内。 Optionally, the preset requirement includes that a difference between a brightness of the image and a preset standard brightness is within a preset range, or the preset requirement includes that the brightness of the image is within a preset value range.
可选的,使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像,包括:控制所述票据回退至设定位置,使用调整后的所述扫描参数对所述票据进行扫描,得到所述票据的第二图像。Optionally, rescanning the ticket by using the adjusted scan parameter to obtain a second image of the ticket includes: controlling the ticket to fall back to a set position, and using the adjusted scan parameter pair The ticket is scanned to obtain a second image of the ticket.
第二方面,本实施例提供了一种票据图像获取装置,包括:In a second aspect, the embodiment provides a ticket image obtaining apparatus, including:
第一获取模块,设置为对票据进行扫描,得到所述票据的第一图像;a first obtaining module, configured to scan the ticket to obtain a first image of the ticket;
图像判断模块,设置为判断所述第一图像的亮度是否满足预设要求;The image determining module is configured to determine whether the brightness of the first image meets a preset requirement;
参数调整模块,设置为若所述图像判断模块判定所述第一图像的亮度不满足预设要求,则根据所述预设要求以及所述第一图像的亮度,调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足所述预设要求;以及The parameter adjustment module is configured to: if the image determining module determines that the brightness of the first image does not meet the preset requirement, adjust the scan related to the brightness of the image according to the preset requirement and the brightness of the first image a parameter such that an image scanned using the adjusted scan parameter satisfies the preset requirement;
第二获取模块,设置为使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像。The second obtaining module is configured to re-scan the ticket using the adjusted scanning parameter to obtain a second image of the ticket.
可选的,所述第一获取模块包括:扫描单元,设置为按照设定的扫描模式对所述票据进行扫描,得到所述票据的第一图像;其中,所述扫描单元包括设置子单元,所述设置子单元设置为控制设定光源发光照射所述票据和控制扫描所述票据的设定区域中的至少一项,所述设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,所述票据的设定区域包括所述票据的全部区域或者所述票据的部分区域。Optionally, the first acquiring module includes: a scanning unit configured to scan the ticket according to the set scanning mode to obtain a first image of the ticket; wherein the scanning unit includes a setting subunit, The setting subunit is configured to control at least one of setting a light source to illuminate the ticket and control a setting area for scanning the ticket, the set light source comprising a reflected image white light source, a reflected image infrared light source, and a reflection Any one of an image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, the set region of the ticket including an entire area of the ticket or a partial area of the ticket.
可选的,所述参数调整模块包括:亮度对比单元,设置为将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数。Optionally, the parameter adjustment module includes: a brightness comparison unit configured to compare and analyze the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjust the value according to the scan parameter adjustment value. Scan parameters related to the brightness of the image.
可选的,所述亮度对比单元包括调整子单元,设置为根据所述扫描参数调整值调整所述第一图像对应的光源的发光时间或者光电流的值。Optionally, the brightness comparison unit includes an adjustment subunit configured to adjust a value of a light emission time or a photocurrent of the light source corresponding to the first image according to the scan parameter adjustment value.
可选的,亮度对比单元是设置为根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,计算得到所述扫描参数调整值。Optionally, the brightness comparison unit is configured to calculate a ratio according to a ratio of a brightness of the first image to the preset standard brightness or a difference between a brightness of the first image and the preset standard brightness. The scan parameter adjustment value is described.
可选的,亮度对比单元是设置为根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,通过查询预先存储的对照表得到所述扫描参数调整值。 Optionally, the brightness comparison unit is configured to perform a query according to a ratio of a brightness of the first image to a preset standard brightness or a difference between a brightness of the first image and the preset standard brightness. The stored comparison table obtains the scan parameter adjustment value.
可选的,所述预设要求包括图像的亮度与预设标准亮度之间的差值在预设范围内,或者,所述预设要求包括所述图像的亮度在预设数值范围内。Optionally, the preset requirement includes that a difference between a brightness of the image and a preset standard brightness is within a preset range, or the preset requirement includes that the brightness of the image is within a preset value range.
可选的,所述第二获取模块包括:回退扫描单元,设置为控制所述票据回退至设定位置,使用调整后的所述扫描参数对所述票据进行扫描,得到所述票据的第二图像。Optionally, the second obtaining module includes: a back-off scanning unit, configured to control the ticket to fall back to the set position, and scan the ticket by using the adjusted scan parameter to obtain the ticket Second image.
第三方面,本实施例提供了一种票据图像获取***,所述***包括票据图像获取装置和主机,所述票据图像获取装置与所述主机通信连接,可进行数据交互;所述票据图像获取装置对票据进行扫描,得到所述票据的第一图像,将所述第一图像上传至所述主机;所述主机判断所述第一图像的亮度是否满足要求;若所述主机判定所述第一图像的亮度不满足要求,则根据所述第一图像的亮度计算扫描参数调整值,将所述扫描参数调整值发送至所述票据图像获取装置;所述票据图像获取装置根据所述扫描参数调整值调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足要求;所述票据图像获取装置使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像,将所述第二图像上传至所述主机。In a third aspect, the embodiment provides a bill image acquiring system, where the system includes a bill image acquiring device and a host, and the bill image acquiring device is communicably connected with the host to perform data interaction; The device scans the ticket to obtain a first image of the ticket, and uploads the first image to the host; the host determines whether the brightness of the first image meets a requirement; if the host determines the first If the brightness of an image does not meet the requirement, the scan parameter adjustment value is calculated according to the brightness of the first image, and the scan parameter adjustment value is sent to the ticket image acquisition device; the ticket image acquisition device is configured according to the scan parameter Adjusting a value to adjust a scan parameter related to brightness of the image such that an image scanned using the adjusted scan parameter satisfies a requirement; and the ticket image acquisition device rescans the ticket using the adjusted scan parameter to obtain The second image of the ticket uploads the second image to the host.
第四方面,本实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项所述的方法。In a fourth aspect, the embodiment provides a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
本实施例的票据图像获取方法及票据图像获取装置、***中,当获取到票据的第一图像后,判断第一图像的亮度是否满足要求,若第一图像的亮度不满足要求,根据第一图像的亮度调整与图像的亮度相关的扫描参数,并重新扫描票据,获取票据的第二图像。通过本实施例的票据图像获取方法及票据图像获取装置、***,当由于票据类型发生变化导致获取的第一图像的亮度不满足要求时,可以根据第一图像的亮度调整与图像的亮度相关的扫描参数,由于使用调整后的扫描参数扫描得到的图像满足要求,因此重新扫描票据后获取的票据的第二图像满足要求,从而有效解决相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题。In the bill image acquiring method and the bill image acquiring apparatus and system of the embodiment, after acquiring the first image of the ticket, determining whether the brightness of the first image satisfies the requirement, and if the brightness of the first image does not meet the requirement, according to the first The brightness of the image is adjusted by the scan parameters associated with the brightness of the image, and the ticket is rescanned to obtain a second image of the ticket. With the ticket image obtaining method and the ticket image acquiring apparatus and system of the embodiment, when the brightness of the acquired first image is not satisfied due to the change of the ticket type, the brightness of the image may be adjusted according to the brightness of the first image. Scanning parameters, since the image obtained by using the adjusted scan parameter scan satisfies the requirement, the second image of the ticket acquired after re-scanning the ticket satisfies the requirement, thereby effectively solving the image of the related art bill image acquiring device acquiring different types of bills At the time, there is a problem that the acquired ticket image cannot satisfy the requirement.
附图概述BRIEF abstract
图1是根据本实施例的票据图像获取装置的结构框图; 1 is a block diagram showing the structure of a ticket image acquiring apparatus according to the present embodiment;
图2是根据本实施例的票据图像获取装置的结构示意图;2 is a schematic structural diagram of a ticket image acquiring apparatus according to the embodiment;
图3是根据本实施例的票据图像获取***的结构框图;3 is a block diagram showing the structure of a ticket image acquiring system according to the present embodiment;
图4是根据本实施例的票据图像获取方法的流程示意图;4 is a schematic flow chart of a ticket image acquiring method according to the embodiment;
图5是根据本实施例的票据图像获取装置的功能模块划分示意图;FIG. 5 is a schematic diagram of functional module division of the ticket image acquiring apparatus according to the embodiment; FIG.
图6是根据本实施例的票据图像获取***的工作流程示意图。Fig. 6 is a flow chart showing the workflow of the ticket image obtaining system according to the embodiment.
附图标记:Reference mark:
入口21,出口22,箭头23,第一传感器161,第二传感器162,图像传感器141,第一输送辊组件1331,第二输送辊组件1332,第三输送辊组件1333,第四输送辊组件1334,输送电机132。 Inlet 21, outlet 22, arrow 23, first sensor 161, second sensor 162, image sensor 141, first conveyor roller assembly 1331, second conveyor roller assembly 1332, third conveyor roller assembly 1333, fourth conveyor roller assembly 1334 , conveying motor 132.
具体实施方式detailed description
下面将结合本实施例中附图,对本实施例中的技术方案进行清楚、完整地描述。通常在此处附图中描述和示出的本实施例的组件可以以多种不同的配置来布置和设计。The technical solutions in this embodiment will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments. The components of the present embodiments, which are generally described and illustrated in the figures herein, may be arranged and designed in a variety of different configurations.
考虑到相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题,本公开提供了一种票据图像获取方法及票据图像获取装置、***,下面结合实施例进行描述。The present invention provides a ticket image acquisition method and a ticket image acquisition device and system, in view of the problem that the acquired ticket image cannot satisfy the requirement when the image of the different types of the ticket is acquired. Description will be made in conjunction with the embodiments.
图1是根据本实施例的票据图像获取装置的结构框图,如图1所示,票据图像获取装置1包括控制器11、通信装置12、输送装置13、图像采集器14、存储器15和位置检测传感器16。1 is a block diagram showing the structure of a ticket image acquiring apparatus according to the present embodiment. As shown in FIG. 1, the ticket image acquiring apparatus 1 includes a controller 11, a communication device 12, a conveying device 13, an image collector 14, a memory 15, and position detection. Sensor 16.
控制器11设置为控制其他模块执行工作,比如,控制器11控制通信装置12执行票据图像获取装置1与主机之间的数据交互,其中主机与票据图像获取装置1连接,控制器11控制图像采集器14与输送装置13配合工作以扫描票据,其中,扫描票据包括输送装置13驱动票据在票据图像获取装置1的输送通道中移动,票据每移动一个点行时,图像采集器14采集一次票据的图像。The controller 11 is arranged to control other modules to perform work, for example, the controller 11 controls the communication device 12 to perform data interaction between the ticket image acquiring device 1 and the host, wherein the host is connected to the ticket image acquiring device 1, and the controller 11 controls image capturing. The device 14 cooperates with the transport device 13 to scan the ticket, wherein the scan ticket includes the transport device 13 to drive the ticket to move in the transport path of the ticket image acquiring device 1, and the image collector 14 collects an image of the ticket each time the ticket moves by one dot row .
通信装置12设置为执行票据图像获取装置1与主机之间的数据交互,其中主机与票据图像获取装置1连接,比如,通信装置12接收由主机发送的扫描票据的控制命令,通信装置12将扫描得到的票据图像上传到主机等。The communication device 12 is arranged to perform data interaction between the ticket image acquisition device 1 and the host, wherein the host is connected to the ticket image acquisition device 1, for example, the communication device 12 receives a control command for scanning a ticket sent by the host, and the communication device 12 will scan The obtained ticket image is uploaded to the host or the like.
输送装置13设置为驱动票据在票据图像获取装置1的输送通道中移动,输送装置13包括电机驱动器131、输送电机132和输送辊组件133。电机驱动器131设 置为根据控制器11输出的控制信号输出输送电机132的传动轴转动所需要的电流,输送电机132的传动轴与输送辊组件133传动连接,当输送电机132的传动轴转动时,输送辊组件133随之转动,从而驱动票据在输送通道中移动。The conveying device 13 is arranged to drive the movement of the bill in the conveying path of the bill image acquiring device 1, and the conveying device 13 includes a motor driver 131, a conveying motor 132, and a conveying roller assembly 133. Motor driver 131 The current required for the rotation of the transmission shaft of the conveying motor 132 is output according to the control signal output from the controller 11, and the transmission shaft of the conveying motor 132 is drivingly coupled to the conveying roller assembly 133. When the transmission shaft of the conveying motor 132 rotates, the conveying roller assembly The 133 then rotates, thereby driving the ticket to move in the transport path.
图像采集器14设置为采集票据图像,其中,图像采集器14包括图像传感器141和AD(Analog-to-Digital,模拟信号转换成数字信号)转换器142。The image collector 14 is arranged to collect a ticket image, wherein the image collector 14 includes an image sensor 141 and an AD (Analog-to-Digital) converter 142.
图像传感器141设置为采集票据的光学图像,并将获取的光信号转化为模拟电信号,即模拟图像信号。图像传感器141可以为电荷耦合图像传感器(Charge-coupled Device,简称CCD)或者接触式图像传感器(Contact Image Sensor,简称CIS),本实施例中,图像传感器141为CIS。图像传感器141包括发光器1411和感光阵列1412,发光器1411设置为发射照射在票据上的光线,发光器1411为沿着主扫描方向(即与票据输送方向垂直的方向)延伸的线光源,该线光源可以是由多个点光源间隔排列组成的线光源,也可以是点光源经导光条转换得到的线光源;感光阵列1412由多个感光器排列而成,多个感光器设置为接收由票据反射的光线即光信号,并将该光信号转换为模拟图像信号,从而实现采集票据的反射图像,多个感光器沿主扫描方向排列,其中,每个感光器与票据图像的一点行像素点中的一个像素点对应。The image sensor 141 is arranged to collect an optical image of the ticket and convert the acquired optical signal into an analog electrical signal, ie an analog image signal. The image sensor 141 may be a charge-coupled image sensor (CCD) or a contact image sensor (CIS). In this embodiment, the image sensor 141 is a CIS. The image sensor 141 includes an illuminator 1411 configured to emit light illuminating the ticket, and a photosensitive array 1411 that is a line light source extending in a main scanning direction (ie, a direction perpendicular to the bill transporting direction), The line source may be a line source composed of a plurality of point light sources arranged at intervals, or may be a line source converted by a point source through a light guide strip; the photosensitive array 1412 is formed by a plurality of photoreceptors, and the plurality of photoreceptors are set to receive The light reflected by the bill is an optical signal, and the optical signal is converted into an analog image signal, thereby realizing the reflected image of the collected bill, and the plurality of photoreceptors are arranged along the main scanning direction, wherein each photoreceptor and the bill image are in a row One pixel in the pixel corresponds to.
可选地,发光器1411包括多个子发光器,如白光发光器1411a、红外光发光器1411b和紫外光发光器1411c,其中,白光发光器1411a用于发射照射在票据上的白光,红外光发光器1411b用于发射照射在票据上的红外光,紫外光发光器1411c用于发射照射在票据上的紫外光,当白光发光器1411a发射白光时,感光阵列1412接收由票据反射的白光以采集票据的白光反射图像,当红外光发光器1411b发射红外光时,感光阵列1412接收由票据反射的红外光以采集票据的红外光反射图像,当紫外光发光器1411c发射紫外光时,感光阵列1412接收由票据反射的紫外光以采集票据的紫外光反射图像。由于当多个子发光器分别发射相应的光线照射票据时,感光阵列1412可以接收由票据反射的光线以采集票据的相应的反射图像,因此,白光发光器1411a也可以称为反射图像白光光源,红外光发光器1411b也可以称为反射图像红外光光源,紫外光发光器1411c也可以称为反射图像紫外光光源。Optionally, the illuminator 1411 includes a plurality of sub illuminators, such as a white illuminator 1411a, an infrared illuminator 1411b, and an ultraviolet illuminator 1411c, wherein the white illuminator 1411a is configured to emit white light that is illuminated on the ticket, and the infrared illuminating The device 1411b is for emitting infrared light irradiated on the ticket, and the ultraviolet light illuminator 1411c is for emitting ultraviolet light irradiated on the ticket. When the white light illuminator 1411a emits white light, the photosensitive array 1412 receives the white light reflected by the ticket to collect the ticket. The white light reflects the image. When the infrared illuminator 1411b emits infrared light, the photosensitive array 1412 receives the infrared light reflected by the ticket to collect the infrared light reflection image of the ticket. When the ultraviolet illuminator 1411c emits ultraviolet light, the photosensitive array 1412 receives The ultraviolet light reflected by the bill reflects the ultraviolet light of the ticket. Since the photo-sensing array 1412 can receive the light reflected by the bill to collect the corresponding reflected image of the bill when the plurality of sub-illuminators respectively emit the corresponding light-illuminating bills, the white light illuminator 1411a can also be referred to as a reflected image white light source, infrared. The light illuminator 1411b may also be referred to as a reflected image infrared light source, and the ultraviolet illuminator 1411c may also be referred to as a reflected image ultraviolet light source.
可选地,发光器1411的每个子发光器分别通过DA(Digital-to-Analog,数字信号转换成模拟信号)转换器(图中未示出)与控制器11电连接,当控制器11 输出至与设定的子发光器连接的DA转换器的控制信号变化时,该子发光器的输入电压随之变化,从而使该子发光器的光电流发生变化,也即,使该子发光器的发光亮度发生变化。Optionally, each sub-illuminator of the illuminator 1411 is electrically connected to the controller 11 through a DA (Digital-to-Analog) converter (not shown), respectively, when the controller 11 When the control signal output to the DA converter connected to the set sub-illuminator changes, the input voltage of the sub-illuminator changes accordingly, thereby changing the photocurrent of the sub-illuminator, that is, the sub-lighting The brightness of the device changes.
AD转换器142,设置为对图像传感器141输出的模拟图像信号进行AD转换,生成数字图像数据。The AD converter 142 is provided to perform AD conversion on the analog image signal output from the image sensor 141 to generate digital image data.
存储器15设置为存储票据图像获取装置1的控制程序及控制程序运行过程中生成的数据和变量,比如,存储器15设置为存储第一预设时间、第二预设时间、第三预设时间,以及设置为存储AD转换器142输出的数字图像数据等,其中,第一预设时间为采集票据的一点行像素点的白光反射图像时白光发光器1411a的发光时间;第二预设时间为采集票据的一点行像素点的红外光反射图像时红外光发光器1411b的发光时间;第三预设时间为采集票据的一点行像素点的紫外光反射图像时紫外光发光器1411c的发光时间。The memory 15 is configured to store the control program of the ticket image acquiring device 1 and the data and variables generated during the running of the control program. For example, the memory 15 is configured to store the first preset time, the second preset time, and the third preset time. And the digital image data and the like outputted to store the output of the AD converter 142, wherein the first preset time is a light-emitting time of the white light illuminator 1411a when the white light reflection image of the one-line pixel of the ticket is collected; the second preset time is the collection time. The infrared light illuminator 1411b emits light when the infrared light of the pixel of the ticket is reflected by the infrared light illuminator 1411b; and the third preset time is the illuminating time of the ultraviolet illuminator 1411c when the ultraviolet light is reflected by the pixel of the pixel of the ticket.
位置检测传感器16设置为检测票据在输送通道中的位置,位置检测传感器16包括第一传感器161和第二传感器162。第一传感器161和第二传感器162可以为光电反射传感器或光电透射传感器,每个传感器都包括发光器和接收器(图中未标出),接收器接收发光器发射的光信号并将该光信号转化为电信号,当传感器处于被覆盖状态时,接收器输出第一检测信号,当传感器处于不被覆盖状态时,接收器输出第二检测信号。第一传感器161和第二传感器162位于输送通道中的不同位置,每个传感器的状态变化用于指示票据到达或离开该传感器的检测位置,当传感器由不被覆盖状态变化到被覆盖状态时表明票据到达该传感器的检测位置,当传感器由被覆盖状态变化到不被覆盖状态时表明票据离开该传感器的检测位置。The position detecting sensor 16 is arranged to detect the position of the ticket in the conveying path, and the position detecting sensor 16 includes a first sensor 161 and a second sensor 162. The first sensor 161 and the second sensor 162 may be photoelectric reflection sensors or photoelectric transmission sensors, each of which includes an illuminator and a receiver (not shown), and the receiver receives the light signal emitted by the illuminator and the light The signal is converted into an electrical signal. When the sensor is in the covered state, the receiver outputs a first detection signal, and when the sensor is in an uncovered state, the receiver outputs a second detection signal. The first sensor 161 and the second sensor 162 are located at different positions in the delivery channel, and the state change of each sensor is used to indicate that the ticket arrives or leaves the detection position of the sensor, and when the sensor changes from the uncovered state to the covered state, it indicates The ticket arrives at the detection position of the sensor, indicating that the ticket leaves the detection position of the sensor when the sensor changes from the covered state to the uncovered state.
可选地,票据图像获取装置1还可以包括透射图像光源17,透射图像光源17与图像传感器141相对设置,设置为发射照射在票据上的透射光,以与图像传感器141的感光阵列1412配合实现采集票据的透射图像,其中,图像传感器141的感光阵列1412接收透射图像光源17发射的透过票据的光信号并将该光信号转换为模拟图像信号。Optionally, the receipt image acquiring device 1 may further include a transmission image light source 17 disposed opposite to the image sensor 141 and configured to emit transmitted light irradiated on the ticket to cooperate with the photosensitive array 1412 of the image sensor 141. A transmission image of the ticket is acquired, wherein the photosensitive array 1412 of the image sensor 141 receives the optical signal of the transmitted ticket transmitted by the transmission image source 17 and converts the optical signal into an analog image signal.
可选地,透射图像光源17包括多个子透射图像光源,如透射图像白光光源17a、透射图像红外光光源17b和透射图像紫外光光源17c,其中,透射图像白光光源17a用于发射照射在票据上的白光,透射图像红外光光源17b用于发射照射 在票据上的红外光,透射图像紫外光光源17c用于发射照射在票据上的紫外光。当透射图像白光光源17a发射白光时,感光阵列1412接收透过票据的白光以采集票据的白光透射图像,当透射图像红外光光源17b发射红外光时,感光阵列1412接收透过票据的红外光以采集票据的红外光透射图像,当透射图像紫外光光源17c发射紫外光时,感光阵列1412接收透过票据的紫外光以采集票据的紫外光透射图像。Optionally, the transmission image light source 17 includes a plurality of sub-transmission image light sources, such as a transmission image white light source 17a, a transmission image infrared light source 17b, and a transmission image ultraviolet light source 17c, wherein the transmission image white light source 17a is used to emit illumination on the ticket White light, transmission image infrared light source 17b for emission illumination Infrared light on the ticket, the transmission image ultraviolet light source 17c is used to emit ultraviolet light that is incident on the ticket. When the transmission image white light source 17a emits white light, the photosensitive array 1412 receives the white light transmitted through the ticket to collect the white light transmission image of the ticket, and when the transmission image infrared light source 17b emits the infrared light, the photosensitive array 1412 receives the infrared light transmitted through the ticket. The infrared light transmission image of the ticket is collected. When the transmission image ultraviolet light source 17c emits ultraviolet light, the photosensitive array 1412 receives the ultraviolet light transmitted through the ticket to collect the ultraviolet light transmission image of the ticket.
可选地,透射图像光源17的每个子透射图像光源分别通过DA转换器(图中未示出)与控制器11电连接,当控制器11输出至与设定的子透射图像光源连接的DA转换器的控制信号变化时,该子透射图像光源的输入电压随之变化,从而使该子透射图像光源的光电流发生变化,也即,使该子透射图像光源的发光亮度发生变化。Optionally, each of the sub-transmission image sources of the transmission image source 17 is electrically connected to the controller 11 through a DA converter (not shown), respectively, when the controller 11 outputs to the DA connected to the set sub-transmission image source. When the control signal of the converter changes, the input voltage of the sub-transmission image source changes accordingly, thereby changing the photocurrent of the sub-transmission image source, that is, changing the luminance of the sub-transmission image source.
可选地,存储器15还设置为存储第四预设时间、第五预设时间和第六预设时间,其中,第四预设时间为采集票据的一点行像素点的白光透射图像时透射图像白光光源17a的发光时间;第五预设时间为采集票据的一点行像素点的红外光透射图像时透射图像红外光光源17b的发光时间;第六预设时间为采集票据的一点行像素点的紫外光图像时透射图像紫外光光源17c的发光时间。Optionally, the memory 15 is further configured to store a fourth preset time, a fifth preset time, and a sixth preset time, wherein the fourth preset time is a transmission image when the white light transmission image of the one-line pixel of the ticket is collected. The illuminating time of the white light source 17a; the fifth preset time is the illuminating time of the infrared illuminating light source 17b when the infrared light transmitting image of one point of the pixel of the ticket is collected; the sixth preset time is a point of pixel of the collecting ticket The ultraviolet light image transmits the light-emitting time of the image ultraviolet light source 17c.
图2是根据本实施例的票据图像获取装置的结构示意图,如图2所示,入口21位于输送通道的第一端,箭头23所示方向为票据前进方向,与箭头23所示方向相反的方向为票据后退方向,第一传感器161、第二传感器162和图像传感器141沿票据前进方向依次排布在输送通道中。输送辊组件133包括沿票据前进方向依次排布在输送通道中的第一输送辊组件1331、第二输送辊组件1332、第三输送辊组件1333和第四输送辊组件1334,其中,每组输送辊组件包括相对设置的主动辊和从动辊,每个主动辊与输送电机132传动连接,输送电机132的传动轴转动时,每组输送辊组件的主动辊随之转动,主动辊转动时带动与之相对的从动辊转动,从而驱动票据在输送通道中移动。第一传感器161位于输送通道的入口21处,设置为检测是否有票据被送入至输送通道的入口21,第二传感器162沿票据前进方向位于图像传感器141的上游,且第二传感器162的检测位置与图像传感器141的扫描位置之间的距离为第一距离L1,其中,图像传感器141的扫描位置为该图像传感器141的感光阵列1412在输送通道中的位置。可选地,票据图像获取装置还包括出口22,出口22位于输送通道的第二端,扫描票据结束后 票据可经出口22被送出输送通道。2 is a schematic structural view of the receipt image acquiring apparatus according to the present embodiment. As shown in FIG. 2, the inlet 21 is located at the first end of the conveying passage, and the direction indicated by the arrow 23 is the advance direction of the bill, which is opposite to the direction indicated by the arrow 23. The direction is the bill retreat direction, and the first sensor 161, the second sensor 162, and the image sensor 141 are sequentially arranged in the transport path along the advancement direction of the bill. The conveying roller assembly 133 includes a first conveying roller assembly 1331, a second conveying roller assembly 1332, a third conveying roller assembly 1333, and a fourth conveying roller assembly 1334 which are sequentially arranged in the conveying path in the advancement direction of the bill, wherein each of the conveying rollers The roller assembly includes oppositely disposed driving rollers and driven rollers. Each of the driving rollers is drivingly connected to the conveying motor 132. When the transmission shaft of the conveying motor 132 rotates, the driving rollers of each group of conveying roller assemblies rotate accordingly, and the driving roller rotates. The opposite driven roller rotates to drive the ticket to move in the conveying path. The first sensor 161 is located at the inlet 21 of the delivery channel, is arranged to detect whether a ticket is fed into the inlet 21 of the delivery channel, the second sensor 162 is located upstream of the image sensor 141 in the advancement direction of the ticket, and the detection of the second sensor 162 The distance between the position and the scanning position of the image sensor 141 is the first distance L1, wherein the scanning position of the image sensor 141 is the position of the photosensitive array 1412 of the image sensor 141 in the conveying path. Optionally, the bill image obtaining device further includes an outlet 22, and the outlet 22 is located at the second end of the conveying passage, after the scanning of the bill ends The ticket can be sent out of the delivery channel via the outlet 22.
图3是根据本实施例的票据图像获取***的结构框图,如图3所示,票据图像获取***包括主机2及图1所示的票据图像获取装置1,主机2可以为电脑、手机、平板电脑(Pad,portable android device)等电子设备,票据图像获取装置1和主机2可以通过有线网络、无线网络、蓝牙或数据线等方式连接并通讯,比如,票据图像获取装置1和主机2通过USB(Universal Serial Bus,通用串行总线)数据线连接,并通过USB通信方式进行数据传输。3 is a structural block diagram of a ticket image acquiring system according to the present embodiment. As shown in FIG. 3, the ticket image acquiring system includes a host 2 and a ticket image acquiring device 1 shown in FIG. 1. The host 2 can be a computer, a mobile phone, or a tablet. An electronic device such as a tablet (portable android device), the ticket image acquiring device 1 and the host 2 can be connected and communicated through a wired network, a wireless network, a Bluetooth or a data line, for example, the ticket image acquiring device 1 and the host 2 via USB (Universal Serial Bus) The data line is connected and data is transmitted by USB communication.
票据图像获取装置1设置为获取票据图像,并将票据图像上传至主机2。主机2设置为向票据图像获取装置1发送扫描票据的控制指令,并接收票据图像获取装置1发送的票据图像,对票据图像进行分析处理,提取票据的防伪特征并识别票据内容,以及根据票据的防伪特征和票据内容鉴别票据的真伪。The ticket image acquiring device 1 is set to acquire a ticket image and upload the ticket image to the host 2. The host 2 is arranged to send a control instruction for scanning the ticket to the receipt image acquiring device 1, and receives the receipt image sent by the receipt image acquiring device 1, analyzes the document image, extracts the security feature of the ticket and identifies the ticket content, and according to the ticket The security feature and the ticket content authenticate the authenticity of the ticket.
一种可选实施例中,票据图像获取装置1获取票据图像后,该票据图像获取设备1的控制器11对票据图像进行分析处理,获取票据图像的亮度,并根据票据图像的亮度判断票据图像是否满足要求(即预设要求),其中,满足要求可以是满足鉴伪的要求或满足存档的要求,当判定票据图像不能满足要求时,根据获取的票据图像的亮度以及票据图像的预设标准亮度计算扫描参数的调整值,并调整扫描参数,以及控制输送装置13和图像采集器14重新扫描票据,控制器11将重新扫描票据后获得的票据图像上传到主机2,其中,扫描参数包括设定光源的发光时间、设定光源的光电流等。In an optional embodiment, after the bill image acquiring device 1 acquires the bill image, the controller 11 of the bill image acquiring device 1 analyzes the bill image, obtains the brightness of the bill image, and determines the bill image according to the brightness of the bill image. Whether the requirement (ie, the preset requirement) is satisfied, wherein the meeting requirement may be satisfying the requirement of authenticity or satisfying the requirement of archiving, and when determining that the document image cannot satisfy the requirement, according to the brightness of the obtained bill image and the preset standard of the bill image The brightness is used to calculate the adjustment value of the scan parameter, and the scan parameter is adjusted, and the control device 13 and the image collector 14 re-scan the ticket, and the controller 11 uploads the ticket image obtained after re-scanning the ticket to the host 2, wherein the scan parameter includes The light-emitting time of the light source, the light current of the light source, and the like are set.
另一种可选实施例中,票据图像获取装置1获取票据图像后,将票据图像上传到主机2,主机2对接收到的票据图像进行分析处理,获取票据图像的亮度,并根据票据图像的亮度判断票据图像是否满足要求,当判定票据图像不能满足要求时,根据获取的票据图像的亮度以及票据图像的预设标准亮度计算扫描参数的调整值,并将该扫描参数调整值发送至票据图像获取装置1,以及向票据图像获取装置1发送重新扫描票据的控制命令;图像获取装置1的控制器11判定通信装置22接收到扫描参数调整值及重新扫描票据的控制命令后,调整扫描参数,并控制输送装置13和图像采集器14重新扫描票据,以及将重新扫描票据后获得的票据图像上传到主机2。In another optional embodiment, after acquiring the bill image, the bill image acquiring device 1 uploads the bill image to the host 2, and the host 2 analyzes the received bill image to obtain the brightness of the bill image, and according to the bill image The brightness determination ticket image satisfies the requirement. When it is determined that the ticket image cannot meet the requirement, the adjustment value of the scan parameter is calculated according to the brightness of the acquired ticket image and the preset standard brightness of the ticket image, and the scan parameter adjustment value is sent to the ticket image. Acquiring the device 1 and transmitting a control command for re-scanning the ticket to the ticket image acquiring device 1; the controller 11 of the image acquiring device 1 determines that the communication device 22 receives the scan parameter adjustment value and the control command to rescan the ticket, and then adjusts the scan parameter. And controlling the conveying device 13 and the image collector 14 to re-scan the ticket, and uploading the ticket image obtained after re-scanning the ticket to the host 2.
图4是根据本实施例的票据图像获取方法的流程示意图,该方法的执行主体 可以是图1或图2所示的票据图像获取装置,如图4所示,该方法包括S410~S440。4 is a flow chart showing a method for acquiring a bill image according to the embodiment, and an execution subject of the method It may be the ticket image acquiring device shown in FIG. 1 or FIG. 2, and as shown in FIG. 4, the method includes S410 to S440.
在S410中,对票据进行扫描,得到票据的第一图像。In S410, the ticket is scanned to obtain a first image of the ticket.
当检测到票据被送入输送通道时,将票据的扫描起始位置输送至图像传感器的扫描位置,通过图像传感器扫描票据以获取票据的第一图像。其中,图像传感器的扫描位置为图像传感器的感光阵列在输送通道中的位置,票据的扫描起始位置为距离票据的前沿为第二距离L2的一点行像素点所在的位置,票据的前沿为票据移动时票据在前进方向上位于前面的一个边。When it is detected that the ticket is fed into the transport path, the scan start position of the ticket is transported to the scan position of the image sensor, and the ticket is scanned by the image sensor to obtain the first image of the ticket. Wherein, the scanning position of the image sensor is the position of the photosensitive array of the image sensor in the conveying channel, and the scanning starting position of the ticket is the position of the pixel point of the second distance L2 from the leading edge of the ticket, and the leading edge of the ticket is the ticket The ticket is on the front side in the forward direction when moving.
以图1中的票据图像获取装置为例,控制器11检测第一传感器161的状态,当检测到第一传感器161由不被覆盖状态变化到被覆盖状态时,判定票据的前沿被***至输送通道的入口21,控制器11控制输送装置13驱动票据沿前进方向移动;或者,当通信装置12接收到主机发送的扫描票据的控制命令时,控制器11控制输送装置13驱动票据沿前进方向移动。Taking the ticket image acquiring device in FIG. 1 as an example, the controller 11 detects the state of the first sensor 161, and when detecting that the first sensor 161 is changed from the uncovered state to the covered state, determines that the leading edge of the ticket is inserted into the transport. The inlet 21 of the passage, the controller 11 controls the conveying device 13 to drive the bill to move in the forward direction; or, when the communication device 12 receives the control command of the scanned bill sent by the host, the controller 11 controls the conveying device 13 to drive the bill to move in the forward direction .
票据移动过程中,控制器11检测第二传感器162的状态,当检测到第二传感器162由不被覆盖状态变化到被覆盖状态时,判定票据的前沿到达第二传感器162的检测位置。此时,控制器11继续控制输送装置13驱动票据沿前进方向移动,并开始记录票据移动的距离,当所记录的票据移动距离等于第三距离L3时,判定票据的扫描起始位置到达图像传感器141的扫描位置,其中,第三距离L3等于第一距离L1与第二距离L2之和,第一距离L1为第二传感器162的检测位置与图像传感器141的扫描位置之间的距离,第二距离L2为票据的扫描起始位置与票据的前沿之间的距离。当票据的扫描起始位置到达图像传感器141的扫描位置时,控制器11开始控制图像采集器14与输送装置13配合工作以扫描票据,从而获取票据的第一图像。During the movement of the ticket, the controller 11 detects the state of the second sensor 162, and when it is detected that the second sensor 162 changes from the uncovered state to the covered state, determines that the leading edge of the ticket reaches the detected position of the second sensor 162. At this time, the controller 11 continues to control the conveying device 13 to drive the movement of the ticket in the forward direction, and starts recording the distance of the movement of the ticket. When the recorded movement distance of the ticket is equal to the third distance L3, it is determined that the scanning start position of the ticket reaches the image sensor 141. a scanning position, wherein the third distance L3 is equal to a sum of the first distance L1 and the second distance L2, and the first distance L1 is a distance between the detected position of the second sensor 162 and the scanning position of the image sensor 141, and the second distance L2 is the distance between the scanning start position of the ticket and the leading edge of the ticket. When the scan start position of the ticket reaches the scanning position of the image sensor 141, the controller 11 starts controlling the image collector 14 to cooperate with the transport device 13 to scan the ticket, thereby acquiring the first image of the ticket.
扫描票据包括输送装置13驱动票据在票据图像获取装置1的输送通道中移动,票据每移动一点行时图像采集器14采集一点行像素点的图像。可选的,票据每移动一点行时,控制器11控制设定光源发光预设时间,并控制图像传感器141的感光阵列1412采集一点行像素点的模拟图像信号,以及控制AD转换器142将图像传感器141输出的模拟图像信号转换为数字图像信号,从而获取票据的一点行像素点的数字图像数据。其中,本实施例以及其他实施例中,一点行的长度与票据图像获取装置的纵向(即票据移动方向)分辨率相关,当纵向分辨率为200dpi(点/英寸,dot per inch),一点行的长度等于0.12毫米。 Scanning the ticket includes the transport device 13 driving the ticket to move in the transport path of the ticket image acquiring device 1, and the image collector 14 captures an image of a row of pixels each time the ticket moves a little. Optionally, when the ticket moves a little line, the controller 11 controls to set the light source preset time, and controls the photosensitive array 1412 of the image sensor 141 to collect an analog image signal of a row of pixels, and controls the AD converter 142 to control the image. The analog image signal output from the sensor 141 is converted into a digital image signal, thereby acquiring digital image data of a point of the pixel of the ticket. Wherein, in this embodiment and other embodiments, the length of one line is related to the longitudinal (ie, moving direction of the ticket) resolution of the ticket image acquiring device, and when the vertical resolution is 200 dpi (dot per inch), one line The length is equal to 0.12 mm.
本步骤中,通过票据移动的距离判断票据是否扫描完成,可选地,当票据的扫描起始位置到达图像传感器141的扫描位置时,控制器11控制图像采集器14与输送装置13扫描票据的同时,开始记录票据移动的距离,当所记录的票据移动距离等于第四距离L4时,判定完成票据扫描,也即,获取到票据的第一图像,其中,第四距离L4为票据的扫描起始位置与票据的扫描终止位置之间的距离,票据的扫描终止位置为与票据的后沿之间距离为第五距离L5的一点行像素点所在的位置,票据的后沿为票据移动时该票据在前进方向上位于后面的一个边。In this step, it is determined whether the ticket is scanned by the distance moved by the ticket. Optionally, when the scan start position of the ticket reaches the scanning position of the image sensor 141, the controller 11 controls the image collector 14 and the transport device 13 to scan the ticket. At the same time, the recording of the distance of the movement of the ticket is started. When the recorded movement distance of the ticket is equal to the fourth distance L4, it is determined that the ticket scanning is completed, that is, the first image of the ticket is acquired, wherein the fourth distance L4 is the scanning start of the ticket. The distance between the position and the scanning end position of the ticket, the scanning end position of the ticket is the position of the pixel point of the fifth distance L5 from the trailing edge of the ticket, and the trailing edge of the ticket is the ticket when the ticket moves Located on the back side in the forward direction.
考虑到票据扫描装置能够根据内部设置的任意一种光源扫描得到票据的反射图像或者票据的透射图像,并且还能够扫描票据的全部区域或者部分区域,得到票据的全部图像或者部分图像,因此本步骤中,可以是按照设定的扫描模式对票据进行扫描,得到票据的第一图像,其中,设定的扫描模式包括控制设定光源发光照射票据和控制扫描票据的设定区域中的至少一项,可选的,当选择其中一项时,另一项可以采用默认设置或原有设置;还可以是对这两项分别进行选择。设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,票据的设定区域包括票据的全部区域或者票据的部分区域。其中,反射图像白光光源能够为如图1所示的白光发光器1411a、反射图像红外光光源能够为如图1所示的红外光发光器1411b、反射图像紫外光光源能够为如图1所示的紫外光发光器1411c。Considering that the ticket scanning device can scan the reflected image of the ticket or the transmission image of the ticket according to any one of the internally arranged light sources, and can also scan all or part of the area of the ticket to obtain all or part of the image of the ticket, this step The ticket may be scanned according to the set scan mode to obtain a first image of the ticket, wherein the set scan mode includes at least one of controlling a set light source illumination illumination ticket and a control scan ticket setting area. Optionally, when one of the items is selected, the other item can be either the default setting or the original setting; or the two items can be selected separately. The set light source comprises any one of a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, and the set area of the ticket includes a bill. All areas of the area or parts of the ticket. The reflected image white light source can be a white light illuminator 1411a as shown in FIG. 1 , and the reflected image infrared light source can be an infrared illuminator 1411b as shown in FIG. 1 , and the reflected image ultraviolet light source can be as shown in FIG. 1 . Ultraviolet illuminator 1411c.
以图1中的票据图像获取装置为例,在扫描票据的过程中,票据每移动一点行时,控制器11控制设定光源发光预设时间,其中设定光源可以为图像传感器141的任意一个子发光器,如白光发光器、红外光发光器或者紫外光发光器,也可以为透射图像光源17的任意一个子透射图像光源,如透射图像白光光源、透射图像红外光光源或者透射图像紫外光光源。当设定光源为图像传感器141的任意一个子发光器时,图像传感器141采集与相应子发光器对应的票据的反射图像,当设定光源为透射图像光源17的任意一个子透射图像光源时,图像传感器141采集与相应子透射图像光源对应的票据的透射图像。Taking the ticket image acquiring device in FIG. 1 as an example, in the process of scanning the ticket, the controller 11 controls the set light source to emit a preset time each time the ticket moves a little, wherein the set light source may be any one of the image sensors 141. The sub-illuminator, such as a white light illuminator, an infrared illuminator or an ultraviolet illuminator, may also be any sub-transmission image source of the transmission image source 17, such as a transmission image white light source, a transmission image infrared light source or a transmission image ultraviolet light. light source. When the set light source is any one of the sub-illuminators of the image sensor 141, the image sensor 141 collects a reflection image of the ticket corresponding to the corresponding sub-illuminator, and when the set light source is any one of the sub-transmission image sources of the transmission image source 17, The image sensor 141 collects a transmission image of the ticket corresponding to the corresponding sub-transmitted image light source.
当扫描过程中仅控制任意一种设定光源发光照射票据时,扫描得到一幅第一图像。比如,当控制白光发光器1411a发光照射票据时,扫描得到的第一图像 为票据的白光反射图像,当控制透射图像白光光源17a发光照射票据时,扫描得到的第一图像为票据的白光透射图像。可选的,扫描过程中也可以按照设定顺序控制多种设定光源轮流发光照射票据,扫描得到多幅第一图像,具体地,票据每移动一点行时,控制器11依次控制多个设定光源轮流发光预设时间,并在每种光源发光时控制图像传感器141的感光阵列1412采集一点行像素点的模拟图像信号,以及控制AD转换器142将图像传感器141输出的模拟图像信号转换为数字图像信号。当输送装置13驱动票据的全部区域或预设的部分区域经过图像传感器141的扫描位置时,图像传感器141即完成多幅第一图像的采集,其中,每幅第一图像对应一种光源,比如,当白光发光器1411a照射票据时,采集到的第一图像为票据的白光反射图像,当透射图像白光光源17a照射票据时,采集到的第一图像为票据的白光透射图像。When only one of the set light source illumination illumination tickets is controlled during the scanning process, a first image is obtained by scanning. For example, when the white light illuminator 1411a is controlled to illuminate the ticket, the scanned first image is obtained. For the white light reflection image of the ticket, when the transmission image white light source 17a is controlled to illuminate the ticket, the scanned first image is a white light transmission image of the ticket. Optionally, during the scanning process, the plurality of set light sources may be controlled to rotate the illuminated illumination ticket according to the set sequence, and the plurality of first images are scanned, and specifically, when the ticket moves a little line, the controller 11 sequentially controls the plurality of settings. The fixed light source alternately emits light for a preset time, and controls the photosensitive array 1412 of the image sensor 141 to collect an analog image signal of a line of pixels when each light source emits light, and controls the AD converter 142 to convert the analog image signal output by the image sensor 141 into Digital image signal. When the conveying device 13 drives the entire area of the ticket or the preset partial area to pass the scanning position of the image sensor 141, the image sensor 141 completes the acquisition of the plurality of first images, wherein each of the first images corresponds to a light source, such as When the white light illuminator 1411a illuminates the ticket, the first image acquired is a white light reflection image of the ticket, and when the transmission image white light source 17a illuminates the ticket, the collected first image is a white light transmission image of the ticket.
本实施例中,票据的设定区域可以为票据的全部区域,也可以为票据的部分区域,相应地,第一图像可以为票据的全部区域的图像,也可以为票据的部分区域的图像。比如,一种可选实施例中,第二距离L2和第五距离L5的值均为0,也即,票据的扫描起始位置为票据的前沿,票据的扫描终止位置为票据的后沿,这种情况下,当完成票据扫描时,获取到的第一图像为票据的全部区域的图像;再比如,另一种可选实施例中,第二距离L2和第五距离L5中至少一项的值不为0,这种情况下,当完成票据扫描时,获取到的第一图像为票据的部分区域的图像。考虑到第一图像的亮度可能不满足要求,为提高票据图像获取效率,可以是第一图像为票据的部分区域的图像。In this embodiment, the setting area of the ticket may be the entire area of the ticket, or may be a partial area of the ticket. Accordingly, the first image may be an image of the entire area of the ticket, or may be an image of a partial area of the ticket. For example, in an optional embodiment, the values of the second distance L2 and the fifth distance L5 are both 0, that is, the scanning start position of the ticket is the leading edge of the ticket, and the scanning termination position of the ticket is the trailing edge of the ticket. In this case, when the ticket scanning is completed, the acquired first image is an image of the entire area of the ticket; and, in another alternative embodiment, at least one of the second distance L2 and the fifth distance L5. The value is not 0. In this case, when the ticket scanning is completed, the acquired first image is an image of a partial area of the ticket. In view of the fact that the brightness of the first image may not satisfy the requirement, in order to improve the ticket image acquisition efficiency, the first image may be an image of a partial region of the ticket.
在S420中,判断第一图像的亮度是否满足预设要求。In S420, it is determined whether the brightness of the first image satisfies a preset requirement.
本步骤中,设置有预设亮度要求,判断第一图像的亮度是否满足该预设亮度要求。可选地,预设亮度要求包括图像亮度与票据图像的预设标准亮度之间的差值在预设范围内,例如,该预设范围可以是票据图像的预设标准亮度的20%,比如,获取第一图像后,计算第一图像的亮度,当该第一图像的亮度与票据图像的预设标准亮度的差值与票据图像的预设标准亮度的比值小于20%时,判定第一图像的亮度满足要求,否则,判定第一图像的亮度不满足要求。In this step, a preset brightness requirement is set, and it is determined whether the brightness of the first image satisfies the preset brightness requirement. Optionally, the preset brightness requirement includes a difference between the image brightness and the preset standard brightness of the ticket image within a preset range, for example, the preset range may be 20% of the preset standard brightness of the ticket image, for example, After obtaining the first image, calculating the brightness of the first image, determining that the ratio of the difference between the brightness of the first image and the preset standard brightness of the ticket image and the preset standard brightness of the ticket image is less than 20% The brightness of the image satisfies the requirement, otherwise, it is determined that the brightness of the first image does not satisfy the requirement.
预设亮度要求还可以是包括图像亮度在预设范围内,该预设范围可以是预设的数值范围,比如,获取第一图像后,计算第一图像的亮度,当第一图像的亮度在预设的数值范围内时,判定第一图像的亮度满足要求,当第一图像的亮 度不在预设的数值范围内时,判定第一图像的亮度不满足要求。The preset brightness requirement may further include: the image brightness is within a preset range, and the preset range may be a preset value range. For example, after acquiring the first image, calculating the brightness of the first image, when the brightness of the first image is When the preset value range is within, it is determined that the brightness of the first image satisfies the requirement, when the first image is bright When the degree is not within the preset numerical range, it is determined that the brightness of the first image does not satisfy the requirement.
一种可选实施例中,计算第一图像中所有像素点的亮度的均值,并将所有像素点的亮度的均值作为第一图像的亮度值,另一种可选实施例中,计算第一图像中所有像素点的亮度的方差,并将所有像素点的亮度的方差作为第一图像的亮度值。票据图像的预设标准亮度可以采用与计算第一图像的亮度值相同的运算方法,如计算均值或者计算方差,对作为模板的票据图像进行计算得到。In an optional embodiment, the average value of the brightness of all the pixels in the first image is calculated, and the average value of the brightness of all the pixels is used as the brightness value of the first image. In another alternative embodiment, the first calculation is performed. The variance of the luminance of all the pixels in the image, and the variance of the luminance of all the pixels is taken as the luminance value of the first image. The preset standard brightness of the ticket image may be calculated by the same calculation method as calculating the brightness value of the first image, such as calculating the mean value or calculating the variance, and calculating the ticket image as a template.
当在步骤S410中,票据的设定区域为票据的部分区域时,票据图像获取装置扫描作为模板的票据的相同部分区域的图像,按照与计算第一图像的亮度值相同的运算方法计算作为模板的票据的相同部分区域的图像的亮度值,并将该亮度值作为票据图像的预设标准亮度。当在步骤S410中,票据的设定区域为票据的全部区域时,票据图像获取装置扫描作为模板的票据的全部区域的图像,按照与计算第一图像的亮度值相同的运算方法计算作为模板的票据的全部区域的图像的亮度值,并将该亮度值作为票据图像的预设标准亮度。When the set area of the ticket is a partial area of the ticket in step S410, the ticket image acquiring means scans the image of the same partial area of the ticket as the template, and calculates it as a template according to the same calculation method as calculating the brightness value of the first image. The brightness value of the image of the same partial area of the ticket, and the brightness value is used as the preset standard brightness of the ticket image. When the setting area of the ticket is the entire area of the ticket in step S410, the ticket image acquiring means scans the image of the entire area of the ticket as the template, and calculates the same as the calculation method of the brightness value of the first image. The brightness value of the image of the entire area of the ticket, and the brightness value is used as the preset standard brightness of the ticket image.
当对票据进行扫描后获取到多幅第一图像时,依次判断每幅第一图像的亮度是否满足要求。可以是包括:对于任意一幅第一图像,均计算其亮度值,并判断该亮度值是否满足上述的预设亮度要求。比如,票据图像获取装置根据每幅第一图像的设定光源和对应的票据区域预先存储有与每幅第一图像对应的预设标准亮度。票据图像获取装置计算每幅第一图像的亮度,判断每幅第一图像的亮度与该第一图像对应的预设标准亮度的差值是否处于预设的差值范围内,或者每幅第一图像的亮度与该第一图像对应的预设标准亮度的差值与该预设标准亮度的比值是否小于预设阈值,或者每幅第一图像的亮度是否处于预设的数值范围内,当任意一幅第一图像不满足上述的预设亮度要求时,确定该第一图像的亮度不满足要求。When a plurality of first images are acquired after scanning the ticket, it is sequentially determined whether the brightness of each of the first images satisfies the requirement. The method may include: calculating, for any one of the first images, a brightness value thereof, and determining whether the brightness value meets the preset brightness requirement. For example, the bill image obtaining means pre-stores a preset standard brightness corresponding to each of the first images in accordance with the set light source of each of the first images and the corresponding ticket area. The bill image obtaining device calculates the brightness of each of the first images, and determines whether the difference between the brightness of each of the first images and the preset standard brightness corresponding to the first image is within a preset difference range, or each of the first Whether the ratio of the difference between the brightness of the image and the preset standard brightness corresponding to the first image and the preset standard brightness is less than a preset threshold, or whether the brightness of each first image is within a preset value range, when When a first image does not satisfy the preset brightness requirement, it is determined that the brightness of the first image does not meet the requirement.
在S430中,若第一图像的亮度不满足预设要求,则根据预设要求以及第一图像的亮度,调整与图像亮度相关的扫描参数,以使使用调整后的扫描参数扫描得到的图像满足预设要求。In S430, if the brightness of the first image does not meet the preset requirement, the scan parameter related to the brightness of the image is adjusted according to the preset requirement and the brightness of the first image, so that the image scanned by using the adjusted scan parameter is satisfied. Preset requirements.
本步骤中采用以下方法调整与图像亮度相关的扫描参数:将第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据扫描参数调整值调整与图像亮度相关的扫描参数,其中,与图像亮度相关的扫描参数可以为第一图像对应的光源的发光时间或者光电流的值,对应地,根据扫描参数调整值 调整与图像亮度相关的扫描参数,可以为:根据扫描参数调整值调整第一图像对应的光源的发光时间或者光电流的值。In this step, the following method is used to adjust the scanning parameters related to the brightness of the image: comparing the brightness of the first image with the preset standard brightness, obtaining the scanning parameter adjustment value, and adjusting the scanning parameter related to the image brightness according to the scanning parameter adjustment value, The scan parameter related to the brightness of the image may be the light-emitting time or the value of the light current of the light source corresponding to the first image, and correspondingly, the value is adjusted according to the scan parameter. Adjusting the scan parameter related to the brightness of the image may be: adjusting the light-emitting time or the value of the light current of the light source corresponding to the first image according to the scan parameter adjustment value.
可选的,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,包括:根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,计算得到所述扫描参数调整值。Optionally, the brightness of the first image is compared with the preset standard brightness to obtain a scan parameter adjustment value, including: according to a ratio of the brightness of the first image to the preset standard brightness or the The difference between the brightness of the first image and the preset standard brightness is calculated to obtain the scan parameter adjustment value.
比如,当第一图像的亮度为A1,票据图像的预设标准亮度为A时,设置扫描参数调整值为k1=A/A1,将第一图像对应的设定光源的发光时间调整为当前值的k1倍,或者,将第一图像对应的设定光源的光电流的值调整为当前值的k1倍。For example, when the brightness of the first image is A1 and the preset standard brightness of the ticket image is A, the scan parameter adjustment value is set to k1=A/A1, and the illumination time of the set light source corresponding to the first image is adjusted to the current value. K1 times, or the value of the photocurrent of the set light source corresponding to the first image is adjusted to be k1 times the current value.
可选的,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,还可以是包括:根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,通过查询预先存储的对照表得到所述扫描参数调整值。Optionally, the brightness of the first image is compared with the preset standard brightness to obtain a scan parameter adjustment value, and the method further includes: determining, according to a brightness relationship between the brightness of the first image and the preset standard brightness Or the difference between the brightness of the first image and the preset standard brightness, and the scan parameter adjustment value is obtained by querying a pre-stored comparison table.
比如,当第一图像的亮度为A2,票据图像的预设标准亮度为A3时,根据亮度差值A2-A3在预先存储的差值对照表内查找该差值对应的扫描参数调整值k2,将第一图像对应的设定光源的发光时间调整为当前值的k2倍,或者,将第一图像对应的设定光源的光电流的值调整为当前值的k2倍。For example, when the brightness of the first image is A2 and the preset standard brightness of the ticket image is A3, the scan parameter adjustment value k2 corresponding to the difference is searched according to the difference value A2-A3 in the pre-stored difference table. The light-emitting time of the set light source corresponding to the first image is adjusted to be k2 times the current value, or the value of the light current of the set light source corresponding to the first image is adjusted to be k2 times the current value.
以图1中的票据图像获取装置为例,控制器11在步骤S420中计算第一图像的亮度,并获取预先存储的票据图像的预设标准亮度,当控制器11通过步骤S420确定第一图像的亮度不满足要求时,通过本步骤根据第一图像的亮度以及票据图像的预设标准亮度计算扫描参数调整值,并根据扫描参数调整值调整第一图像对应的光源的发光时间或者光电流的值,比如,当第一图像对应的设定光源为白光发光器1411a,并计算得到扫描参数调整值为k1时,控制器11将存储器15中存储的第一预设时间的值修改为当前值的k1倍,或者,控制器11调整输出至与白光发光器1411a连接的DA转换器的控制信号,将白光发光器1411a的光电流的值调整为当前值的k1倍。Taking the ticket image acquiring device in FIG. 1 as an example, the controller 11 calculates the brightness of the first image in step S420, and acquires a preset standard brightness of the pre-stored ticket image, when the controller 11 determines the first image through step S420. When the brightness is not satisfactory, the scanning parameter adjustment value is calculated according to the brightness of the first image and the preset standard brightness of the ticket image, and the lighting time or the photocurrent of the light source corresponding to the first image is adjusted according to the scanning parameter adjustment value. For example, when the set light source corresponding to the first image is the white light illuminator 1411a and the scan parameter adjustment value is calculated as k1, the controller 11 modifies the value of the first preset time stored in the memory 15 to the current value. Alternatively, the controller 11 adjusts the control signal output to the DA converter connected to the white light emitter 1411a to adjust the value of the photocurrent of the white light emitter 1411a to k1 times the current value.
进一步地,当对票据进行扫描后获取到多幅第一图像时,将不满足预设亮度要求的第一图像的亮度与该第一图像对应的预设标准亮度进行对比分析,得到扫描参数调整值,根据扫描参数调整值调整该不满足预设亮度要求的第一图像对应的光源的发光时间或者光电流的值。 Further, when the plurality of first images are acquired after scanning the ticket, the brightness of the first image that does not meet the preset brightness requirement is compared with the preset standard brightness corresponding to the first image, and the scan parameter adjustment is obtained. And adjusting a value of the light-emitting time or the photocurrent of the light source corresponding to the first image that does not satisfy the preset brightness requirement according to the scan parameter adjustment value.
比如,当不满足预设亮度要求的第一图像的亮度为A1,与该第一图像的亮度对应的预设标准亮度为A时,设置扫描参数调整值为k=A/A1,将该不满足预设亮度要求的第一图像对应的设定光源的发光时间调整为当前值的k倍,或者,将该设定光源的光电流的值调整为当前值的k倍。For example, when the brightness of the first image that does not meet the preset brightness requirement is A1, and the preset standard brightness corresponding to the brightness of the first image is A, the scan parameter adjustment value is set to k=A/A1, and the The illumination time of the set light source corresponding to the first image that satisfies the preset brightness requirement is adjusted to be k times of the current value, or the value of the photocurrent of the set light source is adjusted to be k times of the current value.
以图1中的票据图像获取装置为例,控制器11在步骤S420中计算每幅第一图像的亮度,并获取预先存储的每幅第一图像对应的预设标准亮度,当控制器11通过步骤S420确定一幅特定的第一图像不满足预设亮度要求时,通过本步骤根据该不满足预设亮度要求的第一图像的亮度以及与第一图像对应的预设标准亮度计算扫描参数调整值,并根据扫描参数调整值调整该不满足预设亮度要求的第一图像对应的光源的发光时间或者光电流的值,比如,该不满足预设亮度要求的第一图像对应的设定光源为红外光发光器1411b,并且计算得到扫描参数调整值为k1时,控制器11将存储器15中存储的第二预设时间修改为当前值的k1倍,或者,控制器11调整输出至与红外光发光器1411b连接的DA转换器的控制信号,将红外光发光器1411b的光电流的值调整为当前值的k1倍。Taking the ticket image acquiring device in FIG. 1 as an example, the controller 11 calculates the brightness of each first image in step S420, and acquires a preset standard brightness corresponding to each first image stored in advance, when the controller 11 passes Step S420: When it is determined that a specific first image does not meet the preset brightness requirement, the scan parameter adjustment is calculated according to the brightness of the first image that does not satisfy the preset brightness requirement and the preset standard brightness corresponding to the first image. And adjusting a value of the light-emitting time or the light current of the light source corresponding to the first image that does not meet the preset brightness requirement according to the scan parameter adjustment value, for example, the set light source corresponding to the first image that does not meet the preset brightness requirement When the infrared light illuminator 1411b is calculated and the scan parameter adjustment value is calculated as k1, the controller 11 modifies the second preset time stored in the memory 15 to k1 times the current value, or the controller 11 adjusts the output to the infrared The control signal of the DA converter connected to the photo illuminator 1411b adjusts the value of the photocurrent of the infrared illuminator 1411b to k1 times the current value.
本步骤中,由于将第一图像的亮度与票据图像的预设标准亮度进行对比,根据对比结果调整第一图像对应的光源的发光时间或者光电流的值,而票据图像的预设标准亮度满足要求,因此使用调整后的扫描参数重新扫描票据时,得到的图像的亮度也满足要求。In this step, since the brightness of the first image is compared with the preset standard brightness of the ticket image, the light-emitting time or the value of the light current of the light source corresponding to the first image is adjusted according to the comparison result, and the preset standard brightness of the ticket image is satisfied. It is required that the brightness of the resulting image also satisfies the requirements when the ticket is rescanned using the adjusted scan parameters.
步骤S440,使用调整后的扫描参数重新扫描票据,得到票据的第二图像。Step S440, re-scanning the ticket using the adjusted scan parameters to obtain a second image of the ticket.
考虑到如图2所示的票据图像获取装置的结构,本步骤的过程为:控制票据回退至设定位置,使用调整后的扫描参数对票据进行扫描,得到票据的第二图像,能够理解,由于第二图像使用调整后的扫描参数扫描得到,因此第二图像对应的光源与第一图像对应的光源相同。上述设定位置可以是图像传感器141的扫描位置,控制票据回退至设定位置可以是将票据的扫描起始位置回退至图像传感器141的扫描位置。Considering the structure of the ticket image acquiring device shown in FIG. 2, the process of this step is: controlling the ticket to fall back to the set position, and scanning the ticket using the adjusted scanning parameter to obtain a second image of the ticket, which can be understood. Since the second image is scanned using the adjusted scan parameters, the light source corresponding to the second image is the same as the light source corresponding to the first image. The set position may be a scan position of the image sensor 141, and the control ticket may be retracted to the set position by retracting the scan start position of the ticket to the scan position of the image sensor 141.
可选地,根据第一图像的亮度调整扫描参数后,控制器11控制输送装置13驱动票据沿后退方向移动,票据移动过程中,控制器11检测第二传感器162的状态,当检测到第二传感器162由被覆盖状态变化到不被覆盖状态时,判定票据的前沿到达第二传感器162的检测位置,此时,控制器11控制输送装置13驱动票据沿前进方向移动,并开始记录票据移动的距离,当所记录的票据移动的距离等 于第三距离L3时,判定票据的扫描起始位置到达图像传感器141的扫描位置,此时,控制器11控制图像采集器14与输送装置13配合工作以启动扫描票据,从而获取票据的第二图像。Optionally, after adjusting the scan parameter according to the brightness of the first image, the controller 11 controls the transport device 13 to drive the ticket to move in the backward direction. During the movement of the ticket, the controller 11 detects the state of the second sensor 162, and when the second is detected When the sensor 162 changes from the covered state to the uncovered state, it is determined that the leading edge of the ticket reaches the detection position of the second sensor 162. At this time, the controller 11 controls the conveying device 13 to drive the ticket to move in the forward direction, and starts recording the movement of the ticket. Distance, when the recorded ticket moves distance, etc. At the third distance L3, it is determined that the scan start position of the ticket reaches the scan position of the image sensor 141. At this time, the controller 11 controls the image collector 14 to cooperate with the transport device 13 to start scanning the ticket, thereby acquiring the second ticket. image.
可选地,当步骤S410中对票据进行扫描后获取到多幅第一图像时,如果判定多幅第一图像中一幅特定的第一图像的亮度不能满足预设亮度要求,则根据不能满足预设亮度要求的第一图像的亮度调整相应的扫描参数,并使用调整后的扫描参数重新扫描票据,以获取票据的第二图像。其中,当多幅第一图像的亮度不满足要求时,本步骤中分别使用调整后的与每幅第一图像对应的扫描参数重新扫描票据,得到多幅第二图像,其中,一幅第二图像与一幅亮度不满足要求的第一图像相对应,当多幅第一图像中仅有一幅第一图像的亮度不满足要求,本步骤中使用调整后的与该第一图像对应的扫描参数重新扫描票据,得到一幅第二图像,该第二图像与亮度不满足要求的第一图像对应。比如,步骤S410中对票据进行扫描后获取到的多幅第一图像分别为票据的白光反射图像、红外光反射图像、紫外光反射图像、白光透射图像、红外光透射图像、紫外光透射图像等六幅图像时,如果在步骤S420中判定白光反射图像的亮度不满足预设亮度要求,本步骤中,根据白光反射图像的亮度与白光反射图像对应的预设标准亮度的差值计算与白光反射图像对应的扫描参数调整值,并根据计算的扫描参数调整值调整白光反射图像对应的扫描参数,在重新扫描票据时,获取到第二图像,该第二图像为票据的白光反射图像。Optionally, when the plurality of first images are acquired after scanning the ticket in step S410, if it is determined that the brightness of a particular first image in the plurality of first images cannot meet the preset brightness requirement, the The brightness of the first image required by the preset brightness adjusts the corresponding scan parameter, and the ticket is re-scanned using the adjusted scan parameter to obtain the second image of the ticket. Wherein, when the brightness of the plurality of first images does not meet the requirement, in the step, the adjusted scan parameters corresponding to each of the first images are used to re-scan the ticket respectively to obtain a plurality of second images, wherein one second The image corresponds to a first image whose brightness does not meet the requirement. When only one of the plurality of first images has a brightness that does not meet the requirement, the adjusted scan parameter corresponding to the first image is used in this step. The ticket is rescanned to obtain a second image corresponding to the first image whose brightness does not satisfy the requirement. For example, the plurality of first images acquired after scanning the ticket in step S410 are respectively a white light reflection image, an infrared light reflection image, an ultraviolet light reflection image, a white light transmission image, an infrared light transmission image, an ultraviolet light transmission image, and the like. In the case of six images, if it is determined in step S420 that the brightness of the white light reflection image does not satisfy the preset brightness requirement, in this step, the difference between the brightness of the white light reflection image and the preset standard brightness corresponding to the white light reflection image is calculated and reflected by the white light. The scan parameter adjustment value corresponding to the image is adjusted, and the scan parameter corresponding to the white light reflection image is adjusted according to the calculated scan parameter adjustment value. When the ticket is rescanned, the second image is acquired, and the second image is a white light reflection image of the ticket.
本步骤中,还能够将票据由输送通道的出口送出输送通道,并提示用户再次将票据放入输送通道的入口,当检测到票据进入输送通道的入口时,再次对票据进行扫描,得到第二图像。In this step, the ticket can also be sent out of the delivery channel by the outlet of the conveying channel, and the user is prompted to put the ticket into the entrance of the conveying channel again. When the ticket is detected to enter the entrance of the conveying channel, the ticket is scanned again to obtain the second. image.
以图1中的票据图像获取装置为例,控制器11检测到票据扫描完毕后,控制输送装置13驱动票据沿前进方向继续移动,直至将票据由输送通道的出口送出输送通道。票据图像获取装置向用户发出再次放入票据的提示信息,比如,通过通信装置12向主机返回“将票据再次送入输送通道”,当用户接收到主机输出的提示信息时,将票据再次放入输送通道的入口,当控制器11检测到票据再次进入输送通道时,控制输送装置13和图像采集器14配合工作以重新扫描票据,得到第二图像。Taking the ticket image acquiring device in FIG. 1 as an example, after the controller 11 detects that the ticket scanning is completed, the control conveying device 13 drives the ticket to continue moving in the forward direction until the ticket is sent out of the conveying channel by the outlet of the conveying channel. The bill image obtaining device sends a prompt message to the user to re-enter the bill. For example, the communication device 12 returns a “return ticket to the transport channel” to the host. When the user receives the prompt information output by the host, the ticket is placed again. At the entrance of the delivery channel, when the controller 11 detects that the ticket has again entered the delivery channel, the control delivery device 13 and the image capture device 14 cooperate to rescan the ticket to obtain a second image.
本实施例的票据图像获取方法中,当获取到票据的第一图像后,判断第一 图像的亮度是否满足要求,若第一图像的亮度不满足要求,根据第一图像的亮度调整与图像亮度相关的扫描参数,并重新扫描票据,获取票据的第二图像。通过本实施例的票据图像获取方法,当由于票据类型发生变化导致获取的票据的第一图像的亮度不满足要求时,可以根据第一图像的亮度调整与图像亮度相关的扫描参数,由于使用调整后的扫描参数扫描得到的图像满足要求,因此重新扫描票据后获取的票据的第二图像的亮度满足要求,从而有效解决相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题。In the ticket image acquiring method of this embodiment, after acquiring the first image of the ticket, determining the first Whether the brightness of the image satisfies the requirement, if the brightness of the first image does not satisfy the requirement, the scanning parameter related to the brightness of the image is adjusted according to the brightness of the first image, and the ticket is re-scanned to obtain the second image of the ticket. With the ticket image obtaining method of the embodiment, when the brightness of the first image of the acquired ticket is not satisfied due to the change of the ticket type, the scanning parameter related to the image brightness may be adjusted according to the brightness of the first image, The image obtained by scanning the scanning parameter satisfies the requirement, so that the brightness of the second image of the ticket acquired after the re-scanning of the ticket satisfies the requirement, thereby effectively solving the problem that the ticket image acquiring device of the related art acquires an image of a different type of ticket. The image of the ticket arrived does not meet the required problem.
对应上述的票据图像获取方法,本实施例还提供了票据图像获取装置,图5是根据本实施例的票据图像获取装置的功能模块划分示意图,如图5所示,票据图像获取装置5包括:The present invention further provides a bill image acquisition device, and FIG. 5 is a schematic diagram of functional module partitioning of the bill image acquisition device according to the embodiment. As shown in FIG. 5, the bill image acquisition device 5 includes:
第一获取模块51,设置为对票据进行扫描,得到票据的第一图像;The first obtaining module 51 is configured to scan the ticket to obtain a first image of the ticket;
图像判断模块52,设置为判断该第一图像的亮度是否满足要求;The image determining module 52 is configured to determine whether the brightness of the first image meets the requirement;
参数调整模块53,设置为若图像判断模块52判定第一图像的亮度不满足要求,则根据第一图像的亮度调整与图像亮度相关的扫描参数,以使使用调整后的扫描参数扫描得到的图像满足要求;The parameter adjustment module 53 is configured to: if the image determination module 52 determines that the brightness of the first image does not meet the requirement, adjust the scan parameter related to the image brightness according to the brightness of the first image, so as to scan the image obtained by using the adjusted scan parameter. fulfil requirements;
第二获取模块54,设置为使用调整后的扫描参数重新扫描上述票据,得到上述票据的第二图像。The second obtaining module 54 is configured to re-scan the ticket using the adjusted scanning parameter to obtain a second image of the ticket.
考虑到票据扫描装置能够根据内部设置的任意一种光源扫描得到票据的反射图像或者票据的透射图像,并且还能够扫描票据的全部区域或者部分区域,得到票据的全部图像或者部分图像,上述第一获取模块51包括:扫描单元,设置为按照设定的扫描模式对票据进行扫描,得到票据的第一图像;其中,扫描单元包括设置子单元,设置子单元设置为控制设定光源发光照射票据和/或控制扫描票据的设定区域,该设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,该票据的设定区域包括票据的全部区域或者票据的部分区域。Considering that the ticket scanning device can scan the reflected image of the ticket or the transmission image of the ticket according to any one of the internally arranged light sources, and can also scan all or part of the area of the ticket to obtain all images or partial images of the ticket, the first The obtaining module 51 includes: a scanning unit configured to scan the ticket according to the set scan mode to obtain a first image of the ticket; wherein the scanning unit includes a setting subunit, and the setting subunit is configured to control the setting light source to illuminate the bill and And or controlling a setting area of the scanning ticket, the set light source comprises a reflected image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source. In either case, the set area of the ticket includes the entire area of the ticket or a partial area of the ticket.
上述参数调整模块53包括:亮度对比单元,设置为将第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据扫描参数调整值调整与图像亮度相关的扫描参数。该与图像亮度相关的扫描参数可以为第一图像对应 的光源的发光时间或者光电流的值,相应地,上述亮度对比单元包括调整子单元,设置为根据扫描参数调整值调整第一图像对应的光源的发光时间或者光电流的值。The parameter adjustment module 53 includes: a brightness comparison unit configured to compare and analyze the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjust a scan parameter related to the image brightness according to the scan parameter adjustment value. The scan parameter related to image brightness may correspond to the first image The illumination time of the light source or the value of the photocurrent, accordingly, the brightness comparison unit includes an adjustment subunit configured to adjust the illumination time or the value of the photocurrent of the light source corresponding to the first image according to the scan parameter adjustment value.
考虑到如图2所示的票据图像获取装置的具体结构,上述第二获取模块54包括:回退扫描单元,设置为控制票据回退至设定位置,使用调整后的扫描参数对票据进行扫描,得到票据的第二图像。In view of the specific structure of the ticket image obtaining apparatus shown in FIG. 2, the second acquiring module 54 includes: a back-off scanning unit configured to control the ticket to be retracted to the set position, and the ticket is scanned using the adjusted scan parameter. , get the second image of the ticket.
本实施例的票据图像获取装置中,当获取到票据的第一图像后,判断第一图像的亮度是否满足要求,若第一图像的亮度不满足要求,根据第一图像的亮度调整与图像亮度相关的扫描参数,并重新扫描票据,获取票据的第二图像。通过本实施例的票据图像获取装置,当由于票据类型发生变化导致获取的票据的第一图像的亮度不满足要求时,可以根据第一图像的亮度调整与图像亮度相关的扫描参数,由于使用调整后的扫描参数扫描得到的图像满足要求,因此重新扫描票据后获取的票据的第二图像的亮度满足要求,从而有效解决相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题。In the ticket image acquiring apparatus of this embodiment, after the first image of the ticket is acquired, it is determined whether the brightness of the first image satisfies the requirement, and if the brightness of the first image does not satisfy the requirement, the brightness adjustment and the image brightness according to the first image are performed. Related scan parameters and rescan the ticket to obtain a second image of the ticket. With the ticket image acquiring apparatus of the embodiment, when the brightness of the first image of the acquired ticket is not satisfied due to the change of the ticket type, the scanning parameter related to the image brightness may be adjusted according to the brightness of the first image, The image obtained by scanning the scanning parameter satisfies the requirement, so that the brightness of the second image of the ticket acquired after the re-scanning of the ticket satisfies the requirement, thereby effectively solving the problem that the ticket image acquiring device of the related art acquires an image of a different type of ticket. The image of the ticket arrived does not meet the required problem.
本实施例还提供了一种票据图像获取***,该***包括票据图像获取装置和主机,票据图像获取装置与主机进行数据交互;该票据图像获取装置可以为图1或2中的票据图像获取装置。The embodiment further provides a ticket image acquisition system, which includes a ticket image acquisition device and a host, and the ticket image acquisition device performs data interaction with the host; the ticket image acquisition device may be the ticket image acquisition device in FIG. 1 or 2. .
图6是根据本实施例的票据图像获取***的工作流程示意图,如图6所示,该方法包括S601~S605。FIG. 6 is a schematic diagram showing the workflow of the ticket image acquiring system according to the embodiment. As shown in FIG. 6, the method includes S601 to S605.
在S601中,票据图像获取装置对票据进行扫描,得到票据的第一图像,将第一图像上传至主机。In S601, the ticket image obtaining means scans the ticket to obtain a first image of the ticket, and uploads the first image to the host.
票据图像获取装置采用步骤S410所示方法获取票据的第一图像,并将第一图像上传至主机。以图1中的票据图像获取装置为例,票据图像获取装置1的控制器11控制通信装置12将第一图像上传至与该票据图像获取设备1连接的主机。The ticket image obtaining device acquires the first image of the ticket by the method shown in step S410, and uploads the first image to the host. Taking the ticket image acquiring device in FIG. 1 as an example, the controller 11 of the ticket image acquiring device 1 controls the communication device 12 to upload the first image to the host connected to the ticket image acquiring device 1.
在S602中,主机判断第一图像的亮度是否满足预设要求。In S602, the host determines whether the brightness of the first image satisfies a preset requirement.
主机接收票据图像获取装置上传的第一图像,并计算第一图像的亮度,根据第一图像的亮度与票据图像的预设标准亮度判断第一图像的亮度是否满足需求。The host receives the first image uploaded by the ticket image acquiring device, and calculates the brightness of the first image, and determines whether the brightness of the first image satisfies the requirement according to the brightness of the first image and the preset standard brightness of the ticket image.
在S603中,若主机判定第一图像的亮度不满足预设要求,则根据预设要求 以及第一图像的亮度计算扫描参数调整值,将扫描参数调整值发送至票据图像获取装置。In S603, if the host determines that the brightness of the first image does not meet the preset requirement, according to the preset requirement And the brightness calculation scan parameter adjustment value of the first image, and the scan parameter adjustment value is sent to the ticket image acquisition device.
当主机判定第一图像的亮度不满足要求时,根据第一图像的亮度与票据图像的预设标准亮度计算扫描参数调整值,然后向票据图像获取装置发送扫描参数调整值。主机还向票据图像获取装置发送重新扫描票据的控制命令。When the host determines that the brightness of the first image does not satisfy the requirement, the scan parameter adjustment value is calculated according to the brightness of the first image and the preset standard brightness of the ticket image, and then the scan parameter adjustment value is sent to the ticket image acquisition device. The host also sends a control command to re-scan the ticket to the ticket image acquisition device.
在S604中,票据图像获取装置根据扫描参数调整值调整与图像亮度相关的扫描参数,以使使用调整后的扫描参数扫描得到的图像满足要求。In S604, the ticket image acquiring means adjusts the scanning parameter related to the image brightness according to the scanning parameter adjustment value so that the image scanned using the adjusted scanning parameter satisfies the requirement.
当票据图像获取装置接收到主机发送的扫描参数调整值以及重新扫描票据的控制命令时,票据图像获取装置根据接收到的扫描参数调整值调整与图像亮度相关的扫描参数,其中,与图像亮度相关的扫描参数为第一图像对应的光源的发光时间或光电流的值。When the ticket image obtaining device receives the scan parameter adjustment value sent by the host and the control command for rescanning the ticket, the ticket image obtaining device adjusts the scan parameter related to the image brightness according to the received scan parameter adjustment value, wherein the image brightness is related to the image brightness The scan parameter is the light-emitting time or the value of the light current of the light source corresponding to the first image.
在S605中,票据图像获取装置使用调整后的扫描参数重新扫描票据,得到票据的第二图像,将第二图像上传至主机。In S605, the ticket image acquiring device re-scans the ticket using the adjusted scanning parameters to obtain a second image of the ticket, and uploads the second image to the host.
票据图像获取装置采用步骤S440所示的方法重新扫描票据,获取票据的第二图像,票据图像获取装置还将获取的第二图像上传至主机。The ticket image obtaining device re-scans the ticket by using the method shown in step S440 to obtain a second image of the ticket, and the ticket image acquiring device also uploads the acquired second image to the host.
本实施例的票据图像获取***中,票据图像装置在获取到票据的第一图像后,将第一图像上传至主机,主机判断第一图像的亮度是否满足要求,以及在第一图像的亮度不满足要求时,根据第一图像的亮度计算扫描参数调整值,并向票据图像获取装置发送扫描参数调整值以及重新扫描票据的控制命令,票据图像获取装置根据主机发送的扫描参数调整值调整扫描参数,并重新扫描票据。通过本实施例的票据图像获取***,能够有效解决相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题,并且将图像分析处理放置在主机端执行,可以减少票据图像获取装置的工作量,提高票据图像获取的效率。In the ticket image acquiring system of this embodiment, after acquiring the first image of the ticket, the ticket image device uploads the first image to the host, and the host determines whether the brightness of the first image satisfies the requirement, and the brightness of the first image is not When the requirement is met, the scan parameter adjustment value is calculated according to the brightness of the first image, and the scan parameter adjustment value and the control command for rescanning the ticket are sent to the ticket image acquisition device, and the ticket image acquisition device adjusts the scan parameter according to the scan parameter adjustment value sent by the host. And rescan the ticket. With the ticket image acquisition system of the present embodiment, it is possible to effectively solve the problem that the acquired ticket image cannot satisfy the requirement when acquiring the image of the different types of the ticket image acquiring device of the related art, and the image analysis processing is placed on the host. End execution can reduce the workload of the ticket image acquisition device and improve the efficiency of ticket image acquisition.
本实施例所提供的票据图像获取装置可以为设备上的特定硬件或者安装于设备上的软件或固件等。本实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,前述描述的***、装置和单元的工作过程,均可以参考上述方法实施例中的对应过程,在此不再赘述。 The ticket image obtaining device provided in this embodiment may be specific hardware on the device or software or firmware installed on the device. The implementation principle and the technical effects of the device provided in this embodiment are the same as those in the foregoing method embodiment. For the sake of brief description, where the device embodiment is not mentioned, reference may be made to the corresponding content in the foregoing method embodiment. A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the working processes of the system, the device and the unit described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本公开所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本公开提供的实施例中的多个功能单元可以集成在一个处理单元中,也可以是多个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, a plurality of functional units in the embodiment provided by the present disclosure may be integrated into one processing unit, or a plurality of units may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多条指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,该计算机存储介质可以是暂态存储介质,也可以是非暂态存储介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such an understanding, a portion of the technical solution of the present disclosure that contributes in essence or to the related art or a part of the technical solution may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in this embodiment. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store a program code. The computer storage medium may be a transitory storage medium or a non-transitory storage medium.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦特定的一项在一个附图中被定义,则在随后的附图中不需要对该项进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once a particular item is defined in one figure, the item is not further defined in the subsequent figures and In addition, the terms "first", "second", "third", etc. are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
工业实用性Industrial applicability
本公开在由于票据类型发生变化导致获取的第一图像的亮度不满足要求时, 可以根据第一图像的亮度调整与图像亮度相关的扫描参数,由于使用调整后的扫描参数扫描得到的图像满足要求,因此重新扫描票据后获取的票据的第二图像满足要求,从而有效解决相关技术的票据图像获取装置在获取不同类型的票据的图像时,存在获取到的票据图像不能满足要求的问题。 The present disclosure, when the brightness of the first image acquired due to a change in the type of the ticket does not satisfy the requirement, The scan parameter related to the brightness of the image may be adjusted according to the brightness of the first image. Since the image scanned by using the adjusted scan parameter satisfies the requirement, the second image of the ticket acquired after re-scanning the ticket satisfies the requirement, thereby effectively solving the related technology. When the image of the ticket image acquiring device acquires images of different types of tickets, there is a problem that the acquired document image cannot satisfy the requirements.

Claims (14)

  1. 一种票据图像获取方法,包括:A method for acquiring a bill image, comprising:
    对票据进行扫描,得到所述票据的第一图像;Scanning the ticket to obtain a first image of the ticket;
    判断所述第一图像的亮度是否满足所述预设要求;Determining whether the brightness of the first image meets the preset requirement;
    若不满足,则根据所述预设要求以及所述第一图像的亮度,调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足所述预设要求;以及If not, the scan parameter related to the brightness of the image is adjusted according to the preset requirement and the brightness of the first image, so that the image scanned by using the adjusted scan parameter satisfies the preset requirement. ;as well as
    使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像。The ticket is rescanned using the adjusted scan parameters to obtain a second image of the ticket.
  2. 根据权利要求1所述的方法,其中,对票据进行扫描,得到所述票据的第一图像,包括:The method of claim 1 wherein scanning the ticket to obtain a first image of the ticket comprises:
    按照设定的扫描模式对所述票据进行扫描,得到所述票据的第一图像;Scanning the ticket according to the set scan mode to obtain a first image of the ticket;
    其中,所述设定的扫描模式包括控制设定光源发光照射所述票据和控制扫描所述票据的设定区域中的至少一项,所述设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,所述票据的设定区域包括所述票据的全部区域或者所述票据的部分区域。Wherein the set scan mode comprises at least one of controlling a set light source to illuminate the ticket and controlling a setting area for scanning the ticket, the set light source comprising a reflected image white light source and a reflected image infrared light a light source, a reflected image ultraviolet light source, a transmission image white light source, a transmission image infrared light source, and a transmission image ultraviolet light source, wherein the set area of the ticket includes all areas of the ticket or portions of the ticket region.
  3. 根据权利要求1所述的方法,其中,根据所述预设要求以及所述第一图像的亮度,调整与图像的亮度相关的扫描参数,包括:The method of claim 1, wherein adjusting scan parameters related to brightness of the image according to the preset requirement and the brightness of the first image comprises:
    将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数。Comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjusting the scan parameter related to the brightness of the image according to the scan parameter adjustment value.
  4. 根据权利要求3所述的方法,其中,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数,包括:The method according to claim 3, wherein adjusting the scan parameter related to the brightness of the image according to the scan parameter adjustment value comprises:
    根据所述扫描参数调整值调整所述第一图像对应的光源的发光时间或者光电流的值。Adjusting a lighting time of the light source corresponding to the first image or a value of the photo current according to the scanning parameter adjustment value.
  5. 根据权利要求3所述的方法,其中,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,包括:The method according to claim 3, wherein comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value comprises:
    根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像的亮度与所述预设标准亮度的差值,计算得到所述扫描参数调整值。The scan parameter adjustment value is calculated according to a proportional relationship between a brightness of the first image and the preset standard brightness or a difference between a brightness of the first image and the preset standard brightness.
  6. 根据权利要求3所述的方法,其中,将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,包括:The method according to claim 3, wherein comparing the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value comprises:
    根据所述第一图像的亮度与所述预设标准亮度的比例关系或所述第一图像 的亮度与所述预设标准亮度的差值,通过查询预先存储的对照表得到所述扫描参数调整值。And according to the ratio of the brightness of the first image to the preset standard brightness or the first image The difference between the brightness of the brightness and the preset standard brightness is obtained by querying a pre-stored comparison table.
  7. 根据权利要求1所述的方法,其中,所述预设要求包括图像的亮度与预设标准亮度之间的差值在预设范围内,或者,所述预设要求包括所述图像的亮度在预设数值范围内。The method according to claim 1, wherein the preset requirement comprises that a difference between a brightness of the image and a preset standard brightness is within a preset range, or the preset requirement includes that the brightness of the image is Within the preset value range.
  8. 根据权利要求1至7任一项所述的方法,其中,使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像,包括:The method according to any one of claims 1 to 7, wherein rescanning the ticket using the adjusted scan parameter to obtain a second image of the ticket comprises:
    控制所述票据回退至设定位置,使用调整后的所述扫描参数对所述票据进行扫描,得到所述票据的第二图像。Controlling the ticket to fall back to the set position, and scanning the ticket using the adjusted scan parameter to obtain a second image of the ticket.
  9. 一种票据图像获取装置,包括:A bill image acquiring device includes:
    第一获取模块,设置为对票据进行扫描,得到所述票据的第一图像;a first obtaining module, configured to scan the ticket to obtain a first image of the ticket;
    图像判断模块,设置为判断所述第一图像的亮度是否满足预设要求;The image determining module is configured to determine whether the brightness of the first image meets a preset requirement;
    参数调整模块,设置为若所述图像判断模块判定所述第一图像的亮度不满足预设要求,则根据所述预设要求以及所述第一图像的亮度,调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足所述预设要求;以及The parameter adjustment module is configured to: if the image determining module determines that the brightness of the first image does not meet the preset requirement, adjust the scan related to the brightness of the image according to the preset requirement and the brightness of the first image a parameter such that an image scanned using the adjusted scan parameter satisfies the preset requirement;
    第二获取模块,设置为使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像。The second obtaining module is configured to re-scan the ticket using the adjusted scanning parameter to obtain a second image of the ticket.
  10. 根据权利要求9所述的装置,其中,所述第一获取模块包括:The apparatus of claim 9, wherein the first obtaining module comprises:
    扫描单元,设置为按照设定的扫描模式对所述票据进行扫描,得到所述票据的第一图像;a scanning unit configured to scan the ticket according to a set scan mode to obtain a first image of the ticket;
    其中,所述扫描单元包括设置子单元,所述设置子单元设置为控制设定光源发光照射所述票据和控制扫描所述票据的设定区域中的至少一项,所述设定光源包括反射图像白光光源、反射图像红外光光源、反射图像紫外光光源、透射图像白光光源、透射图像红外光光源和透射图像紫外光光源中的任意一种,所述票据的设定区域包括所述票据的全部区域或者所述票据的部分区域。Wherein the scanning unit comprises a setting subunit configured to control at least one of setting a light source to illuminate the ticket and controlling a scanning area for scanning the ticket, the setting light source comprising a reflection An image white light source, a reflected image infrared light source, a reflected image ultraviolet light source, a transmitted image white light source, a transmissive image infrared light source, and a transmissive image ultraviolet light source, wherein the set area of the ticket includes the ticket All areas or parts of the ticket.
  11. 根据权利要求9所述的装置,其中,所述参数调整模块包括:The apparatus of claim 9, wherein the parameter adjustment module comprises:
    亮度对比单元,设置为将所述第一图像的亮度与预设标准亮度进行对比分析,得到扫描参数调整值,根据所述扫描参数调整值调整所述与图像的亮度相关的扫描参数。 The brightness comparison unit is configured to compare and analyze the brightness of the first image with a preset standard brightness to obtain a scan parameter adjustment value, and adjust the scan parameter related to the brightness of the image according to the scan parameter adjustment value.
  12. 根据权利要求9至11任一项所述的装置,其中,所述第二获取模块包括:The apparatus according to any one of claims 9 to 11, wherein the second acquisition module comprises:
    回退扫描单元,设置为控制所述票据回退至设定位置,使用调整后的所述扫描参数对所述票据进行扫描,得到所述票据的第二图像。The rollback scanning unit is configured to control the ticket to fall back to the set position, and scan the ticket by using the adjusted scan parameter to obtain a second image of the ticket.
  13. 一种票据图像获取***,包括票据图像获取装置和主机,所述票据图像获取装置与所述主机通信连接,可进行数据交互;A bill image obtaining system, comprising a bill image acquiring device and a host, wherein the bill image acquiring device is communicably connected to the host, and can perform data interaction;
    所述票据图像获取装置对票据进行扫描,得到所述票据的第一图像,将所述第一图像上传至所述主机;The bill image obtaining device scans the ticket to obtain a first image of the ticket, and uploads the first image to the host;
    所述主机判断所述第一图像的亮度是否满足要求;The host determines whether the brightness of the first image meets a requirement;
    若所述主机判定所述第一图像的亮度不满足要求,则根据所述第一图像的亮度计算扫描参数调整值,将所述扫描参数调整值发送至所述票据图像获取装置;If the host determines that the brightness of the first image does not meet the requirement, calculating a scan parameter adjustment value according to the brightness of the first image, and transmitting the scan parameter adjustment value to the ticket image acquisition device;
    所述票据图像获取装置根据所述扫描参数调整值调整与图像的亮度相关的扫描参数,以使使用调整后的所述扫描参数扫描得到的图像满足要求;The bill image obtaining device adjusts a scan parameter related to the brightness of the image according to the scan parameter adjustment value, so that an image scanned using the adjusted scan parameter satisfies a requirement;
    所述票据图像获取装置使用调整后的所述扫描参数重新扫描所述票据,得到所述票据的第二图像,将所述第二图像上传至所述主机。The ticket image obtaining device re-scans the ticket using the adjusted scan parameter to obtain a second image of the ticket, and uploads the second image to the host.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-8任一项所述的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-8.
PCT/CN2017/088294 2016-06-17 2017-06-14 Ticket image acquisition method and ticket image acquisition apparatus and system WO2017215613A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610436960.1 2016-06-17
CN201610436960.1A CN107516369B (en) 2016-06-17 2016-06-17 Bill images acquisition methods and bill images acquisition device, system

Publications (1)

Publication Number Publication Date
WO2017215613A1 true WO2017215613A1 (en) 2017-12-21

Family

ID=60662963

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088294 WO2017215613A1 (en) 2016-06-17 2017-06-14 Ticket image acquisition method and ticket image acquisition apparatus and system

Country Status (2)

Country Link
CN (1) CN107516369B (en)
WO (1) WO2017215613A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977939A (en) * 2019-04-16 2019-07-05 武汉科技大学 A kind of automatic acquisition device of bill images based on machine vision and its acquisition methods
CN110348262A (en) * 2019-06-20 2019-10-18 苏州视印智能***有限公司 A kind of scanning device, barcode scanning platforms automatic capture system and method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108198353B (en) * 2018-01-24 2021-02-02 深圳怡化电脑股份有限公司 Control method and device for bill issuing equipment and bill issuing equipment
CN111091499B (en) * 2018-10-24 2023-05-23 方正国际软件(北京)有限公司 Mobile terminal image correction method and device
CN115171267B (en) * 2022-09-07 2022-12-16 艾斯特国际安全技术(深圳)有限公司 Certificate management control method, device and system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691735A (en) * 2004-04-30 2005-11-02 明基电通股份有限公司 Method and apparatus for improving scan image quality by utilizing preview scan
US20060126128A1 (en) * 2004-12-15 2006-06-15 Lexmark International, Inc. Scanning assembly
CN103021069A (en) * 2012-11-21 2013-04-03 深圳市兆图电子有限公司 High-speed note image acquisition processing system and acquisition processing method thereof
CN105227802A (en) * 2015-09-29 2016-01-06 深圳大学 A kind of self-adaptation control method towards best quality image rapid scanning and system
CN105243726A (en) * 2014-07-11 2016-01-13 威海新北洋荣鑫科技股份有限公司 Method and device for acquiring digital image data
CN105374105A (en) * 2015-10-16 2016-03-02 浙江依特诺科技股份有限公司 Method used by mobile terminal for identifying authenticity of banknote

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200944627Y (en) * 2006-01-26 2007-09-05 厦门南达数码科技有限公司 Multifunctional imaging instrument
JP5314419B2 (en) * 2006-03-16 2013-10-16 株式会社ユニバーサルエンターテインメント Bill authenticity judging method and bill authenticity judging device
JP2011028512A (en) * 2009-07-24 2011-02-10 Toshiba Corp Method for creating dictionary for fitness determination of paper sheet, paper sheet processing apparatus, and paper sheet processing method
CN101908330B (en) * 2010-07-26 2012-05-02 武汉大学 Method for display equipment with narrow dynamic range to reproduce image with wide dynamic range
JP6082557B2 (en) * 2012-09-28 2017-02-15 グローリー株式会社 Spectral sensor optical system adjustment method, optical system adjustment apparatus, and paper sheet identification apparatus
CN203433576U (en) * 2013-08-27 2014-02-12 华南理工大学 CIS-based multispectral bill image capturing device
CN103927814B (en) * 2014-04-10 2016-04-27 尤新革 The currency counting and detecting machine of automatic calibration brightness
CN105225336B (en) * 2014-05-28 2018-02-02 威海新北洋荣鑫科技股份有限公司 Money order handling equipment and draft processing method
US9691211B2 (en) * 2014-07-03 2017-06-27 Seiko Epson Corporation Image processing apparatus, image processing method, and program
CN105654608B (en) * 2014-11-10 2018-05-22 山东新北洋信息技术股份有限公司 Bill handling method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691735A (en) * 2004-04-30 2005-11-02 明基电通股份有限公司 Method and apparatus for improving scan image quality by utilizing preview scan
US20060126128A1 (en) * 2004-12-15 2006-06-15 Lexmark International, Inc. Scanning assembly
CN103021069A (en) * 2012-11-21 2013-04-03 深圳市兆图电子有限公司 High-speed note image acquisition processing system and acquisition processing method thereof
CN105243726A (en) * 2014-07-11 2016-01-13 威海新北洋荣鑫科技股份有限公司 Method and device for acquiring digital image data
CN105227802A (en) * 2015-09-29 2016-01-06 深圳大学 A kind of self-adaptation control method towards best quality image rapid scanning and system
CN105374105A (en) * 2015-10-16 2016-03-02 浙江依特诺科技股份有限公司 Method used by mobile terminal for identifying authenticity of banknote

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977939A (en) * 2019-04-16 2019-07-05 武汉科技大学 A kind of automatic acquisition device of bill images based on machine vision and its acquisition methods
CN109977939B (en) * 2019-04-16 2023-11-10 武汉科技大学 Automatic bill image acquisition device and method based on machine vision
CN110348262A (en) * 2019-06-20 2019-10-18 苏州视印智能***有限公司 A kind of scanning device, barcode scanning platforms automatic capture system and method

Also Published As

Publication number Publication date
CN107516369A (en) 2017-12-26
CN107516369B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
WO2017215613A1 (en) Ticket image acquisition method and ticket image acquisition apparatus and system
EP2706511B1 (en) Image reading apparatus and sheet processing apparatus
EP2889846B1 (en) Paper money identification method and device
US7859726B2 (en) Image reading apparatus
WO2014075452A1 (en) Paper currency number recognition apparatus and recognition method
US10356269B2 (en) Image reading apparatus and original size detection method
US10771636B2 (en) Image processing apparatus for detecting a noise line based on noise pixels in the shadow region
US10516798B2 (en) Image reading apparatus for detecting a shadow region formed by end of conveyed document
WO2016184336A1 (en) Paper money detection method and paper money processing device
US20190281186A1 (en) Image reading apparatus for detecting a dirt substance from a white reference image and a document image
TW201545534A (en) Sheet-fed scanner and image scanning method using the same
JP6338554B2 (en) Image processing apparatus, image processing method, and program
US20210120140A1 (en) Image reading apparatus
CN102158623A (en) Image reading apparatus
US10523826B2 (en) Image processing apparatus for generating a warning according to dirt degree
JP6590991B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN107392072B (en) Bill two-dimensional code image acquisition method and device based on multiple wavelengths and multiple light sources
US11303774B2 (en) Image reading device and method for controlling image reading device
US8422785B2 (en) Image processing apparatus, image processing method, and program
JP4645511B2 (en) Image reading apparatus and image reading method
US10250770B2 (en) Image reading device, image forming apparatus, and method for controlling image reading device
JP6830325B2 (en) Image reader
TW571561B (en) Double-side image scanner module and scanning method of the same
WO2018077025A1 (en) Image data acquisition method and apparatus
JP6149361B2 (en) Document reading apparatus, image forming apparatus including the document reading apparatus, and document reading method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17812724

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17812724

Country of ref document: EP

Kind code of ref document: A1