CN113808288A - Real-time timing consumption deduction analysis method and system for parking lot - Google Patents
Real-time timing consumption deduction analysis method and system for parking lot Download PDFInfo
- Publication number
- CN113808288A CN113808288A CN202111043328.8A CN202111043328A CN113808288A CN 113808288 A CN113808288 A CN 113808288A CN 202111043328 A CN202111043328 A CN 202111043328A CN 113808288 A CN113808288 A CN 113808288A
- Authority
- CN
- China
- Prior art keywords
- coupon
- code
- deduction
- parking
- password
- 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.)
- Granted
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 80
- 238000012545 processing Methods 0.000 claims description 19
- 238000013507 mapping Methods 0.000 description 78
- 238000001914 filtration Methods 0.000 description 43
- 230000005540 biological transmission Effects 0.000 description 9
- 238000004364 calculation method Methods 0.000 description 7
- 238000003709 image segmentation Methods 0.000 description 4
- 238000012216 screening Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07B—TICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
- G07B15/00—Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
- G07B15/02—Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/14—Payment architectures specially adapted for billing systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3276—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/387—Payment using discounts or coupons
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a real-time timing consumption deduction analysis method and a real-time timing consumption deduction analysis system for a parking lot, wherein the method comprises the following steps: s1, acquiring a coupon comparison code according to the two-dimensional code printed on the parking lot coupon; s2, obtaining the parking deduction amount according to the coupon comparison code obtained in the step S1; s3, determining whether the deduction amount in the step S2 is larger than or equal to the parking fee: if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released; if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method: p is a radical of1=p2‑p3Wherein p is1Indicating a replenishment charge;p2Indicating a parking fee; p is a radical of3Representing the amount of the deduction. The invention can carry out consumption deduction in a scanning mode, is safe and reliable, and enhances the experience of consumers.
Description
Technical Field
The invention relates to the technical field of parking lots, in particular to a real-time timing consumption deduction analysis method and system for a parking lot.
Background
Currently, many merchants typically issue parking lot coupons to owners of vehicles who consume in their stores in order to appeal to the consumers. However, the input is required according to the coupon number marked on the coupon, which is not favorable for the experience of the consumer.
Disclosure of Invention
The invention aims to at least solve the technical problems in the prior art, and particularly provides a real-time timing consumption deduction analysis method and system for a parking lot.
In order to achieve the above purpose, the present invention provides a real-time timing consumption deduction analysis method for a parking lot, comprising the following steps:
s1, acquiring a coupon comparison code according to the two-dimensional code printed on the parking lot coupon;
s2, obtaining the parking deduction amount according to the coupon comparison code obtained in the step S1;
s3, determining whether the deduction amount in the step S2 is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
In a preferred embodiment of the present invention, in step S1, the method for obtaining the coupon comparison code according to the two-dimensional code printed on the parking lot coupon includes the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon comparison code, wherein the method for obtaining the coupon comparison code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon comparison code;
sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
In a preferred embodiment of the present invention, in step S1, the method for generating the two-dimensional code by the server is:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
wherein Coupon password represents a Coupon code;
coupon Number represents the Coupon Number;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
In a preferred embodiment of the present invention, step S0 is further included before step S1, and the server is logged in by using the mobile phone client.
The invention also discloses a real-time timing consumption deduction analysis system for the parking lot, which comprises a coupon comparison code acquisition module, a deduction amount acquisition module and a judgment and release module, wherein the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the judgment and release module;
the coupon comparison code acquisition module is used for acquiring a coupon comparison code of the parking lot coupon according to the two-dimensional code printed on the parking lot coupon;
the deduction amount acquisition module is used for acquiring the parking deduction amount according to the coupon comparison code acquired in the coupon comparison code acquisition module;
the judgment and release module is used for judging whether the deduction amount in the deduction amount acquisition module is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
In a preferred embodiment of the present invention, in the coupon comparison code obtaining module, a method for obtaining a coupon comparison code according to a two-dimensional code printed on a parking lot coupon includes the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon comparison code, wherein the method for obtaining the coupon comparison code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon comparison code;
sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
In a preferred embodiment of the present invention, in the coupon comparison code obtaining module, the method for the server to generate the two-dimensional code is:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
wherein Coupon password represents a Coupon code;
coupon Number represents the Coupon Number;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
In a preferred embodiment of the present invention, the system further comprises a client login module, wherein the client login module is used for logging in the server by using the mobile phone client;
the data output end of the client login module is connected with the data input end of the coupon comparison code acquisition module, the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the permission judgment module.
In conclusion, due to the adoption of the technical scheme, the consumption deduction can be performed in a scanning mode, the method is safe and reliable, and the experience of consumers is enhanced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic block diagram of the process of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
The invention provides a real-time timing consumption deduction analysis method for a parking lot, which comprises the following steps of:
s1, acquiring a coupon comparison code according to the two-dimensional code printed on the parking lot coupon;
s2, obtaining the parking deduction amount according to the coupon comparison code obtained in the step S1;
s3, determining whether the deduction amount in the step S2 is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
In a preferred embodiment of the present invention, the method for identifying the license plate number of the parking vehicle corresponding to the deduction amount comprises the following steps:
s31, acquiring a license plate image of the parking vehicle, and obtaining a filtering code of the license plate image of the parking vehicle according to the acquired license plate image of the parking vehicle; sending the obtained filtering code and the parking vehicle license plate image to a data filtering terminal;
s32, after receiving the filtering code and the license plate image of the parking vehicle sent by the mobile intelligent handheld terminal, the data filtering terminal judges whether the filtering code exists in a license plate image filtering database:
if the filtering code exists in the license plate image filtering database, the received filtering code is sent to a server; step S33 is executed;
if the filtering code does not exist in the license plate image filtering database, the received filtering code and the license plate image of the parking vehicle are sent to a server; step S34 is executed;
s33, after the server receives the filtering code sent by the data filtering terminal, the server searches the number of the parking vehicle license plate corresponding to the filtering code according to the filtering code;
s34, after receiving the filtering code and the parking vehicle license plate image sent by the data filtering terminal, the server extracts the parking vehicle license plate number from the parking vehicle license plate image; and binding the filtered codes with the extracted license plate numbers of the parking vehicles.
In a preferred embodiment of the present invention, in step S31, the method for acquiring the image of the license plate of the parked vehicle includes one or any combination of the following:
acquiring a first step: the image of the license plate of the parking vehicle is shot by the camera;
obtaining a second: other mobile intelligent handheld terminals transmit the license plate image of the parking vehicle to the mobile intelligent handheld terminal connected with the data filtering terminal in a Bluetooth mode;
obtaining three: and the license plate image of the parking vehicle stored on the mobile intelligent handheld terminal.
In a preferred embodiment of the invention, the method for obtaining a message comprises the following steps:
s311, the client installed on the mobile intelligent handheld terminal judges whether the camera shoots an image:
if the camera shoots an image, the client acquires a shot image storage path;
if the camera does not shoot the image, continuing to wait, and returning to the step S311;
s312, the client acquires the shot image according to the shot image storage path acquired in the step S311; obtaining the license plate image of the parking vehicle;
the method for acquiring the second image comprises the following steps:
S3A, the client installed on the mobile intelligent handheld terminal judges whether the client is connected with other mobile intelligent handheld terminals in a Bluetooth mode, and receives images sent by other mobile intelligent handheld terminals:
if the images sent by other mobile intelligent handheld terminals are received, the client side obtains a received image storage path;
if the images sent by other mobile intelligent handheld terminals are not received, continuing to wait, and returning to the step S3A;
S3B, the client end obtains the received image according to the received image storage path obtained in the step S3A; obtaining the license plate image of the parking vehicle;
the method for acquiring the third image comprises the following steps:
s3a, the client installed on the mobile intelligent handheld terminal judges whether the client triggers an image folder searching command:
if the client receives a command of triggering and searching the image folder, popping up the image folder, wherein the image folder comprises a shot image storage path folder or/and a received image storage path folder; in the shot image storage path folder, shot images are arranged in the order from the back to the front according to the shooting time, and in the received image storage path folder, received images are arranged in the order from the back to the front according to the receiving time;
if the client does not receive the command of triggering to search the image folder, continuing to wait, and returning to the step S3 a;
and S3b, acquiring the selected image according to the selected image path to obtain the license plate image of the parking vehicle. The storage path of the license plate images of the parking vehicles can be quickly found by acquiring the license plate images of the parking vehicles in different modes, namely the stored license plate images shot by a client installed on the mobile intelligent handheld terminal, the license plate images of the parking vehicles transmitted by other mobile intelligent handheld terminals or the license plate images of the parking vehicles shot by a camera directly.
In a preferred embodiment of the present invention, the method for obtaining the filtering code in step S31 includes the following steps:
s31-1, obtaining the image width value, the image height value and the image resolution of the collected parking vehicle license plate image, and recording as IHeight、IWidthAnd IResolution,IHeightImage height value, I, representing the image of the license plate of a parked vehicleWidthImage width value, I, representing the image of the license plate of a parked vehicleResolutionAn image resolution representing a license plate image of a parking vehicle;
s31-2, obtaining the image height value I of the license plate image of the parking vehicle according to the step S31-1HeightImage width value I of license plate image of parking vehicleWidthAnd image resolution I of license plate image of parking vehicleResolutionForming a two-dimensional matrix of the license plate image of the parking vehicle; the notation is as follows:
wherein, Pixel11Representing the color chroma of pixel points in the 1 st row and the 1 st column of the license plate image of the parking vehicle;
Pixel12representing the color chroma of pixel points in the 1 st row and the 2 nd column of the license plate image of the parking vehicle;
Pixel13line 1 of image representing number plate of parking vehicleThe chroma of the pixel points in column 3;
Pixel1Jrepresenting the color chroma of pixel points in the 1 st row and the J column of the license plate image of the parking vehicle; j ═ IWidth×IResolution;
Pixel21Representing the color chroma of pixel points in the 2 nd row and the 1 st column of the license plate image of the parking vehicle;
Pixel22representing the color chroma of pixel points in the 2 nd row and the 2 nd column of the license plate image of the parking vehicle;
Pixel23representing the color chroma of pixel points in the 2 nd row and 3 rd column of the license plate image of the parking vehicle;
Pixel2Jrepresenting the color chroma of pixel points in the No. 2 row and the No. J column of the license plate image of the parking vehicle;
Pixel31representing the color chroma of pixel points in the 3 rd row and the 1 st column of the license plate image of the parking vehicle;
Pixel32representing the color chroma of pixel points in the 3 rd row and the 2 nd column of the license plate image of the parking vehicle;
Pixel33representing the color chroma of pixel points in the 3 rd row and the 3 rd column of the license plate image of the parking vehicle;
Pixel3Jrepresenting the color chroma of pixel points in the No. 3 row and the No. J column of the license plate image of the parking vehicle;
PixelI1representing the color chroma of pixel points in the No. 1 row of the license plate image of the parking vehicle; i ═ IHeight×IResolution;
PixelI2Representing the color chroma of pixel points in the No. 2 row of the license plate image of the parking vehicle;
PixelI3representing the color chroma of pixel points in the No. 3 row of the license plate image of the parking vehicle;
PixelIJrepresenting the color chroma of pixel points in the ith row and the jth column of the license plate image of the parking vehicle;
s31-3, calculating the color chroma, wherein the calculation method of the color chroma comprises the following steps:
wherein, RedijRepresenting the red chroma of pixel points in the ith row and the jth column of the license plate image of the parking vehicle;
Greenijrepresenting the green chroma of pixel points in the ith row and the jth column of the license plate image of the parking vehicle;
Blueijrepresenting the blue chroma of pixel points in the ith row and the jth column of the license plate image of the parking vehicle;
Pixelijrepresenting the color chroma of pixel points in the ith row and the jth column of the license plate image of the parking vehicle; i is a positive integer less than or equal to I, J is a positive integer less than or equal to J;
s31-4, forming the I × J color saturation character strings by the I × J color saturation, namely arranging the color saturation in the sequence from left to right from top to bottom, wherein the sequence is as follows:
Pixel11Pixel12Pixel13…Pixel1JPixel21Pixel22Pixel23…Pixel2JPixel31Pixel32Pixel33…Pixel3J…PixelI1PixelI2PixelI3…PixelIJ,
s31-5, processing the character string of the chroma obtained in the step S31-4 to obtain a filtered code; the method for processing the character string of the chroma character string comprises the following steps:
Filter code=Hash algorithm(Chromaticity string),
wherein the Filter code represents a Filter code;
hash algorithms () represents a Hash algorithm; specifically, an MD5 algorithm can be adopted;
the chroma string represents a string of chroma colors.
In a preferred embodiment of the present invention, the method for the server to retrieve the license plate number of the parking vehicle corresponding to the filter code according to the filter code in step S33 includes the following steps:
s331, dividing the characters into N sections according to the character length of the filtering codes, wherein N is a positive integer greater than or equal to 2, and respectively including a 1 st filtering code, a 2 nd filtering code, a 3 rd filtering code, … … and an Nth filtering code from left to right; the character length of the nth filtering code is less than that of the filtering code, N is a positive integer less than or equal to N, and the Filter code is a Filter code1-Filter code2-Filter code3-…-Filter codeQThe Filter code represents a Filter code1Represents the 1 st filtered code, Filter code2Represents a 2 nd Filter code3Represents a 3 rd filtered code, Filter codeQRepresents the Q-th filtered code; -representing a string connector;
s332, making q equal to 1,
s333, filtering the Filter code according to the q-th filtering codeqScreening Filter code containing q-th filtering codeqPutting the character string into a qth filtering code set;
s334, Q is Q +1, and the relationship between Q and Q is determined:
if Q is larger than Q, executing the next step;
if Q is less than or equal to Q, returning to step S333;
s335, screening out characters with the same character strings in the No. 1 filtered code set, the No. 2 filtered code set, the No. 3 filtered code set, … … and the No. Q filtered code set to form a screened character set, screening out filtered codes Filter code from the screened character set, and obtaining the number of the parking vehicle license plate corresponding to the filtered codes Filter code according to the filtered codes Filter code.
In a preferred embodiment of the present invention, the method for extracting the number of the parking vehicle from the image of the parking vehicle at step S34 includes the following steps:
s341, judging whether the license plate image of the parking vehicle is a gray image:
if the license plate image of the parking vehicle is a gray image, executing the next step;
if the license plate image of the parking vehicle is not a gray level image, converting the license plate image of the parking vehicle into the gray level image, wherein the method for converting the license plate image of the parking vehicle into the gray level image comprises the following steps:
Gray=(R+G+B)/3,
wherein Gray represents a Gray value;
r represents the red chroma under the RGB color mode;
g represents the green chroma in the RGB color mode;
b represents the blue chroma in the RGB color mode;
s342, calculating a proportionality coefficient between the total number of license plate character pixel points and the license plate image of the parking vehicle, wherein the calculating method of the proportionality coefficient between the total number of license plate character pixel points and the license plate image of the parking vehicle comprises the following steps:
wherein, w0Expressing the proportion coefficient of the total number of the license plate character pixel points and the license plate image of the parking vehicle;
N1representing the total number of the gray values in the license plate images of the preset parking vehicles, which are smaller than the license plate image segmentation threshold value P;
IWidthan image width value representing a license plate image of a parking vehicle;
IHeightan image height value representing a license plate image of a parking vehicle;
IResolutionan image resolution representing a license plate image of a parking vehicle;
s343, calculating the proportion coefficient of the total number of other pixel points and the license plate image of the parking vehicle, wherein the calculation method of the proportion coefficient of the total number of other pixel points and the license plate image of the parking vehicle comprises the following steps:
w1=1-w0,
w1expressing the proportion coefficient of the total number of other pixel points and the license plate image of the parking vehicle;
w0expressing the proportion coefficient of the total number of the license plate character pixel points and the license plate image of the parking vehicle;
s344, calculating the gray level mean value of the license plate character image, wherein the calculation method of the gray level mean value of the license plate character image comprises the following steps:
wherein A represents the gray average value of the license plate character image;
N1representing the total number of the gray values in the license plate images of the preset parking vehicles, which are smaller than the license plate image segmentation threshold value P;
niexpressing the gray value of the ith pixel point in the license plate character image;
s344, calculating the gray level mean value of the background image formed by other pixel points, wherein the calculation method of the gray level mean value of the image formed by other pixel points comprises the following steps:
b represents the gray average value of the background image formed by other pixel points;
N1' indicates the total number of other pixel points, N1+N1′=IWidth×IHeight×IResolution 2;
ni' expressing the gray value of the ith pixel point in the background image;
s345, calculating the gray average value of the license plate image of the parking vehicle, wherein the calculation method of the gray average value of the license plate image of the parking vehicle comprises the following steps:
C=w0A+Bw1,
c represents the gray average value of the license plate image of the parking vehicle;
w0expressing the proportion coefficient of the total number of the license plate character pixel points and the license plate image of the parking vehicle;
a represents the gray average value of the license plate character image;
b represents the gray average value of the background image formed by other pixel points;
w1expressing the proportion coefficient of the total number of other pixel points and the license plate image of the parking vehicle;
s346, calculating the gray difference of the license plate images of the parking vehicles, wherein the calculation method of the gray difference of the license plate images of the parking vehicles comprises the following steps:
D=w0(A-C)2+(C-B)2w1,
wherein D represents the gray difference of the license plate image of the parking vehicle;
w0expressing the proportion coefficient of the total number of the license plate character pixel points and the license plate image of the parking vehicle;
a represents the gray average value of the license plate character image;
c represents the gray average value of the license plate image of the parking vehicle;
b represents the gray average value of the background image formed by other pixel points;
w1expressing the proportion coefficient of the total number of other pixel points and the license plate image of the parking vehicle;
obtaining an image segmentation threshold value P when the gray difference value of the license plate image of the parking vehicle is maximum by adopting a traversal method;
s347, calculating the substitute pixel value of the license plate image of the parking vehicle, wherein the calculation method of the substitute pixel value of the license plate image of the parking vehicle comprises the following steps:
wherein IF represents a logical condition IF;
p represents an image segmentation threshold;
ni"represents the gray value of the ith pixel point in the license plate image of the parking vehicle, i belongs to [0, N ∈1+N1′]and i∈Z+And represents a logical condition and, Z+Representing a set of positive integers;
s348, comparing the comparison character with the character in the image of the number plate of the parking vehicle in the step S347 to obtain the number plate of the parking vehicle.
In a preferred embodiment of the present invention, the method for binding the filtered code with the extracted number of the parking vehicle license plate in step S34 includes the steps of:
s34-1, judging whether the extracted number of the parking vehicle number plate exists in a server number plate storage database or not:
if the extracted number of the parking vehicle license plate exists in the server license plate storage database, executing the step S34-2;
if the extracted number of the parking vehicle license plate does not exist in the server license plate storage database, storing the number of the parking vehicle license plate in the server license plate storage database, and returning to the step S34-1;
s34-2, judging whether the extracted number plate number of the parking vehicle is bound with other filtering codes:
if the extracted license plate number of the parking vehicle is bound with other filtering codes, establishing a filtering code binding list, placing the other filtering codes and the filtering codes in the filtering code binding list, and binding the filtering code binding list with the license plate number of the parking vehicle;
and if the extracted number plate number of the parking vehicle is not bound with other filtering codes, binding the filtering codes with the number plate number of the parking vehicle. The method and the device can realize that one license plate number of the parking vehicle corresponds to a filtering code binding list formed by a plurality of different filtering codes, and reduce the storage capacity.
In a preferred embodiment of the present invention, in step S1, the method for obtaining the coupon comparison code according to the two-dimensional code printed on the parking lot coupon includes the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon comparison code, wherein the method for obtaining the coupon comparison code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon comparison code;
sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
The method for acquiring the coupon number of the parking lot coupon according to the two-dimensional code printed on the parking lot coupon can also comprise the following steps of:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon recording code, wherein the method for obtaining the coupon recording code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon record code;
sending the obtained Coupon recording code to a server;
s13, the server processes the received Coupon record code to obtain the Coupon comparison code, the Coupon comparison code obtaining mode is:
Coupon comparison code=Hash algorithm(Coupon record code)
wherein, the Coupon comparison code represents the Coupon comparison code;
hash algorithms () represents a Hash algorithm;
the Coupon record code represents a Coupon record code;
s14, judging whether the Coupon comparison code Coupon match code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
In a preferred embodiment of the present invention, in step S1, the method for generating the two-dimensional code by the server is:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
wherein Coupon password represents a Coupon code;
coupon Number represents the Coupon Number;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
The method for generating the two-dimensional code by the server may also be:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
Coupon Security Number=Hash algorithm(Coupon password)
wherein, Coupon Security Number represents a Coupon code;
hash algorithms () represents a Hash algorithm;
coupon code is represented by Coupon password;
s1-2, processing the Coupon code Coupon Security Number obtained in the step S1-1 to obtain a Coupon Security Number, wherein the method for obtaining the Coupon Security Number comprises the following steps:
wherein Coupon password represents a Coupon security number;
presentation serverThe private key encryption algorithm of (1); the private key encryption algorithm of the server and the public key decryption algorithm of the server are asymmetric algorithms, namely the coupon codes are encrypted through the private key of the server, and the encrypted data are decrypted through the public key of the server.
Coupon Number represents the Coupon code;
s1-3, binding the Coupon security number Coupon password obtained in the step S1-2 with the deduction amount and storing the bound Coupon security number Coupon password in a deduction cost database, and generating a two-dimensional code which can be used for mobile phone client scanning by the Coupon security number Coupon password;
and S1-4, printing the two-dimensional code in the step S1-3 on the coupon of the parking lot.
In a preferred embodiment of the present invention, before step S1, the method further includes step S0, logging in the server by using the mobile phone client, and the method for logging in the server by using the mobile phone client includes the following steps:
s01, the login user inputs the client use account and password to the account login input box;
s02, extracting the client use account and the client use password input by the password login input box in the step S01, and processing the client use account or/and the client use password to obtain an upload account and an upload password; uploading the uploading account and the uploading password to a server;
s03, the server processes the received uploading account and the uploading password to obtain a comparison account and a comparison password, and judges whether the comparison account and the comparison password are consistent with the storage account and the storage password stored by the server:
in this embodiment, the method for obtaining the storage account and the storage password includes the following steps:
s03a, during registration, a registered user inputs a client use account in an account registration input box, the client use account comprises one of numbers 0-9, lower case letters a-Z and upper case letters A-Z, the number of digits of the client use account is alpha, and alpha belongs to [6,15] & alpha belongs to Z; z represents an integer set, and a password for the client to use is input in a password registration input box, wherein the password for the client to use comprises numbers 0-9, lower case letters a-Z and upper case letters A-Z and exists simultaneously, the number of the password for the client to use is beta, and the beta belongs to [6,20 ];
s03b, the client judges the number of digits and the set alpha of the account number used by the client and input into the account number registration input box by the registered user0The relationship between:
if α is1∈α0In which α is1Indicates the number of digits, alpha, of the account number used by the client, which the registered user inputs into his account registration input box0=[6,15]If yes, executing the next step;
if it isDisplaying warning information beside the account registration input box, wherein the warning information indicates that the number of digits of the input client-side account does not meet the specification:
if the number of the input client use account is shorter than six, the warning information is that the number of the input client use account is shorter than six;
if the number of digits of the input client use account is longer than fifteen digits, the warning information indicates that the number of digits of the input client use account is longer than fifteen digits;
s03c, the client judges the number of the client use password and the set beta which are input into the password registration input box by the registered user0The relationship between:
if beta is1∈β0Wherein beta is1Indicating the number of client-side-use passwords, beta, entered by a registered user into its password registration entry box0=[6,20]If yes, executing the next step;
if it isDisplaying warning information beside the password registration input box, wherein the warning information indicates that the number of the input client use password does not meet the regulation:
if the number of the input client use password is shorter than six bits, the warning information is that the number of the input client use password is shorter than six bits;
if the number of the password used by the input client is longer than twenty, the warning information is that the number of the password used by the input client is longer than twenty;
s03d, the client determines whether the password characters used by the client, which are input to the password registration input box by the registered user, include numbers, lower case letters, and upper case letters:
s03d1, let' S1=χ2=χ30, wherein x1Denotes a first intermediate parameter, χ2Representing the second intermediate parameter,%3Represents a third intermediate parameter; delta1=δ2=δ3=1;δ1Denotes a first sequence number parameter, δ2Denotes a second sequence number parameter, δ3Represents a third sequence number parameter;
if it isBelongs to the range of 0 to 9 of the digital set,delta-representing client-use password entered by a registered user into his password registration entry box1A bit; then delta1=δ1+ 1; step S03d3 is executed;
if it isNot belonging to digit sets 0-9, then delta1=δ1+1,χ1=χ1+ 1; determining delta thereof1And beta1The relationship of (1):
if delta1≥β1-1, displaying a warning message beside the password registration input box, the warning message being inputThe client uses the password characters which do not accord with the regulation, and please input characters comprising numbers, lower case letters and upper case letters;
if delta1≤β1-2, return to step S03d 2;
if it isBelongs to a set a-z of small-letter letters,delta-representing client-use password entered by a registered user into his password registration entry box2A bit; then delta2=δ2+ 1; step S03d4 is executed;
if it isDoes not belong to the lower case letter sets a-z, then delta2=δ2+1,χ2=χ2+ 1; determining delta thereof2And beta1The relationship of (1):
if delta2≥β1Displaying warning information beside the password registration input box, wherein the warning information is that the input client uses password characters which do not accord with the regulations, and please input characters comprising numbers, lower case letters and upper case letters;
if delta2≤β11, return to step S03d 3;
if it isBelongs to a capital letter set A-Z,delta-representing client-use password entered by a registered user into his password registration entry box3A bit; then delta3=δ3+ 1; step S03e is executed;
if it isNot belonging to capital letter sets A-Z, then delta3=δ3+1,χ3=χ3+ 1; determining delta thereof3And beta1The relationship of (1):
if delta3≥β1+1, displaying warning information beside the password registration input box, wherein the warning information is that the input client uses password characters which do not accord with the regulations, and please input characters comprising numbers, lower case letters and upper case letters;
if delta3≤β1Then, return to step S0344;
s03e, processing the client use account or/and the client use password input by the password registration input box from the account registration input box by the registered user to obtain an upload account and an upload password;
and S03f, the server processes the received uploading account and the uploading password to obtain a storage account and a storage password, and stores the storage account and the storage password.
In a preferred embodiment of the present invention, in step S03e, the method for processing the account used by the client, which is input to the account registration input box by the registered user, to obtain the account uploaded by the client includes the following steps:
s03e1, performing numerical mapping on the client by using the account according to the character-numerical mapping table to obtain a mapping account; the character-to-value mapping table is shown in table 1.
TABLE 1 character-to-value mapping table
Character(s) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | a |
Numerical value | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
Character(s) | b | c | d | e | f | g | h | i | j | k | l |
Numerical value | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
Character(s) | m | n | o | p | q | r | s | t | u | v | w |
Numerical value | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
Character(s) | x | y | z | A | B | C | D | E | F | G | H |
Numerical value | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |
Character(s) | I | J | K | L | M | N | O | P | Q | R | S |
Numerical value | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
Character(s) | T | U | V | W | X | Y | Z | ||||
Numerical value | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
S03e2, switching the mapping account number into an intermediate account number for representation; the method for switching the mapping account number into the intermediate account number comprises the following steps:
wherein,delta-representing client-use password entered by a registered user into his password registration entry box0A bit;
delta-representing client-use password entered by a registered user into his password registration entry box0The value corresponding to the bit;
α1indication noteRegistering the number of digits of a client-side use account number input by a user to an account registration input box of the user;
phi represents an intermediate account number;
s03e3, switching the intermediate account number into a transmission account number representation; the method for switching the intermediate account number into the transfer account number expression comprises the following steps:
s03e31, let phi0=φ,δ4=0;
Wherein, the Rounding algorithm is represented by a Rounding algorithm;
s03e33, let δ5=0;
Wherein Remainder algorithmm < > represents a Remainder algorithm;
determining delta thereof5And delta4The relationship of (1):
if delta5≥δ4If yes, executing the next step;
if delta5<δ4Then δ5=δ5+1, step S03e 34;
s03e35, extracting account remainder values and arranging the account remainder values as follows:
and S03e4, performing numerical value inverse mapping on the transmission account according to the character-numerical value mapping table to obtain the uploaded account.
In a preferred embodiment of the present invention, in step S03e, the method for processing the password used by the client that the registered user inputs to the password registration input box to obtain the upload password thereof includes the following steps:
s03eA, carrying out numerical mapping on the client by using the password according to the character-numerical mapping table to obtain a mapping password;
s03eB, switching the mapping password into intermediate password representation; the method for switching the mapping password into the intermediate password representation comprises the following steps:
wherein,a second unit for indicating the client-side use password input to the password registration input box by the registered userA bit;
a second unit for indicating the client-side use password input to the password registration input box by the registered userThe value corresponding to the bit;
β1the password input box is used for indicating the number of the client-side use password input by the registered user to the password registration input box;
s03eC, switching the intermediate password into a transmission password representation; the method for switching the intermediate password into the delivery password representation comprises the following steps:
Wherein, round algorithm & ltth & gt represents the Rounding algorithm;
Wherein Remainder algorithm & gt represents a Remainder algorithm;
s03eC5, extracting the password remainder value arranged as follows:
s03eD, carrying out numerical value inverse mapping on the transmission password according to the character-numerical value mapping table to obtain the uploading password.
For example, assume that the client to which the registered user inputs to his password registration input box uses a password of 123 abcabcabcc.
Firstly, carrying out numerical mapping on a client by using a password according to a character-numerical mapping table to obtain a mapping password of the client; specifically, numerical mapping is carried out on 1 according to a character-numerical mapping table to obtain 1; carrying out numerical mapping on the 2 according to the character-numerical mapping table to obtain 2; carrying out numerical mapping on the 3 according to the character-numerical mapping table to obtain 3; carrying out numerical mapping on the a according to a character-numerical mapping table to obtain 10; carrying out numerical mapping on the b according to a character-numerical mapping table to obtain 11; carrying out numerical mapping on the c according to the character-numerical mapping table to obtain 12; carrying out numerical mapping on the A according to a character-numerical mapping table to obtain 36; carrying out numerical mapping on the B according to the character-numerical mapping table to obtain 37; carrying out numerical mapping on the C according to the character-numerical mapping table to obtain 38; numerical mapping is carried out on 123 abcABCB according to a character-numerical mapping table to obtain 123101112363738; that is, the mapping password corresponding to the client-used password 123abcABC is 123101112363738.
And secondly, switching the mapping password into an intermediate password for representation, specifically:
i.e., the mapped password 123101112363738 is switched to be represented by the intermediate password 225563062372732.
The twenty third step, extracting the password remainder value and arranging as follows:
27341482316341628 is the transfer password;
performing numerical value inverse mapping on the transmission password according to the character-numerical value mapping table to obtain an uploaded password; specifically, 2 is subjected to numerical value inverse mapping according to a character-numerical value mapping table to obtain 2; carrying out numerical value inverse mapping on the 7 according to the character-numerical value mapping table to obtain 7; carrying out numerical value inverse mapping on the 34 according to the character-numerical value mapping table to obtain y; carrying out numerical value inverse mapping on the 14 according to the character-numerical value mapping table to obtain e; carrying out numerical value inverse mapping on the 8 according to the character-numerical value mapping table to obtain 8; carrying out numerical value inverse mapping on the 23 according to the character-numerical value mapping table to obtain n; carrying out numerical value inverse mapping on the 16 according to the character-numerical value mapping table to obtain g; carrying out numerical value inverse mapping on the 34 according to the character-numerical value mapping table to obtain y; carrying out numerical value inverse mapping on the 16 according to the character-numerical value mapping table to obtain g; carrying out numerical value inverse mapping on the 28 according to the character-numerical value mapping table to obtain s; namely, the value of the pass password 27341482316341628 is inversely mapped according to the character-value mapping table, and the pass password is 27ye8 ngygs.
S031, determine whether the comparison account exists on the server:
if the comparison account exists on the server, executing the next step;
if the comparison account does not exist on the server, sending a prompt message, wherein the prompt is that the input client uses the account incorrectly, and the client is requested to input the use account again;
s032, determining whether the comparison password is consistent with the storage password corresponding to the storage account:
if the comparison password is consistent with the storage password corresponding to the storage account, the server is successfully logged in;
if the comparison password is inconsistent with the storage password corresponding to the storage account, sending a prompt message, wherein the prompt is that the input client uses the password incorrectly, and the client is requested to input the password again.
In a preferred embodiment of the present invention, after processing the account used by the client in step S02, the method for obtaining the upload account thereof includes the following steps:
s021, carrying out numerical mapping on the client-side using account according to a character-numerical mapping table to obtain a mapping account;
s022, switching the mapping account number into a middle account number for representation; the method for switching the mapping account number into the intermediate account number comprises the following steps:
wherein,delta-indicating client-use password entered by login user into password login input box0A bit;
delta-indicating client-use password entered by login user into password login input box0The value corresponding to the bit;
α1the number of digits of the client-side use account number input into the account number login input box by the login user is represented;
phi represents an intermediate account number;
s023, switching the intermediate account number into a transmission account number for representation; the method for switching the intermediate account number into the transfer account number expression comprises the following steps:
s0231, let phi0=φ,δ4=0;
Wherein, round algorithm & ltth & gt represents the Rounding algorithm;
s0233, let δ5=0;
determining delta thereof5And delta4The relationship of (1):
if delta5≥δ4If yes, executing the next step;
if delta5<δ4Then δ5=δ5+1, step S0234;
s0235, extracting the account number and taking the remainder value according to the following arrangement:
s024, carrying out numerical value inverse mapping on the transmission account according to a character-numerical value mapping table to obtain an uploaded account;
or/and the method for obtaining the uploading password after the password used by the client is processed comprises the following steps:
S02A, carrying out numerical mapping on the client by using the password according to the character-numerical mapping table to obtain a mapping password;
S02B, switching the mapping password into the intermediate password representation; the method for switching the mapping password into the intermediate password representation comprises the following steps:
wherein,a second unit for indicating the client-side use password input to the password registration input box by the registered userA bit;
a second unit for indicating the client-side use password input to the password registration input box by the registered userThe value corresponding to the bit;
β1the password input box is used for indicating the number of the client-side use password input by the registered user to the password registration input box;
S02C, switching the intermediate password into a transmission password representation; the method for switching the intermediate password into the delivery password representation comprises the following steps:
Wherein, round algorithm & ltth & gt represents the Rounding algorithm;
Wherein Remainder algorithmm < > represents a Remainder algorithm;
S02C5, extracting password remainder values and arranging the password remainder values as follows:
S02D, carrying out numerical value inverse mapping on the transmission password according to the character-numerical value mapping table to obtain the uploading password.
In a preferred embodiment of the present invention, after the server processes the received upload account in step S03, the method for obtaining the comparison account includes:
Storage account′=Hash algorithm(Upload account),
storage account' represents a comparison account;
the Upload account represents an uploading account;
hash algorithms () represents a Hash algorithm;
or/and after the server processes the received upload password in step S03, the method for obtaining the comparison password is as follows:
Storage password′=Hash algorithm(Upload password),
storage password' represents a comparison password;
the Upload password represents an Upload password;
hash algorithms () represents a Hash algorithm; the MD5 algorithm may be specifically employed.
The invention also discloses a real-time timing consumption deduction analysis system for the parking lot, which comprises a coupon comparison code acquisition module, a deduction amount acquisition module and a judgment and release module, wherein the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the judgment and release module;
the coupon comparison code acquisition module is used for acquiring a coupon comparison code of the parking lot coupon according to the two-dimensional code printed on the parking lot coupon;
the deduction amount acquisition module is used for acquiring the parking deduction amount according to the coupon comparison code acquired in the coupon comparison code acquisition module;
the judgment and release module is used for judging whether the deduction amount in the deduction amount acquisition module is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
In a preferred embodiment of the present invention, in the coupon comparison code obtaining module, a method for obtaining a coupon comparison code according to a two-dimensional code printed on a parking lot coupon includes the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon comparison code, wherein the method for obtaining the coupon comparison code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon comparison code;
sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
The method for acquiring the coupon number of the parking lot coupon according to the two-dimensional code printed on the parking lot coupon may also include the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the coupon scanning code obtained in the step S11 to obtain a coupon recording code, wherein the method for obtaining the coupon recording code comprises the following steps:
wherein, Coupon scan code represents Coupon scan code;
the Coupon record code represents a Coupon record code;
sending the obtained Coupon recording code to a server;
s13, the server processes the received Coupon record code to obtain the Coupon comparison code, the Coupon comparison code obtaining mode is:
Coupon comparison code=Hash algorithm(Coupon record code)
wherein, the Coupon comparison code represents the Coupon comparison code;
hash algorithms () represents a Hash algorithm;
the Coupon record code represents a Coupon record code;
s14, judging whether the Coupon comparison code Coupon match code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
In a preferred embodiment of the present invention, in the coupon comparison code obtaining module, the method for the server to generate the two-dimensional code is:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
wherein Coupon password represents a Coupon code;
coupon Number represents the Coupon Number;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
The method for generating the two-dimensional code by the server may also be:
s1-1, obtaining a coupon number from the coupon number list, wherein the coupon number list is reduced by one coupon number, the obtained coupon number is processed to obtain a coupon code, and the method for obtaining the coupon code comprises the following steps:
Coupon Security Number=Hash algorithm(Coupon password)
wherein, Coupon Security Number represents a Coupon code;
hash algorithms () represents a Hash algorithm;
coupon code is represented by Coupon password;
s1-2, processing the Coupon code Coupon Security Number obtained in the step S1-1 to obtain a Coupon Security Number, wherein the method for obtaining the Coupon Security Number comprises the following steps:
wherein Coupon password represents a Coupon security number;
coupon Number represents the Coupon code;
s1-3, binding the Coupon security number Coupon password obtained in the step S1-2 with the deduction amount and storing the bound Coupon security number Coupon password in a deduction cost database, and generating a two-dimensional code which can be used for mobile phone client scanning by the Coupon security number Coupon password;
and S1-4, printing the two-dimensional code in the step S1-3 on the coupon of the parking lot.
In a preferred embodiment of the present invention, the system further comprises a client login module, wherein the client login module is used for logging in the server by using the mobile phone client;
the data output end of the client login module is connected with the data input end of the coupon comparison code acquisition module, the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the permission judgment module.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims (8)
1. A real-time timing consumption deduction analysis method for a parking lot is characterized by comprising the following steps:
s1, acquiring a coupon comparison code according to the two-dimensional code printed on the parking lot coupon;
s2, obtaining the parking deduction amount according to the coupon comparison code obtained in the step S1;
s3, determining whether the deduction amount in the step S2 is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
2. The real-time parking lot timing consumption deduction analysis method according to claim 1, wherein in step S1, the method for obtaining the coupon comparison code according to the two-dimensional code printed on the parking lot coupon comprises the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the Coupon scanning code obtained in the step S11 to obtain a Coupon comparison code, and sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
3. The parking lot real-time timing consumption deduction analysis method according to claim 1, wherein in step S1, the method for generating the two-dimensional code by the server is as follows:
s1-1, obtaining a coupon number from the coupon number list, reducing the coupon number list by one coupon number, and processing the obtained coupon number to obtain a coupon code;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
4. The real-time-keeping expense deduction analysis method for parking lot as claimed in claim 1, further comprising step S0 of logging in to the server using the mobile phone client before step S1.
5. A real-time timing consumption deduction analysis system for a parking lot is characterized by comprising a coupon comparison code acquisition module, a deduction amount acquisition module and a judgment and release module, wherein the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the judgment and release module;
the coupon comparison code acquisition module is used for acquiring a coupon comparison code of the parking lot coupon according to the two-dimensional code printed on the parking lot coupon;
the deduction amount acquisition module is used for acquiring the parking deduction amount according to the coupon comparison code acquired in the coupon comparison code acquisition module;
the judgment and release module is used for judging whether the deduction amount in the deduction amount acquisition module is larger than or equal to the parking fee:
if the deduction amount is larger than or equal to the parking fee, the license plate number of the parking vehicle is released;
if the deduction amount is smaller than the parking fee, the additional fee to be paid is released, and the additional fee is calculated by the following method:
p1=p2-p3,
wherein p is1Represents a replenishment charge;
p2indicating a parking fee;
p3representing the amount of the deduction.
6. The parking lot real-time timing consumption deduction analysis system as claimed in claim 5, wherein in the coupon comparison code obtaining module, the method for obtaining the coupon comparison code according to the two-dimensional code printed on the parking lot coupon comprises the following steps:
s11, scanning the two-dimensional code printed on the coupon of the parking lot by using the mobile phone client to obtain a coupon scanning code;
s12, processing the Coupon scanning code obtained in the step S11 to obtain a Coupon comparison code, and sending the obtained Coupon comparison code to a server;
s13, the server judges whether the received Coupon comparison code is used:
if the Coupon comparison code is used, sending out prompt information, wherein the prompt information is that the Coupon is used;
if the Coupon comparison code is used for the first time, searching the corresponding deduction amount according to the Coupon comparison code.
7. The parking lot real-time timing consumption deduction analysis system as claimed in claim 5, wherein in the coupon comparison code obtaining module, the method for the server to generate the two-dimensional code comprises the following steps:
s1-1, obtaining a coupon number from the coupon number list, reducing the coupon number list by one coupon number, and processing the obtained coupon number to obtain a coupon code;
s1-2, the Coupon code Coupon password obtained in the step S1-3 is correspondingly bound with the deduction amount and then is stored in a deduction cost database, and the Coupon code Coupon password is generated into a two-dimensional code which can be used for mobile phone client scanning;
and S1-3, printing the two-dimensional code in the step S1-2 on the coupon of the parking lot.
8. The parking lot real-time timing consumption deduction analysis system according to claim 5, further comprising a client login module, wherein the client login module is used for logging in the server by using a mobile phone client;
the data output end of the client login module is connected with the data input end of the coupon comparison code acquisition module, the data output end of the coupon comparison code acquisition module is connected with the data input end of the deduction amount acquisition module, and the data output end of the deduction amount acquisition module is connected with the data input end of the permission judgment module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111043328.8A CN113808288B (en) | 2021-09-07 | 2021-09-07 | Real-time timing consumption deduction analysis method and system for parking lot |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111043328.8A CN113808288B (en) | 2021-09-07 | 2021-09-07 | Real-time timing consumption deduction analysis method and system for parking lot |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113808288A true CN113808288A (en) | 2021-12-17 |
CN113808288B CN113808288B (en) | 2023-06-27 |
Family
ID=78940648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111043328.8A Active CN113808288B (en) | 2021-09-07 | 2021-09-07 | Real-time timing consumption deduction analysis method and system for parking lot |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113808288B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401679A (en) * | 2013-07-18 | 2013-11-20 | 湖北楚天传媒网络科技有限责任公司 | Method for encrypting and decoding two-dimensional codes |
CN104463612A (en) * | 2013-09-13 | 2015-03-25 | 北京富基融通科技有限公司 | Method of using mobile terminal to provide parking fee preference credentials and system thereof |
CN105225281A (en) * | 2015-08-27 | 2016-01-06 | 广西交通科学研究院 | A kind of vehicle checking method |
CN107451589A (en) * | 2017-07-07 | 2017-12-08 | 南京邮电大学 | A kind of method of the night license plate binary based on improved OSTU algorithms |
US20180122152A1 (en) * | 2015-03-31 | 2018-05-03 | Parkingcloud Co., Ltd. | Parking lot management method, parking lot management server, and parking lot management system |
CN108335142A (en) * | 2018-02-12 | 2018-07-27 | 王韧 | Parking lot electronic coupon system and its implementation |
CN108510327A (en) * | 2018-03-29 | 2018-09-07 | 广东顺德云证物联网科技有限公司 | Discount coupon generation method and system |
CN108573535A (en) * | 2017-03-14 | 2018-09-25 | 全球泊(深圳)技术有限责任公司 | A kind of method and system for realizing parking fee deduction and exemption |
WO2018182067A1 (en) * | 2017-03-30 | 2018-10-04 | 파킹클라우드 주식회사 | Mobile parking ticket issuing system and method, mobile parking management system and method using same |
CN109697762A (en) * | 2019-01-25 | 2019-04-30 | 深圳市小猫信息技术有限公司 | Parking Fee settlement method, device, system, computer installation and storage medium |
CN110738488A (en) * | 2018-07-19 | 2020-01-31 | 美凯利 | Information processing method and apparatus, computer-readable non-transitory storage medium |
KR102119716B1 (en) * | 2019-12-17 | 2020-06-05 | 여범수 | Method of distributing electric coupons revenue based on block chain and system performing the same |
US20200193721A1 (en) * | 2018-12-17 | 2020-06-18 | Eps Company | Method for providing parking service using image grouping-based vehicle identification |
JP6882743B1 (en) * | 2020-09-30 | 2021-06-02 | パラカ株式会社 | Program, server, system and parking fee discount method |
-
2021
- 2021-09-07 CN CN202111043328.8A patent/CN113808288B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103401679A (en) * | 2013-07-18 | 2013-11-20 | 湖北楚天传媒网络科技有限责任公司 | Method for encrypting and decoding two-dimensional codes |
CN104463612A (en) * | 2013-09-13 | 2015-03-25 | 北京富基融通科技有限公司 | Method of using mobile terminal to provide parking fee preference credentials and system thereof |
US20180122152A1 (en) * | 2015-03-31 | 2018-05-03 | Parkingcloud Co., Ltd. | Parking lot management method, parking lot management server, and parking lot management system |
CN105225281A (en) * | 2015-08-27 | 2016-01-06 | 广西交通科学研究院 | A kind of vehicle checking method |
CN108573535A (en) * | 2017-03-14 | 2018-09-25 | 全球泊(深圳)技术有限责任公司 | A kind of method and system for realizing parking fee deduction and exemption |
WO2018182067A1 (en) * | 2017-03-30 | 2018-10-04 | 파킹클라우드 주식회사 | Mobile parking ticket issuing system and method, mobile parking management system and method using same |
CN107451589A (en) * | 2017-07-07 | 2017-12-08 | 南京邮电大学 | A kind of method of the night license plate binary based on improved OSTU algorithms |
CN108335142A (en) * | 2018-02-12 | 2018-07-27 | 王韧 | Parking lot electronic coupon system and its implementation |
CN108510327A (en) * | 2018-03-29 | 2018-09-07 | 广东顺德云证物联网科技有限公司 | Discount coupon generation method and system |
CN110738488A (en) * | 2018-07-19 | 2020-01-31 | 美凯利 | Information processing method and apparatus, computer-readable non-transitory storage medium |
US20200193721A1 (en) * | 2018-12-17 | 2020-06-18 | Eps Company | Method for providing parking service using image grouping-based vehicle identification |
CN109697762A (en) * | 2019-01-25 | 2019-04-30 | 深圳市小猫信息技术有限公司 | Parking Fee settlement method, device, system, computer installation and storage medium |
KR102119716B1 (en) * | 2019-12-17 | 2020-06-05 | 여범수 | Method of distributing electric coupons revenue based on block chain and system performing the same |
JP6882743B1 (en) * | 2020-09-30 | 2021-06-02 | パラカ株式会社 | Program, server, system and parking fee discount method |
Also Published As
Publication number | Publication date |
---|---|
CN113808288B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9881438B2 (en) | Method and system for printing stock anti-counterfeiting by means of feature image | |
CN101582117B (en) | Image processing apparatus, image forming apparatus, image processing system, and image processing method | |
EP1385329A2 (en) | Document content classification | |
CN101431582B (en) | Image processing apparatus, image forming apparatus, image processing system, and image processing method | |
JPH08263614A (en) | Self-discrimination card | |
JP2007299210A (en) | Image processing apparatus, image forming apparatus, image reading apparatus, and image processing method | |
JP2000163594A (en) | Image pattern detecting method and device | |
Ayub et al. | An improved image steganography technique using edge based data hiding in DCT domain | |
CN101360160B (en) | Image processing apparatus, image processing system, image processing method, and image forming apparatus | |
CN101277368B (en) | Image processing apparatus, image forming apparatus, image processing system, and image processing method | |
CN109068021B (en) | Encryption and decryption method and system | |
CN101364268B (en) | Image processing apparatus and image processing method | |
CN113762254B (en) | License plate recognition method and system | |
CN113763577B (en) | Real-time timing consumption deduction analysis method and system for road side parking spaces | |
CN100429921C (en) | Raster image path architecture | |
CN113808288B (en) | Real-time timing consumption deduction analysis method and system for parking lot | |
JP3514050B2 (en) | Image processing device | |
Triantaphillidou et al. | Image quality comparison between JPEG and JPEG2000. II. Scene dependency, scene analysis, and classification | |
US7058198B1 (en) | Image processing apparatus and method | |
EP1411713B1 (en) | Bit-map decompression | |
EP1289271A2 (en) | Predominant color identification in digital images | |
US11089180B2 (en) | Encoding dot patterns into printed images based on source pixel color | |
CN104243768B (en) | Image processing apparatus and image processing system | |
CN114120457B (en) | Parking self-service payment method and vehicle inquiring method based on mobile phone end | |
Murali et al. | Detection Of digital photo image forgery |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 202, Building 4, No. 106, West Section of Jinkai Avenue, Dazhulin Street, Liangjiang New Area, Yubei District, Chongqing, 401120 Applicant after: Chongqing Yilian Information Technology Co.,Ltd. Address before: 401121 22-7-6, Honghu West Road, Yubei District, Chongqing Applicant before: Chongqing Changting Intelligent Parking Service Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |