WO2020042442A1 - 表情包生成方法及装置 - Google Patents

表情包生成方法及装置 Download PDF

Info

Publication number
WO2020042442A1
WO2020042442A1 PCT/CN2018/121455 CN2018121455W WO2020042442A1 WO 2020042442 A1 WO2020042442 A1 WO 2020042442A1 CN 2018121455 W CN2018121455 W CN 2018121455W WO 2020042442 A1 WO2020042442 A1 WO 2020042442A1
Authority
WO
WIPO (PCT)
Prior art keywords
hand
drawn
user
expression
drawn graphic
Prior art date
Application number
PCT/CN2018/121455
Other languages
English (en)
French (fr)
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 WO2020042442A1 publication Critical patent/WO2020042442A1/zh

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites

Definitions

  • the invention relates to the field of electronic technology, and in particular, to a method and a device for generating an expression pack.
  • Emoticons are a commonly used expression in the current chat process. It has a variety of styles, which can express people's unclear mood through text, clearly and efficiently convey the user's mood, and increase the fun of communication. Especially for the elderly, the disabled, etc. who have typing difficulties, expression through expression packs can improve the communication efficiency and solve the problem of unable to accurately convey the mood using words.
  • At least part of the embodiments of the present application provide a method and a device for generating an expression pack, which are provided to solve the technical defect that a single expression pack is provided in the prior art.
  • one embodiment of the present application provides a method for generating an expression pack, including:
  • a user can perform a graffiti operation on a chat interface of the instant chat tool.
  • the device After receiving a graffiti operation input by the user on the chat interface, the device follows a motion track of the graffiti operation. Generate corresponding hand-drawn graphics, determine the characteristic parts of the hand-drawn graphics, and animate the characteristic parts to generate dynamic expression packs.
  • the emoticons that can be used in the instant chat tool are not only limited to the downloaded emoticons, but users can also draw the emoticons according to their own understanding and needs, which is more personalized and closer to the mood that the user wants to express. The way of providing emoticons is improved and the fun of communication is improved.
  • the determining a characteristic part of the hand-drawn graphic includes:
  • the feature part is animated by adopting the determined animation mode of the animated part of the expression pack.
  • the hand-drawn graphics are animated by animating the emoticons whose similarity with the hand-drawn graphics is greater than a preset value on the local and / or network platform, so that the generated animating modes of the dynamic emoticons packages are more in line with the needs of users and improve user experience.
  • the determining a characteristic part of the hand-drawn graphic includes:
  • Animating the feature part according to the motion feature of the input operation wherein the motion feature includes a starting position, a motion direction, and a motion speed of the input operation.
  • a user may perform an input operation on a hand-drawn graphic to indicate a characteristic part in the hand-drawn graphic and indicate an animation manner of the characteristic part, so that the animation manner of the generated dynamic expression package is more in line with the needs of the user and improves the user experience.
  • the method further includes:
  • 3D modeling is performed on the hand-drawn graphics after animation design in combination with AR technology, so that the generated dynamic expression package is more vivid, and the user experience is further improved.
  • the dynamic expression package after generating the dynamic expression package, it further includes:
  • the dynamic emoticon package After detecting the sending operation input by the user on the chat interface, the dynamic emoticon package is sent to a chat object associated with the chat interface.
  • the user can directly send the generated dynamic emoticon package to a chat object associated with the current chat interface, which further improves communication efficiency and improves user experience.
  • one embodiment of the present application provides an expression packet generating device, including:
  • a receiving unit configured to receive an operation of starting a graffiti function input by a user on a chat interface of an instant chat tool
  • a processing unit configured to start the doodle function in response to the operation of starting the doodle function
  • the receiving unit is further configured to: receive a doodle operation input by a user on the chat interface;
  • the processing unit is further configured to generate a corresponding hand-drawn graphic according to the motion trajectory of the graffiti operation; determine a characteristic part of the hand-drawn graphic, animate the characteristic part, and generate a file format supported by the instant chat tool Dynamic emoji pack.
  • processing unit is specifically configured as:
  • the feature part is animated by adopting the determined animation mode of the animated part of the expression pack.
  • processing unit is specifically configured as:
  • Animating the feature part according to the motion feature of the input operation wherein the motion feature includes a starting position, a motion direction, and a motion speed of the input operation.
  • processing unit is further configured to:
  • 3D modeling is performed on the hand-drawn graphics after animation design in combination with AR technology to generate a 3D dynamic expression package.
  • processing unit is further configured to:
  • the dynamic emoticon After the dynamic emoticon is generated, after detecting the sending operation input by the user on the chat interface, the dynamic emoticon is sent to a chat object associated with the chat interface.
  • one embodiment of the present application provides an expression pack generating device, including: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores the information that can be used by the processor.
  • one embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are run on a computer, the computer executes the embodiments of the present invention The method according to the first aspect or any optional implementation manner of the first aspect.
  • the user can perform the graffiti operation on the chat interface of the instant chat tool.
  • the device After receiving the graffiti operation input by the user on the chat interface, the device generates a corresponding hand-drawing according to the motion track of the graffiti operation.
  • Graphics identify the characteristic parts of hand-drawn graphics, and animate the characteristic parts to generate dynamic expression packs.
  • the emoticons that can be used in the instant chat tool are not only limited to the downloaded emoticons, but users can also draw the emoticons according to their own understanding and needs, which is more personalized and closer to the mood that the user wants to express. The way of providing emoticons is improved and the fun of communication is improved.
  • FIG. 1 is a schematic flowchart of a method for generating an expression pack according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an expression packet generating device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an expression packet generating device according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for generating an expression pack, which is used to solve a technical defect that a method of providing an expression pack exists in the prior art.
  • the device for performing the method may be any electronic device with computing power, such as a mobile phone, a tablet computer, a notebook computer, a wearable device, and an audio / video playback device, or an electronic device system composed of multiple such electronic devices.
  • the embodiments of the invention are not specifically limited.
  • the specific process of the method includes:
  • S101 Respond to an operation of starting a graffiti function input by a user on a chat interface of an instant chat tool, and start the graffiti function;
  • the instant chat tool may be a short message, WeChat, QQ, Facebook, Weibo, etc., which are not specifically limited in the embodiment of the present invention.
  • S102 Receive a doodle operation input by a user on the chat interface
  • the chat interface can pop up a painting frame.
  • the area where the painting frame is a valid painting area.
  • the control functions on other areas on the chat interface remain normal.
  • the user performs the graffiti operation in the painting frame.
  • the chat interface may not pop up a painting box, but use the entire chat interface as an effective painting area.
  • all the original control functions on the chat interface are not available. Users can use the entire chat interface. Graffiti is performed at any position on the control panel, and the control functions on other areas return to normal only after exiting the graffiti function.
  • S104 Determine a characteristic part of the hand-drawn graphic, perform animation design on the characteristic part, and generate a dynamic expression package in a file format supported by the instant chat tool.
  • the characteristic parts of the hand-drawn graphics are determined, and the specific implementation of the animation design of the characteristic parts includes, but is not limited to, the following two types:
  • the feature part is animated by adopting the animation method of the animated part of the determined expression pack.
  • a database is stored in advance in the background of the instant chat tool, including a large amount of image data.
  • image data For example, for elephants, there will be multi-angle pictures of elephants in the database, as well as data analysis diagrams of elephant heads, feet, and body parts, including head to foot ratio, limbs to body ratio, nose to head ratio, etc.
  • Various types of data can have a reference value range, and those that meet this range can be identified to complete the matching of similar images.
  • the feature parts of the hand-drawn image are marked according to the background data (such as the elephant's nose, head, limbs, tail, etc.), and then animated images of similar images in the database Characteristic parts are animated, such as moving the elephant's nose and ears to make the elephant's limbs go up.
  • the movement characteristics include the starting position of the input operation, the movement direction, and the movement speed.
  • the user determines the characteristic part of the hand-drawn graphic according to his own needs, and then slides his finger on the display area of the characteristic part of the hand-drawn graphic to indicate the animation mode of the characteristic part.
  • the device captures the feature part according to the movement position of the user's finger, collects movement data such as the coordinate point, movement curve, curvature, speed of the user's finger starting position, and assigns these movement data to the feature part of the hand-drawn image to realize the feature part. Animation design.
  • AR Augmented Reality
  • 3D model the hand-drawn graphics after animation design to generate 3D Dynamic emoji pack.
  • design a scene for each type of expression pack such as an AR scene that simulates a tropical rain forest for an elephant.
  • import the AR rain scene of the elephant Generate an animated image of an elephant walking in the rainforest.
  • the user can enter a sending operation on the chat interface, such as clicking a function control for sending an emoticon, to send the dynamic emoticon to a chat object associated with the chat interface.
  • the generated dynamic emoticon is saved to a local and / or network platform, such as an emoticon favorite in an instant chat tool.
  • a save operation input by the user is detected, the generated dynamic emoticon is saved to a local and / or network platform, such as an emoticon favorite in an instant chat tool.
  • the generated dynamic emoticon package is sent to the chat object associated with the chat interface, the generated dynamic emoticon package is automatically saved to the local and / or network platform for subsequent reuse.
  • users can click into the emoticon favorites in the instant chat tool, view the historically generated emoticons, and re-edit the historically generated emoticons.
  • a user by adding a graffiti function to the instant chat tool, a user can perform a graffiti operation on a chat interface of the instant chat tool. After receiving a graffiti operation input by the user on the chat interface, the device operates according to the graffiti operation.
  • the corresponding trajectory of motion generates corresponding hand-drawn graphics, determines the characteristic parts of the hand-drawn graphics, and animates the characteristic parts to generate a dynamic expression package.
  • the emoticons that can be used in the instant chat tool are not only limited to the downloaded emoticons, but users can also draw the emoticons according to their own understanding and needs, which is more personalized and closer to the mood that the user wants to express. It provides the way of providing emoticons and improves the fun of communication;
  • the embodiments of the present invention provide multiple implementations of animated design of hand-drawn graphics, such as animated design of hand-drawn graphics using animation methods of similar expression packages in local and / or network platforms, and hand-drawn graphics according to user input operations.
  • the graphics are animated, etc., so that the animation mode of the generated dynamic expression package is more in line with the needs of users, which further improves the user experience;
  • the embodiment of the present invention also incorporates AR technology to perform 3D modeling on hand-drawn graphics after animation design to generate a 3D dynamic expression package, which makes the generated dynamic expression package more vivid and further improves the user experience.
  • an embodiment of the present invention further provides an expression packet generating device.
  • the device includes:
  • the receiving unit 201 is configured to receive an operation of starting a graffiti function input by a user on a chat interface of an instant chat tool;
  • the processing unit 202 is configured to start the doodle function in response to the operation of starting the doodle function;
  • the receiving unit 201 is further configured to: receive a doodle operation input by a user on the chat interface;
  • the processing unit 202 is further configured to generate a corresponding hand-drawn graphic according to the motion trajectory of the graffiti operation; determine a characteristic part of the hand-drawn graphic, perform animation design on the characteristic part, and generate a file supported by the instant chat tool Animated emoticons in format.
  • processing unit 202 is specifically configured as:
  • the feature part is animated by adopting the determined animation mode of the animated part of the expression pack.
  • processing unit 202 is specifically configured as:
  • Animating the feature part according to the motion feature of the input operation wherein the motion feature includes a starting position, a motion direction, and a motion speed of the input operation.
  • processing unit 202 is further configured to:
  • 3D modeling is performed on the hand-drawn shapes after animation design in combination with AR technology to generate a 3D dynamic expression package.
  • processing unit 202 is further configured to:
  • the dynamic emoticon After the dynamic emoticon is generated, after detecting the sending operation input by the user on the chat interface, the dynamic emoticon is sent to a chat object associated with the chat interface.
  • the method and device of the present invention are based on the same inventive concept. Since the principle of the method and the device for solving the problem is similar, the specific implementation of the operations performed by the above units can refer to the corresponding steps in the method for generating an expression pack in the embodiment of the invention, You can refer to each other for the implementation of the method.
  • an embodiment of the present invention discloses a device for generating an expression pack, and referring to FIG. 3 includes:
  • At least one processor 301 and
  • the instructions execute the method for generating an expression pack according to the embodiment of the present invention.
  • an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and when the computer instructions are run on a computer, the computer executes the foregoing embodiments of the present invention.
  • Emoticon generation method Emoticon generation method.
  • the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product 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 code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • the method and device for generating an emoticon package have the following beneficial effects: by adding a graffiti function to an instant chat tool, a user can perform a doodle operation on a chat interface of the instant chat tool, and the device is After receiving the graffiti operation input by the user on the chat interface, a corresponding hand-drawn graphic is generated according to the motion trajectory of the graffiti operation, the characteristic part of the hand-drawn graphic is determined, and the characteristic part is animated to generate a dynamic expression package.
  • the emoticons that can be used in the instant chat tool are not only limited to the downloaded emoticons, but users can also draw the emoticons according to their own understanding and needs, which is more personalized and closer to the mood that the user wants to express.
  • the method of providing emoticons is improved, the communication is interesting, and the technical problem that the text cannot accurately convey the mood is solved.

Abstract

一种表情包生成方法及装置,该方法包括:响应用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作,启动所述涂鸦功能(S101);接收用户在所述聊天界面上输入的涂鸦操作(S102);根据所述涂鸦操作的运动轨迹生成相应的手绘图形(S103);确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包(S104)。

Description

表情包生成方法及装置 技术领域
本发明涉及电子技术领域,特别涉及一种表情包生成方法及装置。
背景技术
表情包是当下聊天过程中常用的表达方式,它的风格多样化,可以将人们通过文字表达不清楚的心情表达清楚,高效又直观的传达用户心情,增加交流的趣味性。特别是对于一些存在打字障碍的老人、残疾人等,通过表情包进行表达可以提高沟通效率,解决无法使用文字准确传达心情的问题。
但是,目前人们在使用即时聊天工具进行聊天时,只能选择已下载好的表情包使用,每次需要花费较长时间才能从已下载好的表情包中挑选出满足需求的表情包,并且有时候已下载的表情包也并不能完全准确地表达出用户的心情。可见,现有技术存在表情包提供方式单一的技术缺陷。
发明内容
本申请至少部分实施例提供一种表情包生成方法及装置,设置为解决现有技术存在表情包提供方式单一的技术缺陷。
第一方面,本申请其中一实施例提供一种表情包生成方法,包括:
响应用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作,启动所述涂鸦功能;
接收用户在所述聊天界面上输入的涂鸦操作;
根据所述涂鸦操作的运动轨迹生成相应的手绘图形;
确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
本实施方式,通过在即时聊天工具中加入涂鸦功能,使得用户可在即时聊天工具的聊天界面上执行涂鸦操作,设备在接收到用户在聊天界面上输入的涂鸦操作后,根据涂鸦操作的运动轨迹生成相应的手绘图形,确定出手绘图形的特征部分,并对特征部分进行动画设计,生成动态表情包。这样,即时聊天工具中可使用的表情包不仅只是局限于已下载的表情包,用户还可以根据自身的理解和需求进行表情包的绘制,更加个性化,也更加贴近用户想表达的心情,丰富了表情包的提供方式,提高了交流的趣味性。
可选的,所述确定所述手绘图形的特征部分,包括:
将所述手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与所述手绘图形相似度大于预设值的表情包;
根据确定出的表情包的动画部分确定所述手绘图形的特征部分;
所述对所述特征部分进行动画设计,包括:
采用确定出的表情包的动画部分的动画方式对所述特征部分进行动画设计。
本实施方式,通过本地和/或网络平台中与手绘图形相似度大于预设值的表情包的动画方式对手绘图形进行动画设计,使得生成的动态表情包的动画方式更加符合用户的需求,提高用户体验。
可选的,所述确定所述手绘图形的特征部分,包括:
检测用户针对所述手绘图形的输入操作;根据所述输入操作的位置确定所述手绘图形的特征部分;
所述对所述特征部分进行动画设计,包括:
根据所述输入操作的运动特征对所述特征部分进行动画设计;其中,所述运动特征包括所述输入操作的起始位置、运动方向以及运动速度。
本实施方式,用户可以针对手绘图形执行输入操作,以指示手绘图形中的特征部分,并指示该特征部分的动画方式,使得生成的动态表情包的动画方式更加符合用户的需求,提高用户体验。
可选的,在对所述特征部分进行动画设计之后,还包括:
结合AR技术对经动画设计后的手绘图形进行3D建模,生成3D的动态表情包。
本实施方式,结合AR技术对经动画设计后的手绘图形进行3D建模,使得生成的动态表情包更加生动形象,进一步提高了用户体验。
可选的,在生成动态表情包之后,还包括:
在检测到用户在所述聊天界面上输入的发送操作后,将所述动态表情包发送给所述聊天界面关联的聊天对象。
本实施方式,用户在聊天界面上手绘表情包之后,可直接将生成的动态表情包发送给当前聊天界面关联的聊天对象,进一步提高了沟通的效率,提高用户体验。
第二方面,本申请其中一实施例提供一种表情包生成装置,包括:
接收单元,设置为接收用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作;
处理单元,设置为响应所述启动涂鸦功能的操作,启动所述涂鸦功能;
所述接收单元还设置为:接收用户在所述聊天界面上输入的涂鸦操作;
所述处理单元还设置为:根据所述涂鸦操作的运动轨迹生成相应的手绘图形;确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
可选的,所述处理单元具体设置为:
将所述手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与所述手绘图形相似度大于预设值的表情包;
根据确定出的表情包的动画部分确定所述手绘图形的特征部分;
采用确定出的表情包的动画部分的动画方式对所述特征部分进行动画设计。
可选的,所述处理单元具体设置为:
检测用户针对所述手绘图形的输入操作;根据所述输入操作的位置确定所述手绘图形的特征部分;
根据所述输入操作的运动特征对所述特征部分进行动画设计;其中,所述运动特征包括所述输入操作的起始位置、运动方向以及运动速度。
可选的,所述处理单元还设置为:
在对所述特征部分进行动画设计之后,结合AR技术对经动画设计后的手绘图形进行3D建模,生成3D的动态表情包。
可选的,所述处理单元还设置为:
在生成动态表情包之后,在检测到用户在所述聊天界面上输入的发送操作后,将所述动态表情包发送给所述聊天界面关联的聊天对象。
第三方面,本发明申请其中一实施例提供一种表情包生成装置,包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令执行本发明实施例第一方面或第一方面的任一种可选的实施方式所述的方法。
第四方面,本发明申请其中一实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行本发明实施例第一方面或第一方面的任一种可选的实施方式所述的方法。
本发明申请其中一实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:
通过在即时聊天工具中加入涂鸦功能,使得用户可在即时聊天工具的聊天界面上执行涂鸦操作,设备在接收到用户在聊天界面上输入的涂鸦操作后,根据涂鸦操作的运动轨迹生成相应的手绘图形,确定出手绘图形的特征部分,并对特征部分进行动画设计,生成动态表情包。这样,即时聊天工具中可使用的表情包不仅只是局限于已下载的表情包,用户还可以根据自身的理解和需求进 行表情包的绘制,更加个性化,也更加贴近用户想表达的心情,丰富了表情包的提供方式,提高了交流的趣味性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例中表情包生成方法的流程示意图;
图2为本发明实施例中表情包生成装置的结构示意图;
图3为本发明实施例中表情包生成装置的结构示意图。
具体实施方式
下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解本发明实施例以及实施例中的具体特征是对本发明技术方案的详细的说明,而不是对本发明技术方案的限定,在不冲突的情况下,本发明实施例以及实施例中的技术特征可以相互组合。
需要理解的是,在本发明实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。在本发明实施例的描述中“多个”,是指两个或两个以上。
本发明实施例中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
本发明实施例提供一种表情包生成方法,用于解决现有技术存在表情包提供方式单一的技术缺陷。其中,执行该方法的设备可以是手机、平板电脑、笔 记本电脑、可穿戴式设备、音/视频播放设备等任何具有计算能力的电子设备,或者多个这样的电子设备组成的电子设备系统,本发明实施例不做具体限制。
参照图1,该方法的具体流程包括:
S101:响应用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作,启动所述涂鸦功能;
其中,即时聊天工具可以是短信、微信、QQ、阿里钉钉、微博等,本发明实施例不做具体限制。
启动涂鸦功能的具体实现方式可以有多种,比如摁触聊天界面上的用于启动涂鸦功能的功能控件,或者是在聊天界面上输入预设手势,如双击屏幕、长按屏幕、按预设轨迹在屏幕上滑动等,本发明实施例不做具体限制。
S102:接收用户在所述聊天界面上输入的涂鸦操作;
在启动涂鸦功能后,聊天界面可以弹出一个绘画框,绘画框所在区域为有效绘画区域,聊天界面上的其它区域上的控件功能保持正常状态,用户在绘画框中执行涂鸦操作。在启动涂鸦功能后,聊天界面也可以不弹出绘画框,而是将整个聊天界面均作为有效绘画区域,涂鸦功能启动后,聊天界面上原有的所有控件功能均不可使用,用户可在整个聊天界面上的任一位置处进行涂鸦,只有退出涂鸦功能后其它区域上的控件功能才恢复正常。
用户在涂鸦时,可以先选择笔刷形式,包括毛笔、铅笔、粗笔刷、细笔刷、笔刷颜色等,然后再在绘画区域内进行绘制。由于笔刷的形式确定,用户手指的力度和速度只影响绘制形状的轨迹,可避免因为人手指粗细、操作力度的不同造成的差异性影响。
S103:根据所述涂鸦操作的运动轨迹生成相应的手绘图形;
S104:确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
在具体实施过程中,确定手绘图形的特征部分,对特征部分进行动画设计的具体实现方式,包括但不限于以下两种:
第1种:
将手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与手绘图形相似度大于预设值的表情包;根据确定出的表情包的动画部分确定手绘图形的特征部分;采用确定出的表情包的动画部分的动画方式对特征部分进行动画设计。
例如,在即时聊天工具的后台预先存储一个数据库,包括海量的图像数据。比如,大象类,数据库内会有大象多角度的图片,以及大象头、脚、身体等部分的数据分析图,包括头和脚的比例、四肢与身体比例、鼻子与头比例等,各类数据可以有一个参考值变化范围,符合这个范围的都可以被识别,完成相似图像的匹配。用户启动涂鸦功能绘画出一个大象的手绘图像后,根据后台数据对手绘图像的特征部分进行标记(如大象的鼻子、头、四肢、尾巴等),然后按照数据库内相似图像的动画方式对特征部分进行动画设计,比如动动大象鼻子和耳朵,让大象的四肢走起来等。
第2种:
检测用户针对手绘图形的输入操作;根据输入操作的位置确定手绘图形的特征部分;根据输入操作的运动特征对特征部分进行动画设计。其中,运动特征包括输入操作的起始位置、运动方向以及运动速度。
例如,用户根据自身的需求确定手绘图形的特征部分,然后在手绘图形的特征部分的显示区域滑动手指以指示特征部分的动画方式。设备根据用户手指运动位置对特征部分进行捕捉,采集用户手指起始位置的坐标点、运动曲线、曲率、速度等运动数据,将这些运动数据赋予到手绘图像的特征部分上,实现对特征部分的动画设计。
进一步的,为了使得生成的动态表情包更加生动形象,在对特征部分进行动画设计之后,还可以结合增强现实(Augmented Reality,AR)技术对经动画设计后的手绘图形进行3D建模,生成3D的动态表情包。例如,在后台数据库内,为每类表情包设计一个场景,如为大象设计一个模拟热带雨林的AR场 景,在对手绘图像的特征部分完成动画设计之后,导入大象的热带雨林AR场景,生成大象在雨林中行走的动图。
进一步的,在生成动态表情包之后,用户可以在聊天界面上输入的发送操作,如点击用于发送表情包的功能控件,将动态表情包发送给聊天界面关联的聊天对象。
进一步的,在生成动态表情包之后,如果检测到用户输入的保存操作,则将生成的动态表情包保存到本地和/或网络平台,比如保存到即时聊天工具中的表情包收藏夹。或者,在将动态表情包发送给聊天界面关联的聊天对象之后,自动将生成的动态表情包保存到本地和/或网络平台,便于后续再次使用。在保存动态表情包之后,用户可以点进即时聊天工具中的表情包收藏夹,查看历史生成的表情包,对历史生成的表情包进行重新编辑等。
进一步的,由于不同的即时聊天工具支持的动态图像的文件格式可能不一样,因此在生成动态表情包时,需要根据当前使用的即时聊天工具支持的文件格式来生成动态表情包。
另外,在具体实施过程中,在执行上述步骤103之后,也可以选择不合成动态表情包,而是直接将手绘图形保存成图片类型的表情进行发送。
在本发明实施例中,通过在即时聊天工具中加入涂鸦功能,使得用户可在即时聊天工具的聊天界面上执行涂鸦操作,设备在接收到用户在聊天界面上输入的涂鸦操作后,根据涂鸦操作的运动轨迹生成相应的手绘图形,确定出手绘图形的特征部分,并对特征部分进行动画设计,生成动态表情包。这样,即时聊天工具中可使用的表情包不仅只是局限于已下载的表情包,用户还可以根据自身的理解和需求进行表情包的绘制,更加个性化,也更加贴近用户想表达的心情,丰富了表情包的提供方式,提高了交流的趣味性;
其次,本发明实施例中提供了多种对手绘图形进行动画设计的实现方式,例如使用本地和/或网络平台中相似表情包的动画方式对手绘图形进行动画设计、根据用户的输入操作对手绘图形进行动画设计等,使得生成的动态表情包 的动画方式更加符合用户的需求,进一步提高了用户体验;
不仅如此,本发明实施例还结合了AR技术对经动画设计后的手绘图形进行3D建模,生成3D的动态表情包,使得生成的动态表情包更加生动形象,进一步提高了用户体验。
基于同一发明构思,本发明实施例还提供一种表情包生成装置,参照图2,包括:
接收单元201,设置为接收用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作;
处理单元202,设置为响应所述启动涂鸦功能的操作,启动所述涂鸦功能;
所述接收单元201还设置为:接收用户在所述聊天界面上输入的涂鸦操作;
所述处理单元202还设置为:根据所述涂鸦操作的运动轨迹生成相应的手绘图形;确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
可选的,所述处理单元202具体设置为:
将所述手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与所述手绘图形相似度大于预设值的表情包;
根据确定出的表情包的动画部分确定所述手绘图形的特征部分;
采用确定出的表情包的动画部分的动画方式对所述特征部分进行动画设计。
可选的,所述处理单元202具体设置为:
检测用户针对所述手绘图形的输入操作;根据所述输入操作的位置确定所述手绘图形的特征部分;
根据所述输入操作的运动特征对所述特征部分进行动画设计;其中,所述运动特征包括所述输入操作的起始位置、运动方向以及运动速度。
可选的,所述处理单元202还设置为:
在对所述特征部分进行动画设计之后,结合AR技术对经动画设计后的手 绘图形进行3D建模,生成3D的动态表情包。
可选的,所述处理单元202还设置为:
在生成动态表情包之后,在检测到用户在所述聊天界面上输入的发送操作后,将所述动态表情包发送给所述聊天界面关联的聊天对象。
本发明所述方法和装置基于同一发明构思,由于方法及装置解决问题的原理相似,以上各单元所执行操作的具体实现方式可以参照本发明实施例上述表情包生成方法中对应的步骤,因此装置与方法的实施可以相互参见,重复之处不再赘述。
基于同一发明构思,本发明实施例公开一种表情包生成装置,参照图3包括:
至少一个处理器301,以及
与所述至少一个处理器301通信连接的存储器302;其中,所述存储器302存储有可被所述至少一个处理器301执行的指令,所述至少一个处理器301通过执行所述存储器302存储的指令执行本发明实施例上述表情包生成方法。
基于同一发明构思,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行本发明实施例上述表情包生成方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入 式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生设置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
工业实用性
如上所述,本申请至少部分实施例提供的表情包生成方法及装置具有以下有益效果:通过在即时聊天工具中加入涂鸦功能,使得用户可在即时聊天工具的聊天界面上执行涂鸦操作,设备在接收到用户在聊天界面上输入的涂鸦操作后,根据涂鸦操作的运动轨迹生成相应的手绘图形,确定出手绘图形的特征部分,并对特征部分进行动画设计,生成动态表情包。这样,即时聊天工具中可使用的表情包不仅只是局限于已下载的表情包,用户还可以根据自身的理解和需求进行表情包的绘制,更加个性化,也更加贴近用户想表达的心情,丰富了表情包的提供方式,提高了交流的趣味性,并解决了无法使用文字准确传达心情的技术问题。

Claims (12)

  1. 一种表情包生成方法,包括:
    响应用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作,启动所述涂鸦功能;
    接收用户在所述聊天界面上输入的涂鸦操作;
    根据所述涂鸦操作的运动轨迹生成相应的手绘图形;
    确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
  2. 如权利要求1所述的方法,其中,所述确定所述手绘图形的特征部分,包括:
    将所述手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与所述手绘图形相似度大于预设值的表情包;
    根据确定出的表情包的动画部分确定所述手绘图形的特征部分;
    所述对所述特征部分进行动画设计,包括:
    采用确定出的表情包的动画部分的动画方式对所述特征部分进行动画设计。
  3. 如权利要求1所述的方法,其中,所述确定所述手绘图形的特征部分,包括:
    检测用户针对所述手绘图形的输入操作;根据所述输入操作的位置确定所述手绘图形的特征部分;
    所述对所述特征部分进行动画设计,包括:
    根据所述输入操作的运动特征对所述特征部分进行动画设计;其中,所述运动特征包括所述输入操作的起始位置、运动方向以及运动速度。
  4. 如权利要求1-3任一项所述的方法,其中,在对所述特征部分进行动画设计之后,还包括:
    结合增强现实技术对经动画设计后的手绘图形进行3D建模,生成3D的 动态表情包。
  5. 如权利要求1-3任一项所述的方法,其中,在生成动态表情包之后,还包括:
    在检测到用户在所述聊天界面上输入的发送操作后,将所述动态表情包发送给所述聊天界面关联的聊天对象。
  6. 一种表情包生成装置,包括:
    接收单元,设置为接收用户在即时聊天工具的聊天界面上输入的启动涂鸦功能的操作;
    处理单元,设置为响应所述启动涂鸦功能的操作,启动所述涂鸦功能;
    所述接收单元还设置为:接收用户在所述聊天界面上输入的涂鸦操作;
    所述处理单元还设置为:根据所述涂鸦操作的运动轨迹生成相应的手绘图形;确定所述手绘图形的特征部分,对所述特征部分进行动画设计,生成所述即时聊天工具支持的文件格式的动态表情包。
  7. 如权利要求6所述的装置,其中,所述处理单元具体设置为:
    将所述手绘图形与本地和/或网络平台中的至少一个表情包进行匹配,确定出与所述手绘图形相似度大于预设值的表情包;
    根据确定出的表情包的动画部分确定所述手绘图形的特征部分;
    采用确定出的表情包的动画部分的动画方式对所述特征部分进行动画设计。
  8. 如权利要求6所述的装置,其中,所述处理单元具体设置为:
    检测用户针对所述手绘图形的输入操作;根据所述输入操作的位置确定所述手绘图形的特征部分;
    根据所述输入操作的运动特征对所述特征部分进行动画设计;其中,所述运动特征包括所述输入操作的起始位置、运动方向以及运动速度。
  9. 如权利要求6-8任一项所述的装置,其中,所述处理单元还设置为:
    在对所述特征部分进行动画设计之后,结合AR技术对经动画设计后的手 绘图形进行3D建模,生成3D的动态表情包。
  10. 如权利要求6-8任一项所述的装置,其中,所述处理单元还设置为:
    在生成动态表情包之后,在检测到用户在所述聊天界面上输入的发送操作后,将所述动态表情包发送给所述聊天界面关联的聊天对象。
  11. 一种表情包生成装置,包括:
    至少一个处理器,以及
    与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令执行如权利要求1至5任一项所述的方法。
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求1至5任一项所述的方法。
PCT/CN2018/121455 2018-08-28 2018-12-17 表情包生成方法及装置 WO2020042442A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810989841.8 2018-08-28
CN201810989841.8A CN109165072A (zh) 2018-08-28 2018-08-28 一种表情包生成方法及装置

Publications (1)

Publication Number Publication Date
WO2020042442A1 true WO2020042442A1 (zh) 2020-03-05

Family

ID=64893142

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/121455 WO2020042442A1 (zh) 2018-08-28 2018-12-17 表情包生成方法及装置

Country Status (2)

Country Link
CN (1) CN109165072A (zh)
WO (1) WO2020042442A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417640A (zh) * 2019-07-22 2019-11-05 北京达佳互联信息技术有限公司 消息发送和接收方法、装置、电子设备及存储介质
CN113051427A (zh) * 2019-12-10 2021-06-29 华为技术有限公司 一种表情制作方法和装置
CN111524210A (zh) * 2020-04-10 2020-08-11 北京百度网讯科技有限公司 用于生成绘图的方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207826A (zh) * 2011-05-30 2011-10-05 中兴通讯股份有限公司 一种涂鸦的方法及系统
CN103823561A (zh) * 2014-02-27 2014-05-28 广州华多网络科技有限公司 表情输入方法和装置
CN106453823A (zh) * 2016-08-31 2017-02-22 腾讯科技(深圳)有限公司 一种快捷发送信息的方法、装置及终端
CN107479801A (zh) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 基于用户表情的终端显示方法、装置及终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183316B (zh) * 2015-08-31 2018-05-08 百度在线网络技术(北京)有限公司 一种生成颜文字的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207826A (zh) * 2011-05-30 2011-10-05 中兴通讯股份有限公司 一种涂鸦的方法及系统
CN103823561A (zh) * 2014-02-27 2014-05-28 广州华多网络科技有限公司 表情输入方法和装置
CN106453823A (zh) * 2016-08-31 2017-02-22 腾讯科技(深圳)有限公司 一种快捷发送信息的方法、装置及终端
CN107479801A (zh) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 基于用户表情的终端显示方法、装置及终端

Also Published As

Publication number Publication date
CN109165072A (zh) 2019-01-08

Similar Documents

Publication Publication Date Title
US11557075B2 (en) Body pose estimation
US11062494B2 (en) Electronic messaging utilizing animatable 3D models
TWI650977B (zh) 即時通訊過程中的表情信息處理方法及裝置
US11653069B2 (en) Subtitle splitter
US11263817B1 (en) 3D captions with face tracking
WO2020024692A1 (zh) 一种人机交互方法和装置
TW201539305A (zh) 使用姿勢控制基於計算的裝置
US11227442B1 (en) 3D captions with semantic graphical elements
US20230154042A1 (en) Skeletal tracking using previous frames
WO2019114328A1 (zh) 一种基于增强现实的视频处理方法及其装置
WO2020042442A1 (zh) 表情包生成方法及装置
WO2023070021A1 (en) Mirror-based augmented reality experience
CN111464430B (zh) 一种动态表情展示方法、动态表情创建方法及装置
US20230066179A1 (en) Interactive fashion with music ar
US20230111597A1 (en) Modifying an avatar to reflect a user's expression in a messaging platform
EP4268057A1 (en) Gesture control on an eyewear device
WO2023055825A1 (en) 3d upper garment tracking
CN109445573A (zh) 一种用于虚拟化身形象互动的方法与装置
US11943562B2 (en) Real time video editing
WO2023220163A1 (en) Multi-modal human interaction controlled augmented reality
WO2022213030A1 (en) Neural networks accompaniment extraction from songs
US20200219294A1 (en) Sound Actuated Augmented Reality
WO2023103577A1 (zh) 生成目标会话表情的方法、装置、计算设备、计算机可读存储介质及计算机程序产品
US20240087264A1 (en) Virtual object manipulation with gestures in a messaging system
US20240012558A1 (en) User interface providing reply state transition

Legal Events

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

Ref document number: 18932275

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18932275

Country of ref document: EP

Kind code of ref document: A1