WO2019019635A1 - 动态图的生成装置、方法及计算机可读存储介质 - Google Patents

动态图的生成装置、方法及计算机可读存储介质 Download PDF

Info

Publication number
WO2019019635A1
WO2019019635A1 PCT/CN2018/077648 CN2018077648W WO2019019635A1 WO 2019019635 A1 WO2019019635 A1 WO 2019019635A1 CN 2018077648 W CN2018077648 W CN 2018077648W WO 2019019635 A1 WO2019019635 A1 WO 2019019635A1
Authority
WO
WIPO (PCT)
Prior art keywords
target data
preset control
trajectory
preset
user
Prior art date
Application number
PCT/CN2018/077648
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 WO2019019635A1 publication Critical patent/WO2019019635A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to a dynamic image generation device, method, and computer readable storage medium.
  • GIF maps are produced based on video. Generally, multiple frames of images are extracted from the video, and the images are synthesized according to the playback order in the video to generate a GIF map.
  • the user needs to convert the text data into a GIF image that can be dynamically displayed, the user often needs to manually make it through a special drawing software, which results in complicated operation and inefficiency in making the text moving picture.
  • the present application provides a dynamic graph generating apparatus, method and computer readable storage medium, the main purpose of which is to simplify the process of creating a text dynamic graph and improve the efficiency of creating a dynamic graph.
  • the present application provides a dynamic graph generating apparatus, including: a memory, a processor, and a generating program of a dynamic graph stored on the memory and executable on the processor, the dynamic The generator of the graph is executed by the processor to implement the following steps:
  • Target data includes text data and/or picture data
  • the saved plurality of screenshots are synthesized into a GIF dynamic map in the chronological order in which the screenshots are saved.
  • the present application further provides a method for generating a dynamic graph, where the method includes:
  • Target data includes text data and/or picture data
  • the saved plurality of screenshots are synthesized into a GIF dynamic map in the chronological order in which the screenshots are saved.
  • the present application further provides a computer readable storage medium, where the program for generating a dynamic graph is stored, and the program for generating the dynamic graph is implemented by the processor as described above. The steps of the method for generating a dynamic graph.
  • the device, the method and the computer readable storage medium for generating a dynamic graph according to the present application load target data, such as text data or image data, into a preset control, and control the control to move according to a movement track set by the user. Adjusting the position of the target data in the display interface, and performing a screen capture operation when the preset control is moved and saving the acquired screenshot, and synthesizing the acquired multiple screenshots in the order of the screen capture to generate a GIF dynamic map, which may be arbitrary
  • the text or picture generates a dynamic GIF dynamic picture by controlling its movement and performing screen capture and synthesis. It does not require the user to manually synthesize by means of additional drawing software, which simplifies the process of creating a text dynamic picture and improves the production dynamic picture. s efficiency.
  • FIG. 1 is a schematic diagram of a preferred embodiment of a generating apparatus for a dynamic diagram of the present application
  • FIG. 2 is a flow chart of a preferred embodiment of a method for generating a dynamic diagram of the present application.
  • the application provides a device for generating a dynamic graph.
  • FIG. 1 a schematic diagram of a preferred embodiment of a generating apparatus for a dynamic diagram of the present application is shown.
  • the generating device of the dynamic graph may be a PC (Personal Computer), or may be a portable terminal device having a display function such as a smart phone, a tablet computer, or a portable computer.
  • PC Personal Computer
  • portable terminal device having a display function such as a smart phone, a tablet computer, or a portable computer.
  • the generating device of the dynamic graph includes a memory 11, a processor 12, and a communication bus 13.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
  • the memory 11 may in some embodiments be an internal storage unit of the generating device of the dynamic image, such as the hard disk of the generating device of the dynamic image.
  • the memory 11 may also be an external storage device of the generating device of the dynamic image in other embodiments, such as a plug-in hard disk equipped on the generating device of the dynamic image, a smart memory card (SMC), and a secure digital (Secure) Digital, SD) cards, flash cards, etc.
  • the memory 11 may also include an internal storage unit of the generating device of the dynamic image and an external storage device.
  • the memory 11 can be used not only for storing application software and various types of data installed in the generating device of the dynamic image, such as code of a program for generating a dynamic image, but also for temporarily storing data that has been output or is to be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing stored in the memory 11.
  • Data such as a generator that executes a dynamic graph, and the like.
  • Communication bus 13 is used to implement connection communication between these components.
  • Figure 1 shows only the generation means for the dynamic diagram of the generation program with components 11-13 and the dynamic diagram, but it should be understood that not all of the illustrated components are required to be implemented, and more or less may be implemented instead. Component.
  • the device may further include a network interface, and the network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the device and other electronic devices.
  • a network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the device and other electronic devices.
  • the device may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be suitably referred to as a display screen or display unit for displaying information processed in the dynamic image generation device and a user interface for displaying visualization.
  • the device may also include a touch sensor.
  • the area provided by the touch sensor for the user to perform a touch operation is referred to as a touch area.
  • the touch sensor described herein may be a resistive touch sensor, a capacitive touch sensor, or the like.
  • the touch sensor includes not only a contact type touch sensor but also a proximity type touch sensor or the like.
  • the touch sensor may be a single sensor or a plurality of sensors arranged, for example, in an array.
  • the area of the display of the device may be the same as or different from the area of the touch sensor.
  • a display is stacked with the touch sensor to form a touch display. The device detects a user-triggered touch operation based on a touch screen display.
  • the device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein if the device is a mobile terminal, the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may move when the mobile terminal moves to the ear. , turn off the display and / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • the memory 11 as a computer storage medium may include an operating system and a generation program of the dynamic image; when the processor 12 executes the generation program of the dynamic image stored in the memory 11, the following is implemented as follows: step:
  • Target data includes text data and/or picture data
  • the saved plurality of screenshots are synthesized into a GIF dynamic map in the chronological order in which the screenshots are saved.
  • the device is taken as an example of a mobile terminal.
  • the user can input target data through a display interface of the mobile terminal, such as inputting text data or selecting image data to be converted into a dynamic image.
  • the mobile terminal provides a text input box for the user to input text that is to be converted into a dynamic image.
  • the processor 12 is further configured to execute a dynamic image generation program to load the target data into the preset control. Before the step, the following steps are also implemented:
  • the text input box is displayed and the text data set in the text format input by the user based on the text input box is obtained, and the text data is used as the target data.
  • the default text format when the user inputs text data through the text input box, the default text format may be used, or the text format may be set autonomously, such as text font, color, text size, etc., after the user inputs the text.
  • the text is loaded into a pre-established text control according to the format set by the user, such as uilabel, textview and other controls, and uilabel and textview are controls that can be used to display text information.
  • the default control can be imageview
  • imageview is a control for displaying images.
  • a plurality of movement trajectory templates may be preset for the user to select, when the trajectory selection instruction is received, displaying the trajectory selection interface and determining that the user is based on the The preset movement track selected by the trajectory selection interface, and the determined preset movement trajectory is used as the movement trajectory set by the user for the target data.
  • a GIF dynamic image created by a preset moving track template may be displayed on the track selection interface in a preview manner for the user to preview the dynamic effect in advance, and select a desired preset moving track according to the displayed dynamic effect image. template.
  • the preset moving track template is a dynamic image created according to the preset text and the preset moving track template and stored locally in the mobile terminal, and is used to display the dynamic effect corresponding to the moving track template to the user.
  • the user may trigger a trajectory creation instruction based on the drawing control set on the interface, and when the mobile terminal receives the instruction, the trajectory drawing interface is displayed.
  • the step of determining the movement track set by the user for the target data includes:
  • the trajectory drawing interface is displayed and the movement trajectory input by the user based on the trajectory drawing interface is obtained, and the acquired moving trajectory is used as the moving trajectory set by the user for the target data.
  • the mobile terminal has a touch-type display screen
  • the user can draw a required movement track by using a touch operation on the track drawing interface, and the mobile terminal recognizes the touch operation when detecting the touch operation triggered by the user based on the track drawing interface. Touch the point and determine the touch track based on consecutive touch points. And, the start point and the end point when the user draws the touch track are recorded, and the drawing direction of the touch track is determined according to the start point and the end point of the record, and the drawing direction is used as the moving direction of the moving track. After the user draws the completed movement track, the movement track is stored in the memory 11.
  • the user may select several position coordinates in the trajectory drawing interface, and the terminal connects the position coordinates selected by the user in the order of the position coordinates selected by the user to form a continuous moving trajectory.
  • the device can also provide a function of correcting the movement trajectory drawn by the user, and fine-tuning the trajectory manually drawn by the user to make it more smooth.
  • control preset control moves along the movement trajectory on the display interface of the mobile terminal, and performs a screen capture operation on the display interface during the movement to acquire a screenshot and save.
  • the preset control performs a screen capture operation every time the preset distance is moved, and saves the acquired screenshot.
  • the number of the final screenshots is determined by the length of the moving track and the preset time interval or the preset distance. Therefore, the preset time interval or the preset distance may be manually determined by the user after determining the moving track. Make settings, or set a suitable preset time interval or preset distance for the moving track when the user determines the moving track by manually drawing.
  • a screen capture operation is performed on the display interface to obtain a plurality of screenshots, and each captured screenshot and its corresponding screenshot time are stored in the memory 11 after the preset control moves to the end of the movement track.
  • the plurality of screenshots stored in the memory 11 in the above process are synthesized into a GIF dynamic map in the order of the screenshot time. Further, before synthesizing into a dynamic graph, in order to avoid excessive space occupied by the synthesized dynamic graph, the plurality of stored screenshots may be compressed according to a certain ratio, and then synthesized, wherein the compression ratio may be synthesized as needed. The size of the dynamic graph is determined.
  • the mobile terminal stores the synthesized dynamic image in a local preset path according to the storage instruction triggered by the user, or sends the synthesized dynamic image to the server according to the sharing instruction of the user, so that the dynamic map is provided by the server.
  • the dynamic graph sharing library Stored in the dynamic graph sharing library, other users can download and use from the dynamic graph sharing library as needed.
  • the preset control loaded with the target data is moved to adjust a position of the preset control in the display interface, and when the preset control is moved,
  • the display interface performs a screen capture operation to obtain a plurality of screenshots and saves, and according to the chronological order of saving the screenshots, the operation of synthesizing the saved plurality of screenshots into a GIF dynamic map may be invisible to the user, that is, may be operated in the background. Just show the results of the synthesis to the user.
  • the generating device of the dynamic graph proposed in this embodiment loads target data, such as text data or image data, into a preset control, and controls the control to move according to a movement track set by the user to adjust the target data on the display interface.
  • target data such as text data or image data
  • the preset control moves, the screen capture operation is performed and the acquired screenshot is saved, and the acquired multiple screenshots are synthesized in the order of the screen capture to generate a GIF dynamic map, and the scheme can control any text or image through it.
  • Moving and taking screenshots and synthesizing methods to generate dynamic GIF dynamic images does not require the user to manually synthesize with additional drawing software, which simplifies the process of creating text dynamic images and improves the efficiency of making dynamic images.
  • the generating program of the dynamic graph may also be divided into one or more modules, and one or more modules are stored in the memory 11 and executed by one or more processors (this implementation)
  • the processor 12 is executed to complete the present application.
  • the module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, and is used to describe a generating program of the dynamic graph in the generating device of the dynamic graph. The execution process in .
  • the generator of the dynamic graph may be divided into a load module, a determination module, a mobile module, a screen capture module, and a synthesis module, where:
  • the loading module is configured to: load target data into a preset control, where the target data includes text data and/or picture data;
  • the determining module is configured to: determine a movement trajectory set by the user for the target data;
  • the moving module is configured to: move the preset control loaded with the target data according to the movement trajectory to adjust a position of the preset control in a display interface;
  • the screen capture module is configured to perform a screen capture operation on the display interface when the preset control is moved to obtain multiple screenshots and save the same;
  • the synthesizing module is configured to synthesize the saved plurality of screenshots into a GIF dynamic map according to a time sequence in which the screenshots are saved.
  • the present application also provides a method for generating a dynamic graph.
  • FIG. 2 it is a flowchart of a preferred embodiment of a method for generating a dynamic diagram of the present application. The method can be performed by a device that can be implemented by software and/or hardware.
  • the method for generating a dynamic graph includes:
  • Step S10 loading target data into a preset control, wherein the target data includes text data and/or picture data;
  • Step S20 determining a movement trajectory set by the user for the target data
  • Step S30 moving the preset control loaded with the target data according to the movement trajectory to adjust a position of the preset control in the display interface
  • Step S40 performing a screen capture operation on the display interface when the preset control is moved to obtain multiple screenshots and saving;
  • step S50 the saved plurality of screenshots are synthesized into a GIF dynamic map according to the time sequence of saving the screenshot.
  • the method is performed by the mobile terminal as an example.
  • the user can input target data through the display interface of the mobile terminal, for example, input text data or select image data to be converted into a dynamic image.
  • the mobile terminal provides a text input box for the user to input text that is to be converted into a dynamic image.
  • the method further includes the following steps:
  • the text input box is displayed and the text data set in the text format input by the user based on the text input box is obtained, and the text data is used as the target data.
  • the default text format when the user inputs text data through the text input box, the default text format may be used, or the text format may be set autonomously, such as text font, color, text size, etc., after the user inputs the text.
  • the text is loaded into a pre-established text control according to the format set by the user, such as uilabel, textview and other controls, and uilabel and textview are controls that can be used to display text information.
  • the default control can be imageview
  • imageview is a control for displaying images.
  • a plurality of movement trajectory templates may be preset for the user to select, when the trajectory selection instruction is received, displaying the trajectory selection interface and determining that the user is based on the The preset movement track selected by the trajectory selection interface, and the determined preset movement trajectory is used as the movement trajectory set by the user for the target data.
  • a GIF dynamic image created by a preset moving track template may be displayed on the track selection interface in a manner of previewing, so that the user can preview the dynamic effect in advance, and select a desired preset moving track according to the displayed dynamic effect image. template.
  • the preset moving track template is a dynamic image created according to the preset text and the preset moving track template and stored locally in the mobile terminal, and is used to display the dynamic effect corresponding to the moving track template to the user.
  • the user may trigger a trajectory creation instruction based on the drawing control set on the interface, and when the mobile terminal receives the instruction, the trajectory drawing interface is displayed.
  • the step of determining the movement track set by the user for the target data includes:
  • the trajectory drawing interface is displayed and the movement trajectory input by the user based on the trajectory drawing interface is obtained, and the acquired moving trajectory is used as the moving trajectory set by the user for the target data.
  • the mobile terminal has a touch-type display screen
  • the user can draw a required movement track by using a touch operation on the track drawing interface, and the mobile terminal recognizes the touch operation when detecting the touch operation triggered by the user based on the track drawing interface. Touch the point and determine the touch track based on consecutive touch points. And, the start point and the end point when the user draws the touch track are recorded, and the drawing direction of the touch track is determined according to the start point and the end point of the record, and the drawing direction is used as the moving direction of the moving track. After the user draws the completed movement track, the movement track is stored in the memory 11.
  • the user may select several position coordinates in the trajectory drawing interface, and the terminal connects the position coordinates selected by the user in the order of the position coordinates selected by the user to form a continuous moving trajectory.
  • the method can also provide a function of correcting the movement trajectory drawn by the user, and fine-tuning the trajectory manually drawn by the user to make it more smooth.
  • control preset control moves along the movement trajectory on the display interface of the mobile terminal, and performs a screen capture operation on the display interface during the movement to acquire a screenshot and save.
  • the preset control performs a screen capture operation every time the preset distance is moved, and saves the acquired screenshot.
  • the number of the final screenshots is determined by the length of the moving track and the preset time interval or the preset distance. Therefore, the preset time interval or the preset distance may be manually determined by the user after determining the moving track. Make settings, or set a suitable preset time interval or preset distance for the moving track when the user determines the moving track by manually drawing.
  • a screen capture operation is performed on the display interface to obtain a plurality of screenshots, and each captured screenshot and its corresponding screenshot time are stored in the memory 11 after the preset control moves to the end of the movement track.
  • the plurality of screenshots stored in the memory 11 in the above process are synthesized into a GIF dynamic map in the order of the screenshot time. Further, before synthesizing into a dynamic graph, in order to avoid excessive space occupied by the synthesized dynamic graph, the plurality of stored screenshots may be compressed according to a certain ratio, and then synthesized, wherein the compression ratio may be synthesized as needed. The size of the dynamic graph is determined.
  • the mobile terminal stores the synthesized dynamic image in a local preset path according to the storage instruction triggered by the user, or sends the synthesized dynamic image to the server according to the sharing instruction of the user, so that the dynamic map is provided by the server.
  • the dynamic graph sharing library Stored in the dynamic graph sharing library, other users can download and use from the dynamic graph sharing library as needed.
  • the preset control loaded with the target data is moved to adjust a position of the preset control in the display interface, and when the preset control is moved,
  • the display interface performs a screen capture operation to obtain a plurality of screenshots and saves, and according to the chronological order of saving the screenshots, the operation of synthesizing the saved plurality of screenshots into a GIF dynamic map may be invisible to the user, that is, may be operated in the background. Just show the results of the synthesis to the user.
  • the target data such as text data or image data
  • the control is controlled to move according to a movement track set by the user to adjust the target data on the display interface.
  • the preset control moves, the screen capture operation is performed and the acquired screenshot is saved, and the acquired multiple screenshots are synthesized in the order of the screen capture to generate a GIF dynamic map, and the scheme can control any text or image through it.
  • Moving and taking screenshots and synthesizing methods to generate dynamic GIF dynamic images does not require the user to manually synthesize with additional drawing software, which simplifies the process of creating text dynamic images and improves the efficiency of making dynamic images.
  • the embodiment of the present application further provides a computer readable storage medium, where the generating program of the dynamic graph is stored on the computer readable storage medium, and the generating program of the dynamic graph is executed by the processor to:
  • Target data includes text data and/or image data
  • the saved plurality of screenshots are synthesized into a GIF dynamic map in the chronological order in which the screenshots are saved.
  • the trajectory drawing interface is displayed and the movement trajectory input by the user based on the trajectory drawing interface is obtained, and the acquired moving trajectory is used as the moving trajectory set by the user for the target data.
  • the trajectory selection interface When the trajectory selection instruction is received, the trajectory selection interface is displayed and the preset movement trajectory selected by the user based on the trajectory selection interface is determined, and the determined preset movement trajectory is used as the movement trajectory set by the user for the target data. .
  • the preset control performs a screen capture operation every time the preset distance is moved, and saves the acquired screenshot.
  • a disk including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Abstract

本申请公开了一种动态图的生成装置,该装置包括存储器、处理器及存储在存储器上并可在处理器上运行的动态图的生成程序,该程序被处理器执行时实现如下步骤:将目标数据加载至预设控件内,其中,目标数据包括文本数据和/或图片数据;确定用户为目标数据设置的移动轨迹;按照移动轨迹,移动加载有目标数据的预设控件,以调整预设控件在显示界面中的位置,并在移动预设控件时对显示界面进行截屏操作以获取多张截图并保存;按照保存截图的时间顺序,将保存的多张截图合成为GIF动态图。本申请还提出一种动态图的生成方法以及一种计算机可读存储介质。本申请简化了制作文字动态图的过程,提高了制作动态图的效率。

Description

动态图的生成装置、方法及计算机可读存储介质
本申请要求于2017年7月25日提交中国专利局、申请号为201710614492.7、发明名称为“动态图的生成装置、方法及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及图像处理技术领域,尤其涉及一种动态图的生成装置、方法及计算机可读存储介质。
背景技术
现有的GIF图大多是根据视频进行制作的,一般是从视频中抽取多帧图像,将这些图像按照其在视频中的播放顺序进行合成,生成GIF图。当用户需要将文本数据转换为能够动态展示的GIF图像时,往往需要用户通过专门的制图软件手动制作,导致制作文字动图的操作复杂,效率低下。
发明内容
本申请提供一种动态图的生成装置、方法及计算机可读存储介质,其主要目的在于简化制作文字动态图的过程,提高制作动态图的效率。
为实现上述目的,本申请提供一种动态图的生成装置,该装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的动态图的生成程序,所述动态图的生成程序被所述处理器执行时实现如下步骤:
将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
确定用户为所述目标数据设置的移动轨迹;
按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
此外,为实现上述目的,本申请还提供一种动态图的生成方法,该方法包括:
将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
确定用户为所述目标数据设置的移动轨迹;
按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有动态图的生成程序,所述动态图的生成程序被处理器执行时实现如上所述的动态图的生成方法的步骤。
本申请提出的动态图的生成装置、方法及计算机可读存储介质,将目标数据,如文本数据或者图片数据等加载至预设控件内,控制该控件按照用户为其设置的移动轨迹移动,以调整该目标数据在显示界面中的位置,同时在预设控件移动时进行截屏操作并保存获取的截图,将获取的多张截图按照截屏的顺序进行合成,生成GIF动态图,该方案可以将任意的文字或者图片通过控制其移动并进行截屏、合成的方式生成动态的GIF动态图,不需要用户借助于额外的制图软件进行手动的合成,简化了制作文字动态图的过程,提高了制作动态图的效率。
附图说明
图1为本申请动态图的生成装置较佳实施例的示意图;
图2为本申请动态图的生成方法较佳实施例的流程图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种动态图的生成装置。参照图1所示,为本申请动态图的生成装置较佳实施例的示意图。
在本实施例中,动态图的生成装置可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、便携计算机等具有显示功能的可移动式终端设备。
该动态图的生成装置包括存储器11、处理器12,通信总线13。
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是动态图的生成装置的内部存储单元,例如该动态图的生成装置的硬盘。存储器11在另一些实施例中也可以是动态图的生成装置的外部存储设备,例如动态图的生成装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括动态图的生成装置的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于动态图的生成装置的应用软件及各类数据,例如动态图的生成程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行动态图的生成程序等。
通信总线13用于实现这些组件之间的连接通信。
图1仅示出了具有组件11-13以及动态图的生成程序的动态图的生成装置,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,该装置还可以包括网络接口,网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该装置与其他电子设备之间建立通信连接。
可选地,该装置还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、 无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在动态图的生成装置中处理的信息以及用于显示可视化的用户界面。
可选地,该装置还可以包括触摸传感器。所述触摸传感器所提供的供用户进行触摸操作的区域称为触控区域。此外,这里所述的触摸传感器可以为电阻式触摸传感器、电容式触摸传感器等。而且,所述触摸传感器不仅包括接触式的触摸传感器,也可包括接近式的触摸传感器等。此外,所述触摸传感器可以为单个传感器,也可以为例如阵列布置的多个传感器。该装置的显示器的面积可以与所述触摸传感器的面积相同,也可以不同。可选地,将显示器与所述触摸传感器层叠设置,以形成触摸显示屏。该装置基于触摸显示屏侦测用户触发的触控操作。
可选地,该装置还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,若该装置为移动终端,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
在图1所示的装置实施例中,作为一种计算机存储介质的存储器11中可以包括操作系统、以及动态图的生成程序;处理器12执行存储器11中存储的动态图的生成程序时实现如下步骤:
将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
确定用户为所述目标数据设置的移动轨迹;
按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
该实施例中以该装置为移动终端为例进行说明,用户可以通过移动终端的显示界面输入目标数据,例如输入文本数据或者选择要转换为动态图的图像数据。移动终端提供文字输入框以供用户输入想要转换为动态图的文字,具体地,该处理器12还用于执行动态图的生成程序,以在所述将目标数据加载至预设控件内的步骤之前,还实现如下步骤:
在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
在该实施例中,用户在通过文本输入框输入文本数据时,可以使用默认的文字格式,也可以对文字的格式进行自主设置,例如文字字体、颜色、文字大小等等,在用户输入完文字信息并提交后,将这些文字按照用户设定的格式加载到预先建立的文字控件中,例如uilabel、textview等控件,uilabel、textview均是可以用于展示文字信息的控件。对于图片数据来说,预设控件可以是imageview,imageview是一个用于显示图片的控件。
然后,确定用户为该目标数据设置的移动轨迹,在一些实施例中,可以预先设置多个移动轨迹模板以供用户选择,在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。此外,可以在轨迹选择界面上可以预览的方式展示文字或者图片以预设的移动轨迹模板制作的GIF动态图,以供用户预先查看动态效果,根据展示的动态效果图选择需要的预设移动轨迹模板。可以理解的是,上述预设移动轨迹模板为按照预设的文本以及预设移动轨迹模板制作的动态图并存储在移动终端本地,用于向用户展示移动轨迹模板对应的动态效果。
或者,在其他实施例中,当预设的移动轨迹模板不能满足用户的需求时,用户可以基于界面上设置的绘制控件触发轨迹创建指令,移动终端在接收到该指令时,展示轨迹绘制界面以供用户绘制需要的移动轨迹,具体地,确定用户为所述目标数据设置的移动轨迹的步骤包括:
在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹 绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
具体地,若移动终端具有触摸式的显示屏,用户可在上述轨迹绘制界面上通过触摸操作绘制需要的移动轨迹,移动终端在检测到用户基于轨迹绘制界面触发的触摸操作时,识别触摸操作的触摸点,并根据连续的触摸点确定触摸轨迹。并且,记录用户绘制该触摸轨迹时的起点和终点,根据记录的起点和终点确定触摸轨迹的绘制方向,将该绘制方向作为移动轨迹的移动方向。在用户绘制完成移动轨迹后,将该移动轨迹存储至存储器11中。或者,在其他实施例中,用户可以在轨迹绘制界面选择几个位置坐标,终端按照用户选择的位置坐标的顺序,将用户选择的位置坐标连接起来,形成一个连续的移动轨迹。进一步地,该装置还可以提供校正用户绘制的移动轨迹的功能,对用户手动绘制的轨迹进行微调,使其更加流畅。
在确定移动轨迹之后,控制预设控件在移动终端的显示界面上沿着移动轨迹移动,并且在移动过程中对显示界面进行截屏操作以获取截图并保存。
关于截图的方式可以有多种,例如,在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。在完成移动操作后,最终得到的截图的数量由上述移动轨迹的长度以及预设时间间隔或者预设距离决定,因此,上述预设时间间隔或者预设距离,可以由用户在确定移动轨迹后手动进行设置,或者,在用户通过手动绘制的方式确定移动轨迹时,为该移动轨迹设置合适的预设时间间隔或者预设距离。
在预设控件的移动过程中,对显示界面进行截屏操作获取多张截图,将获取的每一张截图以及其对应的截图时间存储到存储器11中,在预设控件移动至移动轨迹的终点后,将上述过程中存储在存储器11中的多张截图按照截图时间的先后顺序合成为一个GIF动态图。进一步地,在合成为动态图之前,为了避免合成的动态图占用的空间过大,可以将上述存储的多张截图按照一定的比例压缩处理后,再进行合成,其中,压缩比例可以根据需要合成的动态图的大小来确定。
进一步地,移动终端根据用户触发的存储指令,将合成的动态图存储至 本地的预设路径中,或者,根据用户的分享指令,将合成的动态图发送至服务器,以供服务器将该动态图存储至动态图分享库中,其他用户可以根据需要从该动态图分享库中下载使用。
需要说明的是,按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置,并在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存,以及按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图的操作可以对用户不可见,即可以在后台进行操作,只需要将合成的结果展示给用户即可。
本实施例提出的动态图的生成装置,将目标数据,如文本数据或者图片数据等加载至预设控件内,控制该控件按照用户为其设置的移动轨迹移动,以调整该目标数据在显示界面中的位置,同时在预设控件移动时进行截屏操作并保存获取的截图,将获取的多张截图按照截屏的顺序进行合成,生成GIF动态图,该方案可以将任意的文字或者图片通过控制其移动并进行截屏、合成的方式生成动态的GIF动态图,不需要用户借助于额外的制图软件进行手动的合成,简化了制作文字动态图的过程,提高了制作动态图的效率。
可选地,在其他的实施例中,动态图的生成程序还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行,以完成本申请,本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,用于描述动态图的生成程序在所述动态图的生成装置中的执行过程。
例如,在一实施例中,动态图的生成程序可以被分割为加载模块、确定模块、移动模块、截屏模块以及合成模块,其中:
所述加载模块用于:将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
所述确定模块用于:确定用户为所述目标数据设置的移动轨迹;
所述移动模块用于:按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
所述截屏模块用于:在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
所述合成模块用于:按照保存截图的时间顺序,将保存的所述多张截图 合成为GIF动态图。
此外,本申请还提供一种动态图的生成方法。参照图2所示,为本申请动态图的生成方法较佳实施例的流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。在本实施例中,动态图的生成方法包括:
步骤S10,将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
步骤S20,确定用户为所述目标数据设置的移动轨迹;
步骤S30,按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
步骤S40,在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
步骤S50,按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
该实施例中以该方法由移动终端执行为例进行说明,用户可以通过移动终端的显示界面输入目标数据,例如输入文本数据或者选择要转换为动态图的图像数据。移动终端提供文字输入框以供用户输入想要转换为动态图的文字,具体地,步骤S10之前,该方法还包括如下步骤:
在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
在该实施例中,用户在通过文本输入框输入文本数据时,可以使用默认的文字格式,也可以对文字的格式进行自主设置,例如文字字体、颜色、文字大小等等,在用户输入完文字信息并提交后,将这些文字按照用户设定的格式加载到预先建立的文字控件中,例如uilabel、textview等控件,uilabel、textview均是可以用于展示文字信息的控件。对于图片数据来说,预设控件可以是imageview,imageview是一个用于显示图片的控件。
然后,确定用户为该目标数据设置的移动轨迹,在一些实施例中,可以预先设置多个移动轨迹模板以供用户选择,在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。此外, 可以在轨迹选择界面上可以预览的方式展示文字或者图片以预设的移动轨迹模板制作的GIF动态图,以供用户预先查看动态效果,根据展示的动态效果图选择需要的预设移动轨迹模板。可以理解的是,上述预设移动轨迹模板为按照预设的文本以及预设移动轨迹模板制作的动态图并存储在移动终端本地,用于向用户展示移动轨迹模板对应的动态效果。
或者,在其他实施例中,当预设的移动轨迹模板不能满足用户的需求时,用户可以基于界面上设置的绘制控件触发轨迹创建指令,移动终端在接收到该指令时,展示轨迹绘制界面以供用户绘制需要的移动轨迹,具体地,确定用户为所述目标数据设置的移动轨迹的步骤包括:
在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
具体地,若移动终端具有触摸式的显示屏,用户可在上述轨迹绘制界面上通过触摸操作绘制需要的移动轨迹,移动终端在检测到用户基于轨迹绘制界面触发的触摸操作时,识别触摸操作的触摸点,并根据连续的触摸点确定触摸轨迹。并且,记录用户绘制该触摸轨迹时的起点和终点,根据记录的起点和终点确定触摸轨迹的绘制方向,将该绘制方向作为移动轨迹的移动方向。在用户绘制完成移动轨迹后,将该移动轨迹存储至存储器11中。或者,在其他实施例中,用户可以在轨迹绘制界面选择几个位置坐标,终端按照用户选择的位置坐标的顺序,将用户选择的位置坐标连接起来,形成一个连续的移动轨迹。进一步地,该方法还可以提供校正用户绘制的移动轨迹的功能,对用户手动绘制的轨迹进行微调,使其更加流畅。
在确定移动轨迹之后,控制预设控件在移动终端的显示界面上沿着移动轨迹移动,并且在移动过程中对显示界面进行截屏操作以获取截图并保存。
关于截图的方式可以有多种,例如,在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。在完成移动操作后,最终得到的截图的数量由上述移动轨迹的长度以及预设时间间隔或者预设距离决定,因此,上述预设时间间隔或者预设距离,可以由用户在确定移动轨迹后 手动进行设置,或者,在用户通过手动绘制的方式确定移动轨迹时,为该移动轨迹设置合适的预设时间间隔或者预设距离。
在预设控件的移动过程中,对显示界面进行截屏操作获取多张截图,将获取的每一张截图以及其对应的截图时间存储到存储器11中,在预设控件移动至移动轨迹的终点后,将上述过程中存储在存储器11中的多张截图按照截图时间的先后顺序合成为一个GIF动态图。进一步地,在合成为动态图之前,为了避免合成的动态图占用的空间过大,可以将上述存储的多张截图按照一定的比例压缩处理后,再进行合成,其中,压缩比例可以根据需要合成的动态图的大小来确定。
进一步地,移动终端根据用户触发的存储指令,将合成的动态图存储至本地的预设路径中,或者,根据用户的分享指令,将合成的动态图发送至服务器,以供服务器将该动态图存储至动态图分享库中,其他用户可以根据需要从该动态图分享库中下载使用。
需要说明的是,按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置,并在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存,以及按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图的操作可以对用户不可见,即可以在后台进行操作,只需要将合成的结果展示给用户即可。
本实施例提出的动态图的生成方法,将目标数据,如文本数据或者图片数据等加载至预设控件内,控制该控件按照用户为其设置的移动轨迹移动,以调整该目标数据在显示界面中的位置,同时在预设控件移动时进行截屏操作并保存获取的截图,将获取的多张截图按照截屏的顺序进行合成,生成GIF动态图,该方案可以将任意的文字或者图片通过控制其移动并进行截屏、合成的方式生成动态的GIF动态图,不需要用户借助于额外的制图软件进行手动的合成,简化了制作文字动态图的过程,提高了制作动态图的效率。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有动态图的生成程序,所述动态图的生成程序被处理器执行时实现如下操作:
将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或 图片数据;
确定用户为所述目标数据设置的移动轨迹;
按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
进一步地,所述动态图的生成程序被处理器执行时还实现如下操作:
在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
进一步地,所述动态图的生成程序被处理器执行时还实现如下操作:
在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
进一步地,所述动态图的生成程序被处理器执行时还实现如下操作:
在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很 多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种动态图的生成装置,其特征在于,所述装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的动态图的生成程序,所述动态图的生成程序被所述处理器执行时实现如下步骤:
    将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
    确定用户为所述目标数据设置的移动轨迹;
    按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
    在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
    按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
  2. 根据权利要求1所述的动态图的生成装置,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
  3. 根据权利要求1动态图的生成装置,其特征在于,所述处理器还用于执行所述动态图的生成程序,以在所述将目标数据加载至预设控件内的步骤之前,还实现以下步骤:
    在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
  4. 根据权利要求2动态图的生成装置,其特征在于,所述处理器还用于执行所述动态图的生成程序,以在所述将目标数据加载至预设控件内的步骤之前,还实现以下步骤:
    在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
  5. 根据权利要求2所述的动态图的生成装置,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
  6. 根据权利要求3所述的动态图的生成装置,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
  7. 根据权利要求5所述的动态图的生成装置,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
  8. 一种动态图的生成方法,其特征在于,所述方法包括:
    将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或图片数据;
    确定用户为所述目标数据设置的移动轨迹;
    按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置,并在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
    按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
  9. 根据权利要求8所述的动态图的生成方法,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
  10. 根据权利要求8所述的动态图的生成方法,其特征在于,所述将目 标数据加载至预设控件内的步骤之前,所述方法还包括以下步骤:
    在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
  11. 根据权利要求9所述的动态图的生成方法,其特征在于,所述将目标数据加载至预设控件内的步骤之前,所述方法还包括以下步骤:
    在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
  12. 根据权利要求11所述的动态图的生成方法,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
  13. 根据权利要求8所述的动态图的生成方法,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
  14. 根据权利要求9所述的动态图的生成方法,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有动态图的生成程序,所述动态图的生成程序可被一个或多个处理器执行,以实现如下步骤:
    将目标数据加载至预设控件内,其中,所述目标数据包括文本数据和/或 图片数据;
    确定用户为所述目标数据设置的移动轨迹;
    按照所述移动轨迹,移动加载有所述目标数据的所述预设控件,以调整所述预设控件在显示界面中的位置;
    在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存;
    按照保存截图的时间顺序,将保存的所述多张截图合成为GIF动态图。
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在侦测到轨迹创建指令时,展示轨迹绘制界面并获取用户基于所述轨迹绘制界面输入的移动轨迹,将获取的移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
  17. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述动态图的生成程序可被一个或多个处理器执行,以在所述将目标数据加载至预设控件内的步骤之前,还实现以下步骤:
    在侦测到文字输入指令时,展示文字输入框并获取用户基于所述文字输入框输入的设置有文本格式的文本数据,将所述文本数据作为所述目标数据。
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每移动预设距离进行一次截屏操作,并保存获取的截图。
  19. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述在移动所述预设控件时对所述显示界面进行截屏操作以获取多张截图并保存的步骤包括:
    在所述预设控件沿所述移动轨迹移动的过程中,每间隔预设时间间隔进行一次截屏操作,并保存获取的截图;
    或者,在所述预设控件沿所述移动轨迹移动的过程中,所述预设控件每 移动预设距离进行一次截屏操作,并保存获取的截图。
  20. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述确定用户为所述目标数据设置的移动轨迹的步骤包括:
    在接收到轨迹选择指令时,展示轨迹选择界面并确定用户基于所述轨迹选择界面选择的预设移动轨迹,将确定的所述预设移动轨迹作为所述用户为所述目标数据设置的移动轨迹。
PCT/CN2018/077648 2017-07-25 2018-02-28 动态图的生成装置、方法及计算机可读存储介质 WO2019019635A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710614492.7 2017-07-25
CN201710614492.7A CN108416825B (zh) 2017-07-25 2017-07-25 动态图的生成装置、方法及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2019019635A1 true WO2019019635A1 (zh) 2019-01-31

Family

ID=63125448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077648 WO2019019635A1 (zh) 2017-07-25 2018-02-28 动态图的生成装置、方法及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN108416825B (zh)
WO (1) WO2019019635A1 (zh)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490808A (zh) * 2019-08-27 2019-11-22 腾讯科技(深圳)有限公司 图片拼接方法、装置、终端及存储介质
CN110675473A (zh) * 2019-09-17 2020-01-10 Oppo广东移动通信有限公司 生成gif动态图的方法、装置、电子设备及介质
CN111047527A (zh) * 2019-11-25 2020-04-21 福州市暖色网络科技有限公司 基于输入元素调整动态元素的方法和存储介质
CN111061630A (zh) * 2019-11-26 2020-04-24 歌尔股份有限公司 产品调试方法、调试装置及可读存储介质
CN111324261A (zh) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 目标对象的截取方法、装置、电子设备及存储介质
CN112738402A (zh) * 2020-12-30 2021-04-30 维沃移动通信(杭州)有限公司 拍摄方法、装置、电子设备及介质
CN113419802A (zh) * 2021-06-21 2021-09-21 网易(杭州)网络有限公司 图集生成方法、装置、电子设备及存储介质
CN114173203A (zh) * 2022-01-05 2022-03-11 统信软件技术有限公司 一种视频播放中截取图像的方法、装置与计算设备

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783859A (zh) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 模型构建方法、装置及计算机可读存储介质
CN109922291B (zh) * 2019-01-18 2022-10-21 平安科技(深圳)有限公司 Gif生成方法、装置、计算机设备及存储介质
CN110677734B (zh) * 2019-09-30 2023-03-10 北京达佳互联信息技术有限公司 视频合成方法、装置、电子设备及存储介质
CN110942500A (zh) * 2019-11-29 2020-03-31 广州久邦世纪科技有限公司 一种静态图转化成动态图的方法和装置
CN111638881A (zh) * 2020-05-29 2020-09-08 山东浪潮通软信息科技有限公司 图表的调整方法及仪表盘
CN112162805B (zh) * 2020-09-23 2023-05-19 维沃移动通信有限公司 截图方法、装置和电子设备
CN112351347B (zh) * 2020-10-26 2024-02-09 深圳Tcl新技术有限公司 屏幕焦点移动显示方法、显示设备及存储介质
CN113129407B (zh) * 2021-03-15 2023-08-18 武汉联影智融医疗科技有限公司 生理波形图绘制方法、装置、计算机设备和可读存储介质
CN112905433B (zh) * 2021-03-16 2022-08-19 广州虎牙科技有限公司 轨迹追踪方法、装置、电子设备和可读存储介质
TWI775557B (zh) * 2021-08-09 2022-08-21 華碩電腦股份有限公司 影像擷取方法及電子裝置
CN113573102A (zh) * 2021-08-18 2021-10-29 北京中网易企秀科技有限公司 一种视频生成方法及装置
CN113867869A (zh) * 2021-09-29 2021-12-31 上海哔哩哔哩科技有限公司 交互数据显示方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060047968A (ko) * 2004-06-16 2006-05-18 삼성전자주식회사 휴대용단말을 이용한 애니메이션 생성 장치 및 방법
CN102368196A (zh) * 2011-10-02 2012-03-07 上海量明科技发展有限公司 客户端内容发送窗口中编辑动态图片的方法、终端及系统
CN103927095A (zh) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 实现屏幕录像的方法和装置
CN104080005A (zh) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 一种截取动态图像的装置及方法
CN105718198A (zh) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 动态图像的生成方法及移动终端
CN105872675A (zh) * 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 截取视频动画的方法及装置
CN106657836A (zh) * 2016-11-28 2017-05-10 合网络技术(北京)有限公司 图像互换格式图的制作方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364459B (zh) * 2011-06-28 2015-10-07 广州市动景计算机科技有限公司 基于移动终端的网页Flash动画显示方法和装置
CN105450642B (zh) * 2015-11-17 2018-11-23 广州华多网络科技有限公司 一种基于在线直播的数据处理方法、相关装置及系统
CN105933624A (zh) * 2016-06-17 2016-09-07 武汉斗鱼网络科技有限公司 一种用于网站视频录制方法及装置
CN106534893B (zh) * 2016-11-25 2019-08-13 国云科技股份有限公司 一种在线视频转gif的方法
CN106780685B (zh) * 2017-03-23 2018-09-04 维沃移动通信有限公司 一种动态图片的生成方法及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060047968A (ko) * 2004-06-16 2006-05-18 삼성전자주식회사 휴대용단말을 이용한 애니메이션 생성 장치 및 방법
CN102368196A (zh) * 2011-10-02 2012-03-07 上海量明科技发展有限公司 客户端内容发送窗口中编辑动态图片的方法、终端及系统
CN103927095A (zh) * 2014-04-16 2014-07-16 广东欧珀移动通信有限公司 实现屏幕录像的方法和装置
CN104080005A (zh) * 2014-07-10 2014-10-01 福州瑞芯微电子有限公司 一种截取动态图像的装置及方法
CN105872675A (zh) * 2015-12-22 2016-08-17 乐视网信息技术(北京)股份有限公司 截取视频动画的方法及装置
CN105718198A (zh) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 动态图像的生成方法及移动终端
CN106657836A (zh) * 2016-11-28 2017-05-10 合网络技术(北京)有限公司 图像互换格式图的制作方法和装置

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490808A (zh) * 2019-08-27 2019-11-22 腾讯科技(深圳)有限公司 图片拼接方法、装置、终端及存储介质
CN110490808B (zh) * 2019-08-27 2023-07-07 腾讯科技(深圳)有限公司 图片拼接方法、装置、终端及存储介质
CN110675473A (zh) * 2019-09-17 2020-01-10 Oppo广东移动通信有限公司 生成gif动态图的方法、装置、电子设备及介质
CN111047527A (zh) * 2019-11-25 2020-04-21 福州市暖色网络科技有限公司 基于输入元素调整动态元素的方法和存储介质
CN111061630A (zh) * 2019-11-26 2020-04-24 歌尔股份有限公司 产品调试方法、调试装置及可读存储介质
CN111324261A (zh) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 目标对象的截取方法、装置、电子设备及存储介质
CN112738402A (zh) * 2020-12-30 2021-04-30 维沃移动通信(杭州)有限公司 拍摄方法、装置、电子设备及介质
CN113419802A (zh) * 2021-06-21 2021-09-21 网易(杭州)网络有限公司 图集生成方法、装置、电子设备及存储介质
CN114173203A (zh) * 2022-01-05 2022-03-11 统信软件技术有限公司 一种视频播放中截取图像的方法、装置与计算设备

Also Published As

Publication number Publication date
CN108416825A (zh) 2018-08-17
CN108416825B (zh) 2021-09-28

Similar Documents

Publication Publication Date Title
WO2019019635A1 (zh) 动态图的生成装置、方法及计算机可读存储介质
US9852491B2 (en) Objects in screen images
KR102309175B1 (ko) 스크랩 정보를 제공하는 전자 장치 및 그 제공 방법
KR102207208B1 (ko) 음악 정보 시각화 방법 및 장치
US9479693B2 (en) Method and mobile terminal apparatus for displaying specialized visual guides for photography
EP3093755B1 (en) Mobile terminal and control method thereof
US9971748B2 (en) Method and apparatus for outputting digital content
EP3686723A1 (en) User terminal device providing user interaction and method therefor
US10579248B2 (en) Method and device for displaying image by using scroll bar
US20160012612A1 (en) Display control method and system
KR102244248B1 (ko) 컨텐츠 운용 방법 및 이를 지원하는 전자 장치
US20160334988A1 (en) Display device and method for providing recommended characters from same
JP6841519B2 (ja) 電子署名を作成するための方法及び電子装置
TW201604719A (zh) 智能設備的控制方法及裝置
US20190012129A1 (en) Display apparatus and method for controlling display apparatus
TW201642115A (zh) 圖示調整方法、圖示調整系統與電子裝置
CN108401173B (zh) 移动直播的互动终端、方法及计算机可读存储介质
TWI566164B (zh) 應用程式功能介面的移動方法、系統與移動裝置
KR102654807B1 (ko) 전자 장치 및 전자 장치 제어 방법
US10609305B2 (en) Electronic apparatus and operating method thereof
US9665260B2 (en) Method and apparatus for controlling screen of mobile device
US20180088751A1 (en) Electronic apparatus and controlling method thereof
CN111242712B (zh) 一种商品展示方法及其装置
US10140258B2 (en) Portable device and image displaying method thereof
JP2015102875A (ja) 表示システム及び表示制御装置

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

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

Country of ref document: EP

Kind code of ref document: A1