A social security card intelligent gate ticket purchasing and checking integrated device
By combining social security card smart gates with OCR and facial recognition into an integrated ticket purchase and inspection device, the problem of unstable social security card recognition information has been solved, the recognition accuracy and user experience have been improved, and manual intervention has been reduced. It is suitable for transportation venues such as train stations and subway stations.
Patent Information
- Application Number
- CN202410306405.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2044-03-18
AI Technical Summary
Existing social security card smart gates are easily affected by the shaking, dirt, or reflections of the social security card during OCR recognition and facial recognition processes, resulting in errors in recognition information or failure to recognize, which increases personnel costs and affects user experience.
Design a smart gate device integrating social security card purchase and ticket inspection. The device obtains certificate information through the smart gate, combines OCR and facial recognition algorithms, and the processing module determines the function permissions based on the recognition results. An infrared sensing module is added for energy-saving control to ensure clear information acquisition.
This reduces the need for staff to handle abnormal identification, improves user experience, reduces identification errors, and enhances ticket purchase and inspection efficiency and service quality.
Smart Images

Figure CN118155299B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent gate, and particularly relates to a social security card intelligent gate ticket purchasing-ticket checking integrated device. BACKGROUND
[0002] The social security card stores the information of the identity of a resident, and can also be used as a payment account based on the social security account. In the above premise, the social security card combined with the intelligent gate can greatly facilitate the use experience of the user.
[0003] In the process of OCR identification and portrait identification of the existing social security card intelligent gate, the identification information may be incorrect or the alarm may not be identified due to the shaking of the social security card or the stains or the reflection light on the card, which directly affects the subsequent ticket purchasing and ticket checking behavior. The existing method is to configure staff to assist in processing, which not only greatly increases the personnel cost, but also affects the use experience of the user. SUMMARY
[0004] The purpose of the present application is to at least solve one of the problems of the prior art, and provide a social security card intelligent gate ticket purchasing-ticket checking integrated device.
[0005] In order to achieve the above purpose, the following technical solutions are adopted in the present application:
[0006] Specifically, a social security card intelligent gate ticket purchasing-ticket checking integrated device is provided, which comprises the following:
[0007] The social security card intelligent gate device is used to obtain the information of the social security card certificate, and obtain the information related to the social security card of the user based on the information of the social security card certificate;
[0008] The ticket purchasing-ticket checking device is used to make the user purchase a ticket, and check the user who has purchased a ticket;
[0009] The processing module is used to obtain the information related to the social security card fed back by the social security card intelligent gate device, and when the information related to the social security card is complete, the user is allowed to use all the functions of the ticket purchasing-ticket checking device, when the information related to the social security card is complete but the OCR identification content is missing, the face recognition module is called to recognize the face of the user, if the face recognition is passed, the user is only allowed to use the ticket checking function of the ticket purchasing-ticket checking device, when the information related to the social security card is missing but the OCR identification content is complete, the staff is informed to check, and after the check is passed, the user is allowed to use all the functions of the ticket purchasing-ticket checking device, and when the information related to the social security card is missing, the user is suggested to use the manual channel.
[0010] Further, the device further comprises,
[0011] An infrared sensing module is used to detect whether a user is present near the device, and if so, the device is controlled to operate normally, and if not, the device is controlled to hibernate.
[0012] Further, specifically, the process of the social security card intelligent gate device obtaining social security card license information and obtaining the user's social security card related information based on the social security card license information includes,
[0013] The social security card intelligent gate device obtains a plurality of consecutive social security card license images to construct a social security card license image sequence, and obtains the best social security card license image based on the social security card license image sequence, which is denoted as the first image.
[0014] The first image is recognized by the built-in OCR recognition algorithm and portrait recognition algorithm to obtain the OCR recognition content and portrait recognition content, i.e., the user's social security card related information.
[0015] Further, specifically, the process of obtaining the best social security card license image based on the social security card license image sequence includes,
[0016] Suppose that m social security card license images are obtained to form a social security card license image sequence, and the image matrix of the jth social security card license image is Bj(j), which is marked as j. The pixel value of the pixel point in the wjth row and the djth column of the image matrix Bj(j) is denoted as Bj(j, wj, dj).
[0017] The clear trend degree clear(j, wj, dj) of any pixel point Bj(j, wj, dj) based on its neighborhood pixel points is calculated, and the relevant calculation formula is as follows,
[0018]
[0019] where max(j, wj, dj) is the maximum value of the neighborhood pixel points of Bj(j, wj, dj), avg(j, wj, dj) and min(j, wj, dj) are the average value and the minimum value of the neighborhood pixel points of Bj(j, wj, dj), respectively.
[0020] Based on the clear trend degree, the clear representation area of all images in the social security card license image sequence is found.
[0021] The average pixel value of the pixel points at the same position of the m social security card license images is calculated, and the average pixel value at each different position is used to construct a preliminary image.
[0022] The pixel point positions corresponding to the clear representation areas of all images in the social security card license image sequence are replaced with the same pixel point positions in the preliminary image to obtain the best social security card license image, i.e., the first image.
[0023] Further, specifically, the clear representation area of all images in the social security card license image sequence is found based on the clear trend degree, including,
[0024] When the serial number of the image is 1, the image matrix B1(1) is traversed, two pixel points with the maximum and the second maximum clear trend degree value are selected from the image matrix B1(1), and a line segment zx(1) is obtained by connecting the two pixel points, then a pixel point with the maximum clear trend degree except the line segment zx(1) is selected from the image matrix B1(1), and the two end points of the line segment zx(1) are connected with the pixel point with the maximum clear trend degree except the line segment lin(1) selected from the image matrix B1(1) to obtain the clear representation area of the image matrix B1(1).
[0025] When the serial number of the image is not 1, it is assumed that the image matrix is Bj(j), the pixel average value avg(j-1) of the pixel points in the clear representation area of Bj-1(j-1) is calculated, the image matrix Bj(j) is traversed, the pixel points with the clear trend degree greater than avg(j-1) are selected, two random pixel points are selected from the pixel points, a line segment zx(j) is obtained by connecting the two random pixel points, then a pixel point with the maximum clear trend degree except the line segment zx(j) is selected from the image matrix Bj(j), and the two end points of the line segment zx(j) are connected with the pixel point with the maximum clear trend degree except the line segment zx(j) selected from the image matrix Bj(j) to obtain the clear representation area of the image matrix Bj(j).
[0026] Further, specifically, the built-in OCR recognition algorithm is an OCR algorithm based on template matching,
[0027] The characters in the first image are compared with the character template by pre-setting the character template, the most matched characters are found, and the OCR recognition content is obtained.
[0028] Further, the social security card intelligent gate device further comprises,
[0029] A screen is configured to display the ticket purchase information of the user.
[0030] The present application has the following advantages:
[0031] The present application provides a social security card intelligent gate ticket purchase-ticket checking integrated device, which integrates the social security card intelligent gate and the ticket purchase-ticket checking device, so that the user can purchase a ticket and input the ticket purchase information on the device directly through the social security card, the user can be intelligently checked, and the problem of missing social security card identification information of the user is solved, so that the situation that some identification abnormalities need to be handled by staff is reduced, and the corresponding method is designed to make the source obtained social security card license information clearer, so that the subsequent identification abnormalities are reduced to a certain extent, and the user experience is improved as much as possible. Attached Figure Description
[0032] The above and other features of this disclosure will become more apparent from the detailed description of the embodiments illustrated in conjunction with the accompanying drawings. In the drawings of this disclosure, the same reference numerals denote the same or similar sampling monitoring points. Obviously, the drawings described below are merely some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without any creative effort. In the drawings:
[0033] Figure 1 The diagram shown is a structural principle diagram of a smart gate ticket purchase and inspection device for social security cards according to the present invention. Detailed Implementation
[0034] The following will provide a clear and complete description of the concept, specific structure, and technical effects of the present invention in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, solution, and effects of the present invention. It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The same reference numerals used throughout the accompanying drawings indicate the same or similar parts.
[0035] Example 1, referring to Figure 1 This invention proposes an integrated device for purchasing and checking tickets using a social security card smart gate, comprising the following:
[0036] The social security card smart gate device is used to obtain social security card certificate information and obtain the user's social security card related information based on the social security card certificate information;
[0037] The ticket purchase and ticket checking device is used to enable users to purchase tickets and to check the tickets of users who have already purchased tickets.
[0038] The processing module is used to obtain social security card related information fed back by the social security card smart gate device. When the social security card related information is complete, the user is allowed to use all functions of the ticket purchase and ticket inspection device. When the facial recognition content of the social security card related information is complete but the OCR recognition content is missing, the facial recognition module is called to perform facial recognition on the user. If the facial recognition is successful, the user is only allowed to use the ticket inspection function of the ticket purchase and ticket inspection device. When the facial recognition content of the social security card related information is missing but the OCR recognition content is complete, the staff is notified to verify it. After the verification is successful, the user is allowed to use all functions of the ticket purchase and ticket inspection device. When both facial recognition and OCR recognition content of the social security card related information are missing, the user is advised to use the manual channel.
[0039] In this embodiment 1, by integrating the social security card intelligent gate with the ticket purchase-ticket checking device, users can directly purchase tickets on the device and input ticket purchase information through the social security card, and the social security card users can be intelligently checked. The corresponding processing is carried out for the problem of missing user social security card identification information, which can reduce the situation that part of the identification abnormity needs to be processed by staff. In addition, the corresponding method is designed to make the source obtained social security card certificate information more clear, which can reduce the subsequent identification abnormity problem to a certain extent, and increase the user experience as much as possible.
[0040] Specifically, in application, the scheme specifically includes
[0041] 1. Social security card intelligent gate:
[0042] The social security card intelligent gate is a gate that can automatically identify the social security card. By reading the information on the social security card, including the passenger's identity information and ticket purchase record, the passenger's identity verification and ticket purchase record query are realized.
[0043] The social security card intelligent gate is equipped with a screen that can display the passenger's ticket purchase information, train information and other related information.
[0044] The social security card intelligent gate can also be connected with the Internet to realize data interaction with the background system, thereby realizing real-time updating of ticket purchase records, querying of train information and other functions.
[0045] 2. Ticket purchase-ticket checking integrated device:
[0046] The ticket purchase-ticket checking integrated device is a device that combines ticket purchase and ticket checking functions. Passengers can choose to purchase tickets on the device, input ticket purchase information and complete payment.
[0047] The device will automatically transmit the ticket purchase information to the social security card intelligent gate to complete the passenger identity verification and ticket purchase record update.
[0048] When taking the train, passengers only need to pass through the social security card intelligent gate, which will automatically identify the social security card and verify the passenger's ticket purchase information to realize ticket checking.
[0049] Advantages of the scheme:
[0050] 1. Improve efficiency: passengers can complete ticket purchase and ticket checking by swiping the social security card, without the need for additional paper tickets and manual ticket checking, which greatly saves time and labor costs.
[0051] 2. Convenient and practical: passengers only need to carry a social security card to purchase tickets and take the train, without the need to carry additional paper tickets, which is convenient for carrying and management.
[0052] 3. Improved service quality: The social security card intelligent gate can automatically display the passenger's ticket information and related train information, making it easy for passengers to query and check, and improving service quality and user experience.
[0053] 4. Real-time data update: The social security card intelligent gate is connected with the background system, which can update the ticket purchase record and query train information in real time, ensuring data accuracy.
[0054] The social security card intelligent gate ticket-purchasing and ticket-checking integrated device can provide convenient and efficient ticket purchasing and checking experience, improving efficiency and service quality. This scheme is suitable for various transportation sites, such as train stations, subway stations, and long-distance bus stations.
[0055] As a preferred embodiment of the present application, the device further comprises,
[0056] An infrared sensing module is used to detect whether there is a user near the device. If there is, the device is controlled to operate normally, and if there is not, the device is controlled to sleep.
[0057] In this preferred embodiment, by adding an infrared sensing module, the device is intelligently put to sleep to save energy consumption.
[0058] As a preferred embodiment of the present application, specifically, the process of obtaining social security card related information of the user based on the social security card certificate information obtained by the social security card intelligent gate device includes,
[0059] The social security card intelligent gate device obtains a plurality of consecutive social security card certificate images to construct a social security card certificate image sequence, and obtains the best social security card certificate image based on the social security card certificate image sequence, which is recorded as the first image.
[0060] The first image is recognized by the built-in OCR recognition algorithm and portrait recognition algorithm to obtain the OCR recognition content and portrait recognition content, i.e., the social security card related information of the user.
[0061] As a preferred embodiment of the present application, specifically, the process of obtaining the best social security card certificate image based on the social security card certificate image sequence includes,
[0062] Suppose m social security card certificate images are obtained to form a social security card certificate image sequence, and the image matrix of the jth social security card certificate image is Bj(j), whose serial number is marked as j. The pixel value of the pixel point in the wjth row and the djth column in the image matrix Bj(j) is Bj(j, wj, dj).
[0063] The clear trend degree clear(j, wj, dj) of any pixel point Bj(j, wj, dj) based on its neighborhood pixel points is calculated, and the relevant calculation formula is as follows,
[0064]
[0065] wherein max(j, wj, dj) is the maximum value of the Bj(j, wj, dj) neighborhood pixel points, avg(j, wj, dj) and min(j, wj, dj) are the average value and the minimum value of the Bj(j, wj, dj) neighborhood pixel points, respectively, wherein the neighborhood refers to 8-neighborhood;
[0066] Finding the clear representation area of all images in the social security card image sequence based on the clear trend degree;
[0067] Constructing the initial image by calculating the average pixel value of the pixel points at the same position of the m social security card images and by using the average pixel value at each different position together;
[0068] Replacing the pixel point positions corresponding to the clear representation area of all images in the social security card image sequence with the same pixel point positions in the initial image to obtain the best social security card image, i.e., the first image.
[0069] Specifically, finding the clear representation area of all images in the social security card image sequence based on the clear trend degree, comprising,
[0070] When the serial number of the image is 1, traversing the image matrix B1(1), selecting two pixel points with the maximum and the second maximum clear trend degree value from the matrix, connecting the two pixel points to obtain a line segment zx(1), then selecting a pixel point with the maximum clear trend degree from the matrix B1(1) except the line segment zx(1), and connecting the two end points of the line segment zx(1) with the selected pixel point to obtain the clear representation area of B1(1);
[0071] When the serial number of the image is not 1, assuming that the image matrix is Bj(j), calculating the average pixel value avg(j-1) of the pixel points in the clear representation area of Bj-1(j-1), traversing the image matrix Bj(j), selecting the pixel points with the clear trend degree greater than avg(j-1) from the matrix, then selecting two random pixel points from the selected pixel points, connecting the two random pixel points to obtain a line segment zx(j), then selecting a pixel point with the maximum clear trend degree from the matrix Bj(j) except the line segment zx(j), and connecting the two end points of the line segment zx(j) with the selected pixel point to obtain the clear representation area of Bj(j).
[0072] In the preferred embodiment, considering that the social security card may be damaged: if the social security card is damaged, such as scratches, broken, damaged magnetic stripe, and the quality of the photo on the social security card is poor, blurred or damaged, it may affect the accuracy of the gate machine in identifying the image. Especially in poor light, the clarity of the photo may be affected, which may cause the card reader to fail to correctly read the information on the card, and thus fail to effectively identify, therefore, the clear display area of each image in the continuous frame image is selected and the corresponding area of the initial image is replaced, and thus the final first image is as clear as possible, thereby increasing the success rate of identification.
[0073] As a preferred embodiment of the present application, specifically, the built-in OCR recognition algorithm is an OCR algorithm based on template matching,
[0074] By pre-setting a character template, the characters in the first image are compared with the character template to find the most matched characters, and thus the OCR recognition content is obtained.
[0075] As a preferred embodiment of the present application, the social security card intelligent gate device further comprises,
[0076] A screen for displaying the ticket purchase information of the user.
[0077] In the preferred embodiment, the screen is added to facilitate the user to check the ticket purchase information.
[0078] In addition, each functional module in each embodiment of the present application can be integrated in one processing module, or each module can exist physically alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0079] The integrated module, if implemented in the form of a software function module and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium can include any entity or system capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0080] Although the description of the present application has been quite detailed and particularly described with respect to several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be considered to be a broad interpretation of the claims in view of the prior art, so as to effectively encompass the intended scope of the present application. In addition, the present application is described above in embodiments that the inventors can foresee, and the purpose is to provide a useful description, and those non-essential modifications to the present application that have not yet been foreseen can still represent equivalent modifications of the present application.
[0081] The above is only the preferred embodiment of the present application, and the present application is not limited to the above-mentioned embodiments, as long as the same means achieve the technical effect of the present application, it should belong to the protection scope of the present application. The technical solutions and / or embodiments within the protection scope of the present application can have various modifications and changes.
Claims
1. A social security card intelligent gate ticket-purchasing and ticket-checking integrated device, characterized in that, The application comprises the following: A social security card intelligent gate device is used to obtain social security card information and obtain social security card related information of a user based on the social security card information; A ticket purchasing and checking device is used to make a user purchase a ticket and check the user who has purchased a ticket; A processing module is used to obtain social security card related information fed back by the social security card intelligent gate device, allow the user to use all functions of the ticket purchasing and checking device when the social security card related information is complete, call a face recognition module to perform face recognition on the user when the social security card related information is complete in terms of portrait recognition but incomplete in terms of OCR recognition, allow the user to use only the ticket checking function of the ticket purchasing and checking device if the face recognition is passed, inform a staff to check when the social security card related information is incomplete in terms of portrait recognition but complete in terms of OCR recognition, allow the user to use all functions of the ticket purchasing and checking device after the check is passed, and suggest the user to use a manual channel when the social security card related information is incomplete in terms of both portrait recognition and OCR recognition; Specifically, the process in which the social security card intelligent gate device obtains social security card information and obtains social security card related information of a user based on the social security card information comprises the following steps: The social security card intelligent gate device obtains a plurality of continuous social security card images to construct a social security card image sequence, and obtains a best social security card image based on the social security card image sequence, and the best social security card image is recorded as a first image; The first image is recognized by an internal OCR recognition algorithm and a portrait recognition algorithm to obtain OCR recognition content and portrait recognition content, i.e., social security card related information of the user; Specifically, the process in which the best social security card image is obtained based on the social security card image sequence comprises the following steps: Suppose that m social security card images are obtained to construct a social security card image sequence, the image matrix of the jth social security card image is Bj(j), the serial number of which is j, and the pixel value of the pixel point in the wjth row and the djth column in the image matrix Bj(j) is Bj(j, wj, dj); The clear trend degree clear(j, wj, dj) of any pixel point Bj(j, wj, dj) based on its neighborhood pixel points is calculated, and the related calculation formula is as follows: ; Where max(j, wj, dj) is the maximum value of the neighborhood pixel points of Bj(j, wj, dj), avg(j, wj, dj) and min(j, wj, dj) are the average value and the minimum value of the neighborhood pixel points of Bj(j, wj, dj), respectively; The clear representation area of all images in the social security card image sequence is found based on the clear trend degree; The average pixel value of the pixel points at the same position of the m social security card images is calculated, and the average pixel value of each different position is used to construct a preliminary image; The pixel point position corresponding to the clear representation area of all images in the social security card image sequence is replaced with the same pixel point position in the preliminary image to obtain the best social security card image, i.e., the first image; Specifically, the clear representation area of all images in the social security card image sequence is found based on the clear trend degree, and the process comprises the following steps: When the sequence number of the image is 1, the image matrix B1(1) is traversed, two pixel points with maximum and second maximum clear trend degree are selected from the image matrix B1(1), and a line segment zx(1) is obtained by connecting the two pixel points; then, a pixel point with maximum clear trend degree except the line segment zx(1) is selected from the image matrix B1(1), and the two end points of the line segment zx(1) are connected with the pixel point to obtain a clear representation region of the image matrix B1(1); When the sequence number of the image is not 1, the pixel average value avg(j-1) of the pixel points in the clear representation region of the image matrix Bj-1(j-1) is calculated, the image matrix Bj(j) is traversed, the pixel points with clear trend degree greater than avg(j-1) are selected from the image matrix Bj(j), two random pixel points are selected from the pixel points, and a line segment zx(j) is obtained by connecting the two random pixel points; then, a pixel point with maximum clear trend degree except the line segment zx(j) is selected from the image matrix Bj(j), and the two end points of the line segment zx(j) are connected with the pixel point to obtain a clear representation region of the image matrix Bj(j).
2. The social security card intelligent gate ticket-purchasing and checking integrated device according to claim 1, characterized in that, The device further comprises, An infrared induction module is configured to detect whether a user is present near the device, and control the device to operate normally if the user is present or to hibernate if the user is not present.
3. The social security card intelligent gate ticket-purchasing and checking integrated device according to claim 1, characterized in that, Specifically, the built-in OCR recognition algorithm is an OCR algorithm based on template matching, The first image is compared with a character template by pre-setting the character template, and the most matched character is found, and thus the OCR recognition content is obtained.
4. The social security card intelligent gate ticket-purchasing and checking integrated device according to claim 1, characterized in that, The social security card intelligent gate device further comprises, A screen is configured to display ticket purchase information of a user.
Citation Information
Patent Citations
Rapid self-service check-in device and method
CN106373200A
Image processing method and device and electronic equipment
CN116233626A