Video processing method and device and computer readable storage medium
By detecting movable objects and their interactive objects in panoramic videos, it automatically optimizes video parameters, solves the problem of difficult information acquisition in panoramic videos, and improves viewing efficiency and experience.
Patent Information
- Application Number
- CN202310268375.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
When watching panoramic videos, due to the limitation of the playback window range, it is difficult for viewers to pay attention to important information or details outside the screen. Existing technologies manually adjust the viewing angle or rely on mechanical structures, resulting in inconvenient operations for users and the inability to quickly locate the desired screen. .
By detecting movable objects and their interactive objects in panoramic videos, it automatically determines and optimizes video parameters, such as playback window and zoom ratio, to ensure that interactive objects are located in the central area, enabling automatic tracking or manual mode for easier viewing.
It effectively avoids the risk of missing details in the video, improves the user's information acquisition efficiency and viewing experience in the panoramic video, and reduces the complexity of user operations.
Smart Images

Figure CN118674767A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of video, and more particularly to a method, device and computer-readable storage medium for processing panoramic video. More specifically, the video processing method of the present disclosure relates to a method for playing panoramic video according to movable objects and interactive objects. Background Art
[0002] Panoramic video is a video obtained by shooting the surrounding environment in all directions with a panoramic camera. It usually has a 360-degree horizontal angle of view and a 180-degree vertical angle of view, so that viewers can browse the entire scene immersively with themselves as the center, experience a more realistic environment display and obtain richer visual information. Due to such characteristics, panoramic video has a wide range of applications in fields such as on-site monitoring, public transportation, video conferencing, and game entertainment.
[0003] However, although panoramic video can capture and record images with a wide field of view in all directions, when watching such panoramic images or videos, due to the limitation of the window range of the playback end, the viewer can only watch the images corresponding to part of the field of view and cannot pay attention to things outside the screen. As a result, some important information or details that need to be paid attention to may be ignored.
[0004] Although in some prior arts, the viewing angle of the panoramic video can be manually adjusted to change the viewing picture so that the viewer can see the desired field of view, this method undoubtedly increases the inconvenience of user operation. In addition, if the viewing angle is changed by physical means (for example, controlling the rotation of the pan / tilt), its reliability and performance will be limited by the mechanical structure of the device, which may affect the viewer's free viewing. Moreover, none of the above methods can guarantee that the user can quickly locate the desired picture among the numerous information presented by the panoramic video, and still cannot solve the problem of missing important information.
[0005] Therefore, there is a need for an improved video processing method and device for panoramic video. Summary of the invention
[0006] In view of the above, the present disclosure proposes the following video processing method, device and computer-readable storage medium, so as to solve at least the above technical problems in the prior art or make improvements to the prior art.
[0007] According to one aspect of the present disclosure, a video processing method is provided, including: acquiring a panoramic video composed of a series of continuous panoramic image frames; determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; when it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame; and playing the next panoramic image frame using the playback window and the zoom ratio.
[0008] According to an embodiment of the present disclosure, detecting an interactive object includes: performing key point detection on a movable object to determine key features of the movable object; determining an interactive direction line in a current panoramic image frame based on a vector corresponding to the key features; detecting objects intersecting the interactive direction line in the current panoramic image frame as candidate interactive objects; and determining at least one candidate interactive object among the candidate interactive objects that meets predetermined conditions as an interactive object with which the movable object is interacting.
[0009] According to an embodiment of the present disclosure, determining the interaction direction line in the current panoramic image frame includes: projecting the current panoramic image frame into a three-dimensional space coordinate system; determining the perimeter line where the vector corresponding to the key feature is located in the three-dimensional space coordinate system; and projecting the determined perimeter line back into the current panoramic image frame to determine the interaction direction line.
[0010] According to an embodiment of the present disclosure, meeting the predetermined conditions includes: the candidate interaction object is the first candidate interaction object from the direction of the vector corresponding to the key feature; or the candidate interaction object is the candidate interaction object closest to the movable object; or the candidate interaction object is a candidate interaction object of a predetermined type; or the candidate interaction object is located in a predetermined position or area; or any combination of the above.
[0011] According to an embodiment of the present disclosure, determining a playback window for a next panoramic image frame of a panoramic video includes: projecting a current panoramic image frame into a three-dimensional space coordinate system; determining three-dimensional coordinates of a second position in the three-dimensional space coordinate system; and determining a playback window for the next panoramic image frame based on the three-dimensional coordinates of the second position, and determining a scaling ratio for the next panoramic image frame, and wherein determining the scaling ratio for the next panoramic image frame includes: determining a scaling ratio for the next panoramic image frame based on size information of an interactive object.
[0012] According to an embodiment of the present disclosure, the next panoramic image frame is played using a playback window and a zoom ratio, so that the interactive object is located in a central area of the next panoramic image frame.
[0013] According to an embodiment of the present disclosure, the method further includes: when it is determined that the motion state of the movable object is moving, tracking the movable object, and using a default zoom ratio to play the next panoramic image frame of the panoramic video.
[0014] According to an embodiment of the present disclosure, it also includes: when an instruction for manual mode selected by a user is received, tracking of the movable object is stopped, and the next panoramic image frame of the panoramic video is played using a manual zoom ratio, and the manual zoom ratio is determined according to the user operation.
[0015] According to an embodiment of the present disclosure, when there are multiple objects in the current panoramic image, the movable object is determined based on the object attributes, and the object attributes include: the distance of the object from the panoramic camera; or the motion amplitude of the object; or the biometric characteristics of the object; or whether the object is speaking; or any combination of the above.
[0016] According to another aspect of the present disclosure, a video processing device is provided, including: an acquisition unit configured to acquire a panoramic video composed of a series of continuous panoramic image frames; a determination unit configured to determine a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video, wherein, when the motion state of the movable object is determined to be stationary, an interactive object with which the movable object is interacting is detected according to the first position of the movable object, and a second position of the interactive object is determined, and a playback window for a next panoramic image frame of the panoramic video is determined according to the second position of the interactive object, and a zoom ratio for the next panoramic image frame is determined; and a playback unit configured to play the next panoramic image frame using the playback window and the zoom ratio.
[0017] According to another aspect of the present disclosure, a video processing device is provided, comprising: a processor; and a memory, in which computer program instructions are stored, wherein when the computer program instructions are executed by the processor, the processor performs the following steps: acquiring a panoramic video consisting of a series of continuous panoramic image frames; determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; when it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; and determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame, wherein the determined playback window and zoom ratio are used to play the next panoramic image frame.
[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the following steps when executed: acquiring a panoramic video consisting of a series of continuous panoramic image frames; determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; when it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; and determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame, wherein the determined playback window and zoom ratio are used to play the next panoramic image frame.
[0019] According to the above-mentioned video processing method, video processing device and computer-readable storage medium disclosed in the present invention, it is possible to automatically determine and use optimized video parameters to play the panoramic video based on the movable objects in the panoramic video and the objects they are interacting with, so that the viewer can easily locate the scene of interest and avoid missing the details in the video presentation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] By describing the embodiments of the present disclosure in detail in conjunction with the following drawings, the above and other purposes, features, and advantages of the present disclosure will become clearer. It should be understood that these drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute a limitation of the present disclosure. In addition, in the drawings, the same reference numerals generally represent the same parts or steps.
[0021] Figure 1 is a flowchart showing an example of a video processing method according to an embodiment of the present disclosure;
[0022] Figure 2 (a)-(c) are schematic diagrams showing examples of panoramic image frames according to an embodiment of the present disclosure;
[0023] Figure 3 is a flowchart showing an example of detecting an interactive object according to an embodiment of the present disclosure
[0024] Figure 4 is a schematic diagram showing an example of key points and key features according to an embodiment of the present disclosure;
[0025] Figure 5 is a schematic diagram showing an example of projection to a three-dimensional space coordinate system according to an embodiment of the present disclosure;
[0026] Figure 6 is a schematic diagram showing an example of an interaction direction line in a panoramic image frame according to an embodiment of the present disclosure;
[0027] Figure 7 is a schematic diagram showing an example of playing a panoramic image frame of a panoramic video according to an embodiment of the present disclosure;
[0028] Figure 8 is a block diagram showing an example of a video processing device according to an embodiment of the present disclosure;
[0029] Fig. 9 is a block diagram illustrating another example of a video processing device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of a video processing method, a video processing device, and a computer-readable recording medium according to the present disclosure will be described below with reference to the accompanying drawings.
[0031] Based on the embodiments described in the present disclosure, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present disclosure, and the embodiments described herein are only some exemplary embodiments of the present disclosure, rather than all embodiments of the present disclosure, which are merely illustrative and therefore should not be interpreted as limiting the scope of the present disclosure. In addition, in order to make the description clearer and more concise, detailed descriptions of functions and configurations well known in the art will be omitted, and repeated explanations of steps and elements will also be omitted.
[0032] First, combine Figure 1 The basic process of the video processing method according to the embodiment of the present disclosure is described in detail. Figure 1 As shown, the exemplary video processing method 100 of the present disclosure may include the following steps:
[0033] In step S101 , a panoramic video consisting of a series of continuous panoramic image frames is obtained.
[0034] According to an embodiment of the present disclosure, in this step, the panoramic video can be obtained in the following ways, including but not limited to: obtaining the panoramic video from an external source such as a server or from an internal source such as a local storage via a wired or wireless method; the panoramic video can also be obtained by shooting with a device such as a panoramic camera, for example, multiple cameras (such as using a ring camera device or a multi-camera array, etc.) shoot the same scene, and their video streams are stitched together to generate a seamless panoramic picture. More specifically, for example, in a specific scenario of monitoring the construction status of a construction site, multiple panoramic cameras for shooting panoramic videos can be arranged at the construction site, so that the panoramic video shot on site can be obtained in the customer's office via network transmission, wherein the obtained panoramic video can be a real-time live stream or a recorded video.
[0035] It can be understood that a panoramic video is composed of a series of continuous panoramic image frames, each of which is a still picture, and a dynamically displayed panoramic video is formed by quickly and continuously displaying a plurality of continuous panoramic image frames. In addition, the "panoramic video" and "panoramic image frame" described in the present disclosure may refer to a video / image shot by a device such as a panoramic camera or a video / image having a 360-degree field of view in at least the horizontal direction after synthesis, which is distinguished from an ordinary image shot with a standard lens or a perspective image shot in a perspective mapping manner.
[0036] After the panoramic video is acquired, the process proceeds to step S102, in which a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video are determined.
[0037] Specifically, in this step, the movable objects in the current panoramic image frame of the panoramic video are detected. For example, object detection or recognition processing can be performed on the panoramic video, thereby extracting various types of objects in the current panoramic image frame. For example, Figure 2 (a)-(c) show examples of panoramic image frames captured for an office scene, where Figure 2 As shown in (a), the panoramic image frame 200a includes objects such as a person 201, a screen 202, a flower pot 203, and a newspaper rack 204 (other objects are not shown). Since the person 201 can be detected to move in multiple image frames, while other objects are always fixed objects, in this example, the person 201 can correspond to the "movable object" in the present disclosure. For ease of explanation, the present disclosure will also be described below using a person as an example of a "movable object". It can be understood that the term "movable object" in the present disclosure should have a broader meaning. For example, in examples of other scenes, the "movable object" can also refer to or include animals, robots, or other objects that can move or move in multiple image frames.
[0038] Further corresponding detection is performed on the movable object in the panoramic image frame, and the position information and motion state of the movable object in the current panoramic image frame can be determined, wherein the position information can refer to the coordinates of the movable object in the current panoramic image frame, for example, it can include longitude coordinates and latitude coordinates, wherein for the panoramic image, the longitude coordinates can indicate the position in the horizontal direction, and its range can be 0° to 360°, and the latitude coordinates can indicate the position in the vertical direction, and its range can be -90° to +90°. In the embodiment of the present disclosure, the position information of the movable object in the current panoramic image frame is also referred to as the "first position", with the first position being the position of the movable object in the current panoramic image frame. Figure 2Taking the person 201 in (a)-(c) as an example, the first position of the person 201 may be the position where the person's feet are standing, or the position of the head, or the coordinates of the center of height or other specific representative points. The motion state may refer to a movement in which the position of the movable object changes (such as walking), or in other embodiments, it may also refer to a state related to motion such as a change in the state of the movable object, such as switching between standing / sitting positions, or making a certain action (pointing to a certain place or starting to speak). The above-mentioned recognition and detection processing can be completed by any known or future method in the art. For example, a background difference method or an optical flow method based on pixel changes can be used to detect the motion state and position information of the object in the current panoramic image frame by comparing the pixels of the same object in different image frames.
[0039] For the sake of convenience, in the embodiments of the present disclosure, the motion state can be roughly divided into two states: "stationary" and "moving". The motion state of "moving" may include a movable object moving at any position. Continuing with the example of a person in the above text, Figure 2 As shown in (b), in the panoramic image frame 200b, the person 201 is running, and his / her motion state can belong to the above-mentioned "moving" motion state; and the "stationary" motion state can generally refer to the non-moving state of a movable object. The stationary state of a person can include the person standing / sitting / staying in place, maintaining a static posture, stopping footsteps, or the moving speed or moving distance in multiple consecutive image frames is less than a predetermined threshold, etc., or basically remaining in the original position or static state, such as Figure 2 As shown in (c), in the panoramic image frame 200c, the person 201 stands near the screen 202. Although the person's arms may move or act, the person does not move from his position, which belongs to the above-mentioned "stationary" motion state.
[0040] When it is determined in the above step S102 that the motion state of the movable object is stationary, the process proceeds to step S103, in which the interactive object with which the movable object is interacting is detected based on the first position of the movable object, and the second position of the interactive object is determined.
[0041] According to an embodiment of the present disclosure, as described above, it is possible to determine whether the motion state of a movable object is in a stationary motion state according to a plurality of predetermined rules. In addition, according to an embodiment of the present disclosure, it is possible to determine that the motion state of the movable object is stationary when it is detected that the movable object has maintained the above-mentioned stationary state for a specific length of time, or when it is detected that the movable object makes a certain posture / action (for example, sitting down or standing at attention or explaining a gesture). In addition, the term "interacting" in the present disclosure may generally refer to interaction between objects, or one object unilaterally facing, controlling, or operating another object.
[0042] The inventors of the present invention recognize that there are the following defects in the prior art. For example, in some scenarios, when the motion state of a movable object is stationary, the object often needs to perform the interaction described in this article. At this time, it is usually necessary to combine the screen containing the object being interacted with to convey important information to the video viewer. However, as mentioned above, during the playback of existing panoramic videos, since the video contains a large amount of visual information, the viewer may not be able to predict or even notice the upcoming or ongoing interaction of the movable object (such as a person). For example, the person is not in the viewer's playback window or the viewer's attention is not on the person, causing the viewer to miss the information. Even if the user manually positions or the pan / tilt of the camera is rotated, the interactive screen still cannot be viewed in time.
[0043] Therefore, according to an embodiment of the present disclosure, when it is determined that the motion state of the movable object is stationary, the interactive object with which the movable object is interacting and its position information are detected, wherein the position information of the interactive object is also referred to as "second position" in the present disclosure. Figure 2 Taking the screen 202 in (a)-(c) as an example, the second position of the screen 202 may be one of its corner coordinates, or the coordinates of its center point or other specific representative point, to determine the second position of the interactive object for subsequent processing and video playback. Figure 2 As shown in (c), in the current panoramic image frame, person 201 is standing near screen 202 (and pointing at screen 202 as if explaining something). In this example, screen 204 will be detected as an interactive object that person 201 is interacting with. By detecting the interactive object and determining its position information, subsequent processing of the present disclosure can be performed to at least solve the above-mentioned problem.
[0044] Regarding the processing of detecting interactive objects, the following will be combined Figure 3-5 Provide detailed explanation. Figure 3 FIG. 2 shows a processing flow for detecting interactive objects according to an embodiment of the present disclosure. Figure 3 As shown, the example process 300 of detecting interactive objects of the present disclosure may include the following steps:
[0045] In step S301 , key point detection is performed on a movable object to determine key features of the movable object.
[0046] Specifically, any suitable key point detection method in the art can be used to complete the key point detection for movable objects. For example, a key point detection model can be trained based on a convolutional neural network (CNN), a residual network (ResNet), and an hourglass network, so as to automatically mark the key points of the desired object in the panoramic image frame. The present disclosure does not limit the method of key point detection. Continuing with the person in the above text as an example, through key point detection for the human body, the body parts of the person (such as the head, shoulders, hands, feet, joints, etc. with significant features) can be marked as the key points of the person, and the key features corresponding to the corresponding parts of the person can be determined through the vectors corresponding to the connecting lines between the relevant key points.
[0047] Figure 4 An example of key points and key features according to an embodiment of the present disclosure is shown, wherein a total of 13 key points (head, shoulder joint, hip joint, knee joint, elbow joint, ankle joint, wrist joint) are marked on the corresponding parts of the character's body. Considering the scene where a person is an example of a movable object, the person usually points to or operates another object as an interactive object with his or her forearm, and the forearm is a body part connecting the wrist and elbow joints. Therefore, Figure 4 As shown, the line (or vector) between the key points corresponding to the wrist and elbow joint on the same side of the character's body can be used to represent the body feature corresponding to the character's forearm, and the feature is used as the key feature of the character. In addition, according to the embodiments of the present disclosure, depending on the specific application scenario, other body parts can also be determined as the key feature of the person, for example, the line between the key points of the ankle joint and the knee joint on the same side of the person's body can be used to determine the body feature corresponding to the calf as the key feature, or for other movable objects, the corresponding part or component of the movable object can be determined as its key feature.
[0048] Thereafter, in step S302, the interaction direction line in the current panoramic image frame is determined according to the vector corresponding to the key feature.
[0049] Specifically, the current panoramic image frame is first projected into a three-dimensional space coordinate system, that is, the coordinate values of each pixel of the panoramic image frame in the two-dimensional plane coordinate system are converted into coordinates in the three-dimensional space coordinate system by means of coordinate system transformation. Take the coordinate system transformation projected into a three-dimensional spherical coordinate system as an example for explanation. Figure 5 As shown, for a panoramic image frame with an aspect ratio of 2:1, there are 2w pixels in the width direction (j) and w pixels in the height direction (i), so each pixel (for example, Figure 5The pixel position of the pixel p in the panoramic image frame 500 can be expressed as p(i,j), and then the coordinate value of the two-dimensional plane coordinate system is used to normalize the position of each pixel and express it as p(x,y), where x=(j / 2w-0.5)*2, y=(0.5-i / w)*2, and the value range of x and y is (-1,1). Then, the two-dimensional plane position coordinates of each pixel are converted into longitude and latitude coordinates, that is, expressed as p(lng,lat), where lng=x*π, lat=y*π / 2, and the value range of x and y is (-π,π). On this basis, the z-axis component is further introduced, and the three-dimensional coordinate p(p) of the pixel p in the three-dimensional spherical coordinate system is calculated according to the trigonometric function relationship. x ,p y ,p z ), where p x =cos(lng)*cos(lat), p y =cos(lat)*sin(lng), p z = sin(lat), and traverse each pixel in the current panoramic image frame to complete the transformation to the three-dimensional spherical coordinate system.
[0050] In addition, according to an embodiment of the present disclosure, the above transformation to the three-dimensional space coordinate system may also include projection to a cube, a cylinder, or any other suitable three-dimensional space. Accordingly, the three-dimensional space coordinate system transformation may include a cube coordinate system transformation, an equidistant cylindrical coordinate system transformation, or a mapping transformation for projecting a two-dimensional panoramic image frame to other three-dimensional spaces, etc.
[0051] After projecting the two-dimensional panoramic image frame to a three-dimensional space coordinate system, the three-dimensional representation of the vector corresponding to the key feature determined in step S301 in the three-dimensional space coordinate system can be obtained accordingly, and then the perimeter line where the three-dimensional representation of the vector is located can be determined, wherein the term "perimeter line" in the present disclosure may refer to a line that circles the projected three-dimensional space surface, for example, the perimeter line of a cross section formed by the intersection of the three-dimensional space surface and a specific plane.
[0052] like Figure 5As shown, the sphere in the three-dimensional spherical coordinate system includes multiple circles, among which the circle with the center O as the center is called a "great circle" in the art (for example, the circle located at the equator), that is, the diameter of the great circle is equal to the diameter of the sphere, and it is the largest circle on the sphere. Any two points in the spherical coordinate system can determine a corresponding great circle on the sphere. Therefore, after the above-mentioned coordinate system transformation, the vector corresponding to the key feature will be transformed into a part of a great circle in the three-dimensional spherical coordinate system, and the great circle corresponding to the vector in the three-dimensional spherical coordinate system (that is, the great circle where the vector is located) can be determined. Similarly, it can be understood that for other three-dimensional space coordinate systems, the corresponding perimeter line of the vector corresponding to the key feature on the surface of the three-dimensional space coordinate system can also be determined. For example, for a vector on the projected cube space, the perimeter line where it is located should be the cross-sectional line where the plane where the vector is located intersects with the cube.
[0053] After determining the perimeter line corresponding to the vector of the key feature in the three-dimensional space coordinate system, the determined perimeter line is projected back to the current panoramic image frame, and the interactive direction line in the panoramic image frame can be determined. Continuing with the three-dimensional spherical coordinate system as an example, after the determined great circle is projected back to the current panoramic image frame (i.e., the two-dimensional plane coordinate system), the expansion of the great circle in the two-dimensional plane can be obtained and determined as a curve in the panoramic image frame, i.e., the interactive direction line. Through the above-mentioned transformation processing, the interactive direction line can represent the extension line of the direction of the vector corresponding to the key feature in the real world.
[0054] Figure 6 An example of interactive direction lines in a panoramic image frame according to an embodiment of the present disclosure is shown. Figure 6 As shown, the interactive direction line obtained in the panoramic image frame after projection is expanded into an arc, which actually corresponds to a straight line extending in the direction of the person's forearm. Therefore, the interactive direction line can be used to indicate the real direction pointed by the person's forearm. In addition, according to other embodiments of the present disclosure, depending on the determined key features, the corresponding determined interactive direction line can also indicate other directions associated with the key features, such as the direction the movable object is facing and the direction it is moving towards.
[0055] Back to Figure 3 In the process 300 shown, after the interaction direction line in the current panoramic image frame is determined in the above step S302, in step S303, objects intersecting with the interaction direction line are detected in the current panoramic image frame as candidate interaction objects.
[0056] As described above, since the interaction direction line can indicate the direction associated with the key feature in the real world, the object intersecting with the interaction direction line is more likely to be the interactive object that the movable object wants to interact with. By only detecting the objects intersecting with the interaction direction line in the current panoramic image frame, the amount of computer processing can be significantly reduced, and the accuracy of detecting interactive objects can be improved. Figure 6 As shown, in addition to the person 201, there are multiple objects in the panoramic image frame, and only four objects intersecting the determined interaction direction line are detected (as shown in the box, including the screen 202). These four objects are all on the extension line in the direction of the person's forearm in the real world, and therefore can be used as candidates to be determined as interaction objects.
[0057] Thereafter, in step S304, at least one candidate interactive object that meets a predetermined condition among the candidate interactive objects is determined as the interactive object with which the movable object is interacting.
[0058] According to an embodiment of the present disclosure, in order to further screen the objects that the movable object is interacting with, a predetermined condition is set according to a specific application scenario, preferably, so that the first candidate interaction object from the direction of the vector corresponding to the key feature can be determined as the interaction object that the movable object is interacting with. Figure 6 As shown, the first candidate interactive object from the direction of the vector of the forearm (i.e., the direction from the elbow joint to the wrist joint) in the panoramic image frame is the screen 202, and the screen 202 can be determined as the interactive object that the person 201 is interacting with. Alternatively, the candidate interactive object that meets the predetermined conditions can also be the candidate interactive object closest to the movable object, or a candidate interactive object of a predetermined type. For example, depending on the application scenario, the predetermined type can further include a blackboard, a screen, or a specific device, etc., or a candidate interactive object located at a predetermined position or area (for example, located at a specific height from the ground, or at a predetermined longitude and / or latitude), or any combination of the above predetermined conditions can be used to more accurately screen the interactive objects.
[0059] At this point, through processing 300, the interactive object that the movable object is interacting with can be more accurately detected according to the interactive direction line in the current panoramic image frame, and the amount of computer processing can also be reduced. In addition, the above example processing is only a preferred embodiment of the present disclosure. According to other embodiments of the present disclosure, the interactive object can also be simply detected according to the first position of the movable object. For example, the object closest to the first position of the movable object is determined as the interactive object, or the interactive object is directly determined according to the two-dimensional vector direction of the key feature of the movable object, or further combined with the moving direction or facing direction of the movable object and the type of the object.
[0060] Back to Figure 1 In the video processing method 100 shown, after the interactive object is determined in the above step S103 and the second position of the interactive object is determined accordingly, the process proceeds to step S104, in which the playback window for the next panoramic image frame of the panoramic video is determined according to the second position of the interactive object, and the zoom ratio for the next panoramic image frame is determined.
[0061] As described above, since it is detected that the movable object in the panoramic video is interacting with other objects, the viewer's attention needs to be attracted at this time. Therefore, in an embodiment of the present disclosure, the playback parameters of the subsequent video are adjusted so that the viewer can see the picture corresponding to the interaction more clearly and completely.
[0062] Specifically, the interactive object with which the movable object is interacting and its position information have been detected in the above steps. Therefore, as described above, the current panoramic image frame can be projected into a three-dimensional space coordinate system through coordinate transformation, so that the position coordinates of the interactive object in the two-dimensional plane coordinate system are also correspondingly converted into the three-dimensional space coordinate system, thereby being able to determine the three-dimensional coordinates of the second position of the interactive object in the three-dimensional space coordinate system. The projection of the panoramic image frame into the three-dimensional space coordinate system in this step can be the same as the projection method in the above-mentioned process of determining the interactive direction line, so it will not be repeated here. And according to an embodiment of the present disclosure, corresponding subsequent processing can be performed together after the above-mentioned projection to improve the efficiency of video processing.
[0063] like Figure 5 As shown, the movable object and the interactive object may not be within the window range corresponding to the current panoramic image frame or at least not in the expected area in the three-dimensional space coordinate system. As described above, in this case, the viewer may not be able to see the interactive operation to be performed by the movable object, causing the viewer to miss the information. Therefore, it is necessary to adjust the playback window for the next panoramic image frame according to the three-dimensional coordinates of the second position of the interactive object. At the same time, in order to enable the viewer to clearly view the interactive object, the zoom ratio of the panoramic video can also be appropriately determined. For example, in order to clearly present the content on the screen or blackboard, the lens can be zoomed in (i.e., zoomed in), or in order to fully present the full view of a large scene, the lens can be pushed out (i.e., zoomed out). According to a preferred embodiment of the present disclosure, the zoom ratio can be determined based on the size information of the interactive object, wherein the size information can include, for example, the length or area of the interactive object in a specific direction (such as a longitude or latitude), which can be determined by the position coordinates of the corner points of the interactive object.
[0064] In addition, according to a preferred embodiment of the present disclosure, the playback window and zoom ratio for playing the next panoramic image frame can be determined so that the interactive object is located in the central area of the screen of the next panoramic image frame.
[0065] In addition, according to an embodiment of the present disclosure, the playback window and zoom ratio for the panoramic image frame can be further determined according to the three-dimensional coordinates of the first position of the movable object and / or the second position of the interactive object. For example, the playback window and zoom ratio for playing the next panoramic image frame can be determined so that both the movable object and the interactive object are located in the central area of the picture of the next panoramic image frame.
[0066] After the play window and zoom ratio of the next panoramic image frame of the panoramic video are determined in the above step S104, the process proceeds to step S105, in which the next panoramic image frame is played using the determined play window and zoom ratio.
[0067] Figure 7 An example of a panoramic image frame for playing a panoramic video according to an embodiment of the present disclosure is shown. Figure 7 As shown, since the three-dimensional coordinates of the screen 202 as the interactive object can be determined in the above steps, the playback window of the panoramic video can be determined as a window with the screen 202 as the central area of the picture, and the zoom ratio can be determined to be a magnification of 3 times (for example, a ratio determined according to the area of the screen 202 or a preset fixed ratio), the determined playback window and zoom ratio are used to play the next panoramic image frame so that the content in the screen 202 can be clearly seen by the viewer.
[0068] So far, the video processing method according to the embodiment of the present disclosure has been described. As mentioned above, through the above-mentioned video processing method, it is possible to automatically determine and use optimized video parameters to play the panoramic video based on the movable objects in the panoramic video and the objects they are interacting with, so that the viewer can easily locate the picture of interest and avoid missing the details in the video presentation process.
[0069] In addition, according to an embodiment of the present disclosure, if no interactive object is detected in step S103, scaling may not be performed, or the playback parameters of the video may not be adjusted, and the next panoramic image frame of the panoramic video may continue to be played with the playback parameters of the current panoramic image frame or with the default playback parameters.
[0070] In addition, according to an embodiment of the present disclosure, when it is determined in the above step S102 that the motion state of the movable object is moving, the above video processing method may proceed to an optional step S103', in which, when it is determined that the motion state of the movable object is moving, the movable object is tracked, and the next panoramic image frame of the panoramic video is played using a default zoom ratio, or scaling may not be performed, wherein the term "tracking" in the present disclosure may refer to keeping the tracked movable object in the central area of the picture, or placing the movable object in the current panoramic image frame. In this way, when the movable object changes from moving to stationary, the interactive object to be scaled can be quickly located, thereby making the picture of the panoramic video played more coherent and natural, while avoiding the viewer's attention from being diverted and improving the viewing experience.
[0071] In addition, according to an embodiment of the present disclosure, a manual mode is also added to the playback end of the video, that is, the above steps may further include: when receiving an instruction for the manual mode selected by the user, the movable object can be stopped from being tracked, and the next panoramic image frame of the panoramic video can be played using a manual zoom ratio, and the manual zoom ratio is determined according to the user operation. For example, when automatically tracking a movable object, the viewer can select a manual mode at the playback end of the video to exit the automatic tracking of the movable object and manually adjust the viewing angle of the panoramic video instead, and can zoom the currently playing video by manual input or mouse wheel, that is, the user can force the switch to manually adjust the playback parameters of the panoramic video by inputting an instruction, and conversely, the user can also restore the above-mentioned automatic video processing method by selecting the automatic mode. In this way, different from the method in the prior art that can only adjust the lens at the shooting end, a more flexible operation and control method is provided for the viewer, so that the user can adjust the playback of the video at any time by manual intervention at the playback end, and the adjustment can be completed without relying on the operation of the shooting end.
[0072] In addition, according to an embodiment of the present disclosure, when there are multiple objects in a panoramic video or a current panoramic image, a movable object can be determined based on object attributes, for example, the object attributes can include: the distance of the object from the panoramic camera, or the movement amplitude of the object, or the biometric features of the object (such as face, voiceprint, gait, etc.), or whether the object is speaking, or any combination of the above. In this way, the movable object is always determined as one in each panoramic image frame of the panoramic video, so that the viewer's attention is always focused on the desired object to avoid interference caused by too much visual information.
[0073] Next, we will refer to Figure 8 An example of a video processing device according to an embodiment of the present disclosure is described.
[0074] Figure 8 FIG. 8 is a block diagram of a video processing device 800 according to an embodiment of the present disclosure. Figure 8 As shown, the video processing device 800 includes: an acquisition unit 810, a determination unit 820 and a playback unit 830. It should be understood that the structure shown is only exemplary and not restrictive, and in addition to these units, the video processing device 800 may also include other components, however, since these components are irrelevant to the content of the embodiment, their illustration and description are omitted herein.
[0075] In addition, since the specific details of the following operations performed by the video processing device 800 according to the embodiment of the present disclosure are different from those described above with reference to Figure 1-7 The details described are generally similar, so for the purpose of brevity, some descriptions of the same details are omitted herein. Each module or component in the video processing device 800 will be introduced one by one below.
[0076] The acquisition unit 810 is configured to acquire a panoramic video composed of a series of continuous panoramic image frames. The specific processing performed by the acquisition unit 810 can be combined with the above Figure 1 The corresponding contents of step S101 described above are consistent.
[0077] Specifically, according to an embodiment of the present disclosure, the acquisition unit 810 may be an image capture device such as a panoramic camera or a component in such a device for capturing panoramic video or images, or may be a device for receiving panoramic video or images from such an image capture device or component. In addition, the acquisition unit 810 may be a physically separate component from other modules in the video processing device 800, and the acquisition unit 810 may transmit the panoramic video or image to other modules in the video processing device 800 via a wired or wireless manner. Alternatively, the acquisition unit 810 may also be integrated in the same component or located within the same system as other modules in the video processing device 800, and other modules or components in the video processing device 800 receive the panoramic video or image acquired by the acquisition unit 810 via an internal bus.
[0078] The determination unit 820 is configured to determine a first position and a motion state of a movable object in a current panoramic image frame of a panoramic video, wherein when the motion state of the movable object is determined to be stationary, an interactive object with which the movable object is interacting is detected according to the first position of the movable object, and a second position of the interactive object is determined, and a playback window for a next panoramic image frame of the panoramic video is determined according to the second position of the interactive object, and a zoom ratio for the next panoramic image frame is determined. The specific processing performed by the determination unit 820 can be combined with the above Figure 1 The corresponding contents of steps S102-S104 described are consistent.
[0079] In addition, according to an embodiment of the present disclosure, the determination unit 820 can also implement the steps described above for determining interactive objects, interactive direction lines, playback parameters, and determining movable objects from multiple objects, and the detection and recognition processing included in the above steps can be performed based on a convolutional neural network.
[0080] The playback unit 830 is configured to use the playback window and the zoom ratio to play the next panoramic image frame. In addition, according to an embodiment of the present disclosure, the playback unit 830 may also implement the above-described tracking of the movable object when it is determined that the motion state of the movable object is moving, and playing the panoramic video using the default zoom ratio; and when receiving an instruction for the manual mode selected by the user, stopping tracking the movable object and playing the panoramic video using the manual zoom ratio.
[0081] Next, we will refer to Fig. 9 Another example of a video processing device according to an embodiment of the present disclosure is described.
[0082] Fig. 9 FIG. 9 is a block diagram of a video processing device 900 according to an embodiment of the present disclosure. Fig. 9 As shown, the video processing device 900 includes: a processor 910 and a memory 920. The video processing device 900 may be a computer or a server. It should be understood that the structure shown is only exemplary and not restrictive, and in addition to these units, the video processing device 900 may also include other components, however, since these components are irrelevant to the content of the embodiment, their illustration and description are omitted herein.
[0083] In addition, since the specific details of the following operations performed by the video processing device 900 according to the embodiment of the present disclosure are different from those described above with reference to Figure 1-7 The details described are generally similar, so for the purpose of brevity, some descriptions of the same details are omitted herein. The following will introduce each module or component in the video processing device 900 one by one.
[0084] The processor 910 can be a central processing unit (CPU) or other form of processing unit with data processing capability and / or instruction execution capability, and can utilize computer program instructions stored in the memory 920 to perform desired functions, wherein, when the computer program instructions are executed by the processor 910, the following steps are performed: obtaining a panoramic video consisting of a series of continuous panoramic image frames; determining a first position and motion state of a movable object in a current panoramic image frame of the panoramic video; when it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; and determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame, wherein the determined playback window and zoom ratio are used to play the next panoramic image frame.
[0085] In addition, according to an embodiment of the present disclosure, the steps of determining interactive objects, interactive direction lines, playback parameters, and determining movable objects from multiple objects described above can also be implemented, and the detection and recognition processing included in the above steps can be performed based on a convolutional neural network.
[0086] The memory 920 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. One or more computer program instructions may be stored on the computer-readable storage medium, so that the processor 910 may run the program instructions to implement the functions of the video processing device described in the above embodiments and / or other desired functions, and / or may execute the video processing method according to the embodiment of the present disclosure. Various applications and various data may also be stored in the computer-readable storage medium.
[0087] Next, a computer-readable storage medium according to an embodiment of the present disclosure will be described. The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, wherein the computer program instructions are executed by a processor to implement the following steps: obtaining a panoramic video consisting of a series of continuous panoramic image frames; determining a first position and motion state of a movable object in a current panoramic image frame of the panoramic video; when the motion state of the movable object is determined to be stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; and determining a playback window for the next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame, wherein the determined playback window and zoom ratio are used to play the next panoramic image frame.
[0088] The above steps are performed by the processor according to the computer program instructions of the embodiment of the present disclosure in combination with the above Figure 1-7 In addition, it should be understood that each component or module in the above video processing device can be implemented by hardware, can also be implemented by software, and can also be implemented by a combination of hardware and software.
[0089] The above-mentioned embodiments are merely illustrative and non-restrictive, and those skilled in the art can combine and combine some steps and devices from the above-mentioned separately described embodiments according to the concept of the present disclosure to achieve the effects of the present disclosure. Such combined and combined embodiments are also included in the present disclosure, and such combinations and combinations are not described one by one herein. Note that the advantages, strengths, effects, etc. mentioned in the present disclosure are merely examples and non-restrictive, and it cannot be considered that these advantages, strengths, effects, etc. are necessary for each embodiment of the present disclosure. In addition, the specific details of the above-mentioned invention are only for the purpose of illustration and ease of understanding, and are not restrictive. The above-mentioned details do not limit the present disclosure to the necessity of adopting the above-mentioned specific details to be implemented.
[0090] The block diagrams of the modules, devices, equipment, and systems involved in the present disclosure are only illustrative examples and do not wish to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these modules, devices, equipment, and systems can be connected, arranged, and configured in any manner. In addition, words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0091] The step flow charts and the above method descriptions in this disclosure are only illustrative examples and do not wish to require or imply that the steps of each embodiment must be performed in the order given. As will be appreciated by those skilled in the art, the order of the steps in the above embodiments can be performed in any order. Words such as "thereafter", "then", "next", etc. do not wish to limit the order of steps; these words are only used to guide the reader through the description of these methods. In addition, any reference to a singular element, such as using the article "one", "an", or "the", "said", is not to be construed as limiting the element to the singular.
[0092] In addition, the steps and devices in the various embodiments of the present disclosure are not limited to being implemented in a certain embodiment. In fact, new embodiments can be conceived based on the concepts of the present disclosure in combination with relevant partial steps and partial devices in the various embodiments of the present disclosure, and these new embodiments are also included in the scope of the present disclosure. In addition, the methods and functions disclosed herein include one or more actions for implementing the methods described. Methods and / or actions can be interchangeable with each other without departing from the scope of the claims. In other words, unless a specific order of actions is specified, the order and / or use of specific actions can be modified without departing from the scope of the claims.
[0093] Each operation of the method described above can be performed by any suitable means capable of performing the corresponding functions. The means may include various hardware and / or software components and / or modules, including but not limited to circuits, application specific integrated circuits (ASICs) or processors. The various illustrated logic blocks, modules and circuits described may be implemented or performed using a general purpose processor, digital signal processor (DSP), ASIC, field programmable gate array signal (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components or any combination thereof designed to perform the functions described herein. The general purpose processor may be a microprocessor, but as an alternative, the processor may be any commercially available processor, controller, microcontroller or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core or any other such configuration.
[0094] The steps of the method or algorithm described in conjunction with the present disclosure can be directly embedded in hardware, in a software module executed by a processor, or in a combination of the two. A software module can exist in any form of tangible storage medium. Some examples of storage media that can be used include random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, hard disks, removable disks, CD-ROMs, etc. A storage medium can be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. In an alternative manner, the storage medium can be integral with the processor. A software module can be a single instruction or many instructions, and can be distributed on several different code segments, between different programs, and across multiple storage media.
[0095] Thus, a computer program product can perform the operations given herein. For example, such a computer program product can be a computer-readable tangible medium having instructions tangibly stored (and / or encoded) thereon, which can be executed by one or more processors to perform the operations described herein. The computer program product can include packaging materials. The software or instructions can also be transmitted via a transmission medium. For example, the software can be transmitted from a website, server, or other remote source using a transmission medium such as a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, or microwave.
[0096] In addition, the module and / or other appropriate means for performing the methods and techniques described herein can be downloaded and / or otherwise obtained by the user terminal and / or base station when appropriate. For example, such a device can be coupled to a server to facilitate the transmission of the means for performing the methods described herein. Alternatively, the various methods described herein can be provided via a storage component (e.g., RAM, ROM, a physical storage medium such as a CD or a floppy disk, etc.) so that the user terminal and / or base station can obtain the various methods when being coupled to the device or providing a storage component to the device. In addition, any other appropriate technology for providing the methods and techniques described herein to a device can be utilized.
[0097] Other examples and implementations are within the scope and spirit of the present disclosure and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hard wiring, or any combination of these. Features that implement the functions can also be physically located in various locations, including being distributed so that parts of the functions are implemented at different physical locations. Moreover, as used herein, including as used in the claims, "or" used in a list of items that begin with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). In addition, the wording "exemplary" does not mean that the example described is preferred or better than other examples.
[0098] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.
[0099] The above description of the invented aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure should not be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.
[0100] The above description has been given for the purpose of illustration and description. Moreover, this description should not limit the embodiments of the present disclosure to the forms invented herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A video processing method, comprising: Acquire a panoramic video consisting of a series of continuous panoramic image frames; Determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; When it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame; as well as The next panoramic image frame is played using the play window and the zoom ratio.
2. The video processing method according to claim 1, wherein: The detecting the interactive object comprises: Performing key point detection on the movable object to determine key features of the movable object; Determining an interaction direction line in the current panoramic image frame according to a vector corresponding to the key feature; Detecting objects intersecting the interaction direction line in the current panoramic image frame as candidate interaction objects; and At least one candidate interaction object that meets a predetermined condition among the candidate interaction objects is determined as the interaction object with which the movable object is interacting.
3. The video processing method according to claim 2, wherein: Determining the interaction direction line in the current panoramic image frame includes: Projecting the current panoramic image frame into a three-dimensional space coordinate system; Determine a perimeter line where the vector corresponding to the key feature is located in the three-dimensional space coordinate system; and The determined perimeter line is projected back into the current panoramic image frame to determine the interaction direction line.
4. The video processing method according to claim 2, wherein: The predetermined conditions include: The candidate interaction object is the first candidate interaction object from the direction of the vector corresponding to the key feature; or The candidate interactive object is the candidate interactive object closest to the movable object; or The candidate interaction object is a candidate interaction object of a predetermined type; or The candidate interactive object is located at a predetermined position or area; or Any combination of the above.
5. The video processing method according to any one of claims 1 to 4, wherein: The determining of a playback window for a next panoramic image frame of the panoramic video comprises: Projecting the current panoramic image frame into a three-dimensional space coordinate system; determining the three-dimensional coordinates of the second position in the three-dimensional space coordinate system; and Determining the playback window for the next panoramic image frame according to the three-dimensional coordinates of the second position; and Wherein, determining the scaling ratio for the next panoramic image frame includes: The scaling ratio for the next panoramic image frame is determined according to the size information of the interactive object.
6. The video processing method according to claim 5, wherein: The next panoramic image frame is played using the playback window and the zoom ratio, so that the interactive object is located in a central area of the next panoramic image frame.
7. The video processing method according to any one of claims 1 to 4, further comprising: When it is determined that the motion state of the movable object is moving, the movable object is tracked, and a next panoramic image frame of the panoramic video is played using a default zoom ratio.
8. The video processing method according to claim 7, further comprising: When a user-selected instruction for the manual mode is received, tracking of the movable object is stopped, and a next panoramic image frame of the panoramic video is played using a manual zoom ratio, where the manual zoom ratio is determined according to a user operation.
9. The video processing method according to any one of claims 1 to 4, wherein: When there are multiple objects in the current panoramic image, the movable object is determined based on object attributes, where the object attributes include: The distance of the object from the panoramic camera; or the amplitude of the object's motion; or the subject's biometric characteristics; or whether the subject is speaking; or Any combination of the above.
10. A video processing device, comprising: An acquisition unit configured to acquire a panoramic video consisting of a series of continuous panoramic image frames; a determining unit configured to determine a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video, wherein when it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object, and determining a playback window for a next panoramic image frame of the panoramic video according to the second position of the interactive object, and determining a zoom ratio for the next panoramic image frame; as well as The playback unit is configured to play the next panoramic image frame using the playback window and the zoom ratio.
11. A video processing device, comprising: processor; and a memory having computer program instructions stored therein, Wherein, when the computer program instructions are executed by the processor, the processor is caused to perform the following steps: Acquire a panoramic video consisting of a series of continuous panoramic image frames; Determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; When it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; and A playback window for a next panoramic image frame of the panoramic video is determined according to the second position of the interactive object, and a zoom ratio for the next panoramic image frame is determined, wherein the playback window and the zoom ratio are used to play the next panoramic image frame.
12. A computer-readable storage medium having computer program instructions stored thereon, wherein: The computer program instructions, when executed, implement the following steps: Acquire a panoramic video consisting of a series of continuous panoramic image frames; Determining a first position and a motion state of a movable object in a current panoramic image frame of the panoramic video; When it is determined that the motion state of the movable object is stationary, detecting an interactive object with which the movable object is interacting according to the first position of the movable object, and determining a second position of the interactive object; as well as A playback window for a next panoramic image frame of the panoramic video is determined according to the second position of the interactive object, and a zoom ratio for the next panoramic image frame is determined, wherein the playback window and the zoom ratio are used to play the next panoramic image frame.
