Method, device and computer-readable storage medium for controlling the change of virtual object form

By determining the plane and position of the virtual object in the augmented reality technology, and controlling its shape changes with the reference position, the problem of embedding or floating when the shape of the virtual object changes is solved, and the display effect of the terminal is improved.

CN110827413BActive Publication Date: 2024-09-06BEIJING MICROLIVE VISION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN201810900638.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-09
Publication Date
2024-09-06
Estimated Expiration
2039-10-14

AI Technical Summary

Technical Problem

In augmented reality technology, when the shape of virtual objects changes, it is easy to be embedded or suspended in the plane, affecting the display effect of the terminal.

Method used

By determining the plane and position of the virtual object in the real scene, and controlling its shape changes based on the reference position, it ensures that the virtual object is always on a flat surface on the terminal screen and avoids being embedded or suspended.

Benefits of technology

It effectively improves the display effect of virtual objects when their shapes change, ensuring that they are always located at predetermined positions and plane surfaces, and improving the display quality of the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110827413B
    Figure CN110827413B
Patent Text Reader

Abstract

The present disclosure discloses a method for controlling the change of a virtual object's form, a device for controlling the change of a virtual object's form, a hardware device for controlling the change of a virtual object's form, and a computer-readable storage medium. The method for controlling the change of a virtual object's form includes determining the plane and position of a virtual object in a real scene, controlling the change of the virtual object's form, and displaying the virtual object on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane. The embodiment of the present disclosure controls the change of the virtual object's form, and displays the virtual object on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane, which can avoid the virtual object from being embedded in a plane or floating in a plane when the form changes, thereby improving the display effect of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information technology, and in particular to a method, device and computer-readable storage medium for controlling the change of a virtual object's form. Background Art

[0002] Augmented Reality (AR) is a technology that calculates the position and angle of camera images in real time and adds corresponding images, videos, and virtual objects. The goal of this technology is to overlay the virtual world on the real world on the screen and interact with it.

[0003] The implementation method of augmented reality technology is to put virtual objects in the real scene, that is, to superimpose the real environment and virtual objects in the same screen or space in real time. After superposition, the virtual object will move according to the predetermined motion trajectory, or the virtual object will be controlled by the control to perform a predetermined action.

[0004] At present, in the existing augmented reality scene, the moving position of the virtual object is generally controlled based on the three-dimensional space coordinates. That is, the position of the virtual object is first determined by the three-dimensional coordinates, and then the virtual object is placed at the position.

[0005] When the shape of a virtual object changes, for example, the corresponding placement position of the virtual object may shift during rotation, or when the virtual object is enlarged or reduced, the displayed virtual object may be embedded in the plane or float on the plane, thereby affecting the display effect of the terminal. Summary of the invention

[0006] The technical problem solved by the present disclosure is to provide a method for controlling the change of the form of a virtual object, so as to at least partially solve the technical problem of how to improve the display effect of the virtual object on the terminal. In addition, a device for controlling the change of the form of a virtual object, a hardware device for controlling the change of the form of a virtual object, a computer-readable storage medium and a terminal for controlling the change of the form of a virtual object are also provided.

[0007] In order to achieve the above object, according to one aspect of the present disclosure, the following technical solution is provided:

[0008] A method for controlling a virtual object's morphology change, comprising:

[0009] Determine the plane and position of virtual objects in the real scene;

[0010] The virtual object is controlled to change its form, and the virtual object is displayed on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0011] Furthermore, the step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0012] determining a reference position of the virtual object;

[0013] The shape of the virtual object is controlled based on the reference position, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0014] Furthermore, the step of controlling the shape of the virtual object based on the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0015] The virtual object is controlled to rotate and / or scale around the reference position, and the virtual object is displayed on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0016] Furthermore, the step of controlling the virtual object to be scaled around the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0017] Determining the lowest point on the virtual object according to the zoom level;

[0018] determining a first distance between the reference position and the lowest point and a second distance between the reference position and the plane;

[0019] The scaling of the virtual object is controlled according to the first distance and the second distance to ensure that the virtual object displayed on the terminal screen is located at the position and on the surface of the plane.

[0020] Further, the step of controlling the scaling of the virtual object according to the first distance and the second distance includes:

[0021] Determining the z-axis of the virtual object in the real scene;

[0022] If the first distance is not equal to the second distance, the reference position is moved along the z-axis direction until the first distance is equal to the second distance.

[0023] Furthermore, the reference position is the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0024] Furthermore, the step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0025] detecting a first trigger response generated on the terminal screen and directed to the virtual object, wherein the first trigger response is used to put the virtual object in a selected state;

[0026] detecting a second trigger response generated on the terminal screen for the virtual object, the second trigger response being used to control a shape of the virtual object to change;

[0027] The shape of the virtual object is controlled to change according to the first trigger response and the second trigger response, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0028] Furthermore, the method further comprises:

[0029] Determine the initial plane and initial position of the virtual object in the real scene;

[0030] Correspondingly, the step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0031] Controlling the virtual object to change its shape at the initial position, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is always located on the surface of the initial plane;

[0032] Or, controlling the virtual object to move from the initial position to the position; controlling the virtual object to change its shape at the position, so that the virtual object displayed on the terminal screen is located on the surface of the plane.

[0033] In order to achieve the above object, according to another aspect of the present disclosure, the following technical solution is also provided:

[0034] A device for controlling the change of a virtual object's form, comprising:

[0035] A plane and position determination module, used to determine the plane and position of a virtual object in a real scene;

[0036] The form control module is used to control the form of the virtual object to change and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0037] Further, the morphology control module includes: a reference position determination unit and a morphology control unit;

[0038] A reference position determining unit, used to determine a reference position of the virtual object;

[0039] A shape control unit is used to control the shape of the virtual object based on the reference position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0040] Furthermore, the morphology control unit is specifically used to: control the virtual object to rotate and / or scale around the reference position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0041] Furthermore, the morphology control unit is specifically used to: determine the lowest point on the virtual object according to the degree of scaling; determine a first distance between the reference position and the lowest point and a second distance between the reference position and the plane; and control the scaling of the virtual object according to the first distance and the second distance to ensure that the virtual object displayed on the terminal screen is located at the position and on the surface of the plane.

[0042] Furthermore, the morphology control unit is specifically used to: determine the z-axis of the virtual object in the real scene; if the first distance is not equal to the second distance, move the reference position along the z-axis direction until the first distance is equal to the second distance.

[0043] Furthermore, the reference position is the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0044] Furthermore, the morphology control module is specifically used to: detect a first trigger response generated on the terminal screen for the virtual object, the first trigger response being used to put the virtual object in a selected state; detect a second trigger response generated on the terminal screen for the virtual object, the second trigger response being used to control a change in the morphology of the virtual object; control the change in the morphology of the virtual object according to the first trigger response and the second trigger response, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0045] Furthermore, the plane and position determination module is also used to: determine the initial plane and initial position of the virtual object in the real scene;

[0046] Correspondingly, the form control module is specifically used to: control the form of the virtual object to change at the initial position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is always located on the surface of the initial plane; or, control the virtual object to move from the initial position to the position; control the form of the virtual object to change at the position, so that the virtual object displayed on the terminal screen is located on the surface of the plane.

[0047] In order to achieve the above object, according to another aspect of the present disclosure, the following technical solution is also provided:

[0048] A hardware device for controlling the change of a virtual object's form, comprising:

[0049] a memory for storing non-transitory computer-readable instructions; and

[0050] A processor is used to run the computer-readable instructions so that the processor implements the steps described in any of the above-mentioned technical solutions for controlling the change of the virtual object's form when executing the instructions.

[0051] In order to achieve the above object, according to another aspect of the present disclosure, the following technical solution is also provided:

[0052] A computer-readable storage medium is used to store non-temporary computer-readable instructions. When the non-temporary computer-readable instructions are executed by a computer, the computer executes the steps described in any of the above-mentioned method technical solutions for controlling the change of virtual object form.

[0053] In order to achieve the above object, according to another aspect of the present disclosure, the following technical solution is also provided:

[0054] A terminal for controlling the change of the form of a virtual object comprises any of the above-mentioned devices for controlling the change of the form of a virtual object.

[0055] The embodiments of the present disclosure provide a method for controlling the change of the form of a virtual object, a device for controlling the change of the form of a virtual object, a hardware device for controlling the change of the form of a virtual object, a computer-readable storage medium, and a terminal for controlling the change of the form of a virtual object. The method for controlling the change of the form of a virtual object includes determining the plane and position of the virtual object in a real scene, controlling the change of the form of the virtual object, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane. The embodiments of the present disclosure control the change of the form of the virtual object, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane, which can avoid the situation where the virtual object is embedded in the plane or suspended in the plane when the form changes, thereby improving the display effect of the terminal.

[0056] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1a is a flow chart of a method for controlling the change of a virtual object's form according to an embodiment of the present disclosure;

[0058] Figure 1b Based on Figure 1a A schematic diagram of a virtual object state display effect before a form change in the method for controlling a form change of a virtual object in the illustrated embodiment;

[0059] Figure 1c Based on Figure 1a A schematic diagram of a virtual object state display effect during or after a form change in the method for controlling a form change of a virtual object in the illustrated embodiment;

[0060] Figure 1d Based on Figure 1a A schematic diagram of a state in which a plane can be selected in the method for controlling the change of the virtual object form in the illustrated embodiment;

[0061] Figure 1e Based on Figure 1a A schematic diagram of a selected plane state in the method for controlling the change of the virtual object form in the illustrated embodiment;

[0062] Figure 1f is a flow chart of a method for controlling the change of a virtual object's form according to another embodiment of the present disclosure;

[0063] Figure 1gis a flow chart of a method for controlling the change of a virtual object's form according to another embodiment of the present disclosure;

[0064] Figure 2a is a schematic structural diagram of a device for controlling the change of a virtual object's form according to an embodiment of the present disclosure;

[0065] Figure 2b is a schematic structural diagram of a device for controlling the change of a virtual object form according to another embodiment of the present disclosure;

[0066] Figure 3 is a schematic structural diagram of a hardware device for controlling the change of a virtual object's form according to an embodiment of the present disclosure;

[0067] Figure 4 is a schematic diagram of the structure of a computer-readable storage medium according to an embodiment of the present disclosure;

[0068] Figure 5 The figure is a schematic diagram of the structure of a terminal for controlling the change of the form of a virtual object according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0069] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0070] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0071] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0072] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0073] In order to solve the technical problem of how to improve the user experience effect, the present disclosure provides a method for controlling the change of the virtual object form. Figure 1a As shown, the method for controlling the change of the virtual object form mainly includes the following steps S1 to S2. Among them:

[0074] Step S1: Determine the plane and position of the virtual object in the real scene.

[0075] Among them, the execution subject of this embodiment can be selected as the device for controlling the change of virtual object form provided by the embodiment of the present disclosure, or the hardware device for controlling the change of virtual object form provided by the embodiment of the present disclosure, or the terminal for controlling the change of virtual object form provided by the embodiment of the present disclosure.

[0076] The terminal may be, but is not limited to, a mobile terminal (eg, an iPhone, a smart phone, a tablet computer, etc.) or a fixed terminal (eg, a desktop computer).

[0077] The virtual object may be a three-dimensional model of a real object in the scene.

[0078] The plane is the plane to which the virtual object is about to move in the real scene or the initial plane where the virtual object is placed, and the plane is the surface of a physical entity in the real scene, such as but not limited to a desktop or a wall. The position is the position to which the virtual object is about to move in the real scene or the initial position where the virtual object is placed, and the position is on the plane.

[0079] Step S2: Control the virtual object to change its shape, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0080] The position may be determined based on the display position of a plane and / or a preset virtual object on the terminal screen.

[0081] The terminal may be, but is not limited to, a mobile terminal (eg, an iPhone, a smart phone, a tablet computer, etc.) or a fixed terminal (eg, a desktop computer).

[0082] The change of the virtual object's form includes but is not limited to rotation, reduction or enlargement. In the process of controlling the change of the virtual object's form, the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is always located in position and on the surface of the plane, so that the virtual object can be prevented from being embedded in the plane or floating on the plane when the form changes, thereby improving the display effect of the terminal.

[0083] Specifically, after determining the plane and position of the virtual object in the real scene, the shape of the virtual object is controlled to change, and while the shape of the virtual object changes, it is ensured that the virtual object displayed on the terminal screen is always in position and always on the surface of the plane. Figure 1b As shown in FIG. , the virtual object is in a state before the state is changed. When the virtual object is in a state or after the state is changed, as shown in FIG. Figure 1c As shown, it can be seen that the displayed virtual object is always located in the original plane and position.

[0084] By adopting the above-mentioned technical solution, this embodiment can ensure that the virtual object displayed on the terminal screen is located in position and on the surface of the plane while controlling the change of the virtual object's shape, and can avoid the virtual object from being embedded in the plane or floating on the plane when the shape changes, thereby improving the display effect of the terminal.

[0085] In an optional embodiment, the step of determining the plane of the virtual object in the real scene in step S1 includes:

[0086] S11: Identify the planes contained in the real scene.

[0087] The real scene may contain one or more planes. A corresponding algorithm is required to identify the planes contained in the real scene. This step can be implemented using existing technologies, such as simultaneous localization and mapping (SLAM) algorithms, which will not be described here.

[0088] S12: Select a plane from the identified planes as the plane in this embodiment.

[0089] Further, step S12 can be implemented in the following two ways:

[0090] In the first way, a plane is automatically selected as the plane in this embodiment, that is, a plane is automatically selected from the identified planes as the plane in this embodiment.

[0091] In the second mode, the user selects a plane as the plane in this embodiment, that is, the identified plane is displayed on the terminal screen and the identified plane is in a selectable state; the selected plane is used as the plane in this embodiment. In other words, the user can select the plane by clicking or double-clicking or other preset actions, and the plane selected by the user is used as the plane in this embodiment.

[0092] For example, Figure 1d As shown, the planes 1 to 3 in the recognized real scene are displayed on the terminal screen in sequence. If the user wants to display the virtual object on plane 1, he only needs to click or double-click plane 1 on the terminal screen to complete the selection operation. When plane 1 is selected, it is displayed on the terminal screen according to its placement in the display scene, as shown in FIG. Figure 1e shown.

[0093] In an optional embodiment, the step of determining the position of the virtual object in the real scene in step S1 includes:

[0094] S13: Determine the display position of the virtual object on the terminal screen.

[0095] The display position is the position where the virtual object is displayed on the terminal screen.

[0096] S14: Determine the position according to the display position and the plane determined above.

[0097] Furthermore, step S13 may adopt the following two methods to obtain the display position: A first method: detecting a trigger response generated on the terminal screen, and using the generation position of the trigger response as the display position.

[0098] The trigger response is a response generated by a trigger operation acting on the terminal screen, which may be, but is not limited to, a click response, a double-click response, or a detected preset gesture action generated on the terminal screen.

[0099] The location where the trigger response is generated is a point on the plane corresponding to the terminal screen, which can be specifically determined by a sensor arranged on the terminal screen.

[0100] Specifically, if the user wants to change the display position of the virtual object on the terminal screen, the user needs to perform an operation on the terminal screen, for example, by clicking, double-clicking, or making a preset gesture on the terminal screen to determine the next display position of the virtual object. After receiving the above operation, the terminal screen will generate a trigger response, and the position where the trigger response is generated is the display position where the user wants to move the virtual object, and the display position is not the position of the virtual object in the real scene. Therefore, the position of the virtual object in the real scene needs to be determined based on the trigger response, so that the display position of the virtual object on the terminal screen can be accurately located.

[0101] The second method receives the input display position.

[0102] Specifically, the user can input the display position through the terminal. Since the trigger operation of the user on the terminal screen is often a trigger area, it is difficult to locate a point. However, the point can be accurately located by inputting the display position. Therefore, compared with the trigger operation of the user on the terminal screen, this embodiment can more accurately locate the position of the virtual object, thereby further improving the terminal display effect.

[0103] In an optional embodiment, if Figure 1f As shown, step S2 may include:

[0104] S21: Determine a reference position of the virtual object.

[0105] The reference position can ensure that when the virtual object changes shape around the reference position, the virtual object is always located at the position and on the surface of the plane. The reference position can be selected as the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0106] S22: controlling the shape of the virtual object based on the reference position, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0107] Further, step S22 may include:

[0108] The virtual object is controlled to rotate and / or scale around the reference position, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0109] Optionally, when the virtual object is controlled to rotate around a reference position, the reference position may be the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene. When the virtual object is controlled to scale around a reference position, the reference position may be the center point of the virtual object in the real scene.

[0110] Further, the step of controlling the virtual object to rotate around the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, specifically includes:

[0111] When the reference position is the z-axis of the virtual object in the real scene, the virtual object is controlled to rotate around the z-axis; when the reference position is the center point of the virtual object in the real scene, the virtual object is controlled to rotate around the center point. When rotating around the z-axis, the virtual object will not leave the corresponding plane, and when rotating around the center point, the distance from the center point to the corresponding plane remains unchanged, so the position of the virtual object relative to the plane does not change. Therefore, when the virtual object changes its form, the corresponding position will not deviate, and it can always remain on the surface of the plane.

[0112] Further, the step of controlling the virtual object to be scaled around the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes:

[0113] Determine the lowest point on the virtual object according to the zoom level;

[0114] determining a first distance between the reference position and the lowest point and a second distance between the reference position and the plane;

[0115] The scaling of the virtual object is controlled according to the first distance and the second distance to ensure that the virtual object displayed on the terminal screen is located at the position and on the surface of the plane.

[0116] Furthermore, the step of controlling the scaling of the virtual object according to the first distance and the second distance includes:

[0117] Determine the z-axis of the virtual object in the real scene;

[0118] If the first distance is not equal to the second distance, the reference position is moved along the z-axis direction until the first distance is equal to the second distance.

[0119] Optionally, if the reference position is the center point of the virtual object in the real scene, the center point is used for zooming in or out. In order to keep the virtual object always on the surface of the plane, the lowest point of the virtual object is determined (generally speaking, the point intersecting with the plane), and the distance 1 from the center point to the lowest point and the distance 2 from the center point to the intersection of the plane are calculated. If distance 1 is greater than distance 2, the center point is moved in the Z-axis direction until distance 1 is equal to distance 2. If distance 1 is less than distance 2, the center point is moved in the Z-axis direction until distance 1 is equal to distance 2. In this way, no matter how the virtual object is scaled, it is always on the surface of the plane.

[0120] This embodiment adopts the above-mentioned technical solution, determines the reference position of the virtual object, controls the shape of the virtual object based on the reference position, and displays the virtual object on the corresponding terminal screen. The displayed virtual object is located in position and on the surface of the plane, which can avoid the virtual object being embedded in the plane or floating in the plane when the shape changes, thereby improving the display effect of the terminal.

[0121] In an optional embodiment, if Figure 1g As shown, step S2 may include:

[0122] S23: Detecting a first trigger response to the virtual object generated on the terminal screen, where the first trigger response is used to put the virtual object in a selected state.

[0123] The first trigger response is a response generated by the terminal screen acting on the virtual object, which may be, but not limited to, a click response, a double-click response, or a detected preset gesture action generated by the terminal screen, and is used to select the virtual object. To distinguish another trigger response with a different effect that appears below, the trigger response that appears here is referred to as the first trigger response, and the subsequent trigger responses are referred to as the second trigger responses.

[0124] S24: Detecting a second trigger response to the virtual object generated on the terminal screen, where the second trigger response is used to control a shape change of the virtual object.

[0125] Among them, the second trigger response is a response generated by the terminal screen acting on the virtual object. The generation position of the second trigger response is different from the generation position of the first trigger response. The second trigger response can be but is not limited to a click response, or a double-click response, or a detected preset gesture action generated by the terminal screen, which is used to control the change of the shape of the virtual object.

[0126] S25: Controlling the virtual object to change its form according to the first trigger response and the second trigger response, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0127] Among them, controlling the change of the virtual object's form includes but is not limited to controlling the rotation of the virtual object, or controlling the rotation and scaling of the virtual object. In order to ensure that the virtual object is always located at the position and on the surface of the plane when the form changes, it is necessary to select a reference position in the process of controlling the rotation or scaling of the virtual object, wherein the reference position can be the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0128] The working principle of this embodiment is described in detail below in conjunction with a specific scenario: There are two ways to control the rotation of a virtual object. One is to select the z-axis of the virtual object in the real scene as the reference position, and control the rotation of the virtual object around the z-axis. At the user level, when controlling the rotation of the virtual object, one finger can be used to select the virtual object and the other finger can be rotated. At this time, the virtual object rotates around the z-axis as the finger rotates. Another way is to select the center point of the virtual object in the real scene as the reference position, and control the rotation of the virtual object around the center point. At the user level, when controlling the rotation of the virtual object, one finger can be used to select the virtual object and the other finger can be rotated. At this time, the virtual object rotates in any direction around the center point as the finger rotates. When rotating around the z-axis, the virtual object will not leave the plane. When rotating around the center point, the distance from the center point to the plane remains unchanged, that is, the position of the virtual object relative to the plane remains unchanged, so the position of the virtual object will not deviate, and the displayed virtual object will not be embedded in the plane, or suspended on the plane, thereby affecting the display effect of the terminal.

[0129] To control the scaling of virtual objects, select the center point of the virtual object in the real scene as the reference position to enlarge or reduce. When controlling the scaling of virtual objects, select the virtual object with one finger, and move the other finger to determine the degree of scaling. In order to keep the virtual object always on the surface of the plane, determine the lowest point on the virtual object (generally speaking, the point intersects with the plane), calculate the distance 1 from the center point to the lowest point and the distance 2 from the center point to the intersection of the plane. If distance 1 is greater than distance 2, move the center point in the Z-axis direction until distance 1 is equal to distance 2. If distance 1 is less than distance 2, move the center point in the Z-axis direction until distance 1 is equal to distance 2. In this way, no matter how the virtual object is scaled, it is always on the surface of the plane.

[0130] By adopting the above-mentioned technical solution, this embodiment can enable users to directly interact with virtual objects in real scenes, control the changes in the shape of virtual objects, and ensure that the virtual objects displayed on the terminal screen are located in position and on the surface of the plane. This can avoid the virtual objects from being embedded in the plane or floating in the plane when the shape changes, thereby improving the display effect of the terminal.

[0131] In an optional embodiment, step S1 may include:

[0132] Determine the initial plane and initial position of the virtual object in the real scene;

[0133] Accordingly, step S2 may include:

[0134] The shape of the virtual object is controlled to change at the initial position, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is always located on the surface of the initial plane.

[0135] or, controlling a virtual object to move from an initial position to a position;

[0136] The virtual object is controlled to change its shape in position so that the virtual object displayed on the terminal screen is located on the surface of the plane.

[0137] The initial position of the terminal screen may be the center position of the terminal screen. The specific position may be determined by the user. In this embodiment, the method for determining the initial position of the terminal screen and the method for determining the initial position in the real scene are similar to the method for determining the display position and the position in the virtual scene, and will not be repeated here.

[0138] This embodiment can control the change of the shape of a virtual object on a single plane to ensure that the virtual object is always located on the surface of the plane. This embodiment can also change the shape of the virtual object when it moves from one plane to another and ensure that the virtual object is located on the surface of another plane. This can avoid the virtual object being embedded in the plane or floating in the plane when the shape changes, thereby improving the display effect of the terminal.

[0139] Those skilled in the art should understand that, based on the above embodiments, obvious modifications (for example, combining the listed modes) or equivalent substitutions may be made.

[0140] In the above, although the various steps in the embodiment of the method for controlling the change of the virtual object form are described in the above order, those skilled in the art should be aware that the steps in the embodiments of the present disclosure are not necessarily executed in the above order, and they can also be executed in other orders such as reverse order, parallel order, cross order, etc. Moreover, on the basis of the above steps, those skilled in the art can also add other steps. These obvious variations or equivalent replacement methods should also be included in the protection scope of the present disclosure and will not be repeated here.

[0141] The following is an embodiment of the device disclosed in the present invention. The embodiment of the device disclosed in the present invention can be used to execute the steps implemented by the embodiment of the method disclosed in the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the embodiment of the method disclosed in the present invention.

[0142] In order to solve the technical problem of how to improve the user experience, the embodiment of the present disclosure provides a device for controlling the change of the virtual object form. The device can perform the steps in the above-mentioned method embodiment for controlling the change of the virtual object form. Figure 2aAs shown, the device mainly includes: a plane and position determination module 21 and a form control module 22; wherein, the plane and position determination module 21 is used to determine the plane and position of the virtual object in the real scene; the form control module 22 is used to control the change of the form of the virtual object and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located in the position and on the surface of the plane.

[0143] The terminal may be, but is not limited to, a mobile terminal (eg, an iPhone, a smart phone, a tablet computer, etc.) or a fixed terminal (eg, a desktop computer).

[0144] The virtual object may be a three-dimensional model of a real object in the scene.

[0145] The plane is the plane to which the virtual object is about to move in the real scene or the initial plane where the virtual object is placed, and the plane is the surface of a physical entity in the real scene, such as but not limited to a desktop or a wall. The position is the position to which the virtual object is about to move in the real scene or the initial position where the virtual object is placed, and the position is on the plane.

[0146] The position may be determined based on the display position of a plane and / or a preset virtual object on the terminal screen.

[0147] The change of the virtual object's form includes but is not limited to rotation, reduction or enlargement. In the process of controlling the change of the virtual object's form, the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is always located in position and on the surface of the plane, so that the virtual object can be prevented from being embedded in the plane or floating on the plane when the form changes, thereby improving the display effect of the terminal.

[0148] Specifically, after the plane and position determination module 21 determines the plane and position of the virtual object in the real scene, the shape control module 22 controls the shape of the virtual object to change, and ensures that the virtual object displayed on the terminal screen is always in position and always on the surface of the plane. Figure 1b As shown in FIG. , the virtual object is in a state before the state is changed. When the virtual object is in a state or after the state is changed, as shown in FIG. Figure 1c As shown, it can be seen that the displayed virtual object is always located on the original plane and position. In this embodiment, the plane and position determination module 21 determines the plane and position of the virtual object in the real scene, and the form control module 22 controls the change of the virtual object form, while ensuring that the virtual object displayed on the terminal screen is located on the position and on the surface of the plane, which can avoid the virtual object from being embedded in the plane or floating on the plane when the form changes, thereby improving the display effect of the terminal.

[0149] In an optional embodiment, the plane and position determination module 21 is specifically used for:

[0150] Identify planes contained in real-world scenes.

[0151] The real scene may contain one or more planes. A corresponding algorithm is required to identify the planes contained in the real scene. This step can be implemented using existing technologies, such as simultaneous localization and mapping (SLAM) algorithms, which will not be described here.

[0152] One plane is selected from the identified planes as the plane in this embodiment.

[0153] Further, the plane and position determination module 21 is specifically used to: automatically select a plane as the plane in this embodiment, that is, automatically select a plane from the identified planes as the plane in this embodiment; or, the user selects a plane as the plane in this embodiment, that is, the identified plane is displayed on the terminal screen and the identified plane is in a selectable state; and the selected plane is used as the plane in this embodiment. In other words, the user can select the plane by clicking or double-clicking or other preset actions, and the plane selected by the user is used as the plane in this embodiment.

[0154] For example, Figure 1d As shown, the plane and position determination module 21 displays the planes 1 to 3 in the identified real scene on the terminal screen in sequence. If the user wants to display the virtual object on plane 1, he only needs to click or double-click plane 1 on the terminal screen to complete the selection operation. When plane 1 is selected, it is displayed on the terminal screen according to its placement position in the display scene, as shown in FIG. Figure 1e shown.

[0155] In an optional embodiment, the plane and position determination module 21 is specifically used for:

[0156] Determine the display position of the virtual object on the terminal screen.

[0157] The display position is the position where the virtual object is displayed on the terminal screen.

[0158] The position is determined based on the display position and the plane determined above.

[0159] Furthermore, the plane and position determination module 21 is specifically used to detect a trigger response generated on the terminal screen, and use the position where the trigger response is generated as the display position.

[0160] The trigger response is a response generated by a trigger operation acting on the terminal screen, which may be, but is not limited to, a click response, a double-click response, or a detected preset gesture action generated on the terminal screen.

[0161] The location where the trigger response is generated is a point on the plane corresponding to the terminal screen, which can be specifically determined by a sensor arranged on the terminal screen.

[0162] Specifically, if the user wants to change the display position of the virtual object on the terminal screen, the user needs to perform an operation on the terminal screen, for example, by clicking, double-clicking, or making a preset gesture on the terminal screen to determine the next display position of the virtual object. After receiving the above operation, the terminal screen will generate a trigger response, and the position where the trigger response is generated is the display position where the user wants to move the virtual object, and the display position is not the position of the virtual object in the real scene. Therefore, the position of the virtual object in the real scene needs to be determined based on the trigger response, so that the display position of the virtual object on the terminal screen can be accurately located.

[0163] Alternatively, the plane and position determination module 21 is specifically configured to: receive an input display position.

[0164] Specifically, the user can input the display position through the terminal. Since the trigger operation of the user on the terminal screen is often a trigger area, it is difficult to locate a point. However, the point can be accurately located by inputting the display position. Therefore, compared with the trigger operation of the user on the terminal screen, this embodiment can more accurately locate the position of the virtual object, thereby further improving the terminal display effect.

[0165] In an optional embodiment, if Figure 2b As shown, the morphology control module 22 includes: a reference position determination unit 221 and a morphology control unit 222;

[0166] The reference position determination unit 221 is used to determine the reference position of the virtual object;

[0167] The reference position can ensure that when the virtual object changes shape around the reference position, the virtual object is always located at the position and on the surface of the plane. The reference position can be selected as the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0168] The shape control unit 222 is used to control the shape of the virtual object based on the reference position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0169] Furthermore, the morphology control unit 222 is specifically used to: control the virtual object to rotate and / or scale around the reference position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

[0170] Optionally, when the virtual object is controlled to rotate around a reference position, the reference position may be the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene. When the virtual object is controlled to scale around a reference position, the reference position may be the center point of the virtual object in the real scene.

[0171] Furthermore, the morphology control unit 222 is specifically used to: when the reference position is the z-axis of the virtual object in the real scene, control the virtual object to rotate around the z-axis; when the reference position is the center point of the virtual object in the real scene, control the virtual object to rotate around the center point. When rotating around the z-axis, since the virtual object will not leave the corresponding plane, and when rotating around the center point, since the distance from the center point to the corresponding plane remains unchanged, the position of the virtual object relative to the plane does not change, so that when the morphology of the virtual object changes, the corresponding position will not deviate, and it can always remain on the surface of the plane.

[0172] Furthermore, the morphology control unit 222 is specifically used to: determine the lowest point on the virtual object according to the degree of scaling; determine a first distance between the reference position and the lowest point and a second distance between the reference position and the plane; and control the scaling of the virtual object according to the first distance and the second distance to ensure that the virtual object displayed on the terminal screen is in position and on the surface of the plane.

[0173] Furthermore, the morphology control unit 222 is specifically used to: determine the z-axis of the virtual object in the real scene; if the first distance is not equal to the second distance, move the reference position along the z-axis direction until the first distance is equal to the second distance.

[0174] Optionally, if the reference position is the center point of the virtual object in the real scene, the center point is used for zooming in or out. In order to keep the virtual object always on the surface of the plane, the lowest point of the virtual object is determined (generally speaking, the point intersecting with the plane), and the distance 1 from the center point to the lowest point and the distance 2 from the center point to the intersection of the plane are calculated. If distance 1 is greater than distance 2, the center point is moved in the Z-axis direction until distance 1 is equal to distance 2. If distance 1 is less than distance 2, the center point is moved in the Z-axis direction until distance 1 is equal to distance 2. In this way, no matter how the virtual object is scaled, it is always on the surface of the plane.

[0175] This embodiment determines the reference position of the virtual object through the reference position determination unit 221, and controls the form of the virtual object based on the reference position through the form control unit 222, and displays the virtual object on the corresponding terminal screen. The displayed virtual object is located in position and on the surface of the plane, which can avoid the virtual object from being embedded in the plane or floating in the plane when the form changes, thereby improving the display effect of the terminal.

[0176] In an optional embodiment, if Figure 2a As shown, the morphology control module 22 is specifically used for: detecting a first trigger response generated on the terminal screen for a virtual object, the first trigger response being used to put the virtual object in a selected state; detecting a second trigger response generated on the terminal screen for a virtual object, the second trigger response being used to control a change in the morphology of the virtual object; controlling the change in the morphology of the virtual object according to the first trigger response and the second trigger response, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is located in position and on the surface of the plane.

[0177] The first trigger response is a response generated by the terminal screen acting on the virtual object, which may be, but not limited to, a click response, a double-click response, or a detected preset gesture action generated by the terminal screen, and is used to select the virtual object. To distinguish another trigger response with a different effect that appears below, the trigger response that appears here is referred to as the first trigger response, and the subsequent trigger responses are referred to as the second trigger responses.

[0178] Among them, the second trigger response is a response generated by the terminal screen acting on the virtual object. The generation position of the second trigger response is different from the generation position of the first trigger response. The second trigger response can be but is not limited to a click response, or a double-click response, or a detected preset gesture action generated by the terminal screen, which is used to control the change of the shape of the virtual object.

[0179] Among them, controlling the change of the virtual object's form includes but is not limited to controlling the rotation of the virtual object, or controlling the rotation and scaling of the virtual object. In order to ensure that the virtual object is always located at the position and on the surface of the plane when the form changes, it is necessary to select a reference position in the process of controlling the rotation or scaling of the virtual object, wherein the reference position can be the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

[0180] The working principle of this embodiment is described in detail below in conjunction with a specific scenario: There are two ways to control the rotation of a virtual object. One is to select the z-axis of the virtual object in the real scene as the reference position, and control the rotation of the virtual object around the z-axis. At the user level, when controlling the rotation of the virtual object, one finger can be used to select the virtual object and the other finger can be rotated. At this time, the virtual object rotates around the z-axis as the finger rotates. Another way is to select the center point of the virtual object in the real scene as the reference position, and control the rotation of the virtual object around the center point. At the user level, when controlling the rotation of the virtual object, one finger can be used to select the virtual object and the other finger can be rotated. At this time, the virtual object rotates in any direction around the center point as the finger rotates. When rotating around the z-axis, the virtual object will not leave the plane. When rotating around the center point, the distance from the center point to the plane remains unchanged, that is, the position of the virtual object relative to the plane remains unchanged, so the position of the virtual object will not deviate, and the displayed virtual object will not be embedded in the plane, or suspended on the plane, thereby affecting the display effect of the terminal.

[0181] To control the scaling of virtual objects, select the center point of the virtual object in the real scene as the reference position to enlarge or reduce. When controlling the scaling of virtual objects, select the virtual object with one finger, and move the other finger to determine the degree of scaling. In order to keep the virtual object always on the surface of the plane, determine the lowest point on the virtual object (generally speaking, the point intersects with the plane), calculate the distance 1 from the center point to the lowest point and the distance 2 from the center point to the intersection of the plane. If distance 1 is greater than distance 2, move the center point in the Z-axis direction until distance 1 is equal to distance 2. If distance 1 is less than distance 2, move the center point in the Z-axis direction until distance 1 is equal to distance 2. In this way, no matter how the virtual object is scaled, it is always on the surface of the plane.

[0182] By adopting the above-mentioned technical solution, this embodiment can enable users to directly interact with virtual objects in real scenes, control the changes in the shape of virtual objects, and ensure that the virtual objects displayed on the terminal screen are located in position and on the surface of the plane. This can avoid the virtual objects from being embedded in the plane or floating in the plane when the shape changes, thereby improving the display effect of the terminal.

[0183] In an optional embodiment, if Figure 2a As shown, the plane and position determination module 21 is also used to: determine the initial plane and initial position of the virtual object in the real scene;

[0184] Correspondingly, the morphology control module 22 is specifically used to: control the virtual object morphology to change at the initial position, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is always located on the surface of the initial plane; or, control the virtual object to move from the initial position to the position; control the virtual object morphology to change at the position, so that the virtual object displayed on the terminal screen is located on the surface of the plane.

[0185] The initial position of the terminal screen may be the center position of the terminal screen. The specific position may be determined by the user. In this embodiment, the method for determining the initial position of the terminal screen and the method for determining the initial position in the real scene are similar to the method for determining the display position and the position in the virtual scene, and will not be repeated here.

[0186] This embodiment can control the change of the shape of a virtual object on a single plane to ensure that the virtual object is always located on the surface of the plane. This embodiment can also change the shape of the virtual object when it moves from one plane to another and ensure that the virtual object is located on the surface of another plane. This can avoid the virtual object being embedded in the plane or floating in the plane when the shape changes, thereby improving the display effect of the terminal.

[0187] For detailed descriptions of the working principle, technical effects achieved, etc. of the embodiment of the device for controlling the change of the virtual object's form, please refer to the relevant descriptions in the aforementioned embodiment of the method for controlling the change of the virtual object's form, which will not be repeated here.

[0188] Figure 3 is a hardware block diagram illustrating a hardware device for controlling a virtual object form change according to an embodiment of the present disclosure. Figure 3 As shown, the hardware device 30 for controlling the change of the virtual object form according to an embodiment of the present disclosure includes a memory 31 and a processor 32 .

[0189] The memory 31 is used to store non-temporary computer-readable instructions. Specifically, the memory 31 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. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc.

[0190] The processor 32 may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the hardware device 30 for controlling the virtual object form change to perform desired functions. In one embodiment of the present disclosure, the processor 32 is used to run the computer-readable instructions stored in the memory 31, so that the hardware device 30 for controlling the virtual object form change performs all or part of the steps of the method for controlling the virtual object form change in the aforementioned embodiments of the present disclosure.

[0191] Those skilled in the art should be able to understand that in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus and an interface, and these well-known structures should also be included in the protection scope of the present disclosure.

[0192] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0193] Figure 4 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. Figure 4 As shown, a computer-readable storage medium 40 according to an embodiment of the present disclosure stores non-transitory computer-readable instructions 41. When the non-transitory computer-readable instructions 41 are executed by a processor, all or part of the steps of the video feature comparison method of each embodiment of the present disclosure are executed.

[0194] The above-mentioned computer-readable storage medium 40 includes, but is not limited to: optical storage media (e.g., CD-ROM and DVD), magneto-optical storage media (e.g., MO), magnetic storage media (e.g., magnetic tape or mobile hard disk), media with built-in rewritable non-volatile memory (e.g., memory card) and media with built-in ROM (e.g., ROM box).

[0195] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0196] Figure 5 is a schematic diagram illustrating the hardware structure of a terminal according to an embodiment of the present disclosure. Figure 5 As shown, the terminal 50 for controlling the change of the virtual object's form includes the above-mentioned embodiment of the device for controlling the change of the virtual object's form.

[0197] The terminal can be implemented in various forms. The terminal in the present disclosure may include but is not limited to mobile terminals such as mobile phones, smart phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, vehicle-mounted terminals, vehicle-mounted display terminals, vehicle-mounted electronic rearview mirrors, etc., as well as fixed terminals such as digital TVs, desktop computers, etc.

[0198] As an equivalent alternative implementation, the terminal may also include other components. Figure 5 As shown, the terminal 50 for controlling the change of the virtual object's form may include a power supply unit 51, a wireless communication unit 52, an A / V (audio / video) input unit 53, a user input unit 54, a sensing unit 55, an interface unit 56, a controller 57, an output unit 58, a memory 59, and the like. Figure 5 A terminal is shown having various components, but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0199] Among them, the wireless communication unit 52 allows radio communication between the terminal 50 and the wireless communication system or network. The A / V input unit 53 is used to receive audio or video signals. The user input unit 54 can generate key input data according to the command input by the user to control various operations of the terminal. The sensing unit 55 detects the current state of the terminal 50, the position of the terminal 50, the presence or absence of the user's touch input to the terminal 50, the orientation of the terminal 50, the acceleration or deceleration movement and direction of the terminal 50, etc., and generates commands or signals for controlling the operation of the terminal 50. The interface unit 56 serves as an interface through which at least one external device can be connected to the terminal 50. The output unit 58 is configured to provide output signals in a visual, audio and / or tactile manner. The memory 59 can store software programs and the like for processing and control operations performed by the controller 55, or can temporarily store data that has been output or is to be output. The memory 59 may include at least one type of storage medium. Moreover, the terminal 50 can cooperate with a network storage device that performs the storage function of the memory 59 through a network connection. The controller 57 generally controls the overall operation of the terminal. In addition, the controller 57 may include a multimedia module for reproducing or playing back multimedia data. The controller 57 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image. The power supply unit 51 receives external power or internal power under the control of the controller 57 and provides appropriate power required for operating each element and component.

[0200] Various embodiments of the video feature comparison method proposed in the present disclosure can be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For hardware implementation, various embodiments of the video feature comparison method proposed in the present disclosure can be implemented by using at least one of a specific application integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein. In some cases, various embodiments of the video feature comparison method proposed in the present disclosure can be implemented in the controller 57. For software implementation, various embodiments of the video feature comparison method proposed in the present disclosure can be implemented with a separate software module that allows the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any appropriate programming language, and the software code can be stored in the memory 59 and executed by the controller 57.

[0201] For detailed description of this embodiment, reference may be made to the corresponding descriptions in the aforementioned embodiments, which will not be repeated here.

[0202] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0203] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0204] Additionally, as used herein, "or" used in a list of items beginning 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). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0205] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0206] 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.

[0207] The above description of the disclosed 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 is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0208] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple 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 method for controlling the change of the virtual object's form, It is characterized in that include: Determine the plane and position of virtual objects in the real scene; Controlling the virtual object to change its form, and displaying the virtual object on a corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane; The controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: Controlling the virtual object to rotate and / or scale around a reference position, and displaying the virtual object on a corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane; wherein, in response to controlling the virtual object to rotate around the reference position, the reference position is the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene; in response to controlling the virtual object to scale around the reference position, the reference position is the center point of the virtual object in the real scene; The step of controlling the virtual object to rotate and / or scale around the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: Determining the lowest point on the virtual object according to the zoom level; The reference position of the virtual object is moved until a first distance between the reference position and the lowest point is equal to a second distance between the reference position and the plane, and the virtual object is displayed on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

2. The method according to claim 1, It is characterized in that The step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: determining a reference position of the virtual object; The shape of the virtual object is controlled based on the reference position, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

3. The method according to claim 2, It is characterized in that The step of controlling the shape of the virtual object based on the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: The virtual object is controlled to rotate and / or scale around the reference position, and the virtual object is displayed on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

4. The method according to claim 3, It is characterized in that The step of controlling the virtual object to scale around the reference position and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: determining a first distance between the reference position and the lowest point and a second distance between the reference position and the plane; The scaling of the virtual object is controlled according to the first distance and the second distance to ensure that the virtual object displayed on the terminal screen is located at the position and on the surface of the plane.

5. The method according to claim 4, It is characterized in that The step of controlling the scaling of the virtual object according to the first distance and the second distance comprises: Determining the z-axis of the virtual object in the real scene; If the first distance is not equal to the second distance, the reference position is moved along the z-axis direction until the first distance is equal to the second distance.

6. The method according to claim 1, It is characterized in that The reference position is the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene.

7. The method according to any one of claims 1 to 6, It is characterized in that The step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, comprises: detecting a first trigger response generated on the terminal screen and directed to the virtual object, wherein the first trigger response is used to put the virtual object in a selected state; detecting a second trigger response generated on the terminal screen for the virtual object, the second trigger response being used to control a shape of the virtual object to change; The virtual object is controlled to change its form according to the first trigger response and the second trigger response, and the virtual object is displayed on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

8. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Determine the initial plane and initial position of the virtual object in the real scene; Correspondingly, the step of controlling the virtual object to change its form and displaying the virtual object on the corresponding terminal screen, wherein the displayed virtual object is located at the position and on the surface of the plane, includes: Controlling the virtual object to change its shape at the initial position, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is always located on the surface of the initial plane; Or, controlling the virtual object to move from the initial position to the position; controlling the virtual object to change its shape at the position, so that the virtual object displayed on the terminal screen is located on the surface of the plane.

9. A device for controlling the change of the form of a virtual object, It is characterized in that include: A plane and position determination module, used to determine the plane and position of a virtual object in a real scene; a form control module, used for controlling the form of the virtual object to change, and displaying the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane; The morphology control module is further used to control the virtual object to rotate and / or scale around a reference position, and to display the virtual object on a corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane; in response to controlling the virtual object to rotate around the reference position, the reference position is the z-axis of the virtual object in the real scene or the center point of the virtual object in the real scene; in response to controlling the virtual object to scale around the reference position, the reference position is the center point of the virtual object in the real scene; Among them, the morphology control module is also used to determine the lowest point on the virtual object according to the degree of scaling; move the reference position of the virtual object until a first distance between the reference position and the lowest point is equal to a second distance between the reference position and the plane, and display the virtual object on the corresponding terminal screen, and the displayed virtual object is located at the position and on the surface of the plane.

10. A hardware device for controlling the change of the shape of a virtual object, include: a memory for storing non-transitory computer-readable instructions; as well as A processor is used to run the computer-readable instructions so that the processor implements the method for controlling the change of the virtual object form according to any one of claims 1-8 when executing.

11. A computer-readable storage medium for storing non-transitory computer-readable instructions, which, when executed by a computer, enables the computer to execute the method for controlling the change of a virtual object's form as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Map display method and device for LED lamp on virtual display terminal

    CN104090953A

  • Image processing apparatus, image processing method, and computer program product

    CN105391938A

  • Operation control method and device of virtual reality application

    CN106873767A

  • Virtual interactive plane-based interactive method and apparatus

    CN106951087A

  • Suspended Chinese character rendering method for 3D virtual earth based on mobile platform

    CN107527377A