CN105512614A - Game role generation method and device - Google Patents

Game role generation method and device Download PDF

Info

Publication number
CN105512614A
CN105512614A CN201510836564.3A CN201510836564A CN105512614A CN 105512614 A CN105512614 A CN 105512614A CN 201510836564 A CN201510836564 A CN 201510836564A CN 105512614 A CN105512614 A CN 105512614A
Authority
CN
China
Prior art keywords
face
data
player
model
source characteristic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510836564.3A
Other languages
Chinese (zh)
Inventor
李宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201510836564.3A priority Critical patent/CN105512614A/en
Publication of CN105512614A publication Critical patent/CN105512614A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships

Abstract

The embodiment of the invention discloses a game role generation method and a device. The method comprises the steps of acquiring the facial data of a player and adopting the facial data as the first facial data; according to the first facial data, calculating the data of the source characteristics of the five sense organs of the player and sending the data to a server, wherein the five sense organs of the player are composed of at least one of the eyes, the nose and the mouth of the player; respectively matching the data of the source characteristics of the five sense organs of the player with the corresponding characteristics data of five-sense-organ models in a game role database preset by the server and determining a five-sense-organ model matched with the player; setting the matched five-sense-organ model on the facial part of a game role model based on the data of the source characteristics, updating and displaying the data of a client. Based on the game role generation method and the device provided in the embodiments of the present invention, a game role similar to a player can be quickly and conveniently created, so that the time waste of the player is saved. Meanwhile, the player experience is improved.

Description

A kind of game role generation method and device
Technical field
The embodiment of the present invention relates to graphical analysis and recognition technology field, particularly relates to a kind of game role generation method and device.
Background technology
The all types of game of current home and overseas are all directly use 3 d modeling software to set up the model needed for game role, then for player provides the interactive interface of adjustment model parameter, the adjustment provided by interface has operated the customization of avatar model, is commonly called as and pinches face system.
Player by this pinch face system complete individual character role customize time because complicated operation, thus need spend the plenty of time.Meanwhile, when player wants to create with oneself alike role, difficulty is very large, thus causes player experience to decline.
Summary of the invention
The embodiment of the present invention provides a kind of game role generation method and device, can automatically create the game role alike with player quickly and easily, thus save player's waste of time, improves player experience.
First aspect, embodiments provide a kind of game role generation method, the method comprises:
Gather player's face data, and as first facial data;
Calculate the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face;
The character pair data of face model in game role database preset with server respectively for player's face source characteristic are mated, determines the face model mated;
By the face model of coupling, be arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
Second aspect, the embodiment of the present invention additionally provides a kind of game role generating apparatus, and this device comprises:
First facial data acquisition module, for gathering player's face data, and as first facial data;
Source characteristic computing module, for calculating the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face;
Characteristic matching module, for the character pair data of face model in game role database preset with server respectively for player's face source characteristic being mated, determines the face model mated;
Model arranges module, for the face model by coupling, is arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
The present invention is by mating the source characteristic of player's face with the characteristic of face model, find out the face model of coupling, and be arranged on the face of the avatar model of player, realize the game role automatically created quickly and easily and player is alike, thus save player's waste of time, improve player experience.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the game role generation method that the embodiment of the present invention one provides;
Fig. 2 is the process flow diagram of the game role generation method that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of the game role generating apparatus that the embodiment of the present invention three provides.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
Fig. 1 is the process flow diagram of the game role generation method that the embodiment of the present invention one provides, the present embodiment is applicable to the setting of game role, the method can be performed by game role generating apparatus, and this device realizes by the mode of hardware and/or software, specifically comprises the steps:
S110, collection player face data, and as first facial data;
Wherein, face data is the image comprising player's face by camera collection, the camera gathering face data can be one or more, preferably, the camera collection player face data of the USB (universal serial bus) utilizing two relative positions to fix, thus the integrality improving the player's face data gathered, such as, can binocular camera be selected, and using the face data of the complete face of player of acquisition as first facial data.Utilize the method for camera collection player face data can be multi-cam method for catching based on machine vision storehouse (OpenSourceComputerVisionLibrary, OpenCV) of increasing income.
S120, calculate the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face;
Wherein, source characteristic is the characteristic of player's face, and this source characteristic can comprise: the wide height of the position coordinates of face on face, face accounts for the aspect ratio value of the wide high ratio value of face and face.Such as, the wide height of the position coordinates of eyes on face, eyes accounts for the aspect ratio value of the wide high ratio value of face and eyes.Face can comprise at least one in eyes, nose and face, and preferably three all comprises.
S130, the character pair data of face model in game role database preset with server respectively for player's face source characteristic to be mated, determine the face model mated;
Wherein, at least comprise in the game role database that server is preset: face model characteristic of correspondence data and corresponding face model identify label number (Identity, ID).Face model characteristic of correspondence data are the data representing face feature, and homonome data consistent, can comprise: the wide height of the position coordinates of face on face, face accounts for the aspect ratio value of the wide high ratio value of face and face.The source characteristic of face is mated with face model characteristic of correspondence data separate matching algorithm, finds out the face model the most close with face source characteristic as the face model mated.This matching algorithm can be the algorithm of energy realization character coupling arbitrarily, and can be difference of two squares coupling, also can be relevant matches scheduling algorithm.
Such as, the source characteristic of eyes in the characteristic of player's face source is mated with eye model characteristic of correspondence data separate matching algorithm in game role database, finds out the eye model the most close with eyes source characteristic as the eye model of mating.The similar model can finding out nose and the face mated with player's nose and face.
S140, the face model that will mate, be arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
Wherein, be arranged on avatar model face according to source characteristic, can be according to the position coordinates of the face in the characteristic of source on face, the face model of coupling is arranged on the relevant position of avatar model face.
The technical scheme of the present embodiment, by the source characteristic of player's face is mated with the characteristic of face model, find out the face model of coupling, and be arranged on the face of the avatar model of player, realize the game role automatically created quickly and easily and player is alike, thus save player's waste of time, improve player experience.
Preferably, described collection player face data, and as before first facial data, can also comprise: the characteristic of the face model ID in preset game role database and corresponding face model.Wherein, model ID is face model identify label number.
Further, described by game role database preset with server respectively for the source characteristic of player's face, the character pair data of face model are mated, determine the face model mated, can comprise: the source characteristic of player's face is mated with the character pair data of face model in game role database respectively; Find out the most close face model ID by coupling, and recall described model according to the ID of described model.
Embodiment two
Fig. 2 is the process flow diagram of the game role generation method that the embodiment of the present invention two provides, and the game role generation method of the present embodiment is on the basis of above-described embodiment, and specialized further by S120, the method specifically comprises the steps:
S210, collection player face data, and as first facial data;
S220, Face datection is carried out to first facial data, judge whether there is face in first facial data;
Wherein, the Face datection function check face based on OpenCV can be utilized to first facial data, if face detected, perform S230, otherwise return execution S210, Resurvey player face data, and as first facial data.
If S230 exists, then remove non-face part, obtain the second face data;
There is face in these first facial data, can comprise: there is a face and there is multiple face.If there is a face, then can perform removal non-face part, obtain the second face data; If there is multiple face, then can retain and account for the maximum face of first facial data area ratio as player's face, other non-player people face part be removed, obtains the second face data.
S240, carry out pre-service to the second face data, obtain the 3rd face data, wherein pre-service at least comprises gray processing, smoothing processing and size normalization;
Wherein, carry out size normalization to the second face data, the size after this normalization can be consistent with avatar model face size, or in equal proportion relation, this pretreated process also can be realized by the function based on OpenCV.
S250, the width detecting face according to the 3rd face data, height and position coordinates, and the width and the height that calculate face, with the width of player's face and the ratio of height;
Wherein, OpenCV can be used to provide based on harr cascade classifier detection method, detect the width of face, height and position coordinates, and calculate width and the height of face, with width and the ratio highly of player's face.
S260, by the position coordinates of described face, and the ratio of the width of face and height and the width of player's face and height is as source characteristic, and source characteristic is sent to server;
S270, the character pair data of face model in game role database preset with server respectively for player's face source characteristic to be mated, determine the face model mated;
S280, the face model that will mate, be arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
The technical scheme of the present embodiment, by player's face data of collection being calculated the source characteristic of player's face, and its characteristic with face model is mated, find out the face model of coupling, finally be arranged on the face of the avatar model of player, realize the game role automatically created quickly and easily and player is alike, thus save player's waste of time, improve player experience.
Embodiment three
Fig. 3 is the structural representation of the game role generating apparatus that the embodiment of the present invention three provides, and the present embodiment is a kind of game role generating apparatus that the basis based on above-described embodiment proposes.This device specifically comprises: first facial data acquisition module 10, source characteristic computing module 20, characteristic matching module 30 and model arrange module 40.
Wherein, first facial data acquisition module 10, for gathering player's face data, and as first facial data; Source characteristic computing module 20, for calculating the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face; Characteristic matching module 30, for the character pair data of face model in game role database preset with server respectively for player's face source characteristic being mated, determines the face model mated; Model arranges module 40, for the face model by coupling, is arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
The technical scheme of the present embodiment, by the source characteristic of player's face is mated with the characteristic of face model, find out the face model of coupling, and be arranged on the face of the avatar model of player, realize the game role automatically created quickly and easily and player is alike, thus save player's waste of time, improve player experience.
Concrete, described source characteristic computing module 20, can comprise: judging unit, for carrying out Face datection to first facial data, judges whether there is face in first facial data; Second face data acquiring unit, if for there is face in first facial data, then remove non-face part, obtains the second face data; 3rd face data acquiring unit, for carrying out pre-service to the second face data, obtains the 3rd face data, and wherein pre-service at least comprises gray processing, smoothing processing and size normalization; Computing unit, for the width according to the 3rd face data detection face, height and position coordinates, and calculates width and the height of face, with the width of player's face and the ratio of height; Source characteristic transmitting element, for the position coordinates by described face, and the ratio of the width of face and height and the width of player's face and height is as source characteristic, and source characteristic is sent to server.
Preferably, can also preset module be comprised, for gathering player's face data, and as before first facial data, the characteristic of the face model ID in preset game role database and corresponding face model.
Further, described characteristic matching module 30, can comprise: matching unit, and described matching unit is used for the source characteristic of player's face to mate with the character pair data of face model in game role database respectively; Model recalls unit, and described model recalls unit for finding out the most close face model ID by coupling, and recalls described model according to described model ID.
Optionally, described first facial data acquisition module 10 can be specifically for: the camera collection player face data of the USB (universal serial bus) utilizing two relative positions to fix.
The said goods can perform the method that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (10)

1. a game role generation method, is characterized in that, comprising:
Gather player's face data, and as first facial data;
Calculate the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face;
The character pair data of face model in game role database preset with server respectively for player's face source characteristic are mated, determines the face model mated;
By the face model of coupling, be arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
2. method according to claim 1, is characterized in that, the described source characteristic calculating player's face according to first facial data, and sends to server, comprising:
Face datection is carried out to first facial data, judges whether there is face in first facial data;
If existed, then remove non-face part, obtain the second face data;
Carry out pre-service to the second face data, obtain the 3rd face data, wherein pre-service at least comprises gray processing, smoothing processing and size normalization;
Detect the width of face, height and position coordinates according to the 3rd face data, and calculate width and the height of face, with width and the ratio highly of player's face;
By the position coordinates of described face, and the ratio of the width of face and height and the width of player's face and height is as source characteristic, and source characteristic is sent to server.
3. method according to claim 1, is characterized in that, described collection player face data, and as before first facial data, also comprises:
Face model identify label number ID in preset game role database and the characteristic of corresponding face model.
4. method according to claim 3, is characterized in that, described by game role database preset with server respectively for the source characteristic of player's face, the character pair data of face model are mated, and determines the face model mated, comprising:
The source characteristic of player's face is mated with the character pair data of face model in game role database respectively;
Find out the most close face model ID by coupling, and recall described model according to described model ID.
5., according to described method arbitrary in claim 1-4, it is characterized in that, described collection player face data, and as first facial data, comprising:
The camera collection player face data of the USB (universal serial bus) utilizing two relative positions to fix.
6. a game role generating apparatus, is characterized in that, comprising:
First facial data acquisition module, for gathering player's face data, and as first facial data;
Source characteristic computing module, for calculating the source characteristic of player's face according to first facial data, and send to server, wherein, described face comprise at least one in eyes, nose and face;
Characteristic matching module, for the character pair data of face model in game role database preset with server respectively for player's face source characteristic being mated, determines the face model mated;
Model arranges module, for the face model by coupling, is arranged on avatar model face according to source characteristic, and by the Data Update of client and display.
7. require the device described in 6 according to power, it is characterized in that, described source characteristic computing module, comprising:
Judging unit, for carrying out Face datection to first facial data, judges whether there is face in first facial data;
Second face data acquiring unit, if for there is face in first facial data, then remove non-face part, obtains the second face data;
3rd face data acquiring unit, for carrying out pre-service to the second face data, obtains the 3rd face data, and wherein pre-service at least comprises gray processing, smoothing processing and size normalization;
Computing unit, for the width according to the 3rd face data detection face, height and position coordinates, and calculates width and the height of face, with the width of player's face and the ratio of height;
Source characteristic transmitting element, for the position coordinates by described face, and the ratio of the width of face and height and the width of player's face and height is as source characteristic, and source characteristic is sent to server.
8. device according to claim 6, is characterized in that, also comprises:
Preset module, for gathering player's face data, and as before first facial data, the face model identify label number ID in preset game role database and the characteristic of corresponding face model.
9. device according to claim 8, is characterized in that, described characteristic matching module, comprising:
Matching unit, for mating the source characteristic of player's face with the character pair data of face model in game role database respectively;
Model recalls unit, for finding out the most close face model ID by coupling, and recalls described model according to described model ID.
10. according to described device arbitrary in claim 6-9, it is characterized in that, described first facial data acquisition module is specifically for the camera collection player face data of the USB (universal serial bus) utilizing two relative positions to fix.
CN201510836564.3A 2015-11-26 2015-11-26 Game role generation method and device Pending CN105512614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510836564.3A CN105512614A (en) 2015-11-26 2015-11-26 Game role generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510836564.3A CN105512614A (en) 2015-11-26 2015-11-26 Game role generation method and device

Publications (1)

Publication Number Publication Date
CN105512614A true CN105512614A (en) 2016-04-20

Family

ID=55720581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510836564.3A Pending CN105512614A (en) 2015-11-26 2015-11-26 Game role generation method and device

Country Status (1)

Country Link
CN (1) CN105512614A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146271A (en) * 2017-05-31 2017-09-08 合肥视尔文化创意有限公司 A kind of role creation system for being applied to game
CN107729301A (en) * 2017-09-29 2018-02-23 广州多益网络股份有限公司 A kind of generation method and system of player name
CN109448737A (en) * 2018-08-30 2019-03-08 百度在线网络技术(北京)有限公司 Creation method, device, electronic equipment and the storage medium of virtual image
CN109671016A (en) * 2018-12-25 2019-04-23 网易(杭州)网络有限公司 Generation method, device, storage medium and the terminal of faceform
CN110781782A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Face model determination method and device
CN111054083A (en) * 2019-11-18 2020-04-24 武汉华中时讯科技有限责任公司 Method and system for creating original role in social network, server and medium
CN111857697A (en) * 2020-05-29 2020-10-30 北京编程猫科技有限公司 Graphical programming implementation method and device based on cognitive AI

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797474A (en) * 2004-12-30 2006-07-05 中国科学院自动化研究所 Fast method for posting players to electronic game
CN104123741A (en) * 2014-06-24 2014-10-29 小米科技有限责任公司 Method and device for generating human face sketch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797474A (en) * 2004-12-30 2006-07-05 中国科学院自动化研究所 Fast method for posting players to electronic game
CN104123741A (en) * 2014-06-24 2014-10-29 小米科技有限责任公司 Method and device for generating human face sketch

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付丽梅: "个性化人脸游戏引擎的设计及关键技术实现", 《中国优秀硕士学位论文全文数据库》 *
刘华俊: "基于实时人体运动动画控制的研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146271A (en) * 2017-05-31 2017-09-08 合肥视尔文化创意有限公司 A kind of role creation system for being applied to game
CN107729301A (en) * 2017-09-29 2018-02-23 广州多益网络股份有限公司 A kind of generation method and system of player name
CN107729301B (en) * 2017-09-29 2021-03-16 广州多益网络股份有限公司 Method and system for generating game name of player
CN109448737A (en) * 2018-08-30 2019-03-08 百度在线网络技术(北京)有限公司 Creation method, device, electronic equipment and the storage medium of virtual image
CN109448737B (en) * 2018-08-30 2020-09-01 百度在线网络技术(北京)有限公司 Method and device for creating virtual image, electronic equipment and storage medium
CN109671016A (en) * 2018-12-25 2019-04-23 网易(杭州)网络有限公司 Generation method, device, storage medium and the terminal of faceform
US11328455B2 (en) 2018-12-25 2022-05-10 Netease (Hangzhou) Network Co., Ltd. Method and apparatus for generating face model, storage medium, and terminal
CN110781782A (en) * 2019-10-15 2020-02-11 腾讯科技(深圳)有限公司 Face model determination method and device
CN110781782B (en) * 2019-10-15 2021-03-23 腾讯科技(深圳)有限公司 Face model determination method and device
CN111054083A (en) * 2019-11-18 2020-04-24 武汉华中时讯科技有限责任公司 Method and system for creating original role in social network, server and medium
CN111054083B (en) * 2019-11-18 2023-08-04 武汉华中时讯科技有限责任公司 Method and system for creating original roles in social network, server and medium
CN111857697A (en) * 2020-05-29 2020-10-30 北京编程猫科技有限公司 Graphical programming implementation method and device based on cognitive AI

Similar Documents

Publication Publication Date Title
CN105512614A (en) Game role generation method and device
KR102346320B1 (en) Fast 3d model fitting and anthropometrics
CN106846403B (en) Method and device for positioning hand in three-dimensional space and intelligent equipment
TWI687879B (en) Server, client, user verification method and system
US10832039B2 (en) Facial expression detection method, device and system, facial expression driving method, device and system, and storage medium
KR20220066366A (en) Predictive individual 3D body model
CN105320954A (en) Human face authentication device and method
JP7342366B2 (en) Avatar generation system, avatar generation method, and program
CN108229375B (en) Method and device for detecting face image
CN111914629A (en) Method, apparatus, device and storage medium for generating training data for face recognition
CN108573192B (en) Glasses try-on method and device matched with human face
CN111914630A (en) Method, apparatus, device and storage medium for generating training data for face recognition
US20160205382A1 (en) Method and apparatus for generating a labeled image based on a three dimensional projection
KR20160046399A (en) Method and Apparatus for Generation Texture Map, and Database Generation Method
JP2017084065A (en) Identity theft detection device
CN111339973A (en) Object identification method, device, equipment and storage medium
EP3629228A1 (en) Image processing for determining relationships between tracked objects
JP6311461B2 (en) Gaze analysis system and gaze analysis apparatus
KR101787255B1 (en) Facial expression recognition method based on ratio of facial ladnmark's distance
CN112149455A (en) Method and device for detecting human body posture
CN117218398A (en) Data processing method and related device
CN115147193A (en) Commodity purchasing recommendation method and device, electronic purchasing terminal and medium
CN114758354A (en) Sitting posture detection method and device, electronic equipment, storage medium and program product
KR20130081126A (en) Method for hand-gesture recognition and apparatus thereof
CN116051694B (en) Avatar generation method, apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420