Material processing method and device, electronic equipment and storage medium

文档序号:73228 发布日期:2021-10-01 浏览:11次 中文

阅读说明:本技术 素材处理方法、装置、电子设备及存储介质 (Material processing method and device, electronic equipment and storage medium ) 是由 刘鸣明 赵偲 洪嘉慧 卢嘉欣 于 2021-05-31 设计创作,主要内容包括:本公开关于一种素材处理方法、装置、电子设备及存储介质。该方法包括:显示素材编辑页面,素材编辑页面包括至少一个轨道展示区域,每个轨道展示区域中展示有至少一个素材轨道;检测到对目标素材轨道沿目标方向的拖动操作时,控制目标素材轨道沿拖动操作轨迹进行移动,目标方向与预设方向具有预设夹角,预设方向为素材轨道在对应轨道展示区域内的滑动方向,目标素材轨道为所述至少一个素材轨道中的一个。根据本公开提供的技术方案,检测到对目标素材轨道沿目标方向的拖动操作时,可以实时跟随拖动操作轨迹,实现对拖动操作的及时准确反馈,并且轨道展示区域的设置可以利于素材轨道在拖拽时的定位,使得素材处理更加精准。(The disclosure relates to a material processing method, a material processing device, an electronic device and a storage medium. The method comprises the following steps: displaying a material editing page, wherein the material editing page comprises at least one track display area, and at least one material track is displayed in each track display area; when the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, a preset included angle is formed between the target direction and the preset direction, the preset direction is the sliding direction of the material track in the corresponding track display area, and the target material track is one of the at least one material track. According to the technical scheme provided by the disclosure, when the dragging operation of the target material track along the target direction is detected, the dragging operation track can be followed in real time, the timely and accurate feedback of the dragging operation is realized, and the setting of the track display area can be beneficial to the positioning of the material track when the material track is dragged, so that the material processing is more accurate.)

1. A method for processing material, comprising:

displaying a material editing page, wherein the material editing page comprises at least one track display area, and at least one material track is displayed in each track display area;

when the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, a preset included angle is formed between the target direction and the preset direction, the preset direction is the sliding direction of the material track in the corresponding track display area, and the target material track is one of the at least one material track.

2. The material processing method according to claim 1, wherein the step of controlling the target material track to move along a drag operation trajectory when a drag operation of the target material track in a target direction is detected comprises:

monitoring a target position of a target material track when the dragging operation of the target material track along a target direction is detected;

and when the distance between the target position and the preset position is greater than a distance threshold value, controlling the target material track to move along a dragging operation track.

3. A method as claimed in claim 2, wherein the method further comprises:

when the distance between the target position and the preset position is smaller than or equal to the distance threshold, displaying new track prompt information;

and hiding the prompt information of the newly built track when the distance between the target position of the target material track and the preset position is detected to be larger than the distance threshold.

4. A method as claimed in claim 3, wherein the method further comprises:

and when the target material track is detected to move along a target track display area from the preset position, displaying the target material track in the target track display area.

5. A material processing method as claimed in claim 4, wherein the preset position is at least one of: a central axis between two adjacent track display areas; an outer edge of the at least one track display area, the outer edge being parallel to the preset direction.

6. The method as claimed in claim 5, wherein the step of displaying new track prompt information when the distance between the target position and the preset position is less than or equal to the distance threshold comprises:

when the preset position is the central axis between the two adjacent track display areas, and the distance between the central line of the target material track and the central axis is detected to be smaller than or equal to the distance threshold, and at least one material track is respectively displayed in the two adjacent track display areas, displaying the newly-built track prompt information; or

And when the preset position is the outer edge of the at least one track display area, when the distance between the edge of the target material track and the outer edge of the at least one track display area is detected to be smaller than or equal to the distance threshold value, and at least one material track is displayed in the track display area matched with the outer edge, displaying the newly-built track prompt information.

7. A material processing apparatus, comprising:

the material editing page display module is configured to execute and display a material editing page, the material editing page comprises at least one track display area, and at least one material track is displayed in each track display area;

the dragging control module is configured to control the target material track to move along a dragging operation track when dragging operation of the target material track along a target direction is detected, the target direction and a preset direction have a preset included angle, the preset direction is a sliding direction of the material track in a corresponding track display area, and the target material track is one of the at least one material track.

8. An electronic device, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the material processing method of any one of claims 1 to 6.

9. A computer-readable storage medium whose instructions, when executed by a processor of an electronic device, enable the electronic device to perform the material processing method of any one of claims 1 through 6.

10. A computer program product comprising computer instructions, characterized in that the computer instructions, when executed by a processor, implement the material processing method of any one of claims 1 to 6.

Technical Field

The present disclosure relates to multimedia processing technologies, and in particular, to a method and an apparatus for processing a material, an electronic device, and a storage medium.

Background

In the field of multimedia clips, material handling is a relatively popular operation. In the operation on the material, since the material is displayed in the form of a track, a user needs to drag the track of the material to perform material processing. Wherein, dragging can comprise left-right dragging or up-down dragging. In the related art, when dragging left and right (the time axis in the existing multimedia clip page is parallel to the left and right directions), the material track can follow the dragging track, and when dragging up and down, the material track does not follow the dragging track, and generally moves up and down in a lattice-jumping manner, so that the material processing is not accurate enough, and the operation experience is not good.

Disclosure of Invention

The disclosure provides a material processing method and device, electronic equipment and a storage medium, and aims to at least solve the problems of timely and accurate feedback of dragging operation on a material track and improvement of material processing accuracy in the related art. The technical scheme of the disclosure is as follows:

according to a first aspect of the embodiments of the present disclosure, there is provided a material processing method, including:

displaying a material editing page, wherein the material editing page comprises at least one track display area, and at least one material track is displayed in each track display area;

when the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, a preset included angle is formed between the target direction and the preset direction, the preset direction is the sliding direction of the material track in the corresponding track display area, and the target material track is one of the at least one material track.

In a possible implementation manner, when the drag operation of the target material track along the target direction is detected, the step of controlling the target material track to move along the drag operation track includes:

monitoring a target position of a target material track when the dragging operation of the target material track along a target direction is detected;

and when the distance between the target position and the preset position is greater than a distance threshold value, controlling the target material track to move along a dragging operation track.

In one possible implementation, the method further includes:

when the distance between the target position and the preset position is smaller than or equal to the distance threshold, displaying new track prompt information;

and hiding the prompt information of the newly built track when the distance between the target position of the target material track and the preset position is detected to be larger than the distance threshold.

In one possible implementation, the method further includes:

and when the target material track is detected to move along a target track display area from the preset position, displaying the target material track in the target track display area.

In one possible implementation, the preset position is at least one of the following: a central axis between two adjacent track display areas; an outer edge of the at least one track display area, the outer edge being parallel to the preset direction.

In a possible implementation manner, the step of displaying a new track prompt message when the distance between the target position and the preset position is less than or equal to the distance threshold includes:

when the preset position is the central axis between the two adjacent track display areas, and the distance between the central line of the target material track and the central axis is detected to be smaller than or equal to the distance threshold, and at least one material track is respectively displayed in the two adjacent track display areas, displaying the newly-built track prompt information; or

And when the preset position is the outer edge of the at least one track display area, when the distance between the edge of the target material track and the outer edge of the at least one track display area is detected to be smaller than or equal to the distance threshold value, and at least one material track is displayed in the track display area matched with the outer edge, displaying the newly-built track prompt information.

In a possible implementation manner, the newly-built track prompt information is a line segment that is displayed in a preset format and matches with the preset position.

In a possible implementation manner, in a case that the preset position is a central axis between the two adjacent track display areas, the method further includes:

and when the fact that the newly-built track prompt information lasts for a preset duration and the dragging operation meets a preset condition is detected, a new track display area is established between the two adjacent track display areas, and the target material track is displayed in the new track display area.

In a possible implementation manner, in a case that the preset position is an outer edge of the at least one track display area, the method further includes:

and when the fact that the newly-built track prompt information lasts for a preset time length and the dragging operation meets a preset condition is detected, a new track display area is established in an area deviating from the outer edge, and the target material track is displayed in the new track display area.

In one possible implementation, after the step of presenting the target material track in the target track presentation area, the method further includes:

monitoring an initial track display area of the target material track;

and when the material track is not included in the initial track display area, deleting the initial track display area.

According to a second aspect of the embodiments of the present disclosure, there is provided a material processing apparatus including:

the material editing page display module is configured to execute and display a material editing page, the material editing page comprises at least one track display area, and at least one material track is displayed in each track display area;

the dragging control module is configured to control the target material track to move along a dragging operation track when dragging operation of the target material track along a target direction is detected, the target direction and a preset direction have a preset included angle, the preset direction is a sliding direction of the material track in a corresponding track display area, and the target material track is one of the at least one material track.

In one possible implementation, the drag control module includes:

the monitoring unit is configured to monitor a target position of a target material track when the dragging operation of the target material track along a target direction is detected;

and the dragging control unit is configured to control the target material track to move along a dragging operation track when the distance between the target position and a preset position is greater than a distance threshold value.

In one possible implementation, the apparatus further includes:

the newly-built track prompt information display module is configured to display newly-built track prompt information when the distance between the target position and the preset position is smaller than or equal to the distance threshold;

and the newly-built track prompt information hiding module is configured to hide the newly-built track prompt information when detecting that the distance between the target position of the target material track and the preset position is greater than the distance threshold.

In one possible implementation, the apparatus further includes:

and the track display area switching module is configured to display the target material track in the target track display area when detecting that the target material track moves from the preset position along the target track display area.

In one possible implementation, the preset position is at least one of the following: a central axis between two adjacent track display areas; an outer edge of the at least one track display area, the outer edge being parallel to the preset direction.

In a possible implementation manner, the new track prompt information display module includes:

a first newly-built track prompt information display unit, configured to display new track prompt information when the preset position is a central axis between the two adjacent track display areas and when it is detected that a distance between a central line of the target material track and the central axis is smaller than or equal to the distance threshold and at least one material track is respectively displayed in the two adjacent track display areas; or

And the second new track prompt information display unit is configured to display the new track prompt information when the preset position is the outer edge of the at least one track display area and the distance between the edge of the target material track and the outer edge of the at least one track display area is detected to be smaller than or equal to the distance threshold and at least one material track is displayed in the track display area matched with the outer edge.

In a possible implementation manner, the newly-built track prompt information is a line segment that is displayed in a preset format and matches with the preset position.

In a possible implementation manner, in a case that the preset position is a central axis between the two adjacent track display areas, the apparatus further includes:

and the first track display area establishing module is configured to execute the step of establishing a new track display area between the two adjacent track display areas when the step of detecting that the newly-built track prompt information lasts for a preset duration and the dragging operation meets a preset condition, and displaying the target material track in the new track display area.

In a possible implementation manner, in a case where the preset position is an outer edge of the at least one track display area, the apparatus further includes:

and the second track display area establishing module is configured to execute the step of establishing a new track display area in an area departing from the outer edge when the step of detecting that the newly-built track prompt information lasts for a preset duration and the dragging operation meets a preset condition, and displaying the target material track in the new track display area.

In one possible implementation, the apparatus further includes:

an initial track display area monitoring module configured to perform monitoring of an initial track display area of the target material track;

a track display area processing module configured to delete the initial track display area when the initial track display area does not include a material track.

According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any of the first aspects above.

According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspect of the embodiments of the present disclosure.

According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when executed by a processor, cause a computer to perform the method of any one of the first aspects of the embodiments of the present disclosure.

The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:

when the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, namely the dragging operation track can be followed in real time when the target material track is dragged in the cross-track display area, so that the timely and accurate feedback of the dragging operation is realized; in addition, by displaying the track display area, the track display areas of different material tracks can be clearly distinguished, and the user experience is improved; and based on the setting of the track display area, a reference can be provided for the positioning of the material track when the material track is dragged, and the track display area can be accurately matched with the material track, so that the detection sensitivity of dragging operation along the target direction can be improved, the timely and accurate feedback of the dragging operation is further ensured, and the material processing can be more accurate.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.

FIG. 1 is a schematic diagram illustrating an application environment in accordance with an exemplary embodiment.

Fig. 2 is a flow diagram illustrating a method of material processing according to an exemplary embodiment.

Fig. 3 a-3 b are schematic diagrams illustrating a target material track moving along a drag operation trajectory according to an exemplary embodiment.

FIG. 4 is a diagram illustrating one target direction, sliding direction, and preset direction according to an exemplary embodiment.

FIG. 5 is a schematic diagram illustrating one preset position according to an exemplary embodiment.

FIG. 6 is a flow diagram illustrating a method of material processing according to an exemplary embodiment.

FIG. 7 is a flow diagram illustrating a method of material processing according to an exemplary embodiment.

Fig. 8 is a schematic diagram illustrating a target material track half-following a drag operation trajectory according to an exemplary embodiment.

Fig. 9 a-9 g are schematic diagrams illustrating a new track hint information according to an exemplary embodiment.

10 a-10 c are schematic diagrams illustrating a new track display area according to an exemplary embodiment.

FIGS. 11a and 11b are schematic diagrams illustrating a new track display area according to an exemplary embodiment.

Fig. 12 is a block diagram illustrating a material processing apparatus according to an exemplary embodiment.

Fig. 13 is a block diagram illustrating an electronic device for material processing in accordance with an exemplary embodiment.

Fig. 14 is a block diagram illustrating an electronic device for material processing in accordance with an exemplary embodiment.

Detailed Description

In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment according to an exemplary embodiment, which may include a server 01 and a terminal 02, as shown in fig. 1.

In an alternative embodiment, terminal 02 may be used for material processing. Specifically, the terminal 02 may include, but is not limited to, a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and other types of electronic devices. Optionally, the operating system running on the electronic device may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.

In an alternative embodiment, the server 01 may be used for publishing, sharing, and the like of the multimedia after the material editing is completed. Specifically, the server 01 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like.

In addition, it should be noted that fig. 1 illustrates only one application environment of the image processing method provided by the present disclosure.

In the embodiment of the present specification, the server 01 and the terminal 02 may be directly or indirectly connected by a wired or wireless communication method, and the present application is not limited herein.

It should be noted that the following figures show a possible sequence of steps, and in fact do not limit the order that must be followed. Some steps may be performed in parallel without being dependent on each other. User information (including but not limited to user device information, user personal information, user behavior information, etc.) and data (including but not limited to data for presentation, training, etc.) to which the present disclosure relates are both information and data that are authorized by the user or sufficiently authorized by various parties.

Fig. 2 is a flow diagram illustrating a method of material processing according to an exemplary embodiment. As shown in fig. 2, the following steps may be included.

In step S201, a material editing page is displayed, where the material editing page may include at least one track display area, and each track display area displays at least one material track;

in step S203, when a dragging operation of the target material track along a target direction is detected, the target material track is controlled to move along a dragging operation track, where the target direction may have a preset included angle with a preset direction, the preset direction may be a sliding direction of the material track in a corresponding track display area, and the target material track may be one of at least one material track.

In practical applications, the material editing page may refer to a multimedia clip page, for example, a video clip page, as shown in fig. 3a and 3b, which is not limited by the present disclosure. The user may process the material in the material editing page, and the material may be used for editing multimedia, and for example, the material may include a sticker, a special effect, audio, a subtitle, a picture-in-picture, a filter, an adjustment (including an adjustment of parameters such as brightness and contrast), and the like, which is not limited by the present disclosure. Material may be added via the respective material addition controls 302 as in fig. 3 a. The material may be edited in tracks, which may be 304 in fig. 3a, which may slide within the corresponding track presentation area 303. The material editing page may further include a function triggering area such as a clip and a background, and a timeline 301, and the material editing page is not limited by the present disclosure.

In this embodiment, the user may enter a clip application or clip a web page, etc., to trigger the display of the material editing page, which may include at least one track display area, such as 303 shown in fig. 3a, including two track display areas. Each track display area may display at least one material track, such as 304 in fig. 3a, with the upper track display area displaying two material tracks and the lower track display area displaying one material track.

To illustrate the target direction, the sliding direction and the preset direction, the track display area and the material track in fig. 3a are illustrated in the manner of fig. 4, and as shown in fig. 4, the sliding direction may be parallel to the time axis 301, for example, sliding left or right, for example, sliding the material track left or right within the corresponding track display area. Accordingly, the preset direction may be parallel to the time axis 301, and the target direction may have a preset included angle with the preset direction, which may be an included angle greater than 0 °, such as 90 ° in fig. 4, which is not limited by the present disclosure. Wherein the sliding direction in different track display areas may be the same. It should be noted that fig. 4 is only an example of the sliding direction, the preset direction and the target direction, and does not limit the present disclosure. For example, the sliding direction may be a vertical direction, i.e., may be an upward or downward direction.

The process of moving the target material track along the drag operation trajectory is described with reference to fig. 3a and 3 b. The user may not include the track presentation area and the material track when initially entering the material editing page. The user can add material at the material editing page, for example, can add a sticker material track by clicking on the sticker material in the material addition control 302. The material track is formed by adding material, and a track display area for displaying the material track can be displayed, that is, the track display area is displayed based on the material track. Each material track may include material information and time information, the material information may be material content (such as subtitle text, sticker image, special effect name, filter name, and the like), and the time information may represent a time period in which the material information corresponding thereto appears in the video. The user may also adjust the time information of the material track, such as start time, end time, etc.

In practical application, a user can drag the material track in the left-right direction according to the sliding direction in the track display area, and can also drag the material track in the target direction, for example, drag the material track in the up-down direction. As shown in fig. 3a to 3b, the target material track is dragged downward, that is, when the drag operation of the target material track in the target direction (downward) is detected, the target material track may be controlled to move along the drag operation track, that is, the target material track may move downward along the drag operation track in real time. For example, the user performs the dragging operation by long pressing the target material track, and the target material track can achieve the effect of real-time hand following, that is, the dragging operation in the non-track display area can also be performed in real time with the dragging operation track.

The control target material track can be obtained by an accurate matching algorithm of the material track configured in the background and the track display area, such as an accurate positioning algorithm and the like, and the method is not limited by the disclosure as long as the target material track can follow the dragging operation track in real time. In one example, a dragging component and a component corresponding to the track display area can be set, and accurate matching is achieved so that accurate positioning is achieved. By executing the accurate matching through a plurality of components, not only can the matching precision be improved, but also the reusability of the components can be improved. The present disclosure is not limited to these.

When the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, namely the dragging operation track can be followed in real time when the target material track is dragged in the cross-track display area, so that the timely and accurate feedback of the dragging operation is realized; in addition, by displaying the track display area, the track display areas of different material tracks can be clearly distinguished, and the user experience is improved; and based on the setting of the track display area, a reference can be provided for the positioning of the material track when the material track is dragged, and the track display area can be accurately matched with the material track, so that the detection sensitivity of dragging operation along the target direction can be improved, the timely and accurate feedback of the dragging operation is further ensured, and the material processing can be more accurate.

FIG. 5 is a schematic diagram illustrating one preset position according to an exemplary embodiment. In one possible implementation, as shown in fig. 5, the preset position may be at least one of the following: a central axis between two adjacent track display areas; the outer edge of the at least one track display area, which may be parallel to the predetermined direction, may refer to the full track display area in the material editing page, for example, the 2 track display areas in fig. 3a, and the outer edges of the 2 track display areas may be the upper edge 501 of the uppermost track display area and the lower edge 502 of the lowermost track display area as shown in fig. 5. The central axis between two adjacent track display areas may be as indicated by 503 in fig. 5, that is, two adjacent track display areas may be symmetrical based on the central axis. Wherein the preset position is a position where a new track display area can be inserted.

504 in fig. 5 may refer to a center line of the material track 505 in the lower track presentation area, which may be a symmetry axis of the material track, which may be parallel to the sliding direction. It should be noted that the track display area may be a rectangle, and the material track may be displayed as a square or a rectangle based on the length of the corresponding time information, which is not limited in this disclosure and may be preset. In addition, the dotted lines in the following figures are only for illustrating the preset position or the middle line of the present disclosure, and may not be displayed in practical applications.

Through setting up preset position and track show regional relevant, can provide the benchmark for orbital location of material to improve track show regional and orbital matching precision of material, and then can promote the material track and follow the accurate of dragging the operation.

As shown in fig. 6, in a possible implementation manner, the step S203 may include the following steps:

in step S601, when a drag operation of the target material track in the target direction is detected, a target position of the target material track is monitored;

in step S603, when the distance between the target position and the preset position is greater than the distance threshold, the target material track is controlled to move along the dragging operation track.

In practical applications, when the dragging operation of the target material track along the target direction is detected, the target position of the target material track can be monitored. In one example, the distance threshold may be 0, i.e. the target position coincides with the preset position. As shown in fig. 8, the position of the center line of the target material track may be monitored as a target position, and when the distance between the target position and the preset position is greater than a distance threshold, the target material track is controlled to move along the dragging operation track. For example, when the distance threshold is 0, the target material track may be controlled to move along the drag operation trajectory before the target position coincides with the preset position. That is, the target material track can be followed in real time before being dragged to the preset position; optionally, when the target track display area reaches the preset position and continues to be dragged upwards, the drag operation track may be followed in real time, the drag operation track may also be followed by a preset step length, or the target track display area may be jumped to in a lattice-jumping manner, which is not limited in the present disclosure.

By setting the distance threshold value and controlling the target material track to move along the dragging operation track when the distance between the target position and the preset position is greater than the distance threshold value, the dragging operation track can be followed in real time before the preset position is reached, namely, the semi-following effect of the dragging operation track is realized.

As shown in fig. 7, in a possible implementation manner, the material processing method may further include the following steps:

in step S701, when the distance between the target position and the preset position is less than or equal to the distance threshold, a new track prompt message is displayed.

In an example, when the target material track in fig. 8 is dragged to the target position shown in fig. 9a and 9b, taking the distance threshold as 0 as an example, when the distance between the target position and the preset position is less than or equal to the distance threshold, that is, when the target position (central line) coincides with the preset position (central axis), the new track prompt message is displayed to remind the user that the preset position can be inserted into a new track display area. Wherein, the new track prompt message may be "the track display area can be newly created here" as shown in fig. 9 a; or the new track prompt information may be a line segment displayed in a preset format and matched with the preset position, as shown in fig. 9b, and the line segment displayed in a bold manner and overlapped with the preset position. Optionally, the preset format may further include highlighting, flashing, and the like, which is not limited by the present disclosure, and the length of the line segment is also not limited by the present disclosure, as long as the user can be effectively reminded. The prompt can be realized in a simple manner by setting the newly-built track prompt information as a line segment which is displayed in a preset format and is matched with a preset position.

Optionally, it may be further detected whether a track display area adjacent to the preset position is empty to control whether to display a new track prompt message, and correspondingly, the step S701 may include the following steps:

when the preset position is the central axis between two adjacent track display areas, when the distance between the central line of the target material track and the central axis is detected to be smaller than or equal to a distance threshold value and at least one material track is respectively displayed in the two adjacent track display areas, displaying the newly-built track prompt information; or

And when the preset position is the outer edge of at least one track display area, displaying new track prompt information when the distance between the edge of the target material track and the outer edge of at least one track display area is detected to be smaller than or equal to a distance threshold value and at least one material track is displayed in the track display area matched with the outer edge.

In an example, taking the distance threshold as 0 as an example, as shown in fig. 9b, when the preset position is a central axis between two adjacent track display areas, and it is detected that the central axis of the target material track coincides with the central axis, and at least one material track is respectively displayed in the two adjacent track display areas, new track prompt information, such as a thickened line segment shown in fig. 9b, may be displayed. It should be noted that the at least one material track respectively displayed in the two adjacent track display areas may mean that when the target material track is at the preset position (at this time, it may be considered that the target material track is not included in any of the track display areas), the at least one material track is respectively displayed in the two adjacent track display areas, that is, the at least one material track does not include the target material track respectively displayed in the two adjacent track display areas, or other material tracks except the target material track are displayed in each of the two adjacent track display areas.

As shown in fig. 9c and 9d, when the preset position is the outer edge of at least one track display area, and when the edge of the target material track is detected to coincide with the outer edge of at least one track display area and at least one material track is displayed in the track display area matching the outer edge, the new track prompt information 901 or 902 may be displayed. At least one material track which does not comprise the target material track is displayed in the track display area matched with the outer edge, namely, other material tracks except the target material track are displayed in the track display area matched with the outer edge.

Alternatively, in view of avoiding redundancy of the new track display area, in addition to the above, even if the distance between the target position of the target material track and the preset position is less than or equal to the distance threshold, the new track presentation information may not be displayed, that is, the new track display area may not be indicated, for example, as shown in fig. 9g, although the central line of the target material track coincides with the central axis, if the new track display area is provided, the initial track area of the target material track is empty, and thus, it is not necessary to display the new track presentation information.

Whether the track display area adjacent to the preset position is empty or not is further detected to control whether new track prompt information is displayed or not, so that unnecessary new construction of the track display area can be avoided, and consumption of processing resources is reduced.

In step S703, when it is detected that the distance between the target position of the target material track and the preset position is greater than the distance threshold, the new track prompt information is hidden.

In practical applications, in the state of fig. 9b, the user may continue to drag the target material track, taking the distance threshold as 0 as an example, when the target material track is continuously dragged from the preset position in the manner of fig. 9e or 9f, and when the distance between the target position of the target material track and the preset position is greater than the distance threshold, the new track prompt information may be hidden, as shown in fig. 9e and 9 f.

Whether the distance between the target position of the target material track and the preset position is larger than the distance threshold value or not is detected in real time so as to display and hide the prompt information of the newly-built track, the display flexibility of the material editing page can be improved, and the prompt can be timely given to a user.

Further, in a possible implementation manner, the method may further include: and when the target material track is detected to move along the target track display area from the preset position, displaying the target material track in the target track display area. As shown in fig. 9f, when it is detected that the target material track moves from the preset position along the target track display area, the target material track may be controlled to jump to the target track display area, that is, when the target material track is dragged to the preset position, for example, when the target position coincides with the central axis in fig. 9b, if the user does not change the dragging direction (target direction), and continues to drag the target material track to pass through the central axis, at this time, it may be detected that the target material track moves from the preset position along the target track display area, so that the target material track may be controlled to be adjusted to the target track display area in a jumping manner. That is, when the user wants to cross the central axis, the user may jump to the target track display area without following the dragging operation track in real time, that is, when the user wants to cross the track display area, the user may respond quickly.

In one possible implementation, after the step of presenting the target material track in the target track presentation area, the method may further include the steps of:

monitoring an initial track display area of a target material track;

when the material track is not included in the initial track display area, the initial track display area is deleted.

In this embodiment of the present description, as shown in fig. 9g, when the target material track is dragged to move from the initial track display area to the target track display area, if it is detected that the target material track jumps into the target track display area, that is, if it is detected that the target material track is displayed in the target track display area, the initial track display area of the target material track may be monitored, and when the initial track display area does not include the material track, the initial track display area is deleted, that is, an empty track display area may be deleted.

Whether an empty track display area exists or not is detected in the process of dragging the material track, and the empty track display area can be deleted, so that the material track area in the material editing page can be matched with the material track in real time.

10 a-10 c are schematic diagrams illustrating a new track display area according to an exemplary embodiment. In a possible implementation manner, in the case that the preset position is a central axis between two adjacent track display areas, the method may further include: when the fact that the prompt information of the new track lasts for the preset duration and the dragging operation meets the preset conditions is detected, a new track display area is established between two adjacent track display areas, and the target material track is displayed in the new track display area.

In this embodiment of the present description, in the case that the preset position is a central axis between two adjacent track display areas, the method may further include a process of establishing a new track display area, for example, as shown in fig. 10a to 10c, when it is detected that the new track prompt information continues for a preset duration and the dragging operation meets a preset condition, the new track display area is established between the two adjacent track display areas, and the target material track may jump into the new track display area in a jumping manner, so as to display the target material track in the new track display area. The preset condition may include stopping the dragging operation, double-clicking the target material track, and the like, which is not limited by the present disclosure.

A new track display area is established by inserting a new track display area between two adjacent track display areas, and the new track display area can be flexibly newly built by dragging the existing material tracks under the condition that new material tracks are not added.

FIGS. 11a and 11b are schematic diagrams illustrating a new track display area according to an exemplary embodiment. In a possible implementation manner, in the case that the preset position is an outer edge of the at least one track display area, the method may further include:

and when the fact that the prompt information of the new track lasts for the preset duration and the dragging operation meets the preset conditions is detected, a new track display area is established in an area departing from the outer edge, and the target material track is displayed in the new track display area.

In an embodiment of the present specification, in a case that the preset position is an outer edge of at least one track display area, the method may further include a process of establishing a new track display area, and when it is detected that the new track prompt information lasts for a preset duration and the dragging operation meets a preset condition, establishing the new track display area in an area away from the outer edge, and displaying the target material track in the new track display area. For example, as shown in fig. 11a, when the outer edge is the upper edge of the uppermost track display area, when it is detected that the new track prompt information lasts for a preset duration and the dragging operation meets the preset condition, a new track display area may be established in an area above the upper edge of the uppermost track display area, and the target material track may be controlled to jump into the new track display area, so as to display the target material track in the new track display area.

As shown in fig. 11b, when the outer edge is the lower edge of the lowermost track display area, based on the same operation as described above, a new track display area may be established in the area below the lower edge of the lowermost track display area, and the target material track may be controlled to jump into the new track display area, so as to display the target material track in the new track display area.

Wherein the region facing away from the outer edge may refer to a region facing away from the outer edge and pointing in a target direction.

A new track display area is established in the area departing from the outer edge, and the track display area can be flexibly created by dragging the existing material track under the condition that no new material track is added.

Fig. 12 is a block diagram illustrating a material processing apparatus according to an exemplary embodiment. Referring to fig. 12, the apparatus may include:

a material editing page display module 1201 configured to execute displaying a material editing page, where the material editing page includes at least one track display area, and each track display area displays at least one material track;

the dragging control module 1203 is configured to, when a dragging operation of the target material track along a target direction is detected, control the target material track to move along a dragging operation track, where the target direction and a preset direction have a preset included angle, the preset direction is a sliding direction of the material track in a corresponding track display area, and the target material track is one of the at least one material track.

When the dragging operation of the target material track along the target direction is detected, the target material track is controlled to move along the dragging operation track, namely, the dragging operation track can be followed in real time when the target material track is dragged in the cross-track display area, so that the timely and accurate feedback of the dragging operation is realized; in addition, by displaying the track display area, the track display areas of different material tracks can be clearly distinguished, and the user experience is improved; and based on the setting of the track display area, a reference can be provided for the positioning of the material track when the material track is dragged, and the track display area can be accurately matched with the material track, so that the detection sensitivity of dragging operation along the target direction can be improved, the timely and accurate feedback of the dragging operation is further ensured, and the material processing can be more accurate.

In one possible implementation, the dragging control module 1203 may include:

a monitoring unit configured to monitor a target position of a target material track when a drag operation of the target material track in a target direction is detected;

and the dragging control unit is configured to control the target material track to move along the dragging operation track when the distance between the target position and the preset position is greater than the distance threshold value.

In one possible implementation, the apparatus may further include:

the newly-built track prompt information display module is configured to display newly-built track prompt information when the distance between the target position and the preset position is smaller than or equal to a distance threshold;

and the newly-built track prompt information hiding module is configured to hide the newly-built track prompt information when the fact that the distance between the target position of the target material track and the preset position is larger than the distance threshold value is executed.

In one possible implementation, the apparatus may further include:

and the track display area switching module is configured to display the target material track in the target track display area when detecting that the target material track moves along the target track display area from the preset position.

In one possible implementation, the preset position is at least one of: a central axis between two adjacent track display areas; an outer edge of the at least one track display area, the outer edge being parallel to the predetermined direction.

In a possible implementation manner, the new track prompt information display module includes:

the first newly-built track prompt information display unit is configured to display newly-built track prompt information when the preset position is the central axis between two adjacent track display areas and the distance between the central line of the target material track and the central axis is detected to be smaller than or equal to the distance threshold value and at least one material track is respectively displayed in the two adjacent track display areas; or

And the second new track prompt information display unit is configured to display the new track prompt information when the preset position is the outer edge of the at least one track display area and the distance between the edge of the target material track and the outer edge of the at least one track display area is detected to be smaller than or equal to the distance threshold and at least one material track is displayed in the track display area matched with the outer edge.

In a possible implementation manner, the newly-built track prompt information is a line segment that is displayed in a preset format and matches with the preset position.

In a possible implementation manner, in a case that the preset position is a central axis between the two adjacent track display areas, the apparatus further includes:

and the first track display area establishing module is configured to establish a new track display area between two adjacent track display areas and display a target material track in the new track display area when the fact that the newly-built track prompt information lasts for a preset duration and the dragging operation meets a preset condition is detected.

In a possible implementation manner, in the case that the preset position is an outer edge of the at least one rail display area, the apparatus may further include:

and the second track display area establishing module is configured to establish a new track display area in an area departing from the outer edge when the fact that the prompt information of the new track lasts for a preset duration and the dragging operation meets a preset condition is detected, and display the target material track in the new track display area.

In one possible implementation, the apparatus may further include:

the initial track display area monitoring module is configured to monitor an initial track display area of a target material track;

and the track display area processing module is configured to delete the initial track display area when the initial track display area does not comprise the material track.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Fig. 13 is a block diagram illustrating an electronic device for material processing, which may be a terminal, according to an exemplary embodiment, and an internal structure thereof may be as shown in fig. 13. The electronic device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of material processing. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.

Fig. 14 is a block diagram illustrating an electronic device for material processing, which may be a server, according to an exemplary embodiment, and an internal structure thereof may be as shown in fig. 14. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of material processing.

Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.

In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the material processing method as in the embodiments of the present disclosure.

In an exemplary embodiment, there is also provided a computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a material processing method in an embodiment of the present disclosure. The computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

In an exemplary embodiment, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the material processing method in the embodiments of the present disclosure.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

28页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频处理方法、装置、电子设备及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类