CN107464337B - Image acquisition method, image acquisition device and terminal equipment - Google Patents
Image acquisition method, image acquisition device and terminal equipment Download PDFInfo
- Publication number
- CN107464337B CN107464337B CN201710607662.9A CN201710607662A CN107464337B CN 107464337 B CN107464337 B CN 107464337B CN 201710607662 A CN201710607662 A CN 201710607662A CN 107464337 B CN107464337 B CN 107464337B
- Authority
- CN
- China
- Prior art keywords
- acquisition
- image
- acquired
- area
- mode
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing 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/20—Testing patterns thereon
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)
- Inspection Of Paper Currency And Valuable Securities (AREA)
Abstract
The invention is suitable for the technical field of image acquisition, and provides an image acquisition method, an image acquisition device, terminal equipment and a computer readable storage medium, wherein the image acquisition method comprises the following steps: the method comprises the steps of detecting whether the image of a first acquisition area of an object to be acquired is acquired or not, switching a current acquisition mode into a second acquisition mode after the image acquisition of the first acquisition area is completed, acquiring the image of the second acquisition area of the object to be acquired in the second acquisition mode, and outputting acquired image data after the image acquisition of the object to be acquired is completed. The second acquisition area of the image acquired by the image acquisition method provided by the invention has better quality, and the image acquisition method provided by the invention is applied to the identification of the paper money, so that the image characteristics of the second acquisition area on the paper money can be better identified, and the accuracy of the identification of the paper money is improved.
Description
Technical Field
The invention belongs to the technical field of image acquisition, and particularly relates to an image acquisition method, an image acquisition device, terminal equipment and a computer-readable storage medium.
Background
At present, when paper money is identified, generally, an image of the whole paper money is acquired through an image sensor, and then anti-counterfeiting feature points of different position areas are acquired from the acquired image of the whole paper money for identification, so as to identify the paper money as normal paper money or abnormal paper money, for example, an image of a fluorescent 100 area and an image of a crown word number area on the paper money (Baiyuan civil currency) are often required to be identified, and the paper money is determined as normal paper money or abnormal paper money according to the identification result of the image of the fluorescent 100 area and the identification result of the image of the crown word number area, however, because the fluorescent brightness of the image of the fluorescent 100 area and the fluorescent brightness of the image of the crown word number area under the same light are not the same, the image of the whole paper money acquired by the existing image acquisition method is clearer, but the image clarity of the acquired fluorescent 100 area is not enough, the quality is not high, and the accuracy of paper money identification is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide an image capturing method, an image capturing apparatus, a terminal device, and a computer readable storage medium, so as to improve the quality of a captured image, and can be applied to banknote recognition to improve the accuracy of banknote recognition.
A first aspect of an embodiment of the present invention provides an image acquisition method, including:
and detecting whether the image of the first acquisition area of the object to be acquired is acquired.
And after the image acquisition of the first acquisition area is finished, switching the current acquisition mode into a second acquisition mode.
And acquiring an image of a second acquisition area of the object to be acquired in the second acquisition mode.
And after the image acquisition of the object to be acquired is finished, outputting the acquired image data of the object to be acquired.
The image acquisition time of the first acquisition area is prior to the image acquisition time of the second acquisition area, the exposure intensity and the exposure time corresponding to the second acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the acquisition mode before switching, and the exposure intensity and the exposure time corresponding to the second acquisition mode are matched with the reference image corresponding to the second acquisition area.
A second aspect of an embodiment of the present invention provides an image capturing apparatus, including:
the first detection unit is used for detecting whether the image of the first acquisition area of the object to be acquired is acquired or not.
And the switching unit is used for switching the current acquisition mode into a second acquisition mode after the first detection unit detects that the image acquisition of the first acquisition area is completed.
The image acquisition unit is used for acquiring the image of the first acquisition area in the current acquisition mode before the switching unit switches the current acquisition mode into the second acquisition mode, and acquiring the image of the second acquisition area of the object to be acquired in the second acquisition mode after the switching unit switches the current acquisition mode into the second acquisition mode.
And the output unit is used for outputting the image data of the object to be acquired, which is acquired by the image acquisition unit, after the image acquisition of the object to be acquired is finished.
The image acquisition time of the first acquisition area is prior to the image acquisition time of the second acquisition area, the exposure intensity and the exposure time corresponding to the second acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the acquisition mode before switching, and the exposure intensity and the exposure time corresponding to the second acquisition mode are matched with the reference image corresponding to the second acquisition area.
A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the image acquisition methods when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the image acquisition method according to any one of the preceding claims.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the invention detects whether the image of the first collection area (such as a fluorescence 100 area) of the object to be collected (such as the hundred-yuan RMB) is collected or not, after the image collection of the first collection area is finished, the current collection mode is switched to the second collection mode, the image of the second collection area (such as a crown word area) of the object to be collected is collected in the second collection mode, because the exposure intensity and the exposure time corresponding to the second collection mode are matched with the reference image corresponding to the second collection area, the image of the second collection area collected in the second collection mode has better imaging effect, the second collection area of the image collected by applying the image collection method provided by the invention has better quality, the image collection method provided by the invention is applied to the identification of the paper currency, and the image characteristics of the second collection area on the paper currency can be better identified, thereby improving the accuracy of the paper money identification.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of an image acquisition method provided by an embodiment of the invention;
fig. 2 is a schematic structural diagram of an image capturing device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows a flowchart of an image acquisition method provided by an embodiment of the present invention, which is detailed as follows:
s101, detecting whether the image of a first acquisition area of an object to be acquired is acquired.
Specifically, the method includes the steps of acquiring an acquired surface of an object to be acquired line by line through an image sensor to obtain image data of the acquired surface of the object to be acquired, and detecting whether acquisition of an image of a first acquisition area of the object to be acquired is completed or not after acquisition of the image of the object to be acquired is started.
In an embodiment of the present invention, the first acquisition region and the second acquisition region are two regions on the acquired surface of the object to be acquired, and an image acquisition time of the first acquisition region is prior to an image acquisition time of the second acquisition region.
Exemplarily, the centaur renowned currency is used as an object to be acquired, the fluorescent 100 area of the centaur renowned currency is used as a first acquisition area, the crown word number area of the centaur renowned currency is used as a second acquisition area, specifically, a Contact Image Sensor (CIS) is used for scanning and acquiring the centaur renowned currency line by line, and after Image acquisition of the surface of the centaur renowned currency is started, whether the Image acquisition of the fluorescent 100 area is completed or not is detected.
Specifically, an object to be collected moves at a constant speed in a transmission channel along a certain direction at a preset speed, paired sensors are arranged at preset positions of the transmission channel, when the object to be collected passes through the preset positions, the paired sensors are shielded, the position of a scanning head of the CIS corresponds to the preset positions, when the object to be collected reaches the preset positions, the scanning head of the CIS starts to work, and line-by-line scanning collection of the object to be collected is started. It should be noted that the preset speed and the preset position may be set according to actual requirements, and are not limited in particular herein.
According to the moving speed of the object to be acquired and the distance from the first line of the hundred-yuan RMB to the last line of the fluorescent 100 area on the reference image of the hundred-yuan RMB, the time for the scanning head of the CIS to complete the scanning of the last line of the fluorescent 100 area can be calculated by using a distance speed time formula, and whether the image of the first acquisition area of the object to be acquired is acquired or not is detected by detecting the scanning time.
In the embodiment of the present invention, different acquisition modes at least correspond to exposure intensities and exposure times that are not all the same, the exposure intensity and the exposure time corresponding to the second acquisition mode are matched with a reference image (an image with a better imaging effect and high quality) corresponding to the second acquisition region, specifically, the second acquisition mode is a better acquisition mode obtained by performing acquisition experiments on the second acquisition region of the object to be acquired for multiple times, and in the second acquisition mode, the pattern acquisition imaging effect of the second acquisition region is good, the image quality is high, further image processing and recognition are easy to perform, and in a corresponding manner, a first acquisition mode matched with the reference image of the object in the first acquisition region can be obtained.
For example, each of the above-mentioned acquisition modes may be experimentally adjusted according to the following manner, so as to obtain a better first acquisition mode or second acquisition mode, specifically, the exposure intensity of the exposure lamp LED is increased or decreased by setting a DC parameter of the constant current source of the CIS chip, and the exposure time of the exposure lamp LED may be prolonged or shortened by setting a GS parameter of the constant current source of the CIS chip. Specifically, after parameters corresponding to each of the first acquisition mode and the second acquisition mode are determined, when a preset trigger condition is reached through a Field-Programmable Gate Array (FPGA), the parameters are configured correspondingly, so as to realize switching of the acquisition modes.
It should be noted that, taking the moving direction of the object to be acquired in the transmission channel as a reference axis when acquiring the image, a certain distance is provided between the first acquisition region and the second acquisition region of the object to be acquired on the reference axis, and a time interval from the time when the image sensor finishes acquiring the image of the first acquisition region to the time when the image sensor starts acquiring the image of the second acquisition region is not less than a switching time for switching the current acquisition mode to the second acquisition mode.
Optionally, before S101, an image of the object to be acquired is acquired in a first acquisition mode, so as to obtain a better image of a first acquisition region of the object to be acquired, which is acquired in the first acquisition mode, where exposure intensity and exposure time corresponding to the first acquisition mode are not all the same as exposure intensity and exposure time corresponding to the second acquisition mode, and the exposure intensity and exposure time corresponding to the first acquisition mode are matched with a reference image corresponding to the first acquisition region.
Optionally, before S101, an inclination angle of the acquired surface of the object to be acquired with respect to a preset axis is detected, and whether the image of the first acquisition area of the object to be acquired is determined according to the inclination angle and a preset acquisition speed.
In this embodiment, the preset axis is an axis perpendicular to the moving direction of the object to be acquired, the image sensor is parallel to the preset axis, and since the displacement or the relative displacement of the object to be acquired has a constant speed, when an edge of the acquired surface of the object to be acquired, which is acquired first, is parallel to the preset axis, the inclination angle of the acquired surface of the object to be acquired relative to the preset axis is 0. The preset acquisition speed is the moving speed of the object to be acquired relative to the image acquisition sensor, and can be flexibly set according to actual needs. The position of the first acquisition area on the object to be acquired is relatively fixed and unchanged, and whether the image of the first acquisition area of the object to be acquired is acquired or not can be determined by utilizing a path time speed formula according to the inclination angle of the acquired surface of the first acquisition area of the object to be acquired relative to a preset axis and a preset acquisition speed.
Optionally, the inclination angle of the acquired surface of the object to be acquired relative to the preset axis is determined by acquiring the time difference between two sensors in the pair of sensors sensing the object to be acquired and the preset acquisition speed; when the time difference that two sensors in the pair of sensors sense the object to be acquired is 0, determining that the inclination angle of the acquired surface of the object to be acquired relative to the preset axis is 0.
In this embodiment, a straight line where the connecting lines of the paired sensors are located is parallel to the preset axis, and when the object to be collected moves to the position of the paired sensors, the paired sensors are shielded (sense the object to be collected), and a shielded signal is sent to indicate that the object to be collected reaches the corresponding position. If the time difference that two sensors in the pair of sensors sense the object to be acquired is 0, it indicates that one side of the object to be acquired, on which image acquisition is performed first, is parallel to the preset axis, that is, the inclination angle of the acquired surface of the object to be acquired relative to the preset axis is 0.
If the time difference that two sensors in a pair of sensors sense the object to be acquired is not 0, it indicates that one side (the side at which the acquired surface of the object to be acquired is positioned at the front in the moving direction) of the object to be acquired which carries out image acquisition in advance has a certain inclination angle with the preset axis, according to the moving speed of the object to be acquired and the time difference that two sensors in a pair of sensors sense the object to be acquired, the inclination length can be calculated by using a path speed time formula, and then the inclination angle of the acquired surface of the object to be acquired relative to the preset axis can be calculated by using a trigonometric formula in combination with the distance between two sensors in a pair of sensors.
Optionally, when the inclination angle is greater than a preset threshold, the image of the object to be acquired is acquired in a current acquisition mode, and the acquired image data of the object to be acquired is output after the image of the object to be acquired is acquired.
And S102, after the image acquisition of the first acquisition area is finished, switching the current acquisition mode into a second acquisition mode.
Specifically, after image acquisition of the object to be acquired is started, and after image acquisition of a first acquisition region of the object to be acquired is detected to be completed, the current acquisition mode is switched to the second acquisition mode.
It should be noted that the current acquisition mode is an acquisition mode when an image of the object to be acquired starts to be acquired, that is, an acquisition mode for acquiring an image of the first acquisition region.
S103, acquiring an image of a second acquisition area of the object to be acquired in the second acquisition mode.
Specifically, after the current acquisition mode is switched to the second acquisition mode, the image of the second acquisition region of the object to be acquired is acquired in the second acquisition mode, so as to obtain the image data of the second acquisition region in the second acquisition mode.
Illustratively, according to the contrast and brightness of the image of the area of the crown word number of the hundred-yuan RMB, the area of the crown word number of the hundred-yuan RMB is subjected to multiple times of experimental acquisition, and the image of the area of the crown word number of the hundred-yuan RMB can be obtained through multiple times of adjustment of corresponding parameters and comparison of the acquired images, so that the image of the area of the crown word number of the hundred-yuan RMB with better image quality is taken as a second acquisition mode, and similarly, a first acquisition mode corresponding to the image of the area of the fluorescence 100 on the hundred-yuan RMB can be determined. When the image acquisition is carried out on the hundred-yuan RMB, the image acquisition of the hundred-yuan RMB is started in a first acquisition mode, and after the acquisition of the image of the fluorescence 100 area on the hundred-yuan RMB is detected, the acquisition mode is switched to a second acquisition mode, so that the image of the fluorescence 100 area is acquired in the first acquisition mode and the image of the crown word number area is acquired in the second acquisition mode on the finally acquired image of the hundred-yuan RMB, and therefore, the quality and the imaging effect are better, and further identification of the area image is facilitated.
And S104, outputting the acquired image data of the object to be acquired after the image of the object to be acquired is acquired.
Specifically, the output image data of the object to be acquired includes image data of a second acquisition region acquired in a second acquisition mode and image data of a first acquisition region acquired in a previous acquisition mode.
The image acquisition time of the first acquisition area is prior to the image acquisition time of the second acquisition area, the exposure intensity and the exposure time corresponding to the second acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the acquisition mode before switching, and the exposure intensity and the exposure time corresponding to the second acquisition mode are matched with the reference image corresponding to the second acquisition area.
In the embodiment of the invention, the centy renowned currency is taken as an object to be collected, the characteristic recognition is carried out according to the image of the fluorescence 100 area and the image of the crown word number area on the collected image of the centy renowned currency, if the image quality of any one of the two areas on the whole collected image is poor or the image is not clear, the efficiency and the accuracy of the recognition of the paper currency can be influenced, and when the image of the fluorescence 100 area and the image of the crown word number area on the whole collected image have better quality or imaging effect, the efficiency and the accuracy of the recognition of the paper currency can be improved.
Optionally, after the image acquisition of the first acquisition region is completed in the first acquisition mode, the acquired image data of the first acquisition region is output, and after the image acquisition of the second acquisition region is completed in the second acquisition mode, the acquired image data of the second acquisition region is output.
In this embodiment, since the first acquisition mode is adopted to acquire the image of the first acquisition region and the second acquisition mode is adopted to acquire the image of the second acquisition region, the acquired image data of the first acquisition region can be output after the image acquisition of the first acquisition region is completed; and after the image acquisition of the second acquisition area is finished in a second acquisition mode, outputting the acquired image data of the second acquisition area, thereby improving the output speed of the acquired image. The positions of the first acquisition area and the second acquisition area on the object to be acquired are fixed, so that the acquisition completion time of the first acquisition area and the acquisition completion time of the second acquisition area can be respectively determined according to the preset acquisition speed and the positions of the first acquisition area and the second acquisition area.
The invention detects whether the image of the first collection area (such as a fluorescence 100 area) of the object to be collected (such as the hundred-yuan RMB) is collected or not, after the image collection of the first collection area is finished, the current collection mode is switched to the second collection mode, the image of the second collection area (such as a crown word area) of the object to be collected is collected in the second collection mode, because the exposure intensity and the exposure time corresponding to the second collection mode are matched with the reference image corresponding to the second collection area, the image of the second collection area collected in the second collection mode has better imaging effect, the second collection area of the image collected by applying the image collection method provided by the invention has better quality, the image collection method provided by the invention is applied to the identification of the paper currency, and the image characteristics of the second collection area on the paper currency can be better identified, thereby improving the accuracy of the paper money identification.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 2 shows a schematic structural diagram of an image capturing device provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which are detailed as follows:
the image capturing apparatus 2 includes: a first detection unit 21, a switching unit 22, an image acquisition unit 23 and an output unit 24.
The first detection unit 21 is configured to detect whether the image of the first acquisition area of the object to be acquired is acquired.
A switching unit 22, configured to switch the current acquisition mode to a second acquisition mode after the first detecting unit 21 detects that the image acquisition of the first acquisition area is completed.
An image acquisition unit 23, configured to acquire the image of the first acquisition region in the current acquisition mode before the switching unit 22 switches the current acquisition mode to the second acquisition mode, and acquire the image of the second acquisition region of the object to be acquired in the second acquisition mode after the switching unit 22 switches the current acquisition mode to the second acquisition mode.
The output unit 24 is configured to output the image data of the object to be acquired, which is acquired by the image acquisition unit 23, after the image of the object to be acquired is acquired by the image acquisition unit 23.
The image acquisition time of the first acquisition area is prior to the image acquisition time of the second acquisition area, the exposure intensity and the exposure time corresponding to the second acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the acquisition mode before switching, and the exposure intensity and the exposure time corresponding to the second acquisition mode are matched with the reference image corresponding to the second acquisition area.
Optionally, the image acquisition unit 23 is further configured to: before the first detection unit 21 detects whether the image of the first acquisition area of the object to be acquired is acquired, acquiring the image of the object to be acquired in a first acquisition mode; the exposure intensity and the exposure time corresponding to the first acquisition mode are not all the same as those corresponding to the second acquisition mode, and the exposure intensity and the exposure time corresponding to the first acquisition mode are matched with the reference image corresponding to the first acquisition area.
Optionally, the output unit 24 is further configured to: and after the image acquisition of the first acquisition area is finished in the first acquisition mode, outputting the acquired image data of the first acquisition area, and after the image acquisition of the second acquisition area is finished in the second acquisition mode, outputting the acquired image data of the second acquisition area.
The invention detects whether the image of the first collection area (such as a fluorescence 100 area) of the object to be collected (such as the hundred-yuan RMB) is collected or not, after the image collection of the first collection area is finished, the current collection mode is switched to the second collection mode, the image of the second collection area (such as a crown word area) of the object to be collected is collected in the second collection mode, because the exposure intensity and the exposure time corresponding to the second collection mode are matched with the reference image corresponding to the second collection area, the image of the second collection area collected in the second collection mode has better imaging effect, the second collection area of the image collected by applying the image collection method provided by the invention has better quality, the image collection method provided by the invention is applied to the identification of the paper currency, and the image characteristics of the second collection area on the paper currency can be better identified, thereby improving the accuracy of the paper money identification.
Fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, the terminal device 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30. The processor 30, when executing the computer program 32, implements the steps in the various image acquisition method embodiments described above, such as S101 to S104 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 21 to 24 shown in fig. 2.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into a first detection unit, a switching unit, an image acquisition unit and an output unit, each unit having the following specific functions:
the first detection unit is used for detecting whether the image of the first acquisition area of the object to be acquired is acquired or not.
And the switching unit is used for switching the current acquisition mode into a second acquisition mode after the first detection unit detects that the image acquisition of the first acquisition area is completed.
The image acquisition unit is used for acquiring the image of the first acquisition area in the current acquisition mode before the switching unit switches the current acquisition mode into the second acquisition mode, and acquiring the image of the second acquisition area of the object to be acquired in the second acquisition mode after the switching unit switches the current acquisition mode into the second acquisition mode.
And the output unit is used for outputting the image data of the object to be acquired, which is acquired by the image acquisition unit, after the image acquisition of the object to be acquired is finished.
The terminal device 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 30, a memory 31. It will be understood by those skilled in the art that fig. 3 is only an example of the terminal device 3, and does not constitute a limitation to the terminal device 3, and may include more or less components than those shown, or combine some components, or different components, for example, the terminal device may also include an input-output device, a network access device, a bus, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used for storing the computer program and other programs and data required by the terminal device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (9)
1. An image capture method for banknote recognition, the image capture method comprising:
detecting whether the acquisition of an image acquired by a first acquisition area of an object to be acquired in a first acquisition mode is finished, wherein the first acquisition area is a fluorescence digital area of paper money;
after the image acquisition of the first acquisition area is finished, switching the current acquisition mode into a second acquisition mode;
acquiring an image of a second acquisition area of the object to be acquired in the second acquisition mode, wherein the second acquisition area is a crown word number area of the paper money;
after the image of the object to be collected is collected, outputting the collected image data of the object to be collected;
wherein, the collected image is obtained by scanning and collecting the object to be collected line by line through a contact image sensor, the first collection area and the second collection area are two areas on the collected surface of the object to be collected, the image collection time of the first collection area is prior to the image collection time of the second collection area, the exposure intensity and the exposure time corresponding to the second collection mode are not identical to the exposure intensity and the exposure time corresponding to the collection mode before switching, the exposure intensity and the exposure time corresponding to the second collection mode are matched with the reference image corresponding to the second collection area, the exposure intensity is the exposure intensity of an exposure lamp LED, the exposure intensity is improved or reduced by setting the parameter of a constant current source of a CIS chip, and the exposure time is the exposure time of the exposure lamp LED, extending or shortening the exposure time by setting parameters of a constant current source of the CIS chip;
whether the image of the first acquisition region of the object to be acquired is acquired or not is detected, and the method also comprises the following steps:
detecting an inclination angle of an acquired surface of the object to be acquired relative to a preset axis, wherein the preset axis is an axis perpendicular to the moving direction of the object to be acquired, and the image sensor is parallel to the preset axis;
the method for detecting whether the image acquired by the first acquisition region of the object to be acquired in the first acquisition mode is acquired is characterized by comprising the following steps:
and determining whether the image of the first acquisition area of the object to be acquired is acquired or not according to the inclination angle and a preset acquisition speed.
2. The image capturing method according to claim 1, wherein the detecting whether the capturing of the image of the first capturing region of the object to be captured is completed further comprises:
the exposure intensity and the exposure time corresponding to the first acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the second acquisition mode, and the exposure intensity and the exposure time corresponding to the first acquisition mode are matched with the reference image corresponding to the first acquisition area.
3. The image capturing method according to claim 2, wherein the outputting the captured image data of the object to be captured after the image capturing of the object to be captured is specifically:
and after the image acquisition of the first acquisition area is finished in the first acquisition mode, outputting the acquired image data of the first acquisition area, and after the image acquisition of the second acquisition area is finished in the second acquisition mode, outputting the acquired image data of the second acquisition area.
4. The image acquisition method according to claim 1, wherein the detecting an inclination angle of the acquired surface of the object to be acquired with respect to a preset axis is specifically:
the method comprises the steps of determining the inclination angle of a collected surface of an object to be collected relative to a preset axis by obtaining the time difference and the preset money-moving speed of the object to be collected sensed by two sensors in a pair of sensors.
5. An image capture device for banknote recognition, the image capture device comprising:
the device comprises a first detection unit, a second detection unit and a third detection unit, wherein the first detection unit is used for detecting whether the acquisition of an image acquired by a first acquisition area of an object to be acquired in a first acquisition mode is finished, and the first acquisition area is a fluorescence digital area of paper money;
the switching unit is used for switching the current acquisition mode into a second acquisition mode after the first detection unit detects that the image acquisition of the first acquisition area is finished;
the image acquisition unit is used for acquiring the image of the first acquisition area in the current acquisition mode before the switching unit switches the current acquisition mode into the second acquisition mode, and acquiring the image of the second acquisition area of the object to be acquired in the second acquisition mode after the switching unit switches the current acquisition mode into the second acquisition mode, wherein the second acquisition area is a crown word number area of the paper money;
the output unit is used for outputting the image data of the object to be acquired, which is acquired by the image acquisition unit, after the image acquisition of the object to be acquired is finished;
wherein, the collected image is obtained by scanning and collecting the object to be collected line by line through a contact image sensor, the first collection area and the second collection area are two areas on the collected surface of the object to be collected, the image collection time of the first collection area is prior to the image collection time of the second collection area, the exposure intensity and the exposure time corresponding to the second collection mode are not identical to the exposure intensity and the exposure time corresponding to the collection mode before switching, the exposure intensity and the exposure time corresponding to the second collection mode are matched with the reference image corresponding to the second collection area, the exposure intensity is the exposure intensity of an exposure lamp LED, the exposure intensity is improved or reduced by setting the parameter of a constant current source of a CIS chip, and the exposure time is the exposure time of the exposure lamp LED, extending or shortening the exposure time by setting parameters of a constant current source of the CIS chip;
the image acquisition device is further configured to:
detecting an inclination angle of an acquired surface of the object to be acquired relative to a preset axis, wherein the preset axis is an axis perpendicular to the moving direction of the object to be acquired, and the image sensor is parallel to the preset axis;
the first detection unit is specifically configured to:
and determining whether the image of the first acquisition area of the object to be acquired is acquired or not according to the inclination angle and a preset acquisition speed.
6. The image capturing apparatus of claim 5, wherein the image capturing unit is further configured to:
the exposure intensity and the exposure time corresponding to the first acquisition mode are not all the same as the exposure intensity and the exposure time corresponding to the second acquisition mode, and the exposure intensity and the exposure time corresponding to the first acquisition mode are matched with the reference image corresponding to the first acquisition area.
7. The image capturing device of claim 6, wherein the output unit is further configured to:
and after the image acquisition of the first acquisition area is finished in the first acquisition mode, outputting the acquired image data of the first acquisition area, and after the image acquisition of the second acquisition area is finished in the second acquisition mode, outputting the acquired image data of the second acquisition area.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607662.9A CN107464337B (en) | 2017-07-24 | 2017-07-24 | Image acquisition method, image acquisition device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710607662.9A CN107464337B (en) | 2017-07-24 | 2017-07-24 | Image acquisition method, image acquisition device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107464337A CN107464337A (en) | 2017-12-12 |
CN107464337B true CN107464337B (en) | 2021-07-02 |
Family
ID=60546892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710607662.9A Active CN107464337B (en) | 2017-07-24 | 2017-07-24 | Image acquisition method, image acquisition device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107464337B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112042483B (en) * | 2020-09-15 | 2022-12-20 | 定西市农业科学研究院 | Three-dimensional cultivation method, system and device for new Chinese medicinal material variety |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653479A (en) * | 2002-03-11 | 2005-08-10 | 数字验证有限公司 | Currency verification |
CN102224530A (en) * | 2008-11-25 | 2011-10-19 | 德拉瑞北美有限公司 | Determining document fitness using sequenced illumination |
CN102396214A (en) * | 2009-04-13 | 2012-03-28 | 日本电气工程株式会社 | Image reading device |
CN103929560A (en) * | 2014-04-18 | 2014-07-16 | 威海华菱光电股份有限公司 | Image obtaining method and device |
CN105243726A (en) * | 2014-07-11 | 2016-01-13 | 威海新北洋荣鑫科技股份有限公司 | Method and device for acquiring digital image data |
CN105809812A (en) * | 2016-02-29 | 2016-07-27 | 深圳市中钞信达金融科技有限公司 | Acquiring device and method for transmitted images and reflected images |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8818069B2 (en) * | 2010-11-30 | 2014-08-26 | General Electric Company | Methods for scaling images to differing exposure times |
JP6474633B2 (en) * | 2015-02-18 | 2019-02-27 | グローリー株式会社 | Fluorescence phosphorescence detection apparatus, fluorescence phosphorescence detection method, and paper sheet processing apparatus |
-
2017
- 2017-07-24 CN CN201710607662.9A patent/CN107464337B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1653479A (en) * | 2002-03-11 | 2005-08-10 | 数字验证有限公司 | Currency verification |
CN102224530A (en) * | 2008-11-25 | 2011-10-19 | 德拉瑞北美有限公司 | Determining document fitness using sequenced illumination |
CN102396214A (en) * | 2009-04-13 | 2012-03-28 | 日本电气工程株式会社 | Image reading device |
CN103929560A (en) * | 2014-04-18 | 2014-07-16 | 威海华菱光电股份有限公司 | Image obtaining method and device |
CN105243726A (en) * | 2014-07-11 | 2016-01-13 | 威海新北洋荣鑫科技股份有限公司 | Method and device for acquiring digital image data |
CN105809812A (en) * | 2016-02-29 | 2016-07-27 | 深圳市中钞信达金融科技有限公司 | Acquiring device and method for transmitted images and reflected images |
Also Published As
Publication number | Publication date |
---|---|
CN107464337A (en) | 2017-12-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110473242B (en) | Texture feature extraction method, texture feature extraction device and terminal equipment | |
CN109146855B (en) | Image moire detection method, terminal device and storage medium | |
CN110660066B (en) | Training method of network, image processing method, network, terminal equipment and medium | |
WO2019233264A1 (en) | Image processing method, computer readable storage medium, and electronic device | |
CN108012083B (en) | Face acquisition method and device and computer readable storage medium | |
EP3239929B1 (en) | Image processing apparatus, image processing method and program | |
US9741193B2 (en) | Paper currency number recognition apparatus and recognition method | |
US10181202B2 (en) | Control apparatus, robot, and control method | |
CN109116129B (en) | Terminal detection method, detection device, system and storage medium | |
CN110728201B (en) | Image processing method and device for fingerprint identification | |
CN110879131B (en) | Imaging quality testing method and imaging quality testing device for visual optical system, and electronic apparatus | |
CN104424633B (en) | A kind of video contrast's method for detecting abnormality and device | |
JP2010064531A (en) | White line detection device | |
JP5983729B2 (en) | White line detection device, white line detection filter device, and white line detection method | |
CN108040244B (en) | Snapshot method and device based on light field video stream and storage medium | |
CN112700376B (en) | Moire pattern removing method and device for image, terminal equipment and storage medium | |
CN107464337B (en) | Image acquisition method, image acquisition device and terminal equipment | |
CN117496560B (en) | Fingerprint line identification method and device based on multidimensional vector | |
CN116309518A (en) | PCB (printed circuit board) detection method and system based on computer vision | |
CN107895424B (en) | Paper money identification method and system and financial terminal | |
CN111222446B (en) | Face recognition method, face recognition device and mobile terminal | |
US11386695B2 (en) | Authentication device and authentication method | |
CN116051373A (en) | Image stitching method, image stitching device and terminal equipment | |
CN109359632A (en) | Highway sideline detection method and device | |
US11308341B2 (en) | Verification method, verification device, and non-transitory tangible storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |