Method and device for controlling rotation of television interaction model, computer equipment and readable storage medium

By initializing the 3D model of the gyroscope and TV interaction of the mobile terminal and controlling the model rotation according to the gyroscope output angle, the problems of inconvenience and inaccuracy of interaction control in the prior art are solved, and the user's high-quality interactive experience is achieved.

CN119402688APending Publication Date: 2025-02-07GUANGZHOU HUANWANG TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411271175.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing TV interaction control methods are inconvenient to operate, inaccurate control, and unstable model rotation, which cannot meet the needs of users' high-quality interactive experience.

Method used

By initializing the interactive 3D model displayed by the gyroscope configured by the mobile terminal and the TV device, the continuous output angle of the gyroscope is received, and the rotation state of the interactive 3D model is controlled according to these angles, the user can achieve the accuracy of the TV interactive model through the mobile terminal. , stable and convenient rotation control.

Benefits of technology

It realizes accurate, stable and convenient rotation control of the TV interaction model by users through mobile terminals, and improves the user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402688A_ABST
    Figure CN119402688A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for controlling rotation of a television interaction model, computer equipment and a readable storage medium. The method comprises the following steps: firstly, initializing a mobile terminal gyroscope and a television interaction 3D model; according to the method and the device, the gyroscope is arranged on the television interaction model, then two continuous output angles of the gyroscope are received, and finally the rotation state of the interaction 3D model is controlled according to the two angles, so that accurate, stable and convenient rotation control of the television interaction model by a user through the mobile terminal is realized, and user interaction experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of television interaction, and in particular to a method, device, computer equipment and readable storage medium for controlling the rotation of a television interaction model. Background Art

[0002] With the development of smart TV and mobile terminal technologies, users have a growing demand for more natural and intuitive control of interactive content on TV through mobile terminals. However, existing interactive control methods often have problems such as inconvenient operation, imprecise control, and unstable model rotation, which cannot meet users' requirements for high-quality interactive experience. Summary of the invention

[0003] The object of the present invention is to provide a method, an apparatus, a computer device and a readable storage medium for controlling the rotation of a television interactive model.

[0004] In a first aspect, an embodiment of the present invention provides a method for controlling rotation of a television interaction model, comprising:

[0005] Initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device;

[0006] Receiving a first output angle and a second output angle continuously outputted by the gyroscope;

[0007] The rotation state of the interactive 3D model is controlled according to the first output angle and the second output angle.

[0008] In a possible implementation, initializing a gyroscope configured in the mobile terminal includes:

[0009] activating the gyroscope to test whether the gyroscope can accurately read the device angle of the mobile terminal;

[0010] If yes, initialization is complete;

[0011] If not, the steps of activating the gyroscope and testing whether the gyroscope can accurately read the device angle of the mobile terminal are repeated until the initialization is completed.

[0012] In a possible implementation manner, receiving the continuous first output angle and the second output angle of the gyroscope includes:

[0013] Acquire a first device angle and a second device angle of the mobile terminal at a preset time interval;

[0014] A first output angle and a second output angle of the gyroscope are determined according to the first device angle and the second device angle.

[0015] In a possible implementation, initializing the interactive 3D model displayed by the television device includes:

[0016] Obtaining a model quality of the interactive 3D model;

[0017] In the case where the model quality meets the preset TV display model quality standard, the interactive 3D model is equally divided into a preset number of angle blocks according to the model quality, and a ring dictionary is determined;

[0018] An initial angle is set for the interactive 3D model to complete initialization.

[0019] In a possible implementation, controlling the rotation state of the interactive 3D model according to the first output angle and the second output angle includes:

[0020] Determine whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold;

[0021] If yes, then determining that the rotation state of the interactive 3D model is a stationary state;

[0022] If not, it is determined that the rotation state of the interactive 3D model is a motion state, and the interactive 3D model is controlled to rotate according to the first output angle and the second output angle.

[0023] In a possible implementation manner, the determining whether an angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold includes:

[0024] Determine a first angle block and a second angle block corresponding to the first output angle and the second output angle in the annular dictionary respectively;

[0025] If the difference between the first angle block and the second angle block is less than a preset anti-shake difference threshold, determining that the angle difference between the first output angle and the second output angle is less than the preset anti-shake difference threshold;

[0026] If the difference between the first angle block and the second angle block is greater than a preset anti-shake difference threshold, it is determined that the angle difference between the first output angle and the second output angle is greater than the preset anti-shake difference threshold.

[0027] In a possible implementation, controlling the interactive 3D model to rotate according to the first output angle and the second output angle includes:

[0028] Determine a rotation direction and a number of rotation steps according to the first output angle and the second output angle;

[0029] According to the rotation direction and the rotation step number, the rotation is performed according to the angle blocks determined in the annular dictionary, and only one of the angle blocks is rotated each time until the interactive 3D model is rotated to the target angle block.

[0030] In a second aspect, an embodiment of the present invention provides a device for controlling the rotation of a television interaction model, comprising:

[0031] The control module is used to initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device; receive the continuous first output angle and second output angle of the gyroscope; and control the rotation state of the interactive 3D model according to the first output angle and the second output angle.

[0032] In a third aspect, an embodiment of the present invention provides a computer device, comprising a processor and a non-volatile memory storing computer instructions, wherein when the computer instructions are executed by the processor, the computer device executes the method described in at least one possible implementation of the first aspect.

[0033] In a fourth aspect, an embodiment of the present invention provides a readable storage medium, wherein the readable storage medium includes a computer program, and when the computer program is run, the computer device where the readable storage medium is located is controlled to execute the method described in at least one possible implementation manner of the first aspect.

[0034] Compared with the prior art, the beneficial effects provided by the present invention include: using the method, device, computer equipment and readable storage medium disclosed in the present invention to control the rotation of a TV interactive model, by initializing the mobile terminal gyroscope and the TV interactive 3D model, then receiving two consecutive output angles of the gyroscope, and finally controlling the rotation state of the interactive 3D model according to the two angles, the user can achieve accurate, stable and convenient rotation control of the TV interactive model through the mobile terminal, thereby improving the user interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.

[0036] Figure 1 A schematic flow chart of the steps of a method for controlling the rotation of a television interactive model provided by an embodiment of the present invention;

[0037] Figure 2 A schematic block diagram of the structure of a device for controlling the rotation of a television interactive model provided by an embodiment of the present invention;

[0038] Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0040] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings.

[0041] In order to solve the technical problems in the aforementioned background technology, Figure 1 This is a flow chart of a method for controlling the rotation of a television interaction model provided in an embodiment of the present disclosure. The method for controlling the rotation of a television interaction model is introduced in detail below.

[0042] Step S201, initializing the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the television device;

[0043] Step S202, receiving the first output angle and the second output angle of the gyroscope continuously;

[0044] Step S203: controlling the rotation state of the interactive 3D model according to the first output angle and the second output angle.

[0045] In an embodiment of the present invention, for example, in a family's living room, a user turns on a smart TV and is ready to use a mobile terminal (such as a mobile phone) to control the interactive 3D model displayed on the TV. At this time, the server begins to initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device.

[0046] For the initialization of the gyroscope configured in the mobile terminal, the server first activates the gyroscope. Assuming that this is a latest smartphone, its gyroscope has the characteristics of high precision and fast response. The server sends an activation command to the mobile phone, and after receiving the command, the mobile phone starts the gyroscope and starts to read the device angle of the mobile phone. The server then tests whether the gyroscope can accurately read the device angle of the mobile phone.

[0047] The server assumes that the first test angle received is 30 degrees, but after comparing it with the standard angle, it finds a 5-degree deviation, which means that the gyroscope reading is inaccurate. The server then sends the activation command again and repeats the test steps. After the second test, the angle received by the server is 30 degrees, which is exactly the same as the standard angle, indicating that the gyroscope can accurately read the device angle and initialization is complete.

[0048] For the initialization of the interactive 3D model displayed on the TV device, the server first obtains the model quality of the interactive 3D model. Assume that this interactive 3D model is a beautiful car model with very high model quality, rich details, and excellent rendering effect. After evaluation, the server determines that the model quality meets the preset TV display model quality standard.

[0049] Then, the server divides the interactive 3D model into a preset number of angle blocks according to the model quality. Assuming the preset number is 180, the circular dictionary is determined. The server divides the 360-degree angle range into 180 angle blocks according to a certain algorithm, and each angle block is 2 degrees. For some special critical angles, such as 0 degrees, 180 degrees, and -180 degrees, the server will perform special processing and appropriately adjust the range of the corresponding angle block to ensure accurate division of the angle.

[0050] Finally, the server sets an initial angle for the interactive 3D model, assuming that the initial angle is 0 degrees, and completes the initialization. At this time, the 3D car model on the TV screen is displayed in front of the user at an initial angle of 0 degrees, waiting for the user to operate through the mobile terminal.

[0051] The user picks up the initialized mobile phone and starts to slowly move the mobile phone left and right. The server obtains the device angle of the mobile terminal at a preset time interval.

[0052] Assuming that the preset time interval is 1 second, in the first second, the server obtains that the first device angle of the mobile phone is 45 degrees. In the second second, the server obtains that the second device angle of the mobile phone is 55 degrees.

[0053] The server determines the first and second continuous output angles of the gyroscope based on the two device angles. The specific calculation method is to convert the device angle into the index value of the corresponding angle block in the ring dictionary. Assume that the angle block index corresponding to 45 degrees is 22, and the angle block index corresponding to 55 degrees is 27.

[0054] The server first determines whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold. Assume that the number of angle blocks corresponding to the preset anti-shake difference threshold is 5.

[0055] The server determines the first output angle and the second output angle in the annular dictionary to correspond to the first angle block 22 and the second angle block 27, respectively, and calculates the difference between the two to be 5, which is exactly equal to the preset anti-shake difference threshold.

[0056] Since the difference is equal to the preset anti-shake difference threshold, the server determines that the rotation state of the interactive 3D model is a static state. At this time, the 3D car model on the TV screen maintains the current angle unchanged and does not rotate.

[0057] The user finds that the model does not rotate, so he speeds up the movement of the phone. The server again obtains that the first device angle of the phone at the preset time interval is 60 degrees, and the second device angle is 120 degrees.

[0058] After conversion, the angle block index corresponding to the first output angle is 30, and the angle block index corresponding to the second output angle is 60. The difference between the two is calculated to be 30, which is greater than the preset anti-shake difference threshold.

[0059] The server determines that the rotation state of the interactive 3D model is a motion state, and controls the interactive 3D model to rotate according to the first output angle and the second output angle.

[0060] The server first determines the rotation direction and number of rotation steps according to the first output angle and the second output angle. The first angle block 30 is compared with the second angle block 60, and it is found to be rotated to the right. The number of rotation steps is calculated to be 30, and each step corresponds to the rotation of one angle block.

[0061] The server rotates according to the angle blocks determined in the ring dictionary, rotating only one angle block at a time. Starting from the current angle block, it gradually rotates to the right. After 30 rotations, the interactive 3D model rotates to the target angle block.

[0062] At this time, the 3D car model on the TV screen rotates smoothly to the right as the user's mobile phone moves, providing the user with an intuitive and interesting interactive experience.

[0063] The user continues to operate the phone, the server continues to receive the output angle of the gyroscope, and controls the rotation state of the interactive 3D model according to the above process, allowing the user to freely control the display angle of the 3D model on the TV through simple mobile phone movements and explore the details of the model in depth.

[0064] Assume that the user moves the mobile phone quickly from one side to another, the first output angle received by the server is 150 degrees, and the second output angle is -120 degrees.

[0065] After conversion to angle block index, the first angle block is 75, and the second angle block is -60. The calculated difference exceeds the preset anti-shake difference threshold.

[0066] The server determines that the rotation direction is left, calculates the number of rotation steps, and then rotates the angle block left step by step according to the circular dictionary until the interactive 3D model rotates to the target angle block.

[0067] The 3D car model on the TV screen quickly rotated to the left, showing different sides.

[0068] For another example, when the user moves the mobile phone at a relatively steady speed, the first output angle is 90 degrees and the second output angle is 100 degrees.

[0069] After conversion, the first angle block is 45, and the second angle block is 50. The difference is less than the preset anti-shake difference threshold, and the server determines that the model rotation state is static, and the 3D model on the TV maintains the current angle.

[0070] In another scenario, the user holds the phone and rotates it around himself, and the angle changes received by the server are more complex. However, through the above-mentioned angle processing and anti-shake judgment mechanism, the rotation of the interactive 3D model on the TV can still be accurately controlled, providing users with a stable and smooth interactive effect.

[0071] Assume that the user first tilts the phone upward, the first output angle is 30 degrees, and then quickly tilts the phone downward, the second output angle is -30 degrees.

[0072] After conversion to angle blocks, the calculated difference is greater than the preset anti-shake difference threshold. The server determines that the rotation direction is downward, calculates the number of rotation steps and controls the model rotation.

[0073] As the user continues to change the posture and angle of the phone, the server can always accurately control the rotation of the interactive 3D model based on the received gyroscope output angle, allowing users to appreciate and operate the 3D model on the TV from all directions and angles.

[0074] In the embodiment of the present invention, initializing the gyroscope configured in the mobile terminal may be implemented through the following example.

[0075] activating the gyroscope to test whether the gyroscope can accurately read the device angle of the mobile terminal;

[0076] If yes, initialization is complete;

[0077] If not, the steps of activating the gyroscope and testing whether the gyroscope can accurately read the device angle of the mobile terminal are repeated until the initialization is completed.

[0078] In the embodiment of the present invention, for example, a family is sitting in front of a smart TV, preparing to control the wonderful interactive 3D model displayed on the TV through a mobile terminal. At this time, the server receives an instruction to initialize the gyroscope of the mobile terminal.

[0079] The server first sends a signal to activate the gyroscope to the mobile terminal. Assuming this is a high-performance smartphone, it quickly responds to the server's instructions and activates the built-in gyroscope.

[0080] The server then begins testing whether the gyroscope can accurately read the device angle of the mobile terminal. It sends a request to the phone, asking it to report the current device angle. The phone quickly transmits the angle data it detects, such as 40 degrees, to the server.

[0081] The server compares the received 40-degree angle with the preset standard angle. If the comparison finds that the 40-degree angle is accurate without any deviation, the server will determine that the gyroscope can accurately read the device angle of the mobile terminal, thereby confirming that the gyroscope initialization is complete.

[0082] However, if after comparison, it is found that the 40-degree angle reported by the mobile phone deviates from the preset standard angle, for example, it should actually be 38 degrees, then the server will determine that the gyroscope failed to accurately read the device angle.

[0083] In this case, the server will not give up, but will send a command to activate the gyroscope to the mobile terminal again, restart the gyroscope, and then perform the angle reading and testing process again.

[0084] Assume that in the second test, the angle reported by the phone is 39 degrees, which is still a certain deviation. The server will continue to repeat the activation and testing steps without getting discouraged.

[0085] Maybe in the third test, the angle reported by the phone is exactly 38 degrees. At this point, the server finally determines that the gyroscope can accurately read the device angle, and the gyroscope initialization work is successfully completed.

[0086] For example, in another scenario, the user is using an older mobile terminal, and the performance of its gyroscope may not be stable.

[0087] After the server activated the gyroscope for the first time, the received angle was 60 degrees, while the standard angle should be 55 degrees. The server judged it inaccurate and activated it again.

[0088] The second time I received 53 degrees, it was still inaccurate.

[0089] The server continues to repeat the activation and testing operations until the Nth time, it receives an accurate 55 degrees and completes the initialization.

[0090] In a company's conference room, a staff member is preparing to display an important 3D model through a mobile terminal. The server also initializes the gyroscope of the mobile terminal.

[0091] After the first activation, the received angle is 120 degrees, and the standard angle should be 118 degrees. The server repeats the operation.

[0092] The second time was 119 degrees, and we continued to repeat.

[0093] Finally, the accurate 118 degrees was successfully received on the fourth try, completing the initialization and preparing for the subsequent 3D model interactive control.

[0094] Whether in a home entertainment scenario or in a work environment, the server will persistently repeat the activation and testing steps until it ensures that the gyroscope can accurately read the device angle of the mobile terminal and provide users with precise and reliable interactive control services.

[0095] In the embodiment of the present invention, the receiving of the continuous first output angle and the second output angle of the gyroscope may be implemented through the following example.

[0096] Acquire a first device angle and a second device angle of the mobile terminal at a preset time interval;

[0097] A first output angle and a second output angle of the gyroscope are determined according to the first device angle and the second device angle.

[0098] In an embodiment of the present invention, for example, in a science and technology exhibition hall, many visitors are surrounding a smart TV equipped with an interactive 3D model. The server is now focusing on receiving the output angle of the mobile terminal gyroscope to achieve precise control of the interactive 3D model on the TV.

[0099] The preset time interval is set to 0.5 seconds. When the user starts the operation, the server starts timing. At the moment when the first 0.5 seconds ends, the server obtains the first device angle transmitted by the mobile terminal, which is assumed to be 30 degrees.

[0100] Then, after the second 0.5 seconds, the server quickly obtains the angle of the second device, for example, 45 degrees.

[0101] After the server obtains the two device angles, it starts to determine the continuous first output angle and second output angle of the gyroscope based on them.

[0102] The server first matches the acquired first device angle of 30 degrees with the pre-set angle conversion rule. Assume that the rule stipulates that angles between 0 and 90 degrees correspond to a specific angle block range. Through calculation and comparison, the server determines that 30 degrees corresponds to the 10th angle block in the specific angle block range, and thus identifies it as the first output angle of the gyroscope.

[0103] Similarly, for the second device angle of 45 degrees, the server processes it according to the same conversion rule. After calculation and comparison, it is found that 45 degrees corresponds to the 15th angle block, so it is determined as the second output angle of the gyroscope.

[0104] In another scene, such as a game experience center, players are excitedly controlling the 3D models of virtual characters on TV through mobile terminals.

[0105] Similarly, a time interval of 0.5 seconds is preset. At the end of the first 0.5 seconds, the server obtains that the angle of the first device is 120 degrees.

[0106] At the end of the second 0.5 seconds, the second device angle is obtained to be 150 degrees.

[0107] According to the angle conversion rule, the server converts 120 degrees into the corresponding 60th angle block as the first output angle.

[0108] Convert 150 degrees to the corresponding 75th angle block as the second output angle.

[0109] In a school's multimedia classroom, a teacher is using this interactive system for teaching demonstrations.

[0110] A 1-second time interval is preset. At the end of the first second, the server obtains that the angle of the first device is 70 degrees.

[0111] At the end of the second second, the angle of the second device is obtained to be 85 degrees.

[0112] The server converts 70 degrees into the 35th angle block as the first output angle, and 85 degrees into the 42nd angle block as the second output angle.

[0113] For example, at a product launch conference, presenters use mobile terminals to show the audience a 3D model of a new product.

[0114] A time interval of 0.8 seconds is preset. When the first 0.8 seconds is over, the server obtains that the angle of the first device is 180 degrees.

[0115] The second 0.8 seconds ends, and the second device angle is obtained to be 210 degrees.

[0116] The server converts 180 degrees into the 90th angle block as the first output angle, and 210 degrees into the 105th angle block as the second output angle.

[0117] Regardless of the scenario, the server can accurately and quickly obtain the device angle of the mobile terminal at preset time intervals, and convert it into the output angle of the gyroscope according to established rules, providing key data support for the subsequent precise control of the interactive 3D model.

[0118] In a car 4S store, a sales consultant shows a customer a 3D model of a car.

[0119] A time interval of 0.6 seconds is preset. When the first 0.6 seconds is over, the server obtains that the angle of the first device is 50 degrees.

[0120] The second 0.6 seconds ends, and the angle of the second device is obtained to be 60 degrees.

[0121] The server converts 50 degrees into the 25th angle block as the first output angle, and 60 degrees into the 30th angle block as the second output angle.

[0122] In a design studio, designers adjust the 3D models of their designs through mobile terminals.

[0123] A time interval of 0.7 seconds is preset. When the first 0.7 seconds is over, the server obtains that the angle of the first device is 90 degrees.

[0124] The second 0.7 seconds ends, and the angle of the second device is obtained to be 100 degrees.

[0125] The server converts 90 degrees into the 45th angle block as the first output angle, and 100 degrees into the 50th angle block as the second output angle.

[0126] The server always maintains high efficiency and accuracy in a variety of application scenarios, providing users with a smooth and natural interactive experience.

[0127] In the embodiment of the present invention, the interactive 3D model displayed by the television device is initialized, which can be implemented through the following examples.

[0128] Obtaining a model quality of the interactive 3D model;

[0129] In the case where the model quality meets the preset TV display model quality standard, the interactive 3D model is equally divided into a preset number of angle blocks according to the model quality, and a ring dictionary is determined;

[0130] An initial angle is set for the interactive 3D model to complete initialization.

[0131] In the embodiment of the present invention, illustratively, in a digital display area of ​​a large shopping mall, a smart TV is preparing to display a beautiful interactive 3D model, and the server begins to initialize it.

[0132] The server first obtains the model quality of the interactive 3D model. This model is a complex jewelry display model, and the server evaluates its detail accuracy, texture clarity, rendering effect, etc. After a series of tests and analyses, it is determined that the quality of the model is very high and can meet the preset TV display model quality standards.

[0133] Next, the server divides the interactive 3D model into a preset number of angle blocks according to the model quality and determines the circular dictionary. Assuming the preset number is 120 angle blocks, the server will divide the 360-degree full-view angle into 120 angle blocks according to a certain algorithm, and each angle block is 3 degrees. For some special angles, such as 0 degrees, 90 degrees, 180 degrees, etc., the server will perform special processing to ensure the accuracy and completeness of the angle division.

[0134] In the process of dividing the angle blocks, the server will assign specific identifiers and parameters to each angle block to form a complete circular dictionary. This dictionary will be used for the subsequent precise control and judgment of the model rotation angle.

[0135] After completing the division of the angle blocks and determining the annular dictionary, the server sets an initial angle for the interactive 3D model. Assuming that the initial angle is set to 45 degrees, the server will send a command to the TV device to adjust the 3D model to this initial angle.

[0136] On the TV screen, the exquisite jewelry model is presented at an initial angle of 45 degrees, ready to be controlled by the user through a mobile terminal.

[0137] In another scene, such as an exhibition area of ​​a science museum, the TV device will display an interactive 3D model of the universe and galaxy.

[0138] The server obtains the quality of the model and after evaluation, the model quality meets the preset standards.

[0139] Then, according to the complexity of the model and the display requirements, the server divides it into 240 angle blocks, each of which is 1.5 degrees, so as to more finely control the rotation of the model. After the angle blocks are determined, a detailed circular dictionary is formed.

[0140] Finally, the initial angle of this cosmic galaxy model is set to 0 degrees so that it is displayed from the front, giving the audience an intuitive visual experience.

[0141] The servers can accurately complete initialization operations according to the characteristics and requirements of different interactive 3D models, providing users with high-quality and accurate interactive display services.

[0142] In the embodiment of the present invention, controlling the rotation state of the interactive 3D model according to the first output angle and the second output angle may be implemented through the following examples.

[0143] Determine whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold;

[0144] If yes, then determining that the rotation state of the interactive 3D model is a stationary state;

[0145] If not, it is determined that the rotation state of the interactive 3D model is a motion state, and the interactive 3D model is controlled to rotate according to the first output angle and the second output angle.

[0146] In an embodiment of the present invention, for example, in a virtual reality experience center, a user is controlling an interactive 3D model of a virtual city displayed on a TV through a mobile terminal. The server receives a first output angle and a second output angle of the gyroscope.

[0147] First, the server determines whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold. Assume that the preset anti-shake difference threshold is 5 degrees.

[0148] Assuming that the first output angle is 30 degrees and the second output angle is 32 degrees, the server calculates that the angle difference is 2 degrees. Because 2 degrees is less than the preset 5-degree anti-shake difference threshold, the server determines that the rotation state of the interactive 3D model is static. At this time, the virtual city model on the TV maintains the current angle and posture and does not rotate, providing users with a stable visual experience.

[0149] In another scenario, such as a car showroom, a user is viewing a 3D model of a car through a mobile terminal.

[0150] The first output angle received by the server is 120 degrees, and the second output angle is 135 degrees. After calculation, the angle difference is 15 degrees, which is greater than the preset 5-degree anti-shake difference threshold.

[0151] The server determines that the rotation state of the interactive 3D model is a motion state, and controls the interactive 3D model to rotate according to the first output angle and the second output angle.

[0152] The server first determines the direction of rotation. Since the second output angle is greater than the first output angle, it is determined to be a clockwise rotation. Then the number of steps required for rotation is calculated. The angle difference of 15 degrees is divided by the degree of each angle block (assuming 3 degrees), and the number of steps required for rotation is 5.

[0153] The server sends instructions to the TV device to gradually rotate the interactive 3D model according to the calculated direction and number of steps. On the TV screen, the car model rotates clockwise, allowing users to see details of the car from different angles.

[0154] In an interior design studio, designers are using the system to view 3D models of room layouts.

[0155] The first output angle obtained by the server is 60 degrees, and the second output angle is 63 degrees. The angle difference of 3 degrees is less than the preset anti-shake difference threshold. The server determines that the model rotation state is static, and the room model remains the same on the TV, which is convenient for designers to carefully observe the layout of the current angle.

[0156] Through the server's precise judgment and corresponding control of angle differences, the interactive 3D model can accurately and smoothly display different angles and details according to the user's operations, providing a high-quality interactive experience for various application scenarios.

[0157] In the embodiment of the present invention, the step of determining whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold may be implemented through the following example.

[0158] Determine a first angle block and a second angle block corresponding to the first output angle and the second output angle in the annular dictionary respectively;

[0159] If the difference between the first angle block and the second angle block is less than a preset anti-shake difference threshold, determining that the angle difference between the first output angle and the second output angle is less than the preset anti-shake difference threshold;

[0160] If the difference between the first angle block and the second angle block is greater than a preset anti-shake difference threshold, it is determined that the angle difference between the first output angle and the second output angle is greater than the preset anti-shake difference threshold.

[0161] In an embodiment of the present invention, for example, in a product design studio, designers are viewing an interactive 3D model of a new mobile phone through a mobile terminal. The server has acquired a first output angle and a second output angle of a gyroscope.

[0162] The server first determines the first angle block and the second angle block corresponding to the first output angle and the second output angle in the circular dictionary. Assume that the circular dictionary divides the range of 360 degrees into 180 angle blocks, each of which is 2 degrees. If the first output angle is 30 degrees, then the first angle block corresponding to it in the circular dictionary is 15; if the second output angle is 35 degrees, then the corresponding second angle block is 17.

[0163] The server then calculates the difference between the first angle block and the second angle block. In this example, the difference is 2.

[0164] Then, the server compares the difference with a preset anti-shake difference threshold. Assume that the preset anti-shake difference threshold is set to 3.

[0165] Since the calculated angle block difference 2 is less than the preset anti-shake difference threshold 3, the server determines that the angle difference between the first output angle and the second output angle is less than the preset anti-shake difference threshold.

[0166] In another scenario, such as an automotive R&D center, engineers are working on a 3D model of a new car.

[0167] The first output angle received by the server is 150 degrees, and the corresponding first angle block is 75; the second output angle is 160 degrees, and the corresponding second angle block is 80.

[0168] The difference in the calculated angle block is 5.

[0169] The preset anti-shake difference threshold is still 3.

[0170] Because 5 is greater than 3, the server determines that the angle difference between the first output angle and the second output angle is greater than the preset anti-shake difference threshold.

[0171] In an architectural model showroom, architects are displaying a 3D model of a large-scale construction project.

[0172] The first output angle is 270 degrees, corresponding to the first angle block in the annular dictionary is 135; the second output angle is 280 degrees, corresponding to the second angle block is 140.

[0173] The angle block difference is 5.

[0174] The default anti-shake difference threshold is set to 4.

[0175] Since 5 is greater than 4, the server determines that the angle difference is greater than the preset anti-shake difference threshold.

[0176] Through such precise calculation and comparison by the server, it is possible to accurately determine whether the change in angle has reached the level required to control the rotation of the interactive 3D model, thereby providing users with a stable and accurate interactive experience.

[0177] In the embodiment of the present invention, controlling the interactive 3D model to rotate according to the first output angle and the second output angle includes:

[0178] Determine a rotation direction and a number of rotation steps according to the first output angle and the second output angle;

[0179] According to the rotation direction and the rotation step number, the rotation is performed according to the angle blocks determined in the annular dictionary, and only one of the angle blocks is rotated each time until the interactive 3D model is rotated to the target angle block.

[0180] In an embodiment of the present invention, for example, in a virtual home design showroom, a customer is using a mobile terminal to operate an interactive 3D model of a house interior displayed on a TV. The server receives a first output angle and a second output angle of the gyroscope.

[0181] The server first determines the rotation direction and number of rotation steps based on the two output angles. Assume that the first output angle is 45 degrees, the corresponding angle block is 22, and the second output angle is 75 degrees, the corresponding angle block is 37. By comparison, the server determines that the rotation direction is clockwise, and the difference between the angle blocks is 15. Assuming that each angle block corresponds to a rotation angle of 2 degrees, it is calculated that a rotation of 30 degrees is required, that is, 15 steps.

[0182] Next, the server rotates the interactive 3D model according to the determined rotation direction and number of rotation steps, according to the angle blocks determined in the circular dictionary. Only one angle block is rotated at a time. The server sends a command to the TV device to start rotating the interactive 3D model clockwise. First, it rotates to the 23rd angle block, then the 24th, and so on.

[0183] During the rotation process, the server continuously monitors the progress of the rotation to ensure that only one angle block is rotated at a time to achieve an accurate and smooth rotation effect. Until the interactive 3D model rotates to the target angle block, which is the 37th angle block, the perspective of the interior of the house changes accordingly, allowing customers to observe the layout of the house from a new angle.

[0184] In another scenario, such as a car sales center, a salesperson is showing a 3D model of a car to a customer.

[0185] The first output angle received by the server is 135 degrees, and the corresponding angle block is 67. The second output angle is 105 degrees, and the corresponding angle block is 52. After calculation, the server determines that the rotation direction is counterclockwise, the angle block difference is 15, and each angle block corresponds to a rotation angle of 3 degrees, so it needs to rotate 45 degrees, that is, 15 steps.

[0186] The server starts to control the car 3D model to rotate counterclockwise, starting from the 66th angle block and gradually backing off, rotating one angle block at a time. During the rotation process, the server precisely controls the speed and angle of rotation to ensure that the model rotates smoothly and naturally. It rotates all the way to the 52nd angle block, at which point the customer can clearly see the details on the other side of the car.

[0187] At a digital art exhibition, visitors are viewing a 3D model of an artwork through their mobile terminals.

[0188] The first output angle obtained by the server is 225 degrees, and the corresponding angle block is 112. The second output angle is 255 degrees, and the corresponding angle block is 127. The server calculates that the rotation direction is clockwise, the angle block difference is 15, and each angle block corresponds to a rotation angle of 2.5 degrees. It needs to rotate 37.5 degrees, which is about 15 steps.

[0189] The server directs the 3D model of the artwork to rotate clockwise, one angle block after another, until it reaches the 127th angle block, presenting the unique charm of the work from different angles to the audience.

[0190] At an industrial product design company, designers are reviewing a 3D model of a part.

[0191] The first output angle is 90 degrees, and the corresponding angle block is 45. The second output angle is 60 degrees, and the corresponding angle block is 30. The server determines that the rotation direction is counterclockwise, and the angle block difference is 15. Each angle block corresponds to a rotation angle of 2 degrees, and a rotation of 30 degrees is required, that is, 15 steps.

[0192] The server controls the 3D model of the part to rotate counterclockwise, accurately rotating one angle block at a time until it reaches the 30th angle block, allowing designers to fully view all parts of the part.

[0193] Through such precise and orderly control, the server enables the interactive 3D model to be accurately rotated to the desired angle according to the user's operation, providing excellent interactive effects and user experience for various application scenarios.

[0194] In order to more clearly describe the solution proposed in the implementation mode of this application, a relatively complete implementation mode is provided below.

[0195] Step 1: Initialize the minimum angle range block ring dictionary according to the model quality and perform angle segmentation.

[0196] Step 2: Look up the dictionary angle block information based on the receiving angle.

[0197] Step 3: Compare the two angle block information to see if they are equal and make an anti-shake determination.

[0198] Step 4: The difference angle that meets the rotation condition is used to make a left-right judgment and calculate the number of rotation angle conversion steps.

[0199] Step 5. Finally, rotate according to the correct direction.

[0200] The first step is to provide object rotation based on the background model. The purpose of introducing the background model here is to fully facilitate the display of the model's motion information and focus only on the more meaningful rotation area. In addition, the use environment is generated by receiving the angle of the mobile phone gyroscope to exclude impossible environments.

[0201] The mobile phone gyroscope monitor will output the current angle of the device in real time, thereby rotating the model in the TV by identifying the angle and converting the behavior of simulating the operation of the remote control. The model is divided into minimum rotation angle blocks according to the quality of the model, and a minimum angle range block circular dictionary is generated in the order of positive and negative angles to more accurately determine the direction and set an initial angle for the initialized model. In the second step, the received angle is checked for matching in the minimum angle range block circular dictionary.

[0202] The third step is to make an equality judgment for the two angles. The equality judgment here will include an anti-shake judgment that considers adjacent angles to be equal to prevent the gyroscope from being too sensitive and causing the model display screen to shake. If the angles are equal, no subsequent execution will be performed. If they are not equal, the fourth step will be executed.

[0203] The fourth step is to find the position of the minimum angle range block ring dictionary by receiving the angle if the angle is not equal and compare it with the last angle position to find the direction and calculate the number of steps to rotate. Note: The number of steps is the degree of an angle block. Finally, the fifth step is to loop and execute the calculated difference steps according to the calculated direction.

[0204] For example, for the first step of initializing dictionary information, the specific implementation method is as follows:

[0205] A 180-layer model is used. The positive and negative 180 degrees of the gyroscope are divided into 180 equal blocks, each of which is called pi.

[0206] Pi is obtained by dividing the number of layers by 2, and each block contains 2 angles. Each pi stores the order of i, min is the minimum angle, max is the maximum angle, and ri is the positive and negative angle number representing the angle name.

[0207] When the critical values ​​such as 0, 180 degrees, and -180 degrees are calculated, the min and max in pi will be replaced by an array of c to store the original min, max, and critical values.

[0208] When the range is 0-180, both min and max are calculated as positive values, and when the range is 0--180, both min and max are calculated as negative values.

[0209] For the fourth step of background modeling, the specific implementation method is as follows:

[0210] The historical angle block information is called p1, the current angle block information is called n1, and the minimum angle circular dictionary is called m.

[0211] Compare the order of i in p1 with the order of i in n1 and calculate the step difference c.

[0212] m is left from top to bottom, and right from top to bottom. The direction is judged by comparing i in p1 and i in n1. If both are positive, then compare whether i in p1 is larger or i in n1 is larger. If n1 is larger, then the direction is left, and if p1 is larger, then the direction is right. If the comparison is negative, then the opposite is true.

[0213] Please refer to Figure 2 , Figure 2 An apparatus 110 for controlling the rotation of a television interactive model provided by an embodiment of the present invention includes:

[0214] The control module 1101 is used to initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device; receive the continuous first output angle and second output angle of the gyroscope; and control the rotation state of the interactive 3D model according to the first output angle and the second output angle.

[0215] It should be noted that the implementation principle of the aforementioned device 110 for controlling the rotation of the television interactive model can refer to the implementation principle of the aforementioned method for controlling the rotation of the television interactive model, and will not be repeated here. It should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the device 110 for controlling the rotation of the television interactive model can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the device 110 for controlling the rotation of the television interactive model. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0216] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital signal processors, DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0217] The embodiment of the present invention provides a computer device 100, which includes a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device 100 executes the aforementioned device 110 for controlling the rotation of the television interactive model. Figure 3 As shown, Figure 3 The computer device 100 provided in the embodiment of the present invention is a structural block diagram. The computer device 100 includes a device 110 for controlling the rotation of a television interaction model, a memory 111, a processor 112 and a communication unit 113.

[0218] In order to realize data transmission or interaction, the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other directly or indirectly. For example, the electrical connection between these elements can be realized through one or more communication buses or signal lines. The device 110 for controlling the rotation of the television interaction model includes at least one software function module that can be stored in the memory 111 in the form of software or firmware or solidified in the operating system (OS) of the computer device 100. The processor 112 is used to execute the device 110 for controlling the rotation of the television interaction model stored in the memory 111, such as the software function modules and computer programs included in the device 110 for controlling the rotation of the television interaction model.

[0219] An embodiment of the present invention provides a readable storage medium, which includes a computer program. When the computer program is executed, the computer device where the readable storage medium is located is controlled to execute the aforementioned method for controlling the rotation of a television interactive model.

[0220] For illustrative purposes, the foregoing description is made with reference to specific embodiments. However, the above illustrative discussion is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed. Numerous modifications and variations are possible in accordance with the above teachings. These embodiments are selected and described in order to best illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can best utilize the present disclosure and utilize various embodiments with different modifications to suit the intended specific application.

Claims

1. A method for controlling the rotation of a television interactive model, characterized in that: include: Initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device; Receiving a first output angle and a second output angle continuously outputted by the gyroscope; The rotation state of the interactive 3D model is controlled according to the first output angle and the second output angle.

2. The method according to claim 1, characterized in that Initializing a gyroscope configured in the mobile terminal includes: activating the gyroscope to test whether the gyroscope can accurately read the device angle of the mobile terminal; If yes, initialization is complete; If not, the steps of activating the gyroscope and testing whether the gyroscope can accurately read the device angle of the mobile terminal are repeated until the initialization is completed.

3. The method according to claim 2, characterized in that The receiving of the continuous first output angle and the second output angle of the gyroscope comprises: Acquire a first device angle and a second device angle of the mobile terminal at a preset time interval; A first output angle and a second output angle of the gyroscope are determined according to the first device angle and the second device angle.

4. The method according to claim 1, characterized in that: Initialize the interactive 3D model displayed on the TV device, including: Obtaining a model quality of the interactive 3D model; In the case where the model quality meets the preset TV display model quality standard, the interactive 3D model is equally divided into a preset number of angle blocks according to the model quality, and a ring dictionary is determined; An initial angle is set for the interactive 3D model to complete initialization.

5. The method according to claim 4, characterized in that The controlling the rotation state of the interactive 3D model according to the first output angle and the second output angle includes: Determine whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold; If yes, then determining that the rotation state of the interactive 3D model is a stationary state; If not, it is determined that the rotation state of the interactive 3D model is a motion state, and the interactive 3D model is controlled to rotate according to the first output angle and the second output angle.

6. The method according to claim 5, characterized in that The determining whether the angle difference between the first output angle and the second output angle is less than a preset anti-shake difference threshold includes: Determine a first angle block and a second angle block corresponding to the first output angle and the second output angle in the annular dictionary respectively; If the difference between the first angle block and the second angle block is less than a preset anti-shake difference threshold, determining that the angle difference between the first output angle and the second output angle is less than the preset anti-shake difference threshold; If the difference between the first angle block and the second angle block is greater than a preset anti-shake difference threshold, it is determined that the angle difference between the first output angle and the second output angle is greater than the preset anti-shake difference threshold.

7. The method according to claim 5, characterized in that The controlling the interactive 3D model to rotate according to the first output angle and the second output angle includes: Determine a rotation direction and a number of rotation steps according to the first output angle and the second output angle; According to the rotation direction and the rotation step number, the rotation is performed according to the angle blocks determined in the annular dictionary, and only one of the angle blocks is rotated each time until the interactive 3D model is rotated to the target angle block.

8. A device for controlling the rotation of a television interactive model, characterized in that: include: A control module, used to initialize the gyroscope configured in the mobile terminal and the interactive 3D model displayed by the TV device; Receive the continuous first output angle and second output angle of the gyroscope; and control the rotation state of the interactive 3D model according to the first output angle and the second output angle.

9. A computer device, characterized in that: The computer device comprises a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the computer device executes the method according to any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium includes a computer program, and when the computer program is executed, the computer device where the readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.