CN108288322A - Lottery ticket is online sales and the prize system of making out an invoice - Google Patents
Lottery ticket is online sales and the prize system of making out an invoice Download PDFInfo
- Publication number
- CN108288322A CN108288322A CN201810348734.7A CN201810348734A CN108288322A CN 108288322 A CN108288322 A CN 108288322A CN 201810348734 A CN201810348734 A CN 201810348734A CN 108288322 A CN108288322 A CN 108288322A
- Authority
- CN
- China
- Prior art keywords
- invoice
- prize
- camera
- picture
- image
- 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.)
- Pending
Links
- 230000006870 function Effects 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims description 30
- 238000007790 scraping Methods 0.000 claims description 28
- 230000011218 segmentation Effects 0.000 claims description 19
- 238000013528 artificial neural network Methods 0.000 claims description 11
- 239000000284 extract Substances 0.000 claims description 6
- 238000013527 convolutional neural network Methods 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 230000004048 modification Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 5
- 238000012423 maintenance Methods 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 4
- 238000007792 addition Methods 0.000 claims description 3
- 230000015572 biosynthetic process Effects 0.000 claims description 3
- 238000007418 data mining Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000010354 integration Effects 0.000 claims description 3
- 239000011159 matrix material Substances 0.000 claims description 3
- 238000012887 quadratic function Methods 0.000 claims description 3
- 239000013589 supplement Substances 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- 210000005036 nerve Anatomy 0.000 claims 2
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000013135 deep learning Methods 0.000 abstract description 5
- 241001269238 Data Species 0.000 abstract description 2
- 230000008569 process Effects 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 29
- 238000010586 diagram Methods 0.000 description 12
- 230000032258 transport Effects 0.000 description 7
- 239000000047 product Substances 0.000 description 6
- 230000009471 action Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
It is online sales and the prize system of making out an invoice the present invention relates to a kind of lottery ticket, including:Cell phone application, at least one scrapes card apparatus at central server, wherein user by cell phone application remote control specify scrape card apparatus and the required movement that card apparatus completes ticketing and prize is scraped in the control of the function module by being set in cell phone application;The central server sends swipe instruction to central server by network, and whether automatic regular polling has swipe instruction to send out, some is scraped after card apparatus receives swipe instruction, is controlled relay using microcontroller, is made to scrape card apparatus energization, complete swipe operation.A kind of lottery ticket of present invention offer is online sales and the prize system of making out an invoice, and the prize drawing process made out an invoice is completed by technologies such as deep learning, image recognition, big datas, reduces prize of making out an invoice now and needs to access the bottleneck of lottery central special line system.
Description
Technical field
It is make out an invoice online sales and prize the present invention relates to lottery ticket sales and prize technical field more particularly to a kind of lottery ticket
System.
Background technology
At present lottery ticket be make out an invoice use sale and prize mode include following two, Yi Zhongwei:Under line under purchase and line
Prize;Another kind is:Prize under purchase, line on line.With the development of development of Mobile Internet technology, existing sales mode of making out an invoice
Can not meet user's purchase well to make out an invoice and the needs of prize, especially prize part, need dedicated set
It is standby to complete prize.
In view of drawbacks described above, creator of the present invention obtains this creation finally by prolonged research and practice.
Invention content
It is online sales and the prize system of making out an invoice the purpose of the present invention is to provide a kind of lottery ticket, to overcome above-mentioned technology
Defect.
To achieve the above object, a kind of lottery ticket of present invention offer is online sales and the prize system of making out an invoice, including:
Cell phone application, at least one scrapes card apparatus at central server, wherein user is specified by cell phone application remote control
Scrape card apparatus and the function module by being set in cell phone application control scrape card apparatus complete ticketing and prize required movement;
The central server sends swipe instruction to central server by network, and whether automatic regular polling has swipe instruction
It sends out, some is scraped after card apparatus receives swipe instruction, is controlled relay using microcontroller, is made to scrape card apparatus energization, complete swipe
Operation;
The card apparatus of scraping includes that the first camera being arranged above ticket outlet is arranged and is scraping the whole of one apex angle of card apparatus
Body camera, the first camera take pictures to lottery ticket, by the picture transfer shot to local device, and genuinely convinced in being transferred to
Business device and cell phone application, whole camera can see the overall condition of scraping award equipment in real time;
The cell phone application selection is type of making out an invoice, and after initiating operational order, it is color to pass through the corresponding type of swipe equipment purchase
Ticket scrapes lottery ticket image of the card apparatus by the acquisition purchase of the first camera accordingly, and by the lottery ticket image transmitting of acquisition to scraping
The image processing unit of card apparatus is split image, extract feature and with the standard in pre-stored image processing unit
Image information is compared, it is determined whether is got the winning number in a bond and is completed to get the winning number in a bond after prize-winning;
The card apparatus of scraping includes image processing unit, the figure in the prize area that first camera scrapes off according to user
Piece acquires 1-20 pictures, and according to types of lottery ticket, picture is split, is divided into varying numbers according to color kind of difference
Picture carry out the acquisition and sampling of image data, and sampled result is transferred to image processing unit, described image processing is single
After the picture of member acquisition shooting, picture is carried out by first time segmentation according to the position in preset prize region, is divided into prize area
Picture and non-prize area picture, while according to the difference of each types of lottery ticket, by the initial setting up of prize part, by picture into
Row secondary splitting, is divided into the N pictures needed for prize, the mode of segmentation be according to size divided in equal amounts, by picture segmentation at
The picture of equivalent size will divide block of cells of the later picture segmentation at 7X7 after the completion of segmentation according to the needs of image recognition,
And picture is converted into number, the method that picture is converted into number is that picture is reduced into 32X32 pixels, and by each pixel
Color information be converted into gray value, thus obtained the matrix of a 32X32, then once taken out since the upper left corner
Each block of cells simultaneously calculates.
Further, the system operation initial stage, the central server acquire respectively according to the difference of each lottery ticket
1000 lottery rewarding regions, each type of lottery ticket is according to the difference of type, the prize-winning icon that acquisition 5-20 does not wait, picture
The thumbnail for picture being resolved into first by, depth convolutional neural networks partially overlap 77, then this 77 small figures
Block is input in miniature neural network, the result of each thumbnail can be saved in an array by neural network, and with
In the form storage to database of character string.
Further, the central server uses the maximum pond letter in convolutional network when handling image
Number is next down-sampled, and the maximum value in each square formation array is preserved, new array is made of maximum value, picture has generated number
After group, picture is input to another neural network, determines whether picture matches by this neural network.
Further, it is respectively set second camera and third camera at left and right sides of first camera, three
The lottery ticket pictorial information acquired in real time is transmitted to image processing unit by a camera, and the image processing unit is to picture
Before being split, first by being continuously shot in continuous time N, the sharpness information of the picture of shooting is obtained, and
It is compared and obtains clarity fiducial value;
First camera obtains the clarity Φ of image, and second camera obtains the clarity Φ of image2, third takes the photograph
As head obtains the clarity Φ of image3, image processing unit is obtained according to the first camera of following calculating and second camera schemes
The clarity difference of picture:
In formula, M21Indicate the initial difference of the first camera and second camera acquisition image in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated,
Wherein I indicates the arbitrary integral operation based on quadratic function, and above-mentioned formula is to obtain the ratio information of integral, following
Two formula are identical, are such as based on function y=ax2, it is a in (a, b) in x values<B is any number.
Further, described image processing unit according to it is following calculating the first camera and third camera it is initial poor
Value:
In formula, M31Indicate the initial difference of the first camera and third camera acquisition figure in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated.
Further, image processing unit is according to following initial differences for calculating second camera and third camera:
In formula, M23Indicate the initial difference of second camera and third camera acquisition image in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated.
Further, the function of the cell phone application include home interface, hall interface of making out an invoice, I interface of making out an invoice,
The functions such as individual center interface, wherein home interface includes:Navigation Banner modules, publicize to activity picture concerned;I.e.
Make out an invoice classification display module, show each picture made out an invoice, the relevant informations such as playing method and winning amount;Message center
Module, to show prize-winning message and other systems pushed information;
Hall interface of making out an invoice includes making out an invoice display module, shows that the machine for the scraping award equipment that can be used at present arranges
Table, user have selected i.e. bill after date that the forms such as on-line payment and remaining sum payment can be used to pay, and user selectes scraping award and sets
After standby can remote operation scraping award equipment scraping award, and equipment completes prize after the completion of user's swipe, user can select will in
Amount of bonus is deposited into user balance and is still deposited into bank card;
My interface of making out an invoice includes do not get the winning number in a bond i.e. billing module and i.e. billing module of having got the winning number in a bond, and shows what user had bought
Do not get the winning number in a bond make out an invoice, bought and get the winning number in a bond make out an invoice;
Customer center interface includes:Personal information module stores and is shown the personal information of user;My bill mould
Block, store and show user supplement with money and purchaser record;Integration module makes the integrating function of user;Discount coupon module is user
Obtain the information such as associated coupons;Voucher center module, mainly provides charging function to the user;It withdraws deposit module, mainly just
Face user extracts bonus.
Further, the central server includes:Banner management modules are responsible for the pipe of Banner pictures in APP
Reason includes addition, deletion and the modification function of Banner pictures;Type management of making out an invoice module is responsible for making out an invoice different points
The purpose management of class section is classified according to different lottery ticket face amounts, realizes the addition, deletion and modification function of types of lottery ticket;I.e.
Information of making out an invoice setup module, including:Information setting unit of making out an invoice is wrapped for the setting of the details of each lottery ticket
Include face amount, title, winning amount, quantity;It makes out an invoice prize area setting unit, it is different according to the lottery ticket of each type,
Set the number in prize region and the distance of prize region distance lottery ticket left and right edges and lower edges, distance using pixel as
Unit;It makes out an invoice prize region collecting unit, according to the map data mining platform in different types of acquisition prize region of making out an invoice, each
The color for the prize area covers made out an invoice is different;Prize setting unit of making out an invoice is set according to the difference of each lottery ticket
The prize-winning mode made out an invoice, for example the number of some image occur or some number occur etc.;The bonuses such as instant billing award are set
Unit is set, refers to and corresponding prize amount when the combination of some figure occurs is set according to the bonus table of comparisons;Remote device management
Module, to the maintenance and management of remote equipment, it refers to being set to the location information of every equipment that remote equipment, which lays management,
It sets.
Compared with prior art the beneficial effects of the present invention are, the present invention provide a kind of lottery ticket make out an invoice online sales and
Prize system completes the prize drawing process made out an invoice by technologies such as deep learning, image recognition, big datas, reduces now
Prize of making out an invoice needs to access the bottleneck of lottery central special line system.
System through the invention realizes the online sales made out an invoice and prize, solve now make out an invoice prize can only
The problem of by particular terminal or removing site prize under line;The sales data made out an invoice is greatly improved, long-range swipe is passed through
Pattern, realizes the function similar to electronic instant billing, and user does not have to the prize problem for worrying that purchase is made out an invoice again, realizes use
Family can stay indoors purchase make out an invoice and can prize immediately, greatly facilitate the consumer to make out an invoice.
The present invention can be saved in the result of each thumbnail in one array by neural network, and with the shape of character string
In formula storage to database, it is compared and transports by the preset condition code of prize area picture feature code and backstage of acquisition
Calculate, it is determined whether get the winning number in a bond, while picture be deposited into background data base, as image pattern improve deep learning accuracy rate and
Response speed.
The present invention is pre-processed by image, to ensure that the image obtained has enough clarity, is carrying out image
When comparison and convolution algorithm, there is good clarity basis, avoid generating prize error.
Description of the drawings
Fig. 1 is that the lottery ticket of the embodiment of the present invention is the block diagram of online sales and prize system of making out an invoice;
Fig. 2 is that the lottery ticket of the embodiment of the present invention is the flow diagram of online sales and prize system of making out an invoice;
Fig. 3 is that the lottery ticket of the embodiment of the present invention is the APP functional block diagrams of online sales and prize system of making out an invoice;
Fig. 4 is that the lottery ticket of the embodiment of the present invention is the central server functional block diagram of online sales and prize system of making out an invoice;
Fig. 5 is the structural schematic diagram for scraping card apparatus of the embodiment of the present invention;
Fig. 6 is that the first camera of the embodiment of the present invention shoots the schematic diagram of picture;
Fig. 7 is the schematic diagram in the prize area and non-prize area picture of the embodiment of the present invention;
Fig. 8 is the schematic diagram that the image segmentation of the embodiment of the present invention compares;
Fig. 9 is the schematic diagram of the lottery ticket picture of the embodiment of the present invention.
Specific implementation mode
Below in conjunction with attached drawing, the forgoing and additional technical features and advantages are described in more detail.
The preferred embodiment of the present invention described with reference to the accompanying drawings.It will be apparent to a skilled person that this
A little embodiments are used only for explaining the technical principle of the present invention, it is not intended that limit the scope of the invention.
It should be noted that in the description of the present invention, the instructions such as term "upper", "lower", "left", "right", "inner", "outside"
Direction or the term of position relationship be direction based on ... shown in the drawings or position relationship, this is intended merely to facilitate description, and
It is not instruction or implies that described device or element must have a particular orientation, with specific azimuth configuration and operation, therefore not
It can be interpreted as limitation of the present invention.
The block diagram of online sales and prize system, packet refering to Figure 1, it makes out an invoice for the lottery ticket of the embodiment of the present invention
It includes cell phone application, central server, at least one scrape card apparatus, wherein user passes through the specified swipe of cell phone application remote control
The required movement of card apparatus completion ticketing and prize is scraped in equipment and the control of the function module by being set in cell phone application;In it is genuinely convinced
Device be engaged in by network transmission swipe instruction to central server, whether automatic regular polling has swipe instruction to send out, some scrapes card apparatus
After receiving swipe instruction, relay is controlled using microcontroller, makes to scrape card apparatus energization, completes swipe operation.User passes through mobile phone
Button on APP, remote control scrape card apparatus, and by the way which is selected scrape card controller, card apparatus is scraped in initialization, and cell phone application is logical
It crosses network and sends swipe instruction to central server control centre server action.
In conjunction with shown in Fig. 2, the lottery ticket for the embodiment of the present invention is make out an invoice online sales and the flow signal of prize system
Figure;In actual use, user is that type of making out an invoice passes through swipe equipment purchase after initiating operational order by cell phone application selection
Corresponding type lottery ticket, scrapes lottery ticket image of the card apparatus by the acquisition purchase of the first camera accordingly, and by the lottery ticket figure of acquisition
As be transmitted to scrape card apparatus image processing unit image is split, extract feature and with pre-stored image procossing list
Standard picture information in member is compared, it is determined whether is got the winning number in a bond and is completed to get the winning number in a bond after prize-winning.
The APP functional blocks of online sales and prize system as shown in fig.3, it makes out an invoice for the lottery ticket of the embodiment of the present invention
Figure;The function of cell phone application includes mainly home interface, that is, hall interface of making out an invoice, my interface of making out an invoice, individual center interface etc.
Function, wherein wherein, home interface includes:Navigation Banner modules, publicize to activity picture concerned;It makes out an invoice classification
Display module shows each picture made out an invoice, the relevant informations such as playing method and winning amount;Message center module is used
To show prize-winning message and other systems pushed information.Hall interface of making out an invoice includes making out an invoice display module, and displaying is at present
The machine list for the scraping award equipment that can be used, user have selected i.e. bill after date that can use the shapes such as on-line payment and remaining sum payment
Formula is paid, user select after scraping award equipment can remote operation scraping award equipment scraping award, and equipment after the completion of user's swipe
Prize is completed, user, which can select winning amount being deposited into user balance, is still deposited into bank card.My interface of making out an invoice
Including i.e. billing module and the i.e. billing module of having got the winning number in a bond of not getting the winning number in a bond, what what display user had bought do not got the winning number in a bond makes out an invoice, has bought
And that gets the winning number in a bond makes out an invoice.Customer center interface includes:Personal information module stores and is shown the personal information of user;
My billing module, store and show user supplement with money and purchaser record;Integration module makes the integrating function of user;Discount coupon
Module is that user obtains the information such as associated coupons;Voucher center module, mainly provides charging function to the user;It withdraws deposit mould
Block, mainly aspect user extract bonus.
User scrapes the action of card apparatus with control by being operated to cell phone application.
The center service of online sales and prize system as shown in fig.4, it makes out an invoice for the lottery ticket of the embodiment of the present invention
Device functional block diagram;Central server includes:Banner management modules are responsible for the management of Banner pictures in APP, including
Addition, deletion and the modification function of Banner pictures.Type management of making out an invoice module is responsible for different classifications section purpose of making out an invoice
Management, classifies according to different lottery ticket face amounts, realizes the addition, deletion and modification function of types of lottery ticket.It makes out an invoice information
Setup module, including:It makes out an invoice information setting unit, for the setting of the details of each lottery ticket, including face amount, name
Title, winning amount, quantity;Prize area setting unit of making out an invoice sets prize area according to the lottery ticket of each type difference
The number in domain and the distance of prize region distance lottery ticket left and right edges and lower edges, distance is using pixel as unit;Open
Ticket prize region collecting unit, according to the map data mining platform in different types of acquisition prize region of making out an invoice, each is to make out an invoice
The color of prize area covers is different;It makes out an invoice prize setting unit, according to the difference of each lottery ticket, what setting was made out an invoice
Prize-winning mode, for example the number of some image occur or some number occur etc.;The prizes allocations unit such as instant billing award,
Refer to and corresponding prize amount when the combination of some figure occurs is set according to the bonus table of comparisons.Remote device management module is pair
The maintenance and management of remote equipment, it refers to being configured to the location information of every equipment that remote equipment, which lays management,.Remotely set
Standby safeguard refers to carrying out Distant supervision and control to the machine state of every equipment, and remote equipment pictures management refers to remotely setting
The picture of standby shooting is uploaded onto the server the maintenance and management behind end, and it refers to reporting pipe for repairment to faulty equipment that remote equipment, which reports for repairment,
Reason.User management module, for the management of cell phone application user, can cell phone application subscriber data be modified and be counted and
Reset operation is carried out to the password of APP user.Log management module, refer to the management to operation log in system and system its
The management of his daily record.It withdraws deposit management module, refers to being managed to the Client-initiated demand of withdrawing deposit, withdrawn deposit application by audit,
Decide whether to withdraw deposit to user, by withdrawing deposit, management carries out remittance operation to user.Statistics is carried out by report of withdrawing deposit to summarize.It returns
Prize management, which refers to centring system backstage, can carry out the order of prize-winning artificial management and intervention.Prize information management refers to working as
The list of preceding all prize informations.The management of repaying the bonus of getting the winning number in a bond is the regular management that manually or automatically repaid the bonus according to system.
Prize information management to be confirmed refers to that the wrong order of system image recognition carries out manual intervention management.
As shown in fig.5, it is the structural schematic diagram for scraping card apparatus of the embodiment of the present invention;Scraping card apparatus includes:Setting
The first camera 1 above ticket outlet 3, takes pictures to lottery ticket and by the picture transfer shot to local device, and
It is transferred to central server and cell phone application;It is arranged in the whole camera 2 for scraping one apex angle of card apparatus, can sees scraping award in real time
The overall condition of equipment.Wherein, first camera 1, according to the picture in the prize area that user scrapes off, not according to color kind
Together, 1-20 pictures are acquired, and according to types of lottery ticket, picture is split, picture in varying numbers is divided into carry out picture
The acquisition and sampling of data, and sampled result is transferred to image processing unit.
After the picture of described image processing unit acquisition shooting, picture is carried out the according to the position in preset prize region
Primary segmentation, is divided into prize area picture and non-prize area picture, while according to the difference of each types of lottery ticket, passing through prize portion
The initial setting up divided, carries out secondary splitting by picture, is divided into the N pictures needed for prize.The mode of segmentation is according to size
Divided in equal amounts, by picture segmentation at the picture of equivalent size.It will be divided according to the needs of image recognition after the completion of segmentation later
Picture and is converted into number by picture segmentation at the block of cells of 7X7, and the method that picture is converted into number is to be reduced into picture
32X32 pixels, and the color information of each pixel is converted into gray value, the matrix of a 32X32 has thus been obtained,
Then each block of cells is once taken out since the upper left corner and is calculated.
System operation initial stage, system operation personnel need, according to the type made out an invoice for preparing sale, to complete to make out an invoice and convert
The sampling operation of sample is encouraged, and prize sample is stored to background data base, as the sample data to repay the bonus.Central server root
According to the difference of each lottery ticket, acquire 1000 or so lottery rewarding regions respectively, each type of lottery ticket according to type not
Together, 5-20 not equal prize-winning icons can be acquired, picture is resolved into part weight by picture first by, depth convolutional neural networks
77 thumbnails closed, are then input to this 77 thumbnails in miniature neural network, can be each by neural network
The result of thumbnail is saved in an array, and in the form of character string in storage to database.Pass through the prize area of acquisition
The preset condition code of picture feature code and backstage is compared and operation, it is determined whether gets the winning number in a bond, while picture being deposited into
Background data base improves the accuracy rate and response speed of deep learning as image pattern.
The extraction of the deep learning convolutional neural networks that this system uses, condition code uses convolution feature extraction, that is,
It says and randomly selects a fritter local from image as sample, study is to some features from the sample, then by these features
As filter, make convolution algorithm with original whole image, to obtain the different characteristic in original image on any position
Activation value.Since a pictures, a slightly a little bit smaller array can be obtained by convolutional neural networks, the inside stores me
Picture in critical data.It since the array that this step generates is very big, needs to reduce array, at this moment uses convolutional network
In maximum pond function it is down-sampled, the maximum value in each square formation array is preserved, new number is made of maximum value
The size of group, such array is greatly lowered, and saves the data most closed in image, after picture has generated array, will be schemed
Piece is input to another neural network, determines whether picture matches by this neural network.
After the picture of described image processing unit acquisition shooting, picture is carried out the according to the position in preset prize region
Primary segmentation, is divided into prize area picture and non-prize area picture, while according to the difference of each types of lottery ticket, passing through prize portion
The initial setting up divided, carries out secondary splitting by picture, is divided into the N pictures needed for prize, the mode of segmentation is according to size
Divided in equal amounts, by picture segmentation at the picture of equivalent size.
In the present embodiment, it in order to ensure the accuracy of Image Acquisition, is respectively set in the left and right sides of the first camera 1
The lottery ticket pictorial information acquired in real time is transmitted to image procossing list by second camera 11 and third camera 12, three cameras
Member, the image processing unit is before being split picture, first by being continuously shot in continuous time N,
The sharpness information of the picture of shooting is obtained, and is compared and obtains clarity fiducial value, the picture of acquisition is determined with this
Accuracy and clarity.
In the present embodiment, the first camera obtains the clarity Φ of image, and second camera obtains the clarity of image
Φ2, the clarity Φ of third camera acquisition image3.Image processing unit is imaged according to the first camera of following calculating and second
Head obtains the clarity difference of image:
In formula, M21Indicate the initial difference of the first camera and second camera acquisition image in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated.
Wherein I indicates the arbitrary integral operation based on quadratic function, and above-mentioned formula is to obtain the ratio information of integral, following
Two formula are identical, are such as based on function y=ax2, it is a in (a, b) in x values<B is any number.
The rudimentary algorithm of above-mentioned mean operation is:By obtaining the positional value of all sampled points within some period,
Integral operation and mean square deviation operation are carried out to each value in some period, ratio is then taken, show that is compared is averaged
Value.
Image processing unit is according to following initial differences for calculating the first camera and third camera:
In formula, M31Indicate the initial difference of the first camera and third camera acquisition figure in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated.
Image processing unit is according to following initial differences for calculating second camera and third camera:
In formula, M23Indicate the initial difference of second camera and third camera acquisition image in continuous time N, Φ
Indicate the definition values for the wherein image that the first camera obtains, Φ2Indicate the wherein image that second camera obtains
Definition values, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate product
Partite transport is calculated.
Described image processing unit sets difference threshold as M, and the M of gained is calculated by above-mentioned formula21、M31、M23, respectively
It is compared with difference threshold M, if M21、M31、M23Respectively less than M, then at this point, what each camera obtained in continuous time N
Clarity has sufficiently small difference, can be using the image information acquired at this time as the foundation for determining whether to get the winning number in a bond.
If above-mentioned formula calculates the M of gained21、M31、M23, it is compared respectively with difference threshold M, there are M21、M31、M23Appoint
One difference is more than M, then image processing unit is according to the clarity Φ and preset clarity threshold of first camera
A, B or C adjusts the working condition of second camera, third camera until meeting the M for calculating gained21、M31、M23, respectively with
Difference threshold M is compared, M21、M31、M23Respectively less than M values.
The present invention, to ensure that the image obtained has enough clarity, is carrying out figure by being pre-processed to image
When as comparison and convolution algorithm, there is good clarity basis, avoid generating prize error.
Above-mentioned detailed description is illustrating for one of them possible embodiments of the present invention, the embodiment not to
The scope of the claims of the present invention is limited, all equivalence enforcements or change without departing from carried out by the present invention are intended to be limited solely by the technology of the present invention
In the range of scheme.
Claims (8)
- Online sales and prize system 1. a kind of lottery ticket is made out an invoice, which is characterized in that including:Cell phone application, at least one scrapes card apparatus at central server, wherein user is scraped by what cell phone application remote control was specified The required movement of card apparatus completion ticketing and prize is scraped in card apparatus and the control of the function module by being set in cell phone application;The central server sends swipe instruction to central server by network, and whether automatic regular polling has swipe instruction hair Go out, some is scraped after card apparatus receives swipe instruction, is controlled relay using microcontroller, is made to scrape card apparatus energization, completes swipe behaviour Make;The card apparatus of scraping includes that the first camera being arranged above ticket outlet is arranged and is taken the photograph in the entirety for scraping one apex angle of card apparatus As head, the first camera takes pictures to lottery ticket, by the picture transfer shot to local device, and is transferred to central server And cell phone application, whole camera can see the overall condition of scraping award equipment in real time;The cell phone application selection is that type of making out an invoice passes through the corresponding type lottery ticket of swipe equipment purchase, phase after initiating operational order The lottery ticket image for scraping card apparatus by the acquisition purchase of the first camera answered, and by the lottery ticket image transmitting of acquisition to scraping card apparatus Image processing unit image is split, extract feature and in pre-stored image processing unit standard picture believe Breath is compared, it is determined whether is got the winning number in a bond and is completed to get the winning number in a bond after prize-winning;The card apparatus of scraping includes image processing unit, the picture in the prize area that first camera scrapes off according to user, root According to color kind of difference, 1-20 pictures is acquired, and according to types of lottery ticket, picture is split, be divided into figure in varying numbers Piece carries out the acquisition and sampling of image data, and sampled result is transferred to image processing unit, and described image processing unit is adopted After the picture for collecting shooting, picture is carried out by first time segmentation according to the position in preset prize region, is divided into prize area picture With non-prize area picture, while according to the difference of each types of lottery ticket, by the initial setting up of prize part, picture is carried out two Secondary segmentation is divided into the N pictures needed for prize, and the mode of segmentation is according to size divided in equal amounts, by picture segmentation at equivalent The picture of size will divide block of cells of the later picture segmentation at 7X7 after the completion of segmentation according to the needs of image recognition, and will Picture is converted into number, and the method that picture is converted into number is that picture is reduced into 32X32 pixels, and by the color of each pixel Multimedia message is converted into gray value, has thus obtained the matrix of a 32X32, then primary since the upper left corner to take out each Block of cells simultaneously calculates.
- Online sales and prize system 2. lottery ticket according to claim 1 is made out an invoice, which is characterized in that the system operation Initial stage, the central server acquire 1000 lottery rewarding regions, each type of coloured silk respectively according to the difference of each lottery ticket Stub is according to the difference of type, acquisition 5-20 not equal prize-winning icons, and picture is by, depth convolutional neural networks first picture 77 thumbnails to partially overlap are resolved into, then this 77 thumbnails are input in miniature neural network, pass through nerve Network can be saved in the result of each thumbnail in one array, and in the form of character string in storage to database.
- Online sales and prize system 3. lottery ticket according to claim 2 is made out an invoice, which is characterized in that the center service Device is down-sampled using the maximum pond function in convolutional network when handling image, will be in each square formation array Maximum value preserves, and new array is made of maximum value, and after picture has generated array, picture is input to another nerve Network determines whether picture matches by this neural network.
- Online sales and prize system 4. lottery ticket according to claim 1 is made out an invoice, which is characterized in that taken the photograph described first As second camera and third camera are respectively set at left and right sides of head, three cameras believe the lottery ticket picture acquired in real time Breath is transmitted to image processing unit, and the image processing unit is before being split picture, first by when continuous Between be continuously shot in N, obtain the sharpness information of the picture of shooting, and be compared and obtain clarity fiducial value;First camera obtains the clarity Φ of image, and second camera obtains the clarity Φ of image2, third camera Obtain the clarity Φ of image3, image processing unit obtains image according to first camera of following calculating and second camera Clarity difference:In formula, M21Indicate that the initial difference of the first camera and second camera acquisition image in continuous time N, Φ indicate The definition values for the wherein image that first camera obtains, Φ2Indicate the clear of the wherein image that second camera obtains Angle value, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate integral fortune It calculates,Wherein I indicates that the arbitrary integral operation based on quadratic function, above-mentioned formula are to obtain the ratio information of integral, and following two is public Formula is identical, is such as based on function y=ax2, it is a in (a, b) in x values<B is any number.
- Online sales and prize system 5. lottery ticket according to claim 4 is made out an invoice, which is characterized in that described image processing Unit is according to following initial differences for calculating the first camera and third camera:In formula, M31Indicate that the initial difference of the first camera and third camera acquisition figure in continuous time N, Φ indicate The definition values for the wherein image that first camera obtains, Φ2Indicate the clear of the wherein image that second camera obtains Angle value, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate integral fortune It calculates.
- Online sales and prize system 6. lottery ticket according to claim 4 is made out an invoice, which is characterized in that image processing unit According to following initial differences for calculating second camera and third camera:In formula, M23Indicate that the initial difference of second camera and third camera acquisition image in continuous time N, Φ indicate The definition values for the wherein image that first camera obtains, Φ2Indicate the clear of the wherein image that second camera obtains Angle value, Φ3Indicate that the definition values for the wherein image that third camera obtains, T indicate that mean square deviation operation, I indicate integral fortune It calculates.
- Online sales and prize system 7. lottery ticket according to claim 1 is made out an invoice, which is characterized in that the cell phone application Function include home interface, hall interface of making out an invoice, my interface of making out an invoice, the functions such as individual center interface, wherein homepage Interface includes:Navigation Banner modules, publicize to activity picture concerned;Make out an invoice classification display module, show each The relevant informations such as the picture made out an invoice, playing method and winning amount;Message center module, to show prize-winning message and Other systems pushed information;Hall interface of making out an invoice includes making out an invoice display module, shows the machine list for the scraping award equipment that can be used at present, use Family has selected i.e. bill after date that the forms such as on-line payment and remaining sum payment can be used to pay, and user selectes energy after scraping award equipment Enough remote operation scraping award equipment scraping awards, and equipment completes prize after the completion of user's swipe, user can select winning amount It is deposited into user balance and is still deposited into bank card;My interface of making out an invoice includes not getting the winning number in a bond i.e. billing module and i.e. billing module of having got the winning number in a bond, show that user bought not in Prize i.e. make out an invoice, bought and get the winning number in a bond make out an invoice;Customer center interface includes:Personal information module stores and is shown the personal information of user;My billing module, Store and show user supplement with money and purchaser record;Integration module makes the integrating function of user;Discount coupon module is that user obtains Obtain the information such as associated coupons;Voucher center module, mainly provides charging function to the user;It withdraws deposit module, mainly aspect User extracts bonus.
- Online sales and prize system 8. lottery ticket according to claim 7 is made out an invoice, which is characterized in that the center service Device includes:Banner management modules, are responsible for the management of Banner pictures in APP, including Banner pictures addition, delete and Change function;Type management of making out an invoice module is responsible for different classifications section purpose management of making out an invoice, according to different lottery ticket face amounts Classify, realizes the addition, deletion and modification function of types of lottery ticket;Information of making out an invoice setup module, including:It makes out an invoice information Setting unit, for the setting of the details of each lottery ticket, including face amount, title, winning amount, quantity;Make out an invoice Prize area setting unit, it is different according to the lottery ticket of each type, the number in setting prize region and prize region away from With a distance from lottery ticket left and right edges and lower edges, distance is using pixel as unit;It makes out an invoice prize region collecting unit, root According to the map data mining platform in different types of acquisition prize region of making out an invoice, the color of each prize area covers made out an invoice is not Together;Prize setting unit of making out an invoice sets the prize-winning mode made out an invoice, for example occur some according to the difference of each lottery ticket There is some number etc. in the number of image;The prizes allocations unit such as instant billing award refers to and is set according to the bonus table of comparisons Some figure combination corresponding prize amount when occurring;Remote device management module, to the maintenance and management of remote equipment, It refers to being configured to the location information of every equipment that remote equipment, which lays management,.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810348734.7A CN108288322A (en) | 2018-04-18 | 2018-04-18 | Lottery ticket is online sales and the prize system of making out an invoice |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810348734.7A CN108288322A (en) | 2018-04-18 | 2018-04-18 | Lottery ticket is online sales and the prize system of making out an invoice |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108288322A true CN108288322A (en) | 2018-07-17 |
Family
ID=62834652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810348734.7A Pending CN108288322A (en) | 2018-04-18 | 2018-04-18 | Lottery ticket is online sales and the prize system of making out an invoice |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108288322A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108922027A (en) * | 2018-07-25 | 2018-11-30 | 广州倚天网络科技有限公司 | A kind of commodity retail system based on block chain |
CN111127063A (en) * | 2018-11-01 | 2020-05-08 | 腾讯科技(深圳)有限公司 | Data processing method, computer readable storage medium and computer device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101142603A (en) * | 2005-01-18 | 2008-03-12 | 集特科罗得岛公司 | Flexible online instant lottery game |
CN204347955U (en) * | 2014-12-19 | 2015-05-20 | 关宇飞 | A kind of batch lottery ticket scraping award machine |
CN107106905A (en) * | 2015-01-04 | 2017-08-29 | 佩美克西斯有限公司 | Three-dimensional lottery ticket |
CN107808442A (en) * | 2017-12-04 | 2018-03-16 | 河北汇金机电股份有限公司 | Instant lottery remote transaction system and information processing method |
CN107871356A (en) * | 2017-12-04 | 2018-04-03 | 河北汇金机电股份有限公司 | Compact instant lottery point-of-sale terminal and instant lottery coating scrape the extraction of root |
-
2018
- 2018-04-18 CN CN201810348734.7A patent/CN108288322A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101142603A (en) * | 2005-01-18 | 2008-03-12 | 集特科罗得岛公司 | Flexible online instant lottery game |
CN204347955U (en) * | 2014-12-19 | 2015-05-20 | 关宇飞 | A kind of batch lottery ticket scraping award machine |
CN107106905A (en) * | 2015-01-04 | 2017-08-29 | 佩美克西斯有限公司 | Three-dimensional lottery ticket |
CN107808442A (en) * | 2017-12-04 | 2018-03-16 | 河北汇金机电股份有限公司 | Instant lottery remote transaction system and information processing method |
CN107871356A (en) * | 2017-12-04 | 2018-04-03 | 河北汇金机电股份有限公司 | Compact instant lottery point-of-sale terminal and instant lottery coating scrape the extraction of root |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108922027A (en) * | 2018-07-25 | 2018-11-30 | 广州倚天网络科技有限公司 | A kind of commodity retail system based on block chain |
CN111127063A (en) * | 2018-11-01 | 2020-05-08 | 腾讯科技(深圳)有限公司 | Data processing method, computer readable storage medium and computer device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108596434B (en) | Fraud detection and methods of risk assessment, system, equipment and storage medium | |
CN103678444B (en) | Image synthesis system, image processing equipment and image processing method | |
CN108419027B (en) | Intelligent photographing method and server | |
CN100535946C (en) | Method for gaming and gaming system | |
CN104616132B (en) | A kind of logistic information management system and method | |
AU2019271966A1 (en) | Methods of transferring funds in a cashless wagering system | |
CN110210542A (en) | Picture character identification model training method, device and character identification system | |
US20130307998A1 (en) | Interactive unattended photobooth | |
WO2011147433A1 (en) | Method and devices for creating and using an identification document that can be displayed on a mobile device | |
JP2015537273A (en) | Improvements regarding ticketing data entry | |
CN110428555A (en) | Shared charging equipment gives back method and device | |
CN106355762A (en) | Self-help payment oiling method and device | |
JP2015198935A (en) | System and methods for operating gaming environments | |
CN108537629A (en) | A kind of the generation system and generation method of custom card | |
HK1200962A1 (en) | Systems and methods for processing, storing, and displaying map data | |
US11554313B1 (en) | System and method for robotic ticket scratching via live remote mobile interface | |
CA2758163A1 (en) | Lottery tickets, systems, and methods | |
CN108288322A (en) | Lottery ticket is online sales and the prize system of making out an invoice | |
US12337246B2 (en) | System and method for digitally simulated ticket scratching | |
US20230230439A1 (en) | Animating gaming-table outcome indicators for detected randomizing-game-object states | |
CN103843315A (en) | Mobile expense solutions architecture and method | |
CN108090108A (en) | Information processing method, device, electronic equipment and storage medium | |
CN103793811B (en) | Online settlement method and device | |
CN110390509A (en) | Industry hatching method, system, equipment and storage medium Internet-based | |
CN109598026A (en) | A kind of Landscape Design management system and application method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180717 |