CN114305965B - Massager control method - Google Patents
Massager control method Download PDFInfo
- Publication number
- CN114305965B CN114305965B CN202111638284.3A CN202111638284A CN114305965B CN 114305965 B CN114305965 B CN 114305965B CN 202111638284 A CN202111638284 A CN 202111638284A CN 114305965 B CN114305965 B CN 114305965B
- Authority
- CN
- China
- Prior art keywords
- massager
- target
- dimensional
- model
- rendering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 120
- 238000009877 rendering Methods 0.000 claims abstract description 88
- 230000008569 process Effects 0.000 claims abstract description 53
- 230000015654 memory Effects 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 11
- 230000003213 activating effect Effects 0.000 claims description 3
- 230000002085 persistent effect Effects 0.000 claims description 2
- 230000006403 short-term memory Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 21
- 210000003128 head Anatomy 0.000 description 16
- 238000004891 communication Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 9
- 230000008901 benefit Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000002040 relaxant effect Effects 0.000 description 4
- 230000002411 adverse Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000003814 drug Substances 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 210000003205 muscle Anatomy 0.000 description 2
- 230000003387 muscular Effects 0.000 description 2
- 235000001968 nicotinic acid Nutrition 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Massaging Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a massager control method, which is applied to a massager control process and comprises the following steps: obtaining a target three-dimensional file corresponding to a target massager, and rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display the target three-dimensional model; and acquiring a control instruction, and controlling the target massager to execute massage operation according to the control instruction. According to the scheme, the control method of the massager enables a user to issue the control instruction through the 3D model corresponding to the massager, the user can intuitively know the structure of the controlled massager through the 3D model and issue the control instruction correspondingly, meanwhile, the loading efficiency of the 3D model is improved by adopting the three-dimensional file in the graphic language exchange format and the rendering mode of the real-time renderer based on physical rendering, the learning cost of the user to the massager control process is reduced, and the use experience of the massager of the user is improved.
Description
Technical Field
The application belongs to the field of equipment control, and particularly relates to a massager control method.
Background
The massage device is a health care device developed according to physical, bionics, bioelectricity, traditional Chinese medicine and clinical practice. Has the functions of relaxing muscles, relieving fatigue, relieving muscular soreness, relaxing body, relieving pressure, etc.
The control mode adopted by the mainstream massagers in the market at present is usually completed by an application program running on mobile equipment, namely, a user sends a control instruction through the application program running on the mobile equipment so as to massage the massagers, and in the process, the application program often displays functions and switches of the massagers in a 2D plane graph or with simple text buttons.
However, with the development of the massager industry, a single massage device has been developed to have a function of massaging different body parts or massaging different areas of the same body part, and for the massagers with more functions, the manner of displaying the functions and switches of the massagers in a 2D planar graph or with simple text buttons is less intuitive, so that a user needs to read a specification or learn the specific functions of each graph or button in other learning manners, which has a certain adverse effect on the use experience of the user.
Disclosure of Invention
The application aims to provide a massager control method, which aims to solve the problems that the prior mode of displaying functions and switches of a massager by using 2D plane figures or using simple text buttons is poor in intuitiveness, a user needs to read a specification or adopts other learning modes to know the specific functions of the figures or the buttons, and the user experience is adversely affected to a certain extent, and the massager control method provided by the application comprises the following steps:
A first aspect of an embodiment of the present application provides a method for controlling a massager, including:
acquiring a target three-dimensional file corresponding to a target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format;
rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display a target massager model;
Acquiring a control instruction, wherein the control instruction is issued by a user through the target massager model;
And controlling the target massager to execute massage operation according to the control instruction.
According to the massager control method provided in the first aspect of the embodiment of the present application, optionally,
The target three-dimensional file is obtained by compressing an original three-dimensional file, and the original three-dimensional file is in an obj file format.
According to the massager control method provided by the first aspect of the embodiment of the application, optionally, the target three-dimensional file is glTF format or glb format.
Based on the massager control method provided in the first aspect of the embodiment of the present application, optionally, the massager control method is applied to a mobile device adopting an android operating system.
According to the massager control method provided by the first aspect of the embodiment of the application, optionally, the target massager model is displayed through a transparent background.
According to the massager control method provided in the first aspect of the embodiment of the present application, optionally, the massager control method further includes:
acquiring the number of target three-dimensional files;
If the target three-dimensional files are multiple, respectively establishing multiple rendering processes, wherein the rendering processes are used for executing the step of rendering the target three-dimensional files by adopting a real-time renderer based on physical rendering, and the multiple rendering processes are respectively used for rendering different target three-dimensional files.
A second aspect of an embodiment of the present application provides a massager control device including:
The acquisition unit is used for acquiring a target three-dimensional file corresponding to the target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format;
The rendering unit is used for rendering the target three-dimensional file by adopting a physical rendering-based real-time renderer to obtain and display a target massager model;
The acquisition unit is used for acquiring a control instruction which is issued by a user through the target massager model;
and the execution unit is used for controlling the target massager to execute massage operation according to the control instruction.
Based on the massager control device provided in the second aspect of the embodiment of the present application, optionally, the target three-dimensional file is obtained by compressing an original three-dimensional file, and the original three-dimensional file is in an obj file format.
According to the massager control device provided by the second aspect of the embodiment of the application, optionally, the target three-dimensional file is in glTF format or glb format.
Based on the massager control device provided in the second aspect of the embodiment of the present application, optionally, the massager control device is a mobile device adopting an android operating system.
According to the massager control device provided by the second aspect of the embodiment of the application, optionally, the target massager model is displayed through a transparent background.
Based on the massager control device provided in the second aspect of the embodiment of the present application, optionally, the rendering unit is further configured to:
acquiring the number of target three-dimensional files;
If the target three-dimensional files are multiple, respectively establishing multiple rendering processes, wherein the rendering processes are used for executing the step of rendering the target three-dimensional files by adopting a real-time renderer based on physical rendering, and the multiple rendering processes are respectively used for rendering different target three-dimensional files.
A third aspect of an embodiment of the present application provides a massager control apparatus including:
A central processing unit, a memory;
The memory is a short-term memory or a persistent memory;
the central processor is configured to communicate with the memory and execute instruction operations in the memory on the device to perform the massager control method of any one of the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, comprising instructions that, when executed on a computer, cause the computer to perform the method for controlling a massager according to any one of the first aspect of the embodiments of the present application.
A fifth aspect of the embodiments of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of controlling a massager as set forth in any one of the first aspect of the embodiments of the present application.
From the above technical solutions, the embodiment of the present application has the following advantages: the application provides a massager control method, which comprises the following steps: acquiring a target three-dimensional file corresponding to a target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format; rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display the target three-dimensional model; acquiring the control instruction, wherein the control instruction is issued by a user through the target massager model; and controlling the target massager to execute massage operation according to the control instruction. According to the scheme, the control method of the massager enables a user to issue the control instruction through the 3D model corresponding to the massager, the user can intuitively know the structure of the controlled massager through the 3D model and issue the control instruction correspondingly, meanwhile, the loading efficiency of the 3D model is improved by adopting the three-dimensional file in the graphic language exchange format and the rendering mode of the real-time renderer based on physical rendering, the learning cost of the user to the massager control process is reduced, and the use experience of the massager of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art. It is to be understood that the drawings provided in this section are for a better understanding of the present application only and are not to be construed as limiting the application.
FIG. 1 is a schematic flow chart of an embodiment of a method for controlling a massager according to the present application;
FIG. 2 is a schematic flow chart of another embodiment of a method for controlling a massager according to the present application;
FIG. 3 is a schematic view of an embodiment of a massage control apparatus according to the present application;
fig. 4 is a schematic flow chart of another embodiment of the massager control device provided by the present application.
Detailed Description
The embodiment of the application provides a massager control method, which enables a user to issue control instructions through a 3D model corresponding to a massager, enables the user to intuitively know the structure of the controlled massager through the 3D model and issue the control instructions correspondingly, and simultaneously adopts a three-dimensional file in a graphic language exchange format and a rendering mode based on a physical rendering real-time renderer, so that the loading efficiency of the 3D model is improved, the learning cost of the user on the massager control process is reduced, and the massager use experience of the user is improved.
In order to better understand the solution of the present application, the following description of the solution of the embodiment of the present application will be clear and complete, and it is obvious that the described embodiment is only a part of the embodiment of the present application, not all the embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application. Meanwhile, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness of the description.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The massage device is a health care device developed according to physical, bionics, bioelectricity, traditional Chinese medicine and clinical practice. Has the functions of relaxing muscles, relieving fatigue, relieving muscular soreness, relaxing body, relieving pressure, etc. The control mode adopted by the mainstream massagers in the market at present is usually completed by an application program running on mobile equipment, namely, a user sends a control instruction through the application program running on the mobile equipment so as to massage the massagers, and in the process, the application program often displays functions and switches of the massagers in a 2D plane graph or with simple text buttons.
However, with the development of the massager industry, a single massage device has been developed to have a function of massaging different body parts or massaging different areas of the same body part, and for the massagers with more functions, the manner of displaying the functions and switches of the massagers in a 2D planar graph or with simple text buttons is less intuitive, so that a user needs to read a specification or learn the specific functions of each graph or button in other learning manners, which has a certain adverse effect on the use experience of the user.
In order to solve the above-mentioned problems, an embodiment of the present application provides a method for controlling a massager, referring to fig. 1, and one embodiment of the method for controlling a massager includes: step 101-step 104.
And 101, acquiring a target three-dimensional file corresponding to the target massager.
Specifically, a target three-dimensional file corresponding to a target massager is obtained, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format. The specific target massager is the controlled massager aimed at by the method. The massager has various types and models, such as an eye massager for massaging eyes, a hand massager for massaging hands, a foot massager for massaging feet, and further, the massager for massaging different parts has different product models. The step may be that the massager control device executing the method communicates with the target massager, establishes a communication link, acquires model information of the target massager, and further determines a target three-dimensional file corresponding to the target massager, where the target three-dimensional file may be stored in a memory of the massager control device in advance, or may be requested by the massager control device to a server based on the model information of the target massager, and may be obtained by the server issuing the request to the massager control device, specifically, according to the actual situation, without limitation herein.
The target three-dimensional file is in a graphical language exchange format (GL Transmission Format, glTF), which is a format standard for 3D content, governed by the Khronos Group, which describes the content of the entire 3D scene. The method comprises a scene graph describing a scene structure, 3D objects in the scene are defined by referencing grids through scene nodes, materials define the appearance of the 3D objects, animations define transformation operations (such as selection and translation operations) of the 3D objects, skins define how the 3D objects are subjected to skeleton transformation, and cameras define view cone settings of a rendering program. In the actual implementation process, the obj format three-dimensional file corresponding to the target massager model can be obtained in advance, compression processing is carried out by adopting objtogltf and other tools, and then the target three-dimensional file in the graphic language exchange format is obtained.
And 102, rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display the target three-dimensional model.
Specifically, the target three-dimensional file is rendered by a real-time renderer based on physical rendering to obtain and display the target three-dimensional model. A physical rendering based real-time renderer (PBR, PHYSICALLY BASED RENDERING) refers to a collection of rendering techniques that are based, to varying degrees, on basic theories that are more consistent with the physical principles of the real world. The PBR real-time renderer is used for rendering the target three-dimensional file, so that the execution efficiency of the rendering process is improved, the rendering process is prevented from consuming more time, the user experience is further improved, and the target three-dimensional model is displayed in a screen appointed area of the massager control device after the rendering is finished, so that the user can know the specific structure of the target massager and control the target massager.
Step 103, obtaining a control instruction.
Specifically, a control instruction is acquired, wherein the control instruction is issued by a user through the target massager model. The control instruction is a control operation of the target massager by the user, the specific control operation may be to activate the target massager to perform the massage operation or stop the target massager from performing the massage operation, further, the control instruction may also be an instruction for adjusting information such as temperature and gear of the target massager or adjusting massage conditions of different positions of the target massager, and the specific control instruction may be in a form according to actual conditions, which is not limited herein.
The user may select a control set in the target massager model to generate a control instruction for the target massager, and a specific user operation manner may be clicking or long pressing the target massager model, where different operation manners may correspondingly trigger different types of control instructions, for example, the user may trigger the target massager to execute a massage process in an overdischarging manner, may trigger the target massager to end the massage process in a long pressing manner, and may be specific to the actual situation, which is not limited herein.
And 104, controlling the target massager to perform massage operation according to the control instruction.
Specifically, the target massager is controlled to execute massage operation according to the control instruction. In the actual implementation process, the massager control device can issue corresponding control instructions to the target massager through corresponding communication links, so that the target massager executes the corresponding control instructions, and massage services are provided for users.
From the above technical solutions, the embodiment of the present application has the following advantages: the application provides a massager control method, which comprises the following steps: acquiring a target three-dimensional file corresponding to a target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format; rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display the target three-dimensional model; acquiring the control instruction, wherein the control instruction is issued by a user through the target massager model; and controlling the target massager to execute massage operation according to the control instruction. According to the scheme, the control method of the massager enables a user to issue the control instruction through the 3D model corresponding to the massager, the user can intuitively know the structure of the controlled massager through the 3D model and issue the control instruction correspondingly, meanwhile, the loading efficiency of the 3D model is improved by adopting the three-dimensional file in the graphic language exchange format and the rendering mode of the real-time renderer based on physical rendering, the learning cost of the user to the massager control process is reduced, and the use experience of the massager of the user is improved.
In order to facilitate the use of the method in the actual massage process, the present application also provides an embodiment of a more detailed massager control method that can be selectively implemented, referring to fig. 2, an embodiment of the massager control method provided by the present application includes: step 201-step 206.
Step 201, obtaining a target three-dimensional file corresponding to a target massager.
Specifically, the embodiment is described by taking an example of application to a mobile device using an android system, that is, an operating system adopted by a device serving as a massager control device in the method is the android system. Android (Android) is an operating system based on free and open source code of the Linux kernel (without GNU components). The method is mainly used for mobile equipment, such as smart phones and tablet computers, and is led and developed by Google corporation and the open cell phone alliance in America. The target three-dimensional file may be compressed from an original three-dimensional file, which is in obj file format. The obj file is in a 3D model file format. A standard developed by Alias Wavefront for 3D modeling and animation software "Advanced Visualizer" is suitable for use in the transconduction between 3D software models, and can also be read from and written to by Maya. The file size obtained by storing the target massager model with the obj file is generally larger, so that the file loading and transmission process consumes more time, and therefore the compression process is needed, specifically, the model can be compressed by adopting objtogltf and other tools, for example, the glb file size obtained after compressing the 38 megabytes obj file can reach about 10 megabytes, and the compression ratio is about 70%. And further, the memory occupied by the file is reduced, and the transmission process efficiency is improved. The compressed target three-dimensional file may be glTF format or glb format, which is a component format of the binary format storage glTF, and glb is used as a container to implement the content of glTF in binary format. And circumvents some of the shortcomings of glTF.
Step 202, obtaining the number of the target three-dimensional files.
Specifically, the target massager model may be composed of a plurality of model components, where different model components respectively correspond to different target three-dimensional files, and at this time, there are a plurality of target three-dimensional files, and if there are a plurality of target three-dimensional files in the rendering process, the processing needs to be performed respectively, that is, step 203 is executed, and a plurality of rendering processes are respectively established. If there is only one target three-dimensional file, step 204 may be performed directly without performing step 203.
In practical implementation, the target massager model may have a plurality of model components according to the number of the massaging components, for example, for a head massager, the actual structure may have 5 massaging head structures for pressing the head of the user and 4 light structures for providing illumination temperature, and then in practical implementation, the head massager model may include model components corresponding to the 5 massaging head structures, model components corresponding to the 4 light structures, and model components corresponding to 1 head massager model body, for example, 10 model components in total, and each model component may have a control function for a corresponding entity structure. It will be appreciated that the model component division of the target massager model in the actual implementation may be dependent on the actual situation, and is not limited in this particular context.
Step 203, respectively establishing a plurality of rendering processes.
Specifically, a plurality of rendering processes are respectively established, the rendering processes are used for executing the step of rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering, and the plurality of rendering processes are respectively used for rendering different target three-dimensional files. That is, each rendering process renders different target three-dimensional files, respectively, so as to load different components of the target massager model.
204. And rendering the target three-dimensional file by using a real-time renderer based on physical rendering to obtain and display a target massager model.
Specifically, a real-time renderer based on physical rendering is adopted to render the target three-dimensional file to obtain and display a target massager model. Wherein the physical rendering-based real-time renderer can be a PBR real-time renderer Filament designed for a mobile terminal by google, and overall the advantages of Filament are as follows: (1) Based on Vulkan, metal et al times graphics pipeline, web, IOS and Andorid platforms are supported. (2) ECS and FRAME GRAPH scalable rendering pipeline (3) SPIR-V based cross-platform shader compilation. The memory size used in the rendering process is reduced to a large extent in the use process, and the time consumed in the rendering process is reduced. The massager model components displayed after rendering of different target three-dimensional files can be respectively provided with corresponding controls, for example, for a head-mounted massager, the corresponding target massager model can be composed of three target three-dimensional files, one target three-dimensional file is used for representing the three-dimensional model of the neck massaging component in the head-mounted massager, the other target three-dimensional file is used for representing the three-dimensional model of the head massaging component in the head-mounted massager, the last target three-dimensional file is used for representing the three-dimensional model of the eye massaging component in the head-mounted massager, the three-dimensional model components jointly form the target massager model corresponding to the head-mounted massager, and each three-dimensional model component is respectively provided with a corresponding control for activating different component parts in the target massager, so that three loading and rendering processes of different component parts can be respectively established in the actual implementation process. The rendering process of each component can be synchronously performed by respectively establishing a plurality of corresponding rendering processes for different model components, so that the execution efficiency of the scheme is improved.
It can be understood that the user can not only issue a control instruction through the displayed target massager model, but also adjust the size and the gesture displayed by the target massager model, specifically, the user can trigger the function through the sliding gesture and the zooming gesture, which is not limited herein, in order to ensure the effect displayed by the target massager model, the information such as the light spot and the background corresponding to the target massager model can also be set, in the actual implementation process, the background can be set to be a transparent background, namely, when the 3D model is rendered, the space box is set to be transparent, so that the influence of the background part on the display effect of the massager model is reduced, and in this way, the user can be supported to change the display scene of the 3D model according to the mode or environment, if the user selects the current massage mode to be the meditation mode, the brightness of the display scene of the current 3D model can be correspondingly reduced, so that the user can better acquire the information of the displayed massager model, specifically, which is not limited herein.
205. And acquiring a control instruction.
The control instruction is specifically obtained, the control instruction may be issued by the user through different model components, the target massager model is composed of a plurality of model components, the control instruction issued by the user through the target model component is the control instruction of the massage component corresponding to the target model component, for example, in the case of the head massager, the user may select one of the model component corresponding to the head portion, the model component corresponding to the neck portion and the model component corresponding to the eye portion, and generate a corresponding control instruction, where the control instruction is used to control the corresponding portion in the target massager to execute the massage function, and the specific control instruction form may be according to the actual situation, and is not limited herein.
206. And controlling the target massager to execute massage operation according to the control instruction.
Specifically, the massager control device triggers the target massage assembly corresponding to the target model assembly to execute massage operation according to the control instruction. In an actual implementation process, the massager control device may issue the control instruction to the target massager through bluetooth, so that the target massager performs a massaging operation. After receiving the control instruction, the target massager analyzes the control instruction and triggers the target massage component corresponding to the target model component to execute massage operation. If the control instruction is the control instruction generated by the user by clicking the neck component displayed in the screen and triggering, the control component corresponding to the control target massager for massaging the neck region works. The specific control manner may be determined according to the actual situation, and is not limited herein.
It can be understood that in the actual control process, the control instruction sent by the user not only can include the switch instruction of the corresponding massage structure, but also can include the control of the further functions of the massager, specifically, parameters such as the pressure, the temperature, the illumination intensity and the like of the massage of the massager. In the actual implementation process, the user can click different model components and complete the corresponding control process through different gestures. For example, for a head massager model including 5 model components corresponding to the massaging head structures, 4 model components corresponding to the light structures, and 1 model component corresponding to the head massager model body, the user may trigger the corresponding massaging head structure or the light structure to provide a corresponding massaging process through clicking or sliding operation in the corresponding area. Specifically, the control process includes: detecting the operation of a user finger on an application interface in real time, identifying a clicking region and clicking operation, if three-dimensional coordinates of a pressing position and a lifting position of the finger are identified, calculating the relation between a coordinate difference value of the clicking region and the clicking operation and a preset threshold value, judging that the user operation is clicking if the coordinate difference value is smaller than the preset threshold value, triggering a control instruction corresponding to clicking, and generally, setting the control instruction corresponding to clicking to be used for opening or closing a corresponding massage component. If the coordinate difference is greater than the preset threshold, judging that the user operation is sliding, triggering a control instruction corresponding to the sliding, and generally setting the control instruction corresponding to the sliding to increase or decrease the power of the corresponding massage component according to the sliding direction. After the click operation is identified, determining a model component corresponding to the coordinate pressed by the finger of the user, and triggering a corresponding functional module according to the identification result. If the user clicks the position of a certain massage head model component and slides upwards, the control instruction can be determined to increase the massage power of the corresponding massage head structure, so that the user can control a certain single massage head or lamplight structure in the head massager in the mode, the power of a certain component is reduced or enhanced, the pertinence and flexibility of the control process of the massager are further improved, the massage experience of the user is further improved, the specific control process and mode can be adjusted according to the actual situation, and the method is not limited.
From the above technical solutions, the embodiment of the present application has the following advantages: the application provides a massager control method, which comprises the following steps: acquiring a target three-dimensional file corresponding to a target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format; rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display the target three-dimensional model; acquiring the control instruction, wherein the control instruction is issued by a user through the target massager model; and controlling the target massager to execute massage operation according to the control instruction. According to the scheme, the control method of the massager enables a user to issue the control instruction through the 3D model corresponding to the massager, the user can intuitively know the structure of the controlled massager through the 3D model and issue the control instruction correspondingly, meanwhile, the loading efficiency of the 3D model is improved by adopting the three-dimensional file in the graphic language exchange format and the rendering mode of the real-time renderer based on physical rendering, the learning cost of the user to the massager control process is reduced, and the use experience of the massager of the user is improved.
The above description describes a method for controlling a massager according to the present application, and in order to support implementation of the above embodiments, the present application further provides a massager control device, referring to fig. 3, and an embodiment of the massager control device according to the present application includes:
An obtaining unit 301, where the obtaining unit 301 is configured to obtain a target three-dimensional file corresponding to a target massager, where the target three-dimensional file is a three-dimensional file in a graphics-language exchange format;
a rendering unit 302, wherein the rendering unit 302 is used for obtaining and displaying a target massager model by adopting a physical rendering-based real-time renderer to render the target three-dimensional file;
An obtaining unit 303, where the obtaining unit 303 is configured to obtain a control instruction, where the control instruction is issued by a user through the target massager model;
and the execution unit 304 is used for controlling the target massager to execute massage operation according to the control instruction.
Based on the massager control device provided by the embodiment of the application, optionally, the target three-dimensional file is obtained by compressing an original three-dimensional file, and the original three-dimensional file is in an obj file format.
Based on the massager control device provided by the embodiment of the application, optionally, the target three-dimensional file is glTF format or glb format.
Based on the massager control device provided by the embodiment of the application, optionally, the massager control device is a mobile device adopting an android operating system.
Based on the massager control device provided by the embodiment of the application, optionally, the target massager model is displayed through a transparent background.
Based on the massager control device provided by the embodiment of the present application, optionally, the rendering unit 302 is further configured to:
acquiring the number of target three-dimensional files;
If the target three-dimensional files are multiple, respectively establishing multiple rendering processes, wherein the rendering processes are used for executing the step of rendering the target three-dimensional files by adopting a real-time renderer based on physical rendering, and the multiple rendering processes are respectively used for rendering different target three-dimensional files.
In this embodiment, the flow executed by each unit in the massager control device is similar to the flow of the method described in the embodiment corresponding to fig. 1 or fig. 2, and will not be repeated here.
Fig. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 4, the apparatus 400 includes a computing unit 401 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, such as the massager control method. For example, in some embodiments, may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the massager control method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the massager control method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
To implement the systems and techniques described here in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual PRIVATE SERVER" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
The embodiment of the application also provides a computer storage medium for storing computer software instructions for the massager control method, which comprises a program for executing the massager control method.
The massager control method may be as described in the corresponding embodiment of fig. 1 or fig. 2.
Embodiments of the present application also provide a computer program product comprising computer software instructions that can be loaded by a processor to implement the flow of the massager control method of any one of fig. 1 or fig. 2.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., equivalent transformations of circuitry, partitioning of elements is merely one logical functional partitioning, and there may be additional partitioning aspects in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, or alternatives falling within the spirit and principles of the invention.
Claims (9)
1. A method of controlling a massager, comprising:
acquiring a target three-dimensional file corresponding to a target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format;
rendering the target three-dimensional file by adopting a real-time renderer based on physical rendering to obtain and display a target massager model;
acquiring a control instruction, wherein the control instruction is issued by a user through the target massager model, the target massager model is composed of a plurality of three-dimensional model components, and each three-dimensional model component is provided with a corresponding control for activating different massage components in the target massager;
the acquisition control instruction includes: detecting coordinates of a pressing position and a lifting position of a user finger on an application interface;
calculating the relation between the coordinate difference value between the pressing position and the lifting position and a preset threshold value;
If the coordinate difference value is smaller than a preset threshold value, determining that the user operation is clicking, triggering a control instruction corresponding to the clicking, and setting the control instruction corresponding to the clicking to open or close a corresponding massage component;
If the coordinate difference value is larger than a preset threshold value, judging that the user operation is sliding, triggering a control instruction corresponding to the sliding, and setting the control instruction corresponding to the sliding to increase or decrease the power of the corresponding massage component according to the sliding direction;
And controlling the target massager to execute massage operation according to the control instruction.
2. The method according to claim 1, wherein the target three-dimensional file is obtained by compressing an original three-dimensional file, and the original three-dimensional file is in obj file format.
3. The method of claim 1, wherein the target three-dimensional file is glTF format or glb format.
4. The method of claim 1, wherein the method of controlling a massager is applied to a mobile device employing an android operating system.
5. The massager control method of claim 1, wherein the target massager model is displayed by a transparent background.
6. The massager control method according to claim 1, characterized in that the massager control method further comprises:
acquiring the number of target three-dimensional files;
If the target three-dimensional files are multiple, respectively establishing multiple rendering processes, wherein the rendering processes are used for executing the step of rendering the target three-dimensional files by adopting a real-time renderer based on physical rendering, and the multiple rendering processes are respectively used for rendering different target three-dimensional files.
7. A massager control apparatus, characterized by comprising:
The acquisition unit is used for acquiring a target three-dimensional file corresponding to the target massager, wherein the target three-dimensional file is a three-dimensional file in a graphic language exchange format;
The rendering unit is used for rendering the target three-dimensional file by adopting a physical rendering-based real-time renderer to obtain and display a target massager model;
The acquisition unit is used for acquiring control instructions, the control instructions are issued by a user through the target massager model, the target massager model is composed of a plurality of three-dimensional model components, and each three-dimensional model component is provided with a corresponding control for activating different massage components in the target massager;
The acquisition unit is specifically configured to: detecting coordinates of a pressing position and a lifting position of a user finger on an application interface;
calculating the relation between the coordinate difference value between the pressing position and the lifting position and a preset threshold value;
If the coordinate difference value is smaller than a preset threshold value, determining that the user operation is clicking, triggering a control instruction corresponding to the clicking, and setting the control instruction corresponding to the clicking to open or close a corresponding massage component;
If the coordinate difference value is larger than a preset threshold value, judging that the user operation is sliding, triggering a control instruction corresponding to the sliding, and setting the control instruction corresponding to the sliding to increase or decrease the power of the corresponding massage component according to the sliding direction;
and the execution unit is used for controlling the target massager to execute massage operation according to the control instruction.
8. A massager control apparatus, characterized by comprising:
A central processing unit, a memory;
The memory is a short-term memory or a persistent memory;
The central processor is configured to communicate with the memory, and execute instruction operations in the memory on the massager control device to perform the massager control method as set forth in any one of claims 1 to 6.
9. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the massager control method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111638284.3A CN114305965B (en) | 2021-12-29 | 2021-12-29 | Massager control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111638284.3A CN114305965B (en) | 2021-12-29 | 2021-12-29 | Massager control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114305965A CN114305965A (en) | 2022-04-12 |
CN114305965B true CN114305965B (en) | 2024-06-28 |
Family
ID=81017218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111638284.3A Active CN114305965B (en) | 2021-12-29 | 2021-12-29 | Massager control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114305965B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116850460B (en) * | 2023-06-30 | 2024-10-29 | 深圳市宗匠科技有限公司 | Beauty instrument and control method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110276819A (en) * | 2018-03-14 | 2019-09-24 | 佛山市顺德区美的电热电器制造有限公司 | A kind of displaying control method and device and computer readable storage medium |
CN112739304A (en) * | 2018-09-18 | 2021-04-30 | 傲胜国际私人有限公司 | System and method for controlling a massage device |
CN114296555A (en) * | 2021-12-29 | 2022-04-08 | 深圳市倍轻松科技股份有限公司 | Massager control method |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2753361Y (en) * | 2004-10-08 | 2006-01-25 | 陆宁 | Computer-controlled horizontal water-pressure massage cabin |
US9183672B1 (en) * | 2011-11-11 | 2015-11-10 | Google Inc. | Embeddable three-dimensional (3D) image viewer |
US9262869B2 (en) * | 2012-07-12 | 2016-02-16 | UL See Inc. | Method of 3D model morphing driven by facial tracking and electronic device using the method the same |
JP6004259B2 (en) * | 2012-08-09 | 2016-10-05 | パナソニックIpマネジメント株式会社 | Massage machine operation program, portable electronic information terminal, massage machine, and massage system |
US10198957B2 (en) * | 2013-04-12 | 2019-02-05 | Raytheon Company | Computer-based virtual trainer |
CN105997483A (en) * | 2016-04-29 | 2016-10-12 | 深圳市前海康启源科技有限公司 | Physiotherapy system with acupoint massage function |
US9925894B2 (en) * | 2016-07-12 | 2018-03-27 | Ford Global Technologies, Llc | Apparatus and method for a vehicle massage function for a vehicle seat |
CN107102741A (en) * | 2017-05-26 | 2017-08-29 | 北京小鸟看看科技有限公司 | A kind of VR helmets and its head massage method |
CN108210265B (en) * | 2017-09-26 | 2020-01-21 | 深圳市超级人生科技有限公司 | Massage state adjusting method, device and equipment of massager |
US11475630B2 (en) * | 2018-10-17 | 2022-10-18 | Midea Group Co., Ltd. | System and method for generating acupuncture points on reconstructed 3D human body model for physical therapy |
JP6898675B1 (en) * | 2020-04-24 | 2021-07-07 | 株式会社mediVR | Rehabilitation support device, its method and program |
CN111588616A (en) * | 2020-04-30 | 2020-08-28 | 广东艾诗凯奇智能科技有限公司 | Method and device for controlling massage equipment, mobile terminal and massage equipment |
CN112560189A (en) * | 2020-12-25 | 2021-03-26 | 深圳壹账通创配科技有限公司 | Page display method and device, computer equipment and readable storage medium |
CN112773675A (en) * | 2020-12-30 | 2021-05-11 | 深圳市倍轻松科技股份有限公司 | Control method and system of massage piece array and computer storage medium |
CN113298957A (en) * | 2021-05-28 | 2021-08-24 | 物可视(苏州)信息科技有限公司 | Embedded Web3d system based on Thing3DV local rendering cloud management model |
-
2021
- 2021-12-29 CN CN202111638284.3A patent/CN114305965B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110276819A (en) * | 2018-03-14 | 2019-09-24 | 佛山市顺德区美的电热电器制造有限公司 | A kind of displaying control method and device and computer readable storage medium |
CN112739304A (en) * | 2018-09-18 | 2021-04-30 | 傲胜国际私人有限公司 | System and method for controlling a massage device |
CN114296555A (en) * | 2021-12-29 | 2022-04-08 | 深圳市倍轻松科技股份有限公司 | Massager control method |
Also Published As
Publication number | Publication date |
---|---|
CN114305965A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230343055A1 (en) | Reconstruction of 3d model with immersive experience | |
WO2020131592A1 (en) | Mode-changeable augmented reality interface | |
US20170131964A1 (en) | Method for displaying virtual object in plural electronic devices and electronic device supporting the method | |
CN113643412A (en) | Virtual image generation method and device, electronic equipment and storage medium | |
CN109765793B (en) | Equipment state display method and device, terminal and storage medium | |
CN106575160A (en) | Method and apparatus for providing interface recognizing movement in accordance with user's view | |
KR20220038038A (en) | Electronic device and notification processing method of electronic device | |
CN114296555B (en) | Massager control method | |
US11886673B2 (en) | Trackpad on back portion of a device | |
CN113240778A (en) | Virtual image generation method and device, electronic equipment and storage medium | |
US20230107213A1 (en) | Method of generating virtual character, electronic device, and storage medium | |
Alshaal et al. | Enhancing virtual reality systems with smart wearable devices | |
CN114305965B (en) | Massager control method | |
CN110069101A (en) | A kind of wearable calculating equipment and a kind of man-machine interaction method | |
KR20220047731A (en) | Method and apparatus for controlling focus on interface, electronic device and storage medium | |
JP2024150438A (en) | Image generating method and device, electronic device, and storage medium | |
EP4341770A1 (en) | Touchpad navigation for augmented reality display device | |
WO2022246418A1 (en) | Touchpad navigation for augmented reality display device | |
WO2022246399A1 (en) | Touchpad input for augmented reality display device | |
CN115080886A (en) | Three-dimensional medical model GLB file analysis and display method based on mobile terminal | |
WO2022271088A1 (en) | Animation effect attachment based on audio characteristics | |
CN113986095B (en) | Massager control method, device and storage medium | |
CN114327718B (en) | Interface display method, device, equipment and medium | |
US20230297161A1 (en) | Augmented reality visual or acoustic feedback | |
US10990251B1 (en) | Smart augmented reality selector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |