Video preview method and apparatus, electronic device, and storage medium

CN116744047BActive Publication Date: 2026-10-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310715050.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2026-10-20
Estimated Expiration
2043-06-15

AI Technical Summary

Technical Problem

[0003]但是,相关技术中,用户在观看视频时,如需要对视频细节进行放大时,通常操作复杂,影响视频观看效率

Benefits of technology

[0016]本公开实施例提供的视频预览方法,响应于针对视频播放界面中视频播放区域中目标位置的触发操作,根据目标位置的关联区域和视频播放区域的重合度,确定目标框线在视频播放界面的显示区域,由此得到的目标框线中可以包括更多的视频内容,便于对视频内容的细节进行放大;在显示区域显示目标框线,可以提示用户待放大的视频图像;并自动在视频播放界面上显示目标框线中的视频图像的放大图像,操作简单,便于用户更直观、更快速地观看目标框线中的视频图像的细节,同时丰富了视频播放界面的展示形式。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116744047B_ABST
    Figure CN116744047B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a video preview method and device, electronic equipment and storage medium. The method comprises: displaying a video playing interface, wherein the video playing interface comprises a video playing area; in response to a triggering operation on a target position in the video playing area, determining a display area of a target frame line in the video playing interface according to the coincidence degree between the target position and the video playing area; displaying the target frame line in the display area, and displaying an enlarged image of a video image in the target frame line on the video playing interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more specifically, to a video preview method, a video preview device, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the development of internet technology and the application of smart devices, video applications are becoming increasingly popular, and watching videos through these applications has become more and more common.

[0003] However, in related technologies, when users need to zoom in on video details while watching videos, the operation is usually complicated, affecting the efficiency of video viewing. Summary of the Invention

[0004] This disclosure provides a video preview method, a video preview device, an electronic device, and a computer-readable storage medium. The method is simple to operate and allows users to view the details of the video image within the target frame more intuitively and quickly.

[0005] This disclosure provides a video preview method, including: displaying a video playback interface, the video playback interface including a video playback area; responding to a trigger operation targeting a target position in the video playback area, determining a display area for a target outline in the video playback interface based on the overlap between the associated area of ​​the target position and the video playback area, and displaying the target outline in the display area; and displaying a magnified image of the video image within the target outline on the video playback interface.

[0006] In some exemplary embodiments of this disclosure, determining the display area of ​​the target frame line on the video playback interface based on the degree of overlap between the associated area of ​​the target location and the video playback area includes: forming an associated area of ​​the target location centered on the target location; if the associated area of ​​the target location and the video playback area partially overlap, adjusting the position of the associated area of ​​the target location to obtain the display area of ​​the target frame line, wherein at least one side of the display area is aligned with at least one side of the video playback area.

[0007] In some exemplary embodiments of this disclosure, determining the display area of ​​the target frame line on the video playback interface based on the degree of overlap between the associated area of ​​the target location and the video playback area further includes: if the associated area of ​​the target location is entirely located within the video playback area, then the associated area of ​​the target location is determined as the actual display area of ​​the target frame line.

[0008] In some exemplary embodiments of this disclosure, the target frame is a square; when the shorter side of the video playback area is less than or equal to a preset length, the length of the target frame is equal to the shorter side of the video playback area; when the shorter side of the video playback area is greater than the preset length, the length of the target frame is equal to a preset percentage of the shorter side of the video playback area, wherein the preset percentage is less than 1.

[0009] In some exemplary embodiments of this disclosure, the video playback interface includes a left region of the video playback area and a right region of the video playback interface; displaying a magnified image of the video image within the target frame on the video playback interface includes: determining the wider region between the left and right regions as the target region; magnifying the video image within the target frame according to a preset multiple relationship between the width of the target region and the side length of the target frame to obtain the magnified image; and displaying the magnified image within the target region.

[0010] In some exemplary embodiments of this disclosure, the video image within the target frame is magnified according to a preset multiple of the width of the target region and the side length of the target frame to obtain the magnified image. This includes: if the width of the target region is greater than or equal to a preset multiple of the side length of the target frame, the video image within the target frame is magnified by the preset multiple to obtain the magnified image; if the width of the target region is less than a preset multiple of the side length of the target frame, the video image within the target frame is magnified according to the video state of the video image within the target frame to obtain the magnified image.

[0011] In some exemplary embodiments of this disclosure, the process of magnifying the video image within the target frame according to its video state to obtain the magnified image includes: if the video image within the target frame is in playback mode, then magnifying the video image within the target frame by a preset factor and cropping it to obtain the magnified image; if the video image within the target frame is in paused mode, then performing color index analysis on the video image within the target frame; if the color index of the video image within the target frame is greater than or equal to a preset index, then magnifying the video image within the target frame by the preset factor and cropping it to obtain the magnified image; if the color index of the video image within the target frame is less than the preset index, then determining a target factor based on the width of the target region and the side length of the target frame, and magnifying the video image within the target frame by the target factor to obtain the magnified image.

[0012] This disclosure provides a video preview device, comprising: a display module configured to display a video playback interface, the video playback interface including a video playback area; a determination module configured to perform a trigger operation in response to a target position in the video playback area, determining a display area of ​​a target outline in the video playback interface based on the overlap between the associated area of ​​the target position and the video playback area; and a display module configured to display the target outline in the display area and display a magnified image of the video image within the target outline on the video playback interface.

[0013] This disclosure provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the video preview method as described above.

[0014] This disclosure provides a computer-readable storage medium that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the video preview method as described above.

[0015] This disclosure provides a computer program product, a computer program, and a video preview method that implements any of the above-mentioned methods when the computer program is executed by a processor.

[0016] The video preview method provided in this disclosure responds to a trigger operation targeting a target position in the video playback area of ​​the video playback interface. Based on the overlap between the associated area of ​​the target position and the video playback area, the display area of ​​the target frame in the video playback interface is determined. The resulting target frame can include more video content, facilitating magnification of video content details. Displaying the target frame in the display area prompts the user to zoom in on the video image. Furthermore, a magnified image of the video image within the target frame is automatically displayed on the video playback interface. The method is simple to operate, allowing users to view the details of the video image within the target frame more intuitively and quickly, while also enriching the display format of the video playback interface.

[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0019] Figure 1A schematic diagram of an exemplary system architecture to which the video preview method of embodiments of the present disclosure can be applied is shown.

[0020] Figure 2 This is a flowchart illustrating a video preview method according to an exemplary embodiment.

[0021] Figure 3 This is a schematic diagram of a video playback interface as shown in the example.

[0022] Figure 4 This is a schematic diagram of the initial display area of ​​a target frame, as illustrated in an example.

[0023] Figure 5 This is a schematic diagram of the actual display area of ​​a target frame line as shown in an example.

[0024] Figure 6 This is a schematic diagram illustrating another video playback interface based on an example.

[0025] Figure 7 This is a schematic diagram illustrating another video playback interface based on an example.

[0026] Figure 8 This is a block diagram illustrating a video preview device according to an exemplary embodiment.

[0027] Figure 9 This is a schematic diagram illustrating the structure of an electronic device suitable for implementing exemplary embodiments of the present disclosure, according to an exemplary embodiment. Detailed Implementation

[0028] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0029] The features, structures, or characteristics described in this disclosure can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0030] The accompanying drawings are merely illustrative of this disclosure, and the same reference numerals in the drawings denote the same or similar parts, thus omitting repeated descriptions of them. Some block diagrams shown in the drawings do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in at least one hardware module or integrated circuit, or in different network and / or processor devices and / or microcontroller devices.

[0031] The flowchart shown in the accompanying drawings is merely illustrative and does not necessarily include all content and steps, nor does it require execution in the described order. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0032] In this specification, the terms “a,” “an,” “the,” “the,” and “at least one” are used to indicate the presence of at least one element / component / etc.; the terms “comprising,” “including,” and “having” are used to indicate an open-ended inclusion and to mean that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms “first,” “second,” and “third,” etc., are used only as markings and are not a limitation on the number of objects.

[0033] It should be noted that all user information and data involved in this disclosure are information and data authorized by the user or fully authorized by all parties.

[0034] Figure 1 A schematic diagram of an exemplary system architecture to which the video preview method of embodiments of the present disclosure can be applied is shown.

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

[0036] Server 101 can be a server that provides various services, such as a back-end management server that supports the devices operated by users using terminal devices 103, 104, or 105. The back-end management server can analyze and process received requests and other data, and feed back the processing results to terminal devices 103, 104, or 105.

[0037] Terminal devices 103, 104, and 105 can be smartphones, tablets, laptops, desktop computers, smart speakers, wearable smart devices, virtual reality devices, augmented reality devices, etc., but are not limited to these.

[0038] In this embodiment of the disclosure, the terminal device 103 can display a video playback interface, which includes a video playback area. The user can click on the target location that they want to zoom in on. In response to the trigger operation on the target location in the video playback area, the terminal device 103 can display a target outline in the associated area of ​​the target location and display a magnified image of the video image in the target outline on the video playback interface for the user to view.

[0039] It should be understood that Figure 1 The number of terminal devices 103, 104, 105, network 102, and server 101 in the diagram is merely illustrative. Server 101 can be a single physical server, a server cluster consisting of multiple servers, or a cloud server. Depending on actual needs, it can have any number of terminal devices, networks, and servers.

[0040] The following will describe in more detail the various steps of the video preview method in the exemplary embodiments of this disclosure, with reference to the accompanying drawings and examples.

[0041] Figure 2 This is a flowchart illustrating a video preview method according to an exemplary embodiment. Figure 2 The method provided in the embodiments can be executed by any electronic device, such as the one described above. Figure 1 Terminal devices in or Figure 1 The server in, or Figure 1 The terminal devices and servers in the process are executed together, but this disclosure does not limit this.

[0042] like Figure 2 As shown, the method provided in this disclosure embodiment may include the following steps.

[0043] In step S210, a video playback interface is displayed, which includes a video playback area.

[0044] In this embodiment of the disclosure, users can watch videos through the video playback area of ​​the video playback interface of the terminal device. Users can be video reviewers or video viewers. The video playback interface can include a video playback area and other areas. The video playback area displays video images, which can be in a playing state or a paused state. Other areas can display relevant information about the video images, such as a brief introduction or evaluation of the video images.

[0045] refer to Figure 3 The video playback interface 301 may include a video playback area 302, which may occupy the entire screen of the terminal device or be located in a part of the screen of the terminal device; the video playback area 302 displays video images.

[0046] In step S220, in response to a trigger operation targeting a target location in the video playback area, the display area of ​​the target frame in the video playback interface is determined based on the overlap between the associated area of ​​the target location and the video playback area.

[0047] The target location can be any location within the video playback area, such as the location of small text or other video details in a video that the viewer wants to zoom in on; the triggering operation can include, but is not limited to, click operation, swipe operation, long press operation, double click operation, hover operation, voice trigger operation, etc.; the target frame can be a solid line or a dashed line of a preset color, such as a blue frame or a red frame.

[0048] In this embodiment of the disclosure, when a video viewer wants to zoom in on the video image of the area surrounding a target location, they can click or hover the mouse over the target location. In response to the click or hover operation on the target location, the terminal device can determine the display area of ​​the target frame in the video playback interface based on the overlap between the associated area of ​​the target location and the video playback area.

[0049] Specifically, the associated area of ​​the target location can be an area centered on the target location; if the associated area of ​​the target location partially overlaps with the video playback area, the position of the associated area of ​​the target location is adjusted to obtain the display area of ​​the target frame; if the associated area of ​​the target location completely overlaps with the video playback area, the associated area of ​​the target location can be directly used as the display area of ​​the target frame.

[0050] In step S230, the target frame is displayed in the display area, and a magnified image of the video image within the target frame is displayed on the video playback interface.

[0051] In this embodiment of the disclosure, after determining the display area of ​​the target frame, the target frame is displayed in the display area, and a magnified image of the video image in the target frame is displayed at any position on the video playback interface. The magnified image is an image of the video image in the target frame after magnification processing, which makes it easier for the video viewer to view the details of the video image in the target frame.

[0052] Continue to refer to Figure 3For example, a video viewer can click on a target location 303 in the video playback area. In response to the click operation on the target location, the terminal device can determine the display area of ​​the target frame line based on the associated area of ​​the target location 303, display the target frame line 304 in the display area, and display a magnified image 305 of the video image in the target frame line 304 on the video playback interface.

[0053] In this embodiment of the disclosure, the magnified image of the video image within the target frame is consistent with the state of the video image within the target frame; specifically, if the video image within the target frame is in a paused state, the magnified image is an enlarged picture; if the video image within the target frame is in a playback state, the magnified image is a dynamic video image, which is magnified and displayed in real time to show the corresponding video content.

[0054] In this embodiment of the disclosure, the size of the target frame and the area where the magnified image is located can be automatically adapted based on the size of the current video playback area and the position of the video playback area in the video playback interface.

[0055] The video preview method provided in this disclosure responds to a trigger operation targeting a target position in the video playback area of ​​the video playback interface. Based on the overlap between the associated area of ​​the target position and the video playback area, the display area of ​​the target frame in the video playback interface is determined. The resulting target frame can include more video content, facilitating magnification of video content details. Displaying the target frame in the display area prompts the user to zoom in on the video image. Furthermore, a magnified image of the video image within the target frame is automatically displayed on the video playback interface. The method is simple to operate, allowing users to view the details of the video image within the target frame more intuitively and quickly, while also enriching the display format of the video playback interface.

[0056] Furthermore, the video preview method provided in this disclosure can be applied to video review scenarios, allowing video reviewers to quickly zoom in on small review points in the video, saving a significant amount of review time and improving review efficiency.

[0057] In an exemplary embodiment, determining the display area of ​​the target frame line on the video playback interface based on the degree of overlap between the associated area of ​​the target location and the video playback area may include: forming an associated area of ​​the target location centered on the target location; if the associated area of ​​the target location and the video playback area partially overlap, adjusting the position of the associated area of ​​the target location to obtain the display area of ​​the target frame line, wherein at least one side of the display area is aligned with at least one side of the video playback area.

[0058] In this embodiment, the target frame can be a square, and its side length can be set according to the size of the video playback area or preset. When the video viewer clicks on the target location or hovers the mouse over the target location, an associated region of the target frame can be formed with the target location as the center and the set side length. That is, the area around the target location is taken as the associated region. At this time, the associated region may be entirely within the video playback area or may partially overlap with the video playback area. Based on the degree of overlap between the initial display area and the video playback area, the associated region of the target frame is adjusted to determine the display area of ​​the target frame. The display area of ​​the target frame can be entirely within the video playback area, which facilitates magnification of details within the video playback area.

[0059] In this embodiment of the disclosure, if the entire associated area of ​​the target frame is located within the video playback area (refer to...) Figure 3 If the area associated with the target frame contains only video content, then there is no need to adjust the area associated with the target frame; the area associated with the target frame can be directly determined as the display area of ​​the target frame.

[0060] In an exemplary embodiment, determining the display area of ​​the target frame line on the video playback interface based on the degree of overlap between the associated area of ​​the target location and the video playback area may further include: if the associated area of ​​the target location is entirely located within the video playback area, then the associated area of ​​the target location is determined as the actual display area of ​​the target frame line.

[0061] In this embodiment of the disclosure, reference is made to Figure 4 If the associated region 402 of the target position formed by the target position 401 partially overlaps with the video playback area 302, that is, the associated region 402 of the target position only partially includes the video content, then the associated region of the target position needs to be adjusted to make it align with the edge of the video playback area 302; see reference. Figure 5 The diagram shows the associated area of ​​the adjusted target position (i.e. the display area of ​​the target frame). It can be seen that the display area 403 of the target frame and the video playback area 302 are adjacent, that is, at least one edge of the display area 403 of the target frame is aligned with at least one edge of the video playback area 302.

[0062] In this embodiment of the disclosure, when the display area of ​​the target frame and the video playback area partially overlap, the position of the display area of ​​the target frame is adjusted to fit the edge, so that the display area of ​​the target frame is entirely video content, which facilitates the magnification of the video content in the display area.

[0063] In an exemplary embodiment, the target frame is a square; when the shorter side of the video playback area is less than or equal to a preset length, the length of the target frame is equal to the shorter side of the video playback area; when the shorter side of the video playback area is greater than the preset length, the length of the target frame is equal to a preset percentage of the shorter side of the video playback area, wherein the preset percentage is less than 1.

[0064] In this embodiment of the disclosure, the shorter side length of the video playback area can be represented by x. If the video is displayed in landscape mode, the height of the video playback area is x; if the video is displayed in portrait mode, the width of the video playback area is x.

[0065] In this embodiment of the disclosure, when the short side length x of the video playback area is less than or equal to a preset length (e.g., 200px (pixels)), i.e., the video player is a small-sized video player, the side length of the target wireframe is set to x; when the short side length x of the video playback area is greater than the preset length (e.g., 200px), i.e., the video player is a large-sized video player, the side length of the target wireframe is set to a preset percentage of the short side length of the video playback area, e.g., x*y%, i.e., the side length of the target wireframe is y% of the width of the video playback area. If a decimal point appears, it is rounded up to one place.

[0066] In this embodiment of the disclosure, the size of the target frame can be intelligently set according to the size of the video playback area, making it easier for users to view the details of the video image within the target frame.

[0067] In an exemplary embodiment, the video playback interface includes a left area of ​​the video playback area and a right area of ​​the video playback interface.

[0068] refer to Figure 6 The video playback interface 301 includes a left area 601 and a right area 602 of the video playback area 302. Based on the size of the left area 601 and the right area 602, the larger area is selected to display the magnified image.

[0069] In an exemplary embodiment, displaying a magnified image of a video image within a target frame on a video playback interface includes: determining the wider region between the left and right regions as the target region; magnifying the video image within the target frame according to a preset multiple relationship between the width of the target region and the side length of the target frame to obtain a magnified image; and displaying the magnified image within the target region.

[0070] Continue to refer to Figure 6Compare the width of the left region 601 (i.e., the left margin of the video playback area from the left side of the screen) and the width of the right region 602 (i.e., the right margin of the video playback area from the right side of the screen). Taking the larger width of the right region 602 as an example, the right region 602 is used as the target region, and the magnified image is displayed in the right region 602.

[0071] In this embodiment of the disclosure, the video image in the target frame is magnified according to a preset multiple relationship between the width of the target area and the side length of the target frame. The preset multiple can be a pre-set magnification multiple, such as 2.5 times. By comparing the preset multiple relationship between the width of the target area and the side length of the target frame, it is determined whether the target area can display a magnified image with a side length that is a preset multiple of the side length of the target frame, so as to facilitate the magnification of the video image in the target frame.

[0072] In an exemplary embodiment, the video image within the target frame is magnified to obtain a magnified image based on a preset multiple of the width of the target region and the side length of the target frame. This includes: if the width of the target region is greater than or equal to a preset multiple of the side length of the target frame, the video image within the target frame is magnified by a preset multiple to obtain a magnified image; if the width of the target region is less than a preset multiple of the side length of the target frame, the video image within the target frame is magnified based on the video state of the video image within the target frame to obtain a magnified image.

[0073] Specifically, if the width of the target area is greater than or equal to a preset multiple (e.g., 2.5 times) of the side length of the target frame, it means that the target area can display a magnified image after the video image within the target frame is magnified by 2.5 times. In this case, the video image within the target frame is directly magnified by 2.5 times to obtain the magnified image.

[0074] Specifically, if the width of the target area is less than a preset multiple (e.g., 2.5 times) of the side length of the target frame, it means that the target area cannot fully display the magnified image after the video image within the target frame is magnified by 2.5 times. In this case, the actual magnification factor can be determined based on the width of the target area, and the video image within the target frame can be magnified based on the actual magnification factor (equivalent to filling the target area); or, based on the video status (paused or playing) of the video image within the target frame, the video image within the target frame can be magnified to obtain the magnified image.

[0075] In this embodiment of the disclosure, in addition to considering a preset multiple of the side length of the target frame, a preset distance between the magnified image and the video playback area can also be considered. For example, if the preset distance between the magnified image and the video playback area is 20px, then the relationship between the difference between the width of the target area and the preset distance (y-20px) and the preset multiple of the side length of the target frame (2.5x) is determined. If the difference between the width of the target area and the preset distance (y-20px) is greater than or equal to the preset multiple of the side length of the target frame (2.5x), then the video image in the target frame is magnified by the preset multiple to obtain a magnified image. If the difference between the width of the target area and the preset distance (y-20px) is less than the preset multiple of the side length of the target frame (2.5x), then the video image in the target frame is magnified according to the video state of the video image in the target frame to obtain a magnified image.

[0076] In this embodiment of the disclosure, the relationship between the width of the target area and the preset multiple of the side length of the target frame can be intelligently determined, and the video image in the target frame can be adaptively magnified.

[0077] In this embodiment of the disclosure, the video playback area can be extended left and right to obtain the display area of ​​the magnified image, and the magnified image and the display area of ​​the magnified image can be aligned, that is, at least one side of the magnified image and at least one side of the display area of ​​the magnified image are aligned.

[0078] refer to Figure 7 The video playback area 302 is extended to the left and right to obtain the magnified image display area 701. The magnified image 305 and the magnified image display area 701 are aligned to make it easier for users to view the details in the magnified image.

[0079] In an exemplary embodiment, the video image within the target frame is magnified according to its video state to obtain a magnified image. This includes: if the video image within the target frame is in playback mode, the video image within the target frame is magnified by a preset factor and then cropped to obtain a magnified image; if the video image within the target frame is in paused mode, color index analysis is performed on the video image within the target frame; if the color index of the video image within the target frame is greater than or equal to a preset factor, the video image within the target frame is magnified by a preset factor and then cropped to obtain a magnified image; if the color index of the video image within the target frame is less than a preset factor, a target factor is determined based on the width of the target region and the side length of the target frame, and the video image within the target frame is magnified by the target factor to obtain a magnified image.

[0080] In this embodiment of the disclosure, color index analysis of a video image may be performed on color gradation analysis of the video image; determining whether the color index of the video image within the target frame is greater than or equal to a preset index may be determined by determining whether the number of primary color gradations in the video image within the target frame is greater than or equal to a preset number; determining whether the color index of the video image within the target frame is less than a preset index may be determined by determining whether the number of primary color gradations in the video image within the target frame is less than a preset number.

[0081] Specifically, if the width of the target area is less than a preset multiple (e.g., 2.5 times) of the side length of the target frame and the video image in the target frame is in playback mode, then the video image in the target frame is enlarged by a preset multiple and then cropped so that the enlarged image obtained after cropping can be displayed in the target area.

[0082] Specifically, if the width of the target area is less than a preset multiple (e.g., 2.5 times) of the side length of the target frame and the video image within the target frame is in a paused state, and the number of main color levels in the video image within the target frame obtained after color level analysis is greater than or equal to a preset number (e.g., 3), it indicates that the video image within the target frame has rich colors and needs to be magnified by a preset multiple. In this case, the video image within the target frame is magnified by a preset multiple and then cropped so that the magnified image obtained after cropping can be displayed within the target area.

[0083] Specifically, if the width of the target area is less than a preset multiple (e.g., 2.5 times) of the side length of the target frame, and the video image within the target frame is in a paused state, and the number of main color levels in the video image within the target frame obtained after color level analysis is less than a preset number (e.g., 3), it indicates that the video image within the target frame has simple colors and does not need to be magnified by a preset multiple. Therefore, a target multiple (e.g., less than 2.5 times) is determined based on the width of the target area and the side length of the target frame, and the video image within the target frame is magnified by the target multiple to obtain a magnified image, which can be displayed within the target area.

[0084] In this embodiment of the disclosure, based on the relationship between the width of the target area and the side length of the target frame, the video status of the video image in the target frame, and the analysis results of the color index analysis of the video image in the target frame, the video image in the target frame is intelligently magnified so that the magnified image can be displayed in the target area, making it convenient for users to view the specific details in the magnified image.

[0085] It should also be understood that the above is only to help those skilled in the art better understand the embodiments of this disclosure, and is not intended to limit the scope of the embodiments of this disclosure. Those skilled in the art can obviously make various equivalent modifications or changes based on the examples given above. For example, some steps in the above methods may be unnecessary, or new steps may be added, etc. Alternatively, any combination of any two or more of the above embodiments may be used. Such modifications, changes, or combinations also fall within the scope of the embodiments of this disclosure.

[0086] It should also be understood that the above description of the embodiments of this disclosure focuses on highlighting the differences between the various embodiments. Similarities or differences not mentioned can be referred to each other, and for the sake of brevity, they will not be repeated here.

[0087] It should also be understood that the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this disclosure.

[0088] It should also be understood that, in the various embodiments of this disclosure, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions between different embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0089] The foregoing has detailed examples of video preview methods provided in this disclosure. It is understood that, in order to implement the above functions, the computer device includes corresponding hardware structures and / or software modules for performing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0090] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein. For details not disclosed in the apparatus embodiments of this disclosure, please refer to the embodiments of the method disclosed herein.

[0091] Figure 8 This is a block diagram illustrating a video preview device according to an exemplary embodiment. (Refer to...) Figure 8 The device 800 may include a display module 810, a determination module 820, and a display module 830.

[0092] The display module 810 is configured to display a video playback interface, which includes a video playback area; the determination module 820 is configured to perform a trigger operation in response to a target position in the video playback area, and determine the display area of ​​the target outline in the video playback interface based on the overlap between the associated area of ​​the target position and the video playback area; the display module 830 is configured to display the target outline in the display area and display a magnified image of the video image in the target outline on the video playback interface.

[0093] In some exemplary embodiments of this disclosure, the determining module 820 is configured to perform: forming an associated region of the target location centered on the target location; if the associated region of the target location partially overlaps with the video playback area, adjusting the position of the associated region of the target location to obtain a display area of ​​the target frame, wherein at least one side of the display area is aligned with at least one side of the video playback area.

[0094] In some exemplary embodiments of this disclosure, the determining module 820 is configured to perform the following: if the associated area of ​​the target location is entirely located within the video playback area, then the associated area of ​​the target location is determined as the actual display area of ​​the target frame.

[0095] In some exemplary embodiments of this disclosure, the target frame is a square; when the shorter side of the video playback area is less than or equal to a preset length, the length of the target frame is equal to the shorter side of the video playback area; when the shorter side of the video playback area is greater than the preset length, the length of the target frame is equal to a preset percentage of the shorter side of the video playback area, wherein the preset percentage is less than 1.

[0096] In some exemplary embodiments of this disclosure, the video playback interface includes a left area of ​​the video playback area and a right area of ​​the video playback interface; the display module 830 is configured to perform: determining the wider area between the left area and the right area as a target area; magnifying the video image in the target frame according to a preset multiple relationship between the width of the target area and the side length of the target frame to obtain the magnified image; and displaying the magnified image in the target area.

[0097] In some exemplary embodiments of this disclosure, the display module 830 is configured to perform the following: if the width of the target area is greater than or equal to a preset multiple of the side length of the target frame, then the video image in the target frame is magnified by the preset multiple to obtain the magnified image; if the width of the target area is less than a preset multiple of the side length of the target frame, then the video image in the target frame is magnified according to the video state of the video image in the target frame to obtain the magnified image.

[0098] In some exemplary embodiments of this disclosure, the display module 830 is configured to perform the following: if the video image in the target frame is in a playing state, then the video image in the target frame is magnified by the preset factor and cropped to obtain the magnified image; if the video image in the target frame is in a paused state, then color index analysis is performed on the video image in the target frame; if the color index of the video image in the target frame is greater than or equal to a preset index, then the video image in the target frame is magnified by the preset factor and cropped to obtain the magnified image; if the color index of the video image in the target frame is less than the preset index, then a target factor is determined based on the width of the target region and the side length of the target frame, and the video image in the target frame is magnified by the target factor to obtain the magnified image.

[0099] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0100] The following reference Figure 9 To describe an electronic device 900 according to such an embodiment of the present disclosure. Figure 9 The electronic device 900 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0101] like Figure 9 As shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one processing unit 910, at least one storage unit 920, a bus 930 connecting different system components (including storage unit 920 and processing unit 910), and a display unit 940.

[0102] The storage unit stores program code, which can be executed by the processing unit 910 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. For example, the processing unit 910 can perform actions such as... Figure 2 The steps shown are as follows.

[0103] For example, electronic devices can achieve such Figure 2 The steps shown.

[0104] Storage unit 920 may include readable media in the form of volatile storage units, such as random access memory (RAM) 921 and / or cache memory 922, and may further include read-only memory (ROM) 923.

[0105] The storage unit 920 may also include a program / utility 924 having a set (at least one) of program modules 925, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0106] Bus 930 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0107] Electronic device 900 can also communicate with one or more external devices 970 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 900, and / or with any device that enables electronic device 900 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 950. Furthermore, electronic device 900 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0108] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0109] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of the device to perform the described method. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0110] In an exemplary embodiment, a computer program product is also provided, including a computer program / instructions that, when executed by a processor, implement the video preview method described above.

[0111] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0112] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A video preview method, characterized in that, include: A video playback interface is displayed, which includes a video playback area; In response to a trigger operation targeting a target location in the video playback area, the display area of ​​the target outline in the video playback interface is determined based on the overlap between the associated area of ​​the target location and the video playback area. The target frame is displayed in the display area, and a magnified image of the video image within the target frame is displayed on the video playback interface. The video playback interface includes a left area of ​​the video playback area and a right area of ​​the video playback interface; Displaying a magnified image of the video image within the target frame on the video playback interface includes: The wider region between the left and right regions is identified as the target region. Based on a preset multiple relationship between the width of the target region and the side length of the target frame, the video image within the target frame is magnified to obtain the magnified image. The magnified image is displayed within the target area; Based on a preset multiple relationship between the width of the target region and the side length of the target frame, the video image within the target frame is magnified to obtain the magnified image, including: If the width of the target area is greater than or equal to a preset multiple of the side length of the target frame, then the video image in the target frame is magnified by the preset multiple to obtain the magnified image; If the width of the target area is less than a preset multiple of the side length of the target frame, the video image in the target frame is magnified according to the video state of the video image in the target frame to obtain the magnified image. The video state includes playback state, pause state, and color index.

2. The method according to claim 1, characterized in that, Based on the overlap between the associated region of the target location and the video playback area, the display area of ​​the target outline on the video playback interface is determined, including: A related region is formed with the target location as the center; If the associated region of the target location and the video playback area partially overlap, the position of the associated region of the target location is adjusted to obtain the display area of ​​the target frame, wherein at least one side of the display area is aligned with at least one side of the video playback area.

3. The method according to claim 2, characterized in that, Based on the overlap between the associated region of the target location and the video playback area, the display area of ​​the target outline on the video playback interface is determined, further including: If the entire associated area of ​​the target location is located within the video playback area, then the associated area of ​​the target location is determined as the actual display area of ​​the target frame.

4. The method according to claim 1 or 2, characterized in that, The target frame is a square; When the shorter side of the video playback area is less than or equal to a preset length, the side length of the target frame is equal to the shorter side of the video playback area; When the shorter side of the video playback area is longer than the preset length, the side length of the target frame is equal to a preset percentage of the shorter side of the video playback area, wherein the preset percentage is less than 1.

5. The method according to claim 1, characterized in that, Based on the video state of the video image within the target frame, the video image within the target frame is magnified to obtain the magnified image, including: If the video image within the target frame is in playback mode, then the video image within the target frame is enlarged by the preset factor and then cropped to obtain the enlarged image; If the video image within the target frame is in a paused state, then perform color index analysis on the video image within the target frame. If the color index of the video image within the target frame is greater than or equal to a preset index, then the video image within the target frame is enlarged by the preset factor and then cropped to obtain the enlarged image; If the color index of the video image within the target frame is less than the preset index, then a target multiplier is determined based on the width of the target region and the side length of the target frame, and the video image within the target frame is magnified by the target multiplier to obtain the magnified image.

6. A video preview device, characterized in that, include: The display module is configured to display a video playback interface, which includes a video playback area. The determination module is configured to perform a trigger operation in response to a target location in the video playback area, and determine the display area of ​​the target outline in the video playback interface based on the overlap between the associated area of ​​the target location and the video playback area; The display module is configured to display the target frame in the display area and display a magnified image of the video image in the target frame on the video playback interface; The video playback interface includes a left area of ​​the video playback area and a right area of ​​the video playback interface; The display module is configured to perform the following: determine the wider area between the left and right regions as the target region; magnify the video image within the target frame according to a preset multiple relationship between the width of the target region and the side length of the target frame to obtain the magnified image; and display the magnified image within the target region. The display module is configured to perform the following: if the width of the target area is greater than or equal to a preset multiple of the side length of the target frame, then the video image in the target frame is magnified by the preset multiple to obtain the magnified image; if the width of the target area is less than a preset multiple of the side length of the target frame, then the video image in the target frame is magnified according to the video state of the video image in the target frame to obtain the magnified image, wherein the video state includes a playback state, a pause state, and a color index.

7. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the executable instructions to implement the video preview method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the video preview method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Panel picture playing method and device, electronic equipment and medium

    CN115941861A

  • Video playing method and device, equipment and storage medium

    CN115988261A