WO2022134548A1 - 一种手绘动画素材编辑方法及装置 - Google Patents

一种手绘动画素材编辑方法及装置 Download PDF

Info

Publication number
WO2022134548A1
WO2022134548A1 PCT/CN2021/106066 CN2021106066W WO2022134548A1 WO 2022134548 A1 WO2022134548 A1 WO 2022134548A1 CN 2021106066 W CN2021106066 W CN 2021106066W WO 2022134548 A1 WO2022134548 A1 WO 2022134548A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
editing
information
hand
points
Prior art date
Application number
PCT/CN2021/106066
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 WO2022134548A1 publication Critical patent/WO2022134548A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Definitions

  • the invention belongs to the technical field of hand-drawn animation production, and in particular relates to a hand-drawn animation material editing method, device, electronic equipment and storage medium.
  • hand-painted animation materials are often used to complete hand-painted animation effects.
  • the current implementation method can only use the existing hand-painted animation materials as they are. If you want to edit, you can only use drawing software to process the hand-painted materials as pictures. Such an implementation method will cause the hand-painted animation materials to lose the hand-painted animation effect. , can only be used for static display, thus reducing the quality of animation production.
  • the present invention provides a method for editing hand-painted animation materials, comprising the steps of:
  • Path closure judgment which is used to judge whether the path is closed, and obtain all the path information after the path closure processing
  • Material replacement replace the original grouping with the new grouping information generated after partial editing, and save the new grouping to a new hand-drawn animation material file.
  • the present invention also provides a hand-painted animation material editing device, comprising:
  • the material reading module is used to read the hand-drawn animation material to obtain the path information of the material
  • a material grouping module configured to group the hand-drawn animation materials, and obtain grouping information in the material path according to the material path;
  • the path closure judgment module is used to judge whether the path is closed, and obtain all the path information after the path closure processing
  • the editing command receiving module is used to receive hand-drawn material editing commands, and then perform partial editing of paths or groups;
  • the material replacement module is used to replace the original grouping with the new grouping information generated after partial editing, and save the new grouping to a new hand-drawn animation material file.
  • the present invention parses and groups hand-drawn animation materials, reads the path information of the grouping, and obtains the path information and style information of the grouping accordingly. By judging the path closure of the point set in each group, if it is not closed, it will pass the path closure process, and obtain all the path information after closing; The partially edited group is saved to a new hand-drawn animation material file.
  • the path closing process the path of the point set in the group is closed to form a closed area, which is convenient for editing the area.
  • path closure judgment is used for the point set in each path information to perform path closure judgment, and the steps of obtaining all the path information after the closure process include:
  • the path closure judgment module includes;
  • the path closure judgment unit is used to judge whether the head and tail points of the current path point set coincide. If it is closed, it will be recorded as a set path; formed and recorded as a closed path;
  • the path information reading unit is used to read the path information corresponding to the closed path.
  • the step of receiving a hand-drawn material editing command for partially editing a path or grouping includes:
  • Receive the hand-painted material editing command obtain the point currently clicked or selected by the user, and obtain the path containing the point and its corresponding group through the inclusion relationship between each closed path and the point;
  • the editing command receiving module includes:
  • the material editing command receiving unit is used to receive the hand-drawn material editing command, obtain the point currently clicked or selected by the user, and obtain the path including the point and its corresponding group through the inclusion relationship between each closed path and the point;
  • the local editing unit is used to locally edit the path or grouping according to the path information.
  • the command for locally editing a path or a group includes edge color, fill color, edge line style, and path transparency.
  • the local editing unit includes edge color, fill color, edge line style, and path transparency.
  • the local editing unit includes edge color, fill color, edge line style, and path transparency.
  • Unified local editing of all points in a selected path or group Unified local editing of all points in a selected path or group.
  • a first receiving unit configured to receive selected information, the selected information is used to select any one or more points in the path or grouping;
  • Edit unit for uniform local editing of all points in a selected path or group.
  • the preview unit is used to preview the edited points after uniform local editing of all points in the path or grouping
  • the second receiving unit is configured to receive the determination information, and based on the determination information, uniformly store all the points after partial editing.
  • a third receiving unit configured to receive the stored information
  • the first judging unit is configured to fuse all edited points and editing methods to obtain fused animation materials for storage when judging that the storage information is the first storage mode.
  • a fourth receiving unit configured to receive stored information
  • the second judging unit is used for judging that when the storage information is the second storage mode, all edited points and editing modes are correspondingly set and stored respectively, and when the edited points need to be browsed, the edited points and the edited points are called respectively. way to generate the fused animation material.
  • the present invention also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed in the processor to implement any one of the above methods.
  • the present invention also provides a storage medium storing a computer program, and the computer program can implement any of the above methods when executed in a processor.
  • the invention provides a method for editing hand-drawn animation materials.
  • the hand-drawn animation materials are parsed and grouped, and the grouped path information is read to obtain the grouped path information and style information.
  • the partially edited group is saved to a new hand-drawn animation material file.
  • 1 is a flowchart of a method for editing hand-drawn animation materials
  • FIG. 2 is a flowchart of an improved method for the method in FIG. 1 provided by an embodiment
  • FIG. 3 is a flowchart of an improved method for the method in FIG. 1 provided by an embodiment
  • FIG. 4 is a structural diagram of a hand-drawn animation material editing device provided by an embodiment
  • Fig. 5 is the architecture diagram of the path closure judgment module in Fig. 3;
  • FIG. 6 is a structural diagram of the editing command receiving module in FIG. 3 .
  • the term “storage medium” may be various media that can store computer programs, such as ROM, RAM, magnetic disk or optical disk.
  • the term "processor” can be CPLD (Complex Programmable Logic Device: Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array: Field Programmable Gate Array), MCU (Microcontroller Unit: Micro Control Unit), PLC (Programmable Logic) Controller: programmable logic controller) and CPU (Central Processing Unit: central processing unit) and other chips or circuits with data processing functions.
  • electronic device may be any device with data processing and storage functions, and may generally include both stationary and mobile terminals. Fixed terminals such as desktops, etc. Mobile terminals such as mobile phones, PADs and mobile robots. In addition, the technical features involved in the different embodiments of the present invention described later can be combined with each other as long as there is no conflict with each other.
  • this embodiment provides a method for editing hand-drawn animation materials, including the steps:
  • Path closure judgment which is used to judge whether the path is closed, and obtain all path information after the path closure processing
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present invention also provides a hand-painted animation material editing device, including:
  • the material reading module 1 is used to read hand-drawn animation material to obtain the path information of the material;
  • a material grouping module 2 configured to group the hand-drawn animation materials, and obtain grouping information in the material path according to the material path;
  • the path closure judgment module 3 is used to judge whether the path is closed, and obtain all the path information after the path closure processing
  • Editing command receiving module 4 for receiving hand-drawn material editing commands, and then performing partial editing on paths or groups;
  • the material replacement module 5 is used for replacing the original grouping with the new grouping information generated after partial editing, and saving the new grouping into a new hand-drawn animation material file.
  • the present invention parses and groups hand-drawn animation materials, reads the path information of the grouping, and obtains the path information and style information of the grouping accordingly. By judging the path closure of the point set in each group, if it is not closed, it will pass the path closure process, and obtain all the path information after closing; The partially edited group is saved to a new hand-drawn animation material file.
  • the path closing process the path of the point set in the group is closed to form a closed area, which is convenient for editing the area.
  • the path closure judgment is used for the point set in each path information to perform path closure judgment, and the steps of obtaining all the path information after closure processing include:
  • S31 Determine whether the head and tail points of the current path point set coincide, and if it is closed, it is recorded as a set path; if the path is not closed, a point that coincides with the first point is added at the end of the point set, so that the point set is closed, and it is recorded as a set path. closed path;
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the path closure judgment module includes;
  • the path closure judging unit 31 is used to judge whether the head and tail points of the current path point set coincide, if it is closed, it is recorded as a set path; if the path is not closed, a point that coincides with the head point is added at the end of the point set to make the point set closed , formed and recorded as a closed path;
  • the path information reading unit 32 is used to read the path information corresponding to the closed path.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • the step of receiving a hand-drawn material editing command for partially editing a path or a group includes:
  • Embodiment 6 is a diagrammatic representation of Embodiment 6
  • the editing command receiving module includes:
  • the material editing command receiving unit 41 is used to receive the hand-drawn material editing command, obtain the point currently clicked or selected by the user, and obtain the path including the point and its corresponding grouping through the inclusion relationship between each closed path and the point;
  • the local editing unit 42 is configured to perform local editing on a path or a group according to the path information.
  • the command for locally editing a path or a group includes edge color, fill color, edge line style, and path transparency.
  • the local editing unit includes edge color, fill color, edge line style, and path transparency.
  • the local editing unit includes edge color, fill color, edge line style, and path transparency.
  • Embodiment 7 is a diagrammatic representation of Embodiment 7:
  • the present invention also includes receiving selected information for selecting any one or more points in a path or packet.
  • multiple points may be edited, where each point can be a frame of an image in the hand-drawn animation material.
  • editing the hand-drawn animation material it is possible to edit multiple related points (points belonging to the same path, related paths, or the same group) at the same time, so any one of the paths or groups will be selected at this time. or multiple points.
  • Unified local editing of all points in a selected path or group After the associated point is selected, all points are edited uniformly, and the editing methods include any one or more of edge color setting, filling color setting, edge line style setting and path transparency setting.
  • the invention also includes: previewing the edited points after uniform local editing is performed on all points in the path or grouping.
  • the editor can preview in the unified local editing for all points, which is convenient for the editor to watch.
  • the present invention also includes: receiving stored information;
  • the first storage method is to store the fused animation material by merging the edited point and the editing method. This method has the advantage of fast speed in the retrieval process, but does not store the original point, so that the The data of the point before editing cannot be obtained during subsequent processing.
  • the present invention also includes: receiving stored information;
  • the storage information is the second storage method
  • all edited points and editing methods are correspondingly set and stored respectively, and when the edited points need to be browsed, the edited points and editing methods are respectively called to generate the merged animation material .
  • the second storage method is to store the edited point and the editing method separately, so that when the edited point needs to be called, the edited point and the editing method can be called and displayed in an instant fusion, and the point can still be obtained in the subsequent processing. Data before editing.
  • the present invention provides two storage modes, which can meet the different needs of different manual painting materials under different editing conditions.
  • Embodiment 8 is a diagrammatic representation of Embodiment 8
  • the present invention also includes: a first receiving unit, configured to receive selected information, where the selected information is used to select any one or more points in a path or a packet.
  • a first receiving unit configured to receive selected information, where the selected information is used to select any one or more points in a path or a packet.
  • multiple points may be edited, where each point can be a frame of an image in the hand-drawn animation material.
  • editing the hand-drawn animation material it is possible to edit multiple related points (points belonging to the same path, related paths, or the same group) at the same time, so any one of the paths or groups will be selected at this time. or multiple points.
  • Edit unit for uniform local editing of all points in a selected path or group. After the associated points are selected, all points are edited uniformly, and the editing methods include any one or more of edge color settings, fill color settings, edge line style settings, and path transparency settings.
  • the present invention also includes: a preview unit, which is used for previewing the edited points after uniform local editing is performed on all points in the path or grouping.
  • a preview unit which is used for previewing the edited points after uniform local editing is performed on all points in the path or grouping.
  • the editor can preview in the unified local editing for all points, which is convenient for the editor to watch.
  • the second receiving unit is configured to receive the determination information, and based on the determination information, uniformly store all the points after partial editing. After the editor watches the edited paths, groups, and animation materials in the preview form, he believes that the edited paths, groups, and animation materials have met the requirements, and input the confirmation information for data storage. Based on the above confirmation information, the edited Paths, groups, and animation materials are stored.
  • the present invention also includes: a third receiving unit for receiving stored information;
  • the first judging unit is configured to fuse all edited points and editing methods to obtain fused animation materials for storage when judging that the storage information is the first storage mode.
  • the first storage method is to store the fused animation material by merging the edited point and the editing method. This method has the advantage of fast speed in the retrieval process, but does not store the original point, so that the The data of the point before editing cannot be obtained during subsequent processing.
  • a fourth receiving unit configured to receive the stored information
  • the second judging unit is used for judging that when the storage information is the second storage mode, all edited points and editing modes are correspondingly set and stored respectively, and when the edited points need to be browsed, the edited points and editing modes are called respectively. way to generate the fused animation material.
  • the second storage method is to store the edited point and the editing method separately, so that when the edited point needs to be called, the edited point and the editing method can be called and displayed in an instant fusion, and the point can still be obtained in the subsequent processing. Data before editing.
  • the present invention provides two storage modes, which can meet the different needs of different manual painting materials under different editing conditions.
  • the present invention also provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed in the processor to implement any one of the above methods.
  • the present invention also provides a storage medium storing a computer program, and the computer program can implement any of the above methods when executed in a processor.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本发明提供一种手绘动画素材编辑方法,通过对手绘动画素材进行解析并分组,并读取分组的路径信息,并以此获取分组的路径信息和样式信息。通过对每个分组中的点集合进行路径闭合判断,如果为非闭合的,则通过路径闭合处理,并获取闭合后的全部路径信息;通过接收素材编辑命令,对路径或分组进行局部编辑;将局部编辑后的分组保存到新的手绘动画素材文件中。

Description

一种手绘动画素材编辑方法及装置 技术领域
本发明属于手绘动画制作技术领域,尤其涉及一种手绘动画素材编辑方法、装置、电子设备和存储介质。
背景技术
在动画视频制作过程中,经常会使用到手绘动画素材,以完成手绘动画效果。而目前的实现方式,只能原封不动使用现有的手绘动画素材,如果想进行编辑只能使用画图类软件把手绘素材当做图片处理,这样的实现方式,会导致手绘动画素材丢失手绘动画效果,只能作为静态展示用,从而降低动画制作质量。
因此,如何通过在对手绘动画素材处理过程中保留动画素材的动画效果,并将所述素材运用到手绘动画制作中,是目前亟需解决的技术问题。
发明内容
为解决上述技术缺陷,本发明提供一种手绘动画素材编辑方法,包括步骤:
读取手绘动画素材,获得素材的路径信息;
将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
路径闭合判断,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
接收手绘素材编辑命令,用于对路径或分组进行局部编辑;
素材替换,将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
对应的,本发明还提供一种手绘动画素材编辑装置,包括:
素材读取模块,用于读取手绘动画素材,以获得素材的路径信息;
素材分组模块,用于将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
路径闭合判断模块,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
编辑命令接收模块,用于接收手绘素材编辑命令,进而对路径或分组进行局部编辑;
素材替换模块,用于将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
技术效果说明:本发明通过对手绘动画素材进行解析并分组,并读取分组的路径信息,并以此获取分组的路径信息和样式信息。通过对每个分组中的点集合进行路径闭合判断,如果为非闭合的,则通过路径闭合处理,并获取闭合后的全部路径信息;通过接收素材编辑命令,对路径或分组进行局部编辑;将局部编辑后的分组保存到新的手绘动画素材文件中。
需要说明的是,通过路径闭合处理,让分组中的点集合路径闭合,形成一个封闭区域,便于对于区域进行编辑。
需要进一步说明的是,通过解析素材路径信息,获得素材路径中的分组和每个分组的路径信息、样式信息。
进一步的,所述路径闭合判断,用于每个路径信息中的点集合进行路径闭合判断,并得到闭合处理后的全部路径信息的步骤包括:
判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
读取闭合路径对应的路径信息。
对应的,所述路径闭合判断模块包括;
路径闭合判断单元,用于判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
路径信息读取单元,用于读取闭合路径对应的路径信息。
技术效果说明:判断分组中的点集合是否为闭合路径,如果不是闭合路径,则通过在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;并读取闭合路径对应的路径信息。
进一步的,所述接收手绘素材编辑命令,用于对路径或分组进行局部编辑的步骤包括:
接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
依据路径信息对路径或分组进行局部编辑。
对应的,所述编辑命令接收模块包括:
素材编辑命令接收单元,用于接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
局部编辑单元,用于依据路径信息对路径或分组进行局部编辑。
技术效果说明:用户进行手绘素材编辑时,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径以及其对应的分组信息。依据路径信息对路径或分组进行局部编辑。
进一步的,所述用于对路径或分组进行局部编辑的命令包括边缘颜色、填充颜色、边缘线样式、路径透明度。
对应的,所述局部编辑单元包括边缘颜色、填充颜色、边缘线样式、路径透明度。
技术效果说明:局部编辑单元包括边缘颜色、填充颜色、边缘线样式、路径透明度。
具体的,还包括:
接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点;
对选定的路径或分组中的所有点进行统一的局部编辑。
具体的,还包括:
在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览;
接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。
具体的,还包括:
接收存储信息;
判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。
具体的,还包括:
接收存储信息;
判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。
对应的,还包括:
第一接收单元,用于接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点;
编辑单元,用于对选定的路径或分组中的所有点进行统一的局部编辑。
对应的,还包括:
预览单元,用于在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览;
第二接收单元,用于接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。
对应的,还包括:
第三接收单元,用于接收存储信息;
第一判断单元,用于判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。
对应的,还包括:
第四接收单元,用于接收存储信息;
第二判断单元,用于判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。
本发明还提供一种电子设备,包括存储器和处理器,所述存储器存储计算机程序,所述计算机程序在所述处理器中执行可实现上述任一种方法。
本发明还提供一种存储介质,存储计算机程序,所述计算机程序在处理器中执行可实现上述任一种方法。
本发明提供一种手绘动画素材编辑方法,通过对手绘动画素材进行解析并分组,并读取分组的路径信息,并以此获取分组的路径信息和样式信息。通过对每个分组中的点集合进行路径闭合判断,如果为非闭合的,则通过路径闭合处理,并获取闭合后的全部路径信息;通 过接收素材编辑命令,对路径或分组进行局部编辑;将局部编辑后的分组保存到新的手绘动画素材文件中。
附图说明
图1为一种手绘动画素材编辑方法的流程图;
图2为一实施例提供的对图1中方法的改进方法流程图;
图3为一实施例提供的对图1中方法的改进方法流程图;
图4为一实施例提供的一种手绘动画素材编辑装置的架构图;
图5为图3中路径闭合判断模块的架构图;
图6为图3中编辑命令接收模块的架构图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,在本发明的描述中,除非另有明确的规定和限定,术语“存储介质”可以是ROM、RAM、磁碟或者光盘等各种可以存储计算机程序的介质。术语“处理器”可以是CPLD(Complex Programmable Logic Device:复杂可编程逻辑器件)、FPGA(Field-Programmable Gate Array:现场可编程门阵列)、MCU(Microcontroller Unit:微控制单元)、PLC(Programmable Logic Controller:可编程逻辑控制器)以及CPU(Central Processing Unit:中央处理器)等具备数据处理功能的芯片或电路。术语“电子设备”可以是具有数据处理功能和存储功能的任何设备,通常可以包括固定终端和移动终端。固定终端如台式机等。移动终端如手机、PAD以及移动机器人等。此外,后续所描述的 本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。
下面,本发明提出部分优选实施例以教导本领域技术人员实现。
实施例一:
参见图1,本实施例提供一种手绘动画素材编辑方法,包括步骤:
S1、读取手绘动画素材,获得素材的路径信息;
S2、将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
S3、路径闭合判断,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
S4、接收手绘素材编辑命令,用于对路径或分组进行局部编辑;
S5、素材替换,将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
实施例二:
参见图4,对应的,本发明还提供一种手绘动画素材编辑装置,包括:
素材读取模块1,用于读取手绘动画素材,以获得素材的路径信息;
素材分组模块2,用于将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
路径闭合判断模块3,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
编辑命令接收模块4,用于接收手绘素材编辑命令,进而对路径或分组进行局部编辑;
素材替换模块5,用于将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
技术效果说明:本发明通过对手绘动画素材进行解析并分组,并读取分组的路径信息,并以此获取分组的路径信息和样式信息。通过对每个分组中的点集合进行路径闭合判断,如果为非闭合的,则通过路径闭合处理,并获取闭合后的全部路径信息;通过接收素材编辑命令,对路径或分组进行局部编辑;将局部编辑后的分组保存到新的手绘动画素材文件中。
需要说明的是,通过路径闭合处理,让分组中的点集合路径闭合,形成一个封闭区域,便于对于区域进行编辑。
需要进一步说明的是,通过解析素材路径信息,获得素材路径中的分组和每个分组的路径信息、样式信息。
实施例三:
参见图2,进一步的,所述路径闭合判断,用于每个路径信息中的点集合进行路径闭合判断,并得到闭合处理后的全部路径信息的步骤包括:
S31、判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
S32、读取闭合路径对应的路径信息。
实施例四:
参见图5,对应的,所述路径闭合判断模块包括;
路径闭合判断单元31,用于判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
路径信息读取单元32,用于读取闭合路径对应的路径信息。
技术效果说明:判断分组中的点集合是否为闭合路径,如果不是闭合路径,则通过在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;并读取闭合路径对应的路径信息。
实施例五:
参见图3,进一步的,所述接收手绘素材编辑命令,用于对路径或分组进行局部编辑的步骤包括:
S41、接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
S42、依据路径信息对路径或分组进行局部编辑。
实施例六:
参见图6,对应的,所述编辑命令接收模块包括:
素材编辑命令接收单元41,用于接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
局部编辑单元42,用于依据路径信息对路径或分组进行局部编辑。
技术效果说明:用户进行手绘素材编辑时,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径以及其对应的分组信息。依据路径信息对路径或分组进行局部编辑。
进一步的,所述用于对路径或分组进行局部编辑的命令包括边缘颜色、填充颜色、边缘线样式、路径透明度。
对应的,所述局部编辑单元包括边缘颜色、填充颜色、边缘线样式、路径透明度。
技术效果说明:局部编辑单元包括边缘颜色、填充颜色、边缘线样式、路径透明度。
实施例七:
本发明还包括:接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点。在对手绘动画素材进行编辑时,可能会对多个点进行编辑,其中每个点可以是手绘动画素材中的一帧图像。在对手绘动画素材进行编辑时,可能会对多个相关联的点(属于同一路径、关联路径或者是同一个组的点)同时进行编辑,所以此时会选定路径或分组中的任意一个或多个点。
对选定的路径或分组中的所有点进行统一的局部编辑。在选定相关联的点后对所有点进行统一的编辑,编辑的方式包括边缘颜色设 置、填充颜色设置、边缘线样式设置以及路径透明度设置中的任意一种或多种。
本发明还包括:在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览。本发明在对所有点进行统一的局部编辑编辑者可以进行预览,方便编辑者观看。
接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。在编辑者以预览形式观看编辑后的路径、分组、动画素材后,认为此时编辑的路径、分组、动画素材已经达到要求,输入进行数据保存的确定信息,基于以上的确定信息对编辑后的路径、分组、动画素材进行存储。
本发明还包括:接收存储信息;
判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。在对编辑的点和编辑方式进行存储时,本发明会采取两种存储方式。其中第一种存储方式是将编辑的点和编辑方式融合得到融合后的动画素材进行存储,该种方式在调取过程中具有速度快的优点,但是不会对原始的点进行存储,使得在后续处理时无法获得点在编辑前的数据。
本发明还包括:接收存储信息;
判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。第二种存储方式是将被编辑的点和编辑方式分别存储,使得当需要调取编辑后的点时,分别调取 被编辑的点和编辑方式即时融合显示,并且后续处理时依然可以获得点在编辑前的数据。
本发明提供两种存储方式,可以满足不同手动绘画素材在不同编辑工况下的不同需求。
实施例八:
本发明还包括:第一接收单元,用于接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点。在对手绘动画素材进行编辑时,可能会对多个点进行编辑,其中每个点可以是手绘动画素材中的一帧图像。在对手绘动画素材进行编辑时,可能会对多个相关联的点(属于同一路径、关联路径或者是同一个组的点)同时进行编辑,所以此时会选定路径或分组中的任意一个或多个点。
编辑单元,用于对选定的路径或分组中的所有点进行统一的局部编辑。在选定相关联的点后对所有点进行统一的编辑,编辑的方式包括边缘颜色设置、填充颜色设置、边缘线样式设置以及路径透明度设置中的任意一种或多种。
本发明还包括:预览单元,用于在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览。本发明在对所有点进行统一的局部编辑编辑者可以进行预览,方便编辑者观看。
第二接收单元,用于接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。在编辑者以预览形式观看编辑后的路径、分组、动画素材后,认为此时编辑的路径、分组、动画素材已经 达到要求,输入进行数据保存的确定信息,基于以上的确定信息对编辑后的路径、分组、动画素材进行存储。
本发明还包括:第三接收单元,用于接收存储信息;
第一判断单元,用于判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。在对编辑的点和编辑方式进行存储时,本发明会采取两种存储方式。其中第一种存储方式是将编辑的点和编辑方式融合得到融合后的动画素材进行存储,该种方式在调取过程中具有速度快的优点,但是不会对原始的点进行存储,使得在后续处理时无法获得点在编辑前的数据。
对应的,还包括:第四接收单元,用于接收存储信息;
第二判断单元,用于判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。第二种存储方式是将被编辑的点和编辑方式分别存储,使得当需要调取编辑后的点时,分别调取被编辑的点和编辑方式即时融合显示,并且后续处理时依然可以获得点在编辑前的数据。
本发明提供两种存储方式,可以满足不同手动绘画素材在不同编辑工况下的不同需求。
本发明还提供一种电子设备,包括存储器和处理器,所述存储器存储计算机程序,所述计算机程序在所述处理器中执行可实现上述任一种方法。
本发明还提供一种存储介质,存储计算机程序,所述计算机程序在处理器中执行可实现上述任一种方法。

Claims (18)

  1. 一种手绘动画素材编辑方法,其特征在于,包括步骤:
    读取手绘动画素材,获得素材的路径信息;
    将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
    路径闭合判断,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
    接收手绘素材编辑命令,用于对路径或分组进行局部编辑;
    素材替换,将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
  2. 如权利要求1所述的方法,其特征在于,所述路径闭合判断,用于每个路径信息中的点集合进行路径闭合判断,并得到闭合处理后的全部路径信息的步骤包括:
    判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
    读取闭合路径对应的路径信息。
  3. 如权利要求1所述的方法,其特征在于,所述接收手绘素材编辑命令,用于对路径或分组进行局部编辑的步骤包括:
    接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
    依据路径信息对路径或分组进行局部编辑。
  4. 如权利要求1所述的方法,其特征在于,所述用于对路径或分组进行局部编辑的命令包括边缘颜色、填充颜色、边缘线样式、路径透明度。
  5. 一种手绘动画素材编辑装置,其特征在于,包括:
    素材读取模块,用于读取手绘动画素材,以获得素材的路径信息;
    素材分组模块,用于将所述手绘动画素材进行分组,并依据素材路径获得素材路径中的分组信息;
    路径闭合判断模块,用于判断路径是否闭合,并获取路径闭合处理后的全部路径信息;
    编辑命令接收模块,用于接收手绘素材编辑命令,进而对路径或分组进行局部编辑;
    素材替换模块,用于将局部编辑后生成的新的分组信息替换原分组,并将新分组保存到新的手绘动画素材文件中。
  6. 如权利要求5所述的装置,其特征在于,所述路径闭合判断模块包括;
    路径闭合判断单元,用于判断当前路径点集首尾点是否重合,如闭合则记为一条集合路径;如路径不闭合,则在点集结尾添加一个和首点重合的点,使点集闭合,形成并记为一条闭合路径;
    路径信息读取单元,用于读取闭合路径对应的路径信息。
  7. 如权利要求5所述的装置,其特征在于,所述编辑命令接收模块包括:
    素材编辑命令接收单元,用于接收手绘素材编辑命令,获取用户当前点击或选择的点,通过每个闭合路径和该点的包含关系,获得包含该点的路径和它对应的分组;
    局部编辑单元,用于依据路径信息对路径或分组进行局部编辑。
  8. 如权利要求7所述的装置,其特征在于,所述局部编辑单元包括边缘颜色、填充颜色、边缘线样式、路径透明度。
  9. 如权利要求2所述的手绘动画素材编辑方法,其特征在于,还包括:
    接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点;
    对选定的路径或分组中的所有点进行统一的局部编辑。
  10. 如权利要求9所述的手绘动画素材编辑方法,其特征在于,还包括:
    在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览;
    接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。
  11. 如权利要求10所述的手绘动画素材编辑方法,其特征在于,还包括:
    接收存储信息;
    判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。
  12. 如权利要求10所述的手绘动画素材编辑方法,其特征在于,还包括:
    接收存储信息;
    判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。
  13. 如权利要求6所述的手绘动画素材编辑装置,其特征在于,还包括:
    第一接收单元,用于接收选定信息,所述选定信息用于选定路径或分组中的任意一个或多个点;
    编辑单元,用于对选定的路径或分组中的所有点进行统一的局部编辑。
  14. 如权利要求13所述的手绘动画素材编辑装置,其特征在于,还包括:
    预览单元,用于在对路径或分组中的所有点进行统一的局部编辑后对编辑后的点进行预览;
    第二接收单元,用于接收确定信息,基于所述确定信息对局部编辑后的所有点进行统一存储。
  15. 如权利要求14所述的手绘动画素材编辑方法,其特征在于,还包括:
    第三接收单元,用于接收存储信息;
    第一判断单元,用于判断所述存储信息为第一存储方式时,将所有编辑的点和编辑方式融合得到融合后的动画素材进行存储。
  16. 如权利要求14所述的手绘动画素材编辑装置,其特征在于,还包括:
    第四接收单元,用于接收存储信息;
    第二判断单元,用于判断所述存储信息为第二存储方式时,将所有编辑的点和编辑方式对应设置后分别存储,当需要对编辑的点进行浏览时分别调取编辑的点和编辑方式生成融合后的动画素材。
  17. 一种电子设备,包括存储器和处理器,所述存储器存储计算机程序,其特征在于,所述计算机程序在所述处理器中执行可实现权利要求1-4、9-12中任一种方法。
  18. 一种存储介质,存储计算机程序,其特征在于,所述计算机程序在处理器中执行可实现权利要求1-4、9-12中任一种方法。
PCT/CN2021/106066 2020-12-21 2021-07-13 一种手绘动画素材编辑方法及装置 WO2022134548A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011520913.8 2020-12-21
CN202011520913.8A CN112509097B (zh) 2020-12-21 2020-12-21 一种手绘动画素材编辑方法及装置

Publications (1)

Publication Number Publication Date
WO2022134548A1 true WO2022134548A1 (zh) 2022-06-30

Family

ID=74921896

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/106066 WO2022134548A1 (zh) 2020-12-21 2021-07-13 一种手绘动画素材编辑方法及装置

Country Status (2)

Country Link
CN (1) CN112509097B (zh)
WO (1) WO2022134548A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112509097B (zh) * 2020-12-21 2023-08-18 深圳市前海手绘科技文化有限公司 一种手绘动画素材编辑方法及装置
CN113593677A (zh) * 2021-07-21 2021-11-02 上海商汤智能科技有限公司 图像处理方法、装置、设备以及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846386A (zh) * 2018-07-10 2018-11-20 深圳市前海手绘科技文化有限公司 一种手绘图案智能识别和纠正方法
CN111047671A (zh) * 2019-12-24 2020-04-21 成都来画科技有限公司 一种手绘图片的绘画路径的优化方法及存储介质
US20200302671A1 (en) * 2019-03-18 2020-09-24 Apple Inc. Hand drawn animation motion paths
CN112509097A (zh) * 2020-12-21 2021-03-16 深圳市前海手绘科技文化有限公司 一种手绘动画素材编辑方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111968201A (zh) * 2020-08-11 2020-11-20 深圳市前海手绘科技文化有限公司 一种基于手绘素材的手绘动画素材生成方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846386A (zh) * 2018-07-10 2018-11-20 深圳市前海手绘科技文化有限公司 一种手绘图案智能识别和纠正方法
US20200302671A1 (en) * 2019-03-18 2020-09-24 Apple Inc. Hand drawn animation motion paths
CN111047671A (zh) * 2019-12-24 2020-04-21 成都来画科技有限公司 一种手绘图片的绘画路径的优化方法及存储介质
CN112509097A (zh) * 2020-12-21 2021-03-16 深圳市前海手绘科技文化有限公司 一种手绘动画素材编辑方法及装置

Also Published As

Publication number Publication date
CN112509097A (zh) 2021-03-16
CN112509097B (zh) 2023-08-18

Similar Documents

Publication Publication Date Title
WO2022134548A1 (zh) 一种手绘动画素材编辑方法及装置
CN110266971B (zh) 一种短视频制作方法和系统
US5515490A (en) Method and system for temporally formatting data presentation in time-dependent documents
US20210358524A1 (en) Method and device of editing a video
US8775480B2 (en) Media clip management
JP4698385B2 (ja) 位置に応じて変化する、タイトル、トランジション、および/またはエフェクトなどの特殊効果
US8941615B2 (en) Information processing apparatus, information processing method, and program
CN110287368A (zh) 短视频模板设计图生成装置及短视频模板的生成方法
US11120836B2 (en) Editing apparatus and editing method
WO2001093206A1 (fr) Dispositif de montage d'animation, procede de montage d'animation, programme de montage d'animation, et support enregistre contenant un programme informatique de montage d'animation
US9836180B2 (en) Systems and methods for performing content aware video editing
WO2022033137A1 (zh) 一种基于手绘视频的gif文件生成方法
WO2022116552A1 (zh) 一种用于短视频制作版本差异查找并展示的方法
CN102447842B (zh) 一种支持外部介质挑选草编上载的快速剪辑方法及系统
US20110258546A1 (en) Edited information provision device, edited information provision method, program, and recording medium
WO2022033319A1 (zh) 一种组合素材在手绘动画中的应用方法
EP2146348A2 (en) Apparatus, method, and computer program for processing information
US7484201B2 (en) Nonlinear editing while freely selecting information specific to a clip or a track
WO2022193460A1 (zh) 一种演示模板的转场方式及装置
WO2022156169A1 (zh) 一种导出动画视频的方法与装置
WO2022033129A1 (zh) 一种交互式手绘视频制作方法
KR20180046419A (ko) 클라우드 기반 인터렉티브 스마트 콘텐츠 제작 시스템
WO2022033317A1 (zh) 一种基于ae文件的手绘视频制作方法
WO2022083236A1 (zh) 动画视频备份方法及其装置、管理方法及其装置
WO2022100095A1 (zh) 一种基于文字排版的手绘素材制作方法与装置

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: 21908553

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 21908553

Country of ref document: EP

Kind code of ref document: A1