TWI697840B - Resource allocation method, device and equipment - Google Patents

Resource allocation method, device and equipment Download PDF

Info

Publication number
TWI697840B
TWI697840B TW107134753A TW107134753A TWI697840B TW I697840 B TWI697840 B TW I697840B TW 107134753 A TW107134753 A TW 107134753A TW 107134753 A TW107134753 A TW 107134753A TW I697840 B TWI697840 B TW I697840B
Authority
TW
Taiwan
Prior art keywords
user
resource
gesture
data
resource allocation
Prior art date
Application number
TW107134753A
Other languages
Chinese (zh)
Other versions
TW201926034A (en
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 TW201926034A publication Critical patent/TW201926034A/en
Application granted granted Critical
Publication of TWI697840B publication Critical patent/TWI697840B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • 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
    • 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/117Biometrics derived from hands

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本發明實施例揭露一種資源分配方法、裝置及設備,該方法包括:獲取使用者在終端設備上輸入的手勢動作資料;確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源;將所述目標資源發送給所述終端設備。利用本發明實施例,可以使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。Embodiments of the present invention disclose a resource allocation method, device, and equipment. The method includes: acquiring gesture motion data input by a user on a terminal device; determining the degree of matching between the gesture motion data and reference gesture data, according to the The matching degree is to determine the target resource that needs to be allocated to the user in the resource library; and the target resource is sent to the terminal device. Using the embodiments of the present invention, the user’s sense of participation in the process of resource allocation can be enhanced, and the user’s controllability of resource allocation can be improved. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts. Improve the convenience and fun of resource allocation.

Description

一種資源分配方法、裝置及設備Resource allocation method, device and equipment

本發明係關於電腦之技術領域,特別相關於一種資源分配方法、裝置及設備。The present invention relates to the technical field of computers, and particularly relates to a resource allocation method, device and equipment.

隨著電腦技術的不斷發展,線上資源分配(如線上抽獎或搶紅包等)成為一種重要的資源分配方式,線上資源分配是基於網路通過資源伺服器,將資源庫中的資源分配到多個資源帳戶中。 通常,資源分配採用的方式為隨機分配或先到先得,例如,使用者在搶紅包或抽獎時,資源伺服器會通過隨機機率的方式為參與搶紅包或抽獎的使用者分配資源(即紅包、金額或獎品等),再例如,使用者在搶購某商品的過程中,資源伺服器會以先到先得的方式為參與搶購該商品的使用者分配資源(即該商品)。 然而,上述資源分配方式不需要使用者參與具體的分配過程,因此,會使得在進行資源分配的過程中,使用者的參與感較差,使用者對資源分配的可控性較差,而且,上述資源分配方式容易被自動化腳本等作弊手段所攻破,造成資源分配不均。With the continuous development of computer technology, online resource allocation (such as online lottery or red envelope grabbing, etc.) has become an important resource allocation method. Online resource allocation is based on the network through the resource server, which allocates resources in the resource library to multiple Resource account. Usually, the method of resource allocation is random or first-come-first-served. For example, when a user grabs a red envelope or a lottery, the resource server will allocate resources to the users who participate in the red envelope or lottery by random probability (ie red envelope). , Amount or prizes, etc.). For another example, in the process of a user snapping up a certain product, the resource server will allocate resources (ie the product) to users participating in the snap-up of the product on a first-come, first-served basis. However, the above resource allocation method does not require users to participate in the specific allocation process. Therefore, the user’s sense of participation in the process of resource allocation will be poor, and the user’s controllability of resource allocation is poor. Moreover, the above resources The allocation method is easily broken by cheating methods such as automated scripts, resulting in uneven resource allocation.

本發明實施例的目的是提供一種資源分配方法、裝置及設備,以實現通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 為解決上述技術問題,本發明實施例是這樣實現的: 本發明實施例提供的一種資源分配方法,所述方法包括: 獲取使用者在終端設備上輸入的手勢動作資料; 確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源; 將所述目標資源發送給所述終端設備。 可選地,所述根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源,包括: 根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 可選地,所述獲取使用者在終端設備上輸入的手勢動作資料之前,所述方法還包括: 獲取用於進行資源分配的基準手勢資料; 向所述終端設備發送資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 可選地,所述獲取用於進行資源分配的基準手勢資料,包括: 接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者, 根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 可選地,所述確定所述手勢動作資料與基準手勢資料之間的匹配度,包括: 通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 可選地,所述根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源,包括: 根據所述匹配度,確定與所述匹配度相應的資源分配比例; 從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 本發明實施例提供的一種資源分配方法,所述方法包括: 獲取使用者基於基準手勢資料輸入的手勢動作資料; 向資源伺服器發送所述手勢動作資料; 接收所述資源伺服器發送的基於所述手勢動作資料為所述使用者分配的目標資源。 可選地,所述獲取使用者基於基準手勢資料輸入的手勢動作資料之前,所述方法還包括: 接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料; 所述獲取使用者基於基準手勢資料輸入的手勢動作資料,包括: 當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 可選地,所述獲取使用者基於基準手勢資料輸入的手勢動作資料,包括: 通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料; 根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 本發明實施例提供的一種資源分配裝置,所述裝置包括: 手勢獲取模組,用於獲取使用者在終端設備上輸入的手勢動作資料; 資源分配模組,用於確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源; 資源發送模組,用於將所述目標資源發送給所述終端設備。 可選地,所述資源分配模組,用於根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 可選地,所述裝置還包括: 基準手勢獲取模組,用於獲取用於進行資源分配的基準手勢資料; 訊息發送模組,用於向所述終端設備發送資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 可選地,所述基準手勢獲取模組,用於接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者,根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 可選地,所述資源分配模組,用於通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 可選地,所述資源分配模組,包括: 分配比例確定單元,用於根據所述匹配度,確定與所述匹配度相應的資源分配比例; 資源分配單元,用於從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 本發明實施例提供的一種資源分配裝置,所述裝置包括: 手勢獲取模組,用於獲取使用者基於基準手勢資料輸入的手勢動作資料; 發送模組,用於向資源伺服器發送所述手勢動作資料; 接收模組,用於接收所述資源伺服器發送的基於所述手勢動作資料為所述使用者分配的目標資源。 可選地,所述接收模組,用於接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料; 所述手勢獲取模組,用於當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 可選地,所述手勢獲取模組,包括: 感測資料獲取單元,用於通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料; 軌跡還原模組,用於根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 本發明實施例提供的一種資源分配設備,所述設備包括: 處理器;以及 被安排成儲存電腦可執行指令的儲存器,所述可執行指令在被執行時使所述處理器執行以下操作: 獲取使用者在終端設備上輸入的手勢動作資料; 確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源; 將所述目標資源發送給所述終端設備。 本發明實施例提供的一種資源分配設備,所述設備包括: 處理器;以及 被安排成儲存電腦可執行指令的儲存器,所述可執行指令在被執行時使所述處理器執行以下操作: 獲取使用者基於基準手勢資料輸入的手勢動作資料; 向資源伺服器發送所述手勢動作資料; 接收所述資源伺服器發送的基於所述手勢動作資料為所述使用者分配的目標資源。 由以上本發明實施例提供的技術方案可見,本發明實施例通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。The purpose of the embodiments of the present invention is to provide a resource allocation method, device, and equipment to allocate resources to the user through the gesture motion data input by the user and match it with the reference gesture data, so that the resource allocation In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. To solve the above technical problems, the embodiments of the present invention are implemented as follows: An embodiment of the present invention provides a resource allocation method, the method includes: Obtain the gesture motion data input by the user on the terminal device; Determining the degree of matching between the gesture action data and the reference gesture data, and determining the target resource in the resource library that needs to be allocated to the user according to the degree of matching; Sending the target resource to the terminal device. Optionally, the determining the target resource that needs to be allocated to the user in the resource library according to the matching degree includes: According to the matching degree and the resource allocation factor corresponding to the user, determine the target resource that needs to be allocated to the user in the resource library, and the resource allocation factor corresponding to the user includes at least one or two of the following: random allocation Factors and the time sequence of receiving resource acquisition requests. Optionally, before the acquiring the gesture motion data input by the user on the terminal device, the method further includes: Obtain reference gesture data for resource allocation; Sending a resource allocation notification message to the terminal device, where the resource allocation notification message includes the reference gesture data. Optionally, the acquiring reference gesture data for resource allocation includes: Receive the reference gesture data input by the management user for resource allocation; or, The reference gesture data for resource allocation is generated according to the allocation gesture rule for resource allocation to the user. Optionally, the determining the degree of matching between the gesture motion data and the reference gesture data includes: The degree of matching between the gesture action data and the reference gesture data is determined by a trajectory matching algorithm. The trajectory matching algorithm is a handwriting recognition algorithm, an image similarity algorithm or a OneDollar trajectory recognition algorithm. Optionally, the determining the target resource that needs to be allocated to the user in the resource library according to the matching degree includes: Determine a resource allocation ratio corresponding to the matching degree according to the matching degree; Obtain the resource corresponding to the resource allocation ratio from the resource library as the target resource that needs to be allocated to the user. An embodiment of the present invention provides a resource allocation method, the method includes: Acquiring gesture motion data input by the user based on the reference gesture data; Sending the gesture action data to the resource server; Receiving the target resource allocated to the user based on the gesture action data sent by the resource server. Optionally, before the acquiring the gesture motion data input by the user based on the reference gesture data, the method further includes: Receiving a resource allocation notification message sent by the resource server, where the resource allocation notification message includes the reference gesture data; The acquiring gesture motion data input by the user based on the reference gesture data includes: When the resource allocation instruction triggered by the user for the resource allocation notification message is acquired, the gesture motion data input by the user based on the reference gesture data is detected and acquired. Optionally, the acquiring gesture motion data input by the user based on reference gesture data includes: Collect the sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor; Perform trajectory restoration processing on the sensing data according to a trajectory restoration algorithm to obtain gesture motion data input by the user. An embodiment of the present invention provides a resource allocation device, the device includes: The gesture acquisition module is used to acquire gesture motion data input by the user on the terminal device; The resource allocation module is used to determine the degree of matching between the gesture action data and the reference gesture data, and determine the target resource in the resource library that needs to be allocated to the user according to the degree of matching; The resource sending module is used to send the target resource to the terminal device. Optionally, the resource allocation module is configured to determine the target resource in the resource library that needs to be allocated to the user according to the matching degree and the resource allocation factor corresponding to the user, and the user corresponding The resource allocation factor includes at least one or two of the following: a random allocation factor and a time sequence of receiving resource acquisition requests. Optionally, the device further includes: The reference gesture acquisition module is used to acquire reference gesture data for resource allocation; The message sending module is configured to send a resource allocation notification message to the terminal device, and the resource allocation notification message includes the reference gesture data. Optionally, the reference gesture acquisition module is configured to receive reference gesture data input by the management user for resource allocation; or, according to the allocation gesture rule for resource allocation to the user, generate the reference gesture data for resource allocation. Benchmark gesture data. Optionally, the resource allocation module is configured to determine the degree of matching between the gesture action data and the reference gesture data through a trajectory matching algorithm, the trajectory matching algorithm is a handwriting recognition algorithm, image similarity Algorithm or OneDollar trajectory recognition algorithm. Optionally, the resource allocation module includes: An allocation ratio determining unit, configured to determine a resource allocation ratio corresponding to the matching degree according to the matching degree; The resource allocation unit is configured to obtain the resource corresponding to the resource allocation ratio from the resource library as the target resource that needs to be allocated to the user. An embodiment of the present invention provides a resource allocation device, the device includes: The gesture acquisition module is used to acquire the gesture motion data input by the user based on the reference gesture data; A sending module for sending the gesture action data to the resource server; The receiving module is configured to receive the target resource allocated to the user based on the gesture motion data sent by the resource server. Optionally, the receiving module is configured to receive a resource allocation notification message sent by the resource server, and the resource allocation notification message includes the reference gesture data; The gesture acquisition module is configured to detect and acquire gesture motion data input by the user based on the reference gesture data when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired. Optionally, the gesture acquisition module includes: The sensing data acquisition unit is used to collect the sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor; The trajectory restoration module is used to perform trajectory restoration processing on the sensing data according to the trajectory restoration algorithm to obtain the gesture motion data input by the user. An embodiment of the present invention provides a resource allocation device, the device includes: Processor; and Arranged as a storage for storing computer-executable instructions, which when executed, cause the processor to perform the following operations: Obtain the gesture motion data input by the user on the terminal device; Determining the degree of matching between the gesture action data and the reference gesture data, and determining the target resource in the resource library that needs to be allocated to the user according to the degree of matching; Sending the target resource to the terminal device. An embodiment of the present invention provides a resource allocation device, the device includes: Processor; and Arranged as a storage for storing computer-executable instructions, which when executed, cause the processor to perform the following operations: Acquiring gesture motion data input by the user based on the reference gesture data; Sending the gesture action data to the resource server; Receiving the target resource allocated to the user based on the gesture action data sent by the resource server. It can be seen from the technical solutions provided by the above embodiments of the present invention that the embodiments of the present invention determine the degree of matching between the gesture motion data and the reference gesture data based on the gesture motion data input by the user on the terminal device, and according to the matching degree, Determine the target resource that needs to be allocated to the user in the resource library, and finally send the target resource to the terminal device. In this way, through the gesture action data input by the user, the matching degree between it and the reference gesture data is allocated to the user Resources enhance the user's sense of participation in the process of resource allocation and improve the user's controllability of resource allocation. Moreover, the above resource allocation methods are not easily broken by cheating methods such as automated scripts, which improves the convenience of resource allocation Sex and fun.

本發明實施例提供一種資源分配方法、裝置及設備。 為了使本技術領域的人員更好地理解本發明中的技術方案,下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本發明保護的範圍。 實施例一 如圖1所示,本發明實施例提供一種資源分配方法,該方法的執行主體可以為終端設備或伺服器,其中的終端設備可以是如手機、平板電腦等移動終端設備,還可以是如個人電腦等終端設備,伺服器可以是獨立的一個伺服器,也可以是由多個伺服器組成的伺服器集群。本發明實施例中為了提高資源的分配效率,該方法的執行主體以伺服器為例進行詳細說明,對於終端設備的情況,可以參照下述伺服器的具體處理執行,在此不再贅述。另外,為了後續描述方便,該伺服器可以稱為資源伺服器。該方法具體可以包括以下步驟: 在步驟S102中,獲取使用者在終端設備上輸入的手勢動作資料。 其中,使用者可以是任意需要進行資源分配的使用者。終端設備可以是使用者使用的終端設備,具體如手機或平板電腦等。手勢動作資料可以是基於使用者的不同手勢操作產生的相應資料,手勢動作資料具體可以包括多種,例如,書寫某一個或多個字符(具體如“S”或“HS”等),再或者,可以是一個形狀規則的圖形,具體如矩形、正方形或圓形等,又或者,還可以是一個形狀不規則的圖形等。 在實施中,需要為使用者進行資源分配的場景可以包括多種,例如,使用者在拼手氣搶紅包或獲取優惠券的過程中,資源伺服器需要為搶紅包或獲取優惠券的使用者分配紅包或優惠券的場景,再例如,使用者在搶購商品的過程中,資源伺服器需要為搶購商品的使用者分配搶購到的商品的場景,又例如,使用者在抽獎的過程中,資源伺服器需要為參與抽獎的使用者分配獎品的場景等。在上述場景下,當需要為使用者分配線上資源時,為了提高使用者體驗和資源分配的效率,可以通過手勢動作的方式進行資源分配。具體地,當使用者處於上述任意場景,需要請求資源伺服器為該使用者分配資源時,使用者可以觸發資源伺服器中的資源分配機制,資源伺服器啟動資源分配機制,並根據資源分配機制中預先設定的手勢動作規則為該使用者分配一個手勢動作,即可以根據預先設定的手勢動作規則,隨機產生一個基準手勢動作,如畫一個指定圖形(如圓形或星形的圖形等)或書寫一個指定字符等,可以將產生的基準手勢動作的相關資料發送給使用者,使用者可以通過終端設備顯示該基準手勢動作的相關資料,如圖2所示。使用者的終端設備中設置有相應的感測器(如IMU(Inertial measurement unit,慣性測量單元)感測器等),終端設備接收到該基準手勢動作的相關資料後,可以通過該感測器來檢測使用者基於基準手勢動作做出的手勢動作。然後,使用者可以針對資源伺服器輸出的基準手勢動作,在終端設備的顯示螢幕上做出相應的手勢動作。在做出上述手勢動作的過程中,終端設備可以啟動相應的感測器,並通過該感測器來檢測使用者做出的手勢動作,終端設備可以將檢測到的手勢動作資料發送給資源伺服器,從而資源伺服器可以獲取到使用者在終端設備上產生的手勢動作資料。 例如,如圖2A所示,資源伺服器產生一個手勢動作軌跡,並將其發送給使用者的終端設備,該終端設備接收到相應的手勢動作資料後,可以通過終端設備的顯示螢幕向使用者展示該手勢動作軌跡。使用者可以針對該手勢動作軌跡進行模仿操作,此時,終端設備可以啟動相關的感測器,獲取使用者模仿上述手勢動作軌跡產生的手勢動作資料,並將其發送給資源伺服器。 以搶購A商品為例,如果A商品的提供商計劃在某一天進行A商品的限量特價售賣,為此,可以在A商品所在的購物網站上進行廣播通知,例如,可以在該購物網站的首頁上展示A商品搶購的廣告,當使用者開啟該購物網站時,在該購物網站的首頁上會看到該搶購的廣告,如果該使用者對A商品感興趣,則可以點擊該廣告提供的A商品的搶購鏈接,終端設備可以向資源伺服器發送頁面獲取請求,資源伺服器可以將搶購的頁面資料發送給終端設備。終端設備可以顯示該頁面資料,該頁面資料中可以包括搶購按鍵,如果使用者確定需要購買A商品,則可以點擊搶購按鍵,終端設備產生搶購指令發送給資源伺服器,資源伺服器可以根據資源分配機制中預先設定的手勢動作規則為該使用者分配一個基準手勢動作,可以將該基準手勢動作的相關資料發送給使用者,使用者可以通過終端設備顯示該基準手勢動作的相關資料。然後,使用者可以針對該基準手勢動作,在終端設備的顯示螢幕上做出相應的手勢動作。終端設備可以通過感測器來檢測使用者做出的手勢動作,並將檢測到的手勢動作資料發送給資源伺服器。 在步驟S104中,確定上述手勢動作資料與基準手勢資料之間的匹配度,根據該匹配度,確定資源庫中需要分配給該使用者的目標資源。 其中,基準手勢資料可以是從預先設定的手勢動作資料庫中隨機選取的一個或多個手勢動作,或者,也可以是使用者預先設定的手勢動作等。目標資源可以是需要分配給使用者的任意資源,例如某商品、獎品、紅包或優惠券等。 在實施中,為了保證使用者的帳戶的安全,伺服器中可以設置有匹配演算法,而且,還設置有不同匹配度對應的不同數量的資源,例如,如圖2B所示,如果匹配度為90%,則分配給該使用者的資源為資源總數的25%。如圖2C所示,如果匹配度為50%,則分配給該使用者的資源為0等,其中,不同匹配度對應的不同數量的資源的處理可以以表格的形式展示。可以如表1所示 表1

Figure 107134753-A0304-0001
可以通過該匹配演算法對上述步驟S102獲取的手勢動作資料與基準手勢資料進行匹配計算,獲取兩者的匹配度。然後,在上述表1所示的對應關係中查找其中是否包括上述計算得到的匹配度,如果上述表1所示的對應關係中查找到上述計算得到的匹配度,則可以獲取計算得到的匹配度對應的資源的數量,可以通過得到的資源的數量,從資源庫中獲取相應的資源作為需要分配給該使用者的目標資源。例如,如果上述計算得到的匹配度為90%,則通過上述表1的對應關係,可以得到匹配度90%對應的資源的數量為25%,因此,可以得到需要分配給該使用者的目標資源為資源總數的25%。 此外,如果在上述表1所示的對應關係中沒有查找到上述計算得到的匹配度,則可以確定使用者輸入的手勢動作資料不正確,此時,資源伺服器可以向終端設備發送資源分配失敗的通知訊息,終端設備可以顯示該通知訊息,使用者查看到該通知訊息後,可以重新輸入手勢動作資料,即執行上述步驟S102和步驟S104的處理。 需要說明的是,除了可以通過匹配度確定需要分配給該使用者的目標資源外,還可以結合其他影響因素確定需要分配給該使用者的目標資源,例如,考慮到無論是搶紅包還是搶購商品,紅包或商品的數量有限,搶紅包或搶購商品的時間也有限,這樣,往往會出現先到先得的現象,為此,在確定需要分配給該使用者的目標資源時,除了可以考慮匹配度外,還可以結合使用者搶購的時間順序等來確定需要分配給該使用者的目標資源。 在步驟S106中,將上述目標資源發送給終端設備。 在實施中,確定資源庫中需要分配給該使用者的目標資源後,資源伺服器可以將目標資源發送給終端設備,例如,可以將一定數量的優惠券發送給終端設備,或者,可以將與目標資源相對應的滿減優惠券(如滿100元減50元的優惠券或滿100元減20元的優惠券等)發送給終端設備,或者,可以將某搶購的指定商品的相關資訊發送給終端設備等。 如圖3所示,本發明實施例提供一種資源分配方法,該方法的執行主體可以為終端設備,其中的終端設備可以是如手機、平板電腦等移動終端設備,還可以是如個人電腦等終端設備,該方法具體可以包括以下步驟: 在步驟S302中,獲取使用者基於基準手勢資料輸入的手勢動作資料。 在實施中,當使用者需要請求資源伺服器為該使用者分配資源時,使用者可以觸發資源伺服器中的資源分配機制,資源伺服器啟動資源分配機制,並根據資源分配機制中預先設定的手勢動作規則為該使用者分配一個手勢動作,即可以根據預先設定的手勢動作規則,隨機產生一個基準手勢動作,可以將產生的基準手勢動作的相關資料發送給使用者,使用者可以通過終端設備顯示該基準手勢動作的相關資料。使用者的終端設備中設置有相應的感測器(如IMU感測器等),終端設備接收到該基準手勢動作的相關資料後,可以通過該感測器來檢測使用者基於基準手勢動作做出的手勢動作。 在步驟S304中,向資源伺服器發送上述手勢動作資料。 在步驟S306中,接收資源伺服器發送的基於上述手勢動作資料為上述使用者分配的目標資源。 上述步驟S306的具體處理可以參見上述步驟S104和步驟S106的相關內容,在此不再贅述。 本發明實施例提供一種資源分配方法,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 實施例二 如圖4所示,本發明實施例提供了一種資源分配方法,該方法可以由終端設備和資源伺服器共同執行,其中的終端設備可以是如手機、平板電腦等移動終端設備,還可以是如個人電腦等終端設備,資源伺服器可以是獨立的一個伺服器,也可以是由多個伺服器組成的伺服器集群。該方法具體包括如下內容: 在步驟S402中,資源伺服器獲取用於進行資源分配的基準手勢資料。 上述獲取基準手勢資料的方式可以包括多種,以下提供兩種可選的處理方式,具體可以包括以下方式一和方式二。 方式一,資源伺服器接收管理使用者輸入的用於進行資源分配的基準手勢資料。 其中,管理使用者可以是待分配資源的管理者,例如發放優惠券的商戶或發紅包的使用者等。 在實施中,如果管理使用者需要向發起資源分配的使用者分配資源,為了提高使用者體驗和資源分配的效率,可以通過手勢動作的方式進行資源分配,為此,管理使用者可以設定多個基準手勢資料。購物網站或資源分配網站中可以設置有基準手勢設置頁面,管理使用者可以在該設置頁面中輸入上述設定的多個基準手勢資料,設置完成後,管理使用者可以將上述設置頁面發送給資源伺服器,資源伺服器可以提取其中的多個基準手勢資料並保存。 方式二,資源伺服器根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 其中,分配手勢規則可以是用於進行資源分配而產生的基準手勢資料的規則。該分配手勢規則可以是對產生基準手勢資料的限定條件的規則,例如,基準手勢資料是非規則運動軌跡,即該分配手勢規則產生的基準手勢資料不是正方形、矩形或圓形等規則運動軌跡等。該分配手勢規則還可以是包括一個或多個基準手勢資料的規則,例如,該分配手勢規則可以根據管理使用者的需求或實際情況進行設定,例如,管理使用者可以根據實際情況預先在資源伺服器中設置一個或多個基準手勢資料,或者,資源伺服器中可以提供多種可選擇的基準手勢資料,管理使用者可以從中選擇一個或多個基準手勢資料作為使用者進行資源分配所使用的基準手勢資料。 在步驟S404中,資源伺服器向終端設備發送資源分配通知訊息,該資源分配通知訊息中包括上述基準手勢資料。 在實施中,資源伺服器發送資源分配通知訊息的方式可以包括多種,例如在購物網站上設置相應的廣告,或者,將資源分配通知訊息通過社交群組(如即時通訊應用中的好友或好友群組等)或網路論壇等公佈給使用者。當使用者登錄相關網站或啟動應用程式時,會發現該資源分配通知訊息,如果使用者對其中的內容感興趣,則可以執行下述步驟S406以及其後續相關內容,如果對其中的內容不感興趣,則使用者可以忽略該資源分配通知訊息或關閉相應的頁面等。 需要說明的是,該資源分配通知訊息中可以包括上述基準手勢資料,基準手勢資料可以作為模板儲存在終端設備中。 另外,終端設備可以接收資源伺服器發送的資源分配通知訊息,其中,資源分配通知訊息中包括所述基準手勢資料。 在步驟S406中,當獲取到使用者針對資源分配通知訊息觸發的資源分配指令時,終端設備檢測並獲取使用者基於該基準手勢資料輸入的手勢動作資料。 其中,資源分配指令可以是請求終端設備進行資源分配的指令。 在實施中,資源分配通知訊息所在的頁面中還可以包括參與按鍵和拒絕按鍵,如果使用者需要請求資源伺服器為該使用者分配資源,則使用者可以點擊上述頁面中的參與按鍵,此時,終端設備可以產生資源分配指令,同時,終端設備可以通過終端設備顯示該基準手勢動作的相關資料。使用者的終端設備中設置有相應的感測器(如IMU感測器等),終端設備接收到該基準手勢動作的相關資料後,可以通過該感測器來檢測使用者基於基準手勢動作做出的手勢動作。然後,使用者可以針對資源伺服器輸出的基準手勢動作,在終端設備的顯示螢幕上做出相應的手勢動作。 上述步驟S406的具體處理方式並不限於通過上述方式實現,在實際應用中,上述步驟S406的具體處理還可以通過以下方式實現,具體可以包括以下步驟一和步驟二。 步驟一,通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料。 步驟二,根據軌跡還原演算法對上述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 在實施中,手勢採集感測器採集到的僅是一種信號資料,即感測資料,並不是手勢動作的軌跡,因此,為了得到使用者輸入的手勢動作資料,可以預先設置軌跡還原演算法,終端設備可以通過軌跡還原演算法對上述感測資料進行軌跡還原處理,最終得到使用者輸入的手勢動作資料。 在步驟S408中,終端設備向資源伺服器發送上述手勢動作資料。 在步驟S410中,資源伺服器通過軌跡匹配演算法確定上述手勢動作資料與基準手勢資料之間的匹配度,該軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 在實施中,為了保證使用者的帳戶的安全,資源伺服器中可以設置有軌跡匹配演算法,該軌跡匹配演算法可以包括多種,例如筆跡識別演算法、圖像相似度演算法和OneDollar軌跡識別演算法。對於不同識別類型(如筆跡識別或圖像識別等),可以對應於相應的軌跡匹配演算法,例如資源伺服器可以設置有3種軌跡匹配演算法,即筆跡識別演算法、圖像相似度演算法和OneDollar軌跡識別演算法,如果使用者輸入的手勢動作資料是以筆跡的方式記錄,則可以通過筆跡識別演算法確定上述手勢動作資料與基準手勢資料之間的匹配度,如果使用者輸入的手勢動作資料是以圖像的方式記錄,則可以通過圖像相似度演算法確定上述手勢動作資料與基準手勢資料之間的匹配度等。 在步驟S412中,根據上述匹配度,確定與該匹配度相應的資源分配比例。 上述步驟S412的具體處理可以參見上述實施例一中步驟S104及表1的相關內容,在此不再贅述。 需要說明的是,除了可以通過匹配度確定需要分配給該使用者的目標資源外,還可以結合資源分配因子確定需要分配給該使用者的目標資源,相應的,可以包括以下內容:根據上述匹配度和使用者對應的資源分配因子,確定資源庫中需要分配給使用者的目標資源,使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 其中,隨機分配因子可以是用於表徵進行資源的隨機分配的元素或參數等。接收資源獲取請求的時間順序可以在一定程度上表徵資源分配的順序,可以用於需要執行先到先得的資源分配場景中。 在步驟S414中,從資源庫中獲取與上述資源分配比例對應的資源作為需要分配給使用者的目標資源。 上述步驟S414的具體處理可以參見上述實施例一中步驟S104、表1,以及步驟S106的相關內容,在此不再贅述。 本發明實施例提供一種資源分配方法,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 實施例三 以上為本發明實施例提供的資源分配方法,基於同樣的思路,本發明實施例還提供一種資源分配裝置,如圖5所示。 所述資源分配裝置包括:手勢獲取模組501、資源分配模組502和資源發送模組503,其中: 手勢獲取模組501,用於獲取使用者在終端設備上輸入的手勢動作資料; 資源分配模組502,用於確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源; 資源發送模組503,用於將所述目標資源發送給所述終端設備。 本發明實施例中,所述資源分配模組502,用於根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 本發明實施例中,所述裝置還包括: 基準手勢獲取模組,用於獲取用於進行資源分配的基準手勢資料; 訊息發送模組,用於向所述終端設備發送資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 本發明實施例中,所述基準手勢獲取模組,用於接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者,根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 本發明實施例中,所述資源分配模組502,用於通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 本發明實施例中,所述資源分配模組502,包括: 分配比例確定單元,用於根據所述匹配度,確定與所述匹配度相應的資源分配比例; 資源分配單元,用於從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 本發明實施例提供一種資源分配裝置,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 實施例四 基於同樣的思路,本發明實施例還提供一種資源分配裝置,如圖6所示。 所述資源分配裝置包括:手勢獲取模組601、發送模組602和接收模組603,其中: 手勢獲取模組601,用於獲取使用者基於基準手勢資料輸入的手勢動作資料; 發送模組602,用於向資源伺服器發送所述手勢動作資料; 接收模組603,用於接收所述資源伺服器發送的基於所述手勢動作資料為所述使用者分配的目標資源。 本發明實施例中,所述接收模組603,用於接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料; 所述手勢獲取模組601,用於當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 本發明實施例中,所述手勢獲取模組601,包括: 感測資料獲取單元,用於通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料; 軌跡還原模組,用於根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 本發明實施例提供一種資源分配裝置,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 實施例五 基於同樣的思路,本發明實施例還提供一種資源分配設備,如圖7所示。 該資源分配設備可以為上述實施例提供的資源伺服器等。 資源分配設備可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上的處理器701和儲存器702,儲存器702中可以儲存有一個或一個以上儲存應用程式或資料。其中,儲存器702可以是短暫儲存或持久儲存。儲存在儲存器702的應用程式可以包括一個或一個以上模組(圖示未示出),每個模組可以包括對資源分配設備中的一系列電腦可執行指令。更進一步地,處理器701可以設置為與儲存器702通信,在資源分配設備上執行儲存器702中的一系列電腦可執行指令。資源分配設備還可以包括一個或一個以上電源703,一個或一個以上有線或無線網路介面704,一個或一個以上輸入輸出介面705,一個或一個以上鍵盤706。 具體在本實施例中,資源分配設備包括有儲存器,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於儲存器中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對資源分配設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上程式包含用於進行以下電腦可執行指令: 獲取使用者在終端設備上輸入的手勢動作資料; 確定所述手勢動作資料與基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源; 將所述目標資源發送給所述終端設備。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 獲取用於進行資源分配的基準手勢資料; 向所述終端設備發送資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者, 根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 根據所述匹配度,確定與所述匹配度相應的資源分配比例; 從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 本發明實施例提供一種資源分配設備,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 實施例六 基於同樣的思路,本發明實施例還提供一種資源分配設備,如圖8所示。 該資源分配設備可以為上述實施例提供的終端設備等。 資源分配設備可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上的處理器801和儲存器802,儲存器802中可以儲存有一個或一個以上儲存應用程式或資料。其中,儲存器802可以是短暫儲存或持久儲存。儲存在儲存器802的應用程式可以包括一個或一個以上模組(圖示未示出),每個模組可以包括對資源分配設備中的一系列電腦可執行指令。更進一步地,處理器801可以設置為與儲存器802通信,在資源分配設備上執行儲存器802中的一系列電腦可執行指令。資源分配設備還可以包括一個或一個以上電源803,一個或一個以上有線或無線網路介面804,一個或一個以上輸入輸出介面805,一個或一個以上鍵盤806。 具體在本實施例中,資源分配設備包括有儲存器,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於儲存器中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對資源分配設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上程式包含用於進行以下電腦可執行指令: 獲取使用者基於基準手勢資料輸入的手勢動作資料; 向資源伺服器發送所述手勢動作資料; 接收所述資源伺服器發送的基於所述手勢動作資料為所述使用者分配的目標資源。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料; 所述獲取使用者基於基準手勢資料輸入的手勢動作資料,包括: 當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 可選地,所述可執行指令在被執行時,還可以使所述處理器: 通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料; 根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 本發明實施例提供一種資源分配設備,通過使用者在終端設備上輸入的手勢動作資料,確定該手勢動作資料與基準手勢資料之間的匹配度,並根據該匹配度,確定資源庫中需要分配給該使用者的目標資源,最後將目標資源發送給終端設備,這樣,通過使用者輸入的手勢動作資料,將其與基準手勢資料之間的匹配程度來為使用者分配資源,使得在資源分配的過程中使用者的參與感增強,提高了使用者對資源分配的可控性,而且,上述資源分配方式不容易被自動化腳本等作弊手段所攻破,提高資源分配的便捷性和趣味性。 上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範圍內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在附圖中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多任務處理和並行處理也是可以的或者可能是有利的。 在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都通過將改進的方法流程編程到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不能用硬體實體模組來實現。例如,可編程邏輯裝置(Programmable Logic Device,PLD)(例如現場可編程閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由使用者對裝置編程來確定。由設計人員自行編程來把一個數位系統“整合”在一片PLD上,而不需要請晶片製造廠商來設計和製作專用的積體電路晶片。而且,如今,取代手工地製作積體電路晶片,這種編程也多半改用“邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始碼也得用特定的編程語言來撰寫,此稱之為硬體描述語言(Hardware Description Language,HDL),而HDL也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯編程並編程到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。 控制器可以按任何適當的方式實現,例如,控制器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式碼(例如軟體或韌體)的電腦可讀媒體、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可編程邏輯控制器和嵌入微控制器的形式,控制器的例子包括但不限於以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,儲存器控制器還可以被實現為儲存器的控制邏輯的一部分。本領域技術人員也知道,除了以純電腦可讀程式碼方式實現控制器以外,完全可以通過將方法步驟進行邏輯編程來使得控制器以邏輯閘、開關、專用積體電路、可編程邏輯控制器和嵌入微控制器等的形式來實現相同功能。因此這種控制器可以被認為是一種硬體部件,而對其內包括的用於實現各種功能的裝置也可以視為硬體部件內的結構。或者甚至,可以將用於實現各種功能的裝置視為既可以是實現方法的軟體模組又可以是硬體部件內的結構。 上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放器、導航設備、電子郵件設備、遊戲主機、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。 為了描述的方便,描述以上裝置時以功能分為各種單元分別描述。當然,在實施本發明時可以把各單元的功能在同一個或多個軟體和/或硬體中實現。 本領域內的技術人員應明白,本發明的實施例可提供為方法、系統、或電腦程式產品。因此,本發明可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的電腦程式產品的形式。 本發明是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可編程資料處理設備的處理器以產生一個機器,使得通過電腦或其他可編程資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 這些電腦程式指令也可儲存在能引導電腦或其他可編程資料處理設備以特定方式工作的電腦可讀儲存器中,使得儲存在該電腦可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 這些電腦程式指令也可裝載到電腦或其他可編程資料處理設備上,使得在電腦或其他可編程設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可編程設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或快閃隨機存取記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。 電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可抹除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁碟儲存或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫態媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域技術人員應明白,本發明的實施例可提供為方法、系統或電腦程式產品。因此,本發明可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的電腦程式產品的形式。 本發明可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、物件、組件、資料結構等等。也可以在分散式計算環境中實踐本發明,在這些分散式計算環境中,由通過通信網路而被連接的遠端處理設備來執行任務。在分散式計算環境中,程式模組可以位於包括儲存設備在內的本地和遠端電腦儲存媒體中。 本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於系統實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 以上所述僅為本發明的實施例而已,並不用於限制本發明。對於本領域技術人員來說,本發明可以有各種更改和變化。凡在本發明的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本發明的申請專利範圍之內。The embodiment of the present invention provides a resource allocation method, device and equipment. In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention. Embodiment 1 As shown in Figure 1, the embodiment of the present invention provides a resource allocation method. The execution body of the method can be a terminal device or a server. The terminal device can be a mobile terminal device such as a mobile phone or a tablet computer, or It is a terminal device such as a personal computer. The server can be an independent server or a server cluster composed of multiple servers. In the embodiment of the present invention, in order to improve the efficiency of resource allocation, the execution subject of the method takes a server as an example for detailed description. For the terminal device, reference may be made to the following specific processing execution of the server, which will not be repeated here. In addition, for the convenience of subsequent description, the server may be referred to as a resource server. The method may specifically include the following steps: In step S102, the gesture motion data input by the user on the terminal device is acquired. Among them, the user can be any user who needs to allocate resources. The terminal device may be a terminal device used by the user, such as a mobile phone or a tablet computer. Gesture action data can be corresponding data generated based on different gesture operations of the user. Gesture action data can specifically include multiple types, for example, writing one or more characters (specifically, "S" or "HS", etc.), or, It can be a regular shape, such as a rectangle, a square, or a circle, or it can be an irregular shape. In the implementation, there are many scenarios that need to allocate resources for users. For example, when the user is trying to grab red envelopes or get coupons, the resource server needs to allocate red envelopes to users who grab red envelopes or get coupons. Or a coupon scenario. For another example, when the user is in the process of rushing to buy a product, the resource server needs to allocate the snapped-up product to the user who is rushing to buy the product. For another example, the user is in the process of lottery. Need to distribute prizes to the users participating in the lottery. In the above scenario, when online resources need to be allocated to users, in order to improve the user experience and the efficiency of resource allocation, resource allocation can be performed through gesture actions. Specifically, when the user is in any of the above scenarios and needs to request the resource server to allocate resources for the user, the user can trigger the resource allocation mechanism in the resource server, and the resource server activates the resource allocation mechanism, and according to the resource allocation mechanism The user can be assigned a gesture action according to the preset gesture action rules in the, that is, a reference gesture action can be randomly generated according to the preset gesture action rules, such as drawing a specified figure (such as a circle or star figure, etc.) or Writing a designated character, etc., can send relevant data of the generated reference gesture action to the user, and the user can display the relevant data of the reference gesture action through the terminal device, as shown in FIG. 2. The user’s terminal device is provided with a corresponding sensor (such as an IMU (Inertial Measurement Unit) sensor, etc.). After the terminal device receives the relevant data of the reference gesture action, it can pass the sensor To detect the user's gesture action based on the reference gesture action. Then, the user can make a corresponding gesture action on the display screen of the terminal device according to the reference gesture action output by the resource server. In the process of making the above gestures, the terminal device can activate the corresponding sensor, and use the sensor to detect the gesture action made by the user, and the terminal device can send the detected gesture action data to the resource server The resource server can obtain the gesture action data generated by the user on the terminal device. For example, as shown in Figure 2A, the resource server generates a gesture motion track and sends it to the user's terminal device. After the terminal device receives the corresponding gesture motion data, it can tell the user through the terminal device's display screen. Show the trajectory of the gesture. The user can perform an imitating operation on the gesture motion track. At this time, the terminal device can activate the relevant sensor to obtain the gesture motion data generated by the user imitating the gesture motion track, and send it to the resource server. Take the rush to buy A product as an example. If the provider of A product plans to sell A product at a limited price on a certain day, for this purpose, a broadcast notification can be made on the shopping website where the A product is located, for example, on the homepage of the shopping website When the user opens the shopping website, he will see the rush-buying advertisement on the homepage of the shopping website. If the user is interested in the A product, he can click on the A provided by the advertisement. For the rush-purchase link of the product, the terminal device can send a page acquisition request to the resource server, and the resource server can send the rush-purchased page data to the terminal device. The terminal device can display the page data, and the page data can include a snap-purchase button. If the user decides that he needs to buy the A commodity, he can click the snap-purchase button. The terminal device generates a snap-purchase instruction and sends it to the resource server. The resource server can allocate resources according to The preset gesture action rule in the mechanism assigns a reference gesture action to the user. The relevant data of the reference gesture action can be sent to the user, and the user can display the relevant data of the reference gesture action through the terminal device. Then, the user can make a corresponding gesture action on the display screen of the terminal device for the reference gesture action. The terminal device can detect the gesture action made by the user through the sensor, and send the detected gesture action data to the resource server. In step S104, the degree of matching between the aforementioned gesture action data and the reference gesture data is determined, and the target resource that needs to be allocated to the user in the resource library is determined according to the degree of matching. Wherein, the reference gesture data may be one or more gesture actions randomly selected from a preset gesture action database, or may also be gesture actions preset by the user. The target resource can be any resource that needs to be allocated to the user, such as a product, prize, red envelope, or coupon. In implementation, in order to ensure the security of the user’s account, a matching algorithm can be set in the server, and different numbers of resources corresponding to different matching degrees can also be set. For example, as shown in Figure 2B, if the matching degree is 90%, the resources allocated to the user are 25% of the total resources. As shown in FIG. 2C, if the matching degree is 50%, the resources allocated to the user are 0, etc., where the processing of different numbers of resources corresponding to different matching degrees can be displayed in the form of a table. Can be as shown in Table 1 Table 1
Figure 107134753-A0304-0001
The matching algorithm can be used to perform matching calculation on the gesture motion data obtained in step S102 and the reference gesture data to obtain the matching degree between the two. Then, in the corresponding relationship shown in Table 1 above, find out whether it includes the calculated matching degree. If the calculated matching degree is found in the corresponding relationship shown in Table 1, then the calculated matching degree can be obtained. The number of corresponding resources can be obtained from the resource library as the target resource that needs to be allocated to the user through the number of obtained resources. For example, if the matching degree obtained by the above calculation is 90%, through the corresponding relationship in Table 1 above, it can be obtained that the number of resources corresponding to the matching degree 90% is 25%. Therefore, the target resource that needs to be allocated to the user can be obtained This is 25% of the total resources. In addition, if the calculated matching degree is not found in the corresponding relationship shown in Table 1 above, it can be determined that the gesture action data input by the user is incorrect. In this case, the resource server can send a resource allocation failure to the terminal device. The terminal device can display the notification message. After viewing the notification message, the user can re-enter the gesture motion data, that is, perform the processing of step S102 and step S104. It should be noted that, in addition to determining the target resource that needs to be allocated to the user through the matching degree, it can also be combined with other influencing factors to determine the target resource that needs to be allocated to the user. For example, considering whether it is to grab red envelopes or rush to buy goods , The number of red envelopes or commodities is limited, and the time to grab red envelopes or rush to buy commodities is also limited. In this way, the phenomenon of first-come, first-served often occurs. Therefore, when determining the target resources that need to be allocated to the user, in addition to matching In addition to the degree, you can also determine the target resource that needs to be allocated to the user in conjunction with the time sequence of the user's snapping up. In step S106, the aforementioned target resource is sent to the terminal device. In implementation, after determining the target resource that needs to be allocated to the user in the resource library, the resource server can send the target resource to the terminal device. For example, a certain number of coupons can be sent to the terminal device, or it can be combined with The full discount coupon corresponding to the target resource (such as a coupon of 100 yuan minus 50 yuan or a coupon of 100 yuan minus 20 yuan, etc.) is sent to the terminal device, or you can send relevant information about a designated commodity that is snapped up To terminal equipment, etc. As shown in Figure 3, an embodiment of the present invention provides a resource allocation method. The execution subject of the method can be a terminal device, where the terminal device can be a mobile terminal device such as a mobile phone or a tablet computer, or a terminal such as a personal computer. Device, the method may specifically include the following steps: In step S302, the gesture motion data input by the user based on the reference gesture data is acquired. In implementation, when the user needs to request the resource server to allocate resources for the user, the user can trigger the resource allocation mechanism in the resource server, and the resource server activates the resource allocation mechanism, and according to the preset in the resource allocation mechanism The gesture action rule assigns a gesture action to the user, that is, a reference gesture action can be randomly generated according to a preset gesture action rule, and the relevant data of the generated reference gesture action can be sent to the user, and the user can use the terminal device Display the relevant data of the reference gesture. The user’s terminal device is provided with a corresponding sensor (such as an IMU sensor, etc.). After the terminal device receives the relevant data of the reference gesture action, it can use the sensor to detect the user based on the reference gesture action Out of gestures. In step S304, the aforementioned gesture action data is sent to the resource server. In step S306, the target resource allocated to the user based on the gesture motion data sent by the resource server is received. For the specific processing of the above step S306, please refer to the related content of the above step S104 and step S106, which will not be repeated here. The embodiment of the present invention provides a resource allocation method, which determines the degree of matching between the gesture motion data and the reference gesture data based on the gesture motion data input by the user on the terminal device, and determines that the resource library needs to be allocated according to the matching degree Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. Embodiment 2 As shown in Figure 4, this embodiment of the present invention provides a resource allocation method, which can be executed by a terminal device and a resource server. The terminal device can be a mobile terminal device such as a mobile phone or a tablet computer. It can be a terminal device such as a personal computer. The resource server can be an independent server or a server cluster composed of multiple servers. The method specifically includes the following content: In step S402, the resource server obtains reference gesture data for resource allocation. The above-mentioned methods for obtaining reference gesture data may include multiple methods. Two optional processing methods are provided below, which specifically may include the following method 1 and method 2. Manner 1: The resource server receives the reference gesture data input by the management user for resource allocation. Among them, the management user may be the manager of the resource to be allocated, such as a merchant that issues coupons or a user who issues red envelopes. In the implementation, if the management user needs to allocate resources to the user who initiates the resource allocation, in order to improve the user experience and the efficiency of resource allocation, resource allocation can be done through gesture actions. For this reason, the management user can set multiple Benchmark gesture data. A benchmark gesture setting page can be set in a shopping website or a resource allocation website, and the management user can enter multiple benchmark gesture data set above in the setting page. After the setting is completed, the management user can send the above setting page to the resource server The resource server can extract and save multiple benchmark gesture data. Manner 2: The resource server generates reference gesture data for resource allocation according to the allocation gesture rule for resource allocation to the user. Wherein, the gesture allocation rule may be a rule for reference gesture data generated for resource allocation. The allocating gesture rule may be a rule that restricts the generation of reference gesture data. For example, the reference gesture data is an irregular motion track, that is, the reference gesture data generated by the allocation gesture rule is not a regular motion track such as a square, rectangle, or circle. The allocating gesture rule can also be a rule that includes one or more reference gesture data. For example, the allocating gesture rule can be set according to the needs of the management user or the actual situation. For example, the management user can pre-register the resource server according to the actual situation. One or more reference gesture data can be set in the server, or a variety of selectable reference gesture data can be provided in the resource server, and the management user can select one or more reference gesture data as the reference for the user to allocate resources Gesture information. In step S404, the resource server sends a resource allocation notification message to the terminal device, and the resource allocation notification message includes the aforementioned reference gesture data. In implementation, the resource server can send resource allocation notification messages in a variety of ways, such as setting up corresponding advertisements on shopping websites, or sending resource allocation notification messages through social groups (such as friends or friend groups in instant messaging applications). Group, etc.) or online forums, etc. to be announced to users. When the user logs in to the relevant website or launches the application, he will find the resource allocation notification message. If the user is interested in the content, he can perform the following step S406 and its subsequent related content. If the user is not interested in the content , The user can ignore the resource allocation notification message or close the corresponding page. It should be noted that the resource allocation notification message may include the aforementioned reference gesture data, and the reference gesture data may be stored in the terminal device as a template. In addition, the terminal device may receive a resource allocation notification message sent by the resource server, where the resource allocation notification message includes the reference gesture data. In step S406, when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired, the terminal device detects and acquires the gesture motion data input by the user based on the reference gesture data. Wherein, the resource allocation instruction may be an instruction to request the terminal device to perform resource allocation. In implementation, the page where the resource allocation notification message is located can also include a participation button and a rejection button. If the user needs to request the resource server to allocate resources for the user, the user can click the participation button in the above page. , The terminal device can generate a resource allocation instruction, and at the same time, the terminal device can display the relevant data of the reference gesture action through the terminal device. The user’s terminal device is provided with a corresponding sensor (such as an IMU sensor, etc.). After the terminal device receives the relevant data of the reference gesture action, it can use the sensor to detect the user based on the reference gesture action Out of gestures. Then, the user can make a corresponding gesture action on the display screen of the terminal device according to the reference gesture action output by the resource server. The specific processing method of the foregoing step S406 is not limited to the implementation in the foregoing manner. In practical applications, the specific processing of the foregoing step S406 may also be implemented in the following manner, which may specifically include the following steps 1 and 2. Step 1: Collect the sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor. Step 2: Perform trajectory restoration processing on the above-mentioned sensing data according to the trajectory restoration algorithm to obtain the gesture motion data input by the user. In the implementation, the gesture acquisition sensor collects only one kind of signal data, that is, the sensing data, not the trajectory of the gesture action. Therefore, in order to obtain the gesture action data input by the user, the trajectory restoration algorithm can be preset. The terminal device can perform trajectory restoration processing on the above-mentioned sensing data through a trajectory restoration algorithm, and finally obtain the gesture motion data input by the user. In step S408, the terminal device sends the aforementioned gesture motion data to the resource server. In step S410, the resource server determines the degree of matching between the aforementioned gesture action data and the reference gesture data through a trajectory matching algorithm. The trajectory matching algorithm is a handwriting recognition algorithm, an image similarity algorithm or a OneDollar trajectory recognition algorithm. law. In implementation, in order to ensure the security of the user’s account, a trajectory matching algorithm can be set in the resource server. The trajectory matching algorithm can include multiple types, such as handwriting recognition algorithm, image similarity algorithm, and OneDollar trajectory recognition Algorithm. For different recognition types (such as handwriting recognition or image recognition, etc.), it can correspond to the corresponding trajectory matching algorithm. For example, the resource server can be equipped with 3 trajectory matching algorithms, namely handwriting recognition algorithm and image similarity calculation Method and OneDollar trajectory recognition algorithm. If the gesture movement data input by the user is recorded in the form of handwriting, the handwriting recognition algorithm can be used to determine the degree of match between the aforementioned gesture movement data and the reference gesture data. The gesture movement data is recorded in the form of images, and the degree of matching between the gesture movement data and the reference gesture data can be determined through an image similarity algorithm. In step S412, according to the aforementioned matching degree, a resource allocation ratio corresponding to the matching degree is determined. For the specific processing of the foregoing step S412, reference may be made to the related content of step S104 and Table 1 in the foregoing embodiment 1, which will not be repeated here. It should be noted that, in addition to determining the target resource that needs to be allocated to the user through the matching degree, the resource allocation factor can also be combined to determine the target resource that needs to be allocated to the user. Correspondingly, the following content can be included: The degree and the resource allocation factor corresponding to the user determine the target resource that needs to be allocated to the user in the resource library. The resource allocation factor corresponding to the user includes at least one or two of the following: random allocation factor and time sequence of receiving resource acquisition requests. Wherein, the random allocation factor may be an element or parameter used to characterize random allocation of resources. The time sequence of receiving the resource acquisition request can characterize the sequence of resource allocation to a certain extent, and can be used in a first-come, first-served resource allocation scenario. In step S414, the resource corresponding to the aforementioned resource allocation ratio is obtained from the resource library as the target resource that needs to be allocated to the user. For the specific processing of the foregoing step S414, reference may be made to the related content of step S104, Table 1, and step S106 in the foregoing embodiment 1, which will not be repeated here. The embodiment of the present invention provides a resource allocation method, which determines the degree of matching between the gesture motion data and the reference gesture data based on the gesture motion data input by the user on the terminal device, and determines that the resource library needs to be allocated according to the matching degree Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. Embodiment 3 The above is the resource allocation method provided by the embodiment of the present invention. Based on the same idea, the embodiment of the present invention also provides a resource allocation device, as shown in FIG. 5. The resource allocation device includes: a gesture acquisition module 501, a resource allocation module 502, and a resource sending module 503, wherein: the gesture acquisition module 501 is used to acquire gesture motion data input by a user on a terminal device; resource allocation The module 502 is used to determine the degree of matching between the gesture motion data and the reference gesture data, and according to the degree of matching, determine the target resource in the resource library that needs to be allocated to the user; the resource sending module 503 uses Send the target resource to the terminal device. In the embodiment of the present invention, the resource allocation module 502 is configured to determine the target resource in the resource library that needs to be allocated to the user according to the matching degree and the resource allocation factor corresponding to the user. The resource allocation factor corresponding to the user includes at least one or two of the following: a random allocation factor and a time sequence of receiving resource acquisition requests. In the embodiment of the present invention, the device further includes: a reference gesture acquisition module for acquiring reference gesture data for resource allocation; a message sending module for sending a resource allocation notification message to the terminal device, so The resource allocation notification message includes the reference gesture data. In the embodiment of the present invention, the reference gesture acquisition module is configured to receive reference gesture data input by the management user for resource allocation; or, generate the reference gesture data for resource allocation according to a resource allocation rule for the user. Assigned reference gesture data. In the embodiment of the present invention, the resource allocation module 502 is used to determine the degree of matching between the gesture action data and the reference gesture data through a trajectory matching algorithm. The trajectory matching algorithm is a handwriting recognition algorithm, a graph Like similarity algorithm or OneDollar trajectory recognition algorithm. In the embodiment of the present invention, the resource allocation module 502 includes: an allocation ratio determination unit, configured to determine a resource allocation ratio corresponding to the degree of matching according to the degree of matching; The resource corresponding to the resource allocation ratio is acquired from the resource library as the target resource that needs to be allocated to the user. The embodiment of the present invention provides a resource allocation device, which determines the matching degree between the gesture motion data and the reference gesture data based on the gesture motion data input by the user on the terminal device, and determines that the resource database needs to be allocated according to the matching degree Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. Embodiment 4 Based on the same idea, an embodiment of the present invention also provides a resource allocation device, as shown in FIG. 6. The resource allocation device includes: a gesture acquisition module 601, a sending module 602, and a receiving module 603, wherein: the gesture acquisition module 601 is used to acquire gesture motion data input by the user based on the reference gesture data; the sending module 602 , For sending the gesture action data to the resource server; the receiving module 603, for receiving the target resource allocated to the user based on the gesture action data sent by the resource server. In the embodiment of the present invention, the receiving module 603 is configured to receive a resource allocation notification message sent by the resource server, and the resource allocation notification message includes the reference gesture data; the gesture acquisition module 601, It is used for detecting and acquiring gesture motion data input by the user based on the reference gesture data when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired. In the embodiment of the present invention, the gesture acquisition module 601 includes: a sensing data acquisition unit for collecting sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor; trajectory restoration module , For performing trajectory restoration processing on the sensing data according to a trajectory restoration algorithm to obtain gesture motion data input by the user. The embodiment of the present invention provides a resource allocation device, which determines the matching degree between the gesture motion data and the reference gesture data based on the gesture motion data input by the user on the terminal device, and determines that the resource database needs to be allocated according to the matching degree Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. Embodiment 5 Based on the same idea, an embodiment of the present invention also provides a resource allocation device, as shown in FIG. 7. The resource allocation device may be the resource server provided in the foregoing embodiment, etc. The resource allocation equipment may have relatively large differences due to different configurations or performances, and may include one or more processors 701 and storage 702, and the storage 702 may store one or more storage applications or data. Among them, the storage 702 may be short-term storage or permanent storage. The application program stored in the storage 702 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions for the resource allocation device. Furthermore, the processor 701 may be configured to communicate with the storage 702 and execute a series of computer executable instructions in the storage 702 on the resource allocation device. The resource allocation device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, and one or more keyboards 706. Specifically, in this embodiment, the resource allocation device includes a memory and one or more programs, one or more programs are stored in the memory, and one or more programs may include one or more modules, And each module may include a series of computer-executable instructions in the resource allocation device, and the one or more programs configured to be executed by one or more processors include computer-executable instructions for performing the following: The gesture action data input by the user on the terminal device; determine the degree of matching between the gesture action data and the reference gesture data, and determine the target resource in the resource library that needs to be allocated to the user according to the degree of matching; The target resource is sent to the terminal device. Optionally, when the executable instruction is executed, the processor may further: determine the resource allocation factor in the resource library that needs to be allocated to the user according to the matching degree and the resource allocation factor corresponding to the user For the target resource, the resource allocation factor corresponding to the user includes at least one or two of the following: a random allocation factor and a time sequence of receiving the resource acquisition request. Optionally, when the executable instruction is executed, the processor may also cause the processor to: obtain reference gesture data for resource allocation; send a resource allocation notification message to the terminal device, the resource allocation notification message Includes the reference gesture data. Optionally, when the executable instruction is executed, the processor may further cause the processor to: receive reference gesture data input by the management user for resource allocation; or, according to the allocation gesture for resource allocation to the user The rule generates reference gesture data for resource allocation. Optionally, when the executable instruction is executed, the processor may also be caused to: determine the degree of matching between the gesture action data and the reference gesture data through a trajectory matching algorithm, the trajectory matching algorithm being Handwriting recognition algorithm, image similarity algorithm or OneDollar trajectory recognition algorithm. Optionally, when the executable instruction is executed, the processor may further: determine, according to the matching degree, a resource allocation ratio corresponding to the matching degree; and obtain from the resource library and the The resource corresponding to the resource allocation ratio is used as the target resource that needs to be allocated to the user. The embodiment of the present invention provides a resource allocation device, which determines the matching degree between the gesture motion data and the reference gesture data through the gesture motion data input by the user on the terminal device, and according to the matching degree, determines that the resource pool needs to be allocated Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. Embodiment 6 Based on the same idea, an embodiment of the present invention also provides a resource allocation device, as shown in FIG. 8. The resource allocation device may be the terminal device provided in the foregoing embodiment or the like. The resource allocation device may have relatively large differences due to different configurations or performances, and may include one or more processors 801 and storage 802, and the storage 802 may store one or more storage applications or data. Among them, the storage 802 may be short-term storage or permanent storage. The application program stored in the storage 802 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions for the resource allocation device. Furthermore, the processor 801 may be configured to communicate with the storage 802, and execute a series of computer-executable instructions in the storage 802 on the resource allocation device. The resource allocation device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input and output interfaces 805, and one or more keyboards 806. Specifically, in this embodiment, the resource allocation device includes a memory and one or more programs, one or more programs are stored in the memory, and one or more programs may include one or more modules, And each module may include a series of computer-executable instructions in the resource allocation device, and the one or more programs configured to be executed by one or more processors include computer-executable instructions for performing the following: The gesture action data input based on the reference gesture data; sending the gesture action data to the resource server; receiving the target resource allocated to the user based on the gesture action data sent by the resource server. Optionally, when the executable instruction is executed, the processor may also cause the processor to: receive a resource allocation notification message sent by the resource server, where the resource allocation notification message includes the reference gesture data; The acquiring gesture action data input by the user based on the reference gesture data includes: when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired, detecting and acquiring the gesture action input by the user based on the reference gesture data data. Optionally, when the executable instruction is executed, the processor may also cause the processor to: collect through the gesture acquisition sensor the sensing data corresponding to the gesture input by the user based on the reference gesture data; The sensing data is subjected to trajectory restoration processing to obtain gesture motion data input by the user. The embodiment of the present invention provides a resource allocation device, which determines the matching degree between the gesture motion data and the reference gesture data through the gesture motion data input by the user on the terminal device, and according to the matching degree, determines that the resource pool needs to be allocated Give the user’s target resource, and finally send the target resource to the terminal device. In this way, the user’s gesture action data is matched with the reference gesture data to allocate resources to the user. In the process, the user’s sense of participation is enhanced, which improves the user’s controllability of resource allocation. Moreover, the above-mentioned resource allocation method is not easily broken by cheating methods such as automated scripts, which improves the convenience and interest of resource allocation. The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the attached patent application. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order from the embodiment and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous. In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (for the method and process Improve). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD, without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing, but requires compilation. The previous source code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one HDL, but there are many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., currently the most Commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logic programming of the method flow in the above hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow. The controller can be implemented in any suitable manner. For example, the controller can be a microprocessor or a processor and a computer readable program code (such as software or firmware) that can be executed by the (micro) processor. Media, logic gates, switches, application specific integrated circuits (ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, dedicated integrated circuits, programmable logic controllers and Embedded in the form of a microcontroller, etc. to achieve the same function. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component. The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, and a wearable device. Or any combination of these devices. For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and/or hardware. Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. . The present invention is described with reference to flowcharts and/or block diagrams of methods, equipment (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, dedicated computers, embedded processors, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one or more processes in the flowchart and/or one block or more in the block diagram. These computer program instructions can also be stored in a computer-readable storage that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable storage produce a manufactured product including the instruction device, The instruction device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram. These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, which can be executed on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in one flow or multiple flows in the flowchart and/or one block or multiple blocks in the block diagram. In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash random access memory Body (flash RAM). Memory is an example of computer-readable media. Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital multi-function disc (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves. It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element. Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may be in the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. . The invention can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices. The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the description of the method embodiment. The foregoing descriptions are merely embodiments of the present invention, and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the patent application of the present invention.

S102‧‧‧步驟 S104‧‧‧步驟 S106‧‧‧步驟 S302‧‧‧步驟 S304‧‧‧步驟 S306‧‧‧步驟 S402‧‧‧步驟 S404‧‧‧步驟 S406‧‧‧步驟 S408‧‧‧步驟 S410‧‧‧步驟 S412‧‧‧步驟 S414‧‧‧步驟 501‧‧‧手勢獲取模組 502‧‧‧資源分配模組 503‧‧‧資源發送模組 601‧‧‧手勢獲取模組 602‧‧‧發送模組 603‧‧‧接收模組 701‧‧‧處理器 702‧‧‧儲存器 703‧‧‧電源 704‧‧‧有線或無線網路介面 705‧‧‧輸入輸出介面 706‧‧‧鍵盤 801‧‧‧處理器 802‧‧‧儲存器 803‧‧‧電源 804‧‧‧有線或無線網路介面 805‧‧‧輸入輸出介面 806‧‧‧鍵盤S102‧‧‧Step S104‧‧‧Step S106‧‧‧Step S302‧‧‧Step S304‧‧‧Step S306‧‧‧Step S402‧‧‧Step S404‧‧‧Step S406‧‧‧Step S408‧‧‧Step S410‧‧‧Step S412‧‧‧Step S414‧‧‧Step 501‧‧‧Gesture acquisition module 502‧‧‧Resource Allocation Module 503‧‧‧Resource Sending Module 601‧‧‧Gesture acquisition module 602‧‧‧Send module 603‧‧‧Receiving Module 701‧‧‧Processor 702‧‧‧Storage 703‧‧‧Power 704‧‧‧Wired or wireless network interface 705‧‧‧Input and output interface 706‧‧‧Keyboard 801‧‧‧Processor 802‧‧‧Storage 803‧‧‧Power 804‧‧‧Wired or wireless network interface 805‧‧‧Input and output interface 806‧‧‧Keyboard

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些附圖獲得其他的附圖。 圖1為本發明一種資源分配方法實施例; 圖2A為本發明一種資源分配的顯示介面示意圖; 圖2B為本發明一種匹配度為90%的顯示介面示意圖; 圖2C為本發明一種匹配度為50%的顯示介面示意圖; 圖3為本發明另一種資源分配方法實施例; 圖4為本發明又一種資源分配方法實施例; 圖5為本發明一種資源分配裝置實施例; 圖6為本發明另一種資源分配裝置實施例; 圖7為本發明一種資源分配設備實施例;以及 圖8為本發明另一種資源分配設備實施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are merely present For some of the embodiments described in the invention, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor. Figure 1 is an embodiment of a resource allocation method of the present invention; 2A is a schematic diagram of a display interface for resource allocation according to the present invention; 2B is a schematic diagram of a display interface with a matching degree of 90% according to the present invention; 2C is a schematic diagram of a display interface with a matching degree of 50% according to the present invention; Figure 3 is an embodiment of another resource allocation method of the present invention; Figure 4 is another embodiment of a resource allocation method according to the present invention; Figure 5 is an embodiment of a resource allocation device of the present invention; Figure 6 is another embodiment of a resource allocation device according to the present invention; Figure 7 is an embodiment of a resource allocation device of the present invention; and Fig. 8 is another embodiment of a resource allocation device of the present invention.

Claims (18)

一種資源分配方法,其特徵在於,所述方法包括:向使用者展示基準手勢資料;獲取所述使用者在終端設備上輸入的手勢動作資料;確定所述手勢動作資料與所述基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源;以及將所述目標資源發送給所述終端設備;其中,所述根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源,包括:根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 A resource allocation method, characterized in that, the method comprises: displaying reference gesture data to a user; acquiring gesture motion data input by the user on a terminal device; determining the difference between the gesture motion data and the reference gesture data According to the matching degree, determine the target resource in the resource library that needs to be allocated to the user; and send the target resource to the terminal device; wherein, according to the matching degree, determine The target resource that needs to be allocated to the user in the resource library includes: determining the target resource that needs to be allocated to the user in the resource library according to the matching degree and the resource allocation factor corresponding to the user, and the use The resource allocation factor corresponding to the user includes at least one or two of the following: a random allocation factor and a time sequence of receiving resource acquisition requests. 根據請求項1所述的方法,其中,所述獲取使用者在終端設備上輸入的手勢動作資料之前,所述方法還包括:獲取用於進行資源分配的基準手勢資料;以及向所述終端設備發送資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 The method according to claim 1, wherein, before the acquiring the gesture motion data input by the user on the terminal device, the method further includes: acquiring reference gesture data for resource allocation; and reporting to the terminal device Sending a resource allocation notification message, the resource allocation notification message including the reference gesture data. 根據請求項2所述的方法,其中,所述獲取用於進行資源分配的基準手勢資料,包括: 接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者,根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 The method according to claim 2, wherein the obtaining reference gesture data for resource allocation includes: Receive the reference gesture data for resource allocation input by the management user; or generate reference gesture data for resource allocation according to the allocation gesture rule for resource allocation to the user. 根據請求項1至3中任一項所述的方法,其中,所述確定所述手勢動作資料與基準手勢資料之間的匹配度,包括:通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 The method according to any one of claims 1 to 3, wherein the determining the degree of matching between the gesture movement data and the reference gesture data includes: determining the gesture movement data and the reference gesture through a trajectory matching algorithm For the matching degree between gesture data, the trajectory matching algorithm is a handwriting recognition algorithm, an image similarity algorithm, or a OneDollar trajectory recognition algorithm. 根據請求項4所述的方法,其中,所述根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源,包括:根據所述匹配度,確定與所述匹配度相應的資源分配比例;以及從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 The method according to claim 4, wherein the determining, according to the matching degree, the target resource that needs to be allocated to the user in the resource library includes: determining, according to the matching degree, the corresponding Resource allocation ratio; and obtaining the resource corresponding to the resource allocation ratio from the resource library as the target resource that needs to be allocated to the user. 一種資源分配方法,其特徵在於,所述方法包括:向使用者展示基準手勢資料;獲取所述使用者基於所述基準手勢資料輸入的手勢動作資料; 向資源伺服器發送所述手勢動作資料;以及接收所述資源伺服器發送的基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配的目標資源;其中,所述資源伺服器基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配目標資源,包括:根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 A method for resource allocation, characterized in that the method comprises: displaying reference gesture data to a user; acquiring gesture motion data input by the user based on the reference gesture data; Sending the gesture action data to the resource server; and receiving the target resource allocated to the user based on the degree of match between the gesture action data and the reference gesture data sent by the resource server; wherein, The resource server allocates target resources to the user based on the degree of matching between the gesture motion data and the reference gesture data, including: determining the resource according to the degree of matching and a resource allocation factor corresponding to the user The target resource that needs to be allocated to the user in the library, and the resource allocation factor corresponding to the user includes at least one or two of the following: a random allocation factor and a time sequence of receiving resource acquisition requests. 根據請求項6所述的方法,其中,所述獲取使用者基於基準手勢資料輸入的手勢動作資料之前,所述方法還包括:接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料;所述獲取使用者基於基準手勢資料輸入的手勢動作資料,包括:以及當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 The method according to claim 6, wherein before the acquiring the gesture action data input by the user based on the reference gesture data, the method further includes: receiving a resource allocation notification message sent by the resource server, and the resource allocation The notification message includes the reference gesture data; the acquisition of the gesture motion data input by the user based on the reference gesture data includes: and when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired, detecting and acquiring The gesture motion data input by the user based on the reference gesture data. 根據請求項7所述的方法,其中,所述獲取使用者基 於基準手勢資料輸入的手勢動作資料,包括:通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料;以及根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 The method according to claim 7, wherein the acquiring user base The gesture motion data input in the reference gesture data includes: collecting the sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor; and performing trajectory restoration processing on the sensed data according to the trajectory restoration algorithm , Get the gesture action data input by the user. 一種資源分配裝置,其特徵在於,所述裝置包括:手勢獲取模組,用於向使用者展示基準手勢資料,並獲取所述使用者在終端設備上輸入的手勢動作資料;資源分配模組,用於確定所述手勢動作資料與所述基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源;以及資源發送模組,用於將所述目標資源發送給所述終端設備;其中,所述資源分配模組,用於根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 A resource allocation device, characterized in that the device includes a gesture acquisition module, which is used to display reference gesture data to a user and acquire gesture motion data input by the user on a terminal device; a resource allocation module, It is used to determine the degree of matching between the gesture action data and the reference gesture data, and according to the degree of matching, determine the target resource in the resource library that needs to be allocated to the user; and a resource sending module for sending The target resource is sent to the terminal device; wherein, the resource allocation module is configured to determine the resource allocation factor in the resource library that needs to be allocated to the user according to the matching degree and the resource allocation factor corresponding to the user For the target resource, the resource allocation factor corresponding to the user includes at least one or two of the following: a random allocation factor and a time sequence of receiving the resource acquisition request. 根據請求項9所述的裝置,其中,所述裝置還包括:基準手勢獲取模組,用於獲取用於進行資源分配的基準手勢資料;以及訊息發送模組,用於向所述終端設備發送資源分配通 知訊息,所述資源分配通知訊息中包括所述基準手勢資料。 The device according to claim 9, wherein the device further includes: a reference gesture acquisition module for acquiring reference gesture data for resource allocation; and a message sending module for sending to the terminal device Resource allocation Notification message, the resource allocation notification message includes the reference gesture data. 根據請求項10所述的裝置,其中,所述基準手勢獲取模組,用於接收管理使用者輸入的用於進行資源分配的基準手勢資料;或者,根據對使用者進行資源分配的分配手勢規則產生用於進行資源分配的基準手勢資料。 The device according to claim 10, wherein the reference gesture acquisition module is configured to receive reference gesture data input by a management user for resource allocation; or, according to the allocation gesture rule for resource allocation to the user Generate reference gesture data for resource allocation. 根據請求項9至11中任一項所述的裝置,其中,所述資源分配模組,用於通過軌跡匹配演算法確定所述手勢動作資料與基準手勢資料之間的匹配度,所述軌跡匹配演算法為筆跡識別演算法、圖像相似度演算法或OneDollar軌跡識別演算法。 The device according to any one of claims 9 to 11, wherein the resource allocation module is configured to determine the degree of matching between the gesture action data and the reference gesture data through a trajectory matching algorithm, and the trajectory The matching algorithm is a handwriting recognition algorithm, an image similarity algorithm or a OneDollar trajectory recognition algorithm. 根據請求項12所述的裝置,其中,所述資源分配模組,包括:分配比例確定單元,用於根據所述匹配度,確定與所述匹配度相應的資源分配比例;以及資源分配單元,用於從所述資源庫中獲取與所述資源分配比例對應的資源作為需要分配給所述使用者的目標資源。 The device according to claim 12, wherein the resource allocation module includes: an allocation ratio determining unit, configured to determine a resource allocation ratio corresponding to the matching degree according to the matching degree; and a resource allocation unit, It is used to obtain the resource corresponding to the resource allocation ratio from the resource library as the target resource that needs to be allocated to the user. 一種資源分配裝置,其特徵在於,所述裝置包括:手勢獲取模組,用於向使用者展示基準手勢資料,並 獲取所述使用者基於所述基準手勢資料輸入的手勢動作資料;發送模組,用於向資源伺服器發送所述手勢動作資料;以及接收模組,用於接收所述資源伺服器發送的基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配的目標資源;其中,所述資源伺服器基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配目標資源,包括:根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 A resource allocation device, characterized in that the device includes a gesture acquisition module for displaying reference gesture data to a user, and Obtain the gesture action data input by the user based on the reference gesture data; a sending module for sending the gesture action data to the resource server; and a receiving module for receiving the gesture action data sent by the resource server The degree of match between the gesture action data and the reference gesture data is a target resource allocated by the user; wherein the resource server is based on the degree of match between the gesture action data and the reference gesture data Allocating target resources to the user includes: determining the target resources that need to be allocated to the user in the resource library according to the matching degree and the resource allocation factor corresponding to the user, and the resource allocation corresponding to the user The factors include at least one or two of the following: a random allocation factor and a time sequence of receiving resource acquisition requests. 根據請求項14所述的裝置,其中,所述接收模組,用於接收所述資源伺服器發送的資源分配通知訊息,所述資源分配通知訊息中包括所述基準手勢資料;以及所述手勢獲取模組,用於當獲取到所述使用者針對資源分配通知訊息觸發的資源分配指令時,檢測並獲取使用者基於所述基準手勢資料輸入的手勢動作資料。 The device according to claim 14, wherein the receiving module is configured to receive a resource allocation notification message sent by the resource server, and the resource allocation notification message includes the reference gesture data; and the gesture The acquiring module is used for detecting and acquiring gesture motion data input by the user based on the reference gesture data when the resource allocation instruction triggered by the user for the resource allocation notification message is acquired. 根據請求項15所述的裝置,其中,所述手勢獲取模組,包括: 感測資料獲取單元,用於通過手勢採集感測器採集使用者基於基準手勢資料輸入的手勢對應的感測資料;以及軌跡還原模組,用於根據軌跡還原演算法對所述感測資料進行軌跡還原處理,得到使用者輸入的手勢動作資料。 The device according to claim 15, wherein the gesture acquisition module includes: The sensing data acquisition unit is used to collect the sensing data corresponding to the gesture input by the user based on the reference gesture data through the gesture acquisition sensor; and the trajectory restoration module is used to perform the sensing data according to the trajectory restoration algorithm The trajectory restoration process obtains the gesture motion data input by the user. 一種資源分配設備,所述設備包括:處理器;以及被安排成儲存電腦可執行指令的儲存器,所述可執行指令在被執行時使所述處理器執行以下操作:向使用者展示基準手勢資料;獲取所述使用者在終端設備上輸入的手勢動作資料;確定所述手勢動作資料與所述基準手勢資料之間的匹配度,根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源;以及將所述目標資源發送給所述終端設備;其中,所述根據所述匹配度,確定資源庫中需要分配給所述使用者的目標資源,包括:根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。 A resource allocation device, the device comprising: a processor; and a memory arranged to store computer executable instructions, which when executed, cause the processor to perform the following operations: show a reference gesture to a user Data; obtain the gesture action data input by the user on the terminal device; determine the degree of matching between the gesture action data and the reference gesture data, and according to the degree of matching, determine that the resource library needs to be allocated to the The target resource of the user; and sending the target resource to the terminal device; wherein the determining the target resource in the resource library that needs to be allocated to the user according to the matching degree includes: according to the matching Degree and the resource allocation factor corresponding to the user, determine the target resource that needs to be allocated to the user in the resource library, and the resource allocation factor corresponding to the user includes at least one or two of the following: random allocation factor and received resource Get the time sequence of the request. 一種資源分配設備,所述設備包括: 處理器;以及被安排成儲存電腦可執行指令的儲存器,所述可執行指令在被執行時使所述處理器執行以下操作:向使用者展示基準手勢資料;獲取所述使用者基於所述基準手勢資料輸入的手勢動作資料;向資源伺服器發送所述手勢動作資料;以及接收所述資源伺服器發送的基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配的目標資源;其中,所述資源伺服器基於所述手勢動作資料與所述基準手勢資料之間的匹配度為所述使用者分配目標資源,包括:根據所述匹配度和所述使用者對應的資源分配因子,確定資源庫中需要分配給所述使用者的目標資源,所述使用者對應的資源分配因子至少包括以下一種或兩種:隨機分配因子和接收資源獲取請求的時間順序。A resource allocation device, the device includes: A processor; and a storage arranged to store computer-executable instructions that, when executed, cause the processor to perform the following operations: show reference gesture data to the user; obtain the user based on the The gesture action data input by the reference gesture data; sending the gesture action data to the resource server; and receiving the gesture action data sent by the resource server based on the degree of match between the gesture action data and the reference gesture data is the use The target resource allocated by the user; wherein the resource server allocates the target resource to the user based on the matching degree between the gesture motion data and the reference gesture data, including: according to the matching degree and the usage The resource allocation factor corresponding to the user determines the target resource that needs to be allocated to the user in the resource library. The resource allocation factor corresponding to the user includes at least one or two of the following: random allocation factor and time sequence of receiving resource acquisition requests .
TW107134753A 2017-12-05 2018-10-02 Resource allocation method, device and equipment TWI697840B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201711264262.9 2017-12-05
??201711264262.9 2017-12-05
CN201711264262.9A CN108196952B (en) 2017-12-05 2017-12-05 Resource allocation method, device and equipment

Publications (2)

Publication Number Publication Date
TW201926034A TW201926034A (en) 2019-07-01
TWI697840B true TWI697840B (en) 2020-07-01

Family

ID=62573634

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107134753A TWI697840B (en) 2017-12-05 2018-10-02 Resource allocation method, device and equipment

Country Status (3)

Country Link
CN (2) CN111880927B (en)
TW (1) TWI697840B (en)
WO (1) WO2019109737A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880927B (en) * 2017-12-05 2024-02-06 创新先进技术有限公司 Resource allocation method, device and equipment
CN109284714A (en) * 2018-09-21 2019-01-29 上海掌门科技有限公司 Method is provided and is got in a kind of distribution of virtual objects
CN109246225A (en) * 2018-09-25 2019-01-18 上海掌门科技有限公司 Method is provided and got to a kind of resource allocation
CN111027348A (en) * 2018-10-10 2020-04-17 百度在线网络技术(北京)有限公司 Lottery drawing method, device, equipment and storage medium
CN109714357A (en) * 2019-01-14 2019-05-03 上海掌门科技有限公司 Method and apparatus for distributing resource
TW202111596A (en) * 2019-09-03 2021-03-16 財團法人資訊工業策進會 System, method and non-transitory computer readable medium for labeling motion data
CN113127522B (en) * 2019-12-31 2024-05-10 阿里巴巴集团控股有限公司 Data processing method, device, system and storage medium
CN111445289B (en) * 2020-03-31 2024-05-28 深圳前海微众银行股份有限公司 Resource release method, device, equipment and storage medium
CN112099956B (en) * 2020-09-27 2024-07-30 中国建设银行股份有限公司 Resource allocation method, device and equipment
CN112288246B (en) * 2020-10-20 2024-07-09 中建科技集团有限公司 Resource allocation method, terminal and storage medium
CN112560777A (en) * 2020-12-25 2021-03-26 北京思特奇信息技术股份有限公司 Method and system for triggering card ticket fetching and electronic equipment
CN113127198A (en) * 2021-04-16 2021-07-16 建信金融科技有限责任公司 Task processing method, device and equipment
CN113343148B (en) * 2021-06-18 2023-12-01 上海哔哩哔哩科技有限公司 Resource processing method, client, server and system
CN113935773A (en) * 2021-10-15 2022-01-14 口碑(上海)信息技术有限公司 Electronic resource object processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336658A (en) * 2012-05-31 2013-10-02 腾讯科技(深圳)有限公司 Unlocking method and unlocking device for touch screen of terminal equipment
CN106920092A (en) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 A kind of virtual resource allocation method, client and server

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5236559B2 (en) * 2009-03-31 2013-07-17 株式会社コナミデジタルエンタテインメント Music performance game apparatus and display control method for music performance game apparatus
US9183580B2 (en) * 2010-11-04 2015-11-10 Digimarc Corporation Methods and systems for resource management on portable devices
US8909567B2 (en) * 2012-02-20 2014-12-09 Xerox Corporation Method and system for the dynamic allocation of resources based on fairness, throughput, and user behavior measurement
WO2014065595A1 (en) * 2012-10-23 2014-05-01 엘지전자 주식회사 Image display device and method for controlling same
JP6233625B2 (en) * 2012-11-16 2017-11-22 ソニー株式会社 Audio processing apparatus and method, and program
US9274607B2 (en) * 2013-03-15 2016-03-01 Bruno Delean Authenticating a user using hand gesture
JP2015043141A (en) * 2013-08-26 2015-03-05 キヤノン株式会社 Gesture recognition device and control program
US9537805B2 (en) * 2014-03-27 2017-01-03 Dropbox, Inc. Activation of dynamic filter generation for message management systems through gesture-based input
US9547854B2 (en) * 2014-12-02 2017-01-17 Paypal, Inc. User-friendly transaction interface
CN104898981B (en) * 2015-06-29 2018-10-16 安一恒通(北京)科技有限公司 Gesture recognition method and device and terminal
CN104932697B (en) * 2015-06-30 2020-08-21 边缘智能研究院南京有限公司 Gesture unlocking method and device
CN107181784A (en) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 A kind of resource allocation methods and device
CN111880927B (en) * 2017-12-05 2024-02-06 创新先进技术有限公司 Resource allocation method, device and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336658A (en) * 2012-05-31 2013-10-02 腾讯科技(深圳)有限公司 Unlocking method and unlocking device for touch screen of terminal equipment
CN106920092A (en) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 A kind of virtual resource allocation method, client and server

Also Published As

Publication number Publication date
CN108196952B (en) 2020-06-05
CN111880927A (en) 2020-11-03
TW201926034A (en) 2019-07-01
CN111880927B (en) 2024-02-06
CN108196952A (en) 2018-06-22
WO2019109737A1 (en) 2019-06-13

Similar Documents

Publication Publication Date Title
TWI697840B (en) Resource allocation method, device and equipment
KR102236499B1 (en) Method and apparatus for allocating virtual resources
US9058563B1 (en) Suggesting activities
US20200329337A1 (en) Visitation tracking system
US20220237486A1 (en) Suggesting activities
JP6522343B2 (en) Pan animation
CN108229939B (en) Method, device and equipment for sending and receiving electronic red packets
US20180225026A1 (en) Interactive dynamic push notifications
KR20170041785A (en) Icon resizing
AU2015315402A1 (en) Parametric inertia and apis
WO2021223675A1 (en) Risk inspection
US11880954B2 (en) Methods and systems for generating digital smart objects for use in a three dimensional environment
CN107038618A (en) A kind of order generation method, device, server and computer-readable storage medium
TWI713825B (en) Data storage and calling method and device
WO2018060783A1 (en) Objective based advertisement placement platform
WO2020173275A1 (en) Information processing method, apparatus and device
WO2019071890A1 (en) Device, method, and computer readable storage medium for recommending product
CN107835114B (en) Information processing method, equipment and computer readable medium
TWI713019B (en) Data label generation, model training, event recognition method and device
WO2019072198A1 (en) Document sharing method, apparatus, and computer readable medium
US20160364753A1 (en) Retargeting based on user item interactions
WO2024037285A1 (en) Place service processing method and apparatus
JP7191997B2 (en) program, information processing method, terminal
JP7191996B2 (en) server, information processing method, program
US20210224715A1 (en) Cloud computing account management and control aggregation