CN112509097A - Hand-drawn animation material editing method and device - Google Patents

Hand-drawn animation material editing method and device Download PDF

Info

Publication number
CN112509097A
CN112509097A CN202011520913.8A CN202011520913A CN112509097A CN 112509097 A CN112509097 A CN 112509097A CN 202011520913 A CN202011520913 A CN 202011520913A CN 112509097 A CN112509097 A CN 112509097A
Authority
CN
China
Prior art keywords
path
editing
hand
point
grouping
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.)
Granted
Application number
CN202011520913.8A
Other languages
Chinese (zh)
Other versions
CN112509097B (en
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.)
Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Original Assignee
Shenzhen Qianhai Hand Painted Technology and Culture 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 Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd filed Critical Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Priority to CN202011520913.8A priority Critical patent/CN112509097B/en
Publication of CN112509097A publication Critical patent/CN112509097A/en
Priority to PCT/CN2021/106066 priority patent/WO2022134548A1/en
Application granted granted Critical
Publication of CN112509097B publication Critical patent/CN112509097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention provides a hand-drawn animation material editing method, which analyzes and groups hand-drawn animation materials, reads grouped path information and acquires grouped path information and style information. Judging path closure by the point set in each group, if the point set is not closed, performing path closure processing and acquiring all closed path information; local editing is carried out on the paths or the groups by receiving a material editing command; and storing the partially edited groups into a new hand-drawn animation material file.

Description

Hand-drawn animation material editing method and device
Technical Field
The invention belongs to the technical field of hand-drawn animation production, and particularly relates to a method and a device for editing hand-drawn animation materials, electronic equipment and a storage medium.
Background
In the animation video production process, hand-drawn animation materials are often used to complete the hand-drawn animation effect. However, the conventional hand-drawn animation materials can only be used as they are, and if the user wants to edit the hand-drawn animation materials, the user can only use drawing software to process the hand-drawn animation materials as pictures, so that the hand-drawn animation materials lose the hand-drawn animation effect and can only be used for static display, and the animation production quality is reduced.
Therefore, how to apply the animation effect of the animation material to the hand-drawing animation by keeping the animation effect of the animation material in the process of processing the hand-drawing animation material is a technical problem which needs to be solved at present.
Disclosure of Invention
In order to solve the technical defects, the invention provides a hand-drawn animation material editing method, which comprises the following steps:
reading the hand-drawn animation material to obtain the path information of the material;
grouping the hand-drawn animation materials, and acquiring grouping information in a material path according to the material path;
path closing judgment, which is used for judging whether the path is closed or not and acquiring all path information after path closing treatment;
receiving a freehand drawing material editing command for locally editing the path or the grouping;
and replacing the materials, namely replacing the original groups with new group information generated after the local editing, and storing the new groups into a new hand-drawn animation material file.
Correspondingly, the invention also provides a hand-drawn animation material editing device, which comprises:
the material reading module is used for reading the hand-drawn animation material so as to obtain the path information of the material;
the material grouping module is used for grouping the hand-drawn animation materials and obtaining grouping information in a material path according to the material path;
the path closing judging module is used for judging whether the path is closed or not and acquiring all path information after path closing processing;
the editing command receiving module is used for receiving a hand-drawn material editing command and further locally editing the path or the grouping;
and the material replacing module is used for replacing the original grouping with the new grouping information generated after the local editing and storing the new grouping into a new hand-drawn animation material file.
Description of technical effects: the invention analyzes and groups the hand-drawing animation materials, reads the grouped path information and obtains the grouped path information and the style information. Judging path closure by the point set in each group, if the point set is not closed, performing path closure processing and acquiring all closed path information; local editing is carried out on the paths or the groups by receiving a material editing command; and storing the partially edited groups into a new hand-drawn animation material file.
It should be noted that, by the path closing process, the point-collecting paths in the group are closed to form a closed region, which is convenient for editing the region.
It should be further noted that the packets in the material path and the path information and style information of each packet are obtained by parsing the material path information.
Further, the step of determining path closure, where the step is used for performing path closure determination on the point set in each piece of path information and obtaining all pieces of path information after the closure processing, includes:
judging whether the head and tail points of the current path point set are overlapped, and if the head and tail points are overlapped, recording the path as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and reading path information corresponding to the closed path.
Correspondingly, the path closing judging module comprises;
the path closing judging unit is used for judging whether the head point and the tail point of the current path point set are overlapped, and if the head point and the tail point of the current path point set are overlapped, the path is marked as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and the path information reading unit is used for reading the path information corresponding to the closed path.
Description of technical effects: judging whether the point set in the group is a closed path or not, if not, adding a point coincident with the head point at the tail of the point set to close the point set to form and record a closed path; and reading path information corresponding to the closed path.
Further, the step of receiving a hand-drawn material editing command for performing local editing on the path or the packet includes:
receiving a freehand drawing material editing command, acquiring a point currently clicked or selected by a user, and acquiring a path containing the point and a group corresponding to the path through the inclusion relationship between each closed path and the point;
and locally editing the path or the packet according to the path information.
Correspondingly, the editing command receiving module comprises:
the material editing command receiving unit is used for receiving the hand-drawn material editing command, acquiring points clicked or selected by a user at present, and acquiring paths containing the points and corresponding groups thereof through the inclusion relation between each closed path and the points;
and the local editing unit is used for locally editing the path or the grouping according to the path information.
Description of technical effects: when the user edits the hand-drawn material, the current clicked or selected point of the user is obtained, and the path containing the point and the corresponding grouping information are obtained through the inclusion relation between each closed path and the point. And locally editing the path or the packet according to the path information.
Further, the commands for locally editing the path or the packet include edge color, fill color, edge line style, and path transparency.
Correspondingly, the local editing unit comprises an edge color, a filling color, an edge line pattern and path transparency.
Description of technical effects: the local editing unit comprises edge color, filling color, edge line style and path transparency.
The invention also provides an electronic device comprising a memory and a processor, the memory storing a computer program, the computer program being executable in the processor to implement any of the methods described above.
The present invention also provides a storage medium storing a computer program which is executed in a processor to implement any of the methods described above.
The invention provides a hand-drawn animation material editing method, which analyzes and groups hand-drawn animation materials, reads grouped path information and acquires grouped path information and style information. Judging path closure by the point set in each group, if the point set is not closed, performing path closure processing and acquiring all closed path information; local editing is carried out on the paths or the groups by receiving a material editing command; and storing the partially edited groups into a new hand-drawn animation material file.
Drawings
FIG. 1 is a flow chart of a method for editing freehand animation material;
FIG. 2 is a flow diagram of an embodiment of a method for modifying the method of FIG. 1;
FIG. 3 is a flow diagram of an embodiment of a method for modifying the method of FIG. 1;
fig. 4 is an architecture diagram of a hand-drawn animation material editing apparatus according to an embodiment;
FIG. 5 is an architecture diagram of the path closure determination module shown in FIG. 3;
fig. 6 is an architecture diagram of the editing command receiving module of fig. 3.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that in the description of the present invention, unless otherwise explicitly specified or limited, the term "storage medium" may be various media that can store a computer program, such as ROM, RAM, a magnetic or optical disk, or the like. The term "processor" may be a chip or a circuit having a data Processing function, such as a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), an MCU (micro Controller Unit), a PLC (Programmable Logic Controller), and a CPU (Central Processing Unit). The term "electronic device" may be any device having data processing and storage functions and may generally include fixed and mobile terminals. Fixed terminals such as desktop computers and the like. Mobile terminals such as mobile phones, PADs, and mobile robots, etc. Furthermore, the technical features mentioned in the different embodiments of the invention described later can be combined with each other as long as they do not conflict with each other.
In the following, the present invention proposes some preferred embodiments to teach those skilled in the art to implement.
The first embodiment is as follows:
referring to fig. 1, the present embodiment provides a method for editing a hand-drawn animation material, including the steps of:
s1, reading the hand-drawn animation material to obtain the path information of the material;
s2, grouping the hand-drawn animation materials, and obtaining grouping information in a material path according to the material path;
s3, judging path closure, which is used for judging whether the path is closed and acquiring all path information after path closure processing;
s4, receiving a hand-drawn material editing command for locally editing the path or the grouping;
and S5, replacing the material, replacing the original grouping with the new grouping information generated after the local editing, and storing the new grouping into a new hand-drawn animation material file.
Example two:
referring to fig. 4, correspondingly, the present invention further provides a hand-drawn animation material editing apparatus, including:
the material reading module 1 is used for reading the hand-drawn animation material so as to obtain the path information of the material;
the material grouping module 2 is used for grouping the hand-drawn animation materials and obtaining grouping information in a material path according to the material path;
the path closing judging module 3 is used for judging whether the path is closed or not and acquiring all path information after path closing processing;
the editing command receiving module 4 is used for receiving a hand-drawn material editing command and further locally editing the path or the grouping;
and the material replacing module 5 is used for replacing the original grouping with the new grouping information generated after the local editing and storing the new grouping into a new hand-drawn animation material file.
Description of technical effects: the invention analyzes and groups the hand-drawing animation materials, reads the grouped path information and obtains the grouped path information and the style information. Judging path closure by the point set in each group, if the point set is not closed, performing path closure processing and acquiring all closed path information; local editing is carried out on the paths or the groups by receiving a material editing command; and storing the partially edited groups into a new hand-drawn animation material file.
It should be noted that, by the path closing process, the point-collecting paths in the group are closed to form a closed region, which is convenient for editing the region.
It should be further noted that the packets in the material path and the path information and style information of each packet are obtained by parsing the material path information.
Example three:
referring to fig. 2, further, the step of determining path closure, which is used for determining path closure for the point set in each path information and obtaining all path information after closure processing, includes:
s31, judging whether the head and tail points of the current path point set coincide, if so, recording as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and S32, reading the path information corresponding to the closed path.
Example four:
referring to fig. 5, correspondingly, the path closing determination module includes;
a path closing judgment unit 31, configured to judge whether a head point and a tail point of a current path point set coincide, and if so, mark as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and a path information reading unit 32, configured to read path information corresponding to the closed path.
Description of technical effects: judging whether the point set in the group is a closed path or not, if not, adding a point coincident with the head point at the tail of the point set to close the point set to form and record a closed path; and reading path information corresponding to the closed path.
Example five:
referring to fig. 3, further, the step of receiving a hand-drawn material editing command for performing partial editing on a path or a packet includes:
s41, receiving a freehand drawing material editing command, acquiring a point currently clicked or selected by a user, and acquiring a path containing the point and a corresponding group thereof through the inclusion relationship between each closed path and the point;
and S42, local editing is carried out on the paths or the groups according to the path information.
Example six:
referring to fig. 6, correspondingly, the editing command receiving module includes:
a material editing command receiving unit 41, configured to receive a hand-drawn material editing command, obtain a point currently clicked or selected by a user, and obtain a path including the point and a group corresponding to the path through an inclusion relationship between each closed path and the point;
and a local editing unit 42, configured to locally edit the path or the packet according to the path information.
Description of technical effects: when the user edits the hand-drawn material, the current clicked or selected point of the user is obtained, and the path containing the point and the corresponding grouping information are obtained through the inclusion relation between each closed path and the point. And locally editing the path or the packet according to the path information.
Further, the commands for locally editing the path or the packet include edge color, fill color, edge line style, and path transparency.
Correspondingly, the local editing unit comprises an edge color, a filling color, an edge line pattern and path transparency.
Description of technical effects: the local editing unit comprises edge color, filling color, edge line style and path transparency.
The invention also provides an electronic device comprising a memory and a processor, the memory storing a computer program, the computer program being executable in the processor to implement any of the methods described above.
The present invention also provides a storage medium storing a computer program which is executed in a processor to implement any of the methods described above.

Claims (10)

1. A method for editing hand-drawn animation materials, comprising the steps of:
reading the hand-drawn animation material to obtain the path information of the material;
grouping the hand-drawn animation materials, and acquiring grouping information in a material path according to the material path;
path closing judgment, which is used for judging whether the path is closed or not and acquiring all path information after path closing treatment;
receiving a freehand drawing material editing command for locally editing the path or the grouping;
and replacing the materials, namely replacing the original groups with new group information generated after the local editing, and storing the new groups into a new hand-drawn animation material file.
2. The method according to claim 1, wherein the path closing judgment is used for performing path closing judgment on the point set in each path information, and obtaining all path information after closing processing includes:
judging whether the head and tail points of the current path point set are overlapped, and if the head and tail points are overlapped, recording the path as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and reading path information corresponding to the closed path.
3. The method of claim 1, wherein receiving a hand drawn material editing command for locally editing a path or grouping comprises:
receiving a freehand drawing material editing command, acquiring a point currently clicked or selected by a user, and acquiring a path containing the point and a group corresponding to the path through the inclusion relationship between each closed path and the point;
and locally editing the path or the packet according to the path information.
4. The method of claim 1, wherein the commands for locally editing a path or a packet include edge color, fill color, edge line style, path transparency.
5. A hand-drawn animation material editing apparatus, comprising:
the material reading module is used for reading the hand-drawn animation material so as to obtain the path information of the material;
the material grouping module is used for grouping the hand-drawn animation materials and obtaining grouping information in a material path according to the material path;
the path closing judging module is used for judging whether the path is closed or not and acquiring all path information after path closing processing;
the editing command receiving module is used for receiving a hand-drawn material editing command and further locally editing the path or the grouping;
and the material replacing module is used for replacing the original grouping with the new grouping information generated after the local editing and storing the new grouping into a new hand-drawn animation material file.
6. The apparatus of claim 5, wherein the path closure determination module comprises;
the path closing judging unit is used for judging whether the head point and the tail point of the current path point set are overlapped, and if the head point and the tail point of the current path point set are overlapped, the path is marked as a set path; if the path is not closed, adding a point which is overlapped with the head point at the tail of the point set to close the point set, and forming and marking as a closed path;
and the path information reading unit is used for reading the path information corresponding to the closed path.
7. The apparatus of claim 5, wherein the edit command receiving module comprises:
the material editing command receiving unit is used for receiving the hand-drawn material editing command, acquiring points clicked or selected by a user at present, and acquiring paths containing the points and corresponding groups thereof through the inclusion relation between each closed path and the points;
and the local editing unit is used for locally editing the path or the grouping according to the path information.
8. The apparatus of claim 7, wherein the local editing unit comprises an edge color, a fill color, an edge line pattern, a path transparency.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the computer program is executed in the processor to perform the method of any of claims 1-4.
10. A storage medium storing a computer program, characterized in that the computer program is executed in a processor to implement the method of any of claims 1-4.
CN202011520913.8A 2020-12-21 2020-12-21 Method and device for editing hand-painted animation materials Active CN112509097B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011520913.8A CN112509097B (en) 2020-12-21 2020-12-21 Method and device for editing hand-painted animation materials
PCT/CN2021/106066 WO2022134548A1 (en) 2020-12-21 2021-07-13 Hand-drawn animation material editing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011520913.8A CN112509097B (en) 2020-12-21 2020-12-21 Method and device for editing hand-painted animation materials

Publications (2)

Publication Number Publication Date
CN112509097A true CN112509097A (en) 2021-03-16
CN112509097B CN112509097B (en) 2023-08-18

Family

ID=74921896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011520913.8A Active CN112509097B (en) 2020-12-21 2020-12-21 Method and device for editing hand-painted animation materials

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593677A (en) * 2021-07-21 2021-11-02 上海商汤智能科技有限公司 Image processing method, device, equipment and computer readable storage medium
WO2022134548A1 (en) * 2020-12-21 2022-06-30 深圳市前海手绘科技文化有限公司 Hand-drawn animation material editing method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846386A (en) * 2018-07-10 2018-11-20 深圳市前海手绘科技文化有限公司 A kind of hand drawing pattern intelligent recognition and correcting method
CN111047671A (en) * 2019-12-24 2020-04-21 成都来画科技有限公司 Optimization method of drawing path of hand-drawn picture and storage medium
US20200302671A1 (en) * 2019-03-18 2020-09-24 Apple Inc. Hand drawn animation motion paths
CN111968201A (en) * 2020-08-11 2020-11-20 深圳市前海手绘科技文化有限公司 Hand-drawn animation material generation method based on hand-drawn material

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112509097B (en) * 2020-12-21 2023-08-18 深圳市前海手绘科技文化有限公司 Method and device for editing hand-painted animation materials

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846386A (en) * 2018-07-10 2018-11-20 深圳市前海手绘科技文化有限公司 A kind of hand drawing pattern intelligent recognition and correcting method
US20200302671A1 (en) * 2019-03-18 2020-09-24 Apple Inc. Hand drawn animation motion paths
CN111047671A (en) * 2019-12-24 2020-04-21 成都来画科技有限公司 Optimization method of drawing path of hand-drawn picture and storage medium
CN111968201A (en) * 2020-08-11 2020-11-20 深圳市前海手绘科技文化有限公司 Hand-drawn animation material generation method based on hand-drawn material

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022134548A1 (en) * 2020-12-21 2022-06-30 深圳市前海手绘科技文化有限公司 Hand-drawn animation material editing method and apparatus
CN113593677A (en) * 2021-07-21 2021-11-02 上海商汤智能科技有限公司 Image processing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112509097B (en) 2023-08-18
WO2022134548A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
US10880098B2 (en) Collaborative document editing
CN108763068B (en) Automatic testing method and terminal based on machine learning
CN112509097A (en) Hand-drawn animation material editing method and device
CN110415319B (en) Animation production method and device based on PPT, electronic equipment and storage medium
CN109189682A (en) A kind of script method for recording and device
US9230356B2 (en) Document collaboration effects
US20040161151A1 (en) On-line handwritten character pattern recognizing and editing apparatus and method, and recording medium storing computer-executable program for realizing the method
US20130160142A1 (en) Track Changes Permissions
US20130159830A1 (en) Smart Text in Document Chat
KR20230006580A (en) Image data encoding method and device, display method and device, electronic device
CN111968200A (en) GIF file generation method based on hand-drawn video
US6507345B1 (en) Apparatus and method for creating graphics
WO2022116552A1 (en) Method for finding and presenting version differences of produced short videos
CN109978044A (en) The training method and device of training data generation method and device and model
WO2022193460A1 (en) Presentation template transition method and device
CN111968201A (en) Hand-drawn animation material generation method based on hand-drawn material
CN112396681A (en) Animation generation method and device and storage medium
CN107193815A (en) A kind of processing method of page code, device and equipment
CN104932823A (en) Information processing method and electronic equipment
CN112738423B (en) Method and device for exporting animation video
CN111932660A (en) Hand-drawn video production method based on AE (Enterprise edition) file
WO2022083236A1 (en) Animated video backup method and apparatus therefor, and animated video management method and apparatus therefor
CN112307715A (en) Method and device for making hand-drawn material based on character typesetting
CN111626233B (en) Key point marking method, system, machine readable medium and equipment
CN115859936A (en) Typesetting method and device for written content, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant