CN111967282B - Method, system, device and storage medium for correcting sensitivity of lottery ticket reader - Google Patents
Method, system, device and storage medium for correcting sensitivity of lottery ticket reader Download PDFInfo
- Publication number
- CN111967282B CN111967282B CN202010656473.2A CN202010656473A CN111967282B CN 111967282 B CN111967282 B CN 111967282B CN 202010656473 A CN202010656473 A CN 202010656473A CN 111967282 B CN111967282 B CN 111967282B
- Authority
- CN
- China
- Prior art keywords
- sensitivity
- reader
- lottery
- lottery ticket
- gradient
- 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
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10198—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes
Landscapes
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method, a system, a device and a storage medium for correcting the sensitivity of a lottery reader, wherein the method comprises the following steps: scanning a gray scale card to generate a first scanning image; acquiring the number of white pixels and the number of black pixels in the first scanned image; and adjusting the sensitivity of the lottery ticket reader by a first gradient according to the number of the white pixels and the number of the black pixels. According to the invention, the scanning image of the gray card is obtained through the scanning head of the lottery ticket reader, and the sensitivity of the lottery ticket reader is adjusted according to the number of black pixels and the number of white pixels of the scanning image, so that the lottery ticket reader can automatically correct the sensitivity according to the gray card, and the correction efficiency of the lottery ticket reader is greatly improved. The invention can be widely applied to the field of lottery ticket readers.
Description
Technical Field
The invention relates to the technical field of lottery ticket readers, in particular to a method, a system, a device and a storage medium for correcting the sensitivity of a lottery ticket reader.
Background
Due to the fact that hardware parameters of induction heads of different lottery ticket readers are inconsistent, the recognition rate of the lottery ticket readers fluctuates, and the induction heads of the lottery ticket readers need to be corrected by modifying the sensitivity of the induction heads. The traditional sensitivity correction method is to insert a gray card into a reader, the reader scans the gray card to generate a scanned image, the quality of the scanned image is judged manually, and then the sensitivity of the reader is modified. The existing manual correction method judges the quality of a scanned image manually and then adjusts the sensitivity of a reader, but the manual judgment has a larger adjustment interval, the sensitivity of the reader cannot be accurately adjusted according to the image, and the manual correction efficiency is low.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a device and a storage medium for calibrating sensitivity of a lottery ticket reader, so as to improve the efficiency of calibrating the sensitivity of the lottery ticket reader.
The first technical scheme adopted by the invention is as follows:
a lottery ticket reader sensitivity correction method comprises the following steps:
scanning a gray scale card to generate a first scanning image;
acquiring the number of white pixels and the number of black pixels in the first scanning image;
determining that the number of white pixels is greater than the number of black pixels and the difference between the number of white pixels and the number of black pixels is greater than a first threshold value, and increasing the lottery reader sensitivity by a first gradient;
determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the lottery reader sensitivity at a first gradient.
Further, the method for correcting the sensitivity of the lottery ticket reader further comprises the following steps:
scanning the betting slip to generate a second scanning image;
acquiring the number of black connected areas in the second scanned image;
determining that the number of the black connected areas is larger than a standard number, and reducing the sensitivity of the lottery ticket reader by a second gradient;
determining that the number of the black connected areas is smaller than a standard number, and increasing the sensitivity of the lottery ticket reader by a second gradient;
the second gradient is less than the first gradient.
Further, the lottery ticket reader sensitivity correction method further comprises the following steps:
and determining that the difference value between the number of the white pixels and the number of the black pixels is smaller than or equal to a second threshold value, and uploading the sensitivity of the lottery ticket reader to a cloud.
Further, the lottery ticket reader sensitivity correction method further comprises the following steps:
acquiring cloud sensitivity data;
setting a sensitivity initial value of a lottery reader according to the cloud sensitivity data;
the cloud sensitivity data comprises the latest lottery ticket reader sensitivity correction value and the cloud lottery ticket reader sensitivity average value.
Further, the setting of the initial value of the sensitivity of the lottery reader according to the cloud sensitivity data includes:
determining the sensitivity correction value of the lottery ticket reader as an effective value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity correction value of the lottery ticket reader;
and determining the sensitivity correction value of the lottery ticket reader as an invalid value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity average value of the cloud lottery ticket reader.
Further, the first gradient is inversely proportional to the number of times of sensitivity adjustment of the lottery ticket reader.
Further, the first gradient is inversely proportional to the number of sensitivity adjustments of the lottery ticket reader.
The second technical scheme adopted by the invention is as follows:
a lottery reader sensitivity correction apparatus comprising:
the reader induction head is used for scanning the gray card to generate a first scanning image;
a processor for obtaining the number of white pixels and the number of black pixels in the first scanned image; determining that the number of white pixels is greater than the number of black pixels and the difference between the number of white pixels and the number of black pixels is greater than a first threshold value, and increasing the sensitivity of the lottery reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader with a first gradient.
The third technical scheme adopted by the invention is as follows:
a lottery reader sensitivity correction system, comprising:
the scanning module is used for scanning the gray card to generate a first scanning image;
the counting module is used for acquiring the number of white pixels and the number of black pixels in the first scanning image;
the comparison module is used for determining that the number of the white pixels is larger than the number of the black pixels and the difference value between the number of the white pixels and the number of the black pixels is larger than a first threshold value, and improving the sensitivity of the lottery ticket reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader with a first gradient.
The fourth technical scheme adopted by the invention is as follows:
a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements the lottery reader sensitivity correction method.
Compared with the prior art, the method and the device have the advantages that the scanning image of the gray card is obtained through the scanning head of the lottery ticket reader, and the sensitivity of the lottery ticket reader is adjusted according to the number of the black pixels and the number of the white pixels of the scanning image, so that the lottery ticket reader can automatically correct the sensitivity according to the gray card, and the correction efficiency of the lottery ticket reader is greatly improved.
Drawings
Fig. 1 is a first flowchart of a method for calibrating the sensitivity of a lottery reader according to an embodiment of the present invention;
fig. 2 is a second flowchart of the method for calibrating the sensitivity of a lottery reader according to an embodiment of the present invention.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the schemes and the effects of the present invention.
The embodiment of the invention provides a method for correcting the sensitivity of a lottery ticket reader, which comprises the following steps with reference to fig. 2:
s100, scanning a gray card to generate a first scanned image;
s200, acquiring the number of white pixels and the number of black pixels in the first scanned image;
s300, determining that the number of the white pixels is larger than that of the black pixels and the difference value between the number of the white pixels and the number of the black pixels is larger than a first threshold value, and improving the sensitivity of the lottery reader by a first gradient;
s400, determining that the number of the white pixels is smaller than the number of the black pixels and the difference value between the number of the black pixels and the number of the white pixels is larger than a first threshold value, and reducing the sensitivity of the lottery reader by a first gradient.
Specifically, referring to fig. 1, in the process of correcting the sensitivity of the lottery ticket reader, firstly, the sensitivity of the lottery ticket reader is adjusted through a gray card, a first scanning image is obtained by scanning the gray card, and under the condition that the sensitivity of the lottery ticket reader is too high, more pixel points are identified as black pixels; under the condition that the sensitivity of the lottery ticket reader is too low, more pixel points can be identified as white pixels. The black pixels and the white pixels in the first scanned image are counted, and the sensitivity of the lottery ticket reader can be adjusted according to the number of the black pixels and the white pixels, so that the sensitivity reaches a reasonable value. When the difference value between the black pixel and the white pixel is larger than the threshold value, the sensitivity of the lottery ticket reader can be adjusted in a circulating mode, so that the sensitivity of the lottery ticket reader can be adjusted to a reasonable value finally.
The gray card is composed of light gray to dark gray colors, and stripes which are gradually transited from the light gray to the dark gray are arranged on the gray card. The number of white pixels and the number of black pixels in the image scanned by the standard lottery ticket reader are consistent, and the scanned images of different lottery ticket readers calibrated by the gray scale card can be controlled in a reasonable error range.
A pixel refers to a smallest unit in an image represented by a sequence of numbers, called a pixel.
The first scanned image is an image obtained by scanning a gray card through a lottery reader induction head, the lottery reader induction head converts the gray card into black when the gray value of a certain pixel point is larger than a certain threshold value, otherwise, the gray card is converted into white, and therefore only white pixels and black pixels exist on the first scanned image.
The first threshold is used for limiting the difference value of white pixels and black pixels in the first scanned image, and can be determined according to the requirement on the sensitivity of the lottery ticket reader, and a smaller threshold can ensure that the scanned image error of each lottery ticket reader is smaller, but relatively takes longer sensitivity adjustment time.
The first gradient is a span value of the lottery reader sensitivity correction, which may be a fixed value or a calculated value.
As a further optional implementation, the lottery reader sensitivity correction method further includes:
scanning the betting order to generate a second scanning image;
acquiring the number of black connected regions in the second scanned image;
determining that the number of the black connected areas is larger than a standard number, and reducing the sensitivity of the lottery ticket reader by a second gradient;
determining that the number of the black connected areas is smaller than a standard number, and increasing the sensitivity of the lottery ticket reader by a second gradient;
the second gradient is less than the first gradient.
Specifically, referring to fig. 1, after the first lottery reader sensitivity correction is completed using the gray card, the sensitivity of the lottery reader may be corrected a second time using the play slip. Scanning a pre-filled lottery ticket to obtain a scanned image of the lottery ticket, comparing the scanned image of the lottery ticket with a standard scanned image obtained by scanning a standard lottery reader in advance, and if a black connected area in the scanned image obtained by the current lottery reader is more than that of the standard scanned image, indicating that the sensitivity of the current lottery reader is too high, reducing the sensitivity of the current lottery reader; if the black connected area in the scanned image obtained by the current lottery reader is less than the black connected area of the standard scanned image, the sensitivity of the current lottery reader is too low, and the sensitivity of the current lottery reader can be improved.
The tickets are fill-in tickets used to select numbers when purchasing lottery tickets, and pre-filled tickets may be used for sensitivity correction. The system prestores the number of black connected areas of standard scanned images, namely the standard number, scanned by a standard lottery reader. The lottery ticket reader is calibrated for the second time through the lottery ticket, so that the calibration precision of the lottery ticket reader can be improved, and the sensitivity of the lottery ticket reader after calibration is more suitable for actual lottery ticket scanning.
The second scanning image is an image obtained by scanning the betting slip through the induction head of the lottery reader, the number of black connected areas is mainly calculated in the second scanning image, and the number of filling areas of the betting slip can be obtained by calculating the number of the black connected areas.
The connected region, a region G on the complex plane, is called a single connected region if a simple closed curve is made in any one of the regions G, and the inside of the closed curve always belongs to G. A region is referred to as a multiply-connected region if it is not a single-connected region. The filled area on the lottery ticket can be obtained by judging the black connected area, so that the comparison between the scanning result of the current lottery ticket reader and the scanning result of the standard lottery ticket reader is realized.
And if the number of the black connected regions in the second scanned image is consistent with the standard number, the number of the identified filled regions is consistent with the standard number, and the sensitivity of the current lottery reader is a target value.
The second gradient is the span value adjusted by the lottery ticket reader, which can be set as a fixed value or can be obtained by calculation.
As a further optional implementation manner, the method for correcting the sensitivity of the lottery ticket reader further includes:
and determining that the difference value between the number of the white pixels and the number of the black pixels is less than or equal to a second threshold value, and uploading the sensitivity of the lottery ticket reader to a cloud.
Specifically, after the sensitivity correction is completed, the corrected sensitivity of the lottery reader can be uploaded to the cloud. Compared with the method that the sensitivity data is stored locally, the sensitivity of the lottery ticket reader is stored in the cloud end, and statistics and backup of the sensitivity of the lottery ticket reader can be achieved. The sensitivity of the lottery ticket reader which is corrected through the gray card can be uploaded to the cloud, and the sensitivity of the lottery ticket reader which is corrected through the play slip can be uploaded to the cloud.
As a further optional implementation manner, the method for correcting the sensitivity of the lottery ticket reader further includes:
acquiring cloud sensitivity data;
setting a sensitivity initial value of a lottery reader according to the cloud sensitivity data;
the cloud sensitivity data comprises the latest lottery ticket reader sensitivity correction value and the cloud lottery ticket reader sensitivity average value.
Specifically, the sensitivity data stored in the cloud is used as the initial value of the sensitivity of the lottery reader, so that the initial value of the sensitivity of the lottery reader is closer to a target value, the adjustment times of the sensitivity of the lottery reader are reduced, the adjustment time of the sensitivity of the lottery reader is shortened, and the adjustment efficiency of the sensitivity of the lottery reader is improved.
The cloud sensitivity data comprises the latest lottery ticket reader sensitivity correction value and the cloud lottery ticket reader sensitivity average value. The sensitivity correction value of the latest lottery ticket reader is the sensitivity correction value uploaded to the cloud end by the current lottery ticket reader last time, and the sensitivity average value of the cloud end lottery ticket readers is the average value of the sensitivities of all other lottery ticket readers uploaded to the cloud end.
The initial value of the sensitivity of the lottery reader is a sensitivity value of the lottery reader before the gray card correction and the play slip correction, and is compared with the sensitivity value which is set by the lottery reader before the factory or the initial setting is used as the initial value for correction. The latest lottery ticket reader sensitivity correction value or the average value of all the lottery ticket reader sensitivity correction values is obtained through the cloud big data and is used as an initial value to carry out correction, and the correction efficiency is higher.
As a further optional implementation manner, the setting of an initial value of the sensitivity of the lottery reader according to the cloud sensitivity data includes:
determining that the sensitivity correction value of the lottery ticket reader is an effective value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity correction value of the lottery ticket reader;
and determining the sensitivity correction value of the lottery ticket reader as an invalid value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity average value of the cloud lottery ticket reader.
Specifically, in the process that the lottery ticket reader needs to perform sensitivity correction, the sensitivity of the lottery ticket reader uploaded last time can be directly obtained through the cloud and used as an initial value of the sensitivity of the current lottery ticket reader. Performing correction based on the initial value can improve correction efficiency. If the cloud does not have the sensitivity of the last uploaded lottery reader, the average value of the sensitivities of all the lottery readers at the cloud is used as an initial value, and correction is carried out based on the initial value, so that the correction efficiency can be improved.
Further as an alternative embodiment, the first gradient is inversely proportional to the number of lottery reader sensitivity adjustments.
Specifically, in order to achieve accurate adjustment of the sensitivity of the lottery ticket reader, the first gradient is set to a variable value which is inversely proportional to the number of times the sensitivity of the lottery ticket reader is adjusted. With the increase of the adjustment times of the sensitivity of the lottery ticket reader, the sensitivity of the lottery ticket reader gradually approaches the target value, at the moment, the accuracy of the adjusted sensitivity of the lottery ticket reader can be higher by reducing the adjustment gradient of the sensitivity of the lottery ticket reader, and the correction efficiency of the sensitivity of the lottery ticket reader cannot be greatly influenced.
Further in an alternative embodiment, the first gradient is inversely proportional to the number of lottery reader sensitivity adjustments.
Specifically, the sensitivity of the lottery reader gradually approaches the target value along with the increase of the adjustment times of the sensitivity of the lottery reader, and at the moment, the accuracy of the adjusted sensitivity of the lottery reader can be higher by reducing the adjustment gradient of the sensitivity of the lottery reader, and the correction efficiency of the sensitivity of the lottery reader cannot be greatly influenced.
The embodiment of the invention also provides a device for correcting the sensitivity of the lottery ticket reader, which comprises:
the reader induction head is used for scanning the gray card to generate a first scanning image;
a processor for acquiring the number of white pixels and the number of black pixels in the first scanned image; determining that the number of white pixels is greater than the number of black pixels and the difference between the number of white pixels and the number of black pixels is greater than a first threshold value, and increasing the sensitivity of the lottery reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader at a first gradient.
Specifically, the contents in the method embodiment are all applicable to the apparatus embodiment, the functions specifically implemented by the apparatus embodiment are the same as those in the method embodiment, and the beneficial effects achieved by the apparatus embodiment are also the same as those achieved by the method embodiment.
The uniformity of scanning image results of lottery ticket readers with different specifications can be realized by adjusting the sensitivity of the induction head of the lottery ticket reader through the gray card.
The embodiment of the invention also provides a system for correcting the sensitivity of the lottery reader, which comprises:
the scanning module is used for scanning the gray card to generate a first scanning image;
the counting module is used for acquiring the number of white pixels and the number of black pixels in the first scanning image;
the comparison module is used for determining that the number of the white pixels is larger than the number of the black pixels and the difference value between the number of the white pixels and the number of the black pixels is larger than a first threshold value, and improving the sensitivity of the lottery ticket reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader with a first gradient.
Specifically, the contents in the method embodiments are all applicable to the system embodiments, the functions specifically implemented by the system embodiments are the same as those in the method embodiments, and the beneficial effects achieved by the system embodiments are also the same as those achieved by the method embodiments.
The layers, modules, units, platforms, and/or the like included in the system may be implemented or embodied by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for correcting the sensitivity of the lottery reader is realized.
Specifically, the storage medium stores processor-executable instructions, and the processor-executable instructions, when executed by the processor, are configured to perform the steps of the method for processing mutual information according to any one of the foregoing method embodiments. For the storage medium, it may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. It can be seen that the contents in the foregoing method embodiments are all applicable to this storage medium embodiment, the functions specifically implemented by this storage medium embodiment are the same as those in the foregoing method embodiments, and the advantageous effects achieved by this storage medium embodiment are also the same as those achieved by the foregoing method embodiments.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.
Claims (9)
1. A lottery ticket reader sensitivity correction method is characterized by comprising the following steps:
scanning a gray scale card to generate a first scanning image;
acquiring the number of white pixels and the number of black pixels in the first scanned image;
determining that the number of white pixels is greater than the number of black pixels and the difference between the number of white pixels and the number of black pixels is greater than a first threshold value, and increasing the lottery reader sensitivity by a first gradient;
determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the lottery reader sensitivity at a first gradient;
the lottery reader sensitivity correction method further comprises the following steps:
scanning the betting slip to generate a second scanning image;
acquiring the number of black connected areas in the second scanned image;
determining that the number of the black connected areas is larger than a standard number, and reducing the sensitivity of the lottery ticket reader by a second gradient;
determining that the number of the black connected areas is smaller than the standard number, and increasing the sensitivity of the lottery ticket reader by a second gradient;
the second gradient is less than the first gradient.
2. The lottery reader sensitivity correction method as in claim 1, wherein the lottery reader sensitivity correction method further comprises:
and determining that the difference value between the number of the white pixels and the number of the black pixels is smaller than or equal to a second threshold value, and uploading the sensitivity of the lottery ticket reader to a cloud.
3. The lottery reader sensitivity correction method as in claim 1, wherein the lottery reader sensitivity correction method further comprises:
acquiring cloud sensitivity data;
setting a sensitivity initial value of a lottery reader according to the cloud sensitivity data;
the cloud sensitivity data comprises the latest lottery ticket reader sensitivity correction value and the cloud lottery ticket reader sensitivity average value.
4. The lottery reader sensitivity correction method according to claim 3, wherein the setting of the initial value of the lottery reader sensitivity according to the cloud sensitivity data comprises:
determining the sensitivity correction value of the lottery ticket reader as an effective value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity correction value of the lottery ticket reader;
and determining the sensitivity correction value of the lottery ticket reader as an invalid value, and setting the sensitivity initial value of the lottery ticket reader as the sensitivity average value of the cloud lottery ticket reader.
5. The lottery reader sensitivity correction method of claim 1, wherein the first gradient is inversely proportional to the number of lottery reader sensitivity adjustments.
6. The lottery reader sensitivity correction method of claim 1, wherein the second gradient is inversely proportional to a lottery reader sensitivity adjustment number.
7. A lottery reader sensitivity correction apparatus, comprising:
the reader induction head is used for scanning the gray card to generate a first scanning image;
a processor for acquiring the number of white pixels and the number of black pixels in the first scanned image; determining that the number of the white pixels is greater than the number of the black pixels and the difference between the number of the white pixels and the number of the black pixels is greater than a first threshold value, and increasing the sensitivity of the lottery ticket reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader by a first gradient; scanning the betting slip to generate a second scanning image; acquiring the number of black connected areas in the second scanned image; determining that the number of the black connected areas is larger than a standard number, and reducing the sensitivity of the lottery ticket reader by a second gradient; determining that the number of the black connected areas is smaller than a standard number, and increasing the sensitivity of the lottery ticket reader by a second gradient; the second gradient is less than the first gradient.
8. A lottery reader sensitivity correction system, comprising:
the scanning module is used for scanning the gray card to generate a first scanning image; scanning the betting order to generate a second scanning image;
the counting module is used for acquiring the number of white pixels and the number of black pixels in the first scanning image; acquiring the number of black connected areas in the second scanned image;
the comparison module is used for determining that the number of the white pixels is larger than the number of the black pixels and the difference value between the number of the white pixels and the number of the black pixels is larger than a first threshold value, and improving the sensitivity of the lottery ticket reader by a first gradient; determining that the number of white pixels is less than the number of black pixels and the difference between the number of black pixels and the number of white pixels is greater than a first threshold, decreasing the sensitivity of the lottery reader by a first gradient; determining that the number of the black connected areas is larger than a standard number, and reducing the sensitivity of the lottery ticket reader by a second gradient; determining that the number of the black connected areas is smaller than a standard number, and increasing the sensitivity of the lottery ticket reader by a second gradient; the second gradient is less than the first gradient.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a lottery reader sensitivity correction method as claimed in any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010656473.2A CN111967282B (en) | 2020-07-09 | 2020-07-09 | Method, system, device and storage medium for correcting sensitivity of lottery ticket reader |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010656473.2A CN111967282B (en) | 2020-07-09 | 2020-07-09 | Method, system, device and storage medium for correcting sensitivity of lottery ticket reader |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111967282A CN111967282A (en) | 2020-11-20 |
CN111967282B true CN111967282B (en) | 2022-12-13 |
Family
ID=73361199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010656473.2A Active CN111967282B (en) | 2020-07-09 | 2020-07-09 | Method, system, device and storage medium for correcting sensitivity of lottery ticket reader |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111967282B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5600732A (en) * | 1994-12-08 | 1997-02-04 | Banctec, Inc. | Document image analysis method |
US6357658B1 (en) * | 1999-04-28 | 2002-03-19 | Peripheral Dynamics, Inc. | Apparatus and methods for scanning documents including OMR, bar-code, and image data |
CN103018261A (en) * | 2012-11-29 | 2013-04-03 | 华中科技大学 | Appearance fault detecting system and appearance fault detecting method of RFID (Radio Frequency Identification Device) antenna |
JP2013171469A (en) * | 2012-02-21 | 2013-09-02 | Fujitsu Ltd | Image processing apparatus, binarization threshold calculation method, and computer program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9124841B2 (en) * | 2013-11-26 | 2015-09-01 | Xerox Corporation | Connected component analysis with multi-thresholding to segment halftones |
-
2020
- 2020-07-09 CN CN202010656473.2A patent/CN111967282B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5600732A (en) * | 1994-12-08 | 1997-02-04 | Banctec, Inc. | Document image analysis method |
US6357658B1 (en) * | 1999-04-28 | 2002-03-19 | Peripheral Dynamics, Inc. | Apparatus and methods for scanning documents including OMR, bar-code, and image data |
JP2013171469A (en) * | 2012-02-21 | 2013-09-02 | Fujitsu Ltd | Image processing apparatus, binarization threshold calculation method, and computer program |
CN103018261A (en) * | 2012-11-29 | 2013-04-03 | 华中科技大学 | Appearance fault detecting system and appearance fault detecting method of RFID (Radio Frequency Identification Device) antenna |
Also Published As
Publication number | Publication date |
---|---|
CN111967282A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3429188B1 (en) | Regulation method, terminal equipment and non-transitory computer-readable storage medium for automatic exposure control of region of interest | |
CN109977949B (en) | Frame fine adjustment text positioning method and device, computer equipment and storage medium | |
CN109389135B (en) | Image screening method and device | |
CN108960232A (en) | Model training method, device, electronic equipment and computer readable storage medium | |
CN112906529B (en) | Face recognition light supplementing method, device, face recognition equipment and system thereof | |
US11113490B2 (en) | System and method for evaluating symbols | |
CN109040745B (en) | Camera self-calibration method and device, electronic equipment and computer storage medium | |
US11368648B2 (en) | Image storage method and apparatus, and electronic device and storage medium | |
CN112689097A (en) | Automatic brightness control method and system for line laser and storage medium | |
CN113808135B (en) | Image brightness abnormality detection method, electronic device, and storage medium | |
CN113438425B (en) | Automatic exposure adjustment method and system | |
KR101662407B1 (en) | Method for vignetting correction of image and apparatus therefor | |
CN111967282B (en) | Method, system, device and storage medium for correcting sensitivity of lottery ticket reader | |
CN116614620B (en) | High-pixel optical lens assembly equipment and control method | |
CN111565283A (en) | Traffic light color identification method, correction method and device | |
CN110610117A (en) | Face recognition method, face recognition device and storage medium | |
CN117437238A (en) | Visual inspection method for surface defects of packaged IC | |
CN117434568A (en) | Intelligent positioning system based on remote sensing satellite | |
JP6132343B2 (en) | Image processing apparatus, image processing method, and program | |
CN113132693A (en) | Color correction method | |
CN115767253A (en) | Method and device for adaptively adjusting camera exposure parameters and marker identification threshold | |
CN116546330A (en) | Exposure adjustment method and device, computer readable storage medium and terminal | |
CN114283170B (en) | Light spot extraction method | |
CN113379816B (en) | Structure change detection method, electronic device, and storage medium | |
CN115542941A (en) | Control method and system for guiding unmanned aerial vehicle to land accurately |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Sensitivity correction method, system, device, and storage medium for lottery readers Effective date of registration: 20230621 Granted publication date: 20221213 Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch Pledgor: GUANGZHOU LUOTU TERMINAL TECHNOLOGY Co.,Ltd. Registration number: Y2023980045238 |