WO2020019456A1 - User instruction matching method and device, computer device and storage medium - Google Patents

User instruction matching method and device, computer device and storage medium Download PDF

Info

Publication number
WO2020019456A1
WO2020019456A1 PCT/CN2018/106428 CN2018106428W WO2020019456A1 WO 2020019456 A1 WO2020019456 A1 WO 2020019456A1 CN 2018106428 W CN2018106428 W CN 2018106428W WO 2020019456 A1 WO2020019456 A1 WO 2020019456A1
Authority
WO
WIPO (PCT)
Prior art keywords
instruction information
information
participant
gesture
decision maker
Prior art date
Application number
PCT/CN2018/106428
Other languages
French (fr)
Chinese (zh)
Inventor
朱文和
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020019456A1 publication Critical patent/WO2020019456A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/107Static hand or arm
    • G06V40/113Recognition of static hand signs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives

Definitions

  • the present application relates to the field of data processing, and in particular, to a user instruction matching method, device, computer device, and storage medium.
  • the traditional lottery method is manually drawn by the lottery staff. With the development of the society, the lottery form has begun to be networked and automated. Generally, the lottery information of each user is collected to the network database through instructions. Send qualified instructions to the lottery system, for example, only the first one hundred of the lottery information will be selected according to the sending time. Further, through the computer lottery system, a plurality of winners are randomly selected from the first hundred pieces of lottery information.
  • the lottery process needs to meet transparency and fairness, if the network database receives more instructions, it will continue to send and receive instructions, and frequent instruction sending and receiving will cause the stability of the system to deteriorate, or the server In the process of communicating with the mobile terminal, the instructions may be lost due to the instability of the network. However, if the instruction is in the waiting stage due to incomplete instructions, it will make the entire instruction match take too much time and reduce the efficiency of the entire instruction match.
  • the embodiments of the present application provide a user instruction matching method, device, computer equipment, and storage medium to solve the problem of low user instruction matching efficiency.
  • a user instruction matching method includes:
  • the target instruction information or the random instruction information of each participant is matched with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  • a user instruction matching device includes:
  • Participant information acquisition module which is used to acquire target instruction information of participants
  • a target instruction information judging module configured to determine whether the target instruction information of all the participants is obtained within a valid time
  • a random instruction information allocation module configured to allocate random instruction information to participants who have not obtained the target instruction information if the target instruction information of all the participants has not been obtained within a valid time
  • a decision instruction information acquisition module configured to obtain a gesture picture of a decision maker, and identify the gesture picture of the decision maker, to obtain the decision instruction information of the decision maker;
  • the instruction matching result acquisition module is configured to match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the information of each participant. Instruction match result.
  • a computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor performs the following steps:
  • One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
  • FIG. 1 is a schematic diagram of an application environment of a user instruction matching method according to an embodiment of the present application
  • FIG. 2 is an example diagram of a user instruction matching method according to an embodiment of the present application.
  • FIG. 3 is another example diagram of a user instruction matching method according to an embodiment of the present application.
  • FIG. 4 is another example diagram of a user instruction matching method in an embodiment of the present application.
  • FIG. 5 is another example diagram of a user instruction matching method in an embodiment of the present application.
  • FIG. 6 is another example diagram of a user instruction matching method according to an embodiment of the present application.
  • FIG. 7 is another example diagram of a user instruction matching method according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a user instruction matching device according to an embodiment of the present application.
  • FIG. 9 is another schematic block diagram of a user instruction matching device according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a computer device according to an embodiment of the present application.
  • the user instruction matching method provided in this application can be applied in the application environment shown in FIG. 1, in which a client (computer device) and an image acquisition terminal communicate with a server through a network, respectively.
  • the client sends the target instruction information of the participant to the server.
  • the server controls the image acquisition terminal to obtain the gesture picture of the decision maker, and processes the instruction matching result of the participant.
  • the client computer device
  • the client may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the image acquisition terminal may be, but is not limited to, a video camera, a camera, a scanner, or other equipment with a photographing function.
  • the server can be implemented by an independent server or a server cluster composed of multiple servers.
  • a method for matching user instructions is provided.
  • the method is applied to the server in FIG. 1 as an example, and includes the following steps:
  • the target instruction information refers to the generation of instruction information based on the instruction input by the participant.
  • the target instruction information is gesture instruction information, wherein the gesture instruction information is instruction information representing different gesture actions, such as: scissors, rock, or cloth, or gesture actions representing different numbers, such as: 1, 2, 3, 4 or 5.
  • the client establishes a connection with the server. After the connection is successful, the participant inputs target instruction information through the client, and the client then sends the target instruction information entered by the participant through the client to the server, and the server obtains To get the target instruction information of the participant.
  • S20 Determine whether the target instruction information of all participants is obtained within the valid time.
  • the effective time refers to a time limit for receiving the target instruction information, and is a preset time, which can be adjusted according to actual needs, such as 1 minute, 2 minutes, or 5 minutes.
  • the starting time point of the valid time can be set to the time point when the server obtains the target instruction information of the first participant, or the time point when a specific trigger instruction is received as the starting time point of the valid time.
  • the server will obtain the personal information of all participants in advance, and the personal information may include identity information, participant names, and contact information.
  • the identity information may be the employee number, ID card number, mobile phone number of the participant, or other unique information that can identify the participant. Understandably, the identity information may be one item or at least two items.
  • the identity information is an identification number, or the identity information is an identification number and a mobile phone number.
  • the contact information refers to information that can communicate with the participants.
  • the contact information may be a mobile phone number, a WeChat signal, or an IP address.
  • the personal information of all participants can be generated into a participant information data table, and a target instruction information field is added to the participant information data table.
  • the server After the server obtains the target instruction information of the participants, it The participant's target instruction information is stored in the corresponding position in the participant information data table. In this way, by querying and counting the participant information data table, it can be determined whether the target instruction information of all participants is obtained within the valid time.
  • the target instruction information of each participant is preset to an initial value, and the initial value may be a number, a letter, a symbol, or other computer-recognizable characters.
  • the initial values of all participants are set to the same, such as 0, none, or left blank.
  • the server After obtaining the target instruction information of each participant, the server will update the corresponding position of the participant information data table.
  • the number of initial values in the target instruction information field in the participant information data table can be counted. If the number of initial values is 0, it means that the target instruction information of all participants has been obtained. If the number of initial values is not 0, it means that target instruction information of all participants has not been obtained.
  • the target instruction information of a participant is not obtained, random instruction information is allocated to the participant who has not obtained the target instruction information.
  • the random instruction information refers to instruction information generated by a random function.
  • the server can calibrate the three types of target instruction information with 1, 2, and 3 respectively, and then fail to obtain the target instruction for each of the valid time.
  • the participants of the information use the random function rand () to randomly generate integers of 1-3 to obtain the random instruction information of the participants who did not obtain the target instruction information.
  • S40 Obtain a gesture picture of the decision maker, and recognize the gesture picture of the decision maker, and obtain decision information of the decision maker.
  • a decision maker refers to a user who provides a gesture picture to assist in matching the participants' instructions. After the effective time is reached, the gesture picture of the decision maker begins to be acquired. Specifically, the gesture picture of the decision maker can be collected through an image acquisition terminal, which can be a video camera, a camera, a scanner, or another device with a photographing function .
  • the image acquisition terminal After the image acquisition terminal obtains the instruction for acquiring the current gesture from the server, the image acquisition terminal acquires the image of the decision maker's location, and then sends the image of the decision maker's location to the server.
  • the server After the server obtains the image of the decision-maker's location, it can obtain a gesture-picture of the decision-maker by taking a screenshot.
  • the server After the server obtains the gesture picture of the decision maker, it detects the gesture picture, extracts the gesture area from the gesture picture of the decision maker, obtains the gesture area picture, and enters the gesture area picture into a pre-trained gesture picture recognition model. Identify and output decision information of decision makers. Understandably, the decision instruction information is also instruction information representing different gesture actions, and the decision instruction information corresponds to the target instruction information. If the target instruction information represents scissors, stone, or cloth, the decision instruction information also represents scissors, Stone or cloth.
  • S50 Match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  • the mapping relationship table is a preset table, and the mapping relationship table can be matched with the decision instruction information of the decision maker according to the participant's target instruction information or random instruction information, and the corresponding relationship can be found in the mapping relationship table. Instruction match result.
  • the target instruction information of the participants is obtained first. If the target instruction information of all participants is not obtained within the valid time, the participants who have not obtained the target instruction information are assigned random instruction information, which can avoid subsequent follow-up. Participants who have not obtained the target instruction information cannot obtain a matching instruction result. Then, the gesture picture of the decision maker is obtained, and the gesture picture of the decision maker is identified, and the decision instruction information of the decision maker is obtained. The target instruction information or random instruction information of each participant is matched with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  • the user instruction matching method judges whether the target instruction information of all participants is obtained within a valid time, and assigns random instruction information to the participants who have not obtained the target instruction information to ensure that each participant can obtain an instruction matching result. Moreover, assigning random instruction information to participants who have not obtained the target instruction information can also ensure the fairness of the data, avoiding being in the waiting stage due to incomplete instructions, and improving the efficiency of user instruction matching.
  • step S10 obtaining target instruction information of a participant, specifically includes the following steps:
  • S11 Send a selection instruction to the client, and receive the identity information and initial instruction information of the participant returned by the client.
  • the initial instruction information refers to instruction information input by a participant through a client.
  • the server After the server connects with the client, the server sends a selection instruction link to the client.
  • the selection instruction link may be, but is not limited to, a lottery page, two-dimensional code, or public account.
  • the client After the client obtains the selection instruction link, the participant inputs identity information and initial instruction information through the client.
  • the client After the client obtains the identity information and initial instruction information input by the participant, the client sends the identity information and initial instruction information of the participant to the server.
  • this step further includes obtaining the name of the participant, and after obtaining the name of the participant, associating the name of the participant with the identity information, so that the participant's name can be added later when the information of the participant is required.
  • S12 Verify the identity information. If the identity information verification is successful, determine the initial instruction information as the target instruction information.
  • the server After obtaining the identity information of the participant, the server verifies the identity information of the participant. Specifically, after obtaining the identity information of the participants, the server sends a verification request to the client, and the participants need to verify their identity information. Specifically, the authentication can be performed by entering a verification password corresponding to the identity information. After receiving the verification password, the server matches the verification password with a pre-stored login password in the database. Password is the same), the identity information verification is successful. If the matching fails (that is, the authentication password and the login password are different), the authentication of the identity information fails.
  • the server will send a token to the corresponding client.
  • the valid time of the token can be set uniformly in advance, for example, setting the valid time and the valid time to be the same, or customize Set to another value.
  • the token is a string generated by the server.
  • the server As a token requested by the client, the server generates a token and returns the token to the client. It is necessary to bring this token to request data, and there is no need to verify identity information again, which improves the efficiency of subsequent user instruction matching.
  • the initial instruction information is determined as the target instruction information, which ensures that the user instruction matches safety.
  • the user instruction matching method After the step of obtaining target instruction information of the participants and before the step of determining whether the target instruction information of all participants is obtained within a valid time, the user instruction matching method It also includes the following steps:
  • S21 Determine whether the target instruction information of all participants is obtained within a preset time, wherein the preset time is less than the valid time.
  • the preset time is a time limit set according to the valid time, and the preset time is less than the valid time. For example, if the valid time is 5 minutes, the preset time can be set to 3 minutes or 4 minutes. By setting a preset time, it is judged in advance whether the target instruction information of all participants is obtained before the effective time is reached. The specific judgment method is similar to step S20, and is not repeated here.
  • contact information of participants who have not obtained target instruction information is obtained.
  • the contact information can also be obtained in the participant information data table.
  • the participant information data table When the participant information data table is generated, the participant information data table also includes the contact information of the participant.
  • S23 Send prompt information according to the contact information.
  • a prompt message is sent according to the contact information.
  • the prompt information is used to remind participants to send target instruction information as soon as possible.
  • the prompt information may further include a reason for failure in obtaining the target instruction information, for example, the target instruction information is not received, the target instruction information is invalid, or the identity information verification fails. In this way, it is convenient for participants to make targeted adjustments after receiving the prompt information, thereby improving acquisition efficiency.
  • the server communicates with the client through the TCP / IP protocol or the UDP protocol, and sends a prompt message to the participant who has not obtained the target instruction information through a specific data packet.
  • the meaning of the specific data packet is in each data packet.
  • the client receives the data packet with the prompt information After that, you can perform corresponding operations according to the prompt information.
  • step S40 is to obtain a gesture picture of a decision maker, identify the gesture picture of a decision maker, and obtain decision information of the decision maker, which specifically includes the following steps:
  • S41 Acquire a gesture picture of a decision maker, and capture a gesture area picture from the gesture picture.
  • the gesture picture of the decision maker is acquired. Since the gesture picture of the decision maker is obtained, the gesture picture may have a relatively large area, which is not conducive to subsequent recognition processing. Therefore, the gesture area needs to be extracted from the gesture picture to obtain a gesture area picture.
  • an edge detection algorithm can be used to obtain the edge image of the gesture picture, and then each knuckle point and two wrist points in the gesture picture are found according to the curvature of the edge image.
  • the edge detection algorithm may use a differential edge detection algorithm, a Sobel edge detection algorithm, or a Reborts edge detection algorithm.
  • a gesture region is obtained according to each knuckle point and two wrist points.
  • the fixed area may be a rectangle or a circle, and the fixed area includes a gesture area.
  • the fixed area is set to a circle, and the center of the circle is determined according to the two wrist points and one of the knuckle points, and then multiplied by a certain distance according to the distance between the wrist point and one of the knuckle points.
  • the radius of the circle is determined by the ratio of the ratio. The ratio can be set according to actual needs, and is not specifically limited here.
  • the gesture area picture is input into a gesture picture recognition model for recognition, and decision instruction information of a decision maker is obtained.
  • the output of the gesture recognition model can be used to obtain decision instruction information corresponding to the gesture zone picture.
  • the gesture picture recognition model is a pre-trained recognition model. Through the gesture picture recognition model, the types of pictures in the gesture area can be quickly identified, and the decision instruction information of the decision maker is output to facilitate subsequent matching.
  • the current gesture type is identified, and the decision instruction information of the decision maker is obtained accordingly, thereby improving the accuracy of gesture recognition Sex and efficiency.
  • the user instruction matching method before the step of inputting the gesture area picture into the gesture picture recognition model for recognition, the user instruction matching method further includes the following steps:
  • S421 Obtain original pictures, classify and mark each original picture to form a gesture training picture.
  • the original picture is a pre-collected picture containing different gestures.
  • Pictures of different gestures can be obtained through the camera, or can be obtained through the existing data set on the network.
  • classifying each original picture for example: "stone”, "scissors" or "cloth”.
  • each original image contains corresponding labeling data, and the original image containing the labeling data is used as a gesture training image.
  • S422 Use a gesture training picture to train the convolutional neural network model to obtain a gesture picture recognition model.
  • a gesture picture recognition model By inputting a gesture training picture into a convolutional neural network model for training, a gesture picture recognition model can be obtained.
  • the Convolutional Neural Network (CNN) model is a feed-forward neural network. Its artificial neurons can respond to a part of the surrounding cells in the coverage area, and are often applied to the processing of large images.
  • Convolutional neural networks usually include at least two non-linearly trainable convolutional layers, at least two non-linear pooling layers, and at least one fully connected layer, that is, including at least five hidden layers, in addition to an input layer and an output Floor.
  • the gesture picture recognition model obtained by training the convolutional neural network model through the gesture training pictures can more accurately classify the gesture training pictures.
  • the original training pictures of the current gesture are obtained, and then the convolutional neural network model is trained by using the gesture training pictures to obtain a gesture picture recognition model.
  • the current gesture picture is input to the gesture picture recognition model for recognition, and the current gesture type corresponding to the current gesture picture is obtained.
  • each original picture is classified and labeled to form a gesture training picture.
  • the convolutional neural network model is trained with gesture training pictures to obtain a gesture picture recognition model, which better guarantees the recognition efficiency and accuracy of subsequent gesture area pictures.
  • step S50 match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction of each participant.
  • the matching result includes the following steps:
  • S51 The target instruction information or random instruction information of each participant is converted into a participant label.
  • the participant label refers to the numerical or symbolized information obtained by converting the participant's target instruction information or random instruction information. For example, if the participant ’s target instruction information or random instruction information includes stones, scissors, and cloth, the three instruction information are correspondingly converted into numerical or symbolized information to facilitate subsequent processing, such as: “Stone” instruction
  • the mapping is “1"
  • the "scissors” instruction is mapped to "2”
  • the "cloth” instruction is mapped to "3".
  • the decision maker label refers to the numerical or symbolized information obtained by converting the decision instruction information of the decision maker. Understandably, the decision instruction information of the decision maker corresponds to the target instruction information or random instruction information of the participants, such as: stone, scissors, and cloth.
  • the specific conversion method is also the same as step S51, and is not repeated here.
  • mapping relationship table After obtaining the participant labels and decision maker labels, matching is performed through the mapping relationship table, and the instruction matching result of each participant can be obtained. Specifically, a mapping table between participant labels and decision maker labels can be set in advance, and corresponding instruction matching results can be queried in the mapping relationship table according to different participant labels and different decision maker labels. For example: if the match result of the instruction includes three cases of win, draw, and negative, X, Y, and Z can be used to represent the three cases, respectively.
  • the instruction matching result of each participant is obtained by converting the corresponding instruction information into a label, and then obtaining the instruction matching result of each participant through a preset mapping relationship table, thereby improving the efficiency of obtaining the instruction matching result.
  • a user instruction matching device corresponds to the user instruction matching method in the foregoing embodiment.
  • the user instruction matching device includes a participant information acquisition module 10, a target instruction information determination module 20, a random instruction information allocation module 30, a decision instruction information acquisition module 40, and an instruction matching result acquisition module 50.
  • the detailed description of each function module is as follows:
  • Participant information acquisition module 10 configured to acquire target instruction information of a participant
  • a target instruction information determining module 20 configured to determine whether the target instruction information of all participants has been obtained within a valid time
  • the random instruction information allocation module 30 is configured to allocate random instruction information to participants who have not obtained the target instruction information if the target instruction information of all participants has not been obtained within the valid time;
  • the decision instruction information obtaining module 40 is configured to obtain a gesture picture of a decision maker, and recognize a gesture picture of a decision maker, to obtain decision information of the decision maker;
  • the instruction matching result acquisition module 50 is configured to match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  • the participant information acquisition module 10 includes a participant information receiving unit and a target instruction information determination unit.
  • the participant information receiving unit is configured to send a selection instruction to the client, and receive the identity information and initial instruction information of the participant returned by the client.
  • the target instruction information determining unit is configured to verify identity information. If the identity information is successfully verified, the initial instruction information is determined as the target instruction information.
  • the user instruction matching device further includes a pre-judgment module 21, a contact information acquisition module 22, and a prompt information sending module 23.
  • the pre-judgment module 21 is configured to determine whether target instruction information of all participants is obtained within a preset time, wherein the preset time is less than the valid time.
  • the contact information acquisition module 22 is configured to acquire contact information of a participant who has not acquired the target instruction information if the target instruction information of all the participants has not been acquired within a preset time.
  • the prompt information sending module 23 is configured to send prompt information according to the contact information.
  • the decision instruction information acquisition module 40 includes a gesture area picture acquisition unit and a decision instruction information acquisition unit.
  • a gesture area picture obtaining unit is used to obtain a gesture picture of a decision maker, and capture a gesture area picture from the gesture picture.
  • a decision instruction information acquisition unit is configured to input a gesture area picture into a gesture picture recognition model for recognition, and obtain decision information of a decision maker.
  • the decision instruction information acquisition unit includes a gesture training picture acquisition subunit and a gesture picture recognition model acquisition subunit.
  • a gesture training picture acquisition subunit is used to obtain original pictures, classify each original picture, and form a gesture training picture.
  • a gesture picture recognition model acquisition subunit is used to train a convolutional neural network model with a gesture training picture to obtain a gesture picture recognition model.
  • the instruction matching result acquisition module 50 includes a participant label conversion unit, a decision maker label conversion unit, and an instruction matching result acquisition unit.
  • the participant label conversion unit is configured to convert target instruction information or random instruction information of each participant into a participant label.
  • a decision maker label conversion unit is used to convert decision information of a decision maker into a decision maker label.
  • the instruction matching result obtaining unit is configured to match each participant label and decision maker label through a mapping relationship table to obtain an instruction matching result of each participant.
  • Each module in the above-mentioned user instruction matching device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor calls and performs the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for operating the operating system and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer equipment is used to store target instruction information of participants, gesture pictures of decision makers, and gesture picture recognition models.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a user instruction matching method.
  • a computer device including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • one or more non-volatile readable storage media storing computer-readable instructions are provided, and when the computer-readable instructions are executed by one or more processors, the one or more Each processor performs the following steps:
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A user instruction matching method and device, a computer device and a storage medium, the method comprising: first, acquiring target instruction information of a participant (S10); if the target instruction information of all participants is not obtained within an effective period of time, allocating random instruction information to participants who do not obtain the target instruction information (S30); next, acquiring a gesture picture of a decision maker, and recognizing the gesture picture of the decision maker so as to obtain decision instruction information of the decision maker (S40); and matching the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker by means of a mapping relation table, so as to obtain an instruction matching result of each participant (S50). Random instruction information is allocated to participants who do not obtain the target instruction information, which may ensure the fairness of the data and avoids a waiting stage due to incomplete instruction acquisition, thereby improving the efficiency of user instruction matching.

Description

用户指令匹配方法、装置、计算机设备及存储介质User instruction matching method, device, computer equipment and storage medium
本申请以2018年07月27日提交的申请号为201810842495.0,名称为“用户指令匹配方法、装置、计算机设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This application is based on a Chinese invention patent application filed on July 27, 2018 with application number 201810842495.0 and entitled "User instruction matching method, device, computer equipment and storage medium", and claims its priority.
技术领域Technical field
本申请涉及数据处理领域,尤其涉及一种用户指令匹配方法、装置、计算机设备及存储介质。The present application relates to the field of data processing, and in particular, to a user instruction matching method, device, computer device, and storage medium.
背景技术Background technique
传统的抽奖方法通过抽奖人员手动抽取,随着社会的发展,抽奖形式开始网络化、自动化,一般是将各个用户的抽奖信息通过指令的方式收集到网络数据库端,网络数据库端经过一定的信息筛选将符合条件的指令发送至抽奖系统,例如根据发送时间,只选出抽奖信息的前一百条。进一步,通过电脑抽奖系统,随机的从所述前一百条抽奖信息中选出若干名中奖者。The traditional lottery method is manually drawn by the lottery staff. With the development of the society, the lottery form has begun to be networked and automated. Generally, the lottery information of each user is collected to the network database through instructions. Send qualified instructions to the lottery system, for example, only the first one hundred of the lottery information will be selected according to the sending time. Further, through the computer lottery system, a plurality of winners are randomly selected from the first hundred pieces of lottery information.
由于抽奖的过程需要满足透明性和公平性,如果网络数据库接收到的指令比较多,就会持续不断地发送和接收指令,而频繁的指令发送和接收会导致系统的稳定性变差,或者服务器和移动终端在通信的过程中,因为网络的不稳定,都有可能造成指令的丢失。而如果由于指令不完整而一直处于等待阶段的话,又会使得整个指令匹配花费太多的时间,降低了整个指令匹配的效率。Because the lottery process needs to meet transparency and fairness, if the network database receives more instructions, it will continue to send and receive instructions, and frequent instruction sending and receiving will cause the stability of the system to deteriorate, or the server In the process of communicating with the mobile terminal, the instructions may be lost due to the instability of the network. However, if the instruction is in the waiting stage due to incomplete instructions, it will make the entire instruction match take too much time and reduce the efficiency of the entire instruction match.
发明内容Summary of the Invention
本申请实施例提供一种用户指令匹配方法、装置、计算机设备及存储介质,以解决用户指令匹配效率较低的问题。The embodiments of the present application provide a user instruction matching method, device, computer equipment, and storage medium to solve the problem of low user instruction matching efficiency.
一种用户指令匹配方法,包括:A user instruction matching method includes:
获取参与者的目标指令信息;Obtain target instruction information of participants;
判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策 指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。The target instruction information or the random instruction information of each participant is matched with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
一种用户指令匹配装置,包括:A user instruction matching device includes:
参与者信息获取模块,用于获取参与者的目标指令信息;Participant information acquisition module, which is used to acquire target instruction information of participants;
目标指令信息判断模块,用于判断在有效时间内是否获取到所有所述参与者的目标指令信息;A target instruction information judging module, configured to determine whether the target instruction information of all the participants is obtained within a valid time;
随机指令信息分配模块,用于若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;A random instruction information allocation module, configured to allocate random instruction information to participants who have not obtained the target instruction information if the target instruction information of all the participants has not been obtained within a valid time;
决策指令信息获取模块,用于获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;A decision instruction information acquisition module, configured to obtain a gesture picture of a decision maker, and identify the gesture picture of the decision maker, to obtain the decision instruction information of the decision maker;
指令匹配结果获取模块,用于将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。The instruction matching result acquisition module is configured to match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the information of each participant. Instruction match result.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行如下步骤:A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. The processor performs the following steps:
获取参与者的目标指令信息;Obtain target instruction information of participants;
判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
获取参与者的目标指令信息;Obtain target instruction information of participants;
判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below, and other features and advantages of the present application will become apparent from the description, the drawings, and the claims.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solution of the embodiments of the present application more clearly, the drawings used in the description of the embodiments of the application will be briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请一实施例中用户指令匹配方法的一应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a user instruction matching method according to an embodiment of the present application; FIG.
图2是本申请一实施例中用户指令匹配方法的一示例图;2 is an example diagram of a user instruction matching method according to an embodiment of the present application;
图3是本申请一实施例中用户指令匹配方法的另一示例图;FIG. 3 is another example diagram of a user instruction matching method according to an embodiment of the present application; FIG.
图4是本申请一实施例中用户指令匹配方法的另一示例图;FIG. 4 is another example diagram of a user instruction matching method in an embodiment of the present application; FIG.
图5是本申请一实施例中用户指令匹配方法的另一示例图;FIG. 5 is another example diagram of a user instruction matching method in an embodiment of the present application; FIG.
图6是本申请一实施例中用户指令匹配方法的另一示例图;FIG. 6 is another example diagram of a user instruction matching method according to an embodiment of the present application; FIG.
图7是本申请一实施例中用户指令匹配方法的另一示例图;FIG. 7 is another example diagram of a user instruction matching method according to an embodiment of the present application; FIG.
图8是本申请一实施例中用户指令匹配装置的一原理框图;8 is a schematic block diagram of a user instruction matching device according to an embodiment of the present application;
图9是本申请一实施例中用户指令匹配装置的另一原理框图;9 is another schematic block diagram of a user instruction matching device according to an embodiment of the present application;
图10是本申请一实施例中计算机设备的一示意图。FIG. 10 is a schematic diagram of a computer device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In the following, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请提供的用户指令匹配方法,可应用在如图1的应用环境中,其中,客户端(计算机设备)和图像采集端分别通过网络与服务端进行通信。客户端发送参与者的目标指令信息到服务端,服务端获取到参与者的目标指令信息后,控制图像采集端获取决策者的手势图片,经过处理得到参与者的指令匹配结果。其中,客户端(计算机设备)可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。图像采集端可以但不限于是摄像机、照相机、扫描仪或其他带有拍照功能的设备。服务端可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The user instruction matching method provided in this application can be applied in the application environment shown in FIG. 1, in which a client (computer device) and an image acquisition terminal communicate with a server through a network, respectively. The client sends the target instruction information of the participant to the server. After the server obtains the target instruction information of the participant, the server controls the image acquisition terminal to obtain the gesture picture of the decision maker, and processes the instruction matching result of the participant. The client (computer device) may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The image acquisition terminal may be, but is not limited to, a video camera, a camera, a scanner, or other equipment with a photographing function. The server can be implemented by an independent server or a server cluster composed of multiple servers.
在一实施例中,如图2所示,提供一种用户指令匹配方法,以该方法应用在图1中的服务端为例进行说明,包括如下步骤:In an embodiment, as shown in FIG. 2, a method for matching user instructions is provided. The method is applied to the server in FIG. 1 as an example, and includes the following steps:
S10:获取参与者的目标指令信息。S10: Obtain target instruction information of the participant.
其中,参与者是指需要进行指令匹配的用户。目标指令信息是指根据参与者输入的指令而生成指令信息。优选地,目标指令信息为手势指令信息,其中,手势指令信息即是代表不同手势动作的指令信息,例如:剪刀、石头或布,又或者是代表不同数字的手势动作,例如:1、2、3、4或5。Participants refer to users who need to perform instruction matching. The target instruction information refers to the generation of instruction information based on the instruction input by the participant. Preferably, the target instruction information is gesture instruction information, wherein the gesture instruction information is instruction information representing different gesture actions, such as: scissors, rock, or cloth, or gesture actions representing different numbers, such as: 1, 2, 3, 4 or 5.
在一个具体实施方式中,客户端与服务端建立连接,连接成功之后参与者通过客户端输入目标指令信息,客户端随即将参与者通过客户端输入的目标指令信息发送至服务端,服务端获取到获取参与者的目标指令信息。In a specific embodiment, the client establishes a connection with the server. After the connection is successful, the participant inputs target instruction information through the client, and the client then sends the target instruction information entered by the participant through the client to the server, and the server obtains To get the target instruction information of the participant.
S20:判断在有效时间内是否获取到所有参与者的目标指令信息。S20: Determine whether the target instruction information of all participants is obtained within the valid time.
其中,有效时间是指目标指令信息接收的时限,是一个预设的时间,具体可以根据实际需要来调整,例如为1分钟、2分钟或者5分钟等。通过设置有效时间来对目标指令信息接收的时限进行限定,可以提高整个指令匹配的效率。该有效时间的起始时间点可以设置为服务端获取到第一个参与者的目标指令信息的时间点,或者在接收到一个特定的触发指令的时间点作为该有效时间的起始时间点。The effective time refers to a time limit for receiving the target instruction information, and is a preset time, which can be adjusted according to actual needs, such as 1 minute, 2 minutes, or 5 minutes. By setting a valid time to limit the time limit for receiving target instruction information, the efficiency of the entire instruction matching can be improved. The starting time point of the valid time can be set to the time point when the server obtains the target instruction information of the first participant, or the time point when a specific trigger instruction is received as the starting time point of the valid time.
在本实施例中,服务端会预先获取到所有参与者的个人信息,个人信息可以包括身份信息、参与者姓名和联系信息等。身份信息可以是参与者的员工号、身份证号、手机号码或其他唯一可识别参与者身份的信息。可以理解地,身份信息可以为一项也可以为至少两项。例如,身份信息为身份证号,或者身份信息为身份证号和手机号码。联系信息是指可以和参与者进行通信的信息,可选地,联系信息可以为手机号码、微信号或者IP地址等。具体地,可以将所有参与者的个人信息生成一个参与者信息数据表,并且在这个参与者信息数据表中增加目标指令信息字段,服务端在获取到参与者的目标指令信息之后,就将该参与者的目标指令信息存储到参与者信息数据表中的对应位置中。如此,通过查询和统计该参与者信息数据表,就可以判断在有效时间内是否获取到所有参与者的目标指令信息。In this embodiment, the server will obtain the personal information of all participants in advance, and the personal information may include identity information, participant names, and contact information. The identity information may be the employee number, ID card number, mobile phone number of the participant, or other unique information that can identify the participant. Understandably, the identity information may be one item or at least two items. For example, the identity information is an identification number, or the identity information is an identification number and a mobile phone number. The contact information refers to information that can communicate with the participants. Optionally, the contact information may be a mobile phone number, a WeChat signal, or an IP address. Specifically, the personal information of all participants can be generated into a participant information data table, and a target instruction information field is added to the participant information data table. After the server obtains the target instruction information of the participants, it The participant's target instruction information is stored in the corresponding position in the participant information data table. In this way, by querying and counting the participant information data table, it can be determined whether the target instruction information of all participants is obtained within the valid time.
具体地,在生成参与者信息数据表时,将每一参与者的目标指令信息都预设为一个初始值,该初始值可以为数字、字母、符号或其他计算机可识别的字符。而所有参与者的初始值都设置为相同,例如0、none或者留空等。服务端在获取到每一参与者的目标指令信息之后都会对参与者信息数据表的对应位置进行更新。Specifically, when generating the participant information data table, the target instruction information of each participant is preset to an initial value, and the initial value may be a number, a letter, a symbol, or other computer-recognizable characters. The initial values of all participants are set to the same, such as 0, none, or left blank. After obtaining the target instruction information of each participant, the server will update the corresponding position of the participant information data table.
在有效时间到达时,可以通过统计参与者信息数据表中目标指令信息字段中初始值的 数量,若初始值的数量为0,则说明已经获取到所有参与者的目标指令信息。若初始值的数量不为0,则说明没有获取到所有参与者的目标指令信息。When the valid time arrives, the number of initial values in the target instruction information field in the participant information data table can be counted. If the number of initial values is 0, it means that the target instruction information of all participants has been obtained. If the number of initial values is not 0, it means that target instruction information of all participants has not been obtained.
S30:若在有效时间内没有获取到所有参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息。S30: If the target instruction information of all participants is not obtained within the valid time, the participants who have not obtained the target instruction information are allocated random instruction information.
在有效时间到达时,由于网络的延迟或者系统的不稳定,有可能会存在信息延迟或遗漏的现象。若有参与者的目标指令信息没有获取到,则为没有获取到目标指令信息的参与者分配随机指令信息。其中,随机指令信息是指通过随机函数的方式来生成的指令信息。示例性地,若目标指令信息为剪刀、石头和布三种,则服务端可以将这三种目标指令信息分别用1,2,3进行标定,然后对在有效时间内每一个没有获取到目标指令信息的参与者,用随机函数rand()随机生成1-3的整数,得到没有获取到目标指令信息的参与者的随机指令信息。When the valid time arrives, there may be a delay or omission of information due to network delay or system instability. If the target instruction information of a participant is not obtained, random instruction information is allocated to the participant who has not obtained the target instruction information. The random instruction information refers to instruction information generated by a random function. Exemplarily, if the target instruction information is three types of scissors, rock, and cloth, the server can calibrate the three types of target instruction information with 1, 2, and 3 respectively, and then fail to obtain the target instruction for each of the valid time. The participants of the information use the random function rand () to randomly generate integers of 1-3 to obtain the random instruction information of the participants who did not obtain the target instruction information.
S40:获取决策者的手势图片,并识别决策者的手势图片,得到决策者的决策指令信息。S40: Obtain a gesture picture of the decision maker, and recognize the gesture picture of the decision maker, and obtain decision information of the decision maker.
其中,决策者是指提供手势图片,辅助进行参与者指令匹配的用户。当有效时间达到之后,开始获取决策者的手势图片,具体地,可以通过图像采集端来采集决策者的手势图片,该图像采集端可以为摄像机、照相机、扫描仪或其他带有拍照功能的设备。Among them, a decision maker refers to a user who provides a gesture picture to assist in matching the participants' instructions. After the effective time is reached, the gesture picture of the decision maker begins to be acquired. Specifically, the gesture picture of the decision maker can be collected through an image acquisition terminal, which can be a video camera, a camera, a scanner, or another device with a photographing function .
当图像采集端得到服务端发出的获取当前手势的指令之后,图像采集端采集决策者所在位置的图像,然后发送该决策者所在位置的图像至服务端。服务端获取到决策者所在位置的图像之后,可以通过截屏的方式获取决策者的手势图片。服务端获取到决策者的手势图片之后,检测手势图片,将手势区域从决策者的手势图片中截取出来,得到手势区域图片,并将手势区域图片输入到预先训练好的手势图片识别模型中进行识别,输出决策者的决策指令信息。可以理解地,决策指令信息也是代表不同手势动作的指令信息,并且决策指令信息是和目标指令信息对应的,若目标指令信息代表的是剪刀、石头或布,则决策指令信息代表的也是剪刀、石头或布。After the image acquisition terminal obtains the instruction for acquiring the current gesture from the server, the image acquisition terminal acquires the image of the decision maker's location, and then sends the image of the decision maker's location to the server. After the server obtains the image of the decision-maker's location, it can obtain a gesture-picture of the decision-maker by taking a screenshot. After the server obtains the gesture picture of the decision maker, it detects the gesture picture, extracts the gesture area from the gesture picture of the decision maker, obtains the gesture area picture, and enters the gesture area picture into a pre-trained gesture picture recognition model. Identify and output decision information of decision makers. Understandably, the decision instruction information is also instruction information representing different gesture actions, and the decision instruction information corresponds to the target instruction information. If the target instruction information represents scissors, stone, or cloth, the decision instruction information also represents scissors, Stone or cloth.
S50:将每一参与者的目标指令信息或者随机指令信息,与决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。S50: Match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
其中,映射关系表是一个预设的表格,通过该映射关系表可以根据参与者的目标指令信息或者随机指令信息,与决策者的决策指令信息进行匹配,并在映射关系表中查询到对应的指令匹配结果。The mapping relationship table is a preset table, and the mapping relationship table can be matched with the decision instruction information of the decision maker according to the participant's target instruction information or random instruction information, and the corresponding relationship can be found in the mapping relationship table. Instruction match result.
在该步骤中,通过将每一参与者的目标指令信息或者随机指令信息,与决策者的决策 指令信息通过映射关系表进行匹配,就可以得到每一参与者的指令匹配结果。In this step, by matching the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table, the instruction matching result of each participant can be obtained.
在本实施例中,首先获取参与者的目标指令信息,若在有效时间内没有获取到所有参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息,可以避免后续没有获取到目标指令信息的参与者没法得到一个匹配指令结果。继而获取决策者的手势图片,并识别决策者的手势图片,得到决策者的决策指令信息。将每一参与者的目标指令信息或者随机指令信息,与决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。该用户指令匹配方法通过判断在有效时间内是否获取到所有参与者的目标指令信息,并为没有获取到目标指令信息的参与者分配随机指令信息,保证每一参与者都可以得到一指令匹配结果,而且为没有获取到目标指令信息的参与者分配随机指令信息也可以保证数据的公平性,也避免了由于指令不完整而一直处于等待阶段,提高了用户指令匹配的效率。In this embodiment, the target instruction information of the participants is obtained first. If the target instruction information of all participants is not obtained within the valid time, the participants who have not obtained the target instruction information are assigned random instruction information, which can avoid subsequent follow-up. Participants who have not obtained the target instruction information cannot obtain a matching instruction result. Then, the gesture picture of the decision maker is obtained, and the gesture picture of the decision maker is identified, and the decision instruction information of the decision maker is obtained. The target instruction information or random instruction information of each participant is matched with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant. The user instruction matching method judges whether the target instruction information of all participants is obtained within a valid time, and assigns random instruction information to the participants who have not obtained the target instruction information to ensure that each participant can obtain an instruction matching result. Moreover, assigning random instruction information to participants who have not obtained the target instruction information can also ensure the fairness of the data, avoiding being in the waiting stage due to incomplete instructions, and improving the efficiency of user instruction matching.
在一实施例中,如图3所示,步骤S10,获取参与者的目标指令信息,具体包括以下步骤:In an embodiment, as shown in FIG. 3, step S10, obtaining target instruction information of a participant, specifically includes the following steps:
S11:发送选择指令链接至客户端,接收客户端返回的参与者的身份信息和初始指令信息。S11: Send a selection instruction to the client, and receive the identity information and initial instruction information of the participant returned by the client.
其中,初始指令信息是指参与者通过客户端输入的指令信息。服务端与客户端连接后,服务端向客户端发送选择指令链接,该选择指令链接可以但不限于是一个抽奖页面、二维码或者公众号。客户端在获取到该选择指令链接之后,参与者通过客户端输入身份信息和初始指令信息。客户端在获取到参与者输入的身份信息和初始指令信息之后,将参与者的身份信息和初始指令信息发送至服务端。The initial instruction information refers to instruction information input by a participant through a client. After the server connects with the client, the server sends a selection instruction link to the client. The selection instruction link may be, but is not limited to, a lottery page, two-dimensional code, or public account. After the client obtains the selection instruction link, the participant inputs identity information and initial instruction information through the client. After the client obtains the identity information and initial instruction information input by the participant, the client sends the identity information and initial instruction information of the participant to the server.
优选地,该步骤还包括获取参与者的姓名,在获取参与者的姓名之后,将参与者的姓名和身份信息进行关联,以便后续在需要进行显示参与者的信息时可以增加参与者的姓名这一显示项,以更好地辨识参与者的身份。Preferably, this step further includes obtaining the name of the participant, and after obtaining the name of the participant, associating the name of the participant with the identity information, so that the participant's name can be added later when the information of the participant is required. One display item to better identify participants.
S12:验证身份信息,若身份信息验证成功,则将初始指令信息确定为目标指令信息。S12: Verify the identity information. If the identity information verification is successful, determine the initial instruction information as the target instruction information.
服务端在获取到参与者的身份信息后,会对参与者的身份信息进行验证。具体地,服务端在获取到参与者的身份信息之后,会发送验证请求到客户端,参与者需要对其身份信息进行验证。具体地,可以通过输入一个和身份信息对应的验证密码进行验证,服务端在接收到该验证密码之后,将该验证密码和数据库中预存的登录密码进行匹配,若匹配成功(即验证密码和登录密码相同),则身份信息验证成功。若匹配失败(即验证密码和登录密码不相同),则身份信息验证失败。After obtaining the identity information of the participant, the server verifies the identity information of the participant. Specifically, after obtaining the identity information of the participants, the server sends a verification request to the client, and the participants need to verify their identity information. Specifically, the authentication can be performed by entering a verification password corresponding to the identity information. After receiving the verification password, the server matches the verification password with a pre-stored login password in the database. Password is the same), the identity information verification is successful. If the matching fails (that is, the authentication password and the login password are different), the authentication of the identity information fails.
进一步地,若身份信息认证通过,服务端返会给对应的客户端发送一个令牌(token),该token的生效时间可以预先统一设置,例如,设置该生效时间和有效时间相同,或者自定义设置为其他数值。token是服务端生成的一串字符串,作为客户端请求服务端的一个令牌,当第一次身份信息认证通过后,服务端生成一个token并将此token返回给客户端,之后客户端端只需带上这个token前来请求数据即可,无需再次进行身份信息验证,提高了后续用户指令匹配的效率。Further, if the authentication of the identity information is passed, the server will send a token to the corresponding client. The valid time of the token can be set uniformly in advance, for example, setting the valid time and the valid time to be the same, or customize Set to another value. The token is a string generated by the server. As a token requested by the client, the server generates a token and returns the token to the client. It is necessary to bring this token to request data, and there is no need to verify identity information again, which improves the efficiency of subsequent user instruction matching.
在本实施例中,在获取参与者的目标指令信息的时候,对参与者的身份信息进行验证,在身份信息验证成功之后,再将初始指令信息确定为目标指令信息,保证了用户指令匹配的安全性。In this embodiment, when the target instruction information of the participant is obtained, the identity information of the participant is verified, and after the identity information verification is successful, the initial instruction information is determined as the target instruction information, which ensures that the user instruction matches safety.
在一实施例中,如图4所示,在获取参与者的目标指令信息的步骤之后,并且在判断在有效时间内是否获取到所有参与者的目标指令信息的步骤之前,该用户指令匹配方法还具体包括以下步骤:In an embodiment, as shown in FIG. 4, after the step of obtaining target instruction information of the participants and before the step of determining whether the target instruction information of all participants is obtained within a valid time, the user instruction matching method It also includes the following steps:
S21:判断在预设时间内是否获取到所有参与者的目标指令信息,其中,预设时间小于有效时间。S21: Determine whether the target instruction information of all participants is obtained within a preset time, wherein the preset time is less than the valid time.
其中,预设时间是根据有效时间而设定的一个时限,该预设时间小于有效时间。例如,若有效时间为5分钟,则可以设置预设时间为3分钟或者4分钟。通过设置预设时间,在有效时间到达之前,提前判断是否获取到所有参与者的目标指令信息。具体判断方式和步骤S20类似,在此不再赘述。The preset time is a time limit set according to the valid time, and the preset time is less than the valid time. For example, if the valid time is 5 minutes, the preset time can be set to 3 minutes or 4 minutes. By setting a preset time, it is judged in advance whether the target instruction information of all participants is obtained before the effective time is reached. The specific judgment method is similar to step S20, and is not repeated here.
S22:若在预设时间内没有获取到所有参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息。S22: If target instruction information of all participants is not obtained within a preset time, contact information of participants who have not obtained target instruction information is obtained.
如果在预设时间内没有获取到所有参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息。具体地,该联系信息也可以在参与者信息数据表中获取得到,在生成参与者信息数据表的时候,在该参与者信息数据表中也包含参与者的联系信息。If target instruction information of all participants is not obtained within a preset time, contact information of participants who have not obtained target instruction information is obtained. Specifically, the contact information can also be obtained in the participant information data table. When the participant information data table is generated, the participant information data table also includes the contact information of the participant.
S23:根据联系信息发送提示信息。S23: Send prompt information according to the contact information.
在获取到联系信息之后,根据联系信息发送提示信息。其中,提示信息用于提醒参与者尽快发送目标指令信息。具体地,提示信息还可以包括目标指令信息获取失败原因,例如:未收到目标指令信息、目标指令信息不合法或者身份信息验证不通过。如此,可以方便参与者在接收到该提示信息之后做出针对性地调整,提高获取效率。After the contact information is obtained, a prompt message is sent according to the contact information. The prompt information is used to remind participants to send target instruction information as soon as possible. Specifically, the prompt information may further include a reason for failure in obtaining the target instruction information, for example, the target instruction information is not received, the target instruction information is invalid, or the identity information verification fails. In this way, it is convenient for participants to make targeted adjustments after receiving the prompt information, thereby improving acquisition efficiency.
可选地,服务端通过TCP/IP协议或者UDP协议与客户端进行通信,通过特定数据包,向没有获取到目标指令信息的参与者发出提示信息,特定数据包的含义是每个数据包里面 都会有一个特定的字段表示该数据包的用途(例如发送交互内容,连接请求、警告或者提醒等功能),只需要把该字段设置成提示信息,当客户端收到带有提示信息的数据包之后,即可根据该提示信息进行对应的操作。Optionally, the server communicates with the client through the TCP / IP protocol or the UDP protocol, and sends a prompt message to the participant who has not obtained the target instruction information through a specific data packet. The meaning of the specific data packet is in each data packet. There will be a specific field indicating the purpose of the packet (such as sending interactive content, connection requests, warnings, or reminders). You only need to set this field to prompt information. When the client receives the data packet with the prompt information After that, you can perform corresponding operations according to the prompt information.
在本实施例中,通过设置一预设时间,该预设时间小于有效时间,在有效时间到达之前提前判断是否获取到所有参与者的目标指令信息,并为没有获取到目标指令信息的参与者发送提示信息,以更好地保证目标指令信息获取的效率。In this embodiment, by setting a preset time that is shorter than the valid time, it is determined in advance whether the target instruction information of all participants is obtained before the valid time reaches, and it is a participant who has not obtained the target instruction information. Send prompt information to better ensure the efficiency of target instruction information acquisition.
在一实施例中,如图5所示,步骤S40,获取决策者的手势图片,并识别决策者的手势图片,得到决策者的决策指令信息,具体包括以下步骤:In an embodiment, as shown in FIG. 5, step S40 is to obtain a gesture picture of a decision maker, identify the gesture picture of a decision maker, and obtain decision information of the decision maker, which specifically includes the following steps:
S41:获取决策者的手势图片,从手势图片中截取手势区域图片。S41: Acquire a gesture picture of a decision maker, and capture a gesture area picture from the gesture picture.
获取决策者的手势图片,由于获取的是决策者的手势图片,该手势图片可能囊括的区域比较大,不利于后续的识别处理。因此,需要将手势区域从手势图片中截取出来,得到手势区域图片。具体地,可以采用边缘检测算法获取手势图片的边缘图像,再根据边缘图像的曲率找到手势图片中的各个指关节点和两个手腕点。可选地,边缘检测算法可以采用差分边缘检测算法、Sobel边缘检测算法或者Reborts边缘检测算法等。在找到手势图片中的各个指关节点和两个手腕点之后,根据各个指关节点和两个手腕点来获取到手势区域,最后根据该手势区域得到手势区域图片。具体地,可以根据各个指关节点和两个手腕点来确定一个固定区域,该固定区域可以为一矩形或者圆形,该固定区域包括了手势区域。可选地,将该固定区域设置为一圆形,根据两个手腕点和其中的一个指关节点确定圆形的圆心,然后再根据手腕点和其中的一个指关节点的距离来乘以一定的比例来确定该圆形的半径,该比例可以根据实际需要来设定,在此不做具体限定。在获取到手势区域之后,可以使用imageclipper工具截取手势区域图片,imageclipper工具能快速的从手势图片中截取手势区域图片。The gesture picture of the decision maker is acquired. Since the gesture picture of the decision maker is obtained, the gesture picture may have a relatively large area, which is not conducive to subsequent recognition processing. Therefore, the gesture area needs to be extracted from the gesture picture to obtain a gesture area picture. Specifically, an edge detection algorithm can be used to obtain the edge image of the gesture picture, and then each knuckle point and two wrist points in the gesture picture are found according to the curvature of the edge image. Optionally, the edge detection algorithm may use a differential edge detection algorithm, a Sobel edge detection algorithm, or a Reborts edge detection algorithm. After finding each knuckle point and two wrist points in the gesture picture, a gesture region is obtained according to each knuckle point and two wrist points, and finally a gesture region picture is obtained according to the gesture region. Specifically, a fixed area may be determined according to each knuckle point and two wrist points. The fixed area may be a rectangle or a circle, and the fixed area includes a gesture area. Optionally, the fixed area is set to a circle, and the center of the circle is determined according to the two wrist points and one of the knuckle points, and then multiplied by a certain distance according to the distance between the wrist point and one of the knuckle points. The radius of the circle is determined by the ratio of the ratio. The ratio can be set according to actual needs, and is not specifically limited here. After obtaining the gesture area, you can use the imageclipper tool to capture the gesture area picture. The imageclipper tool can quickly capture the gesture area picture from the gesture picture.
S42:将手势区域图片输入手势图片识别模型进行识别,得到决策者的决策指令信息。S42: The gesture area picture is input into a gesture picture recognition model for recognition, and decision instruction information of a decision maker is obtained.
将手势区域图片输入到一个手势图片识别模型中,就可以通过该手势识别模型的输出结果获取到与手势区域图片对应的决策指令信息。其中,手势图片识别模型是预先训练好的一个识别模型,通过该手势图片识别模型,可以快速地对手势区域图片的类型进行识别,输出决策者的决策指令信息,以利于后续的匹配。By inputting a gesture area picture into a gesture picture recognition model, the output of the gesture recognition model can be used to obtain decision instruction information corresponding to the gesture zone picture. Among them, the gesture picture recognition model is a pre-trained recognition model. Through the gesture picture recognition model, the types of pictures in the gesture area can be quickly identified, and the decision instruction information of the decision maker is output to facilitate subsequent matching.
在本实施例中,通过截取包含手势区域的手势区域图片,再将手势区域图片输入手势图片识别模型中识别出当前手势类型,并据此得到决策者的决策指令信息,提高了手势识别的准确性和效率。In this embodiment, by capturing a gesture area picture including a gesture area, and then inputting the gesture area picture into the gesture picture recognition model, the current gesture type is identified, and the decision instruction information of the decision maker is obtained accordingly, thereby improving the accuracy of gesture recognition Sex and efficiency.
在一实施例中,如图6所示,在将手势区域图片输入手势图片识别模型进行识别的步骤之前,该用户指令匹配方法还包括以下步骤:In an embodiment, as shown in FIG. 6, before the step of inputting the gesture area picture into the gesture picture recognition model for recognition, the user instruction matching method further includes the following steps:
S421:获取原始图片,为每一原始图片进行分类标注,组成手势训练图片。S421: Obtain original pictures, classify and mark each original picture to form a gesture training picture.
其中,原始图片是预先采集的包含不同手势的图片。不同手势的图片可以通过摄像头获取得到,也可以通过网络上现有的数据集来获取。通过获取大量不同手势的原始图片,并为每一原始图片进行分类标注,例如:“石头”、“剪刀”或“布”。对原始图片进行分类标注完成之后,使得每一原始图片都包含了对应的标注数据,并将包含了标注数据的原始图片作为手势训练图片。Among them, the original picture is a pre-collected picture containing different gestures. Pictures of different gestures can be obtained through the camera, or can be obtained through the existing data set on the network. By obtaining a large number of original pictures of different gestures, and classifying each original picture, for example: "stone", "scissors" or "cloth". After classifying and labeling the original images, each original image contains corresponding labeling data, and the original image containing the labeling data is used as a gesture training image.
S422:采用手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型。S422: Use a gesture training picture to train the convolutional neural network model to obtain a gesture picture recognition model.
通过将手势训练图片输入到卷积神经网络模型中进行训练,即可得到手势图片识别模型。其中,卷积神经网络(Convolutional Neural Network,CNN)模型,是一种前馈神经网络,它的人工神经元可以响应一部分覆盖范围内的周围单元,常应用于大型图像的处理。卷积神经网络通常包括至少两个非线性可训练的卷积层,至少两个非线性的池化层和至少一个全连接层,即包括至少五个隐含层,此外还包括输入层和输出层。通过手势训练图片对卷积神经网络模型进行训练而获得的手势图片识别模型,可以更为准确地对手势训练图片进行分类。By inputting a gesture training picture into a convolutional neural network model for training, a gesture picture recognition model can be obtained. Among them, the Convolutional Neural Network (CNN) model is a feed-forward neural network. Its artificial neurons can respond to a part of the surrounding cells in the coverage area, and are often applied to the processing of large images. Convolutional neural networks usually include at least two non-linearly trainable convolutional layers, at least two non-linear pooling layers, and at least one fully connected layer, that is, including at least five hidden layers, in addition to an input layer and an output Floor. The gesture picture recognition model obtained by training the convolutional neural network model through the gesture training pictures can more accurately classify the gesture training pictures.
通过获取不同手势的原始图片,并对每一手势的原始图片进行分类标注,获取当前手势的原始训练图片,再采用手势训练图片对卷积神经网络模型进行训练,得到手势图片识别模型。将当前手势图片输入到手势图片识别模型中进行识别,获取当前手势图片对应的当前手势类型。By obtaining the original pictures of different gestures and classifying the original pictures of each gesture, the original training pictures of the current gesture are obtained, and then the convolutional neural network model is trained by using the gesture training pictures to obtain a gesture picture recognition model. The current gesture picture is input to the gesture picture recognition model for recognition, and the current gesture type corresponding to the current gesture picture is obtained.
在本实施例中,通过获取原始图片,每一原始图片进行分类标注,组成手势训练图片。并采用手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型,更好地保证了后续手势区域图片的识别效率和精度。In this embodiment, by acquiring original pictures, each original picture is classified and labeled to form a gesture training picture. Then, the convolutional neural network model is trained with gesture training pictures to obtain a gesture picture recognition model, which better guarantees the recognition efficiency and accuracy of subsequent gesture area pictures.
在一个实施例中,如图7所示,步骤S50,将每一参与者的目标指令信息或者随机指令信息,与决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果,具体包括以下步骤:In one embodiment, as shown in FIG. 7, step S50: match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction of each participant. The matching result includes the following steps:
S51:将每一参与者的目标指令信息或者随机指令信息转化为参与者标签。S51: The target instruction information or random instruction information of each participant is converted into a participant label.
其中,参与者标签是指将参与者的目标指令信息或者随机指令信息进行转化得到的数值化或符号化的信息。例如,参与者的目标指令信息或者随机指令信息包括石头、剪刀和布,则对应地将这三个指令信息转化为数值化或符号化的信息,以方便后续的处理,例如: 将“石头”指令映射为“1”,“剪刀”指令映射为“2”,“布”指令映射为“3”。The participant label refers to the numerical or symbolized information obtained by converting the participant's target instruction information or random instruction information. For example, if the participant ’s target instruction information or random instruction information includes stones, scissors, and cloth, the three instruction information are correspondingly converted into numerical or symbolized information to facilitate subsequent processing, such as: “Stone” instruction The mapping is "1", the "scissors" instruction is mapped to "2", and the "cloth" instruction is mapped to "3".
S52:将决策者的决策指令信息转化为决策者标签。S52: The decision instruction information of the decision maker is converted into a decision maker label.
其中,决策者标签是指将决策者的决策指令信息进行转化得到的数值化或符号化的信息。可以理解地,决策者的决策指令信息和参与者的目标指令信息或者随机指令信息是对应的,例如:石头、剪刀和布。具体转化方式也是和步骤S51相同的,这里不再赘述。Among them, the decision maker label refers to the numerical or symbolized information obtained by converting the decision instruction information of the decision maker. Understandably, the decision instruction information of the decision maker corresponds to the target instruction information or random instruction information of the participants, such as: stone, scissors, and cloth. The specific conversion method is also the same as step S51, and is not repeated here.
S53:将每一参与者标签和决策者标签通过映射关系表进行匹配,得到每一参与者的指令匹配结果。S53: Match each participant's label and decision-maker's label through a mapping relationship table to obtain the instruction matching result of each participant.
在得到参与者标签和决策者标签之后,通过映射关系表进行匹配,就可以得到每一参与者的指令匹配结果。具体地,可以预先设置一参与者标签和决策者标签的映射关系表,根据不同的参与者标签和不同的决策者标签就可以在映射关系表中查询到对应的指令匹配结果。例如:若指令匹配结果包括赢、平和负三种情况,则可以分别采用X、Y和Z代表这三种情况。After obtaining the participant labels and decision maker labels, matching is performed through the mapping relationship table, and the instruction matching result of each participant can be obtained. Specifically, a mapping table between participant labels and decision maker labels can be set in advance, and corresponding instruction matching results can be queried in the mapping relationship table according to different participant labels and different decision maker labels. For example: if the match result of the instruction includes three cases of win, draw, and negative, X, Y, and Z can be used to represent the three cases, respectively.
在这个实施方式中,通过将对应的指令信息转化为标签,然后通过预设的映射关系表获取到每一参与者的指令匹配结果,提高了指令匹配结果获取的效率。In this embodiment, the instruction matching result of each participant is obtained by converting the corresponding instruction information into a label, and then obtaining the instruction matching result of each participant through a preset mapping relationship table, thereby improving the efficiency of obtaining the instruction matching result.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
在一实施例中,提供一种用户指令匹配装置,该用户指令匹配装置与上述实施例中用户指令匹配方法一一对应。如图8所示,该用户指令匹配装置包括参与者信息获取模块10、目标指令信息判断模块20、随机指令信息分配模块30、决策指令信息获取模块40和指令匹配结果获取模块50。各功能模块详细说明如下:In one embodiment, a user instruction matching device is provided. The user instruction matching device corresponds to the user instruction matching method in the foregoing embodiment. As shown in FIG. 8, the user instruction matching device includes a participant information acquisition module 10, a target instruction information determination module 20, a random instruction information allocation module 30, a decision instruction information acquisition module 40, and an instruction matching result acquisition module 50. The detailed description of each function module is as follows:
参与者信息获取模块10,用于获取参与者的目标指令信息;Participant information acquisition module 10, configured to acquire target instruction information of a participant;
目标指令信息判断模块20,用于判断在有效时间内是否获取到所有参与者的目标指令信息;A target instruction information determining module 20, configured to determine whether the target instruction information of all participants has been obtained within a valid time;
随机指令信息分配模块30,用于若在有效时间内没有获取到所有参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;The random instruction information allocation module 30 is configured to allocate random instruction information to participants who have not obtained the target instruction information if the target instruction information of all participants has not been obtained within the valid time;
决策指令信息获取模块40,用于获取决策者的手势图片,并识别决策者的手势图片,得到决策者的决策指令信息;The decision instruction information obtaining module 40 is configured to obtain a gesture picture of a decision maker, and recognize a gesture picture of a decision maker, to obtain decision information of the decision maker;
指令匹配结果获取模块50,用于将每一参与者的目标指令信息或者随机指令信息,与决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。The instruction matching result acquisition module 50 is configured to match the target instruction information or random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
优选地,参与者信息获取模块10包括参与者信息接收单元和目标指令信息确定单元。Preferably, the participant information acquisition module 10 includes a participant information receiving unit and a target instruction information determination unit.
参与者信息接收单元,用于发送选择指令链接至客户端,接收客户端返回的参与者的身份信息和初始指令信息。The participant information receiving unit is configured to send a selection instruction to the client, and receive the identity information and initial instruction information of the participant returned by the client.
目标指令信息确定单元,用于验证身份信息,若身份信息验证成功,则将初始指令信息确定为目标指令信息。The target instruction information determining unit is configured to verify identity information. If the identity information is successfully verified, the initial instruction information is determined as the target instruction information.
优选地,该用户指令匹配装置还包括预先判断模块21、联系信息获取模块22和提示信息发送模块23。Preferably, the user instruction matching device further includes a pre-judgment module 21, a contact information acquisition module 22, and a prompt information sending module 23.
预先判断模块21,用于判断在预设时间内是否获取到所有参与者的目标指令信息,其中,预设时间小于所述有效时间。The pre-judgment module 21 is configured to determine whether target instruction information of all participants is obtained within a preset time, wherein the preset time is less than the valid time.
联系信息获取模块22,用于若在预设时间内没有获取到所有参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息。The contact information acquisition module 22 is configured to acquire contact information of a participant who has not acquired the target instruction information if the target instruction information of all the participants has not been acquired within a preset time.
提示信息发送模块23,用于根据联系信息发送提示信息。The prompt information sending module 23 is configured to send prompt information according to the contact information.
优选地,决策指令信息获取模块40包括手势区域图片获取单元和决策指令信息获取单元。Preferably, the decision instruction information acquisition module 40 includes a gesture area picture acquisition unit and a decision instruction information acquisition unit.
手势区域图片获取单元,用于获取决策者的手势图片,从手势图片中截取手势区域图片。A gesture area picture obtaining unit is used to obtain a gesture picture of a decision maker, and capture a gesture area picture from the gesture picture.
决策指令信息获取单元,用于将手势区域图片输入手势图片识别模型进行识别,得到决策者的决策指令信息。A decision instruction information acquisition unit is configured to input a gesture area picture into a gesture picture recognition model for recognition, and obtain decision information of a decision maker.
优选地,决策指令信息获取单元包括手势训练图片获取子单元和手势图片识别模型获取子单元。Preferably, the decision instruction information acquisition unit includes a gesture training picture acquisition subunit and a gesture picture recognition model acquisition subunit.
手势训练图片获取子单元,用于获取原始图片,为每一原始图片进行分类标注,组成手势训练图片。A gesture training picture acquisition subunit is used to obtain original pictures, classify each original picture, and form a gesture training picture.
手势图片识别模型获取子单元,用于采用手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型。A gesture picture recognition model acquisition subunit is used to train a convolutional neural network model with a gesture training picture to obtain a gesture picture recognition model.
优选地,指令匹配结果获取模块50包括参与者标签转化单元、决策者标签转化单元和指令匹配结果获取单元。Preferably, the instruction matching result acquisition module 50 includes a participant label conversion unit, a decision maker label conversion unit, and an instruction matching result acquisition unit.
参与者标签转化单元,用于将每一参与者的目标指令信息或者随机指令信息转化为参与者标签。The participant label conversion unit is configured to convert target instruction information or random instruction information of each participant into a participant label.
决策者标签转化单元,用于将决策者的决策指令信息转化为决策者标签。A decision maker label conversion unit is used to convert decision information of a decision maker into a decision maker label.
指令匹配结果获取单元,用于将每一参与者标签和决策者标签通过映射关系表进行匹配,得到每一参与者的指令匹配结果。The instruction matching result obtaining unit is configured to match each participant label and decision maker label through a mapping relationship table to obtain an instruction matching result of each participant.
关于用户指令匹配装置装置的具体限定可以参见上文中对于用户指令匹配方法的限定,在此不再赘述。上述用户指令匹配装置装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the user instruction matching device, refer to the foregoing limitation on the user instruction matching method, and details are not described herein again. Each module in the above-mentioned user instruction matching device may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor calls and performs the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储参与者的目标指令信息,决策者的手势图片以及手势图片识别模型。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种用户指令匹配方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions, and a database. The internal memory provides an environment for operating the operating system and computer-readable instructions in a non-volatile storage medium. The database of the computer equipment is used to store target instruction information of participants, gesture pictures of decision makers, and gesture picture recognition models. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by a processor to implement a user instruction matching method.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:In one embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:
获取参与者的目标指令信息;Obtain target instruction information of participants;
判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
在一个实施例中,提供了一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:In one embodiment, one or more non-volatile readable storage media storing computer-readable instructions are provided, and when the computer-readable instructions are executed by one or more processors, the one or more Each processor performs the following steps:
获取参与者的目标指令信息;Obtain target instruction information of participants;
判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by computer-readable instructions to instruct related hardware. The computer-readable instructions can be stored in a non-volatile computer. In the readable storage medium, the computer-readable instructions, when executed, may include the processes of the embodiments of the methods described above. Wherein, any reference to the memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the above-mentioned division of functional units and modules is used as an example. In practical applications, the above functions can be allocated by different functional units according to needs. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to describe the technical solution of the present application, but are not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of this application.

Claims (20)

  1. 一种用户指令匹配方法,其特征在于,包括:A user instruction matching method, comprising:
    获取参与者的目标指令信息;Obtain target instruction information of participants;
    判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
    若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
    获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
    将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  2. 如权利要求1所述的用户指令匹配方法,其特征在于,所述获取参与者的目标指令信息,具体包括:The user instruction matching method according to claim 1, wherein the acquiring the target instruction information of the participant specifically comprises:
    发送选择指令链接至客户端,接收所述客户端返回的参与者的身份信息和初始指令信息;Sending a selection instruction to the client, and receiving the identity information and initial instruction information of the participant returned by the client;
    验证所述身份信息,若所述身份信息验证成功,则将所述初始指令信息确定为目标指令信息。Verify the identity information, and if the identity information verification is successful, determine the initial instruction information as the target instruction information.
  3. 如权利要求1所述的用户指令匹配方法,其特征在于,在所述获取参与者的目标指令信息的步骤之后,并且在所述判断在有效时间内是否获取到所有所述参与者的目标指令信息的步骤之前,所述用户指令匹配方法还包括:The user instruction matching method according to claim 1, wherein after the step of obtaining target instruction information of a participant, and after the determining whether target instructions of all the participants are obtained within a valid time Before the step of information, the method for matching user instructions further includes:
    判断在预设时间内是否获取到所有所述参与者的目标指令信息,其中,所述预设时间小于所述有效时间;Determining whether target instruction information of all the participants is obtained within a preset time, wherein the preset time is less than the valid time;
    若在预设时间内没有获取到所有所述参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息;If target instruction information of all the participants is not obtained within a preset time, contact information of a participant who does not obtain target instruction information is obtained;
    根据所述联系信息发送提示信息。Send prompt information according to the contact information.
  4. 如权利要求1所述的用户指令匹配方法,其特征在于,所述获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息,具体包括:The user instruction matching method according to claim 1, wherein the acquiring a gesture picture of a decision maker and identifying the gesture picture of the decision maker to obtain the decision instruction information of the decision maker specifically comprises:
    获取决策者的手势图片,从所述手势图片中截取手势区域图片;Obtaining a gesture picture of a decision maker, and capturing a gesture area picture from the gesture picture;
    将所述手势区域图片输入手势图片识别模型进行识别,得到所述决策者的决策指令信息。The picture of the gesture area is input into a gesture picture recognition model for recognition, and decision instruction information of the decision maker is obtained.
  5. 如权利要求4所述的用户指令匹配方法,其特征在于,在将所述手势区域图片输入手势图片识别模型进行识别的步骤之前,所述用户指令匹配方法还包括:The user instruction matching method according to claim 4, wherein before the step of inputting the gesture area picture into a gesture picture recognition model for recognition, the user instruction matching method further comprises:
    获取原始图片,为每一所述原始图片进行分类标注,组成手势训练图片;Obtaining original pictures, classifying and labeling each of the original pictures to form a gesture training picture;
    采用所述手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型。The convolutional neural network model is trained by using the gesture training picture to obtain a gesture picture recognition model.
  6. 如权利要求1所述的用户指令匹配方法,其特征在于,所述将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果,具体包括:The user instruction matching method according to claim 1, wherein the target instruction information or the random instruction information of each of the participants is mapped to the decision instruction information of the decision maker through a mapping relationship The table is matched to obtain the instruction matching result of each participant, including:
    将每一所述参与者的所述目标指令信息或者所述随机指令信息转化为参与者标签;Converting the target instruction information or the random instruction information of each participant into a participant label;
    将所述决策者的决策指令信息转化为决策者标签;Converting the decision instruction information of the decision maker into a decision maker label;
    将每一所述参与者标签和所述决策者标签通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match each participant label and the decision maker label through a mapping relationship table to obtain an instruction matching result for each participant.
  7. 一种用户指令匹配装置,其特征在于,包括:A user instruction matching device, comprising:
    参与者信息获取模块,用于获取参与者的目标指令信息;Participant information acquisition module, which is used to acquire target instruction information of participants;
    目标指令信息判断模块,用于判断在有效时间内是否获取到所有所述参与者的目标指令信息;A target instruction information judging module, configured to determine whether the target instruction information of all the participants is obtained within a valid time;
    随机指令信息分配模块,用于若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;A random instruction information allocation module, configured to allocate random instruction information to participants who have not obtained the target instruction information if the target instruction information of all the participants has not been obtained within a valid time;
    决策指令信息获取模块,用于获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;A decision instruction information acquisition module, configured to obtain a gesture picture of a decision maker, and identify the gesture picture of the decision maker, to obtain the decision instruction information of the decision maker;
    指令匹配结果获取模块,用于将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。The instruction matching result acquisition module is configured to match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the information of each participant. Instruction match result.
  8. 如权利要求7所述的用户指令匹配装置,其特征在于,所述用户指令匹配装置还包括:The user instruction matching device according to claim 7, wherein the user instruction matching device further comprises:
    预先判断模块,用于判断在预设时间内是否获取到所有所述参与者的目标指令信息,其中,所述预设时间小于所述有效时间;A pre-judgment module for determining whether target instruction information of all the participants is obtained within a preset time, wherein the preset time is less than the valid time;
    联系信息获取模块,用于若在预设时间内没有获取到所有所述参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息;A contact information obtaining module, configured to obtain contact information of a participant who has not obtained the target instruction information if the target instruction information of all the participants has not been obtained within a preset time;
    提示信息发送模块,用于根据所述联系信息发送提示信息。The prompt information sending module is configured to send prompt information according to the contact information.
  9. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器 上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the computer-readable instructions as follows: step:
    获取参与者的目标指令信息;Obtain target instruction information of participants;
    判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
    若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
    获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
    将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  10. 如权利要求9所述的计算机设备,其特征在于,所述获取参与者的目标指令信息,具体包括:The computer device according to claim 9, wherein the acquiring the target instruction information of the participants specifically comprises:
    发送选择指令链接至客户端,接收所述客户端返回的参与者的身份信息和初始指令信息;Sending a selection instruction to the client, and receiving the identity information and initial instruction information of the participant returned by the client;
    验证所述身份信息,若所述身份信息验证成功,则将所述初始指令信息确定为目标指令信息。Verify the identity information, and if the identity information verification is successful, determine the initial instruction information as the target instruction information.
  11. 如权利要求9所述的计算机设备,其特征在于,在所述获取参与者的目标指令信息的步骤之后,并且在所述判断在有效时间内是否获取到所有所述参与者的目标指令信息的步骤之前,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 9, characterized in that after the step of obtaining target instruction information of the participants, and in the judging whether the target instruction information of all the participants is obtained within a valid time Before the steps, when the processor executes the computer-readable instructions, the following steps are also implemented:
    判断在预设时间内是否获取到所有所述参与者的目标指令信息,其中,所述预设时间小于所述有效时间;Determining whether target instruction information of all the participants is obtained within a preset time, wherein the preset time is less than the valid time;
    若在预设时间内没有获取到所有所述参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息;If target instruction information of all the participants is not obtained within a preset time, contact information of a participant who does not obtain target instruction information is obtained;
    根据所述联系信息发送提示信息。Send prompt information according to the contact information.
  12. 如权利要求9所述的计算机设备,其特征在于,所述获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息,具体包括:The computer device according to claim 9, wherein the acquiring a gesture picture of a decision maker and identifying the gesture picture of the decision maker to obtain the decision instruction information of the decision maker specifically comprises:
    获取决策者的手势图片,从所述手势图片中截取手势区域图片;Obtaining a gesture picture of a decision maker, and capturing a gesture area picture from the gesture picture;
    将所述手势区域图片输入手势图片识别模型进行识别,得到所述决策者的决策指令信息。The picture of the gesture area is input into a gesture picture recognition model for recognition, and decision instruction information of the decision maker is obtained.
  13. 如权利要求12所述的计算机设备,其特征在于,在将所述手势区域图片输入手势 图片识别模型进行识别的步骤之前,所述处理器执行所述计算机可读指令时还实现如下步骤:The computer device according to claim 12, wherein before the step of inputting the gesture area picture into a gesture picture recognition model for recognition, the processor further implements the following steps when executing the computer-readable instruction:
    获取原始图片,为每一所述原始图片进行分类标注,组成手势训练图片;Obtaining original pictures, classifying and labeling each of the original pictures to form a gesture training picture;
    采用所述手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型。The convolutional neural network model is trained by using the gesture training picture to obtain a gesture picture recognition model.
  14. 如权利要求9所述的计算机设备,其特征在于,所述将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果,具体包括:The computer device according to claim 9, characterized in that the mapping of the target instruction information or the random instruction information of each of the participants with the decision instruction information of the decision maker through a mapping relationship table Match to get the instruction matching result of each participant, including:
    将每一所述参与者的所述目标指令信息或者所述随机指令信息转化为参与者标签;Converting the target instruction information or the random instruction information of each participant into a participant label;
    将所述决策者的决策指令信息转化为决策者标签;Converting the decision instruction information of the decision maker into a decision maker label;
    将每一所述参与者标签和所述决策者标签通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match each participant label and the decision maker label through a mapping relationship table to obtain an instruction matching result for each participant.
  15. 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more non-volatile readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    获取参与者的目标指令信息;Obtain target instruction information of participants;
    判断在有效时间内是否获取到所有所述参与者的目标指令信息;Judging whether target instruction information of all the participants is obtained within a valid time;
    若在有效时间内没有获取到所有所述参与者的目标指令信息,则为没有获取到目标指令信息的参与者分配随机指令信息;If the target instruction information of all the participants is not obtained within the valid time, assigning random instruction information to the participants who have not obtained the target instruction information;
    获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息;Acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining decision instruction information of the decision maker;
    将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match the target instruction information or the random instruction information of each participant with the decision instruction information of the decision maker through a mapping relationship table to obtain the instruction matching result of each participant.
  16. 如权利要求15所述的非易失性可读存储介质,其特征在于,所述获取参与者的目标指令信息,具体包括:The non-volatile readable storage medium according to claim 15, wherein the acquiring the target instruction information of the participant specifically comprises:
    发送选择指令链接至客户端,接收所述客户端返回的参与者的身份信息和初始指令信息;Sending a selection instruction to the client, and receiving the identity information and initial instruction information of the participant returned by the client;
    验证所述身份信息,若所述身份信息验证成功,则将所述初始指令信息确定为目标指令信息。Verify the identity information, and if the identity information verification is successful, determine the initial instruction information as the target instruction information.
  17. 如权利要求15所述的非易失性可读存储介质,其特征在于,在所述获取参与者的目标指令信息的步骤之后,并且在所述判断在有效时间内是否获取到所有所述参与者的目标指令信息的步骤之前,所述计算机可读指令被处理器执行时还实现如下步骤:The non-volatile readable storage medium according to claim 15, characterized in that after the step of obtaining target instruction information of a participant, and during the judging whether all the participations are obtained within a valid time Before the steps of the target instruction information of the user, when the computer-readable instructions are executed by the processor, the following steps are also implemented:
    判断在预设时间内是否获取到所有所述参与者的目标指令信息,其中,所述预设时间小于所述有效时间;Determining whether target instruction information of all the participants is obtained within a preset time, wherein the preset time is less than the valid time;
    若在预设时间内没有获取到所有所述参与者的目标指令信息,则获取没有获取到目标指令信息的参与者的联系信息;If target instruction information of all the participants is not obtained within a preset time, contact information of a participant who does not obtain target instruction information is obtained;
    根据所述联系信息发送提示信息。Send prompt information according to the contact information.
  18. 如权利要求15所述的非易失性可读存储介质,其特征在于,所述获取决策者的手势图片,并识别所述决策者的手势图片,得到所述决策者的决策指令信息,具体包括:The non-volatile readable storage medium according to claim 15, wherein the acquiring a gesture picture of a decision maker, identifying the gesture picture of the decision maker, and obtaining the decision instruction information of the decision maker, specifically include:
    获取决策者的手势图片,从所述手势图片中截取手势区域图片;Obtaining a gesture picture of a decision maker, and capturing a gesture area picture from the gesture picture;
    将所述手势区域图片输入手势图片识别模型进行识别,得到所述决策者的决策指令信息。The picture of the gesture area is input into a gesture picture recognition model for recognition, and decision instruction information of the decision maker is obtained.
  19. 如权利要求18所述的非易失性可读存储介质,其特征在于,在将所述手势区域图片输入手势图片识别模型进行识别的步骤之前,所述计算机可读指令被处理器执行时还实现如下步骤:The non-volatile readable storage medium of claim 18, wherein before the step of inputting the gesture area picture into a gesture picture recognition model for recognition, the computer-readable instructions are further executed by a processor. To achieve the following steps:
    获取原始图片,为每一所述原始图片进行分类标注,组成手势训练图片;Obtaining original pictures, classifying and labeling each of the original pictures to form a gesture training picture;
    采用所述手势训练图片对卷积神经网络模型进行训练,获得手势图片识别模型。The convolutional neural network model is trained by using the gesture training picture to obtain a gesture picture recognition model.
  20. 如权利要求15所述的非易失性可读存储介质,其特征在于,所述将每一所述参与者的所述目标指令信息或者所述随机指令信息,与所述决策者的决策指令信息通过映射关系表进行匹配,得到每一参与者的指令匹配结果,具体包括:The non-volatile readable storage medium according to claim 15, wherein the target instruction information or the random instruction information of each of the participants and the decision instruction of the decision maker The information is matched through the mapping relationship table to obtain the instruction matching result of each participant, including:
    将每一所述参与者的所述目标指令信息或者所述随机指令信息转化为参与者标签;Converting the target instruction information or the random instruction information of each participant into a participant label;
    将所述决策者的决策指令信息转化为决策者标签;Converting the decision instruction information of the decision maker into a decision maker label;
    将每一所述参与者标签和所述决策者标签通过映射关系表进行匹配,得到每一参与者的指令匹配结果。Match each participant label and the decision maker label through a mapping relationship table to obtain an instruction matching result for each participant.
PCT/CN2018/106428 2018-07-27 2018-09-19 User instruction matching method and device, computer device and storage medium WO2020019456A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810842495.0A CN108985251B (en) 2018-07-27 2018-07-27 User instruction matching method and device, computer equipment and storage medium
CN201810842495.0 2018-07-27

Publications (1)

Publication Number Publication Date
WO2020019456A1 true WO2020019456A1 (en) 2020-01-30

Family

ID=64551640

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106428 WO2020019456A1 (en) 2018-07-27 2018-09-19 User instruction matching method and device, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN108985251B (en)
WO (1) WO2020019456A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702281A (en) * 2020-12-23 2021-04-23 深圳Tcl新技术有限公司 Bandwidth allocation method, device and system based on gesture control and storage medium
CN113194013A (en) * 2021-04-27 2021-07-30 江苏保旺达软件技术有限公司 Control method, device and storage medium for terminal equipment to access network
CN113750478A (en) * 2021-08-11 2021-12-07 深圳市沃特沃德信息有限公司 Motion supervision method and device and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065109A (en) * 2009-11-17 2011-05-18 新奥特(北京)视频技术有限公司 Processing method and system of lottery draw information
US20140378202A1 (en) * 2013-06-19 2014-12-25 DeNA Co., Ltd. Non-transitory computer-readable storage medium storing game program, and information processing device
CN106651428A (en) * 2016-10-14 2017-05-10 福建中金在线信息科技有限公司 Lucky draw data processing method and device
CN107038788A (en) * 2017-04-06 2017-08-11 福建新大陆软件工程有限公司 A kind of sequences match prize drawing control method and system
CN107563798A (en) * 2017-08-22 2018-01-09 北京潘达互娱科技有限公司 Prize-winning data processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034322A (en) * 2011-09-30 2013-04-10 德信互动科技(北京)有限公司 Man-machine interaction system and man-machine interaction method
CN106155299B (en) * 2015-04-23 2019-06-11 青岛海信电器股份有限公司 A kind of pair of smart machine carries out the method and device of gesture control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065109A (en) * 2009-11-17 2011-05-18 新奥特(北京)视频技术有限公司 Processing method and system of lottery draw information
US20140378202A1 (en) * 2013-06-19 2014-12-25 DeNA Co., Ltd. Non-transitory computer-readable storage medium storing game program, and information processing device
CN106651428A (en) * 2016-10-14 2017-05-10 福建中金在线信息科技有限公司 Lucky draw data processing method and device
CN107038788A (en) * 2017-04-06 2017-08-11 福建新大陆软件工程有限公司 A kind of sequences match prize drawing control method and system
CN107563798A (en) * 2017-08-22 2018-01-09 北京潘达互娱科技有限公司 Prize-winning data processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702281A (en) * 2020-12-23 2021-04-23 深圳Tcl新技术有限公司 Bandwidth allocation method, device and system based on gesture control and storage medium
CN112702281B (en) * 2020-12-23 2023-08-01 深圳Tcl新技术有限公司 Gesture control-based bandwidth allocation method, device and system and storage medium
CN113194013A (en) * 2021-04-27 2021-07-30 江苏保旺达软件技术有限公司 Control method, device and storage medium for terminal equipment to access network
CN113194013B (en) * 2021-04-27 2022-08-05 江苏保旺达软件技术有限公司 Control method, device and storage medium for terminal equipment to access network
CN113750478A (en) * 2021-08-11 2021-12-07 深圳市沃特沃德信息有限公司 Motion supervision method and device and computer equipment

Also Published As

Publication number Publication date
CN108985251A (en) 2018-12-11
CN108985251B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US10664580B2 (en) Sign-in system, method, apparatus and server based on facial recognition
AU2017268670B2 (en) Method of Host-Directed Illumination and System for Conducting Host-Directed Illumination
JP6820062B2 (en) Identity authentication methods and devices, terminals and servers
US10268910B1 (en) Authentication based on heartbeat detection and facial recognition in video data
US10664693B2 (en) Method, device, and system for adding contacts in social network
JP6961003B2 (en) Biological feature database establishment method and equipment
WO2019062080A1 (en) Identity recognition method, electronic device, and computer readable storage medium
WO2020019456A1 (en) User instruction matching method and device, computer device and storage medium
US10789592B2 (en) Transaction confirmation based on user attributes
US10606994B2 (en) Authenticating access to a computing resource using quorum-based facial recognition
US10599824B2 (en) Authenticating access to a computing resource using pattern-based facial recognition
US10594690B2 (en) Authenticating access to a computing resource using facial recognition based on involuntary facial movement
US11521208B2 (en) System and method for authenticating transactions from a mobile device
KR102640356B1 (en) Control method of system for non-face-to-face identification using artificial intelligence model leareed with face template data
WO2020019451A1 (en) Face recognition method and apparatus, computer device, and storage medium
CN112115455B (en) Method, device, server and medium for setting association relation of multiple user accounts
CN115240262A (en) Face recognition method, system, computer device and medium based on end-side cooperation
WO2021068613A1 (en) Face recognition method and apparatus, device and computer-readable storage medium
Alam et al. A smart login system using face detection and recognition by ORB algorithm
CN109214278B (en) User instruction matching method and device, computer equipment and storage medium
CN111274563A (en) Security authentication method and related device
CN113901418A (en) Video-based identity authentication method and device, computer equipment and storage medium
US10776617B2 (en) Sign-language automated teller machine
KR102502686B1 (en) Control method of electronic apparatus, server and system for non-face-to-face identification using speaker authentication and facial authentication
CN112434687A (en) Picture detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18927241

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.05.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18927241

Country of ref document: EP

Kind code of ref document: A1