Virtual camera control method and device, program product and electronic equipment
By adjusting the camera status of the virtual camera, the position of the virtual object in the virtual camera screen is biased against the direction of movement, which solves the problems of monotonous screen and insufficient field of view in virtual camera control, and improves the diversity of scene images and user experience. .
Patent Information
- Application Number
- CN202410763904.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-15
AI Technical Summary
In the virtual camera control method, the existing technology results in a monotonous structure of the shooting picture and insufficient visual field information about the direction of the virtual object, which affects the player's perception.
By obtaining the shooting direction of the virtual camera at the current frame time and the moving direction of the virtual object at the current frame time, the target angle is determined, and the camera status of the virtual camera is adjusted according to the angle, so that the position of the virtual object in the scene is biased towards the movement direction. The opposite side enhances the diversity and visual field information of the scene.
It improves the diversity of scene composition and adds field of view information about the direction of virtual objects, making it easier for users to preview and predict the further movement direction of virtual objects in advance.
Smart Images

Figure CN118767425A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a virtual camera control method, a virtual camera control device, a computer program product, and an electronic device. Background Art
[0002] The virtual camera is mainly used to frame the virtual scene so as to show the user the image of the virtual world through the framing field of view. Different shooting control methods will bring different visual experiences to the user.
[0003] In the related art, the virtual camera control method mainly involves the following two methods: one is to bind the virtual camera to the virtual object controlled by the player, so that the virtual object is always located at the center of the picture taken by the virtual camera regardless of its direction. Under this control method, the composition of the picture taken by the virtual camera is relatively monotonous, which can easily cause visual fatigue to the player; the other is to control the virtual camera to move and follow after the virtual object moves. The movement of the virtual camera always lags behind the movement of the virtual object. Under this control method, the scene picture captured by the virtual camera includes more scene areas that the virtual object has passed, which greatly reduces the field of view information of the virtual object's direction and hinders the player's field of view.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a virtual camera control method, a virtual camera control device, a computer program product and an electronic device, so as to at least to some extent solve the problems in the related art that the structure of the picture taken by the virtual camera is monotonous and the field of view information of the direction of the virtual object is insufficient.
[0006] According to a first aspect of the present disclosure, a virtual camera control method is provided, wherein a graphical user interface is provided through a terminal device, the graphical user interface including a scene picture captured by a virtual camera, wherein the scene picture includes at least a virtual object, the method comprising: obtaining a shooting direction of the virtual camera at a current frame moment and a moving direction of the virtual object at a current frame moment, and determining a target angle between the shooting direction and the moving direction; and according to the target angle, controlling and adjusting the camera state of the virtual camera so that the position of the virtual object in the scene picture is biased toward a side opposite to the moving direction.
[0007] According to a second aspect of the present disclosure, a virtual camera control device is provided, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes a scene picture captured by a virtual camera, wherein the scene picture includes at least one virtual object, and the device includes: a target angle determination module, used to obtain the shooting direction of the virtual camera at a current frame moment and the moving direction of the virtual object at the current frame moment, and determine the target angle between the shooting direction and the moving direction; a camera state adjustment module, used to control and adjust the camera state of the virtual camera according to the target angle, so that the position of the virtual object in the scene picture is biased to the side opposite to the moving direction.
[0008] According to a third aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the virtual camera control method of the first aspect and possible implementation manners thereof are implemented.
[0009] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the virtual camera control method of the first aspect and its possible implementation methods by executing the executable instructions.
[0010] The technical solution disclosed in this disclosure has the following beneficial effects:
[0011] In the above virtual camera control process, the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment are obtained, and the target angle between the shooting direction and the moving direction is determined; according to the target angle, the camera state of the virtual camera is controlled and adjusted so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction; wherein the camera state includes the position of the end point of the force arm corresponding to the virtual camera. Since there are multiple possibilities for the angle between the shooting direction of the virtual camera and the moving direction of the virtual object, adjusting the camera state corresponding to the virtual camera based on the angle can enable the virtual camera to present the virtual scene in multiple camera states, which improves the diversity of the scene picture composition to a certain extent. Furthermore, by controlling the position of the virtual object in the scene screen to be biased to the side opposite to the moving direction, the field of view information of the virtual object's direction can be increased, which is convenient for users to preview new scene content in advance, make decisions in advance, or predict the further moving direction of the virtual object. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A flowchart showing a virtual camera control method in this exemplary embodiment is shown;
[0013] Figure 2 A schematic diagram of virtual camera shooting in this exemplary embodiment is shown;
[0014] Figure 3 A schematic diagram showing a target angle between a shooting direction and a moving direction in this exemplary embodiment is shown;
[0015] Figure 4 A schematic diagram of a scene screen in this exemplary embodiment is shown;
[0016] Figure 5 A flowchart of controlling and adjusting the camera state of a virtual camera in this exemplary embodiment is shown;
[0017] Figure 6 A schematic diagram showing a curvilinear force arm offset mapping relationship in this exemplary embodiment is shown;
[0018] Figure 7 A schematic diagram showing a method of controlling and adjusting the end point of a force arm corresponding to a virtual camera in this exemplary embodiment is shown;
[0019] Figure 8 A schematic diagram of scene screen division in this exemplary embodiment is shown;
[0020] Fig. 9 A control flow chart of a virtual camera force arm endpoint in this exemplary embodiment is shown;
[0021] Fig.10 A block diagram showing a structure of a virtual camera control device in this exemplary embodiment is shown;
[0022] Fig.11 An electronic device for implementing the above-mentioned virtual camera control processing method in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0023] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.
[0024] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art should appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or one or more specific details may be replaced by other methods, components, devices, steps, etc.
[0025] In the related art, a virtual camera is bound to a virtual object controlled by a player, so that the virtual object is always located at the center of the picture taken by the virtual camera regardless of its direction. The composition is relatively monotonous, which can easily cause visual fatigue to the player. After the virtual object moves, the virtual camera is controlled to move and follow. The movement of the virtual camera always lags behind the movement of the virtual object. The scene picture captured by the virtual camera includes more scene areas that the virtual object has passed through, which greatly reduces the field of view information of the virtual object's direction, which can easily affect the player's observation experience of the game content.
[0026] In view of one or more of the above problems, exemplary embodiments of the present disclosure provide a virtual camera control method, a virtual camera control device, a computer program product, and an electronic device.
[0027] In one embodiment of the present disclosure, the virtual camera control method can be run on a local terminal device or a server. When the virtual camera control method is run on a server, the virtual camera control method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0028] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual camera control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the game processing is performed by the cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0029] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0030] In an optional embodiment, reference Figure 1 As shown, a flowchart of a virtual camera control method is provided, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a scene picture taken by a virtual camera, wherein the scene picture includes at least one virtual object, and specifically includes the following steps S110 to S120:
[0031] Step S110, obtaining the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment, and determining a target angle between the shooting direction and the moving direction;
[0032] Step S120, controlling and adjusting the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene image is biased toward a side opposite to the moving direction.
[0033] Figure 1 In the method shown, since there are multiple possibilities for the angle between the shooting direction of the virtual camera and the moving direction of the virtual object, adjusting the camera state corresponding to the virtual camera based on the angle can make the virtual camera present the virtual scene in multiple camera states, which improves the diversity of the scene picture composition to a certain extent. Furthermore, by controlling the position of the virtual object in the scene picture to be biased towards the side opposite to the moving direction, the field of view information of the virtual object's direction can be increased, which is convenient for users to preview new scene content in advance, make decisions in advance, or predict the further moving direction of the virtual object.
[0034] Below Figure 1 Provide detailed instructions for each step.
[0035] In step S110, the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment are obtained, and a target angle between the shooting direction and the moving direction is determined.
[0036] Among them, the virtual object refers to a dynamic object that can move in a virtual scene, which can be a game character in a virtual scene controlled by a game player through a terminal device, or a non-player character (NPC) pre-set by a game developer in a specific virtual scene, which is not specifically limited in this disclosure. Optionally, the virtual scene can be a simulation environment of the real world, or a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment, which is not specifically limited in this disclosure.
[0037] The virtual camera can capture a virtual scene containing a virtual object to obtain a scene image, and display the captured scene image through a graphical user interface of the terminal device. It should be noted that the scene image can be displayed in a horizontal or vertical screen in the graphical user interface, and this disclosure does not specifically limit this.
[0038] For example, Figure 2 As shown, a schematic diagram of virtual camera shooting is provided, wherein a virtual camera 201 can be connected to a virtual object 202 to be photographed via a lever arm 203, so that the virtual camera 201 can specifically shoot a virtual scene including the virtual object 202 to obtain a scene image.
[0039] The shooting direction may be a shooting direction of a virtual camera for a virtual scene, and the moving direction may be a moving direction of a virtual object in the virtual scene.
[0040] Exemplarily, the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment can be obtained, and the angle between the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment is used as the target angle.
[0041] Exemplarily, the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment can be obtained to determine the horizontal plane angle formed by the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment on the horizontal plane of the scene, and the horizontal plane angle can be used as the target angle.
[0042] like Figure 3 As shown, a schematic diagram of a target angle between a shooting direction and a moving direction is provided, wherein direction 301 is the shooting direction of a virtual camera on a horizontal plane of a scene, and direction 302 is the moving direction of a virtual object 303 on a horizontal plane of a scene. The angle between direction 301 and direction 302 can be used as a target angle.
[0043] Optionally, the target angle may be expressed in the form of a plus or minus sign plus a degree, such as -60 degrees, where the plus or minus sign may be used to indicate the offset direction of the moving direction of the virtual object at the current frame moment relative to the shooting direction of the virtual camera at the current frame moment, and the degree may be used to indicate the offset of the moving direction of the virtual object at the current frame moment relative to the shooting direction of the virtual camera at the current frame moment. The target angle may range from -180 degrees to +180 degrees.
[0044] In step S120, the camera state of the virtual camera is controlled and adjusted according to the target angle so that the position of the virtual object in the scene image is biased to the side opposite to the moving direction.
[0045] The camera state may be a display form of a virtual camera when shooting in a virtual scene.
[0046] Optionally, the camera state may include the position of the end point of the force arm corresponding to the virtual camera. It should be noted that the force arm in the present disclosure is the force arm formed between the virtual object photographed by the virtual camera and the virtual camera. Figure 2 The end point of the force arm can be the point where the force arm connects with the virtual object, such as Figure 2 As shown in the force arm endpoint 204 in FIG. Optionally, the force arm endpoint may be located at a preset position of the virtual object at the initial moment, such as the center position or neck position of the virtual object, which is not specifically limited in the present disclosure.
[0047] By adjusting the position of the end point of the force arm corresponding to the virtual camera according to the angle between the shooting direction of the virtual camera and the moving direction of the virtual object, flexible control of the scene composition can be achieved, thereby meeting the composition requirements of complex scene images.
[0048] Specifically, the position of the end point of the force arm corresponding to the virtual camera can be controlled and adjusted according to the target angle, so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction, so as to optimize the scene screen structure. Figure 4 As shown, a schematic diagram of a scene screen is provided, in which the virtual object is located on a side that is opposite to the moving direction.
[0049] In an optional embodiment, if Figure 5 As shown, the above-mentioned control and adjustment of the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction can be achieved by the following steps:
[0050] Step S510, determining a target arm offset parameter that matches the target angle according to the arm offset mapping relationship;
[0051] Step S520, according to the target lever arm offset parameter, control and adjust the position of the lever arm endpoint corresponding to the virtual camera so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0052] Figure 5 In the steps shown, the offset of the virtual camera is controlled based on the arm offset mapping relationship. The developer can change the offset effect of the virtual camera by adjusting the arm offset mapping relationship, which has strong controllability, so that the virtual object can be better located in the ideal position of the captured scene, thereby optimizing the scene structure.
[0053] Specifically, in step S510, a target arm offset parameter matching the target angle is determined according to the arm offset mapping relationship.
[0054] The arm offset mapping relationship refers to the mapping relationship between the angle and the arm offset. Optionally, the arm offset mapping relationship can be a continuous mapping relationship or a discrete mapping relationship, which can be set by the developer, and the present disclosure does not specifically limit this.
[0055] Taking a three-dimensional virtual scene as an example, the arm offset may include the offset of the arm endpoint relative to the virtual object in the X-axis, Y-axis, and Z-axis directions, wherein the X-axis, Y-axis, and Z-axis are three-dimensional coordinate axes of the virtual scene space coordinate system.
[0056] Optionally, when the arm offset mapping relationship is a continuous mapping relationship, the arm offset mapping relationship may include a mapping relationship between an angle between -180° and 180° and an arm offset. Figure 6 As shown, a schematic diagram of a curve-type arm offset mapping relationship is provided, wherein the horizontal axis is the angle, the vertical axis is the arm offset, and curve 601 is the offset mapping relationship between the angle and the arm endpoint on the X axis; curve 602 is the offset mapping relationship between the angle and the arm endpoint on the Y axis; and curve 603 is the offset mapping relationship between the angle and the arm endpoint on the Z axis. In this case, the arm offsets of the X axis, Y axis, and Z axis corresponding to the target angle between the virtual camera and the virtual object can be determined by searching for a preset arm offset curve, and the target arm offset parameters can be obtained to ensure that the arm endpoint can be offset in three-dimensional space, which is suitable for fine control of the virtual camera.
[0057] Optionally, when the arm offset mapping relationship is a discrete mapping relationship, the arm offsets corresponding to multiple candidate angles (e.g., 8 candidate angles) may be pre-defined. In this case, the arm offset corresponding to the candidate angle closest to the target angle may be selected as the target arm offset parameter. When the arm offset mapping relationship is a discrete mapping relationship, in order to ensure the smoothness of the offset effect, the target arm offset parameter that matches the target angle may also be determined by interpolation.
[0058] It should be noted that the above-mentioned arm offset mapping relationship is only an exemplary description. In actual application, the mapping relationship can be adaptively adjusted according to actual needs, and the present disclosure does not make specific limitations on this.
[0059] In an optional embodiment, the above-mentioned determination of the target force arm offset parameters that match the target angle based on the force arm offset mapping relationship can be achieved through the following steps: obtaining the object motion state of the virtual object at the current frame moment, and selecting the force arm offset mapping relationship that matches the object motion state at the current frame moment from the candidate offset mapping relationships; based on the force arm offset mapping relationship that matches the object motion state at the current frame moment, determining the target force arm offset parameters that match the target angle.
[0060] The candidate offset mapping relationships may include offset mapping relationships corresponding to different object motion states, which may include but are not limited to walking, sprinting, stillness, swimming, and flying.
[0061] Selecting the force arm offset mapping relationship that matches the object motion state at the current frame moment from the candidate offset mapping relationships can make the shooting effect of the virtual camera different due to the different motion states of the virtual object, thereby improving the diversity and aesthetics of the scene to a certain extent.
[0062] Specifically, in step S520, the position of the arm endpoint corresponding to the virtual camera is controlled and adjusted according to the target arm offset parameter, so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0063] For example, Figure 7 As shown, a schematic diagram of controlling and adjusting the force arm endpoint corresponding to the virtual camera is provided, and the position of the force arm endpoint 701 corresponding to the virtual camera can be controlled and adjusted according to the offset amounts in the X-axis, Y-axis, and Z-axis directions in the target force arm offset parameters.
[0064] In an optional embodiment, the above-mentioned control of adjusting the position of the lever arm endpoint corresponding to the virtual camera according to the target lever arm offset parameter can also be achieved by the following steps: determining the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame moment and the target lever arm offset parameter; determining the transition lever arm endpoint position of the virtual camera in sequence from the next frame moment of the current frame moment, and controlling the virtual camera to adjust to the transition lever arm endpoint position until the transition lever arm endpoint position reaches the target lever arm endpoint position.
[0065] The target arm end point position refers to the final position to which the arm end point is to be adjusted.
[0066] For example, the target arm endpoint position can be obtained by superimposing the offsets in the X-axis, Y-axis, and Z-axis directions in the target arm offset parameter on the arm endpoint position of the virtual camera at the current frame time. The arm endpoint position can be expressed in the form of coordinates.
[0067] After determining the target lever arm endpoint position, interpolation can be performed in frames based on the lever arm endpoint position of the virtual camera at the current frame moment and the target lever arm endpoint position to determine the transition lever arm endpoint position, so that the lever arm endpoint of the virtual camera can move more smoothly from the lever arm endpoint position at the current frame moment to the target lever arm endpoint position.
[0068] In an optional embodiment, the above-mentioned determination of the transition arm endpoint position of the virtual camera can be achieved through the following steps: obtaining camera motion control parameters; determining the transition arm endpoint position corresponding to the frame time to be processed based on the arm endpoint position of the virtual camera at the current frame time, the target arm endpoint position, the camera motion control parameters and the frame interval between the frame time to be processed and the current frame time.
[0069] Among them, the camera motion control parameters can be used to control the speed effect of the virtual camera arm endpoint when moving, so as to avoid the movement process being too stiff. It should be noted that in actual application, the camera motion control parameters can be set by the developer based on experience, and the present disclosure does not specifically limit this. Exemplarily, the camera motion control parameters can be expressed by the percentage of the total distance moved by the virtual camera in a unit time, such as 10% of the total distance moved in 1 second. The longer the total distance, the faster the movement speed; the shorter the total distance, the slower the movement speed. The total distance can be the distance between the arm endpoint position at the current frame moment and the target arm endpoint position.
[0070] Optionally, based on the virtual camera's lever arm endpoint position at the current frame time, the target lever arm endpoint position, the camera motion control parameters, and the frame interval between the frame time to be processed and the current frame time, the virtual camera can be controlled to move faster the farther it is from the target lever arm endpoint position, and slower the closer it is to the target lever arm endpoint position, so that the virtual camera produces a slow deceleration motion effect.
[0071] Optionally, based on the virtual camera's arm endpoint position at the current frame moment, the target arm endpoint position, the camera motion control parameters, and the frame interval between the frame to be processed and the current frame moment, the virtual camera can be controlled to move faster the farther it is from the arm endpoint position at the current frame moment; and move slower the closer it is to the arm endpoint position at the current frame moment, so that the virtual camera produces a slowly accelerating motion effect.
[0072] In an optional embodiment, the above-mentioned determination of the transitional lever arm endpoint position corresponding to the frame moment to be processed based on the lever arm endpoint position of the virtual camera at the current frame moment, the target lever arm endpoint position, the camera motion control parameters and the frame interval between the frame moment to be processed and the current frame moment can be specifically achieved through the following steps: an adjustment strength coefficient can be determined through the camera motion control parameters and the frame interval between the frame moment to be processed and the current frame moment, and the transitional lever arm endpoint position corresponding to the frame moment to be processed is determined according to the lever arm endpoint position of the virtual camera at the current frame moment, the target lever arm endpoint position and the adjustment strength coefficient.
[0073] Optionally, the adjustment intensity coefficient can be obtained by calculating Max(Min(t*c,1),0), where the Min() function is a function for selecting the minimum element; the Max() function is a function for selecting the maximum element; c is a camera motion control parameter; and t is a frame interval between the frame to be processed and the current frame.
[0074] Optionally, the transition arm endpoint position corresponding to the frame to be processed can be obtained by calculating V1*(1-k)+V2*k, which can make the virtual camera produce slow acceleration and deceleration motion effects during the state adjustment process, making the starting and stopping effects softer. Among them, V1 is the arm endpoint position of the virtual camera at the current frame moment; V2 is the target arm endpoint position; k is the adjustment strength coefficient.
[0075] In an optional implementation, the acquisition of the camera motion control parameters may be achieved by the following steps: acquiring the object motion state of the virtual object at the current frame moment, and selecting the camera motion control parameters that match the object motion state from the candidate camera motion control parameters.
[0076] The candidate camera motion control parameters may include camera motion control parameters corresponding to different object motion states, which may include but are not limited to walking, sprinting, stillness, swimming, flying, and the like.
[0077] By selecting camera motion control parameters that match the motion state of the current frame from the candidate camera motion control parameters, the shooting effect of the virtual camera can be different due to the different motion states of the virtual character, which improves the diversity and aesthetics of the scene to a certain extent.
[0078] Optionally, the scene image may be pre-divided into a plurality of regions, and the object display region may be set according to these regions. The object display region may include the intersection points or intersection lines of the divided regions. Figure 8 As shown in the schematic diagram of scene screen division, the scene screen can be divided into structures such as a tic-tac-toe structure, an X structure, a circular line structure, a symmetrical structure, and a triangle structure, and the present disclosure does not make any specific limitation on this.
[0079] Taking the tic-tac-toe structure division of the scene screen as an example, the object display area may include the three-point line or intersection of the tic-tac-toe structure. It should be noted that in the actual application process, the division method of the scene screen and the object display area may be set according to the development requirements, and the present disclosure does not specifically limit this.
[0080] It should be noted that the arm offset mapping relationship in the present disclosure can be configured according to the set object display area so that the virtual object can be located within the object display area as much as possible.
[0081] In addition, the camera state of the virtual camera may also include, but is not limited to: any one or more of the length of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera, the angle of the virtual camera relative to the force arm, and the rotation angle corresponding to the virtual camera. This can enrich the adjustable properties of the virtual camera, flexibly meet diverse user needs, and improve the diversity and aesthetics of the camera screen to a certain extent.
[0082] Optionally, similar to adjusting the position of the end point of the lever arm corresponding to the virtual camera, the lever arm length corresponding to the virtual camera can be adjusted by the following steps: according to the lever arm length mapping relationship, determine the target lever arm length adjustment parameter that matches the target angle; according to the lever arm length of the virtual camera at the current frame moment and the target lever arm length adjustment parameter, determine the target lever arm length; starting from the next frame moment of the current frame moment, determine the transition lever arm length of the virtual camera in sequence backward, and control the virtual camera to adjust to the transition lever arm length until the transition lever arm length reaches the target lever arm length. Exemplarily, the transition lever arm length corresponding to the frame moment to be processed can be obtained by calculating D1*(1-k)+D2*k. Wherein, D1 is the lever arm length of the virtual camera at the current frame moment; D2 is the target lever arm length; k is the adjustment strength coefficient.
[0083] Optionally, similar to adjusting the position of the end point of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera can be adjusted by the following steps: according to the field of view angle mapping relationship, determine the target field of view angle adjustment parameter that matches the target angle; according to the field of view angle of the virtual camera at the current frame moment and the target field of view angle adjustment parameter, determine the target field of view angle; starting from the next frame moment of the current frame moment, determine the transition field of view angle of the virtual camera in sequence backward, and control the virtual camera to adjust to the transition field of view angle until the transition field of view angle reaches the target field of view angle. Exemplarily, the transition field of view angle corresponding to the frame moment to be processed can be obtained by calculating Q1*(1-k)+Q2*k. Among them, Q1 is the field of view angle of the virtual camera at the current frame moment; Q2 is the target field of view angle; k is the adjustment intensity coefficient.
[0084] Optionally, similar to adjusting the position of the force arm endpoint corresponding to the virtual camera, the angle of the virtual camera relative to the force arm can be adjusted by the following steps: according to the force arm angle mapping relationship, determine the target force arm angle adjustment parameter that matches the target angle; determine the target force arm angle according to the force arm angle of the virtual camera at the current frame moment and the target force arm angle adjustment parameter; determine the transition force arm angle of the virtual camera in sequence from the next frame moment of the current frame moment, and control the virtual camera to adjust to the transition force arm angle until the transition force arm angle reaches the target force arm angle. Exemplarily, the transition force arm angle corresponding to the frame moment to be processed can be obtained by calculating W1*(1-k)+W2*k. Wherein, W1 is the force arm angle of the virtual camera at the current frame moment; W2 is the target force arm angle; k is the adjustment strength coefficient.
[0085] Optionally, the rotation direction and rotation angle corresponding to the virtual camera can be controlled and adjusted according to the target angle. Specifically, the rotation angle can be determined according to the offset direction of the moving direction of the virtual object at the current frame moment relative to the shooting direction of the virtual camera at the current frame moment; the rotation angle can be determined according to the offset of the moving direction of the virtual object at the current frame moment relative to the shooting direction of the virtual camera at the current frame moment; and the virtual camera can be controlled and adjusted based on the rotation direction and rotation angle. Exemplarily, the target angle is between -180° and 180°. If the target angle is negative, the rotation direction of the virtual camera can be determined to be counterclockwise, so that the captured scene image is skewed in the clockwise direction; if the target angle is positive, the rotation direction of the virtual camera can be determined to be clockwise, so that the captured scene image is skewed in the counterclockwise direction. Exemplarily, the rotation angle of the virtual camera can be fixed, or it can be positively correlated with the offset of the moving direction of the virtual object at the current frame moment relative to the shooting direction of the virtual camera at the current frame moment.
[0086] like Fig. 9 As shown, a control flow chart of a virtual camera arm endpoint is provided, which may specifically include the following steps:
[0087] Step S901, obtaining the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment, and determining a target angle between the shooting direction and the moving direction;
[0088] Step S902, obtaining the object motion state of the virtual object at the current frame time, and selecting a force arm offset mapping relationship that matches the object motion state at the current frame time from the candidate offset mapping relationships;
[0089] Step S903, determining a target arm offset parameter that matches the target angle based on a lever arm offset mapping relationship that matches the object motion state at the current frame moment;
[0090] Step S904, determining the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame time and the target lever arm offset parameter;
[0091] Step S905, starting from the next frame time of the current frame time, the transition arm endpoint position of the virtual camera is determined sequentially backward, and the virtual camera is controlled to adjust to the transition arm endpoint position until the transition arm endpoint position reaches the target arm endpoint position, so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0092] The exemplary embodiment of the present disclosure also provides a virtual camera control device, which provides a graphical user interface through a terminal device, wherein the graphical user interface includes a scene picture taken by the virtual camera, wherein the scene picture includes at least a virtual object, and the virtual object is represented by a virtual object. Fig.10 As shown, the virtual camera control device 1000 may include the following program modules:
[0093] The target angle determination module 1010 is used to obtain the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment, and determine the target angle between the shooting direction and the moving direction;
[0094] The camera state adjustment module 1020 is used to control and adjust the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0095] In an optional implementation, based on the above solution, the camera state includes the position of the arm endpoint corresponding to the virtual camera. The camera state adjustment module 1020 includes: a target arm offset parameter determination module, which is used to determine the target arm offset parameter that matches the target angle according to the arm offset mapping relationship; and an arm endpoint adjustment module, which is used to control and adjust the position of the arm endpoint corresponding to the virtual camera according to the target arm offset parameter, so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0096] In an optional embodiment, based on the aforementioned scheme, the target lever arm offset parameter determination module can be configured to: obtain the object motion state of the virtual object at the current frame moment, and select a lever arm offset mapping relationship that matches the object motion state at the current frame moment from the candidate offset mapping relationships; based on the lever arm offset mapping relationship that matches the object motion state at the current frame moment, determine the target lever arm offset parameter that matches the target angle.
[0097] In an optional embodiment, based on the aforementioned scheme, the lever arm endpoint adjustment module includes: a target lever arm endpoint position determination module, which is used to determine the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame moment and the target lever arm offset parameter; a transition lever arm endpoint position determination module, which is used to determine the transition lever arm endpoint position of the virtual camera in sequence from the next frame moment of the current frame moment, and control the virtual camera to adjust to the transition lever arm endpoint position until the transition lever arm endpoint position reaches the target lever arm endpoint position.
[0098] In an optional embodiment, based on the aforementioned scheme, the transition arm endpoint position determination module includes: a camera motion control parameter acquisition module, used to obtain camera motion control parameters; a module for determining the endpoint position of the frame to be processed, used to determine the transition arm endpoint position corresponding to the frame to be processed based on the virtual camera's arm endpoint position at the current frame time, the target arm endpoint position, the camera motion control parameters, and the frame interval between the frame to be processed and the current frame time.
[0099] In an optional implementation, based on the aforementioned scheme, the camera motion control parameter acquisition module may be configured to: obtain the object motion state of the virtual object at the current frame moment, and select camera motion control parameters that match the object motion state from the candidate camera motion control parameters.
[0100] In an optional embodiment, based on the aforementioned scheme, the camera state also includes any one or more of the following: the length of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera, the angle of the virtual camera relative to the force arm, and the rotation direction and rotation angle corresponding to the virtual camera.
[0101] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.
[0102] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the virtual camera control method is implemented.
[0103] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0104] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0105] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0106] The computer program may be carried or transmitted via electrical, magnetic, optical, electromagnetic, infrared, or other signals. The electronic device may convert the signal carrying the computer program into a digital signal, thereby running the computer program. When the computer program is run on an electronic device, its code is used to enable the electronic device to execute (more specifically, the processor of the electronic device may execute) the method steps of various exemplary embodiments of the present disclosure. Exemplarily, the following steps may be included:
[0107] Obtain the shooting direction of the virtual camera at the current frame time and the moving direction of the virtual object at the current frame time, and determine the target angle between the shooting direction and the moving direction;
[0108] According to the target angle, the camera state of the virtual camera is controlled and adjusted so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0109] In an optional embodiment, based on the above scheme, the camera state includes the position of the end point of the force arm corresponding to the virtual camera. The above control of adjusting the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction can be achieved by the following steps: determining the target force arm offset parameter matching the target angle according to the force arm offset mapping relationship; controlling the position of the end point of the force arm corresponding to the virtual camera according to the target force arm offset parameter so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0110] In an optional embodiment, based on the aforementioned scheme, the above-mentioned determination of the target force arm offset parameters that match the target angle based on the force arm offset mapping relationship can be achieved through the following steps: obtaining the object motion state of the virtual object at the current frame moment, and selecting the force arm offset mapping relationship that matches the object motion state at the current frame moment from the candidate offset mapping relationships; determining the target force arm offset parameters that match the target angle based on the force arm offset mapping relationship that matches the object motion state at the current frame moment.
[0111] In an optional embodiment, based on the aforementioned scheme, the above-mentioned control and adjustment of the position of the lever arm endpoint corresponding to the virtual camera according to the target lever arm offset parameter can be achieved through the following steps: determining the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame moment and the target lever arm offset parameter; determining the transition lever arm endpoint position of the virtual camera in sequence from the next frame moment of the current frame moment, and controlling the virtual camera to adjust to the transition lever arm endpoint position until the transition lever arm endpoint position reaches the target lever arm endpoint position.
[0112] In an optional embodiment, based on the aforementioned scheme, the above-mentioned determination of the transition arm endpoint position of the virtual camera can be achieved through the following steps: obtaining camera motion control parameters; determining the transition arm endpoint position corresponding to the frame time to be processed based on the arm endpoint position of the virtual camera at the current frame time, the target arm endpoint position, the camera motion control parameters and the frame interval between the frame time to be processed and the current frame time.
[0113] In an optional implementation, based on the aforementioned scheme, the above-mentioned acquisition of camera motion control parameters can be achieved through the following steps: obtaining the object motion state of the virtual object at the current frame moment, and selecting camera motion control parameters that match the object motion state from the candidate camera motion control parameters.
[0114] In an optional embodiment, based on the aforementioned scheme, the above-mentioned camera state also includes any one or more of the following: the length of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera, the angle of the virtual camera relative to the force arm, and the rotation direction and rotation angle corresponding to the virtual camera.
[0115] In the above steps, since there are multiple possibilities for the angle between the shooting direction of the virtual camera and the moving direction of the virtual object, adjusting the camera state corresponding to the virtual camera based on the angle can make the virtual camera present the virtual scene in multiple camera states, which improves the diversity of the scene picture composition to a certain extent. Furthermore, by controlling the position of the virtual object in the scene picture to be biased towards the side opposite to the moving direction, the field of view information of the virtual object's direction can be increased, which is convenient for users to preview new scene content in advance, make decisions in advance, or predict the further moving direction of the virtual object.
[0116] The exemplary embodiment of the present disclosure also provides an electronic device capable of implementing the above-mentioned virtual camera control method. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as program code. The processor executes the method in the exemplary embodiment by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.
[0117] Reference below Fig.11 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Fig.11 The electronic device 1100 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0118] like Fig.11 As shown, the electronic device 1100 may include: a processor 1110 , a memory 1120 , a bus 1130 , an I / O (input / output) interface 1140 , a network adapter 1150 , and a display 1160 .
[0119] The memory 1120 may include a volatile memory, such as a RAM 1121, a cache unit 1122, and may also include a non-volatile memory, such as a ROM 1123. The memory 1120 may also include one or more program modules 1124, such program modules 1124 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 1124 may include each module in the above-mentioned device.
[0120] Processor 1110 may include one or more processing units. For example, processor 1110 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.
[0121] The processor 1110 may be configured to execute executable instructions stored in the memory 1120 , such as executing any one or more method steps in the exemplary embodiment.
[0122] Exemplarily, the processor 1110 may perform the following steps:
[0123] Obtain the shooting direction of the virtual camera at the current frame time and the moving direction of the virtual object at the current frame time, and determine the target angle between the shooting direction and the moving direction;
[0124] According to the target angle, the camera state of the virtual camera is controlled and adjusted so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0125] In an optional embodiment, based on the aforementioned scheme, the camera state includes the position of the force arm endpoint corresponding to the virtual camera. The above-mentioned control and adjustment of the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction can be achieved through the following steps: according to the force arm offset mapping relationship, determine the target force arm offset parameter that matches the target angle; according to the target force arm offset parameter, control and adjust the position of the force arm endpoint corresponding to the virtual camera so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
[0126] In an optional embodiment, based on the aforementioned scheme, the above-mentioned determination of the target force arm offset parameters that match the target angle based on the force arm offset mapping relationship can be achieved through the following steps: obtaining the object motion state of the virtual object at the current frame moment, and selecting the force arm offset mapping relationship that matches the object motion state at the current frame moment from the candidate offset mapping relationships; determining the target force arm offset parameters that match the target angle based on the force arm offset mapping relationship that matches the object motion state at the current frame moment.
[0127] In an optional embodiment, based on the aforementioned scheme, the above-mentioned control and adjustment of the position of the lever arm endpoint corresponding to the virtual camera according to the target lever arm offset parameter can be achieved through the following steps: determining the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame moment and the target lever arm offset parameter; determining the transition lever arm endpoint position of the virtual camera in sequence from the next frame moment of the current frame moment, and controlling the virtual camera to adjust to the transition lever arm endpoint position until the transition lever arm endpoint position reaches the target lever arm endpoint position.
[0128] In an optional embodiment, based on the aforementioned scheme, the above-mentioned determination of the transition arm endpoint position of the virtual camera can be achieved through the following steps: obtaining camera motion control parameters; determining the transition arm endpoint position corresponding to the frame time to be processed based on the arm endpoint position of the virtual camera at the current frame time, the target arm endpoint position, the camera motion control parameters and the frame interval between the frame time to be processed and the current frame time.
[0129] In an optional implementation, based on the aforementioned scheme, the above-mentioned acquisition of camera motion control parameters can be achieved through the following steps: obtaining the object motion state of the virtual object at the current frame moment, and selecting camera motion control parameters that match the object motion state from the candidate camera motion control parameters.
[0130] In an optional embodiment, based on the aforementioned scheme, the above-mentioned camera state also includes any one or more of the following: the length of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera, the angle of the virtual camera relative to the force arm, and the rotation direction and rotation angle corresponding to the virtual camera.
[0131] In the above steps, since there are multiple possibilities for the angle between the shooting direction of the virtual camera and the moving direction of the virtual object, adjusting the camera state corresponding to the virtual camera based on the angle can make the virtual camera present the virtual scene in multiple camera states, which improves the diversity of the scene picture composition to a certain extent. Furthermore, by controlling the position of the virtual object in the scene picture to be biased towards the side opposite to the moving direction, the field of view information of the virtual object's direction can be increased, which is convenient for users to preview new scene content in advance, make decisions in advance, or predict the further moving direction of the virtual object.
[0132] The bus 1130 is used to realize the connection between different components of the electronic device 1100, and may include a data bus, an address bus, and a control bus.
[0133] The electronic device 1100 can communicate with one or more external devices 1200 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 1140 .
[0134] The electronic device 1100 can communicate with one or more networks through the network adapter 1150. For example, the network adapter 1150 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 1150 can communicate with other modules of the electronic device 1100 through the bus 1130.
[0135] The electronic device 1100 may display a graphical user interface and the like through the display 1160 .
[0136] although Fig.11 Not shown, other hardware and / or software modules may also be provided in the electronic device 1100, including but not limited to: a display, a microcode, a device driver, a redundant processor, an external disk drive array, a RAID (Redundant Arrays of Independent Disks) system, a tape drive, and a data backup storage system.
[0137] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0138] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A virtual camera control method, characterized in that: Providing a graphical user interface through a terminal device, the graphical user interface including a scene picture taken by a virtual camera, wherein the scene picture includes at least a virtual object, and the method includes: Obtaining a shooting direction of the virtual camera at a current frame moment and a moving direction of the virtual object at a current frame moment, and determining a target angle between the shooting direction and the moving direction; According to the target angle, the camera state of the virtual camera is controlled and adjusted so that the position of the virtual object in the scene image is biased toward a side opposite to the moving direction.
2. The method according to claim 1, characterized in that in, The camera state includes the position of the end point of the force arm corresponding to the virtual camera; and the controlling and adjusting the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased toward a side opposite to the moving direction, including: Determining a target arm offset parameter that matches the target angle according to the arm offset mapping relationship; According to the target lever arm offset parameter, the position of the lever arm endpoint corresponding to the virtual camera is controlled and adjusted so that the position of the virtual object in the scene screen is biased toward a side opposite to the moving direction.
3. The method according to claim 2, characterized in that Determining a target arm offset parameter matching the target angle according to the arm offset mapping relationship includes: Acquire the object motion state of the virtual object at the current frame time, and select a force arm offset mapping relationship that matches the object motion state at the current frame time from the candidate offset mapping relationships; Based on a lever arm offset mapping relationship that matches the object motion state at the current frame moment, a target lever arm offset parameter that matches the target angle is determined.
4. The method according to claim 2, characterized in that: The step of controlling and adjusting the position of the end point of the force arm corresponding to the virtual camera according to the target force arm offset parameter comprises: Determine the target lever arm endpoint position according to the lever arm endpoint position of the virtual camera at the current frame time and the target lever arm offset parameter; The transition arm endpoint position of the virtual camera is determined sequentially backward from the next frame time of the current frame time, and the virtual camera is controlled to adjust to the transition arm endpoint position until the transition arm endpoint position reaches the target arm endpoint position.
5. The method according to claim 4, characterized in that Determining the endpoint position of the transition arm of the virtual camera includes: Get camera motion control parameters; Based on the lever arm endpoint position of the virtual camera at the current frame time, the target lever arm endpoint position, the camera motion control parameters, and the frame interval between the frame time to be processed and the current frame time, the transition lever arm endpoint position corresponding to the frame time to be processed is determined.
6. The method according to claim 5, characterized in that The obtaining of the camera motion control parameters includes: The object motion state of the virtual object at the current frame time is obtained, and a camera motion control parameter matching the object motion state is selected from the candidate camera motion control parameters.
7. The method according to claim 1, characterized in that The camera status also includes any one or more of the following: The length of the force arm corresponding to the virtual camera, the field of view angle corresponding to the virtual camera, the angle of the virtual camera relative to the force arm, and the rotation direction and rotation angle corresponding to the virtual camera.
8. A virtual camera control device, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes a scene picture taken by a virtual camera, wherein the scene picture includes at least a virtual object, and the apparatus includes: A target angle determination module, used to obtain the shooting direction of the virtual camera at the current frame moment and the moving direction of the virtual object at the current frame moment, and determine the target angle between the shooting direction and the moving direction; The camera state adjustment module is used to control and adjust the camera state of the virtual camera according to the target angle so that the position of the virtual object in the scene screen is biased to the side opposite to the moving direction.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 7 by executing the executable instructions.
