CN109102581B - Card punching method, device, system and storage medium - Google Patents

Card punching method, device, system and storage medium Download PDF

Info

Publication number
CN109102581B
CN109102581B CN201810960808.2A CN201810960808A CN109102581B CN 109102581 B CN109102581 B CN 109102581B CN 201810960808 A CN201810960808 A CN 201810960808A CN 109102581 B CN109102581 B CN 109102581B
Authority
CN
China
Prior art keywords
card punching
identification
current
information
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810960808.2A
Other languages
Chinese (zh)
Other versions
CN109102581A (en
Inventor
宗杨
王迅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liangfengtai Yunnan Artificial Intelligence Co ltd
Original Assignee
Liangfengtai Yunnan Artificial Intelligence Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Liangfengtai Yunnan Artificial Intelligence Co ltd filed Critical Liangfengtai Yunnan Artificial Intelligence Co ltd
Priority to CN201810960808.2A priority Critical patent/CN109102581B/en
Publication of CN109102581A publication Critical patent/CN109102581A/en
Application granted granted Critical
Publication of CN109102581B publication Critical patent/CN109102581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Abstract

The embodiment of the invention discloses a card punching method, a device, a system and a storage medium. The method comprises the following steps: if a login instruction is detected, sending a login request to a server; if the login is successful, receiving at least one card punching point position sent by the server and an identification graph identifier corresponding to each card punching point position, wherein the card punching point position and the identification graph identifier are respectively used for prompting a user to carry out image scanning on a position and an identification graph needing to be scanned; if a camera scanning instruction is detected, scanning a current identification image, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position, or requesting a server to perform card punching verification according to the current identification image information and the current scanning position; and outputting a card punching verification result. Through the technical scheme of the embodiment of the invention, the card punching cost can be reduced, the card punching efficiency is improved, and the card punching experience of a user is improved.

Description

Card punching method, device, system and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a card punching method, a device, a system and a storage medium.
Background
Card punching is a commonly used check-in method in daily management. For example, in a breakthrough game competition, players participating in the game can check in the game level in a card punching mode; or, the enterprise staff can also check the attendance and check in a card punching mode.
At present, three common card punching modes exist. The first mode is a Radio Frequency Identification (RFID) mode, which requires a user to wear a wearable device provided with an RFID chip in advance, identify a specific target through a Radio signal, and read and write related data, thereby implementing a card punch. The second mode is a fingerprint identification mode, the fingerprint of the user can be scanned through optical equipment and matched with the recorded fingerprint information, and if the matching is successful, the user is determined to finish the card punching operation at the target position. The third mode is a face recognition mode, a face characteristic point is recognized through an artificial intelligence algorithm and matched with the registered face information, and if the matching is successful, the fact that the user finishes the card punching operation at the camera of the card punching position is determined.
Therefore, the existing card punching modes need to interact with a fixed acquisition device according to one-to-one characteristics or equipment of a user so as to determine that the user arrives at a certain position. Obviously, the existing card punching mode needs to arrange a fixed acquisition device at the card punching position, so that the card punching cost is greatly increased, and separate card punching needs to be performed by queuing in sequence, so that the card punching efficiency and the card punching experience of a user are reduced.
Disclosure of Invention
The embodiment of the invention provides a card punching method, a device, a system and a storage medium, which are used for reducing the card punching cost, improving the card punching efficiency and improving the card punching experience of a user.
In a first aspect, an embodiment of the present invention provides a card punching method, applied to a client, including:
if a login instruction is detected, sending a login request to a server;
if the login is successful, receiving at least one card punching point position sent by the server and an identification graph identifier corresponding to each card punching point position, wherein the card punching point position and the identification graph identifier are respectively used for prompting a user to carry out image scanning on a position and an identification graph needing to be scanned;
if a camera scanning instruction is detected, scanning a current identification image, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position, or requesting the server to perform card punching verification according to the current identification image information and the current scanning position;
and outputting a card punching verification result.
In a second aspect, an embodiment of the present invention further provides a card punching method, applied to a server, including:
receiving a login request sent by a client, and performing login verification according to the login request;
if the login verification is successful, sending at least one card punching point position and an identification map identifier corresponding to each card punching point position to a client so that the client scans a current identification map when detecting a camera scanning instruction, determines current identification map information and a current scanning position, and performs card punching verification according to the current identification map information and the current scanning position, or requests the server to perform card punching verification according to the current identification map information and the current scanning position;
the card punching point position and the identification chart mark are respectively used for prompting the user of the image scanning position and the identification chart needing to be scanned.
In a third aspect, an embodiment of the present invention further provides a card punching device, which is disposed at a client, and includes:
the login request sending module is used for sending a login request to the server if a login instruction is detected;
the system comprises a card punching point information receiving module, a card punching point information receiving module and a card punching point information processing module, wherein the card punching point information receiving module is used for receiving at least one card punching point position sent by a server and an identification graph mark corresponding to each card punching point position if login is successful, and the card punching point position and the identification graph mark are respectively used for prompting a user to carry out image scanning position and an identification graph needing to be scanned;
the card punching verification module is used for scanning a current identification image if a camera scanning instruction is detected, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position or requesting the server to perform card punching verification according to the current identification image information and the current scanning position;
and the card punching verification result output module is used for outputting the card punching verification result.
In a fourth aspect, an embodiment of the present invention further provides a card punching device, which is disposed in a server, and includes:
the login authentication module is used for receiving a login request sent by a client and performing login authentication according to the login request;
the system comprises a card punching point information sending module, a card punching point information sending module and a server, wherein the card punching point information sending module is used for sending at least one card punching point position and an identification map identifier corresponding to each card punching point position to a client so that the client scans a current identification map when detecting a camera scanning instruction, determines current identification map information and a current scanning position, and performs card punching verification according to the current identification map information and the current scanning position or requests the server to perform card punching verification according to the current identification map information and the current scanning position;
the card punching point position and the identification chart mark are respectively used for prompting the user of the image scanning position and the identification chart needing to be scanned.
In a fifth aspect, an embodiment of the present invention further provides a card punching system, where the system includes: a server and at least one client; wherein the content of the first and second substances,
the client is used for realizing the card punching method provided by the first aspect;
the server is used for realizing the card punching method provided by the second aspect.
In a sixth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the card punching method according to any embodiment of the present invention.
The embodiment of the invention sends a login request to a server when a login instruction is detected by a client, and receives at least one card punching point position sent by the server and an identification graph identifier corresponding to each card punching point position when the login is successful so as to prompt a user to carry out image scanning and an identification graph needing to be scanned; when the client detects a camera scanning instruction, the client scans the current identification map to determine the information of the current identification map and the current scanning position. The client can perform card punching verification according to the current identification image information and the current scanning position, and can also request the server to perform card punching verification according to the current identification image information and the current scanning position. According to the embodiment of the invention, the card punching function is realized only by information interaction between the client with the scanning function and the server, and no fixed acquisition equipment is required to be arranged at the card punching position, so that the card punching cost is greatly reduced.
Drawings
Fig. 1 is a flowchart of a card punching method according to an embodiment of the present invention;
fig. 2 is a flowchart of a card punching method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a card punching device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a card punching device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a card punching system according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a card punching method according to an embodiment of the present invention, which is applicable to a situation where a client with a scanning function is used to punch a card, and especially applicable to a scenario where a player punches a card at a game level in a game break-through competition. The method can be executed by a card punching device arranged at a client, and the device can be realized in a software and/or hardware mode and is integrated in a mobile terminal with a camera, such as a smart phone, a tablet computer and the like. As shown in fig. 1, the method specifically includes the following steps:
and S110, if the login command is detected, sending a login request to the server.
The login instruction may be an instruction generated when a preset login button is triggered by the client, so as to enter the application program for card punching. For example, after the user inputs the user login information in the login page of the client, the user may trigger the login button to enable the client to generate the login instruction. The server in this embodiment may be a cloud server or a local server, and is configured to perform information interaction with the client, so as to implement a card punching function.
Specifically, when the client detects a login instruction, the client can directly generate a login request according to the input user login information and can also generate a login request according to the user login information and the terminal encryption information so as to ensure that the login is performed on the same terminal every time, thereby preventing others from checking the card instead of others and avoiding cheating by checking the card. The user login information may include a pre-registered login account and a hash value of a login password, and the terminal encryption information may be encryption information generated according to a login terminal identifier based on a preset encryption algorithm. Each login terminal identifier in the embodiment uniquely corresponds to one terminal encryption information. After the client generates the login request, the client sends the login request to the server so that the server can perform login verification according to the login request.
Optionally, if the time interval between the current detected login instruction and the last detected login instruction of the client is greater than the preset time interval, the client may randomly generate an encryption string, and send the encryption string and the input user login information to the server for login verification. If the time interval between the current detected login instruction and the last detected login instruction is smaller than or equal to the preset time interval, the client directly sends the last generated encryption character string to the server, so that the server can perform login verification by matching whether the current sent encryption character string is the same as the last sent encryption character string or not, user login information does not need to be input again, and automatic and rapid login is achieved.
And S120, if the login is successful, receiving at least one card punching point position sent by the server and the identification graph identifier corresponding to each card punching point position.
The position of the card punching point and the identification chart mark are respectively used for prompting the user of the position of image scanning and the identification chart needing to be scanned. The card punching position is one or more card punching positions which are preset according to actual conditions and stored in the server. When the number of the card punching positions is multiple, the server can send the card punching positions to the client one by one, and can also send all the card punching positions to the client at one time. After the client receives the card punching point position sent by the server, the user can find the position for punching the card according to the card punching point position on the client, namely the position for scanning the image. The identification chart in the embodiment can be a preset image or a two-dimensional code fixedly placed at the position of the card punching point, and each identification chart can be used for scanning a plurality of clients simultaneously, so that a plurality of users can punch cards simultaneously, the users do not need to queue up and punch cards in sequence, and the card punching efficiency is improved. The identification map identification may refer to a legend and/or image number of the identification map. In the embodiment, one or more identification diagrams can be placed in advance at each card punching point position, that is, each card punching point position can correspond to one or more identification diagram identifiers.
Specifically, when the server successfully performs login verification according to the login request, the server sends at least one pre-stored card punching point position and an identification map identifier corresponding to each card punching point position to the client. The client can display the received card punching point position and the identification graph mark corresponding to each card punching point position to prompt a user to reach the card punching point position, and a correct identification graph is searched for at the card punching point position according to the identification graph mark corresponding to the card punching point position so as to carry out subsequent scanning card punching operation.
If the embodiment is applied to the scene of the breakthrough game, the experience of exploring and playing can be brought to the user through the searching process of the identification picture, and the interest of the game is increased.
S130, if the camera scanning instruction is detected, scanning the current identification image, determining the information and the current scanning position of the current identification image, and performing card punching verification according to the information and the current scanning position of the current identification image, or requesting the server to perform card punching verification according to the information and the current scanning position of the current identification image.
The camera scanning instruction may be an instruction generated when a user starts a scanning function on the client. The current identification map may refer to an identification map currently located in the scan area. The current identification map information may refer to scan information corresponding to the current identification map. The current scan location may be the geographic location at which the client was located when scanning the current identification map. The present embodiment may determine the current scanning position by a positioning system installed in the client in advance.
Specifically, when a user reaches a certain card punching point position and finds an identification image at the card punching point position according to an identification image identifier corresponding to the card punching point position, a scanning function in the client is started, and a scanning area is aligned to the found current identification image, so that the client performs identification scanning on the current identification image, and determines the current identification image information and the current scanning position. In this embodiment, the current identification map searched by the user may not be the accurate identification map corresponding to the identification map identifier, and the current scanning position may not be the accurate position of the card punching point, so that card punching verification needs to be performed according to the current identification map information and the current scanning position. In the embodiment, the card punching verification can be directly carried out in the client according to the current identification image information and the current scanning position; or sending the current identification map information and the current scanning position to a server to request the server to carry out card punching verification. When the card punching verification is carried out, the position matching can be carried out firstly, and the identification image matching can be carried out after the position matching is successful; or the recognition image matching can be carried out firstly, and the position matching can be carried out after the recognition image matching is successful.
Optionally, when performing card punching verification in the client, performing card punching verification according to the current identification map information and the current scanning position in S130 includes: calculating first distances between the positions of the card punching points and the current scanning position, and determining the positions of the target card punching points according to the first distances and preset distances; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; and matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful.
The preset distance may be a maximum error value set during position matching. The preset extraction algorithm may refer to any algorithm for extracting features of the recognition graph in the prior art. When the card punching verification is performed in the client, the client may download part or all of the identification map features corresponding to the identification map from the server in advance.
In the embodiment, when the card punching verification is performed in the client, the position matching can be performed first, and then the feature matching of the identification pattern can be performed. Specifically, the client calculates a first distance between each received card punching point position and the current scanning position, compares the first distances with preset distances one by one, and if each first distance is greater than or equal to the preset distance, it indicates that the user does not reach the set card punching point position, that is, the card punching position is wrong, and at this time, it can be determined that the card punching verification fails. If the first distance between a certain card punching point position and the current scanning position is smaller than the preset distance, the fact that the user reaches the set card punching point position is indicated, and the card punching point position can be determined as the target card punching point position. If the position of the target card punching point exists, further matching of the characteristics of the identification graph is needed. The client side can firstly extract the features of the current recognition image by using a local preset extraction algorithm to obtain the features of the current recognition image. If the target identification image features corresponding to the target card punching point positions downloaded in advance exist in the client, feature matching is directly carried out on the current identification image features and the target identification image features in the client, if matching is successful, the current identification image is indicated to be the target identification image corresponding to the target card punching point positions, and at the moment, card punching verification is determined to be successful; and if the matching fails, the current identification map is not the target identification map, and the card punching verification is determined to fail. If the target identification diagram features which are downloaded in advance do not exist in the client, namely the target identification diagram features corresponding to the target card punching point position do not exist in the identification diagram features downloaded in the client, the current identification diagram features can be sent to the server so as to carry out feature matching in the server, and the result of the feature matching is returned to the client, so that the intelligent switching between the client and the server is realized. If the returned feature matching result is successful, the card punching verification is successful; and if the returned feature matching result fails, the card punching verification fails. It should be noted that when the target card punching point position corresponds to a plurality of target identification map features, in the identification map feature matching process, if the current identification map feature is successfully matched with any target identification map feature, the successful card punching verification can be determined; and if the current identification image characteristics and the target identification image characteristics are matched unsuccessfully, determining that the card punching verification is failed.
Optionally, when performing card punching verification in the client, performing card punching verification according to the current identification map information and the current scanning position in S130 includes: performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current recognition image features with the recognition image features one by one, and if the matching is successful, determining the successfully matched recognition image as a target recognition image; calculating a second distance between the current scanning position and a target card punching point position corresponding to the target identification image; if the second distance is smaller than the preset distance, the card punching verification is successful.
In the embodiment, when the card punching verification is performed in the client, the position matching can be performed after the feature matching of the identification image is performed. Specifically, the client may first extract features of the current recognition map by using a local preset extraction algorithm, match the obtained features of the current recognition map with each feature of the pre-stored recognition map, and if the matching is successful, indicate that the current recognition map is an accurate recognition map; if the matching fails, the current identification map features are different from the pre-stored identification map features, and at the moment, the current identification map features can be sent to the server so as to enable the server to perform further feature matching, and a matching result is returned to the client, so that the intelligent switching between the client and the server is realized. If the identification image features are successfully matched, determining the position of the card punching point corresponding to the successfully matched identification image features as the position of a target card punching point, and calculating a second distance between the current scanning position and the position of the target card punching point to verify whether the user reaches the position of the target card punching point or not, so as to prevent cheating of card punching. If the second distance is smaller than the preset distance, the card punching verification is determined to be successful, otherwise, the card punching verification fails.
And S140, outputting a card punching verification result.
The card punching verification result may include card punching verification success and card punching verification failure. In this embodiment, the output mode of the card punching verification result may be to display the card punching verification information corresponding to the card punching verification result in a display interface of the client, play the card punching verification voice information corresponding to the card punching verification result through a playing device on the client, and present augmented reality contents such as a three-dimensional image, an image, and a video corresponding to the card punching verification result by using an augmented reality technology, so as to increase interestingness and improve the user card punching experience.
According to the technical scheme of the embodiment, when a login instruction is detected by a client, a login request is sent to a server, and when the login is successful, at least one card punching point position sent by the server and an identification map identifier corresponding to each card punching point position are received, so that a user is prompted to perform image scanning and an identification map needing to be scanned; when the client detects a camera scanning instruction, the client scans the current identification map to determine the information of the current identification map and the current scanning position. The client can perform card punching verification according to the current identification image information and the current scanning position, and can also request the server to perform card punching verification according to the current identification image information and the current scanning position. According to the embodiment of the invention, the card punching function is realized only by information interaction between the client with the scanning function and the server, and no fixed acquisition equipment is required to be arranged at the card punching position, so that the card punching cost is greatly reduced.
On the basis of the technical scheme, the method further comprises the following steps: and if the registration instruction is detected, sending the user registration information and the terminal registration information to a server to register the user.
In this embodiment, before the user logs in, the user needs to register. The registration instruction may be an instruction generated by the client when a preset registration button is triggered. For example, after the user inputs the user registration information in the registration page of the client, a registration instruction is generated by triggering a preset registration button. The user registration information may include, but is not limited to, a manually set user registration account, a hash value of a user registration password, remark information, and card punching data in which the user is interested. The terminal registration information is encrypted information generated by a terminal identifier corresponding to a terminal used by the user during registration so as to ensure that the user can only log in the terminal used during registration after the user is successfully registered, thereby preventing cheating that others take the place of card punching.
Specifically, when the client detects a registration instruction, a registration request is sent to the server, so that user registration information and terminal registration information are sent to the server. And the server performs registration verification according to the received user registration information and the terminal registration information. For example, if the registration verification is successful, a registration success instruction may be sent to the client, otherwise, a registration failure instruction is sent. When the client detects a successful registration instruction, the client can output successful registration information to remind a user of successful registration and can perform login operation; when a registration failure instruction is detected, corresponding registration failure information can be output according to the reason of the registration failure so as to remind the user of the registration failure. For example, if the registration failure is caused by the fact that the user is registered, the user is reminded that the user does not need to register and can directly log in.
On the basis of the above technical solution, after receiving at least one card punching point position sent by the server, the method further includes:
and calling a map application program interface, and displaying the current user position and the positions of all the card punching points in the map interface.
The client can call a local map application program interface, so that the current user position and each card punching point position can be displayed in a map interface more visually, a user can reach the card punching point position more conveniently according to the guidance of map navigation, and the card punching experience of the user is improved.
On the basis of the technical scheme, the method further comprises the following steps: if only receiving a card punching point position sent by a server and an identification image identifier corresponding to the card punching point position, after scanning an identification image corresponding to the identification image identifier, acquiring a position of a next to-be-punched point of the card punching point position and the identification image identifier corresponding to the position of the next to-be-punched point.
The position of the point to be punched is a position where punching is not performed yet, and may be any position of the punching point except the position of the punching point sent by the server. And the position of the next to-be-punched point is the position of the next punched point which is adjacent to the position of the punched point sent by the server based on the punching order. The embodiment can add the next piece of identification diagram information of each identification diagram in advance according to the card punching sequence. For example, assuming that there are three preset identification maps, the first identification map is added with the position of the card punching point where the second identification map is located and the corresponding identification map identifier, and the second identification map is added with the position of the card punching point where the third identification map is located and the corresponding identification map identifier. When the client side receives only one card punching point position sent by the server, the client side can automatically acquire the position of the next card punching point to be punched and the identification image mark corresponding to the position of the next card punching point after scanning the identification image corresponding to the identification image mark, namely after the card punching is successful at the position of the card punching point, so that a user is prompted to reach the position of the next card punching point to punch the card, and the interest of the card punching is increased. And after the card punching is successful, the client can provide the information of the next card punching, so that the client can provide the card punching positions and the corresponding identification graph identifiers for the user one by one. In an application scene of a breakthrough game with a card punching sequence, the setting mode can avoid the situation that the card punching sequence is wrong due to too many card punching positions provided at one time, so that the card punching experience of a user is further improved.
Optionally, if only one card punching point position sent by the server and the identification map identifier corresponding to the card punching point position are received, after the identification map corresponding to the identification map identifier is scanned, a plurality of positions of the card punching points to be punched and the identification map identifiers corresponding to the positions of the card punching points to be punched are obtained. The position of the point to be punched is a position where punching is not performed yet, and may be any position of the punching point except the position of the punching point sent by the server. In this embodiment, identification map information corresponding to a plurality of positions to be punched may be added in advance in an identification map corresponding to the positions of the punching points sent by the server, so that a plurality of positions to be punched behind can be obtained after scanning the identification map corresponding to the identification map identifier sent, that is, after the punching at the positions of the punching points is successful. For example, assuming that there are three preset identification maps, the corresponding card punching positions and the corresponding identification map identifiers of the second identification map and the third identification map may be added to the first identification map at the same time, so that after the first identification map is scanned, the corresponding card punching positions and the corresponding identification map identifiers of the second identification map and the third identification map may be automatically obtained, so that the user may reasonably plan the shortest card punching route according to the own position, and the card punching efficiency is improved. In an application scene of limiting the time for punching the card, the setting mode can save the time for punching the card by the user, and further improve the card punching experience of the user.
On the basis of the technical scheme, the method further comprises the following steps: and if the card punching verification result is that the card punching verification is successful, storing the current card punching information in the server for data management and analysis.
The current card punching information may include, but is not limited to, current identification map information, current scanning location, current scanning time, and user login information, among others. Wherein the current scan time is used to characterize a user's time to punch a card. The present embodiment stores the current card punching information of each user in the server so that data management and analysis can be performed later. For example, according to the stored current card punching information of a plurality of users, the card punching point with the largest traffic, the difficulty level of setting the card punching point, the interest and hobbies of the user and the like can be determined.
Example two
Fig. 2 is a flowchart of a card punching method according to a second embodiment of the present invention, which is applicable to a situation where a client with a scanning function is used to punch a card, and especially applicable to a scenario where a player punches a card at a game level in a game break-through competition. The method can be executed by a card punching device arranged at a server side, and the device can be realized by software and/or hardware and is integrated in a data processing server. As shown in fig. 2, the method specifically includes the following steps:
s210, receiving a login request sent by the client, and performing login verification according to the login request.
The client may refer to a specific application installed on the mobile terminal with the camera and performing information interaction with the server. The login request may include, but is not limited to, user login information, terminal encryption information, and/or an encryption string. The user login information may include a pre-registered login account and a hash value of a login password, and the terminal encryption information may be encryption information generated according to a login terminal identifier based on a preset encryption algorithm. The encryption string may be an encryption string randomly generated by the client when a time interval between the login instruction detected next time and the login instruction detected last time is greater than a preset time interval.
Optionally, when the login request includes the user login information and the terminal encryption information, the login authentication performed according to the login request in S210 includes: carrying out user matching on the user login information and each user registration information in the pre-stored first mapping information; if the user is successfully matched, determining target terminal registration information corresponding to the user login information according to the first mapping information; and if the target terminal registration information is consistent with the terminal encryption information, the login verification is successful.
The first mapping information may include a mapping relationship between each user registration information and each terminal registration information registered in advance. Specifically, the server may perform user matching on all user registration information in the first mapping information with the user login information one by one, and if the user matching fails, it indicates that the user has not registered, and at this time, the server may send login failure information to the client to prompt the user to register or re-input the user login information. And if the user is successfully matched, the user is indicated to be registered, at the moment, the terminal registration information corresponding to the user registration information successfully matched with the user login information is determined according to the first mapping information, and the terminal registration information is determined as target terminal registration information. And performing terminal matching on the terminal encryption information and the target terminal registration information, wherein if the terminal matching is consistent, the login verification is successful, and otherwise, the login verification fails. According to the embodiment, the terminal is matched for operation, so that the terminal can be guaranteed to log in at the same terminal at every time, namely the terminal used during registration, the account information of other people can be prevented from logging in at the terminal of other people, and further the cheating behavior that other people take the card instead is avoided.
Optionally, if the time interval between the login instruction detected at the next time and the login instruction detected at the last time is smaller than or equal to the preset time interval, the encryption character string generated at the last time is directly sent to the server, and the login request received by the server at this time only includes one encryption character string. The server can match the encryption character string received at the current time with the encryption character string received at the last time, if the matching is successful, the login verification is successful, the user login information and the terminal encryption information do not need to be verified, and therefore automatic and rapid login can be achieved.
S220, if the login verification is successful, at least one card punching point position and an identification map identifier corresponding to each card punching point position are sent to the client, so that when the client detects a camera scanning instruction, the client scans the current identification map, determines the current identification map information and the current scanning position, and performs card punching verification according to the current identification map information and the current scanning position, or requests the server to perform card punching verification according to the current identification map information and the current scanning position.
The position of the card punching point and the identification chart mark are respectively used for prompting the user of the position of image scanning and the identification chart needing to be scanned. The card punching position is one or more card punching positions which are preset according to actual conditions and stored in the server. When the number of the card punching positions is multiple, the server can send the card punching positions to the client one by one, and can also send all the card punching positions to the client at one time. After the client receives the card punching point position sent by the server, the user can find the position for punching the card according to the card punching point position on the client, namely the position for scanning the image. The identification chart in the embodiment can be a preset image or a two-dimensional code fixedly placed at the position of the card punching point, and each identification chart can be used for scanning a plurality of clients simultaneously, so that a plurality of users can punch cards simultaneously, the users do not need to queue up and punch cards in sequence, and the card punching efficiency is improved. The identification map identification may refer to a legend and/or image number of the identification map. In the embodiment, one or more identification diagrams can be placed in advance at each card punching point position, that is, each card punching point position can correspond to one or more identification diagram identifiers.
Specifically, when the server successfully performs login verification according to the login request, the server sends at least one pre-stored card punching point position and an identification map identifier corresponding to each card punching point position to the client. The client can display the received card punching point position and the identification graph mark corresponding to each card punching point position to prompt a user to reach the card punching point position, and a correct identification graph is searched for at the card punching point position according to the identification graph mark corresponding to the card punching point position. When the user reaches a certain card punching point position and finds the identification image at the card punching point position, the scanning function in the client is started, and the scanning area is aligned to the found current identification image, so that the client carries out identification scanning on the current identification image, and the information of the current identification image and the current scanning position are determined.
In the embodiment, the card punching verification can be directly carried out in the client according to the current identification image information and the current scanning position; the client side can also send the current identification map information and the current scanning position to the server to request the server to carry out card punching verification. If the card punching verification is carried out in the client, the server only needs to send at least one card punching point position and the identification graph mark corresponding to each card punching point position to the client.
Optionally, after S220, the method further includes: receiving current identification map information and a current scanning position sent by a client; and performing card punching verification according to the current identification image information, the current scanning position, the pre-stored position of each card punching point and the characteristics of each identification image.
Wherein, the current identification map may refer to an identification map currently located in the scanning area. The current identification map information may refer to scan information corresponding to the current identification map. The current scan location may be the geographic location at which the client was located when scanning the current identification map. The present embodiment may determine the current scanning position by a positioning system installed in the client in advance. In this embodiment, the current identification map may not be an accurate identification map corresponding to the identification map identifier, and the current scanning position may not be an accurate card punching position, so that card punching verification needs to be performed according to the current identification map information and the current scanning position.
Specifically, when the client requests the server to perform the card punching verification, the server receives the current identification map information and the current scanning position sent by the client, and performs the card punching verification in the server according to the current identification map information, the current scanning position, the pre-stored positions of the card punching points and the characteristics of the identification maps. When the card punching verification is carried out, the position matching can be carried out firstly, and the identification image matching can be carried out after the position matching is successful; or the recognition image matching can be carried out firstly, and the position matching can be carried out after the recognition image matching is successful.
Optionally, when performing card punching verification in the server, performing card punching verification according to the current identification map information, the current scanning position, pre-stored positions of each card punching point, and characteristics of each identification map, including: calculating first distances between the pre-stored positions of the card punching points and the current scanning position, and determining the positions of the target card punching points according to the first distances and the preset distances; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; and matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, sending a card punching verification success instruction to the client.
The preset distance may be a maximum error value set during position matching. The preset extraction algorithm may refer to any algorithm for extracting features of the recognition graph in the prior art.
In the embodiment, when the card punching verification is performed in the server, the position matching can be performed first, and then the feature matching of the identification pattern can be performed. Specifically, the server first calculates a first distance between each pre-stored card punching position and the current scanning position, compares the first distances with preset distances one by one, and if each first distance is greater than or equal to the preset distance, it is indicated that the user does not reach the set card punching position, that is, the card punching position is wrong, and at this time, it can be determined that the card punching verification fails. If the first distance between a certain card punching point position and the current scanning position is smaller than the preset distance, the fact that the user reaches the set card punching point position is indicated, and the card punching point position can be determined as the target card punching point position. If the position of the target card punching point exists, further matching of the characteristics of the identification graph is needed. The server may first extract features of the current recognition graph by using a pre-stored preset extraction algorithm to obtain features of the current recognition graph. The server performs feature matching on the current identification map features and the target identification map features corresponding to the target card punching point position, if matching is successful, the current identification map is indicated to be the identification map corresponding to the target card punching point position, and at the moment, a card punching verification success instruction can be sent to the client; and if the matching fails, sending a card punching verification failure instruction to the client. It should be noted that, when the target card punching point position corresponds to a plurality of target identification map features, in the identification map feature matching process, if the current identification map feature is successfully matched with any target identification map feature, a card punching verification success instruction can be sent to the client; and if the current identification image characteristics and each target identification image characteristics fail to be matched, sending a card punching verification failure instruction to the client.
Optionally, when performing card punching verification in the server, performing card punching verification according to the current identification map information, the current scanning position, pre-stored positions of each card punching point, and characteristics of each identification map, including: performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current recognition image features with the pre-stored recognition image features one by one, and if the matching is successful, determining the successfully matched recognition image as a target recognition image; and calculating a second distance between the current scanning position and the target card punching position corresponding to the target identification image, and if the second distance is smaller than the preset distance, sending a card punching verification success instruction to the client.
In the embodiment, when the card punching verification is performed in the server, the position matching can be performed after the feature matching of the identification image is performed. Specifically, the server may first extract features of the current identification map by using a pre-stored preset extraction algorithm, match the obtained features of the current identification map with each pre-stored feature of the identification map, and if the matching fails, indicate that the features of the current identification map are different from the features of the pre-stored feature map, at this time, may send a card-punching verification failure instruction to the client. And if the matching is successful, indicating that the current recognition image is an accurate recognition image, and determining the successfully matched recognition image as the target recognition image. If the feature matching is successful, determining the position of the card punching point corresponding to the feature of the target identification image as the position of the target card punching point, and calculating a second distance between the current scanning position and the position of the target card punching point to verify whether the user reaches the position of the target card punching point or not, so as to prevent cheating of card punching. If the second distance is smaller than the preset distance, the card punching verification is successful, at this moment, a card punching verification success instruction is sent to the client, and otherwise, a card punching verification failure instruction is sent to the client.
On the basis of the technical scheme, the method further comprises the following steps:
receiving user registration information and terminal registration information sent by a client; and if the first mapping information stored in advance does not have the currently received user registration information, storing the mapping relation between the currently received user registration information and the terminal registration information into the first mapping information.
The first mapping information comprises mapping relations between user registration information and terminal registration information. The user registration information may include, but is not limited to, a manually set user registration account, a hash value of a user registration password, remark information, and card punching data in which the user is interested. The terminal registration information is encrypted information generated by a terminal identifier corresponding to a terminal used by the user during registration so as to ensure that the user can only log in the terminal used during registration after the user is successfully registered, thereby preventing cheating that others take the place of card punching.
Specifically, when the user is registered, the server receives user registration information and terminal registration information sent by the client, and matches all the user registration information in the first mapping relationship with currently received user registration information one by one. If all the user registration information in the first mapping relation fails to match with the currently received user registration information, it indicates that the currently received user registration information does not exist in the server, that is, the current user is not registered, at this time, the mapping relation between the currently received user registration information and the terminal registration information may be stored in the first mapping information, so as to update the first mapping information, and meanwhile, a registration success instruction may be sent to the client. If the matching between the certain user registration information in the first mapping relation and the currently received user registration information is successful, the current user is indicated to be registered, and a registration failure instruction can be sent to the client at the moment so as to remind the current user that the user does not need to register and can directly log in.
According to the technical scheme of the embodiment, a login request sent by a client is received through a server, and login verification is carried out according to the login request; if the login verification is successful, at least one card punching point position and an identification map identifier corresponding to each card punching point position are sent to the client, so that the client scans the current identification map when detecting a camera scanning instruction, determines the current identification map information and the current scanning position, performs card punching verification according to the current identification map information and the current scanning position, and can also request the server to perform card punching verification according to the current identification map information and the current scanning position. According to the embodiment of the invention, the card punching function is realized only by information interaction between the client with the scanning function and the server, and no fixed acquisition equipment is required to be arranged at the card punching position, so that the card punching cost is greatly reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a card punching device according to a third embodiment of the present invention, where the third embodiment is applicable to a situation where a client with a scanning function is used to punch a card, the device specifically includes: a login request sending module 310, a card punching point information receiving module 320, a card punching verification module 330 and a card punching verification result output module 340.
The login request sending module 310 is configured to send a login request to the server if a login instruction is detected; the card punching point information receiving module 320 is configured to receive at least one card punching point position and an identification map identifier corresponding to each card punching point position, which are sent by the server, if the login is successful, where the card punching point position and the identification map identifier are respectively used to prompt the user of a position where the image is scanned and an identification map that needs to be scanned; the card punching verification module 330 is configured to scan the current identification map, determine information of the current identification map and a current scanning position, and perform card punching verification according to the information of the current identification map and the current scanning position, or request the server to perform card punching verification according to the information of the current identification map and the current scanning position; and a card-punching verification result output module 340 for outputting the card-punching verification result.
According to the technical scheme of the embodiment, when a login instruction is detected by a client, a login request is sent to a server, and when the login is successful, at least one card punching point position sent by the server and an identification map identifier corresponding to each card punching point position are received, so that a user is prompted to perform image scanning and an identification map needing to be scanned; when the client detects a camera scanning instruction, the client scans the current identification map to determine the information of the current identification map and the current scanning position. The client can perform card punching verification according to the current identification image information and the current scanning position, and can also request the server to perform card punching verification according to the current identification image information and the current scanning position. According to the embodiment of the invention, the card punching function is realized only by information interaction between the client with the scanning function and the server, and no fixed acquisition equipment is required to be arranged at the card punching position, so that the card punching cost is greatly reduced.
Optionally, the card verification module 330 may be specifically configured to:
calculating first distances between the positions of the card punching points and the current scanning position, and determining the positions of the target card punching points according to the first distances and preset distances; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; and matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful.
Optionally, the card verification module 330 may be further specifically configured to:
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current recognition image features with the recognition image features one by one, and if the matching is successful, determining the successfully matched recognition image as a target recognition image; calculating a second distance between the current scanning position and a target card punching point position corresponding to the target identification image; if the second distance is smaller than the preset distance, the card punching verification is successful.
Optionally, the apparatus further comprises:
and the registration information sending module is used for sending the user registration information and the terminal registration information to the server to register the user if the registration instruction is detected.
Optionally, the apparatus further comprises:
and the map application program interface calling module is used for calling the map application program interface after receiving the at least one card punching point position sent by the server, and displaying the current user position and each card punching point position in the map interface.
Optionally, the apparatus further comprises:
the system comprises a to-be-punched-card point information acquisition module, a to-be-punched-card point information acquisition module and a to-be-punched-card point identification acquisition module, wherein the to-be-punched-card point information acquisition module is used for acquiring a next to-be-punched-card point position of a punched-card point position and an identification map identification corresponding to the next to-be-punched-card point position after scanning an identification map corresponding to the identification map identification if only one punched-card point position and the identification map identification corresponding to the punched-card point position sent by a server are received; or acquiring a plurality of positions of the to-be-punched card and identification graph marks corresponding to the positions of the to-be-punched card.
Optionally, the apparatus further comprises:
and the current card punching information storage module is used for storing the current card punching information in the server for data management and analysis if the card punching verification result is that the card punching verification is successful.
The card punching device provided by the third embodiment of the invention can execute the card punching method provided by the first embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the card punching method.
Example four
Fig. 4 is a schematic structural diagram of a card punching device according to a fourth embodiment of the present invention, where the present embodiment is applicable to a situation where a client with a scanning function is used to punch a card, the device specifically includes: a login authentication module 410 and a point-of-credit information transmission module 420.
The login authentication module 410 is configured to receive a login request sent by a client, and perform login authentication according to the login request; the card punching point information sending module 420 is configured to send at least one card punching point position and an identification map identifier corresponding to each card punching point position to the client if login verification is successful, so that the client scans a current identification map when detecting a camera scanning instruction, determines current identification map information and a current scanning position, and performs card punching verification according to the current identification map information and the current scanning position, or requests the server to perform card punching verification according to the current identification map information and the current scanning position; the position of the card punching point and the identification chart mark are respectively used for prompting the user of the position of image scanning and the identification chart needing to be scanned.
According to the technical scheme of the embodiment, a login request sent by a client is received through a server, and login verification is carried out according to the login request; if the login verification is successful, at least one card punching point position and an identification map identifier corresponding to each card punching point position are sent to the client, so that the client scans the current identification map when detecting a camera scanning instruction, determines the current identification map information and the current scanning position, performs card punching verification according to the current identification map information and the current scanning position, and can also request the server to perform card punching verification according to the current identification map information and the current scanning position. According to the embodiment of the invention, the card punching function is realized only by information interaction between the client with the scanning function and the server, and no fixed acquisition equipment is required to be arranged at the card punching position, so that the card punching cost is greatly reduced.
Optionally, the login request includes user login information and terminal encryption information; accordingly, the login authentication module 410 includes:
carrying out user matching on user login information and each user registration information in pre-stored first mapping information, wherein the first mapping information comprises a mapping relation between each user registration information and each terminal registration information; if the user is successfully matched, determining target terminal registration information corresponding to the user login information according to the first mapping information; and if the target terminal registration information is consistent with the terminal encryption information, the login verification is successful.
Optionally, the apparatus further comprises:
the card punching verification module is used for receiving current identification map information and a current scanning position sent by the client after sending at least one card punching point position and identification map identifications corresponding to the card punching point positions to the client; and performing card punching verification according to the current identification image information, the current scanning position, the pre-stored position of each card punching point and the characteristics of each identification image.
Optionally, the card verification module may be specifically configured to:
calculating first distances between the pre-stored positions of the card punching points and the current scanning position, and determining the positions of the target card punching points according to the first distances and the preset distances; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; and matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, sending a card punching verification success instruction to the client.
Optionally, the card punching verification module may be further specifically configured to:
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current recognition image features with the pre-stored recognition image features one by one, and if the matching is successful, determining the successfully matched recognition image as a target recognition image; and calculating a second distance between the current scanning position and the target card punching position corresponding to the target identification image, and if the second distance is smaller than the preset distance, sending a card punching verification success instruction to the client.
Optionally, the apparatus further comprises:
the user registration module is used for receiving user registration information and terminal registration information sent by the client; if the first mapping information stored in advance does not have the currently received user registration information, storing the mapping relation between the currently received user registration information and the terminal registration information into the first mapping information; the first mapping information comprises mapping relations between user registration information and terminal registration information.
The card punching device provided by the fourth embodiment of the invention can execute the card punching method provided by the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the card punching method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a card punching system according to a fifth embodiment of the present invention. Referring to fig. 5, the system includes: a server 510 and at least one client 520.
The client 520 is configured to implement the card punching method according to the first embodiment; the server 510 is used for implementing the card punching method according to the second embodiment.
In the present embodiment, each client 520 communicates with the server 510 through a web service, so as to realize information interaction. The server 510 may identify the request sent by each client 520, so that the requests sent by multiple clients 520 may be processed simultaneously, so that multiple users may perform a card punching operation simultaneously, thereby improving the card punching efficiency.
The working process of the card punching system provided by the embodiment is as follows:
when a certain client 520 detects a login instruction, a login request is sent to the server; the server 510 performs login verification according to the information in the login request, and sends at least one card punching point position and an identification map identifier corresponding to each card punching point position to the client 520 when the login verification is successful; the client 520 receives at least one card punching point position sent by the server 510 and the identification map identifier corresponding to each card punching point position, so that a user can reach the position for image scanning according to the card punching point position in the client 520, and an identification map needing to be scanned is determined according to the identification map identifier; when the client 520 detects a camera scanning instruction, scanning the current identification image, and determining the information of the current identification image and the current scanning position; the client 520 may perform the card punching verification locally according to the current identification map information and the current scanning position, or may send the current identification map information and the current scanning position to the server 510, and request the server 510 to perform the card punching verification according to the current identification map information and the current scanning position; when the client 520 locally determines the card punching verification result or receives the card punching verification result sent by the server 510, the client 520 outputs the card punching verification result, thereby implementing the card punching function.
The card punching system in the embodiment realizes the card punching function through network communication between the server and each client, does not need to arrange additional acquisition equipment at the card punching position, greatly reduces the card punching cost, can support a plurality of users to simultaneously punch cards, does not need to line up and punch cards in sequence, improves the card punching efficiency, and improves the card punching experience of the users.
EXAMPLE six
A sixth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the card punching method according to the first embodiment, and the method includes:
if a login instruction is detected, sending a login request to a server;
if the login is successful, receiving at least one card punching point position sent by the server and an identification graph identifier corresponding to each card punching point position, wherein the card punching point position and the identification graph identifier are respectively used for prompting a user to carry out image scanning on a position and an identification graph needing to be scanned;
if a camera scanning instruction is detected, scanning a current identification image, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position, or requesting the server to perform card punching verification according to the current identification image information and the current scanning position;
and outputting a card punching verification result.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
EXAMPLE seven
The seventh embodiment further provides another computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the card punching method according to the second embodiment, and the method includes:
receiving a login request sent by a client, and performing login verification according to the login request;
if the login verification is successful, sending at least one card punching point position and an identification map identifier corresponding to each card punching point position to a client so that the client scans a current identification map when detecting a camera scanning instruction, determines current identification map information and a current scanning position, and performs card punching verification according to the current identification map information and the current scanning position, or requests the server to perform card punching verification according to the current identification map information and the current scanning position;
the card punching point position and the identification chart mark are respectively used for prompting the user of the image scanning position and the identification chart needing to be scanned.
Of course, the storage medium containing the computer program provided by the embodiment of the present invention is not limited to the operation of the card punching method described above, and may also perform the relevant operations in the card punching method provided by any embodiment of the present invention. The description of the storage medium is explained with reference to the sixth embodiment.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A card punching method is applied to a client side and is characterized by comprising the following steps:
if a login instruction is detected, sending a login request to a server;
if the login is successful, receiving at least one card punching point position sent by the server and an identification graph identifier corresponding to each card punching point position, wherein the card punching point position and the identification graph identifier are respectively used for prompting a user to carry out image scanning on a position and an identification graph needing to be scanned; the identification picture is a preset image or a two-dimensional code fixedly placed at the position of the card punching point; the identification map identifier comprises: identifying an image number of the map;
if a camera scanning instruction is detected, scanning a current identification image, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position, or requesting the server to perform card punching verification according to the current identification image information and the current scanning position, wherein the current scanning position is used for determining the position of a target card punching point;
the card punching verification according to the current identification image information and the current scanning position comprises the following steps:
calculating a first distance between each point of the card punching position and the current scanning position, and determining the position of the target card punching position according to each first distance and a preset distance, wherein the first distance between the position of the target card punching position and the current scanning position is smaller than the preset distance;
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map;
matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful;
outputting a card punching verification result;
the receiving at least one card punching point position sent by the server and the identification graph identifier corresponding to each card punching point position comprises:
the position of the at least one card punching point corresponds to a plurality of identification graph identifications;
the outputting the card-punching verification result comprises:
and presenting a three-dimensional image, image or video corresponding to the card punching verification result by utilizing an augmented reality technology.
2. The method of claim 1, further comprising:
and if the registration instruction is detected, sending user registration information and terminal registration information to the server to register the user.
3. The method of claim 1, further comprising, after receiving at least one point of credit location sent by the server:
and calling a map application program interface, and displaying the current user position and the position of each card punching point in the map interface.
4. The method of claim 1, further comprising:
if only receiving a card punching point position sent by the server and an identification image identifier corresponding to the card punching point position, after scanning an identification image corresponding to the identification image identifier, acquiring a next position to be punched of the card punching point position and the identification image identifier corresponding to the next position to be punched; or acquiring a plurality of positions of the to-be-punched card and identification graph marks corresponding to the positions of the to-be-punched card.
5. The method of claim 1, further comprising:
and if the card punching verification result is that the card punching verification is successful, storing the current card punching information in the server for data management and analysis.
6. A card punching method is applied to a server and is characterized by comprising the following steps:
receiving a login request sent by a client, and performing login verification according to the login request;
if the login verification is successful, sending at least one card punching point position and an identification map identifier corresponding to each card punching point position to a client, so that the client scans a current identification map when detecting a camera scanning instruction, determines current identification map information and a current scanning position, and performs card punching verification according to the current identification map information and the current scanning position, or requests the server to perform card punching verification according to the current identification map information and the current scanning position, wherein the current scanning position is used for determining a target card punching point position;
the card punching point position and the identification chart mark are respectively used for prompting a user of the position of image scanning and the identification chart needing to be scanned; the identification picture is a preset image or a two-dimensional code fixedly placed at the position of the card punching point; the identification map identifier comprises: identifying an image number of the map;
the card punching verification according to the current identification image information and the current scanning position comprises the following steps:
calculating a first distance between each point of the card punching position and the current scanning position, and determining the position of the target card punching position according to each first distance and a preset distance, wherein the first distance between the position of the target card punching position and the current scanning position is smaller than the preset distance;
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map;
matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful;
the sending of at least one card punching point position and the identification graph identifier corresponding to each card punching point position to the client comprises:
the position of the at least one card punching point corresponds to a plurality of identification graph identifications;
after the card punching verification is performed by the request server according to the current identification map information and the current scanning position, the method further includes: sending a card punching verification result to the client;
wherein, the output mode of the checking card verification result comprises: and presenting a three-dimensional image, an image or a video corresponding to the card punching verification result in the client by utilizing an augmented reality technology.
7. The method of claim 6, wherein the login request includes user login information and terminal encryption information;
correspondingly, the login authentication is carried out according to the login request, and the login authentication comprises the following steps:
performing user matching on the user login information and each user registration information in pre-stored first mapping information, wherein the first mapping information comprises a mapping relation between each user registration information and each terminal registration information;
if the user is successfully matched, determining target terminal registration information corresponding to the user login information according to the first mapping information;
and if the target terminal registration information is consistent with the terminal encryption information, the login verification is successful.
8. The method of claim 6, after sending at least one card punching position and an identification map identifier corresponding to each card punching position to the client, further comprising:
receiving current identification map information and a current scanning position sent by a client;
and performing card punching verification according to the current identification image information, the current scanning position, the pre-stored position of each card punching point and the characteristics of each identification image.
9. The method of claim 8, wherein performing card punch verification according to the current identification map information, the current scanning position, pre-stored positions of each card punch point and characteristics of each identification map comprises:
calculating first distances between the pre-stored positions of the card punching points and the current scanning position, and determining the positions of the target card punching points according to the first distances and preset distances;
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map;
and matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, sending a card punching verification success instruction to the client.
10. The method of claim 8, wherein performing card punch verification according to the current identification map information, the current scanning position, pre-stored positions of each card punch point and characteristics of each identification map comprises:
performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map;
matching the current recognition image features with pre-stored recognition image features one by one, and if the matching is successful, determining the successfully matched recognition image as a target recognition image;
and calculating a second distance between the current scanning position and a target card punching position corresponding to the target identification image, and if the second distance is smaller than a preset distance, sending a card punching verification success instruction to the client.
11. The method of claim 6, further comprising:
receiving user registration information and terminal registration information sent by the client;
if the first mapping information stored in advance does not have the currently received user registration information, storing the mapping relation between the currently received user registration information and the terminal registration information into the first mapping information; the first mapping information comprises mapping relations between user registration information and terminal registration information.
12. The utility model provides a device of checking card, sets up in the customer end, its characterized in that includes:
the login request sending module is used for sending a login request to the server if a login instruction is detected;
the system comprises a card punching point information receiving module, a card punching point information receiving module and a card punching point information processing module, wherein the card punching point information receiving module is used for receiving at least one card punching point position sent by a server and an identification graph mark corresponding to each card punching point position if login is successful, and the card punching point position and the identification graph mark are respectively used for prompting a user to carry out image scanning position and an identification graph needing to be scanned; the identification picture is a preset image or a two-dimensional code fixedly placed at the position of the card punching point; the identification map identifier comprises: identifying an image number of the map;
the card punching verification module is used for scanning a current identification image if a camera scanning instruction is detected, determining current identification image information and a current scanning position, and performing card punching verification according to the current identification image information and the current scanning position, or requesting the server to perform card punching verification according to the current identification image information and the current scanning position, wherein the current scanning position is used for determining the position of a target card punching point;
the card punching verification module is specifically used for: calculating a first distance between each point of time of card punching and a current scanning position, and determining the position of the target point of time of card punching according to each first distance and a preset distance, wherein the first distance between the position of the target point of time of card punching and the current scanning position is smaller than the preset distance; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful;
the card punching verification result output module is used for outputting a card punching verification result;
the receiving at least one card punching point position sent by the server and the identification graph identifier corresponding to each card punching point position comprises:
the position of the at least one card punching point corresponds to a plurality of identification graph identifications;
the outputting the card-punching verification result comprises:
and presenting a three-dimensional image, image or video corresponding to the card punching verification result by utilizing an augmented reality technology.
13. The utility model provides a device of checking card sets up in the server, its characterized in that includes:
the login authentication module is used for receiving a login request sent by a client and performing login authentication according to the login request;
the system comprises a card punching point information sending module, a card punching point information sending module and a card punching point identification processing module, wherein the card punching point information sending module is used for sending at least one card punching point position and an identification graph identification corresponding to each card punching point position to a client so that the client scans a current identification graph when detecting a camera scanning instruction, determines current identification graph information and a current scanning position, and carries out card punching verification according to the current identification graph information and the current scanning position, or requests a server to carry out card punching verification according to the current identification graph information and the current scanning position, wherein the current scanning position is used for determining a target card punching point position; the card punching point position and the identification chart mark are respectively used for prompting a user of the position of image scanning and the identification chart needing to be scanned; the identification picture is a preset image or a two-dimensional code fixedly placed at the position of the card punching point; the identification map identifier comprises: identifying an image number of the map;
the card punching verification module is specifically used for: calculating a first distance between each point of time of card punching and a current scanning position, and determining the position of the target point of time of card punching according to each first distance and a preset distance, wherein the first distance between the position of the target point of time of card punching and the current scanning position is smaller than the preset distance; performing feature extraction on the current identification map information according to a preset extraction algorithm, and determining the features of the current identification map; matching the current identification image characteristics with the target identification image characteristics corresponding to the target card punching point position, and if the matching is successful, the card punching verification is successful;
the sending of at least one card punching point position and the identification graph identifier corresponding to each card punching point position to the client comprises:
the position of the at least one card punching point corresponds to a plurality of identification graph identifications;
after the card punching verification is performed by the request server according to the current identification map information and the current scanning position, the method further includes: sending a card punching verification result to the client;
wherein, the output mode of the checking card verification result comprises:
and presenting a three-dimensional image, an image or a video corresponding to the card punching verification result in the client by utilizing an augmented reality technology.
14. A card punching system, the system comprising: a server and at least one client; wherein the content of the first and second substances,
the client is used for realizing the card punching method of any one of claims 1-5;
the server is used for realizing the card punching method of any one of claims 6-11.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the card punching method according to any one of claims 1-11.
CN201810960808.2A 2018-08-22 2018-08-22 Card punching method, device, system and storage medium Active CN109102581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960808.2A CN109102581B (en) 2018-08-22 2018-08-22 Card punching method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960808.2A CN109102581B (en) 2018-08-22 2018-08-22 Card punching method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN109102581A CN109102581A (en) 2018-12-28
CN109102581B true CN109102581B (en) 2022-02-15

Family

ID=64850743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960808.2A Active CN109102581B (en) 2018-08-22 2018-08-22 Card punching method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109102581B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111243125B (en) * 2020-01-16 2022-02-22 深圳市元征科技股份有限公司 Vehicle card punching method, device, equipment and medium
CN113850923B (en) * 2020-06-28 2023-09-08 深圳兆日科技股份有限公司 Attendance checking statistical method, device, equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4981259B2 (en) * 2004-04-30 2012-07-18 メキキ・クリエイツ株式会社 Work information processing system, apparatus, method, and computer program
CN103067853A (en) * 2011-10-19 2013-04-24 北京千橡网景科技发展有限公司 Method and system for verifying locating authenticity
CN103761603A (en) * 2013-12-31 2014-04-30 深圳市将者科技有限公司 Mobile card punching system suitable for outworkers
CN104618851A (en) * 2015-01-26 2015-05-13 腾讯科技(深圳)有限公司 Information processing method, server and terminal
CN105933377A (en) * 2016-03-31 2016-09-07 中国林学会 Data generation method, client, server and system
CN106056369A (en) * 2016-06-02 2016-10-26 财付通支付科技有限公司 Information processing method and device
CN106354207A (en) * 2016-08-26 2017-01-25 武汉众睿科技发展股份有限公司 Directional sports wist
CN206228906U (en) * 2016-12-02 2017-06-09 云南农业大学 A kind of Quick Response Code directed movement matching system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL223648A (en) * 1956-12-31 1900-01-01
JP6427964B2 (en) * 2013-11-28 2018-11-28 株式会社リコー Image processing system, information processing apparatus, and program
CN104376340B (en) * 2014-08-29 2016-06-22 腾讯科技(深圳)有限公司 Punch card method and device
CN106487762B (en) * 2015-08-31 2019-12-13 腾讯科技(深圳)有限公司 user identity recognition method, identity recognition application client and server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4981259B2 (en) * 2004-04-30 2012-07-18 メキキ・クリエイツ株式会社 Work information processing system, apparatus, method, and computer program
CN103067853A (en) * 2011-10-19 2013-04-24 北京千橡网景科技发展有限公司 Method and system for verifying locating authenticity
CN103761603A (en) * 2013-12-31 2014-04-30 深圳市将者科技有限公司 Mobile card punching system suitable for outworkers
CN104618851A (en) * 2015-01-26 2015-05-13 腾讯科技(深圳)有限公司 Information processing method, server and terminal
CN105933377A (en) * 2016-03-31 2016-09-07 中国林学会 Data generation method, client, server and system
CN106056369A (en) * 2016-06-02 2016-10-26 财付通支付科技有限公司 Information processing method and device
CN106354207A (en) * 2016-08-26 2017-01-25 武汉众睿科技发展股份有限公司 Directional sports wist
CN206228906U (en) * 2016-12-02 2017-06-09 云南农业大学 A kind of Quick Response Code directed movement matching system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
快乐跑APP-带你玩儿积分定向;蓝极度;《腾讯视频https://v.qq.com/x/page/t051285g4af.html》;20171130;视频公开内容 *
快乐跑AR实景识别;光辉岁月;《腾讯视频https://v.qq.com/x/page/y07162ksa6s.html》;20180709;视频公开内容 *

Also Published As

Publication number Publication date
CN109102581A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
US11394708B2 (en) Account information obtaining method, terminal, server and system
US20150244557A1 (en) Sign-in method and system
US9871784B2 (en) System and method for image based location specific password construction and authentication
US9215311B2 (en) Mobile electronic device and method
CN104504767A (en) Check-in information verification method and system
CN110399763B (en) Face recognition method and system
CN103259795A (en) Method for executing automatic register and login, mobile terminal and server
KR20140116295A (en) method of entrance control through instant QR code
US9918223B2 (en) Fingerprint based communication terminal and method, server and method thereof
CN109102581B (en) Card punching method, device, system and storage medium
US11503110B2 (en) Method for presenting schedule reminder information, terminal device, and cloud server
CN108306886B (en) Identity authentication method, device and storage medium
CN107656959B (en) Message leaving method and device and message leaving equipment
CN113705506A (en) Nucleic acid detection method, nucleic acid detection device, nucleic acid detection apparatus, and computer-readable storage medium
KR20140078242A (en) System and method for attendance and absence management using biometrics and location sensing in terminal
CN111160157B (en) Text extraction method based on DWG drawing and related products
CN111181839B (en) Data processing method, device and equipment in application sharing
CN108989312B (en) Authentication method and device based on geographic position
CN110969715A (en) Classroom attendance system based on dynamic two-dimensional code and GPS positioning
CN112511739B (en) Interactive information generation method and equipment
CN111723350A (en) Push method, device and equipment for identifying mode
CN112052711B (en) Fingerprint input method, identity verification method and device
CN113032755A (en) Nuclear power equipment operator verification method, device, equipment and storage medium
CN111159680A (en) Equipment binding method and device based on face recognition
JP6716047B1 (en) Biometric information device, distributed ledger identity verification system, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant