Method and device for presenting hand-drawn track, equipment, storage medium and program product

By generating and rendering hand-drawn trajectories, the problem of convenience and insufficient personalized rendering of terminal devices in hand-drawn painting creation is solved, and the user experience is improved.

CN120495491APending Publication Date: 2025-08-15BAIDU COM TIMES TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510570476.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing terminal equipment lacks convenience and personalized rendering services in hand-painted painting creation, resulting in insufficient user experience.

Method used

By collecting trajectory drawing actions to generate trajectory parameter information, and rendering hand-drawn trajectories based on personalized rendering parameters, providing personalized rendering services.

Benefits of technology

Optimize the presentation and viewing effects of hand-drawn trajectories to meet users' personalized needs and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120495491A_ABST
    Figure CN120495491A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for presenting a hand-drawn track, electronic equipment, a computer readable storage medium and a computer program product, and relates to the technical field of artificial intelligence such as computer vision, visual element rendering and human-computer interaction. A specific embodiment of the method comprises the steps of generating track parameter information based on a collected track drawing action; rendering the hand-drawn track based on the track parameter information and personalized rendering parameters for the hand-drawn track; and presenting the hand-drawn track. Therefore, the hand-drawn track recording service and the personalized rendering service can be provided for the user. Through the services, the presentation and watching effects of the hand-drawn track can be optimized, the personalized requirements of the user can be met, and the user experience is comprehensively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to artificial intelligence technologies such as computer vision, visual element rendering, and human-computer interaction, and especially to methods, devices, electronic devices, computer-readable storage media, and computer program products for presenting hand-drawn trajectories. Background Art

[0002] With the progress and development of hardware performance, touch screen technology, etc. of terminal devices such as smartphones and tablets, "painting" realized on terminal devices such as smartphones and tablets has gradually become popular among people, and these terminal devices have become an important tool for people's painting creation.

[0003] For example, users can use the touch screens configured on these terminal devices to simulate the use of traditional painting tools such as pencils, oil brushes, markers, etc. through hand-drawn operations, and use these terminal devices to "create paintings."

[0004] Therefore, in this context, how to make it more convenient for users to "create paintings" and provide them with a better user experience is worthy of attention and an urgent need. Summary of the Invention

[0005] The embodiments of the present disclosure provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for presenting a hand-drawn trajectory.

[0006] In a first aspect, an embodiment of the present disclosure proposes a method for presenting a hand-drawn trajectory, comprising: generating trajectory parameter information based on a collected trajectory drawing action; rendering the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and presenting the hand-drawn trajectory.

[0007] In a second aspect, an embodiment of the present disclosure proposes a device for presenting a hand-drawn trajectory, comprising: a trajectory parameter information generation unit, configured to generate trajectory parameter information based on a collected trajectory drawing action; a hand-drawn trajectory rendering unit, configured to render a hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and a hand-drawn trajectory presentation unit, configured to present the hand-drawn trajectory.

[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that when the at least one processor executes, it can implement the method for presenting hand-drawn trajectories as described in any implementation method in the first aspect.

[0009] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the method of presenting a hand-drawn trajectory as described in any implementation manner in the first aspect when executed.

[0010] In a fifth aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, can implement the method for presenting a hand-drawn trajectory as described in any implementation manner in the first aspect.

[0011] The methods, devices, electronic devices, computer-readable storage media, and computer program products provided by the embodiments of the present disclosure generate trajectory parameter information based on the collected trajectory drawing action; render the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and present the hand-drawn trajectory.

[0012] This disclosure can provide users with hand-drawn track recording services and personalized rendering services. Through these services, not only can the presentation and viewing effects of hand-drawn tracks be optimized, but also the personalized needs of users can be met, thus comprehensively improving the user experience.

[0013] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following drawings:

[0015] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;

[0016] Figure 2 A flowchart of a method for presenting a hand-drawn trajectory provided by an embodiment of the present disclosure;

[0017] Figure 3 A flowchart of a process for publishing a presentation file provided in an embodiment of the present disclosure;

[0018] Figure 4 A schematic diagram of an exemplary architecture for implementing a process of presenting a hand-drawn trajectory in an application scenario provided by an embodiment of the present disclosure;

[0019] Figure 5 A structural block diagram of a device for presenting hand-drawn trajectories provided in an embodiment of the present disclosure;

[0020] Figure 6A schematic structural diagram of an electronic device suitable for executing a method for presenting a hand-drawn trajectory provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other unless there is a conflict.

[0022] In addition, in the technical solutions involved in this disclosure, the acquisition, storage, use, processing, transportation, provision and disclosure of user personal information involved (such as the "trajectory drawing action" involved later in this disclosure) are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0023] For example, in the technical solution of the present disclosure, before collecting drawing actions, a pop-up window or the like can be displayed in the user interface for interacting with the user to inform the user that the drawing actions are about to be collected, and the user is requested to authorize this "collection behavior".

[0024] Correspondingly, if the user authorizes the "collection behavior", the technical solution of the present disclosure will actually execute these authorized "collection behaviors".

[0025] Accordingly, the purpose of collecting the "trajectory drawing action" and the subsequent usage of the "trajectory drawing action" can be presented and provided in a pop-up window, so that the user can be informed of the purpose and method of subsequent operations on the "collected trajectory drawing action" and the subsequent usage can be executed with the user's authorization and permission to achieve the corresponding purpose.

[0026] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method, apparatus, electronic device, and computer-readable storage medium for presenting hand-drawn trajectories disclosed herein may be applied.

[0027] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0028] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various applications for enabling information communication between the terminal devices 101, 102, and 103 and server 105 can be installed, such as image drawing applications, image generation applications, and instant messaging applications.

[0029] Terminal devices 101, 102, 103 and server 105 can be either hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smartphones, tablet computers, laptop computers, and desktop computers. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules, or as a single software or software module, and are not specifically limited here. When server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules, or as a single software or software module, and are not specifically limited here.

[0030] The server 105 can provide various services through various built-in applications. Taking an image drawing application that can generate pictures based on the "hand-drawn trajectory", "hand-drawn behavior" and "hand-drawn behavior" provided by the user for painting as an example, the server 105 can achieve the following effects when running the image drawing application: first, the user's trajectory drawing action collected by the terminal devices 101, 102, and 103 is obtained through the network 104; then, the server 105 generates trajectory parameter information based on the collected trajectory drawing action; next, the server 105 renders the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; finally, the server 105 can return the hand-drawn trajectory to the terminal devices 101, 102, and 103 through the network 104, and use the terminal devices 101, 102, and 103 to present the hand-drawn trajectory to the user.

[0031] In some embodiments, if the terminal devices 101, 102, and 103 used by the user can also provide sufficient computing power to generate trajectory parameter information and render the hand-drawn trajectory, the above process can actually be completed "locally" by the terminal devices 101, 102, and 103. Accordingly, in such a case, the exemplary system architecture 100 may also not include the server 105 and the network 104.

[0032] For ease of use and other considerations (for example, users may often need to provide trajectory drawing actions and receive and view the presented hand-drawn trajectories through interaction with terminal devices 101, 102, 103), the methods for presenting hand-drawn trajectories provided in the subsequent embodiments of this disclosure are generally implemented by terminal devices 101, 102, 103 that can be directly interacted with by users. Accordingly, the device for presenting hand-drawn trajectories is generally also provided in the terminal devices 101, 102, 103.

[0033] However, it should also be noted that in some scenarios, it may be necessary to utilize the computing power of server 105 to enhance overall computing capabilities. In such cases, server 105 can also use image rendering applications installed on it to collaborate with terminal devices 101, 102, and 103 to complete various calculations, thereby appropriately reducing the computing pressure on server terminal devices 101, 102, and 103. Accordingly, the device for displaying hand-drawn trajectories can also be installed in server 105.

[0034] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0035] Please refer to Figure 2 , Figure 2 A flowchart of a process for presenting a hand-drawn trajectory provided by an embodiment of the present disclosure includes process 200 .

[0036] The process 200 specifically includes the following steps:

[0037] Step 201: Generate trajectory parameter information based on the collected trajectory drawing action;

[0038] In the embodiment of the present disclosure, this step is intended to be performed by the execution subject (eg Figure 1 The terminal devices 101, 102, and 103 shown in the figure generate trajectory parameter information based on the collected trajectory drawing action. For example, the execution entity can collect user actions such as touch and slide on the touch screen page during the process of direct use and interaction by the user, and correspondingly record the various touch positions involved in the touch and slide actions to achieve the collection of "trajectory drawing actions".

[0039] Then, the execution subject further generates trajectory parameter information based on the “trajectory drawing action” consisting of the touched position and time.

[0040] The trajectory parameter information can record the touched positions and touch times in chronological order. Accordingly, the execution entity can use the "trajectory parameter information" to restore the "hand-drawn trajectory" or "drawing trajectory" drawn by the user on the touch screen.

[0041] For example, the execution entity can restore and determine the "hand-drawn trajectory" formed by the user's hand-drawn trajectory drawing action based on the trajectory parameter information of touching position A, position B and position C in sequence (for example, a "complete straight line" composed of a straight line pointing from position A to position B and a straight line pointing from position B to position C, or a "broken line").

[0042] Step 202: Rendering the hand-drawn trajectory based on the trajectory parameter information and the personalized rendering parameters for the hand-drawn trajectory;

[0043] In an embodiment of the present disclosure, this step is intended to be performed by the executing entity based on the above-mentioned step 201, based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory, to perform rendering (for example, after calling the image rendering engine, using the image rendering engine to perform rendering actions using the trajectory parameter information and personalized rendering parameters) to render the hand-drawn trajectory.

[0044] For example, the executing entity can use the trajectory parameter information to determine the shape, direction, outline, etc. of the hand-drawn trajectory, and use personalized rendering parameters for the hand-drawn trajectory to determine the visual effects such as color, brightness, transparency, special effects, etc. to render a "hand-drawn trajectory" with the corresponding shape, direction, and corresponding visual effect.

[0045] In some embodiments, the user may not expect to perform "rendering" in real time and immediately during the drawing behavior or trajectory drawing process. In such a case, the execution entity may store the trajectory parameter information after generating the trajectory parameter information based on the above step 201, and then respond to the trajectory rendering request to perform "rendering" when receiving a trajectory rendering request corresponding to the trajectory parameter information, for example, sent by the user.

[0046] This allows users to be provided with personalized services at the "rendering" time. For example, users can choose the appropriate time to start using "trajectory parameter information" and "personalized rendering parameters" according to their needs.

[0047] Accordingly, in such cases, by storing the "trajectory parameter information" and allowing the user to select the start time, the user can subsequently call and reuse the "trajectory parameter information" to render "hand-drawn trajectories" with different visual effects for the same "shape" and "direction", thereby reducing the user's hand-drawing and creation costs.

[0048] In some optional implementations of this embodiment, after obtaining and generating the trajectory parameter file, the execution subject may first encapsulate the trajectory parameter information based on the target format to obtain the trajectory parameter file.

[0049] For example, the target format can be JSON (JavaScript Object Notation). Accordingly, by storing the trajectory parameter information in a JSON-formatted trajectory parameter file, the trajectory parameter information can be compatible and used by more devices and operating systems, allowing users to use the "trajectory parameter information" across devices and in a wider range of devices and scenarios to render and generate hand-drawn trajectories.

[0050] Next, the execution entity can store the trajectory parameter file to the first target storage location based on a pre-set storage path (for ease of understanding, it can be described as the first storage path), waiting for the user to access the "trajectory parameter file" when rendering a hand-drawn trajectory.

[0051] Accordingly, in executing this step, the executing entity may, as an alternative or substitute, choose to respond to a trajectory rendering request corresponding to the trajectory parameter information when it receives it, and render the hand-drawn trajectory based on the trajectory parameter information read from the first target storage location and the personalized rendering parameters for the hand-drawn trajectory.

[0052] As discussed above, in some embodiments, if the user wishes to share or use the "trajectory parameter information" on other devices, the user may also interact with the execution entity through other target devices to request the execution entity to extract the trajectory parameter file from the first target storage location and then provide the trajectory parameter file to the target device (for example, a device different from the execution entity used by the user, or a device different from the execution entity used by the user). This allows the user to use the trajectory parameter information included in the trajectory parameter file on other devices, or other users allowed by the user to use the trajectory parameter information on other devices to render hand-drawn trajectories.

[0053] As discussed above, when rendering "hand-drawn tracks," users can adjust their needs and expectations for the visual effects of the hand-drawn tracks based on personalized rendering parameters. Accordingly, the execution entity can render "hand-drawn tracks" with different visual effects by adjusting personalized rendering parameters such as color, brightness, transparency, and special effects.

[0054] In some embodiments, to facilitate user configuration of personalized rendering parameters, the execution entity may further interact with the user through a configured rendering parameter editor. The rendering parameter editor may include at least one of a first control for adding static rendering materials, a second control for adding dynamic rendering materials, and a third control for adding dynamic visual effects.

[0055] For example, the execution subject can construct a selection menu based on the static rendering material (e.g., the color, line thickness, skin texture, etc. of the hand-drawn track) that can be added. Then, the execution subject adds a first control for opening the selection menu in the rendering parameter editor.

[0056] Accordingly, if the user clicks the first control, the execution entity may correspondingly present the selection menu, allowing the user to adjust and determine the static rendering material desired to be used by selecting the candidate items included therein. Accordingly, after the user completes the selection of the static rendering material, the execution entity may use the parameters corresponding to the static rendering material as (at least part of) the personalized rendering parameters to render the "hand-drawn trajectory."

[0057] Similarly, the executing entity can add a second control in the rendering parameter editor for pulling up a selection menu for "dynamic rendering materials" (for example, desired lighting effects, particle effects, dynamic blur effects, etc.), so that the user can provide personalized rendering parameters for the "dynamic rendering materials" by interacting with the second control.

[0058] Similarly, the executing entity can add a third control in the rendering parameter editor for pulling up a selection menu for "dynamic visual effects" (for example, adding dynamic visual effects such as fireworks and meteors), so that the user can provide personalized rendering parameters for "dynamic visual effects" by interacting with the third control.

[0059] In some embodiments, based on different dimensions and effects, the execution entity may further choose to add fourth and fifth controls, etc. For example, for "dynamic visual effects," the execution entity may further adjust the shape and style of fireworks and popular effects through the fourth control, thereby providing more detailed "personalized rendering parameters" and providing more visual effects to better meet the personalized needs of different users.

[0060] Accordingly, the execution entity can determine personalized rendering parameters (for example, parameters of static rendering materials, parameters of dynamic rendering materials, dynamic visual effects, etc.) based on the user's interaction results with the rendering parameter editor and the user's configuration results in the rendering parameter editor.

[0061] Therefore, using the rendering parameter editor not only enables users to intuitively understand and comprehend personalized rendering parameters that can be adjusted and used, but also enables users to provide these personalized rendering parameters through relatively simple interactive operations, thereby reducing users' operating costs.

[0062] In addition, in some embodiments, when allowing users to adjust personalized rendering parameters in multiple different dimensions (for example, at least two of static rendering materials, dynamic rendering materials, and dynamic visual effects), the executing entity can also choose to configure multiple "layers" to render and add content corresponding to each dimension separately to ensure the rendering effect of hand-drawn trajectories.

[0063] Step 203: Present the hand-drawn trajectory.

[0064] In an embodiment of the present disclosure, after rendering is completed in step 203 and a hand-drawn trajectory is obtained, the execution entity may choose to present the hand-drawn trajectory to the user. For example, the execution entity may present the hand-drawn trajectory through a display component or user interface that can be observed and used by the user.

[0065] In some optional implementations of this embodiment, the execution entity may pop up an independent preview interface in the user interface, and use the preview interface to independently present the hand-drawn trajectory to the user, so that the user can clearly view the rendering result of the hand-drawn trajectory.

[0066] In some embodiments, the executing entity may also select to read the interactive interface used during the process of generating the trajectory drawing action. Then, the executing entity may select to directly update the hand-drawn trajectory into the interactive interface, thereby obtaining an updated interactive interface with the original content of the interactive interface as the background but with the hand-drawn trajectory added.

[0067] Accordingly, the executing entity can use the updated interactive interface to present the hand-drawn track, so that the user can flexibly add personalized "hand-drawn tracks" that meet the user's needs without deviating from the content of the original interactive interface during the process of browsing and using the interactive interface.

[0068] The method for presenting hand-drawn trajectories provided in the disclosed embodiments generates trajectory parameter information based on the captured trajectory drawing action; renders the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and finally presents the hand-drawn trajectory. This provides users with hand-drawn trajectory recording and personalized rendering services. These services not only optimize the presentation and viewing effects of hand-drawn trajectories, but also meet users' personalized needs, comprehensively improving the user experience.

[0069] In some embodiments, the execution entity may also start rendering when the user may not have completely completed the trajectory drawing, in the hope of presenting the “rendering effect” to the user earlier.

[0070] In this regard, if the trajectory drawing action can be collected in "real time", the execution entity can continuously and persistently generate trajectory parameter information based on the collected trajectory drawing action.

[0071] Then, if the execution entity determines based on the trajectory parameter information that has been generated that the length of the first sub-hand-drawn trajectory that has not yet been rendered is greater than or equal to a length threshold (for example, the length threshold can be determined in advance based on the criteria for allowing "rendering" to start), the execution entity can respond to this by rendering the first sub-hand-drawn trajectory based on the part of the trajectory parameter information corresponding to the first sub-hand-drawn trajectory and the personalized rendering parameters for the hand-drawn trajectory.

[0072] Accordingly, the first sub-hand-drawn trajectory can correspond to the "drawing result" that has been formed between the moment the user started "hand-drawing" and the current moment. This allows rendering to begin earlier if the user has already drawn a portion of the trajectory. This not only improves rendering efficiency and reduces the user's waiting time for rendering, but also allows the user to decide whether to continue using such "personalized rendering parameters" for subsequent rendering based on the first sub-hand-drawn trajectory.

[0073] Similarly, after completing the first segment of the "first sub-hand-drawn trajectory" (for example, its starting point may be the moment when the user starts drawing), the execution entity may continue to detect the subsequent "length of the first sub-hand-drawn trajectory that has not yet been rendered" to determine whether to continue rendering the subsequent second, third, and other segments of the "first sub-hand-drawn trajectory".

[0074] In some optional implementations of this embodiment, if there are subsequent second and third segments of the "first sub-hand-drawn trajectory", the execution entity can combine it with the previous rendering result that has been completed after the rendering is completed, that is, the historical first sub-hand-drawn trajectory (for ease of understanding, the "historical first sub-hand-drawn trajectory" here can be further referred to as the "second sub-hand-drawn trajectory") to obtain a (complete) hand-drawn trajectory.

[0075] That is, if a previously rendered second sub-hand-drawn track exists, the execution entity can combine the first and second sub-hand-drawn tracks after completing the rendering of the current "first sub-hand-drawn track" to create a new "second sub-hand-drawn track." In this way, the execution entity can continuously "combine" to follow the user's drawing progress, allowing for dynamic, real-time rendering of personalized hand-drawn tracks based on the user's drawing behavior.

[0076] It should be understood that when it is determined that the user has completed the drawing (for example, no new trajectory drawing action occurs within the preset detection time length), the execution entity can detect whether all parts of the "trajectory parameter information" are "rendered", or in other words, the corresponding "sub-hand-drawn trajectory" (for ease of understanding, it can be called the third sub-hand-drawn trajectory) is rendered.

[0077] If there is an unrendered portion, the execution entity can render that portion to obtain the corresponding "third sub-hand-drawn track", and then combine it with the already drawn (first sub-hand-drawn track and) second sub-hand-drawn track in a similar manner to obtain the complete hand-drawn track. This avoids omissions due to the length of the "last segment" being less than the above length threshold.

[0078] In some embodiments, in order to improve the use value of the rendered hand-drawn trajectory and reduce the rendering cost of the hand-drawn trajectory, the rendered hand-drawn trajectory can also be executed by the execution entity, or provided by the execution entity to other servers or terminal devices for "reuse".

[0079] Accordingly, in some embodiments, after rendering the hand-drawn trajectory, the execution entity may also generate a presentation file for storing the hand-drawn trajectory. The presentation file may be in the form of at least one of the following: a video for presenting the hand-drawn trajectory, or a static image determined from video frames of the video.

[0080] For example, for a hand-drawn track with dynamic visual effects, the execution entity generates a video for presenting the hand-drawn track that can fully present the dynamic visual effects based at least on the specific content of the dynamic visual effects (i.e., through this video, the "dynamic visual effects" can be continuously and completely presented). Accordingly, based on this "video", the user can directly and completely obtain and view the dynamic visual effects of the hand-drawn track.

[0081] Similarly, if a hand-drawn track only includes or adds "static rendering materials", the execution entity can also choose to only provide a static image of the hand-drawn track as a display file for presenting the hand-drawn track, so as to reduce the storage space occupied and the resource requirements when loading the display file.

[0082] In the case of providing "static pictures", the executing entity can also choose to use the "video frames" of the above-mentioned video as the above-mentioned "static pictures", for example, in the form of preview pictures of the "video" to take into account and reduce the resource requirements during loading.

[0083] Accordingly, after generating the presentation file, the execution entity may also choose a method similar to the above-mentioned storage trajectory parameter file, and choose to store the presentation file in the second target storage location based on the second storage path, so that the "presentation file" can be reused.

[0084] In some embodiments, in order to further increase the possibility of the "presentation file" being reused, the execution entity can also "publish" the presentation file (for example, to the "cloud server") with the authorization of the user or as instructed by the user, so that other users can obtain the "presentation file" through the cloud storage of the "cloud server" to increase the possibility of the "presentation file" being reused.

[0085] For example, a user can send a publishing instruction for a presentation file through interaction with the execution entity. Accordingly, if the execution entity receives the publishing instruction for the presentation file, the execution entity can respond by storing the presentation file in a third target storage location in the cloud storage based on the third storage path extracted from the publishing instruction for the presentation file.

[0086] After storage is completed, the execution entity may publish shared information for obtaining the presentation file from the third target storage location based on the information publishing path. For example, the shared information may be presented in a pre-configured hand-drawn track sharing area on the website.

[0087] Accordingly, other users can obtain the shared information through the hand-drawn trajectory sharing area, and when they want to use the "presentation file", they can obtain the third target storage location through the record of the shared information and obtain the presentation file from the third target storage location.

[0088] In some optional implementations of this embodiment, when storing the first presentation file, the execution entity may further choose to add an indication tag in association with the presentation file for indicating the first target storage location for storing the trajectory parameter file.

[0089] Accordingly, an association can be established between a presentation file and the corresponding trajectory parameter information (or, in other words, the trajectory parameter file that stores and records the trajectory parameter information) using an indicator tag. This "association" allows users to conveniently and efficiently generate and produce new hand-drawn trajectories by calling and reusing the "underlying" "trajectory parameter information" of the presentation file, when they wish to "originally modify" the "presentation file" or use the "shape" and other contents in the "presentation file" as the original template to generate and render new hand-drawn trajectories, thereby improving the user experience.

[0090] In some embodiments, in the process of publishing a presentation file, relative to the embodiment of only providing a presentation file, the executing entity may also choose to provide the underlying "trajectory parameter information" corresponding to the presentation file as discussed above, so as to facilitate other users to more efficiently generate hand-drawn trajectories by, for example, reusing the trajectory parameter information (for example, by reusing the "trajectory parameter information", other users can complete the rendering of hand-drawn trajectories that meet the requirements by only adjusting personalized rendering parameters).

[0091] That is, in the step of storing the presentation file in the third target storage location in the cloud storage based on the third storage path extracted from the publishing instruction of the presentation file, the execution entity may choose to provide corresponding trajectory parameter information together with the presentation file for use by other users.

[0092] For easier understanding, please refer to Figure 3 . Figure 3 A flowchart of a process for publishing a presentation file provided by an embodiment of the present disclosure includes process 300 .

[0093] The process 300 specifically includes the following steps:

[0094] Step 301: Based on the third storage path extracted from the release instruction of the presentation file, the presentation file and the trajectory parameter information are stored in a third target storage location in the cloud storage;

[0095] Specifically, as discussed above (if a publishing instruction for a display file is received), the executing entity may, during the process of executing "publishing", choose to extract the third storage path from the publishing instruction for the display file, and then store both the display file and the corresponding trajectory parameter information in a third target storage location in the cloud storage (for example, when the server 105 is exemplified as a "cloud server", the cloud storage may be a storage provided by the server 105) so that both can be provided at the same time.

[0096] Step 302: Publish shared information for obtaining presentation files and trajectory parameter information from a third target storage location based on the information publishing path.

[0097] Specifically, after the storage is completed, the execution entity may publish shared information for obtaining the presentation file and trajectory parameter information from the third target storage location based on the information publishing path.

[0098] Thus, through the shared information, other users can request to display files and / or trajectory parameter information according to their own needs.

[0099] In some optional implementations of this embodiment, if a display file acquisition request and / or trajectory parameter information acquisition request is subsequently received from the target device using shared information, the execution entity may also respond to this and correspondingly extract the display file and / or trajectory parameter information from the third target storage location.

[0100] For easier understanding, you can combine Figure 3 This process is described together with the process 300 shown in FIG. That is, in process 300, steps 303 and 304 may also be included, so that the subject can provide the presentation file and / or trajectory parameter information accordingly according to the request of the target device (used by) other users (for example, a presentation file acquisition request for the presentation file and / or a trajectory parameter information acquisition request for the trajectory parameter information).

[0101] Step 303: in response to receiving the presentation file acquisition request and / or trajectory parameter information acquisition request sent by the target device using the shared information, correspondingly extracting the presentation file and / or trajectory parameter information from the third target storage location;

[0102] Step 304: Provide the presentation file and / or trajectory parameter information to the target device.

[0103] To deepen understanding, the present disclosure also provides a schematic diagram of an exemplary architecture for implementing a process of presenting hand-drawn trajectories in a specific application scenario in conjunction with the application scenario.

[0104] For this, please refer to Figure 4 For ease of understanding, the architecture 400 may be discussed and described with reference to the architecture 100 .

[0105] For example, in the architecture 400 , a user (eg, user 405 ) can “draw” or “hand-draw” a trajectory using the terminal device 101 . For example, the user 405 can “draw” on the terminal device 101 through continuous drawing actions 410 .

[0106] Accordingly, the terminal device 101 may generate trajectory parameter information 415 based on the collected drawing action 410 .

[0107] Next, the terminal device 101 can render a hand-drawn trajectory 430 based on the trajectory parameter information 415 and the personalized rendering parameters 420 by executing S402 (for example, the hand-drawn trajectory 430 can have a shape 430-1 corresponding to the drawing action 410, and a dynamic visual effect 430-2 such as a visual effect of "glowing").

[0108] After obtaining the hand-drawn trajectory 430 , the terminal device 101 may choose to present it to the user 405 by executing S403 .

[0109] Correspondingly, after rendering the hand-drawn trajectory 430 , the terminal device 101 may further generate a display file 435 of the hand-drawn trajectory 430 by executing S404 .

[0110] As discussed above, the terminal device 101 may also choose to enhance the use value of the presentation file 435 by “publishing” the presentation file 435 .

[0111] In the architecture 400 , in order to facilitate understanding of the content discussed in the present disclosure, an example is given of “publishing” the presentation file 435 and the trajectory parameter information 415 at the same time.

[0112] Accordingly, the terminal device 101 may continue to store the presentation file 435 and the trajectory parameter information 415 in the server 105 , which is exemplified as a cloud server, by executing S405 .

[0113] For example, the presentation file 435 and the trajectory parameter information 415 may be specifically stored in a “third target storage location” in the “cloud storage” (not shown) provided by the server 105 .

[0114] After storage is completed, the server 105 may execute S406 to publish the shared information for obtaining the presentation file 435 and the trajectory parameter information 415 based on the information publishing path to achieve “publishing”.

[0115] Subsequently, the terminal device 103 different from the terminal device 101 may execute S407 to send a presentation file acquisition request and / or a trajectory parameter information acquisition request to request the presentation file and / or trajectory parameter information.

[0116] For the purpose of easier understanding, S407 is exemplified by a case where the terminal device 103 simultaneously sends a presentation file acquisition request and a trajectory parameter information acquisition request.

[0117] In this case, the server 105 may respond to this by selecting to execute S408 to provide the presentation file 435 and the trajectory parameter information 415 to the terminal device 103 .

[0118] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for presenting hand-drawn trajectories. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0119] like Figure 5 As shown, the apparatus 500 for presenting a hand-drawn trajectory in this embodiment may include: a trajectory parameter information generating unit 501, a hand-drawn trajectory rendering unit 502, and a hand-drawn trajectory presenting unit 503. The trajectory parameter information generating unit 501 is configured to generate trajectory parameter information based on the collected trajectory drawing action; the hand-drawn trajectory rendering unit 502 is configured to render the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and the hand-drawn trajectory presenting unit 503 is configured to present the hand-drawn trajectory.

[0120] In this embodiment, in the apparatus 500 for presenting a hand-drawn trajectory, the specific processing of the trajectory parameter information generating unit 501, the hand-drawn trajectory rendering unit 502, and the hand-drawn trajectory presenting unit 503 and the technical effects thereof can be referred to in the respective Figure 2 The relevant descriptions of steps 201-203 in the corresponding embodiment are not repeated here.

[0121] In some optional implementations of this embodiment, the device 500 also includes: a trajectory parameter file encapsulation unit, configured to encapsulate the trajectory parameter information based on the target format to obtain a trajectory parameter file; a trajectory parameter file storage unit, configured to store the trajectory parameter file to a first target storage location based on a first storage path; and the hand-drawn trajectory rendering unit 502 is further configured to, in response to receiving a trajectory rendering request corresponding to the trajectory parameter information, render a hand-drawn trajectory based on the trajectory parameter information read from the first target storage location and the personalized rendering parameters for the hand-drawn trajectory.

[0122] In some optional implementations of this embodiment, the device 500 also includes: a parameter editor presentation unit, configured to present a rendering parameter editor in response to receiving a configuration request for personalized rendering parameters, wherein the rendering parameter editor includes at least one of the following: a first control for adding static rendering materials, a second control for adding dynamic rendering materials, and a third control for adding dynamic visual effects; a personalized rendering parameter determination unit, configured to determine personalized rendering parameters based on the configuration results of the rendering parameter editor.

[0123] In some optional implementations of this embodiment, the hand-drawn trajectory rendering unit 502 is further configured to, in response to determining based on the trajectory parameter information that the length of the first sub-hand-drawn trajectory that has not yet been rendered is greater than or equal to a length threshold, render the first sub-hand-drawn trajectory based on the part of the trajectory parameter information corresponding to the first sub-hand-drawn trajectory and the personalized rendering parameters for the hand-drawn trajectory; in response to the existence of a second sub-hand-drawn trajectory that has been rendered previously, combine the first sub-hand-drawn trajectory and the second sub-hand-drawn trajectory to obtain a hand-drawn trajectory.

[0124] In some optional implementations of this embodiment, the device 500 also includes: a display file generation unit, configured to generate a display file for storing hand-drawn trajectories, wherein the form of the display file includes at least one of the following: a video for presenting the hand-drawn trajectories, a static picture determined by the video frames of the video; and a display file storage unit, configured to store the display file to a second target storage location based on a second storage path.

[0125] In some optional implementations of this embodiment, the device 500 also includes: an indication label adding unit, configured to add an indication label for indicating a first target storage location in association with the display file, wherein the first target storage location is used to store a trajectory parameter file obtained by encapsulating trajectory parameter information based on the target format.

[0126] In some optional implementations of this embodiment, the device 500 also includes: a display file publishing unit, configured to, in response to receiving a publishing instruction for the display file, store the display file in a third target storage location in the cloud storage based on a third storage path extracted from the publishing instruction for the display file; and publish shared information for obtaining the display file from the third target storage location based on the information publishing path.

[0127] In some optional implementations of this embodiment, storing the presentation file in a third target storage location in the cloud storage based on the third storage path extracted from the publishing instruction of the presentation file includes: storing the presentation file and trajectory parameter information in the third target storage location in the cloud storage based on the third storage path extracted from the publishing instruction of the presentation file; and publishing shared information for obtaining the presentation file from the third target storage location based on the information publishing path, including: publishing shared information for obtaining the presentation file and trajectory parameter information from the third target storage location based on the information publishing path.

[0128] In some optional implementations of this embodiment, the device 500 also includes: a display file and trajectory parameter information providing unit, configured to, in response to receiving a display file acquisition request and / or a trajectory parameter information acquisition request sent by the target device using shared information, correspondingly extract the display file and / or trajectory parameter information from the third target storage location; and provide the display file and / or trajectory parameter information to the target device.

[0129] In some optional implementations of this embodiment, the hand-drawn trajectory presentation unit 503 includes: an interactive interface reading unit, configured to read the interactive interface used in the process of generating the trajectory drawing action; and a hand-drawn trajectory presentation sub-unit, configured to update the hand-drawn trajectory to the interactive interface, so as to present the hand-drawn trajectory using the updated interactive interface.

[0130] This embodiment serves as a device embodiment corresponding to the above-described method embodiment. The device for presenting a hand-drawn trajectory provided by this embodiment generates trajectory parameter information based on the captured trajectory drawing action; renders the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and presents the hand-drawn trajectory. This provides users with hand-drawn trajectory recording services and personalized rendering services. These services not only optimize the presentation and viewing effects of the hand-drawn trajectory, but also meet the personalized needs of users, comprehensively improving the user experience.

[0131] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0132] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0133] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the device 600 can also be stored in the RAM 603. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0134] Various components in device 600 are connected to I / O interface 605, including an input unit 606, such as a keyboard, mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, optical disk, etc.; and a communication unit 609, such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0135] The computing unit 601 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the method for presenting a hand-drawn trajectory. For example, in some embodiments, the method for presenting a hand-drawn trajectory can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method for presenting a hand-drawn trajectory described above can be performed. Alternatively, in other embodiments, the computing unit 601 can be configured to perform the method for presenting a hand-drawn trajectory by any other suitable means (e.g., by means of firmware).

[0136] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0137] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0138] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0139] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0140] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0141] A computer system may include a client and a server. The client and server are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services. Servers may also be classified as distributed system servers or servers integrated with blockchain.

[0142] According to the technical solutions of the embodiments of the present disclosure, trajectory parameter information is generated based on the collected trajectory drawing action; the hand-drawn trajectory is rendered based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; and the hand-drawn trajectory is presented. This provides users with hand-drawn trajectory recording services and personalized rendering services. These services not only optimize the presentation and viewing effects of hand-drawn trajectories, but also meet users' personalized needs, comprehensively improving the user experience.

[0143] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions provided by this disclosure can be achieved. This is not limited herein.

[0144] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A method for presenting a hand-drawn trajectory, comprising: Generate trajectory parameter information based on the collected trajectory drawing action; Rendering the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; The hand-drawn trajectory is presented.

2. The method according to claim 1, further comprising: Encapsulate the trajectory parameter information based on the target format to obtain a trajectory parameter file; storing the trajectory parameter file to a first target storage location based on a first storage path; as well as The rendering of the hand-drawn trajectory based on the trajectory parameter information and the personalized rendering parameters for the hand-drawn trajectory includes: In response to receiving a trajectory rendering request corresponding to the trajectory parameter information, the hand-drawn trajectory is rendered based on the trajectory parameter information read from the first target storage location and the personalized rendering parameters for the hand-drawn trajectory.

3. The method according to claim 1, further comprising: In response to receiving the configuration request for the personalized rendering parameters, presenting a rendering parameter editor, wherein the rendering parameter editor includes at least one of the following: a first control for adding static rendering materials, a second control for adding dynamic rendering materials, and a third control for adding dynamic visual effects; The personalized rendering parameters are determined based on the configuration result of the rendering parameter editor.

4. The method according to claim 1, wherein The rendering of the hand-drawn trajectory based on the trajectory parameter information and the personalized rendering parameters for the hand-drawn trajectory includes: In response to determining, based on the trajectory parameter information, that a length of a first sub-hand-drawn trajectory that has not yet been rendered is greater than or equal to a length threshold, rendering the first sub-hand-drawn trajectory based on a portion of the trajectory parameter information corresponding to the first sub-hand-drawn trajectory and personalized rendering parameters for the hand-drawn trajectory; In response to the existence of a second sub-hand-drawn trajectory that has been rendered previously, the first sub-hand-drawn trajectory and the second sub-hand-drawn trajectory are combined to obtain the hand-drawn trajectory.

5. The method according to claim 1, further comprising: generating a presentation file for storing the hand-drawn trajectory, wherein the presentation file comprises at least one of the following: a video for presenting the hand-drawn trajectory, and a static image determined from a video frame of the video; The presentation file is stored in a second target storage location based on the second storage path.

6. The method according to claim 5, further comprising: An indication tag for indicating a first target storage location is added in association with the presentation file, wherein the first target storage location is used to store a trajectory parameter file obtained by encapsulating the trajectory parameter information based on a target format.

7. The method according to claim 5, further comprising: In response to receiving a publishing instruction for the presentation file, storing the presentation file in a third target storage location in the cloud storage based on a third storage path extracted from the publishing instruction for the presentation file; The shared information for obtaining the presentation file from the third target storage location is published based on the information publishing path.

8. The method according to claim 7, wherein: Storing the presentation file in a third target storage location in the cloud storage based on the third storage path extracted from the publishing instruction of the presentation file includes: storing the presentation file and the trajectory parameter information in a third target storage location in cloud storage based on a third storage path extracted from the publishing instruction of the presentation file; and The publishing of shared information for obtaining the presentation file from the third target storage location based on the information publishing path includes: The shared information for obtaining the presentation file and the trajectory parameter information from the third target storage location is published based on the information publishing path.

9. The method according to claim 8, further comprising: In response to receiving a presentation file acquisition request and / or a trajectory parameter information acquisition request sent by the target device using the shared information, correspondingly extracting the presentation file and / or the trajectory parameter information from the third target storage location; The presentation file and / or the trajectory parameter information is provided to the target device.

10. The method according to any one of claims 1 to 9, wherein The presenting of the hand-drawn trajectory includes: Reading the interactive interface used in the process of generating the trajectory drawing action; The hand-drawn track is updated into the interactive interface, so as to present the hand-drawn track using the updated interactive interface.

11. A device for presenting a hand-drawn trajectory, comprising: a trajectory parameter information generating unit, configured to generate trajectory parameter information based on the collected trajectory drawing action; a hand-drawn trajectory rendering unit, configured to render the hand-drawn trajectory based on the trajectory parameter information and personalized rendering parameters for the hand-drawn trajectory; The hand-drawn trajectory presenting unit is configured to present the hand-drawn trajectory.

12. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for presenting a hand-drawn trajectory according to any one of claims 1 to 10. 13 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method for presenting a hand-drawn trajectory according to claim 1 .

14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for presenting a hand-drawn trajectory according to any one of claims 1 to 10.