WO2020124603A1 - 一种绘图方法、绘图装置及电子设备 - Google Patents

一种绘图方法、绘图装置及电子设备 Download PDF

Info

Publication number
WO2020124603A1
WO2020124603A1 PCT/CN2018/122880 CN2018122880W WO2020124603A1 WO 2020124603 A1 WO2020124603 A1 WO 2020124603A1 CN 2018122880 W CN2018122880 W CN 2018122880W WO 2020124603 A1 WO2020124603 A1 WO 2020124603A1
Authority
WO
WIPO (PCT)
Prior art keywords
original image
touch
sampling
reference point
point set
Prior art date
Application number
PCT/CN2018/122880
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 深圳市柔宇科技有限公司
Priority to CN201880097624.6A priority Critical patent/CN113168722A/zh
Priority to PCT/CN2018/122880 priority patent/WO2020124603A1/zh
Publication of WO2020124603A1 publication Critical patent/WO2020124603A1/zh

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation

Definitions

  • the present invention relates to the field of electronic device drawing, and more specifically, to a drawing method, drawing device, and electronic device.
  • the technical problem to be solved by the above technical solution is to provide a drawing method, a drawing device, and an electronic device in view of the above-mentioned defects of the prior art.
  • a drawing method including:
  • sampling of the original image to form a reference point set constituting the contour of the original image includes:
  • the method further includes: [0012] detecting touch actions;
  • the touch trajectory of the touch action is displayed on the display area in real time according to the touch action.
  • a drawing device including:
  • an image acquisition device for acquiring an original image
  • an image sampling device that samples the original image to form a set of reference points that constitute the outline of the original image
  • the display area further includes a touch element, the touch element is used to detect a touch action, and the touch track of the touch action is displayed on the display area in real time according to the touch action.
  • a second detection module is included for detecting a display mode command; the display area displays the touch track of the touch action according to the display mode command.
  • an electronic device includes a processor, and the processor is configured to implement the drawing method as described above when executing a computer program stored in a memory.
  • FIG. 1 is a flowchart of a drawing method provided by an embodiment of the present invention.
  • FIG. 2 is a flowchart of a drawing method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a drawing device provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a drawing device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The best embodiment of the invention
  • the drawing method of this embodiment is applied to an electronic device.
  • the electronic device includes a display screen, and the display screen is used to display a set of reference points that constitute the outline of the original image.
  • the operating system of the electronic device includes, but is not limited to, Android operating system, iOS operating system, Windows operating system, Linu x operating system, and so on.
  • the drawing method includes the following steps:
  • the electronic device receives the drawing start instruction and starts the drawing function.
  • the start instruction may be generated by the electronic device receiving a touch operation, or may be generated by a received voice signal, or may be generated by a key operation
  • the original image is acquired.
  • the original picture can be generated by calling the camera to take a picture, and the original picture stored in the memory can be read; or the original picture can be obtained by receiving, the original picture can be obtained through network reception, or the original picture can be received through short-range wireless communication, etc.
  • Users provide a variety of original image acquisition paths to meet the different needs of users.
  • the original picture may be a portrait picture, an animal picture, a gourmet picture, a sports picture, a landscape picture, etc.
  • the image that the user wants to draw can be used as the original image, thereby greatly expanding the scope of the user's painting.
  • S102 Sampling the original image to form a reference point set that constitutes the outline of the original image.
  • the original image may be sampled according to a sampling mode command preset in the electronic device to form a reference point set that constitutes the outline of the original image.
  • a sampling mode command preset in the electronic device to form a reference point set that constitutes the outline of the original image.
  • This embodiment provides users with multiple sampling mode commands, each sampling mode command corresponds to different sampling parameters, and the user can obtain different reference point sets of the same original image by selecting the sampling mode command.
  • the sampling mode command input is detected, and the original image is sampled according to the sampling mode command.
  • Different sampling mode commands include different sampling styles and sampling densities. Different sampling styles and sampling densities of the same original image correspond to different reference point sets.
  • the original The image is sampled.
  • the original image is uniformly sampled to form a set of reference points that constitute the outline of the original image.
  • sampling the original image to form the reference point set constituting the outline of the original image includes:
  • Grayscale processing is performed on the original image to obtain a black-and-white picture; a reference point set used to form an image outline in the black-and-white picture is extracted, and the reference point set includes a reference line and a reference point.
  • These reference lines and reference points can form the outline of the original image.
  • the user draws these reference lines and reference points to draw, and the drawn image can be obtained after the drawing is completed, and the drawn image corresponds to the original image.
  • the obtained reference line includes the circular outline of the soccer ball and the texture on the spherical surface; for example, if there is a flower in the original picture, the obtained reference line is the outline of the flower and petal, and the stamen And spots as reference points.
  • the user's drawing handwriting can completely coincide with the reference line and the reference point, or the reference line and the reference point can be used as a reference to deviate appropriately to draw a more personalized image .
  • this embodiment sets difficulty levels of different levels, and different difficulty levels correspond to different sets of reference points, that is, the number of reference lines and reference points correspond to the selected difficulty level.
  • the lower the difficulty level the greater the number of corresponding reference lines and reference points; the higher the difficulty level, the smaller the number of corresponding reference lines and reference points.
  • this embodiment also provides a variety of drawing styles for the user to choose, each drawing style corresponds to a different reference point set distribution, that is, different reference lines With reference point distribution, the same original picture can be processed as a set of reference points with different drawing styles. After selecting the original picture, the user needs to select a drawing style, and process the original picture according to the selected drawing style to obtain a reference point set corresponding to the drawing style.
  • the reference point set is displayed on the display screen of the electronic device, that is, the reference points and reference lines are displayed on the display screen, and the user draws by drawing these reference lines and reference points, and the drawing image can be obtained after the drawing is completed.
  • the reference point set is used as a background pattern, and then a drawing area for drawing is created, the drawing area is superimposed on the background pattern, and the drawing area is built to receive a touch action applied by a user, thereby generating a drawing instruction. It can be understood that although the reference point set and the drawing area are displayed superimposed at this time, the essence
  • the upper reference point set and the drawing area belong to two different sets of data, or two different pictures, which are independent of each other and can be controlled and processed separately.
  • the size and position of the drawing area can be adjusted.
  • the drawing area can be the same size as the reference point set.
  • the drawing area can also be only a part of the reference point set. The user can choose to draw a part of the reference point set according to the drawing needs.
  • the method before displaying the reference point set, further includes: receiving a sequence display instruction, and the reference point set is divided into multiple times for display according to the sequence display instruction.
  • the specific display process is: first display a part of the reference point set, that is, display a part of the reference line and the reference point, and the user draws accordingly; after receiving the sequential display instruction, display the reference point set of the next stage, that is, display the reference of the next stage The user can continue to draw lines and reference points accordingly; and so on, until all the reference points of the reference point set are displayed.
  • the display order of the reference points and reference lines in the reference point set is set, and the reference points and reference lines are displayed in stages according to the display order.
  • the original image is sampled to form a reference point set that constitutes the outline of the original image, and the reference point set is displayed to provide the user with a reference base plate for painting, and the user can perform painting based on the base plate.
  • the drawing method of this embodiment is applied to an electronic device, the electronic device includes a touch panel and a display screen; wherein the touch panel is used to receive a touch action applied by a user To generate a drawing instruction, and then generate a touch track according to the drawing instruction.
  • the display is used to display the reference point set and the touch track during drawing.
  • the drawing method of this embodiment further includes the following steps:
  • S104 Detect a touch action.
  • the touch panel receives a touch action applied by the user, for example, the user may directly touch the touch panel through a limb, or write on the touch panel with a stylus.
  • the touchpad receives a drawing operation to generate a drawing instruction, or the touchpad receives a wireless sensing signal to generate a drawing instruction, or the touchpad receives a stylus pressing operation to generate a drawing instruction, or the touchpad receives a drawing operation to generate a drawing instruction, and then generates a touch according to the drawing instruction Control trajectory.
  • the touch pad and the display screen may be an integrated touch display screen, or the touch pad and the display screen are separated.
  • S105 The touch track of the touch action is displayed on the display area in real time according to the touch action.
  • each display mode command corresponds to different handwriting parameters.
  • the display mode command includes an attribute adjustment instruction, and the attribute information of the touch track is adjusted according to the attribute adjustment instruction, where the attribute information of the touch track includes but is not limited to width, grayscale, shape, etc.
  • the touchpad When the touchpad and the display screen in the electronic device are separated, the touchpad is used to receive a touch action applied by the user to generate a drawing instruction; the display screen is used to display a reference point set and a touch trajectory during drawing. The touchpad sends drawing instructions to the display screen, and the display screen displays the touch track in real time according to the drawing instructions.
  • the method further includes: receiving an enlargement instruction for enlarging the reference point set and the touch track, to achieve Synchronous enlargement of reference point set and touch track.
  • the method further includes: receiving a reduction instruction for reducing the reference point set and the touch track, so as to realize the simultaneous reduction of the reference point set and the touch track.
  • the method further includes: receiving a movement instruction for moving the reference point set and the touch track, to achieve Synchronous movement of reference point set and touch track.
  • a movement instruction for moving the reference point set and the touch track to achieve Synchronous movement of reference point set and touch track.
  • This embodiment preprocesses the picture that the user needs to imitate and draw, and extracts reference lines and reference points on the original picture.
  • the user performs copy drawing based on these reference lines and reference points, and can easily complete the drawing and obtain the drawn image It has high quality, meets the user's drawing needs, and at the same time can quickly improve the user's drawing skills.
  • sampling the original image to form the reference point set constituting the outline of the original image includes: sampling the original image to form the reference point set constituting the outline of the original image to And the set of color points that form the reference color of the original image.
  • the display mode command includes an attribute adjustment instruction, and the attribute information of the touch track is adjusted according to the attribute adjustment instruction; wherein the attribute information of the touch track includes at least one of color, width, grayscale, and shape.
  • the reference point set is in color
  • the touch trace drawn by the user is also in color, so that a color drawn image can be obtained.
  • the electronic device records the drawing process to form a drawing process video.
  • the video of recording the drawing process may include both the reference point set and the touch track, or only the drawing process of the touch track may be retained. Users can find the deficiencies in the drawing through the video of the drawing process, or share the video of the drawing process through the network.
  • the method further includes the steps of: after drawing, the drawing area receives the save instruction and saves the touch trajectory to In memory. Since the touch track and the reference point set are independent of each other, only the touch track is saved at this time, and the reference point set and the touch track can also be saved at the same time. It can be understood that when saving the touch track, the user is not required to complete all the touch tracks. The user can save it at any time to facilitate the user to pause drawing at any time, and continue drawing on the original basis when he wants to continue drawing in the later period. Alternatively, if the electronic device is connected to the server or the cloud, it can also be synchronized and saved in real time, that is, the touch track is synchronized and saved to the server or the cloud in real time.
  • the method further includes the step of: sending the touch track.
  • the drawing device of this embodiment is applied to an electronic device.
  • the electronic device includes a display screen, and the display screen is used to display a set of reference points that constitute the outline of the original image.
  • the operating system of the electronic device includes, but is not limited to, Android operating system, iOS operating system, Windows operating system, Linu x operating system, and so on.
  • the drawing device includes:
  • the image acquisition device 201 is used to acquire an original image.
  • the electronic device receives the drawing start instruction to start the drawing function, and the start instruction may be generated by the electronic device receiving a touch operation, may also be generated by the received voice signal, or may be generated by a key operation
  • the image acquisition device includes but is not limited to a camera, a memory, a communication module, and the like. After the painting function is activated, the original image is obtained.
  • the original picture can be generated by calling the camera to take a picture, and the original picture stored in the memory can be read; or the original picture can be obtained by receiving, the original picture can be obtained through network reception, or the original picture can be received through short-range wireless communication, etc.
  • Users provide a variety of original image acquisition paths to meet the different needs of users.
  • the original picture may be a portrait picture, an animal picture, a gourmet picture, a sports picture, a landscape picture, etc.
  • the image that the user wants to draw can be used as the original image, thereby greatly expanding the scope of the user's painting.
  • the image sampling device 202 is configured to sample the original image to form a set of reference points that constitute the outline of the original image.
  • the drawing device further includes a first detection module for detecting a sampling mode command; the first detection module is connected to the image sampling device; the image sampling device samples the original image with the sampling mode command.
  • the original image may be sampled according to a sampling mode command preset in the electronic device to form a reference point set that constitutes the outline of the original image.
  • This embodiment provides users with a variety of sampling mode commands, each sampling mode command corresponds to different sampling parameters, and the user can obtain different reference point sets of the same original image by selecting the sampling mode command.
  • the sampling mode command input is detected, and the original image is sampled according to the sampling mode command.
  • Different sampling mode commands include different sampling styles and sampling densities.
  • the original image After receiving the sampling mode command input by the user, the original image is sampled according to the sampling style and sampling density. Preferably, the original image is uniformly sampled to form a set of reference points that constitute the outline of the original image.
  • sampling the original image to form the reference point set constituting the outline of the original image includes:
  • the reference point set includes reference lines and reference points.
  • These reference lines and reference points can constitute the outline of the original image.
  • the user draws by drawing these reference lines and reference points, and the drawing image can be obtained after the drawing is completed, which corresponds to the original image.
  • the obtained reference line includes the circular outline of the football and the texture on the spherical surface; for another example, if there is a flower in the original picture, the obtained reference line is the outline of the flower and petal, and the stamen And spots as reference points.
  • the reference line and the reference point can also be used as a reference to deviate appropriately to draw a more personalized image.
  • this embodiment sets different levels of difficulty levels, and different difficulty levels correspond to different sets of reference points, that is, the number of reference lines and reference points correspond to the selected difficulty level.
  • the lower the difficulty level the greater the number of corresponding reference lines and reference points; the higher the difficulty level, the smaller the number of corresponding reference lines and reference points.
  • this embodiment also provides a variety of drawing styles for the user to choose, each drawing style corresponds to a different reference point set distribution, that is, different reference lines With reference point distribution, the same original picture can be processed as a set of reference points with different drawing styles. After selecting the original picture, the user needs to select a drawing style, and process the original picture according to the selected drawing style to obtain a reference point set corresponding to the drawing style.
  • a display area 203 displays a set of reference points.
  • the reference point set is displayed on the display screen of the electronic device, that is, the reference points and reference lines are displayed on the display screen, and the user draws by drawing these reference lines and reference points, and the drawing image can be obtained after the drawing is completed.
  • the reference point set is used as a background pattern, and then a drawing area for drawing is created, the drawing area is superimposed on the background pattern, and the drawing area is built to receive a touch action applied by a user, thereby generating a drawing instruction. It can be understood that although the reference point set and the drawing area are displayed superimposed at this time, in essence, the reference point set and the drawing area belong to two sets of different data, or two different pictures, which are independent of each other, and can be performed separately Control and processing.
  • the size and position of the drawing area can be adjusted.
  • the drawing area can be the same size as the reference point set.
  • the drawing area can also be only a part of the reference point set. The user can choose to draw a certain part of the reference point set according to the drawing needs.
  • the device before displaying the reference point set further includes: receiving a sequence display instruction, and the reference point set is divided into multiple times for display according to the sequence display instruction.
  • the specific display process is: first display a part of the reference point set, that is, display a part of the reference line and the reference point, and the user draws accordingly; after receiving the sequential display instruction, display the reference point set of the next stage, that is, display the reference of the next stage The user can continue to draw lines and reference points accordingly; and so on, until all the reference points of the reference point set are displayed.
  • set the parameter The test points focus on the display order of reference points and reference lines.
  • the reference points and reference lines are displayed in stages according to the display order.
  • the original image is sampled to form a reference point set that constitutes the outline of the original image, and the reference point set is displayed to provide the user with a reference base plate for painting, and the user can perform painting based on the base plate.
  • the drawing device of this embodiment is applied to an electronic device, the electronic device includes a touchpad and a display screen; wherein the touchpad is used to receive a touch action applied by a user To generate a drawing instruction, and then generate a touch track according to the drawing instruction.
  • the display is used to display the reference point set and the touch track during drawing.
  • the drawing device of this embodiment further includes:
  • the display area further includes a touch element 204.
  • the touch element is used to detect a touch action and display the touch trajectory of the touch action on the display area in real time according to the touch action.
  • the touch panel receives a touch action applied by the user, for example, the user may directly touch the touch panel through a limb, or write on the touch panel with a stylus.
  • the touchpad receives a drawing operation to generate a drawing instruction, or the touchpad receives a wireless sensing signal to generate a drawing instruction, or the touchpad receives a stylus pressing operation to generate a drawing instruction, or the touchpad receives a drawing operation to generate a drawing instruction, and then generates a touch according to the drawing instruction Control trajectory.
  • the touchpad and display may be an integrated touch display, or the touchpad and display may be separate.
  • the touch track of the touch action is displayed on the display area in real time according to the touch action.
  • the drawing device further includes a second detection module for detecting a display mode command; the display area displays the touch trajectory of the touch action according to the display mode command.
  • This embodiment provides multiple display mode commands, and each display mode command corresponds to different handwriting parameters.
  • the display mode command includes an attribute adjustment instruction, and the attribute information of the touch track is adjusted according to the attribute adjustment instruction, where the attribute information of the touch track includes but is not limited to width, grayscale, shape, etc.
  • the attribute information of the drawing line and drawing point can achieve different shapes of drawing handwriting, so as to achieve a variety of drawing, but also make the drawing effect better.
  • the touchpad and the display screen in the electronic device are separated, the touchpad is used to receive a touch action applied by the user to generate a drawing instruction; the display screen is used to display a reference point set and a touch track during drawing.
  • the touchpad sends drawing instructions to the display screen, and the display screen displays the touch track in real time according to the drawing instructions.
  • the device further includes an enlarged display module: receiving an enlargement instruction for enlarging the reference point set and the touch track , To realize the synchronous enlargement of the reference point set and the touch track.
  • the device further includes a reduction display module: receiving a reduction instruction for reducing the reference point set and the touch track, so as to realize the simultaneous reduction of the reference point set and the touch track.
  • the device in order to facilitate drawing, the position of the reference point set and the touch track need to be adjusted, the device further includes a display movement module: receiving a movement instruction for moving the reference point set and the touch track, In order to realize the synchronized movement of the reference point set and the touch track.
  • a display movement module receiving a movement instruction for moving the reference point set and the touch track, In order to realize the synchronized movement of the reference point set and the touch track.
  • the user needs to imitate the drawn picture to preprocess, extract the reference lines and reference points on the original picture, and the user performs copy drawing according to these reference lines and reference points, which can easily complete the drawing and obtain the drawn image It has high quality, meets the user's drawing needs, and at the same time can quickly improve the user's drawing skills.
  • sampling the original image to form the reference point set constituting the outline of the original image includes: sampling the original image to form the reference point set constituting the outline of the original image and forming the original image
  • the set of color points of the reference color includes an attribute adjustment instruction, and the attribute information of the touch track is adjusted according to the attribute adjustment instruction; wherein the attribute information of the touch track includes at least one of color, width, grayscale, and shape.
  • the reference point set is in color, and the touch trace drawn by the user is also in color, so that a color-drawn image can be obtained.
  • the drawing device of some embodiments further includes a video recording module, which is used by the electronic device to record the drawing process and form a drawing process video.
  • a video recording module which is used by the electronic device to record the drawing process and form a drawing process video.
  • the video of recording the drawing process may include both the reference point set and the touch track, or only the drawing process of the touch track may be retained. Users can discover the deficiencies in the drawing through the video of the drawing process, or share the video of the drawing process through the network.
  • the drawing device of some embodiments further includes a storage module for storing the touch track.
  • draw The save command is received in the image area, and the touch track is saved in the memory. Since the touch track and the reference point set are independent of each other, only the touch track is saved at this time, and the reference point set and the touch track can also be saved at the same time. It can be understood that when saving the touch trajectory, the user is not required to complete all touch trajectories. The user can save at any time to facilitate the user to pause drawing at any time, and continue drawing on the original basis when he wants to continue drawing later. Alternatively, if the electronic device is connected to the server or the cloud, it can also be saved in real time, that is, the touch track is saved in real time to the server or the cloud.
  • the drawing device of some embodiments further includes a sending module for sending a touch track.
  • this embodiment provides an electronic device.
  • the electronic device includes a processor, and the processor is configured to implement the above-described drawing method when executing the computer program stored in the memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种绘图方法、绘图装置及电子设备,该绘图方法包括:获取原始图像;对原始图像进行采样以形成构成原始图像的轮廓的参考点集;显示参考点集。本发明将用户需要模仿绘制的图片进行预处理,提取原始图片上的绘图线条和绘图点,用户根据这些绘图线条和绘图点进行临摹绘图,可轻松完成绘图,并且得到的绘制图像具有较高品质,满足用户的绘画需求,同时还可快速提高用户的绘画技能。

Description

一种绘图方法、 绘图装置及电子设备 技术领域
[0001] 本发明涉及电子设备绘图领域, 更具体地说, 涉及一种绘图方法、 绘图装置及 电子设备。
背景技术
[0002] 绘画作为艺术形式, 为多数人所喜爱。 但因绘画需要长期的学习和练习, 非专 业人士并不能绘制出自己心仪的作品。 随着电子设备的普及, 5见有电子设备也 能进行绘画, 但其作用进行替代传统的纸张, 依然需要用户靠自己的绘画基础 和感觉进行绘画, 很难画出自己心仪的作品。 并且没有对用户的绘画技能起到 指导作用, 不能使用户的绘画技能得到快速提高。
发明概述
技术问题
[0003] 上述技术方案需要解决的技术问题在于, 针对现有技术的上述缺陷, 提供一种 绘图方法、 绘图装置及电子设备。
问题的解决方案
技术解决方案
[0004] 一方面, 提供一种绘图方法, 包括:
[0005] 获取原始图像;
[0006] 对所述原始图像进行采样以形成构成所述原始图像的轮廓的参考点集;
[0007] 显示所述参考点集。
[0008] 进一步, 所述对所述原始图像进行采样以形成构成所述原始图像的轮廓的参考 点集包括:
[0009] 对所述原始图像进行灰度处理, 得到黑白图片;
[0010] 提取所述黑白图片内用于构成图像轮廓的参考点集, 所述参考点集包括参考线 和参考点。
[0011] 进一步, 所述显示所述参考点集之后, 所述方法还包括: [0012] 检测触控动作;
[0013] 根据触控动作在显示区域上实时显示所述触控动作的触控轨迹。
[0014] 另一方面, 提供一种绘图装置, 包括:
[0015] 图像获取装置, 用于获取原始图像;
[0016] 图像采样装置, 对所述原始图像进行采样以形成构成所述原始图像的轮廓的参 考点集;
[0017] 显示区域, 显示所述参考点集。
[0018] 进一步, 所述显示区域还包括触控件, 所述触控件用于检测触控动作, 并根据 触控动作在所述显示区域上实时显示所述触控动作的触控轨迹。
[0019] 进一步, 包括第二检测模块, 用于检测显示模式命令; 所述显示区域根据所述 显示模式命令显示所述触控动作的触控轨迹。
[0020] 又一方面, 提供一种电子设备, 所述电子设备包括处理器, 所述处理器用于执 行存储器中存储的计算机程序时实现如上述的绘图方法。
发明的有益效果
有益效果
[0021] 将用户需要模仿绘制的图片进行预处理, 提取原始图片上的绘图线条和绘图点
, 用户根据这些绘图线条和绘图点进行临摹绘图, 可轻松完成绘图, 并且得到 的绘制图像具有较高品质, 满足用户的绘画需求, 同时还可快速提高用户的绘 画技能。
对附图的简要说明
附图说明
[0022] 下面将结合附图及实施例对本发明作进一步说明, 附图中:
[0023] 图 1是本发明一实施例提供的绘图方法流程图;
[0024] 图 2是本发明一实施例提供的绘图方法流程图;
[0025] 图 3是本发明一实施例提供的绘图装置的结构示意图;
[0026] 图 4是本发明一实施例提供的绘图装置的结构示意图;
[0027] 图 5是本发明一实施例提供的电子设备的结构示意图。 实施该发明的最佳实施例
本发明的最佳实施方式
[0028] 为了对本发明的技术特征、 目的和效果有更加清楚的理解, 现对照附图详细说 明本发明的具体实施方式。
发明实施例
实施例
[0029] 如图 1所示, 本实施例的绘图方法应用于电子设备, 该电子设备包括显示屏, 显示屏用于显示构成原始图像的轮廓的参考点集。 作为选择, 该电子设备的操 作系统包括但不限于 Android操作系统、 iOS操作系统、 Windows操作系统、 Linu x操作系统等。 具体的, 该绘图方法包括下述步骤:
[0030] S101、 获取原始图像。
[0031] 具体的, 电子设备接收绘图启动指令, 启动绘图功能, 启动指令可通过电子设 备接收触摸操作产生, 也可通过接收的语音信号产生, 也可通过按键操作产生
[0032] 绘画功能启动后, 获取原始图像。 可通过调用摄像头拍摄生成原始图片, 读取 存储器存储的原始图片; 或通过接收获取原始图片, 可通过网络接收获取原始 图片, 也可通过近距离无线通信方式接收获取原始图片等, 本实施例为用户提 供多种原始图像获取路径, 满足用户的不同需求。 作为选择, 原始图片可为人 像图片、 动物图片、 美食图片、 运动图片、 风景图片等, 用户想要绘制的图像 都可以作为原始图像, 从而大大扩大了用户绘画的范围。
[0033] S102、 对原始图像进行采样以形成构成原始图像的轮廓的参考点集。
[0034] 具体的, 在采样过程中, 可根据电子设备中预设的采样模式命令对原始图像进 行采样以形成构成原始图像的轮廓的参考点集。 本实施例为用户提供多种采样 模式命令, 每种采样模式命令对应不同的采样参数, 用户通过选择采样模式命 令可获取同一原始图像不同的参考点集。 选择原始图像后检测采样模式命令输 入, 并根据采样模式命令对原始图像进行采样。 不同的采样模式命令包括不同 的采样风格和采样密度, 同一原始图像不同的采样风格和采样密度对应不同的 参考点集。 接收用户输入的采样模式命令后, 根据采样风格和采样密度对原始 图像进行采样。 优选地, 对原始图像进行均匀采样以形成构成原始图像的轮廓 的参考点集。
[0035] 进一步, 对原始图像进行采样以形成构成原始图像的轮廓的参考点集包括:
[0036] 对原始图像进行灰度处理, 得到黑白图片; 提取黑白图片内用于构成图像轮廓 的参考点集, 参考点集包括参考线和参考点。 由这些参考线和参考点可构成原 始图像的轮廓, 用户通过描绘这些参考线和参考点进行绘图, 描绘完成即可得 到绘制图像, 该绘制图像与原始图像对应。 例如, 原始图片内有一个足球, 则 获取的参考线包括足球的圆形轮廓以及球面上的纹理; 又例如, 原始图片内有 一朵花, 则获取的参考线为花朵和花瓣的轮廓, 花蕊和斑点为参考点。 可以理 解, 用户在根据参考线和参考点描绘过程中, 绘画笔迹可以与参考线和参考点 完全重合, 也可将参考线和参考点作为参考, 适当进行偏离, 以绘制出更加个 性化的图像。
[0037] 为满足用户对于绘制难度的需求, 本实施例设置不同等级的难度级别, 不同的 难度级别对应不同的参考点集, 即参考线和参考点的数量与选定的难度级别对 应。 难度级别越低, 对应的参考线和参考点的数量越多; 难度级别越高, 对应 的参考线和参考点的数量越少。 用户在获取原始图片后, 首先选择难度级别, 进而根据选定的难度级别处理原始图片, 得到参考点集。
[0038] 为满足用户对绘图风格的不同追求, 即实现不同风格的绘画, 本实施例还提供 多种绘图风格供用户选择, 每种绘图风格对应不同的参考点集分布, 即不同的 参考线和参考点分布, 同一原始图片可处理为不同绘图风格的参考点集。 用户 在选择原始图片后需要选择绘图风格, 根据选择的绘图风格处理原始图片得到 与绘图风格对应的参考点集。
[0039] S103、 显示参考点集。
[0040] 具体的, 通过电子设备的显示屏显示显示参考点集, 即在显示屏上显示参考点 和参考线, 用户通过描绘这些参考线和参考点进行绘图, 描绘完成即可得到绘 制图像。 进一步, 将参考点集作为背景图案, 然后建立用于绘画的绘图区域, 绘图区域叠加在背景图案上, 建绘图区域用于接收用户施加的触控动作, 进而 产生绘图指令。 可以理解, 此时的参考点集和绘图区域虽然叠加显示, 但本质 上参考点集和绘图区域属于两组不同的数据, 或者说是两个不同的图片, 是相 互独立的, 可分别单独进行控制和处理。 作为选择, 绘图区域的大小和位置是 可调的, 绘图区域可与参考点集尺寸相同, 绘图区域也可仅是参考点集的一部 分, 用户可根据绘图需要选择绘制参考点集的某一部分。
[0041] 作为选择, 为减小绘图难度以及增强绘图训练效果, 该方法在显示参考点集前 还包括: 接收顺序显示指令, 参考点集根据顺序显示指令分为多次进行显示。 具体显示过程为: 先显示一部分参考点集, 即显示一部分参考线和参考点, 用 户据此进行绘画; 在接到顺序显示指令后显示下一阶段的参考点集, 即显示下 一阶段的参考线和参考点, 用户据此继续进行绘画; 以此类推, 直至参考点集 的所有参考点都显示出来。 本实施例中处理原始图片得到参考点集后, 设置参 考点集中参考点和参考线的显示顺序, 参考点和参考线根据显示顺序进行分阶 段显示。 通过设置参考线和参考点的显示顺序, 使用户更加科学的进行绘画, 可快速提高用户的绘画技能。
[0042] 本实施例对原始图像进行采样以形成构成原始图像的轮廓的参考点集, 并显示 参考点集, 为用户提供了绘画的参考底板, 用户可根据该底板进行绘画。
实施例
[0043] 如图 2所示, 在上述实施例的基础上, 本实施例的绘图方法应用于电子设备, 该电子设备包括触摸板和显示屏; 其中触摸板用于接收用户施加的触控动作, 产生绘图指令, 进而根据绘图指令产生触控轨迹。 显示屏用于显示参考点集以 及绘图过程中的触控轨迹。 具体的, 在上述实施例的步骤 S103之后, 本实施例 的绘图方法还包括下述步骤:
[0044] S104、 检测触控动作。
[0045] 具体的, 触摸板接收用户施加的触控动作, 例如用户可通过肢体直接触摸该触 摸板, 也可通过手写笔在触摸板上进行书写等。 触摸板接收按压操作产生绘图 指令, 或触摸板接收无线感应信号产生绘图指令, 或触摸板接收手写笔的按压 操作产生绘图指令, 或触摸板接收触摸操作产生的绘图指令, 进而根据绘图指 令产生触控轨迹。 作为选择, 触摸板和显示屏可为一体式触摸显示屏, 或触摸 板和显示屏相分离。 [0046] S105、 根据触控动作在显示区域上实时显示触控动作的触控轨迹。
[0047] 具体的, 触摸板获取触控动作的轨迹可参考现有技术, 本实施例在此不再赘述 。 本实施例为实现触控轨迹的多样性, 提供多种显示模式命令, 每种显示模式 命令对应不同的笔迹参数。 在用户施加触控动作之前, 首先判断是否检测到显 示模式命令输入; 若有, 则根据显示模式命令显示触控动作的触控轨迹。 该显 示模式命令包括属性调节指令, 根据属性调节指令调节触控轨迹的属性信息, 其中触控轨迹的属性信息包括但不限于宽度、 灰度、 形状等, 通过调节绘图线 条和绘图点的属性信息, 可实现不同形状的绘画笔迹, 从而实现多样性的绘图 , 也使绘画效果更好。
[0048] 当电子设备中触摸板和显示屏分离时, 触摸板用于接收用户施加的触控动作, 产生绘图指令; 显示屏用于显示参考点集以及绘图过程中的触控轨迹。 触摸板 发送绘图指令给显示屏, 显示屏根据绘图指令实时显示触控轨迹。
[0049] 作为选择, 在绘图过程中, 为方便进行绘图需要调节参考点集和触控轨迹的显 示大小, 该方法还包括: 接收用于放大参考点集和触控轨迹的放大指令, 以实 现对参考点集和触控轨迹的同步放大。 该方法还包括: 接收用于缩小参考点集 和触控轨迹的缩小指令, 以实现对参考点集和触控轨迹的同步缩小。 通过设置 放大指令和缩小指令, 灵活的对参考点集和触控轨迹进行调节, 使绘画过程更 加人性化。
[0050] 作为选择, 在绘图过程中, 为方便进行绘图需要调节参考点集和触控轨迹的位 置, 该方法还包括: 接收用于移动参考点集和触控轨迹的移动指令, 以实现对 参考点集和触控轨迹的同步移动。 通过设置移动指令, 灵活的对参考点集和触 控轨迹进行调节, 使绘画过程更加人性化。
[0051] 本实施例将用户需要模仿绘制的图片进行预处理, 提取原始图片上的参考线和 参考点, 用户根据这些参考线和参考点进行临摹绘图, 可轻松完成绘图, 并且 得到的绘制图像具有较高品质, 满足用户的绘画需求, 同时还可快速提高用户 的绘画技能。
[0052] 一些实施例的绘图方法中, 对原始图像进行采样以形成构成原始图像的轮廓的 参考点集包括: 对原始图像进行采样以形成构成原始图像的轮廓的参考点集以 及形成原始图像的参考颜色的颜色点集。 显示模式命令包括属性调节指令, 根 据属性调节指令调节触控轨迹的属性信息; 其中触控轨迹的属性信息包括颜色 、 宽度、 灰度、 形状中的至少一种。 本实施例中参考点集为彩色, 用户绘制的 触控轨迹也是彩色, 进而可以获得彩色的绘制图像。
[0053] 一些实施例的绘图方法中, 电子设备录制绘图过程, 形成绘图过程视频。 可以 理解, 录制绘图过程视频可同时包含参考点集和触控轨迹, 也可仅保留触控轨 迹的绘制过程。 用户可通过绘图过程视频发现绘图中的不足, 或将绘图过程视 频通过网络进行分享。
[0054] 一些实施例的绘图方法中, 根据触控动作在显示区域上实时显示触控动作的触 控轨迹之后还包括步骤: 绘制完成后, 绘图区域接收到保存指令, 将触控轨迹 保存到存储器中。 因触控轨迹与参考点集是相互独立的, 此时仅保存触控轨迹 , 也可同时保存参考点集和触控轨迹。 可以理解, 在保存触控轨迹时, 并不要 求用户一定完成所有触控轨迹, 用户可随时进行保存, 以方便用户随时暂停绘 制, 后期想要继续绘制时在原有基础上继续绘画即可。 作为选择, 若电子设备 连接服务器或云端, 还可进行实时同步保存, 即将触控轨迹实时同步保存至服 务器或云端。
[0055] 一些实施例的绘图方法中, 保存触控轨迹之后还包括步骤: 发送触控轨迹。 可 将触控轨迹通过网络发送至服务器, 或进行网络分享, 例如分享到微信朋友圈 、 微博、 图片网站、 视频网站等。
实施例
[0056] 如图 3所示, 本实施例的绘图装置应用于电子设备, 该电子设备包括显示屏, 显示屏用于显示构成原始图像的轮廓的参考点集。 作为选择, 该电子设备的操 作系统包括但不限于 Android操作系统、 iOS操作系统、 Windows操作系统、 Linu x操作系统等。 具体的, 该绘图装置包括:
[0057] 图像获取装置 201, 用于获取原始图像。
[0058] 具体的, 电子设备接收绘图启动指令, 启动绘图功能, 启动指令可通过电子设 备接收触摸操作产生, 也可通过接收的语音信号产生, 也可通过按键操作产生 [0059] 图像获取装置包括但不限于摄像头、 存储器、 通信模块等。 绘画功能启动后, 获取原始图像。 可通过调用摄像头拍摄生成原始图片, 读取存储器存储的原始 图片; 或通过接收获取原始图片, 可通过网络接收获取原始图片, 也可通过近 距离无线通信方式接收获取原始图片等, 本实施例为用户提供多种原始图像获 取路径, 满足用户的不同需求。 作为选择, 原始图片可为人像图片、 动物图片 、 美食图片、 运动图片、 风景图片等, 用户想要绘制的图像都可以作为原始图 像, 从而大大扩大了用户绘画的范围。
[0060] 图像采样装置 202, 用于对原始图像进行采样以形成构成原始图像的轮廓的参 考点集。
[0061] 具体的, 绘图装置还包括第一检测模块, 用于检测采样模式命令; 第一检测模 块与图像采样装置相连; 图像采样装置以采样模式命令对原始图像进行采样。 在采样过程中, 可根据电子设备中预设的采样模式命令对原始图像进行采样以 形成构成原始图像的轮廓的参考点集。 本实施例为用户提供多种采样模式命令 , 每种采样模式命令对应不同的采样参数, 用户通过选择采样模式命令可获取 同一原始图像不同的参考点集。 选择原始图像后检测采样模式命令输入, 并根 据采样模式命令对原始图像进行采样。 不同的采样模式命令包括不同的采样风 格和采样密度, 同一原始图像不同的采样风格和采样密度对应不同的参考点集 。 接收用户输入的采样模式命令后, 根据采样风格和采样密度对原始图像进行 采样。 优选地, 对原始图像进行均匀采样以形成构成原始图像的轮廓的参考点 集。
[0062] 进一步, 对原始图像进行采样以形成构成原始图像的轮廓的参考点集包括:
[0063] 对原始图像进行灰度处理, 得到黑白图片; 提取黑白图片内用于构成图像轮廓 的参考点集, 参考点集包括参考线和参考点。 由这些参考线和参考点可构成原 始图像的轮廓, 用户通过描绘这些参考线和参考点进行绘图, 描绘完成即可得 到绘制图像, 该绘制图像与原始图像对应。 例如, 原始图片内有一个足球, 则 获取的参考线包括足球的圆形轮廓以及球面上的纹理; 又例如, 原始图片内有 一朵花, 则获取的参考线为花朵和花瓣的轮廓, 花蕊和斑点为参考点。 可以理 解, 用户在根据参考线和参考点描绘过程中, 绘画笔迹可以与参考线和参考点 完全重合, 也可将参考线和参考点作为参考, 适当进行偏离, 以绘制出更加个 性化的图像。
[0064] 为满足用户对于绘制难度的需求, 本实施例设置不同等级的难度级别, 不同的 难度级别对应不同的参考点集, 即参考线和参考点的数量与选定的难度级别对 应。 难度级别越低, 对应的参考线和参考点的数量越多; 难度级别越高, 对应 的参考线和参考点的数量越少。 用户在获取原始图片后, 首先选择难度级别, 进而根据选定的难度级别处理原始图片, 得到参考点集。
[0065] 为满足用户对绘图风格的不同追求, 即实现不同风格的绘画, 本实施例还提供 多种绘图风格供用户选择, 每种绘图风格对应不同的参考点集分布, 即不同的 参考线和参考点分布, 同一原始图片可处理为不同绘图风格的参考点集。 用户 在选择原始图片后需要选择绘图风格, 根据选择的绘图风格处理原始图片得到 与绘图风格对应的参考点集。
[0066] 显示区域 203, 显示参考点集。
[0067] 具体的, 通过电子设备的显示屏显示显示参考点集, 即在显示屏上显示参考点 和参考线, 用户通过描绘这些参考线和参考点进行绘图, 描绘完成即可得到绘 制图像。 进一步, 将参考点集作为背景图案, 然后建立用于绘画的绘图区域, 绘图区域叠加在背景图案上, 建绘图区域用于接收用户施加的触控动作, 进而 产生绘图指令。 可以理解, 此时的参考点集和绘图区域虽然叠加显示, 但本质 上参考点集和绘图区域属于两组不同的数据, 或者说是两个不同的图片, 是相 互独立的, 可分别单独进行控制和处理。 作为选择, 绘图区域的大小和位置是 可调的, 绘图区域可与参考点集尺寸相同, 绘图区域也可仅是参考点集的一部 分, 用户可根据绘图需要选择绘制参考点集的某一部分。
[0068] 作为选择, 为减小绘图难度以及增强绘图训练效果, 该装置在显示参考点集前 还包括: 接收顺序显示指令, 参考点集根据顺序显示指令分为多次进行显示。 具体显示过程为: 先显示一部分参考点集, 即显示一部分参考线和参考点, 用 户据此进行绘画; 在接到顺序显示指令后显示下一阶段的参考点集, 即显示下 一阶段的参考线和参考点, 用户据此继续进行绘画; 以此类推, 直至参考点集 的所有参考点都显示出来。 本实施例中处理原始图片得到参考点集后, 设置参 考点集中参考点和参考线的显示顺序, 参考点和参考线根据显示顺序进行分阶 段显示。 通过设置参考线和参考点的显示顺序, 使用户更加科学的进行绘画, 可快速提高用户的绘画技能。
[0069] 本实施例对原始图像进行采样以形成构成原始图像的轮廓的参考点集, 并显示 参考点集, 为用户提供了绘画的参考底板, 用户可根据该底板进行绘画。
实施例
[0070] 如图 4所示, 在上述实施例的基础上, 本实施例的绘图装置应用于电子设备, 该电子设备包括触摸板和显示屏; 其中触摸板用于接收用户施加的触控动作, 产生绘图指令, 进而根据绘图指令产生触控轨迹。 显示屏用于显示参考点集以 及绘图过程中的触控轨迹。 具体的, 本实施例的绘图装置还包括:
[0071] 显示区域还包括触控件 204, 触控件用于检测触控动作, 并根据触控动作在显 示区域上实时显示触控动作的触控轨迹。
[0072] 具体的, 触摸板接收用户施加的触控动作, 例如用户可通过肢体直接触摸该触 摸板, 也可通过手写笔在触摸板上进行书写等。 触摸板接收按压操作产生绘图 指令, 或触摸板接收无线感应信号产生绘图指令, 或触摸板接收手写笔的按压 操作产生绘图指令, 或触摸板接收触摸操作产生的绘图指令, 进而根据绘图指 令产生触控轨迹。 作为选择, 触摸板和显示屏可为一体式触摸显示屏, 或触摸 板和显示屏相分离。
[0073] 根据触控动作在显示区域上实时显示触控动作的触控轨迹。 具体的, 触摸板获 取触控动作的轨迹可参考现有技术, 本实施例在此不再赘述。 本实施例为实现 触控轨迹的多样性, 绘图装置还包括第二检测模块, 用于检测显示模式命令; 显示区域根据显示模式命令显示触控动作的触控轨迹。 本实施例提供多种显示 模式命令, 每种显示模式命令对应不同的笔迹参数。 在用户施加触控动作之前 , 首先判断是否检测到显示模式命令输入; 若有, 则根据显示模式命令显示触 控动作的触控轨迹。 该显示模式命令包括属性调节指令, 根据属性调节指令调 节触控轨迹的属性信息, 其中触控轨迹的属性信息包括但不限于宽度、 灰度、 形状等, 通过调节绘图线条和绘图点的属性信息, 可实现不同形状的绘画笔迹 , 从而实现多样性的绘图, 也使绘画效果更好。 [0074] 当电子设备中触摸板和显示屏分离时, 触摸板用于接收用户施加的触控动作, 产生绘图指令; 显示屏用于显示参考点集以及绘图过程中的触控轨迹。 触摸板 发送绘图指令给显示屏, 显示屏根据绘图指令实时显示触控轨迹。
[0075] 作为选择, 在绘图过程中, 为方便进行绘图需要调节参考点集和触控轨迹的显 示大小, 该装置还包括放大显示模块: 接收用于放大参考点集和触控轨迹的放 大指令, 以实现对参考点集和触控轨迹的同步放大。 该装置还包括缩小显示模 块: 接收用于缩小参考点集和触控轨迹的缩小指令, 以实现对参考点集和触控 轨迹的同步缩小。 通过设置放大指令和缩小指令, 灵活的对参考点集和触控轨 迹进行调节, 使绘画过程更加人性化。
[0076] 作为选择, 在绘图过程中, 为方便进行绘图需要调节参考点集和触控轨迹的位 置, 该装置还包括显示移动模块: 接收用于移动参考点集和触控轨迹的移动指 令, 以实现对参考点集和触控轨迹的同步移动。 通过设置移动指令, 灵活的对 参考点集和触控轨迹进行调节, 使绘画过程更加人性化。
[0077] 本实施例将用户需要模仿绘制的图片进行预处理, 提取原始图片上的参考线和 参考点, 用户根据这些参考线和参考点进行临摹绘图, 可轻松完成绘图, 并且 得到的绘制图像具有较高品质, 满足用户的绘画需求, 同时还可快速提高用户 的绘画技能。
[0078] 一些实施例的绘图装置中, 对原始图像进行采样以形成构成原始图像的轮廓的 参考点集包括: 对原始图像进行采样以形成构成原始图像的轮廓的参考点集以 及形成原始图像的参考颜色的颜色点集。 显示模式命令包括属性调节指令, 根 据属性调节指令调节触控轨迹的属性信息; 其中触控轨迹的属性信息包括颜色 、 宽度、 灰度、 形状中的至少一种。 本实施例中参考点集为彩色, 用户绘制的 触控轨迹也是彩色, 进而可以获得彩色的绘制图像。
[0079] 一些实施例的绘图装置还包括视频录制模块, 用于电子设备录制绘图过程, 形 成绘图过程视频。 可以理解, 录制绘图过程视频可同时包含参考点集和触控轨 迹, 也可仅保留触控轨迹的绘制过程。 用户可通过绘图过程视频发现绘图中的 不足, 或将绘图过程视频通过网络进行分享。
[0080] 一些实施例的绘图装置还包括存储模块, 用于保存触控轨迹。 绘制完成后, 绘 图区域接收到保存指令, 将触控轨迹保存到存储器中。 因触控轨迹与参考点集 是相互独立的, 此时仅保存触控轨迹, 也可同时保存参考点集和触控轨迹。 可 以理解, 在保存触控轨迹时, 并不要求用户一定完成所有触控轨迹, 用户可随 时进行保存, 以方便用户随时暂停绘制, 后期想要继续绘制时在原有基础上继 续绘画即可。 作为选择, 若电子设备连接服务器或云端, 还可进行实时同步保 存, 即将触控轨迹实时同步保存至服务器或云端。
[0081] 一些实施例的绘图装置还包括发送模块, 用于发送触控轨迹。 可将触控轨迹通 过网络发送至服务器, 或进行网络分享, 例如分享到微信朋友圈、 微博、 图片 网站、 视频网站等。
[0082] 如图 5所示, 本实施例提供一种电子设备, 电子设备包括处理器, 处理器用于 执行存储器中存储的计算机程序时实现如上述的绘图方法。
[0083] 本说明书中各个实施例采用递进的方式描述, 每个实施例重点说明的都是与其 他实施例的不同之处, 各个实施例之间相同相似部分互相参见即可。 对于实施 例公开的装置而言, 由于其与实施例公开的方法相对应, 所以描述的比较简单 , 相关之处参见方法部分说明即可。
[0084] 专业人员还可以进一步意识到, 结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清 楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描述了 各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来执行, 取决于技术 方案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用 不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
[0085] 结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、 处理器 执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器 (RA M) 、 内存、 只读存储器 (ROM) 、 电可编程 ROM、 电可擦除可编程 ROM、 寄 存器、 硬盘、 可移动磁盘、 CD-ROM、 或技术领域内所公知的任意其它形式的 存储介质中。
[0086] 以上实施例只为说明本发明的技术构思及特点, 其目的在于让熟悉此项技术的 人士能够了解本发明的内容并据此实施, 并不能限制本发明的保护范围。 凡跟 本发明权利要求范围所做的均等变化与修饰, 均应属于本发明权利要求的涵盖 范围。

Claims

权利要求书
[权利要求 1] 一种绘图方法, 其特征在于, 包括:
获取原始图像;
对所述原始图像进行采样以形成构成所述原始图像的轮廓的参考点集 显示所述参考点集。
[权利要求 2] 根据权利要求 1所述的绘图方法, 其特征在于, 所述获取原始图片包 括: 通过调用摄像头拍摄生成所述原始图片, 读取存储器存储的所述 原始图片, 或通过接收获取所述原始图片。
[权利要求 3] 根据权利要求 1所述的绘图方法, 其特征在于, 所述对所述原始图像 进行采样以形成构成所述原始图像的轮廓的参考点集包括: 对所述原始图像进行均匀采样以形成构成所述原始图像的轮廓的参考 点集。
[权利要求 4] 根据权利要求 1所述的绘图方法, 其特征在于, 所述对所述原始图像 进行采样以形成构成所述原始图像的轮廓的参考点集包括: 对所述原始图像进行灰度处理, 得到黑白图片; 提取所述黑白图片内用于构成图像轮廓的参考点集, 所述参考点集包 括参考线和参考点。
[权利要求 5] 根据权利要求 1所述的绘图方法, 其特征在于, 在对所述原始图像进 行采样以形成构成所述原始图像的轮廓的参考点集之前, 所述方法还 包括:
检测采样模式命令输入; 并根据所述采样模式命令对所述原始图像进 行采样。
[权利要求 6] 根据权利要求 5所述的绘图方法, 其特征在于, 所述采样模式命令包 括采样风格和采样密度;
所述根据所述采样模式命令对所述原始图像进行采样包括: 根据采样 风格和采样密度对所述原始图像进行采样。
[权利要求 7] 根据权利要求 1所述的绘图方法, 其特征在于, 所述显示所述参考点 集之后, 所述方法还包括:
检测触控动作;
根据触控动作在显示区域上实时显示所述触控动作的触控轨迹。
[权利要求 8] 根据权利要求 7所述的绘图方法, 其特征在于, 所述实时显示所述触 控动作的触控轨迹包括:
判断是否检测到显示模式命令输入;
若有, 则根据所述显示模式命令显示所述触控动作的触控轨迹。
[权利要求 9] 根据权利要求 8所述的绘图方法, 其特征在于, 所述显示模式命令包 括属性调节指令, 根据所述属性调节指令调节所述触控轨迹的属性信 息; 其中所述触控轨迹的属性信息包括宽度、 灰度、 形状中的至少一 种。
[权利要求 10] 根据权利要求 7所述的绘图方法, 其特征在于, 所述对所述原始图像 进行采样以形成构成所述原始图像的轮廓的参考点集包括: 对所述原始图像进行采样以形成构成所述原始图像的轮廓的参考点集 以及形成所述原始图像的参考颜色的颜色点集。
[权利要求 11] 根据权利要求 10所述的绘图方法, 其特征在于, 所述显示模式命令包 括属性调节指令, 根据所述属性调节指令调节所述触控轨迹的属性信 息; 其中所述触控轨迹的属性信息包括颜色、 宽度、 灰度、 形状中的 至少一种。
[权利要求 12] 根据权利要求 7所述的绘图方法, 其特征在于, 所述根据触控动作在 显示区域上实时显示所述触控动作的触控轨迹之后, 所述方法还包括 保存所述触控轨迹。
[权利要求 13] 根据权利要求 12所述的绘图方法, 其特征在于, 所述保存所述触控轨 迹之后, 所述方法还包括:
发送所述触控轨迹。
[权利要求 14] 一种绘图装置, 其特征在于, 包括
图像获取装置, 用于获取原始图像; 图像采样装置, 对所述原始图像进行采样以形成构成所述原始图像的 轮廓的参考点集;
显示区域, 显示所述参考点集。
[权利要求 15] 根据权利要求 14所述的绘图装置, 其特征在于, 所述图像获取装置包 括摄像头、 存储器、 通信模块中的至少一项。
[权利要求 16] 根据权利要求 14所述的绘图装置, 其特征在于, 还包括第一检测模块 , 用于检测采样模式命令; 所述第一检测模块与所述图像采样装置相 连; 所述图像采样装置以所述采样模式命令对所述原始图像进行采样
[权利要求 17] 根据权利要求 14所述的绘图装置, 其特征在于, 所述显示区域还包括 触控件, 所述触控件用于检测触控动作, 并根据触控动作在所述显示 区域上实时显示所述触控动作的触控轨迹。
[权利要求 18] 根据权利要求 17所述的绘图装置, 其特征在于, 包括第二检测模块, 用于检测显示模式命令; 所述显示区域根据所述显示模式命令显示所 述触控动作的触控轨迹。
[权利要求 19] 根据权利要求 17所述的绘图装置, 其特征在于, 还包括:
存储模块, 用于保存所述触控轨迹。
[权利要求 20] 一种电子设备, 其特征在于, 所述电子设备包括处理器, 所述处理器 用于执行存储器中存储的计算机程序时实现如权利要求 1-13任一项所 述的绘图方法。
PCT/CN2018/122880 2018-12-21 2018-12-21 一种绘图方法、绘图装置及电子设备 WO2020124603A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880097624.6A CN113168722A (zh) 2018-12-21 2018-12-21 一种绘图方法、绘图装置及电子设备
PCT/CN2018/122880 WO2020124603A1 (zh) 2018-12-21 2018-12-21 一种绘图方法、绘图装置及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/122880 WO2020124603A1 (zh) 2018-12-21 2018-12-21 一种绘图方法、绘图装置及电子设备

Publications (1)

Publication Number Publication Date
WO2020124603A1 true WO2020124603A1 (zh) 2020-06-25

Family

ID=71100125

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/122880 WO2020124603A1 (zh) 2018-12-21 2018-12-21 一种绘图方法、绘图装置及电子设备

Country Status (2)

Country Link
CN (1) CN113168722A (zh)
WO (1) WO2020124603A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793930A (zh) * 2014-01-27 2014-05-14 汉王科技股份有限公司 铅笔画图像生成方法及装置
CN105320506A (zh) * 2014-06-30 2016-02-10 中国移动通信集团公司 一种获取图像的方法及装置
CN106846390A (zh) * 2017-02-27 2017-06-13 迈吉客科技(北京)有限公司 一种图像处理的方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998032107A1 (en) * 1997-01-21 1998-07-23 Agent Based Curricula, Inc. Method of and apparatus for teaching drawing, penmanship, and hand-eye-memory coordination
CN104281308A (zh) * 2013-07-11 2015-01-14 深圳富泰宏精密工业有限公司 触控式电子设备及其绘图方法
CN105447899B (zh) * 2014-08-28 2018-03-20 北大方正集团有限公司 临摹字帖的生成方法及装置
CN106297477B (zh) * 2015-06-09 2019-08-06 北大方正集团有限公司 一种生成数字化字帖的方法及装置
CN106600662B (zh) * 2016-12-29 2021-02-23 北京奇虎科技有限公司 图像中主线条的绘制方法及装置
CN106846972A (zh) * 2017-01-18 2017-06-13 杭州阿优智能科技有限公司 图形绘制训练方法及装置
CN208027602U (zh) * 2017-11-03 2018-10-30 安徽工程大学 一种绘画教学演示系统
CN108733290B (zh) * 2018-05-21 2020-05-15 张宗良 绘画控制方法、装置及电子设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793930A (zh) * 2014-01-27 2014-05-14 汉王科技股份有限公司 铅笔画图像生成方法及装置
CN105320506A (zh) * 2014-06-30 2016-02-10 中国移动通信集团公司 一种获取图像的方法及装置
CN106846390A (zh) * 2017-02-27 2017-06-13 迈吉客科技(北京)有限公司 一种图像处理的方法及装置

Also Published As

Publication number Publication date
CN113168722A (zh) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108229415B (zh) 信息推荐方法、装置、电子设备及计算机可读存储介质
CN110610453B (zh) 一种图像处理方法、装置及计算机可读存储介质
CN107798653B (zh) 一种图像处理的方法和一种装置
KR102287905B1 (ko) 멀티미디어 기기, 온라인 교육 시스템 및 이들의 컨텐츠 제공 방법
CN108958610A (zh) 基于人脸的特效生成方法、装置和电子设备
US8059917B2 (en) 3-D modeling
WO2017152673A1 (zh) 人物面部模型的表情动画生成方法及装置
US10528796B2 (en) Body information analysis apparatus with augmented reality and eyebrow shape preview method thereof
CN111147880A (zh) 视频直播的互动方法、装置、系统、电子设备及存储介质
KR102491773B1 (ko) 이미지 변형 제어 방법, 장치 및 하드웨어 장치
CN109572239B (zh) 一种美甲装置的打印方法、系统、美甲设备和介质
CN109194866A (zh) 一种图像采集方法、装置、系统、终端设备和存储介质
US20230386001A1 (en) Image display method and apparatus, and device and medium
WO2018214115A1 (zh) 一种评价脸妆的方法及装置
CN111814733A (zh) 基于头部姿态的专注度检测方法及装置
CN106507201A (zh) 一种视频播放控制方法及装置
US10013631B2 (en) Collaboration system with raster-to-vector image conversion
KR20220054570A (ko) 다차원 반응형 영상 생성장치, 방법 및 프로그램, 및 다차원 반응형 영상 재생방법 및 프로그램
CN114565702A (zh) 文本图像生成方法、装置及电子设备
CN112733667B (zh) 基于人脸识别的人脸对齐方法及装置
TW202131352A (zh) 透過問答生成訓練資料的系統及其方法
WO2020124603A1 (zh) 一种绘图方法、绘图装置及电子设备
WO2019015411A1 (zh) 录屏方法、装置及电子设备
JP2002044519A (ja) 動画像内オブジェクト抽出方法及び装置
CN111784604A (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: 18943933

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

Country of ref document: EP

Kind code of ref document: A1