WO2022007707A1 - 家居设备控制方法、终端设备及计算机可读存储介质 - Google Patents

家居设备控制方法、终端设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022007707A1
WO2022007707A1 PCT/CN2021/104078 CN2021104078W WO2022007707A1 WO 2022007707 A1 WO2022007707 A1 WO 2022007707A1 CN 2021104078 W CN2021104078 W CN 2021104078W WO 2022007707 A1 WO2022007707 A1 WO 2022007707A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
terminal device
household
control
Prior art date
Application number
PCT/CN2021/104078
Other languages
English (en)
French (fr)
Inventor
胡子付
苗彩霞
周峰
邹文进
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21838796.7A priority Critical patent/EP4170440A4/en
Publication of WO2022007707A1 publication Critical patent/WO2022007707A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2809Exchanging configuration information on appliance services in a home automation network indicating that an appliance service is present in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Definitions

  • the present application belongs to the technical field of terminals, and in particular, relates to a home equipment control method, a terminal equipment and a computer-readable storage medium.
  • the functions of home equipment are becoming more and more abundant, and the intelligent control of home equipment is becoming more and more important.
  • the intelligent control of home equipment can generally be performed by installing an application (application, APP) in a terminal device.
  • APP application
  • the user needs to enter the APP, find the home equipment to be controlled, and then enter the device control page corresponding to the home equipment to find the corresponding control menu, and trigger the corresponding control menu in the control menu.
  • the menu item is used to intelligently control the home equipment, the operation process is cumbersome, and the control efficiency is low.
  • the embodiments of the present application provide a home equipment control method, a terminal device, and a computer-readable storage medium, which can simplify the control process of the home equipment and improve the control efficiency of the home equipment.
  • an embodiment of the present application provides a method for controlling a household device, which is applied to a terminal device.
  • the method may include:
  • the target household device In response to the selection operation in the control menu, the target household device is controlled to execute the target control instruction corresponding to the selection operation.
  • the terminal device can be directly connected to the target home device.
  • a short-range communication connection can be established between the terminal device and the target household device.
  • the short-range communication connection may be a Bluetooth connection, a Near Field Communication (Near Field Communication, NFC) connection, a Wireless-Fidelity (Wireless-Fidelity, WiFi) connection, or a ZigBee (ZigBee) connection, or the like.
  • the terminal device can directly send the target control instruction corresponding to the menu item to the target home device to instruct the target home device to execute The target control instruction.
  • the target control instruction may be an instruction to turn on the target household device, or an instruction to turn off the target household device, or an instruction to adjust the volume of the target household device, and so on.
  • the terminal device and the target home device can be respectively connected to the cloud. Therefore, when the terminal device detects the user's selection operation of a certain menu item in the control menu, the terminal device can send the target control instruction corresponding to the menu item to the cloud. After the cloud receives the target control instruction, the addressable to the device control channel corresponding to the target household device, and send the target control instruction to the target household device through the device control channel to instruct the target household device to execute the target control instruction.
  • the terminal device can acquire an image corresponding to the target area, and can determine the target home equipment to be controlled according to the image. Then, the control menu corresponding to the target home device can be obtained, and the control menu can be displayed in the image through AR technology, that is, the target home device and the control menu corresponding to the target home device are simultaneously displayed in the image, so that the user can directly trigger the control menu.
  • the corresponding menu items are used to control the target home equipment, which can not only simplify the control process of the home equipment, but also improve the control efficiency of the home equipment.
  • control greatly improves the interactive performance in the control of home equipment, improves the user experience, and has strong ease of use and practicability.
  • the determining of the target home device according to the image may include:
  • the device feature is matched with the preset device feature in the device feature library to obtain a first matching result, and the target household device is determined according to the first matching result.
  • the device feature library may be a pre-established feature library, and the device feature library may include preset device features corresponding to multiple home devices. Wherein, a corresponding index may be established between each preset device feature in the device feature library and the corresponding home device, so that the target home device can be determined through the index, and the determination efficiency of the target home device can be improved.
  • the terminal device may establish a device feature library according to each household device of the entity. Specifically, for each household device, the terminal device can first obtain device identifiers such as the device name and/or device number corresponding to the household device, and can start the camera of the terminal device to perform a 360-degree image scan of the household device, that is, from Obtain device images corresponding to the home device from different angles.
  • device identifiers such as the device name and/or device number corresponding to the household device
  • the camera of the terminal device to perform a 360-degree image scan of the household device, that is, from Obtain device images corresponding to the home device from different angles.
  • the terminal device can separately extract each preset device feature corresponding to the home device from the acquired device images, that is, respectively extract the preset device feature corresponding to each device image, and use the preset device feature corresponding to each device image as The whole is saved to the device feature library respectively, and an index between the home device and each preset device feature is established at the same time, that is, the device name and/or device number corresponding to the home device and the device ID corresponding to each device image are established.
  • Preset devices Index between features is established by performing 360-degree feature extraction on home devices, so that 360-degree viewing angle matching can be performed when device features are matched, so as to improve the matching accuracy of device features and improve the determination of target home devices. accuracy.
  • the determining of the target home device according to the image may include:
  • the target household device is determined according to the first matching result and the second matching result.
  • the terminal device may determine the target household device in combination with the environmental characteristics of the environment where each household device is located.
  • the environment feature library may be a pre-established feature library.
  • the environment feature library may include preset environment features of the environment where each household device is located.
  • the matching of the device features with the preset device features in the device feature library may include:
  • each household device includes the target household device
  • Preset device features are extracted for each of the model images respectively, and the device feature library is constructed according to the preset device features corresponding to each of the model images.
  • the terminal device may establish the device feature library according to the three-dimensional 3D model of each household device. Specifically, for each household device, the terminal device may first acquire the device identifier corresponding to the household device, and may acquire the 3D model of the household device from the cloud according to the device identifier. Then, the terminal device can acquire each model image corresponding to the 3D model from different angles. Subsequently, the terminal device can extract the preset device features corresponding to the home device from the acquired model images, that is, extract the preset device features corresponding to the model images respectively, and can extract the preset device features corresponding to the model images. As a whole, they are respectively saved to the device feature library, and an index between the home device and each preset device feature is established at the same time.
  • the determining of the target home device according to the image may include:
  • the image is input into the trained neural network model for processing, the device identification output by the neural network model is obtained, and the target household device is determined according to the device identification.
  • the determining the target home device according to the device identifier may include:
  • the target household device is determined according to the device identification and the third matching result.
  • the inputting the image into the trained neural network model for processing it may include:
  • each household device includes the target household device
  • Each of the model images and the device identifiers of the household devices corresponding to each of the model images are input into the initial neural network model for training, to obtain the trained neural network model.
  • the terminal device can also determine the target home device to be controlled according to the trained neural network model.
  • the terminal device can input the acquired image into the trained neural network model for processing, obtain the device identifier output by the neural network model, and can determine the target home device according to the device identifier.
  • the neural network model may be a neural network model constructed by relying on tensorflow (TensorFlow).
  • the terminal device can perform the training of the neural network model according to each household device of the entity. Specifically, for each household device, the terminal device can start the camera of the terminal device to perform a 360-degree image scan of the household device, that is, the device images corresponding to the household device can be obtained from different angles, and the corresponding device images of the household device can be obtained.
  • Device identification for example, the device identification can be input by the user. Then, the terminal device can input each device image and the device identifier of the household device corresponding to each device image into the initial neural network model for training, to obtain a trained neural network model.
  • the neural network model obtained by training can be matched with a 360-degree perspective, improving the accuracy of the target household device. Determine accuracy.
  • the terminal device may also train the neural network model according to the 3D model of each household device. That is, the neural network model is trained by acquiring the model image corresponding to the 3D model.
  • the acquiring the control menu corresponding to the target home device and displaying the control menu in the image by using the augmented reality AR technology may include:
  • the terminal device in order to improve the control efficiency of the target home device, when the terminal device obtains the control menu corresponding to the target home device, it can also obtain the device status corresponding to the target home device, and can use AR technology to display the device in the image. The state is displayed, so that the user can correctly control the target home device based on the device state, improve the control efficiency of the target home device, and improve the user experience.
  • the determining of the target home device according to the image may include:
  • the image is sent to the cloud, so as to instruct the cloud to determine the target home device according to the image, and send the determined target home device to the terminal device.
  • the terminal device can also send the acquired image to the cloud, so as to determine the target home device through the cloud, reduce the processing performance of the terminal device, improve the determination efficiency of the target home device, and further improve the control of the home device efficient.
  • the cloud may determine the target home device to be controlled according to device characteristics in the image. Specifically, the cloud can first perform device detection on the image to detect home devices in the image. Then, feature extraction can be performed on the home equipment in the image to extract the device features of the home equipment, and the extracted device features can be matched with the preset device features in the device feature library to obtain the first matching result. The target household device to be controlled is determined according to the first matching result.
  • the cloud can also determine the target home device to be controlled according to the trained neural network model. Specifically, the cloud can input the image to the trained neural network model for processing, obtain the device identifier output by the neural network model, and can determine the target home device according to the device identifier.
  • the obtaining the control menu corresponding to the target home device may include:
  • a control menu corresponding to the target home device is generated according to the device capability description file.
  • an embodiment of the present application provides a home appliance control device, which is applied to a terminal device, and the device may include:
  • a device determination module configured to acquire an image corresponding to the target area, and determine the target home device according to the image
  • a menu display module configured to acquire a control menu corresponding to the target home device, and display the control menu in the image through augmented reality AR technology;
  • the device control module is configured to, in response to a selection operation in the control menu, control the target household device to execute a target control instruction corresponding to the selection operation.
  • the device determination module may include:
  • a first device detection unit configured to perform device detection on the image, and acquire device features of the detected household devices
  • the first feature matching unit is configured to match the device feature with the preset device feature in the device feature library, obtain a first matching result, and determine the target household device according to the first matching result.
  • the device determination module may include:
  • a second device detection unit configured to perform device detection on the image, and acquire device characteristics of the detected household equipment and environmental characteristics of the environment where the household equipment is located;
  • the second feature matching unit is configured to match the device feature with the preset device feature in the device feature library, obtain a first matching result, and match the environment feature with the preset environment feature in the environment feature library , get the second matching result;
  • a target device determination unit configured to determine the target household device according to the first matching result and the second matching result.
  • the device may also include:
  • a first three-dimensional model module used for acquiring three-dimensional models of each household device, where each household device includes the target household device;
  • a first model image acquisition module configured to acquire model images corresponding to the three-dimensional model from different angles for each three-dimensional model
  • the device feature library building module is used for extracting preset device features for each of the model images respectively, and constructing the device feature library according to the preset device features corresponding to each of the model images.
  • the device determination module may include:
  • the image input unit is configured to input the image into the trained neural network model for processing, obtain the device identification output by the neural network model, and determine the target household device according to the device identification.
  • the image input unit may include:
  • an environmental feature matching subunit configured to acquire the environmental feature corresponding to the image, and match the environmental feature with the preset environmental feature in the environmental feature library to obtain a third matching result
  • a target household device determination subunit configured to determine the target household device according to the device identification and the third matching result.
  • the device may also include:
  • the second three-dimensional model module is used to obtain the three-dimensional model of each household device, and each household device includes the target household device;
  • a second model image acquisition module configured to acquire model images corresponding to the three-dimensional model from different angles for each three-dimensional model
  • the neural network model training module is used for inputting each of the model images and the device identifiers of the household equipment corresponding to each of the model images into an initial neural network model for training to obtain the trained neural network model.
  • the menu display module may be further configured to acquire a control menu and a device state corresponding to the target home device, and display the control menu and the device state in the image through AR technology.
  • the device determination module may further include:
  • An image sending unit configured to send the image to the cloud, so as to instruct the cloud to determine the target home device according to the image, and send the determined target home device to the terminal device.
  • menu display module may include:
  • a device identification sending unit configured to send the device identification of the target home device to the cloud, so as to instruct the cloud to obtain a device capability description file corresponding to the target home device according to the device identification, and to describe the device capability the file is sent to the terminal device;
  • a control menu generating unit configured to generate a control menu corresponding to the target home device according to the device capability description file.
  • an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program , enabling the terminal device to implement the household device control method described in any one of the first aspects above.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer enables the computer to implement any one of the above-mentioned first aspects.
  • the one described home appliance control method is described in
  • an embodiment of the present application provides a computer program product that, when the computer program product runs on a terminal device, enables the terminal device to execute the home device control method described in any one of the first aspects above.
  • FIG. 1 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software architecture of a terminal device provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for controlling a household device provided in Embodiment 1 of the present application;
  • FIG. 4 and FIG. 5 are schematic display diagrams of a control menu provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a display of a control menu and device status provided by an embodiment of the present application.
  • Fig. 7 is the training schematic diagram of the neural network model provided by the embodiment of the present application.
  • FIG. 8 is an example diagram of obtaining an environment image provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a method for controlling a household device provided in Embodiment 2 of the present application.
  • FIG. 10 is a system structure diagram of a control system to which the home appliance control method provided in Embodiment 2 of the present application is applicable.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the intelligent control of home equipment may generally include the following two methods: 1) intelligent control of home equipment through APP installed in the terminal device; 2) intelligent control of home equipment through voice.
  • the user needs to open the APP first, find the home device they want to control in the APP interface, and enter the device control page corresponding to the home device, and then on the device control page Find the corresponding control menu and trigger the menu item in the control menu.
  • the terminal device After the terminal device detects the user's triggering operation on a certain menu item, it can send a control instruction corresponding to the menu item to the IoT cloud (for example, a control instruction to open the home device or a control instruction to close the home device).
  • the IoT cloud can address the device control channel corresponding to the home device, and send control commands to the home device through the device control channel.
  • the household device After receiving the control command, the household device can execute the control command, thereby realizing intelligent control of the household device.
  • the existing method of intelligent control of home equipment through APP not only has the problems of complicated operation process and low control efficiency, but also cannot achieve what you see is what you control, and the interactive performance is poor, which affects the user experience.
  • the user When performing intelligent control of home equipment through voice, the user is required to input a control voice to a terminal device such as a smart speaker.
  • the terminal device such as the smart speaker receives the control voice, it can convert the control voice to semantics through the voice system, then perform intent recognition on the semantics, and convert the recognized control instructions (such as the control instruction to turn on the home device A or The control command to turn off the home device B) is sent to the IoT cloud.
  • the IoT cloud can determine the home device to be controlled according to the control command, then address the device control channel corresponding to the home device, and send control commands to the home device through the device control channel.
  • the household device After receiving the control command, the household device can execute the control command, thereby realizing intelligent control of the household device.
  • the embodiments of the present application provide a household device control method, a terminal device, and a computer-readable storage medium.
  • an image corresponding to the area where the home equipment is located ie, the target area described below
  • the target home equipment to be controlled can be determined according to the image.
  • the control menu corresponding to the target home device can be obtained, and the control menu can be displayed in the image through AR technology, that is, the target home device and the control menu corresponding to the target home device are simultaneously displayed in the image, so that the user can directly trigger the control menu.
  • the corresponding menu items are used to control the target home equipment, which can not only simplify the control process of the home equipment, but also improve the control efficiency of the home equipment.
  • the user can directly operate the control menu in the image displaying the target home device and the control menu to control the target home device, just as the user directly controls the home device in the actual scene, realizing what the user sees
  • the purpose of the control is to greatly improve the interactive performance in the control of the home equipment, improve the user experience, and has strong ease of use and practicability.
  • the terminal device may be a mobile phone, a tablet computer, a wearable device, a laptop computer, an augmented reality (AR)/virtual reality (VR) device, an ultra-mobile personal computer (ultra-mobile personal computer) Computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), desktop computer and other terminal equipment with a camera device, the embodiment of the present application does not make any restrictions on the specific type of the terminal equipment.
  • AR augmented reality
  • VR virtual reality
  • UPC ultra-mobile personal computer
  • PDA personal digital assistant
  • desktop computer other terminal equipment with a camera device
  • FIG. 1 shows a schematic structural diagram of a terminal device 100 .
  • the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100 .
  • the terminal device 100 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the terminal device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the terminal device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the terminal device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the terminal device 100 .
  • the terminal device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the terminal device 100 . While the charging management module 140 charges the battery 142, it can also supply power to the terminal device through the power management module 141.
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the terminal device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi satellite system) -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the terminal device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the terminal device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the terminal device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the terminal device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs.
  • the terminal device 100 can play or record videos in various encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the terminal device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the terminal device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the terminal device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the terminal device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the terminal device 100 may be provided with at least one microphone 170C.
  • the terminal device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
  • the terminal device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the terminal device 100 .
  • the angular velocity of the end device 100 about three axes ie, the x, y and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the terminal device 100, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the terminal device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the terminal device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the terminal device 100 is stationary. It can also be used to identify the posture of terminal devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the terminal device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the terminal device 100 emits infrared light to the outside through the light emitting diode.
  • the terminal device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100 . When insufficient reflected light is detected, the terminal device 100 may determine that there is no object near the terminal device 100 .
  • the terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the terminal device 100 when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 caused by the low temperature.
  • the terminal device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, battery changes, and may also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the terminal device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the terminal device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100 .
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present invention take an Android system with a layered architecture as an example to exemplarily describe the software structure of the terminal device 100 .
  • FIG. 2 is a block diagram of a software structure of a terminal device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the telephony manager is used to provide the communication function of the terminal device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the terminal device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the application layer and application framework layer java files as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.
  • FIG. 3 shows a schematic flowchart of a method for controlling a home device provided in Embodiment 1 of the present application.
  • the execution body of this embodiment may be a terminal device having the above-mentioned software and hardware.
  • the method provided by this embodiment may include:
  • S301 Acquire an image corresponding to a target area, and determine a target home device according to the image.
  • the household device may be a lamp, a TV, a refrigerator, a washing machine, a speaker, an air conditioner, a fan, a rice cooker, etc.
  • the target household device may be at least one of the household devices.
  • the user wants to intelligently control the home device through the terminal device, the user can activate the intelligent control function of the terminal device.
  • the intelligent control function described in this application refers to the function of controlling household equipment through the method provided in this application.
  • the terminal device can capture images of the area where the home device is located (ie, the target area) through the camera of the terminal device, and the collected images may include images of the home device. Then, the terminal device can determine the target home device that the user wants to control according to the image captured by the camera. The process for the terminal device to determine the target home device according to the image will be described in detail in the subsequent content.
  • an APP for intelligent control of home equipment may be installed in the terminal device.
  • the user wants to perform intelligent control of home equipment, the user can open the APP.
  • an icon or button of "sweep" can be displayed on the interface of the APP.
  • the user can click the icon or button to start the intelligent control function of the terminal device, and can point the camera of the terminal device to the target area.
  • the terminal device can automatically start the camera of the terminal device, so as to collect images of the target area through the camera. The collected images can be displayed on the display interface of the terminal device synchronously.
  • the terminal device may be provided with a preset gesture for initiating the intelligent control function of the terminal device.
  • the preset gesture may be any gesture different from the conventional function gesture in the terminal device.
  • the preset gesture may be a gesture performed on the display interface of the terminal device, or may be a gesture performed in space within the capture range of the camera, and the specific type of the preset gesture is not limited in this embodiment.
  • the user wants to perform intelligent control of the home device, the user can activate the intelligent control function of the terminal device through the preset gesture. That is, after the terminal device detects the preset gesture, the terminal device can determine that the intelligent control function of the home device needs to be activated, and can automatically activate the camera of the terminal device to capture images of the target area through the camera.
  • S302 Acquire a control menu corresponding to the target home device, and display the control menu in the image by using an augmented reality AR technology.
  • the terminal device may acquire the control menu corresponding to the target home device from the preset storage device.
  • the preset storage device may be an internal storage device of the terminal device, or may be an external storage device (eg, a cloud) connected to the terminal device. That is, in this embodiment, the control menu corresponding to each household device and the device identifier corresponding to the household device may be associated and stored in the preset storage device in advance. After the terminal device determines the target home device according to the image, the terminal device can acquire the control menu corresponding to the target home device from the preset storage device according to the device identifier corresponding to the target home device.
  • the terminal device may acquire the control menu corresponding to the target home device by performing image analysis on the acquired image. That is, in a scenario where the control menu is integrated into the target home device, the image acquired by the terminal device may include an image of the control menu corresponding to the target home device. Therefore, the terminal device can obtain the control menu corresponding to the target home device by identifying and analyzing the image.
  • the existing image recognition and analysis method may be used to identify and analyze the image, which is not limited in this embodiment.
  • the terminal device may obtain the device capability description file profile corresponding to the target home device through the cloud connected to the target home device, that is, the device identification of the target home device may be sent to the cloud to instruct the cloud to
  • the identifier acquires the device profile corresponding to the target home device, and sends the device profile to the terminal device.
  • the terminal device may generate a control menu corresponding to the target home device according to the device profile.
  • the device profile is a file describing the capability characteristics of the device, that is, a file describing what the device is, what it can do, and how to control the device.
  • the capability characteristics of the device may include the identification attribute of the device and the service provided. Identifying attributes may include device type and the like.
  • a light bulb has a Service that can include a switch SWITCH Service, which can have a SWITCH ON command and a SWITCH OFF command, and can have a current switch state status(ON,OFF) property. Therefore, after acquiring the device profile corresponding to the target home device, the terminal device can analyze the device profile to obtain the capability feature corresponding to the target home device, so as to generate a control menu corresponding to the target home device according to the capability feature.
  • SWITCH Service can include a switch SWITCH Service, which can have a SWITCH ON command and a SWITCH OFF command, and can have a current switch state status(ON,OFF) property. Therefore, after acquiring the device profile corresponding to the target home device, the terminal device can analyze the device profile to obtain the capability feature corresponding to the target home device, so as to generate a control menu corresponding to the target home device according to the capability feature.
  • the terminal device after acquiring the control menu corresponding to the target home device, the terminal device can display the control menu in the image through AR technology, so that the user can control the target by operating the control menu displayed in the image. home equipment.
  • the terminal device may display all the menu items of the control menu as a whole at any position in the image by using the AR technology. For example, as shown in (a) of FIG. 4 , it is displayed in the vicinity of the target home equipment. Or, as shown in (b) of FIG. 4 , it is displayed on the target household device.
  • the terminal device determines the target home device according to the image, it can also determine the six degrees of freedom (6 Degree of Freedom, 6Dof) pose information corresponding to the target home device according to the image, so that according to the 6Dof pose information in the image Displays the control menu.
  • the terminal device determines the 6Dof pose information corresponding to the target home device according to the image, which will be described in the following content.
  • the terminal device may display each menu item of the control menu at each target position in the image by using the AR technology.
  • the target position corresponding to the menu item may be the position in the image of the same menu item as the menu item in the control menu carried by the target home appliance.
  • each menu item of the control menu is displayed in the control menu carried by the target home appliance.
  • the terminal device can perform image recognition and analysis on the acquired image to determine the target position of each menu item in the target home device in the image, and then the terminal device can display each menu item of the control menu at each target position . That is to say, for a target home device that carries a control menu, the terminal device can integrate the menu items of the control menu corresponding to the target home device into the control menu carried by the target home device, so that the user can directly control The same as the physical home equipment, the target home equipment is controlled in the image, so as to improve the interactive performance and user experience.
  • the terminal device can display the control menus corresponding to each target home device in the image respectively by using the AR technology. For example, as shown in (a) of FIG. 5 , the terminal device may display the control menu corresponding to the TV near the TV in the image, and display the control menu corresponding to the refrigerator near the refrigerator in the image. Alternatively, as shown in (b) of FIG. 5 , the terminal device may display the control menu corresponding to the TV near the TV in the image, and display the control menu corresponding to the refrigerator on the refrigerator in the image. Alternatively, as shown in (c) of FIG.
  • the terminal device may display the control menu corresponding to the TV on the TV in the image, and display the control menu corresponding to the refrigerator on the refrigerator in the image.
  • the terminal device can fuse the control menu corresponding to the refrigerator into the control menu carried by the refrigerator in the image, and can fuse the control menu corresponding to the TV into the control menu carried by the TV in the image. in the menu.
  • the control menu corresponding to each target home device may include device information such as the device name and/or device number of each target home device, so as to facilitate the user to accurately distinguish each target home device.
  • the control menu corresponding to the target home device may include device information such as the device name and/or device number of each target home device, so as to facilitate the user to accurately distinguish each target home device.
  • the terminal device displays the control menu corresponding to the target home device in the image
  • the user can operate the control menu displayed in the image, that is, select a menu item in the control menu
  • the terminal device After detecting the user's selection operation on a certain menu item, the terminal device may respond to the selection operation to control the target home appliance to execute the target control instruction corresponding to the selection operation.
  • the terminal device can be directly connected to the target home device.
  • a short-range communication connection can be established between the terminal device and the target household device.
  • the short-range communication connection may be a Bluetooth connection, a Near Field Communication (Near Field Communication, NFC) connection, a Wireless-Fidelity (Wireless-Fidelity, WiFi) connection, or a ZigBee (ZigBee) connection, or the like.
  • the terminal device can directly send the target control instruction corresponding to the menu item to the target home device to instruct the target home device to execute The target control instruction.
  • the target control instruction may be an instruction to turn on the target household device, or an instruction to turn off the target household device, or an instruction to adjust the volume of the target household device, and so on.
  • the terminal device and the target home device can be respectively connected to the cloud. Therefore, when the terminal device detects the user's selection operation of a certain menu item in the control menu, the terminal device can send the target control instruction corresponding to the menu item to the cloud. After the cloud receives the target control instruction, the addressable to the device control channel corresponding to the target household device, and send the target control instruction to the target household device through the device control channel to instruct the target household device to execute the target control instruction.
  • the terminal device may also acquire the device state corresponding to the target household device. As shown in Figure 6, the terminal device can display the device state in the image through AR technology, so that the user can correctly control the target home device based on the device state, improve the control efficiency of the target home device, and improve the user experience.
  • the terminal device may acquire the device state corresponding to the target home device from the device shadow corresponding to the target home device.
  • the device shadow is a JSON document used to store the latest state of the device.
  • the home device can obtain and set the device shadow during use to synchronize the device state, that is, when the device state of the home device changes, the home device will synchronize the device state to the device shadow corresponding to the home device.
  • the target household device can directly report the execution result to the terminal device.
  • the terminal device can update the device state corresponding to the target home device in the image according to the execution result.
  • the target home device can report the execution result to the cloud, the cloud can send the execution result reported by the target home device to the terminal device, and the terminal device can update the device state corresponding to the target home device in the image according to the execution result.
  • the terminal device may determine the target home device to be controlled according to the device features in the image. Specifically, the terminal device may first perform device detection on the image to detect the household device in the image. Then, feature extraction can be performed on the home equipment in the image to extract the device features of the home equipment, and the extracted device features can be matched with the preset device features in the device feature library to obtain the first matching result.
  • the target household device to be controlled is determined according to the first matching result, and the 6Dof pose information corresponding to the target household device can be determined according to the first matching result. For example, the preset 6Dof of the image corresponding to the first matching result can be determined.
  • the pose information is determined as the 6Dof pose information corresponding to the target home equipment; or the calculation of the 6Dof pose information corresponding to the image can be performed according to the image corresponding to the first matching result, and the calculated 6Dof pose can be calculated.
  • the information is determined to be the 6Dof pose information corresponding to the target home device.
  • the preset device feature also refers to the device feature corresponding to each household device, and refers to the device feature extracted and saved when the device feature library is established. This embodiment does not impose any limitation on the method of calculating the 6Dof pose information according to the image, and can be implemented by using the existing calculation method.
  • the device feature may be Speeded-Up Robust Features (SURF), or may be Scale-invariant feature transform (SIFT), or may be Oriented FAST and Rotated BRIEF (Oriented FAST and Rotated BRIEF) , ORB).
  • SURF Speeded-Up Robust Features
  • SIFT Scale-invariant feature transform
  • Oriented FAST and Rotated BRIEF Oriented FAST and Rotated BRIEF
  • ORB the device features can include feature points and feature descriptors (Feature Descriptors), the feature points are used to represent the position of the device feature on the image, and the feature descriptors are used to represent the local features of the position on the image (generally in the form of a vector). Express).
  • This embodiment does not specifically limit the extraction algorithm of the device feature, and an existing extraction algorithm can be used to extract the device feature.
  • the device feature library may be a pre-established feature library, and the device feature library may include preset device features corresponding to multiple home devices. Wherein, a corresponding index can be established between each preset device feature in the device feature library and the corresponding home device, so that the target home device can be determined through the index, and the determination efficiency of the target home device can be improved.
  • the terminal device may establish a device feature library according to each household device of the entity. Specifically, for each household device, the terminal device can first obtain device identifiers such as the device name and/or device number corresponding to the household device, and can start the camera of the terminal device to perform a 360-degree image scan of the household device, that is, from Obtain device images corresponding to the home device from different angles.
  • device identifiers such as the device name and/or device number corresponding to the household device
  • the camera of the terminal device to perform a 360-degree image scan of the household device, that is, from Obtain device images corresponding to the home device from different angles.
  • the terminal device can separately extract each preset device feature corresponding to the home device from the acquired device images, that is, respectively extract the preset device feature corresponding to each device image, and use the preset device feature corresponding to each device image as The whole is saved to the device feature library respectively, and the index between the home device and the preset device features of each whole is established at the same time, that is, the device name and/or device number corresponding to the home device and the device ID corresponding to each device image are established.
  • the index between the preset device characteristics is established.
  • the preset device features corresponding to the device image A can be extracted, and the preset device features corresponding to the device image A can be extracted. It is assumed that the device feature as a whole (eg, the preset device feature A as a whole) is stored in the device feature library, and an index between the home device and the preset device feature A is established at the same time.
  • each preset device feature corresponding to the device image B can be extracted, and each preset device feature corresponding to the device image B can be saved as a whole (such as the preset device feature B as a whole) in the device feature library, and at the same time, the preset device features can be stored in the device feature library.
  • the preset device feature C corresponding to the device image C can be extracted, and each preset device feature corresponding to the device image B can be saved as a whole (such as the preset device feature C as a whole) to the device feature library, and at the same time, the preset device features can be stored in the device feature library.
  • the device feature library is established by performing 360-degree feature extraction on home devices, so that 360-degree viewing angle matching can be performed when device features are matched, so as to improve the matching accuracy of device features and improve the determination of target home devices. accuracy.
  • the terminal device may establish the device feature library according to the three-dimensional 3D model of each household device.
  • the home appliance manufacturer can use 3D modeling tools (such as Autodesk) to model the household equipment when producing the household equipment to obtain a 3D model of the household equipment, and then the 3D model and the household equipment can be modeled.
  • the device ID corresponding to the 3D model is uploaded to the cloud.
  • the home appliance manufacturer can directly obtain the device image corresponding to the home device, and upload the device image and the device ID corresponding to the home device to the cloud, and the cloud can construct a 3D model of the home device according to the device image.
  • the 3D model obtained by modeling needs to have relatively real texture information.
  • the terminal device When the terminal device establishes the device feature database, for each home device, the terminal device can first obtain the device identifier corresponding to the home device, and can obtain the 3D model of the home device from the cloud according to the device identifier. Then, the terminal device can acquire each model image corresponding to the 3D model from different angles. Subsequently, the terminal device can extract the preset device features corresponding to the home device from the acquired model images, that is, extract the preset device features corresponding to the model images respectively, and can extract the preset device features corresponding to the model images.
  • an index between the home device and the preset device features of each whole is established, that is, the relationship between the device identifier of the home device and the preset device features of the whole corresponding to each model image is established. index.
  • the acquisition process of each model image corresponding to the home device may specifically be as follows: the terminal device may first generate key points of the model according to the 3D model, and the key points of the model are used as reference points for rotating and flipping the model. Then, the terminal device can perform upper hemisphere sampling according to the key points to determine the initial pose of the 3D model, so as to perform off-screen rendering of the 3D model. Then the terminal device can rotate the model left and right, and flip it up and down, and can acquire model images at every preset angle during the process of rotating left and right and flipping up and down, so as to obtain a multi-angle model image of the 3D model.
  • the left and right rotation needs to cover all 360 degrees, and the most important 180 degrees can be selected for up and down rotation.
  • the preset angle can be determined according to the complexity of the model. For example, in a specific application scenario, the preset angle may be determined to be 10 degrees.
  • the terminal device may preprocess the 3D model before acquiring each model image corresponding to the household device.
  • the preprocessing may be deleting redundant vertices of the 3D model, adjusting the orientation and size of the 3D model, and the like.
  • the establishment process of the device feature library may also be performed by the cloud, that is, the cloud may establish the device feature library in advance according to the entity home device or the 3D model of the home device. Therefore, when the terminal device determines the target home device, it can first obtain the device feature library from the cloud, and then can determine the device feature according to the preset device feature in the device feature library and the device feature extracted from the image by the terminal device The target home device to be controlled.
  • the process of establishing the device feature library by the cloud based on the entity home equipment or the 3D model of the home device is similar to the process of establishing the device feature library by the terminal device based on the entity home device or the 3D model of the home device, and the basic principles are the same. For the sake of simplicity, details are not repeated here.
  • the device features extracted from the image by the terminal device may include multiple, and the preset device features corresponding to each device image or each model image in the device feature library may also include multiple respectively.
  • the terminal device can use the existing brute force matching method or the nearest neighbor matching method to match the device features corresponding to the image with the preset device features corresponding to each device image or model image, respectively, to obtain the first A matching result. That is, the purpose of matching the device features with the preset device features is to find out the target device image or target model image that matches the image, wherein the target device image or the target model image can be matched by the target device image or the target model image. Preset device characteristics to characterize.
  • the first matching result may be a preset device feature corresponding to the target device image or the target model image matched with the image.
  • the terminal device can determine the target home device to be controlled according to the index between the first matching result and the home device, and can determine the device identifier corresponding to the target home device to be controlled.
  • the terminal device may determine the first matching result according to the number of device features that can be matched with the preset device features and the total number of device features. Specifically, for each device image or model image, the terminal device may firstly match each device feature with the preset device feature corresponding to the device image or model image, and determine the device that can match the corresponding preset device feature. number of features. When the ratio between the number and the total number of device features is greater than or equal to the first preset threshold, the terminal device may determine the preset device feature corresponding to the device image or the model image as the first matching result.
  • the ratio between the number and the total number of device features may be the number/total number, and the first preset threshold may be determined according to specific circumstances, which is not limited in this embodiment.
  • the terminal device can determine that the device feature matches the preset device feature corresponding to the device image A, and can determine that the preset device feature corresponding to the device image A is the first matching result. , at this time, the terminal device may determine the home device (such as a refrigerator) indexed by the preset device feature corresponding to the device image A as the target home device to be controlled.
  • the home device such as a refrigerator
  • the terminal device may also determine the first matching result according to the number of device features conforming to the homography matrix.
  • the homography refers to the mapping relationship from one plane to another plane
  • the homography matrix is the transformation equation from a point on one plane to another plane.
  • the terminal device may firstly match each device feature with the preset device feature corresponding to the device image or model image to obtain the preset device feature corresponding to each device feature. Then, the terminal device can determine whether the device feature and the preset device feature corresponding to the device feature belong to a homography matrix, so as to obtain the number of device features in the device features that conform to the homography matrix.
  • the terminal device may determine the preset device feature corresponding to the device image or the model image as the first matching result.
  • the second preset threshold may be determined according to specific conditions, which is not limited in this embodiment.
  • the terminal device can also determine the target home device to be controlled according to the trained neural network model. Specifically, the terminal device can input the acquired image into the trained neural network model for processing, obtain the device identifier output by the neural network model, and can determine the target home device according to the device identifier.
  • the neural network model may be a neural network model constructed by relying on tensorflow (TensorFlow).
  • the terminal device can perform the training of the neural network model according to each household device of the entity. Specifically, for each household device, the terminal device can start the camera of the terminal device to perform a 360-degree image scan of the household device, that is, the device images corresponding to the household device can be obtained from different angles, and the corresponding device images of the household device can be obtained.
  • Device identification for example, the device identification can be input by the user. Then, the terminal device can input each device image and the device identifier of the household device corresponding to each device image into the initial neural network model for training, to obtain a trained neural network model.
  • the neural network model obtained by training can be matched with a 360-degree perspective, improving the accuracy of the target household device. Determine accuracy.
  • the terminal device can also acquire other training images containing or not including household equipment, and can combine the device image and the training image into a training image. image set to train the neural network model with the training image set.
  • the terminal device can also perform the training of the neural network model according to the three-dimensional 3D model of each household device. As shown in FIG. 7 , the terminal device may first obtain the 3D model of each household device and the device identifier corresponding to the 3D model. Then, the terminal device can obtain each model image corresponding to each 3D model from different angles, and can input each model image and the device identification of the 3D model corresponding to each model image into the initial neural network model for training, and obtain the trained neural network model. network model.
  • the terminal device may preprocess each 3D model before acquiring each model image corresponding to the 3D model.
  • the preprocessing may be deleting redundant vertices of the 3D model, adjusting the orientation and size of the 3D model, and the like.
  • the terminal device can also acquire other training images containing or not containing home equipment, and can combine the model image and the training image into a training image set to train the neural network model with the training image set.
  • the neural network model can also be trained on the cloud. That is, the cloud can obtain the device image corresponding to each home device or the model image corresponding to the 3D model of each home device from different angles in advance, and can combine the obtained device images or model images with the pre-acquired training images in the cloud to form a model image.
  • the training image set can then be used to train the initial neural network model through the training image set to obtain the trained neural network model. Therefore, when the terminal device determines the target home device, it can first obtain the trained neural network model from the cloud, and can input the obtained image into the trained neural network model for processing, and the neural network has been obtained.
  • the device identification output by the model so as to determine the target home device to be controlled according to the device identification.
  • the terminal device may determine the target household device in combination with the environmental characteristics of the environment where each household device is located.
  • the terminal device may perform device detection on the image, and acquire the detected device characteristics of the household equipment and the environmental characteristics of the environment where the household equipment is located. Then, the device features can be matched with the preset device features in the device feature library to obtain a first matching result, and the environment features can be matched with the preset environment features in the environment feature library to obtain a second matching result. The first matching result and the second matching result determine the target household device to be controlled.
  • the terminal device when the terminal device inputs the image into the trained neural network model for processing to obtain the device identification, the terminal device may also perform device detection on the image, and obtain the environmental characteristics of the environment where the detected household device is located. Then, the environmental features can be matched with the preset environmental features in the environmental feature library to obtain a third matching result, so that the target home device to be controlled can be determined according to the device identification and the third matching result.
  • the third matching result may include location information of the detected home equipment.
  • the environment feature library may be a pre-established feature library.
  • the environment feature library may include preset environment features of the environment where each household device is located. Wherein, a corresponding index may be established between each preset environmental feature in the environmental feature library and the corresponding home equipment, that is, each preset environmental feature in the environmental feature library may be established with the location information corresponding to the corresponding home equipment. There are corresponding indexes.
  • the preset environment feature also refers to the environment feature corresponding to the environment where each household device is located, and refers to the environment feature extracted and saved when the environment feature library is established.
  • an APP for intelligent control of home equipment is installed in the terminal device, and the terminal device can manage the home equipment that can be intelligently controlled through the APP. Therefore, when the environmental feature library needs to be established, the user can open the APP and enter the device list page as shown in (a) in FIG. equipment. The user can click on any home device in the device list page, and the terminal device can jump to the device details page corresponding to the home device at this time. As shown in (b) of Figure 8, the device details page may display a button of "obtaining surrounding environment information". When the user clicks the button, the terminal device can start the terminal device's operation in response to the click operation of the button.
  • a camera is used, and an environmental image (or an environmental video) of the environment where the home device is located can be collected through the camera.
  • the terminal device can perform feature detection and extraction on the collected environmental image (or environmental video) to obtain the preset environmental characteristics of the environment where the household equipment is located, and can save the preset environmental characteristics of the environment where the household equipment is located to the environment
  • a feature library is established, and an index between the home device and the preset environmental feature is established at the same time, that is, an index between the location information corresponding to the home device and the preset device feature is established.
  • the terminal device can also obtain the preset environmental characteristics of the environment where the household device is located by performing feature detection and extraction on the environmental image (or environmental video) uploaded by the user. That is, after the user clicks the button of “obtaining surrounding environment information”, the terminal device can pop up a pop-up window as shown in (c) in FIG. ”, “Acquire Environment Image”, and “Cancel” selection keys. When the selection key of "Upload Environmental Image” is triggered, the terminal device can enter the page for uploading images to acquire the environmental image (or environmental video) uploaded by the user, and can characterize the acquired environmental image (or environmental video) Detection and extraction are performed to obtain the preset environmental characteristics of the environment where the household device is located.
  • the terminal device can start the camera of the terminal device to acquire the environmental image (or environmental video), and can perform feature detection and analysis on the acquired environmental image (or environmental video). Extraction to obtain the preset environmental characteristics of the environment where the household device is located.
  • environmental features can also be Speeded-Up Robust Features (SURF), or can be Scale-invariant feature transforms (SIFT), or can be rotation-invariant features. (Oriented FAST and Rotated Brief, ORB).
  • SURF Speeded-Up Robust Features
  • SIFT Scale-invariant feature transforms
  • ORB Rotated Brief
  • environmental features may also include feature points and feature descriptors.
  • the terminal device when the home equipment needs to be controlled, can acquire an image corresponding to the target area, and can determine the target home equipment to be controlled according to the image. Then, the control menu corresponding to the target home device can be obtained, and the control menu can be displayed in the image through AR technology, that is, the target home device and the control menu corresponding to the target home device are simultaneously displayed in the image, so that the user can directly trigger the control menu.
  • the corresponding menu items are used to control the target home equipment, which can not only simplify the control process of the home equipment, but also improve the control efficiency of the home equipment.
  • control greatly improves the interactive performance in the control of home equipment, improves the user experience, and has strong ease of use and practicability.
  • FIG. 9 shows a schematic flowchart of a home appliance control method provided by Embodiment 2 of the present application. As shown in Figure 9, the method provided by this embodiment may include:
  • the terminal device acquires an image corresponding to the target area, and sends the image to the cloud.
  • the cloud determines the target home device according to the image, acquires the control menu and device status corresponding to the target home device, and sends the control menu and device status to the terminal device.
  • the acquisition of the image corresponding to the target area by the terminal device is the same as the acquisition method of the image corresponding to the target area acquired by the terminal device in S301 of the first embodiment, and details are not described herein again.
  • the terminal device may send the image to the cloud.
  • the cloud can determine the target home device to be controlled according to the image.
  • the cloud may determine the target home device to be controlled according to device characteristics in the image. Specifically, the cloud can first perform device detection on the image to detect home devices in the image. Then, feature extraction can be performed on the home equipment in the image to extract the device features of the home equipment, and the extracted device features can be matched with the preset device features in the device feature library to obtain the first matching result. The target household device to be controlled is determined according to the first matching result.
  • the cloud can also determine the target home device to be controlled according to the trained neural network model. Specifically, the cloud can input the image to the trained neural network model for processing, obtain the device identifier output by the neural network model, and can determine the target home device according to the device identifier.
  • the device feature library may be established by the cloud according to each household device or a three-dimensional 3D model corresponding to each household device.
  • the process of establishing the device feature database in the cloud is similar to the process in which the terminal device performs the device feature database in the first embodiment, and the basic principles are the same, which will not be repeated here.
  • the trained neural network model can also be trained by the cloud according to the device image corresponding to each household device or the model image corresponding to the 3D model of each household device.
  • the training process of the neural network model performed by the cloud is similar to the training process of the neural network model performed by the terminal device in the first embodiment, and the basic principles are the same, which will not be repeated here.
  • the control menu corresponding to the target home device can be obtained.
  • the cloud may acquire the control menu corresponding to the target home device from the preset storage device.
  • the cloud may acquire the control menu corresponding to the target home device by performing image analysis on the acquired image.
  • the cloud can obtain the device profile corresponding to the target home device, and can generate a control menu corresponding to the target home device according to the device profile; or, after obtaining the device profile, the cloud can directly send the device profile to the terminal device.
  • to instruct the terminal device to generate the control menu corresponding to the target home device according to the device profile that is, the control menu sent by the cloud to the terminal device may also be the device profile corresponding to the control menu.
  • the cloud can also obtain the device state corresponding to the target home device from the device shadow corresponding to the target home device according to the device identifier of the target home device.
  • the corresponding device shadow of each household device may be stored in the cloud.
  • the terminal device receives the control menu and the device status sent by the cloud, and displays the control menu and the device status in the image through the AR technology.
  • the specific content of displaying the control menu and the device status in the image by the terminal device using the AR technology may refer to the description in S302 of the first embodiment, which will not be repeated here.
  • the terminal device generates a target control instruction corresponding to the selection operation in response to the selection operation of the control menu, and sends the target control instruction to the cloud.
  • the terminal device displays the control menu and device status corresponding to the target home device in the image through the AR technology
  • the user can directly operate the control menu in the image to control the target home device. That is, the user can directly select any menu item (such as an open item) in the control menu.
  • the terminal device detects that the open item in the control menu is triggered, it can generate a target control instruction corresponding to the open item, and use the target control instruction. sent to the cloud.
  • S905 The cloud receives the target control instruction sent by the terminal device, and sends the target control instruction to the target home device.
  • the cloud After receiving the target control instruction sent by the terminal device, the cloud can forward the target control instruction to the target home device.
  • the cloud may have a permission verification process, that is, after the cloud receives the target control command sent by the terminal device, it can first perform permission verification on the terminal device to determine whether the terminal device is Has permission to control the target home device.
  • the cloud can obtain the device control channel corresponding to the target home device, and can send the target control instruction to the target home device through the device control channel.
  • the cloud can determine that the terminal device does not have the permission to control the target home device, that is, the cloud can refuse to send the target control instruction to deny the terminal device to control the target home device.
  • the target home device receives the target control instruction sent by the cloud, executes the target control instruction, and reports the execution result to the cloud.
  • S907 The cloud receives the execution result reported by the target home device, and sends the execution result to the terminal device.
  • the terminal device updates the device state corresponding to the target home device in the image according to the execution result.
  • the target home device can execute the target control instruction to turn on the target home device, turn off the target home device, or adjust the temperature of the target home device.
  • the execution result can be fed back to the cloud.
  • the cloud can send the execution result fed back by the target home device to the terminal device.
  • the terminal device can update the device state corresponding to the target home device in the image according to the execution result, for example, update the device state corresponding to the target home device from the off state to the open state, or update the target home device corresponding to the device state.
  • the device state of the device is updated from the on state to the off state, or the temperature in the device state corresponding to the target home device is updated from 23 degrees to 26 degrees, and so on.
  • the terminal equipment when the home equipment needs to be controlled, can acquire the image corresponding to the target area, and send the image to the cloud.
  • the target home device to be controlled is determined through the cloud, and the control menu corresponding to the target home device is obtained and sent to the terminal device.
  • the terminal device can display the control menu in the image through AR technology, so that the user can directly trigger the corresponding menu item in the control menu to control the target home device, which not only simplifies the control process of the home device, but also improves the control efficiency of the home device.
  • the user directly operates the control menu in the image displaying the target home equipment and the control menu to control the target home equipment, just as the user directly controls the home equipment in the actual scene, realizing what the user sees is what he sees.
  • control greatly improves the interactive performance in the control of home equipment, improves the user experience, and has strong ease of use and practicability.
  • determining the target home device through the cloud can reduce the processing performance of the terminal device, improve the determination efficiency of the target home device, and further improve the control efficiency of the home device.
  • FIG. 10 shows a system structure diagram of a control system to which the home appliance control method provided in the second embodiment is applicable.
  • the system may include a terminal device 100 , a cloud 200 and a home device 300 , wherein the cloud 200 may include a device model library device 201 , a device feature library 202 , a device binding device 203 , an environment feature library 204 , and a device
  • the identification device 205 , the device connection management device 206 and the device shadow 207 are identified.
  • the device model library device 201 is configured to receive a 3D model of a home device uploaded by a home appliance manufacturer, or a device image of the home device uploaded by the home appliance manufacturer, and construct a 3D model of the home device according to the device image. Then, it is used to extract the preset device features corresponding to the home devices from the 3D model, and save the extracted preset device features to the device feature library 202, and simultaneously establish an index between the home device and the preset device features and save them in the device features Library 202.
  • the device binding device 203 is configured to acquire the preset environmental characteristics of the environment where the home appliance is located, associate and bind the acquired preset environmental characteristics with the corresponding home appliance, and save the acquired preset environmental characteristics to the environment characteristics database 204 . That is, the device binding device 203 is used to perform feature detection and extraction on the acquired environmental image (or environmental video), obtain the preset environmental characteristics of the environment where the home equipment is located, and save the preset environmental characteristics of the environment where the home equipment is located to the
  • the environmental feature library 204 also establishes an index between the home device and the preset environmental feature and saves it in the environmental feature library 204 .
  • the device connection management device 206 is used to save the communication connection with each household device, is responsible for sending control instructions to each household device, and obtains the device status corresponding to each household device, and synchronizes the device status corresponding to each household device to the corresponding device status of each household device.
  • the device shadow 207 is used to save the communication connection with each household device, is responsible for sending control instructions to each household device, and obtains the device status corresponding to each household device, and synchronizes the device status corresponding to each household device to the corresponding device status of each household device.
  • the device identification device 205 is configured to identify the image acquired by the camera in combination with the device feature library 202 and/or the environment feature library 204, so as to determine the target household device to be controlled. At the same time, the device identification device 205 is also used to identify the selection operation performed by the user on the control menu corresponding to a certain household device in the image, and can generate a control command corresponding to the selection operation and send it to the device connection management device 206, so as to pass the selection operation. The device connection management device 206 sends a control instruction to the household device, so as to perform device control on the household device.
  • An embodiment of the present application further provides a terminal device, the terminal device includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor, so When the processor executes the computer program, the terminal device is made to implement the home appliance control method in any of the foregoing method embodiments.
  • the structure of the terminal device may be as shown in FIG. 1 .
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer can implement the home furnishing in any of the foregoing method embodiments.
  • Device control method
  • the embodiments of the present application provide a computer program product, which enables the terminal device to implement the home device control method in any of the foregoing method embodiments when the computer program product runs on a terminal device.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
  • the computer program includes computer program code
  • the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the device/terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
  • computer-readable storage media may not be electrical carrier signals and telecommunications signals.
  • the disclosed apparatus/terminal device and method may be implemented in other manners.
  • the apparatus/terminal device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种家居设备控制方法、终端设备及存储介质。在需要进行家居设备的控制时,获取目标区域对应的图像,并根据图像确定目标家居设备(301);然后获取目标家居设备对应的控制菜单,并通过增强现实AR技术在图像中显示控制菜单(302);响应于控制菜单中的选择操作,控制目标家居设备执行与选择操作对应的目标控制指令(303)。该方法不仅简化了家居设备的控制流程,提高家居设备的控制效率,而且用户在显示有目标家居设备和控制菜单的图像中直接对控制菜单进行操作来对目标家居设备进行控制,如同用户直接对实际场景中的家居设备进行控制一样,实现了用户所见即所控的目的,极大地提高了家居设备控制中的交互性能,提升了用户体验。

Description

家居设备控制方法、终端设备及计算机可读存储介质
本申请要求于2020年7月7日提交国家知识产权局、申请号为202010655225.6、申请名称为“家居设备控制方法、终端设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于终端技术领域,尤其涉及家居设备控制方法、终端设备及计算机可读存储介质。
背景技术
随着物联网(internet of things,IoT)技术的发展,家居设备的功能越来越丰富,进行家居设备的智能控制也越来越重要。现有技术中,一般可通过在终端设备中安装应用程序(application,APP)来进行家居设备的智能控制。但在通过APP进行家居设备的智能控制时,需要用户进入该APP,找到想要控制的家居设备,然后进入该家居设备对应的设备控制页面找到所对应的控制菜单,并通过触发控制菜单中对应的菜单项来对该家居设备进行智能控制,操作流程较繁琐,控制效率较低。
发明内容
本申请实施例提供了家居设备控制方法、终端设备及计算机可读存储介质,可简化家居设备的控制流程,提高家居设备的控制效率。
第一方面,本申请实施例提供了一种家居设备控制方法,应用于终端设备,所述方法可以包括:
获取目标区域对应的图像,并根据所述图像确定目标家居设备;
获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单;
响应于所述控制菜单中的选择操作,控制所述目标家居设备执行与所述选择操作对应的目标控制指令。
在一个示例中,终端设备可以直接与该目标家居设备连接。例如,终端设备可以与该目标家居设备之间建立近距离通信连接。其中,近距离通信连接可以是蓝牙连接、近场通信(Near Field Communication,NFC)连接、无线保真(Wireless-Fidelity,WiFi)连接或紫蜂(ZigBee)连接等。在此,当终端设备检测到用户对该控制菜单中某一菜单项的选择操作后,终端设备可以直接向该目标家居设备发送与该菜单项对应的目标控制指令,以指示该目标家居设备执行该目标控制指令。其中,目标控制指令可以是开启该目标家居设备的指令,或者是关闭该目标家居设备的指令,或者是调整该目标家居设备的音量大小的指令,等等。
在另一个示例中,终端设备、该目标家居设备可以分别与云端连接。因此,当终端设备检测到用户对该控制菜单中某一菜单项的选择操作后,终端设备可以向云端发送与该菜单项对应的目标控制指令,云端接收到该目标控制指令后,可寻址到该目标家居设备对应的设备控制通道,并通过该设备控制通道向该目标家居设备发送该目标控制指令,以指示该目标家居设备执行该目标控制指令。
通过上述的家居设备控制方法,在需要进行家居设备的控制时,终端设备可获取目标区域对应的图像,并可根据图像来确定需进行控制的目标家居设备。然后可获取该目标家居设备对应的控制菜单,并通过AR技术在图像中显示控制菜单,即在图像中同时显示目标家居设备和该目标家居设备对应的控制菜单,使得用户可直接触发控制菜单中相应的菜单项来对该目标家居设备进行控制,不 仅可简化家居设备的控制流程,提高家居设备的控制效率。而且,用户在显示有目标家居设备和控制菜单的图像中直接对控制菜单进行操作来对目标家居设备进行控制,如同用户直接对实际场景中的家居设备进行控制一样,实现了用户所见即所控的目的,极大地提高了家居设备控制中的交互性能,提升了用户体验,具有较强的易用性和实用性。
在第一方面的一种可能的实现方式中,所述根据所述图像确定目标家居设备,可以包括:
对所述图像进行设备检测,并获取检测出的家居设备的设备特征;
将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并根据所述第一匹配结果确定所述目标家居设备。
需要说明的是,设备特征库可以为预先建立的特征库,设备特征库中可以包括多个家居设备对应的预设设备特征。其中,设备特征库中的各预设设备特征可以与对应的家居设备之间建立有相应的索引,使得可以通过索引来进行目标家居设备的确定,提高目标家居设备的确定效率。
示例性的,终端设备可以根据实体的各家居设备来进行设备特征库的建立。具体地,对于每一个家居设备,终端设备可以先获取该家居设备对应的设备名称和/或设备编号等设备标识,并可以启动终端设备的摄像头对该家居设备进行360度的图像扫描,即从不同角度获取该家居设备对应的设备图像。然后,终端设备可以从获取的各设备图像中分别提取该家居设备对应的各预设设备特征,即分别提取各设备图像对应的预设设备特征,并将各设备图像对应的预设设备特征作为整体分别保存至设备特征库,同时建立该家居设备与各预设设备特征之间的索引,即建立该家居设备对应的设备名称和/或设备编号等设备标识与各设备图像对应的预设设备特征之间的索引。在此,通过对家居设备进行360度的特征提取来进行设备特征库的建立,使得在进行设备特征的匹配时可以进行360度的视角匹配,提高设备特征的匹配精度,提高目标家居设备的确定准确性。
在第一方面的另一种可能的实现方式中,所述根据所述图像确定目标家居设备,可以包括:
对所述图像进行设备检测,并获取检测出的家居设备的设备特征和所述家居设备所在环境的环境特征;
将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第二匹配结果;
根据所述第一匹配结果和所述第二匹配结果确定所述目标家居设备。
应理解,在用户某家居设备具有相同的两个或两个以上时,终端设备可以结合各家居设备所在环境的环境特征来进行目标家居设备的确定。其中,环境特征库可以为预先建立的特征库。环境特征库中可以包括各家居设备所在环境的预设环境特征。
应理解,在所述将所述设备特征与设备特征库中的预设设备特征进行匹配之前,可以包括:
获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
分别对各所述模型图像进行预设设备特征的提取,并根据各所述模型图像对应的预设设备特征构建所述设备特征库。
示例性的,终端设备可以根据各家居设备的三维3D模型来进行设备特征库的建立。具体地,对于每一个家居设备,终端设备可以先获取该家居设备对应的设备标识,并可以根据设备标识从云端获取该家居设备的3D模型。然后,终端设备可以从不同角度获取该3D模型对应的各模型图像。随后,终端设备可以从获取的各模型图像中分别提取该家居设备对应的各预设设备特征,即分别提取各模型图像对应的预设设备特征,并可以将各模型图像对应的预设设备特征作为整体分别保存至设 备特征库,同时建立该家居设备与各预设设备特征之间的索引。
在第一方面的一种可能的实现方式中,所述根据所述图像确定目标家居设备,可以包括:
将所述图像输入至已训练的神经网络模型进行处理,得到所述神经网络模型输出的设备标识,并根据所述设备标识确定所述目标家居设备。
在第一方面的另一种可能的实现方式中,所述根据所述设备标识确定所述目标家居设备可以包括:
获取所述图像对应的环境特征,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第三匹配结果;
根据所述设备标识和所述第三匹配结果确定所述目标家居设备。
应理解,在所述将所述图像输入至已训练的神经网络模型进行处理之前,可以包括:
获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
将各所述模型图像以及各所述模型图像对应的家居设备的设备标识输入至初始的神经网络模型进行训练,得到所述已训练的神经网络模型。
在此,终端设备也可以根据已训练的神经网络模型来确定待控制的目标家居设备。具体地,终端设备可以将所获取的图像输入至已训练的神经网络模型进行处理,得到该神经网络模型输出的设备标识,并可以根据设备标识来确定目标家居设备。其中,神经网络模型可以为依赖张量流(TensorFlow)构建的神经网络模型。
本实施例中,终端设备可以根据实体的各家居设备来进行神经网络模型的训练。具体地,对于每一个家居设备,终端设备可以启动终端设备的摄像头对该家居设备进行360度的图像扫描,即可以从不同角度获取该家居设备对应的设备图像,并可以获取该家居设备对应的设备标识,例如可通过用户进行设备标识的输入。然后,终端设备可以将各设备图像以及各设备图像对应的家居设备的设备标识输入至初始的神经网络模型进行训练,得到已训练的神经网络模型。在此,通过对各家居设备进行360度的图像获取,并通过所获取的设备图像来进行神经网络模型的训练,使得训练得到的神经网络模型可以进行360度视角的匹配,提高目标家居设备的确定准确性。
本实施例中,终端设备也可以根据各家居设备的3D模型来进行神经网络模型的训练。即通过获取3D模型对应的模型图像来进行神经网络模型的训练。
示例性的,所述获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单可以包括:
获取所述目标家居设备对应的控制菜单和设备状态,并通过AR技术在所述图像中显示所述控制菜单和所述设备状态。
本实施例中,为提高目标家居设备的控制效率,终端设备在获取该目标家居设备对应的控制菜单时,还可以获取该目标家居设备对应的设备状态,并可以通过AR技术在图像中进行设备状态的显示,以使得用户可以基于设备状态来进行目标家居设备的正确控制,提高目标家居设备的控制效率,提升用户体验。
在第一方面的一种可能的实现方式中,所述根据所述图像确定目标家居设备,可以包括:
将所述图像发送至云端,以指示所述云端根据所述图像确定所述目标家居设备,并将所确定的目标家居设备发送至所述终端设备。
本实施例中,终端设备也可以将获取的图像发送至云端,以通过云端来进行目标家居设备的确 定,降低终端设备的处理性能,提高目标家居设备的确定效率,从而进一步提高家居设备的控制效率。
在一个示例中,云端可以根据图像中的设备特征来确定待控制的目标家居设备。具体地,云端可以先对图像进行设备检测,检测出图像中的家居设备。然后可以对图像中的家居设备进行特征提取,提取出家居设备的设备特征,并可以将所提取出的设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,从而可以根据第一匹配结果来确定待控制的目标家居设备。
在另一个示例中,云端也可以根据已训练的神经网络模型来确定待控制的目标家居设备。具体地,云端可以将图像输入至已训练的神经网络模型进行处理,得到神经网络模型输出的设备标识,并可以根据设备标识来确定目标家居设备。
示例性的,所述获取所述目标家居设备对应的控制菜单,可以包括:
将所述目标家居设备的设备标识发送至云端,以指示所述云端根据所述设备标识获取所述目标家居设备对应的设备能力描述文件,并将所述设备能力描述文件发送至所述终端设备;
根据所述设备能力描述文件生成所述目标家居设备对应的控制菜单。
第二方面,本申请实施例提供了一种家居设备控制装置,应用于终端设备,所述装置可以包括:
设备确定模块,用于获取目标区域对应的图像,并根据所述图像确定目标家居设备;
菜单显示模块,用于获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单;
设备控制模块,用于响应于所述控制菜单中的选择操作,控制所述目标家居设备执行与所述选择操作对应的目标控制指令。
在第二方面的一种可能的实现方式中,所述设备确定模块,可以包括:
第一设备检测单元,用于对所述图像进行设备检测,并获取检测出的家居设备的设备特征;
第一特征匹配单元,用于将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并根据所述第一匹配结果确定所述目标家居设备。
在第二方面的另一种可能的实现方式中,所述设备确定模块,可以包括:
第二设备检测单元,用于对所述图像进行设备检测,并获取检测出的家居设备的设备特征和所述家居设备所在环境的环境特征;
第二特征匹配单元,用于将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第二匹配结果;
目标设备确定单元,用于根据所述第一匹配结果和所述第二匹配结果确定所述目标家居设备。
应理解,所述装置,还可以包括:
第一三维模型模块,用于获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
第一模型图像获取模块,用于对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
设备特征库构建模块,用于分别对各所述模型图像进行预设设备特征的提取,并根据各所述模型图像对应的预设设备特征构建所述设备特征库。
在第二方面的一种可能的实现方式中,所述设备确定模块,可以包括:
图像输入单元,用于将所述图像输入至已训练的神经网络模型进行处理,得到所述神经网络模型输出的设备标识,并根据所述设备标识确定所述目标家居设备。
在第二方面的另一种可能的实现方式中,所述图像输入单元,可以包括:
环境特征匹配子单元,用于获取所述图像对应的环境特征,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第三匹配结果;
目标家居设备确定子单元,用于根据所述设备标识和所述第三匹配结果确定所述目标家居设备。
应理解,所述装置,还可以包括:
第二三维模型模块,用于获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
第二模型图像获取模块,用于对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
神经网络模型训练模块,用于将各所述模型图像以及各所述模型图像对应的家居设备的设备标识输入至初始的神经网络模型进行训练,得到所述已训练的神经网络模型。
示例性的,所述菜单显示模块,还可以用于获取所述目标家居设备对应的控制菜单和设备状态,并通过AR技术在所述图像中显示所述控制菜单和所述设备状态。
在第二方面的一种可能的实现方式中,所述设备确定模块,还可以包括:
图像发送单元,用于将所述图像发送至云端,以指示所述云端根据所述图像确定所述目标家居设备,并将所确定的目标家居设备发送至所述终端设备。
示例性的,所述菜单显示模块,可以包括:
设备标识发送单元,用于将所述目标家居设备的设备标识发送至云端,以指示所述云端根据所述设备标识获取所述目标家居设备对应的设备能力描述文件,并将所述设备能力描述文件发送至所述终端设备;
控制菜单生成单元,用于根据所述设备能力描述文件生成所述目标家居设备对应的控制菜单。
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,使所述终端设备实现上述第一方面中任一项所述的家居设备控制方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被计算机执行时,使所述计算机实现上述第一方面中任一项所述的家居设备控制方法。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的家居设备控制方法。
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1是本申请实施例提供的终端设备的结构示意图;
图2是本申请实施例提供的终端设备的软件架构示意图;
图3是本申请实施例一提供的家居设备控制方法的流程示意图;
图4和图5是本申请实施例提供的控制菜单的显示示意图;
图6是本申请实施例提供的控制菜单和设备状态的显示示意图;
图7是本申请实施例提供的神经网络模型的训练示意图;
图8是本申请实施例提供的环境图像获取的示例图;
图9是本申请实施例二提供的家居设备控制方法的流程示意图;
图10是本申请实施例二提供的家居设备控制方法所适用于的控制***的***结构图。
具体实施方式
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
随着物联网(internet of things,IoT)技术的发展,家居设备的功能越来越丰富,进行家居设备的智能控制也越来越重要。现有技术中,家居设备的智能控制一般可以包括以下两种方式:1)通过终端设备中安装的APP进行家居设备的智能控制;2)通过语音进行家居设备的智能控制。
在现有的通过APP进行家居设备的智能控制时,用户需先打开APP,在APP界面中找到所想要控制的家居设备,并进入该家居设备对应的设备控制页面,然后在设备控制页面中找到对应的控制菜单,并触发控制菜单中的菜单项。终端设备检测到用户对某一菜单项的触发操作后,可以向IoT云发送与该菜单项对应的控制指令(例如打开该家居设备的控制指令或者关闭该家居设备的控制指令)。IoT云接收到控制指令后,可寻址到该家居设备对应的设备控制通道,并通过该设备控制通道向该家居设备发送控制指令。该家居设备接收到控制指令后,可以执行控制指令,从而实现对该家居设备的智能控制。显然,现有的通过APP进行家居设备智能控制的方式不仅存在操作流程较繁琐,控制效率较低的问题,而且无法做到所见即所控,交互性能较差,影响用户体验。
在通过语音进行家居设备的智能控制时,需要用户向智能音箱等终端设备输入控制语音。智能音箱等终端设备接收到控制语音后,可通过语音***对控制语音进行语音转语义的转换处理,然后对语义进行意图识别,并将识别出的控制指令(例如打开家居设备A的控制指令或关闭家居设备B的控制指令)发送至IoT云。IoT云可以根据控制指令确定待控制的家居设备,然后寻址到该家居设备对应的设备控制通道,并通过该设备控制通道向该家居设备发送控制指令。该家居设备接收到控制指令后,可以执行控制指令,从而实现对该家居设备的智能控制。这种通过语音进行家居设备智能控制的方式虽然可以在一定程度上简化家居设备的控制流程,但需要用户记录控制语音或关键词,当用户记不住控制语音和关键词时,仍然会造成家居设备的控制效率低,而且语音控制中也无法做到所见即所控,交互性能较差,影响用户体验。
为解决上述问题,本申请实施例提供了一种家居设备控制方法、终端设备及计算机可读存储介 质。在需要进行家居设备的控制时,可获取家居设备所在区域(即下文所述的目标区域)对应的图像,并可根据图像来确定需进行控制的目标家居设备。然后可获取该目标家居设备对应的控制菜单,并通过AR技术在图像中显示控制菜单,即在图像中同时显示目标家居设备和该目标家居设备对应的控制菜单,使得用户可直接触发控制菜单中相应的菜单项来对该目标家居设备进行控制,不仅可简化家居设备的控制流程,提高家居设备的控制效率。而且,用户可以在显示有目标家居设备和控制菜单的图像中直接对控制菜单进行操作来对目标家居设备进行控制,如同用户直接对实际场景中的家居设备进行控制一样,实现了用户所见即所控的目的,极大地提高了家居设备控制中的交互性能,提升了用户体验,具有较强的易用性和实用性。
本申请实施例中,终端设备可以为手机、平板电脑、可穿戴设备、笔记本电脑、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、桌上型计算机等具有摄像装置的终端设备,本申请实施例对终端设备的具体类型不作任何限制。
以下首先介绍本申请实施例涉及的终端设备。请参阅图1,图1示出了终端设备100的结构示意图。
终端设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose  input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现终端设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现终端设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现终端设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为终端设备100充电,也可以用于终端设备100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他终端设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过终端设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为 终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在终端设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,终端设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得终端设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite  system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或N个显示屏194,N为大于1的正整数。
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash  storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备100的各种功能应用以及数据处理。
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。终端设备100可以设置至少一个麦克风170C。在另一些实施例中,终端设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端设备100根据压力传感器180A检测所述触摸操作强度。终端设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测终端设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消终端设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,终端设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。终端设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当终端设备100是翻盖机时,终端设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测终端设备100在各个方向上(一般为三轴)加速度的大小。当终端设备 100静止时可检测出重力的大小及方向。还可以用于识别终端设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。终端设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,终端设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。终端设备100通过发光二极管向外发射红外光。终端设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定终端设备100附近有物体。当检测到不充分的反射光时,终端设备100可以确定终端设备100附近没有物体。终端设备100可以利用接近光传感器180G检测用户手持终端设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测终端设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,终端设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,终端设备100对电池142加热,以避免低温导致终端设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,终端设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来 电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。终端设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时***多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。终端设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。
终端设备100的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android***为例,示例性说明终端设备100的软件结构。
图2是本发明实施例的终端设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java 文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明终端设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
以下结合具体应用场景对本申请实施例提供的家居设备控制方法进行详细说明。
【实施例一】
请参阅图3,图3示出了本申请实施例一提供的家居设备控制方法的示意性流程图。本实施例的执行主体可以为具有上述软件及硬件的终端设备。如图3所示,本实施例提供的方法可以包括:
S301、获取目标区域对应的图像,并根据所述图像确定目标家居设备。
本实施例中,家居设备可以是灯、电视、冰箱、洗衣机、音箱、空调、风扇、电饭锅等设备,目标家居设备可以是家居设备中的至少一个。当用户想要通过终端设备智能控制家居设备时,用户可以启动终端设备的智能控制功能。其中,本申请所描述的智能控制功能是指通过本申请提供的方法进行家居设备控制的功能。当终端设备的智能控制功能启动后,终端设备可以通过终端设备的摄像头对家居设备所在的区域(即目标区域)进行图像采集,所采集的图像中可以包括家居设备的图像。然后,终端设备可以根据摄像头所采集的图像来确定用户所想要控制的目标家居设备。其中,终端设备根据图像确定目标家居设备的过程将在后续内容中进行详细描述。
示例性的,终端设备中可以安装有进行家居设备智能控制的APP。当用户想要进行家居设备的智能控制时,用户可以打开APP。当APP打开后,APP的界面中可以显示有“扫一扫”的图标或按键,用户可以点击该图标或按键来启动终端设备的智能控制功能,并可以将终端设备的摄像头朝向目标区域。终端设备在检测到该图标或按键被触发后,可以自动启动终端设备的摄像头,以通过摄像头来对目标区域进行图像采集。其中,所采集的图像可以同步显示于终端设备的显示界面。
示例性的,终端设备中可以设置有启动终端设备的智能控制功能的预设手势。其中,该预设手势可以为不同于终端设备中的常规功能手势的任一手势。该预设手势可以是在终端设备的显示界面上执行的手势,也可以是在摄像头的采集范围内隔空执行的手势,本实施例对预设手势的具体类型不作任何限制。当用户想要进行家居设备的智能控制时,用户可以通过该预设手势来启动终端设备的智能控制功能。即当终端设备检测到该预设手势后,终端设备可以确定需启动家居设备的智能控 制功能,并可以自动启动终端设备的摄像头,以通过摄像头来对目标区域进行图像采集。
S302、获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单。
在一个示例中,终端设备可以从预设存储装置获取该目标家居设备对应的控制菜单。其中,预设存储装置可以是终端设备的内部存储装置,也可以是与终端设备连接的外部存储装置(例如云端)。即本实施例中,可以事先将各家居设备对应的控制菜单与该家居设备对应的设备标识关联保存于预设存储装置中。当终端设备根据图像确定该目标家居设备后,终端设备可以根据该目标家居设备对应的设备标识从预设存储装置获取该目标家居设备对应的控制菜单。
在另一个示例中,终端设备可以通过对所获取的图像进行图像分析,来获取该目标家居设备对应的控制菜单。即在控制菜单集成于目标家居设备的场景中,终端设备所获取的图像中可以包括该目标家居设备对应的控制菜单的图像。因此,终端设备可以通过对该图像进行识别与分析,来获取该目标家居设备对应的控制菜单。其中,对该图像进行识别与分析可以采用现有的图像识别与分析方法,本实施例对此不作任何限定。
在另一个示例中,终端设备可以通过与该目标家居设备连接的云端获取该目标家居设备对应的设备能力描述文件profile,即可以将该目标家居设备的设备标识发送至云端,以指示云端根据设备标识获取该目标家居设备对应的设备profile,并将设备profile发送至终端设备。终端设备可以根据设备profile来生成该目标家居设备对应的控制菜单。其中,设备profile为描述设备的能力特征的文件,即为描述设备是什么、能做什么以及如何控制该设备的文件。设备的能力特征可以包括设备的识别属性以及提供的服务Service。识别属性可以包括设备类型等。Service可以是设备提供的功能模块,可以包括命令和属性。例如,灯泡具有的Sevice可以包括开关SWITCH Service,SWITCH Service可以具有SWITCH ON命令和SWITCH OFF命令,以及可以具有当前开关状态status(ON,OFF)属性。因此,终端设备在获取该目标家居设备对应的设备profile后,可以对设备profile进行解析来获取该目标家居设备对应的能力特征,以根据能力特征来生成该目标家居设备对应的控制菜单。
需要说明的是,关于设备profile的具体描述可以参见现有技术,本实施例对此不作任何限定。
本实施例中,终端设备获取该目标家居设备对应的控制菜单后,可以通过AR技术在图像中显示该控制菜单,以使得用户可通过对图像中所显示的控制菜单进行操作,来控制该目标家居设备。
示例性的,终端设备可以通过AR技术将该控制菜单的所有菜单项作为整体显示于图像中的任一位置。例如,如图4中的(a)所示,显示于该目标家居设备的附近。或者,如图4中的(b)所示,显示于该目标家居设备上。具体地,终端设备在根据图像确定该目标家居设备时,还可以根据图像确定该目标家居设备对应的六自由度(6 Degree of Freedom,6Dof)位姿信息,从而根据6Dof位姿信息在图像中进行控制菜单的显示。其中,终端设备根据图像确定该目标家居设备对应的6Dof位姿信息将下后续内容中进行描述。
示例性的,终端设备可以通过AR技术将该控制菜单的各菜单项分别显示于图像中的各目标位置。其中,菜单项对应的目标位置可以为该目标家居设备自身携带的控制菜单中与该菜单项相同的菜单项在图像中的位置。例如,如图4中的(c)所示,将该控制菜单的各菜单项显示于该目标家居设备自身携带的控制菜单中。
具体地,终端设备可以对所获取的图像进行图像识别与分析,确定该目标家居设备中各菜单项在图像中的目标位置,然后,终端设备可以在各目标位置显示该控制菜单的各菜单项。也就是说,对于自身携带有控制菜单的目标家居设备,终端设备可以将该目标家居设备对应的控制菜单的各菜 单项融合至该目标家居设备自身携带的控制菜单中,使得用户可以像直接控制实体的家居设备一样在图像中进行该目标家居设备的控制,提升交互性能,提升用户体验。
应理解,当目标区域中包括多个目标家居设备时,终端设备可以通过AR技术将各目标家居设备对应的控制菜单分别显示于图像中。例如,如图5中的(a)所示,终端设备可以将电视对应的控制菜单显示于图像中电视的附近,将冰箱对应的控制菜单显示于图像中冰箱的附近。或者,如图5中的(b)所示,终端设备可以将电视对应的控制菜单显示于图像中电视的附近,将冰箱对应的控制菜单显示于图像中的冰箱上。或者,如图5中的(c)所示,终端设备可以将电视对应的控制菜单显示于图像中的电视上,将冰箱对应的控制菜单显示于图像中的冰箱上。或者,如图5中的(d)所示,终端设备可以将冰箱对应的控制菜单融合至图像中冰箱自身携带的控制菜单中,可以将电视对应的控制菜单融合至图像中电视自身携带的控制菜单中。
需要说明的是,当目标区域中包括多个目标家居设备时,各目标家居设备对应的控制菜单中可以包括各目标家居设备的设备名称和/或设备编号等设备信息,以方便用户准确区分各目标家居设备对应的控制菜单。
S303、响应于所述控制菜单中的选择操作,控制所述目标家居设备执行与所述选择操作对应的目标控制指令。
应理解,在终端设备将该目标家居设备对应的控制菜单显示于图像中后,用户可以对图像中所显示的控制菜单进行操作,即可以对控制菜单中的某一菜单项进行选择,终端设备检测到用户对某一菜单项的选择操作后,终端设备可以响应于该选择操作,控制该目标家居设备执行与该选择操作对应的目标控制指令。
在一个示例中,终端设备可以直接与该目标家居设备连接。例如,终端设备可以与该目标家居设备之间建立近距离通信连接。其中,近距离通信连接可以是蓝牙连接、近场通信(Near Field Communication,NFC)连接、无线保真(Wireless-Fidelity,WiFi)连接或紫蜂(ZigBee)连接等。在此,当终端设备检测到用户对该控制菜单中某一菜单项的选择操作后,终端设备可以直接向该目标家居设备发送与该菜单项对应的目标控制指令,以指示该目标家居设备执行该目标控制指令。其中,目标控制指令可以是开启该目标家居设备的指令,或者是关闭该目标家居设备的指令,或者是调整该目标家居设备的音量大小的指令,等等。
在另一个示例中,终端设备、该目标家居设备可以分别与云端连接。因此,当终端设备检测到用户对该控制菜单中某一菜单项的选择操作后,终端设备可以向云端发送与该菜单项对应的目标控制指令,云端接收到该目标控制指令后,可寻址到该目标家居设备对应的设备控制通道,并通过该设备控制通道向该目标家居设备发送该目标控制指令,以指示该目标家居设备执行该目标控制指令。
本实施例中,为提高目标家居设备的控制效率,终端设备在获取该目标家居设备对应的控制菜单时,还可以获取该目标家居设备对应的设备状态。如图6所示,终端设备可以通过AR技术在图像中进行设备状态的显示,以使得用户可以基于设备状态来进行目标家居设备的正确控制,提高目标家居设备的控制效率,提升用户体验。
在此,终端设备可以从该目标家居设备对应的设备影子中获取该目标家居设备对应的设备状态。其中,设备影子是一个用于存储设备最新状态的JSON文档。家居设备在使用过程中可以获取和设置设备影子,以此来同步设备状态,即当家居设备的设备状态有变化时,家居设备即会将设备状态同步至该家居设备对应的设备影子。
应理解,在该目标家居设备执行目标控制指令后,该目标家居设备可以直接将执行结果上报至 终端设备。终端设备则可以根据执行结果来更新图像中该目标家居设备对应的设备状态。或者,该目标家居设备可以将执行结果上报至云端,云端可以将该目标家居设备上报的执行结果发送至终端设备,终端设备则可以根据执行结果来更新图像中该目标家居设备对应的设备状态。
以下将对终端设备根据图像确定目标家居设备的过程进行详细描述。
在一个示例中,终端设备可以根据图像中的设备特征来确定待控制的目标家居设备。具体地,终端设备可以先对图像进行设备检测,检测出图像中的家居设备。然后可以对图像中的家居设备进行特征提取,提取出家居设备的设备特征,并可以将所提取出的设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,从而可以根据第一匹配结果来确定待控制的目标家居设备,并可以根据第一匹配结果来确定该目标家居设备对应的6Dof位姿信息,例如,可以将第一匹配结果所对应的图像的预设6Dof位姿信息确定为该目标家居设备对应的6Dof位姿信息;或者可以根据第一匹配结果所对应的图像来进行该图像所对应的6Dof位姿信息的计算,并可以将计算得到的6Dof位姿信息确定为该目标家居设备对应的6Dof位姿信息。应理解,预设设备特征也是指各家居设备对应的设备特征,是指设备特征库建立时所提取并保存的设备特征。本实施例对根据图像进行6Dof位姿信息计算的方式不作任何限定,可以采用现有的计算方式来实现。
其中,设备特征可以为加速稳健特征(Speeded-Up Robust Features,SURF),或者可以为尺度不变特征变换(Scale-invariant feature transform,SIFT),或者可以为旋转不变性特征(Oriented FAST and Rotated BRIEF,ORB)。在此,设备特征可以包含特征点和特征描述符(Feature Descriptors),特征点用于代表该设备特征在图像上的位置,特征描述符用于代表图像上该位置的局部特征(一般用向量形式表达)。本实施例对设备特征的提取算法不作具体限定,可以采用现有的提取算法进行设备特征的提取。
需要说明的是,设备特征库可以为预先建立的特征库,设备特征库中可以包括多个家居设备对应的预设设备特征。其中,设备特征库中的各预设设备特征可以与对应的家居设备之间建立有相应的索引,使得可通过索引来进行目标家居设备的确定,提高目标家居设备的确定效率。
示例性的,终端设备可以根据实体的各家居设备来进行设备特征库的建立。具体地,对于每一个家居设备,终端设备可以先获取该家居设备对应的设备名称和/或设备编号等设备标识,并可以启动终端设备的摄像头对该家居设备进行360度的图像扫描,即从不同角度获取该家居设备对应的设备图像。然后,终端设备可以从获取的各设备图像中分别提取该家居设备对应的各预设设备特征,即分别提取各设备图像对应的预设设备特征,并将各设备图像对应的预设设备特征作为整体分别保存至设备特征库,同时建立该家居设备与各整体的预设设备特征之间的索引,即建立该家居设备对应的设备名称和/或设备编号等设备标识与各设备图像对应的整体的预设设备特征之间的索引。
例如,在从不同角度获取到该家居设备对应的设备图像A、设备图像B和设备图像C时,则可以提取设备图像A对应的各预设设备特征,并可以将设备图像A对应的各预设设备特征作为整体(如作为整体的预设设备特征A)保存至设备特征库,同时建立该家居设备与预设设备特征A之间的索引。同样的,可以提取设备图像B对应的各预设设备特征,并可以将设备图像B对应的各预设设备特征作为整体(如作为整体的预设设备特征B)保存至设备特征库,同时建立该家居设备与预设设备特征B之间的索引。同样的,可以提取设备图像C对应的预设设备特征C,并可以将设备图像B对应的各预设设备特征作为整体(如作为整体的预设设备特征C)保存至设备特征库,同时建立该家居设备与预设设备特征C之间的索引。
在此,通过对家居设备进行360度的特征提取来进行设备特征库的建立,使得在进行设备特征 的匹配时可以进行360度的视角匹配,提高设备特征的匹配精度,提高目标家居设备的确定准确性。
示例性的,终端设备可以根据各家居设备的三维3D模型来进行设备特征库的建立。对于每一个家居设备,家电厂家在进行该家居设备的生产时,可以通过3D建模工具(如Autodesk)对该家居设备进行建模,得到该家居设备的3D模型,然后可以将3D模型以及该3D模型对应的设备标识上传至云端。或者,家电厂家可以直接获取将该家居设备对应的设备图像,并将设备图像以及该家居设备对应的设备标识上传至云端,云端可以根据设备图像来构建该家居设备的3D模型。其中,建模得到的3D模型需具有相对真实的纹理信息。
终端设备在进行设备特征库的建立时,对于每一个家居设备,终端设备可以先获取该家居设备对应的设备标识,并可以根据设备标识从云端获取该家居设备的3D模型。然后,终端设备可以从不同角度获取该3D模型对应的各模型图像。随后,终端设备可以从获取的各模型图像中分别提取该家居设备对应的各预设设备特征,即分别提取各模型图像对应的预设设备特征,并可以将各模型图像对应的预设设备特征作为整体分别保存至设备特征库,同时建立该家居设备与各整体的预设设备特征之间的索引,即建立该家居设备的设备标识与各模型图像对应的整体的预设设备特征之间的索引。
其中,家居设备对应的各模型图像的获取过程具体可以为:终端设备可以先根据该3D模型生成模型的关键点,模型的关键点用于作为旋转、翻转模型的参考点。然后,终端设备可以根据关键点进行上半球采样确定该3D模型的初始位姿,来对该3D模型进行离屏渲染。随后终端设备可进行模型的左右旋转、上下翻转,并可在左右旋转、上下翻转过程中,每隔预设角度进行模型图像的获取,从而得到该3D模型多角度的模型图像。在此,左右旋转需覆盖全部360度,上下翻转可选择最主要的180度,预设角度可以根据模型复杂度具体确定。例如,在一具体应用场景中,可以将预设角度确定为10度。
本实施例中,为提高模型图像获取的有效性,终端设备在获取家居设备对应的各模型图像之前,可先对3D模型进行预处理。其中,预处理可以是删除3D模型多余的顶点、调整3D模型的朝向和大小等。
需要说明的是,设备特征库的建立过程也可以由云端执行,即云端可以事先根据实体的家居设备或家居设备的3D模型进行设备特征库的建立。因此,终端设备在进行目标家居设备的确定时,可以先从云端中获取该设备特征库,然后可以根据该设备特征库中的预设设备特征以及终端设备从图像中所提取的设备特征来确定待控制的目标家居设备。
其中,云端根据实体的家居设备或家居设备的3D模型进行设备特征库的建立过程与终端设备根据实体的家居设备或家居设备的3D模型进行设备特征库的建立过程相似,基本原理相同,为简明起见,在此不再赘述。
应理解,终端设备从图像中提取的设备特征可以包括多个,设备特征库中每一设备图像或每一模型图像对应的预设设备特征也可以分别包括多个。本实施例中,终端设备可以使用现有的暴力匹配法或最近邻匹配法等方法,来将该图像对应的设备特征分别与各设备图像或模型图像对应的预设设备特征进行匹配,得到第一匹配结果。即进行设备特征与预设设备特征的匹配是为了找出与该图像相匹配的目标设备图像或目标模型图像,其中,目标设备图像或目标模型图像可以通过该目标设备图像或目标模型图像对应的预设设备特征来表征。也就是说,第一匹配结果可以为与该图像相匹配的目标设备图像或目标模型图像所对应的预设设备特征。然后,终端设备可以根据第一匹配结果与家居设备之间的索引确定出待控制的目标家居设备,即可以确定出待控制的目标家居设备对应的设备标识。
本实施例中,终端设备可以根据可匹配上预设设备特征的设备特征的数量与设备特征的总数来确定第一匹配结果。具体地,对于每一设备图像或模型图像,终端设备可以先将各设备特征分别与该设备图像或模型图像对应的预设设备特征进行匹配,并确定能匹配出对应的预设设备特征的设备特征的数量。当该数量与设备特征的总数之间的比值大于或等于第一预设阈值时,终端设备则可以将该设备图像或模型图像对应的预设设备特征确定为第一匹配结果。其中,该数量与设备特征的总数之间的比值可以为该数量/总数,第一预设阈值可以根据具体情况确定,本实施例对此不作任何限定。
例如,在第一预设阈值为70%的场景中,当该图像对应的设备特征为1000个,而这1000个设备特征中有750个设备特征可以在设备图像A对应的预设设备特征中匹配到对应的预设设备特征,有600个设备特征可以在设备图像B对应的预设设备特征中匹配到对应的预设设备特征,有500个设备特征可以在设备图像C对应的预设设备特征中匹配到对应的预设设备特征时,终端设备则可以确定该设备特征与设备图像A对应的预设设备特征相匹配,即可以确定设备图像A对应的预设设备特征为第一匹配结果,此时,终端设备可以将设备图像A对应的预设设备特征所索引到的家居设备(如冰箱)确定为待控制的目标家居设备。
本实施例中,终端设备还可以根据符合单应矩阵的设备特征的数量来确定第一匹配结果。其中,单应是指一个平面到另一个平面的映射关系,单应矩阵则是一个平面上的点到另一个平面的变换方程。具体地,对于每一个设备图像或模型图像,终端设备可以先将各设备特征分别与该设备图像或模型图像对应的预设设备特征进行匹配,以获取各设备特征对应的预设设备特征。然后,终端设备可以确定该设备特征与该设备特征所对应的预设设备特征之间是否属于单应矩阵,以此获取设备特征中符合单应矩阵的设备特征的数量。当该数量大于或等于第二预设阈值时,终端设备则可以将该设备图像或模型图像对应的预设设备特征确定为第一匹配结果。其中,第二预设阈值可以根据具体情况确定,本实施例对此不作任何限定。
在另一个示例中,终端设备也可以根据已训练的神经网络模型来确定待控制的目标家居设备。具体地,终端设备可以将所获取的图像输入至已训练的神经网络模型进行处理,得到该神经网络模型输出的设备标识,并可以根据设备标识来确定目标家居设备。其中,神经网络模型可以为依赖张量流(TensorFlow)构建的神经网络模型。
本实施例中,终端设备可以根据实体的各家居设备来进行神经网络模型的训练。具体地,对于每一个家居设备,终端设备可以启动终端设备的摄像头对该家居设备进行360度的图像扫描,即可以从不同角度获取该家居设备对应的设备图像,并可以获取该家居设备对应的设备标识,例如可通过用户进行设备标识的输入。然后,终端设备可以将各设备图像以及各设备图像对应的家居设备的设备标识输入至初始的神经网络模型进行训练,得到已训练的神经网络模型。在此,通过对各家居设备进行360度的图像获取,并通过所获取的设备图像来进行神经网络模型的训练,使得训练得到的神经网络模型可以进行360度视角的匹配,提高目标家居设备的确定准确性。
应理解,为提高神经网络模型的识别准确性,终端设备在获取设备图像的基础上,还可以获取其他包含家居设备或不包含家居设备的训练图像,并可以将设备图像与训练图像合并成训练图片集,以通过训练图片集对神经网络模型进行训练。
本实施例中,终端设备也可以根据各家居设备的三维3D模型来进行神经网络模型的训练。如图7所示,终端设备可以先获取各家居设备的3D模型和3D模型对应的设备标识。然后,终端设备可以从不同角度获取各3D模型对应的各模型图像,并可以将各模型图像以及各模型图像对应的3D模 型的设备标识输入至初始的神经网络模型进行训练,得到已训练的神经网络模型。
为提高模型图像获取的有效性,提高神经网络模型的训练效率,终端设备在获取3D模型对应的各模型图像之前,可以先对各3D模型进行预处理。其中,预处理可以是删除3D模型多余的顶点、调整3D模型的朝向和大小等。另外,为提高神经网络模型的识别准确性,终端设备在获取模型图像的基础上,还可以获取其他包含家居设备或者不包含家居设备的训练图像,并可以将模型图像与训练图像合并成训练图像集,以通过训练图像集对神经网络模型进行训练。
其中,此处各模型图像的获取过程可以参见前述所述的各模型图像的获取过程,在此不再赘述。
需要说明的是,神经网络模型也可以由云端训练得到。即云端可以事先从不同角度获取各家居设备对应的设备图像或各家居设备的3D模型对应的模型图像,并可以将所获取的各设备图像或各模型图像与云端中预先获取的训练图像合并成训练图像集,然后可以通过训练图像集来训练初始的神经网络模型,得到已训练的神经网络模型。因此,终端设备在进行目标家居设备的确定时,可以先从云端中获取该已训练的神经网络模型,并可以将获取的图像输入至该已训练的神经网络模型进行处理,已得到该神经网络模型输出的设备标识,从而根据设备标识确定待控制的目标家居设备。
应理解,在用户某家居设备具有相同的两个或两个以上时,终端设备可以结合各家居设备所在环境的环境特征来进行目标家居设备的确定。
示例性的,终端设备可以对图像进行设备检测,并获取检测出的家居设备的设备特征和家居设备所在环境的环境特征。然后可以将设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并将环境特征与环境特征库中的预设环境特征进行匹配,得到第二匹配结果,从而可以根据第一匹配结果和第二匹配结果确定待控制的目标家居设备。
示例性的,终端设备在将图像输入至已训练的神经网络模型进行处理,以得到设备标识时,还可以对图像进行设备检测,并获取检测出的家居设备所在环境的环境特征。然后可以将环境特征与环境特征库中的预设环境特征进行匹配,得到第三匹配结果,从而可以根据设备标识和第三匹配结果确定待控制的目标家居设备。其中,第三匹配结果可以包括检测出的家居设备所在的位置信息。
需要说明的是,环境特征库可以为预先建立的特征库。环境特征库中可以包括各家居设备所在环境的预设环境特征。其中,环境特征库中的各预设环境特征可以与对应的家居设备之间建立有相应的索引,即环境特征库中的各预设环境特征可以与对应的家居设备对应的位置信息之间建立有相应的索引。应理解,预设环境特征也是指各家居设备所在环境对应的环境特征,是指环境特征库建立时所提取并保存的环境特征。
本实施例中,终端设备中安装有进行家居设备智能控制的APP,终端设备可以通过该APP来管理可进行智能控制的家居设备。因此,在需要进行环境特征库的建立时,用户可以打开该APP,并进入如图8中的(a)所示的设备列表页,该设备列表页中可以显示有可进行智能控制的各家居设备。用户可以点击该设备列表页中的任一家居设备,此时终端设备即可以跳转至该家居设备对应的设备详情页。如图8中的(b)所示,该设备详情页中可以显示有“获取周边环境信息”的按钮,当用户点击该按钮后,终端设备响应于该按钮的点击操作,可以启动终端设备的摄像头,并可以通过摄像头来采集该家居设备所在环境的环境图像(或环境视频)。随后,终端设备可以对所采集的环境图像(或环境视频)进行特征检测与提取,得到该家居设备所在环境的预设环境特征,并可以将该家居设备所在环境的预设环境特征保存至环境特征库,同时建立该家居设备与该预设环境特征之间的索引,即建立该家居设备对应的位置信息与该预设设备特征之间的索引。
本实施例中,终端设备也可以通过对用户上传的环境图像(或环境视频)进行特征检测与提取, 来得到该家居设备所在环境的预设环境特征。即当用户点击“获取周边环境信息”的按钮后,终端设备响应于该按钮的点击操作,可以弹出如图8中的(c)所示的弹窗,该弹窗中显示有“上传环境图像”、“采集环境图像”以及“取消”的选择键。当“上传环境图像”的选择键被触发时,终端设备可以进入上传图像的页面,以获取用户上传的环境图像(或环境视频),并可以对所获取的环境图像(或环境视频)进行特征检测与提取,来得到该家居设备所在环境的预设环境特征。当“采集环境图像”的选择键被触发时,终端设备可以启动终端设备的摄像头来进行环境图像(或环境视频)的获取,并可以对所获取的环境图像(或环境视频)进行特征检测与提取,来得到该家居设备所在环境的预设环境特征。
其中,与设备特征相似,环境特征也可以为加速稳健特征(Speeded-Up Robust Features,SURF),或者可以为尺度不变特征变换(Scale-invariant feature transform,SIFT),或者可以为旋转不变性特征(Oriented FAST and Rotated BRIEF,ORB)。在此,环境特征也可以包含特征点和特征描述符。
本实施例中,在需要进行家居设备的控制时,终端设备可获取目标区域对应的图像,并可根据图像来确定需进行控制的目标家居设备。然后可获取该目标家居设备对应的控制菜单,并通过AR技术在图像中显示控制菜单,即在图像中同时显示目标家居设备和该目标家居设备对应的控制菜单,使得用户可直接触发控制菜单中相应的菜单项来对该目标家居设备进行控制,不仅可简化家居设备的控制流程,提高家居设备的控制效率。而且,用户在显示有目标家居设备和控制菜单的图像中直接对控制菜单进行操作来对目标家居设备进行控制,如同用户直接对实际场景中的家居设备进行控制一样,实现了用户所见即所控的目的,极大地提高了家居设备控制中的交互性能,提升了用户体验,具有较强的易用性和实用性。
【实施例二】
请参阅图9,图9示出了本申请实施例二提供的家居设备控制方法的流程示意图。如图9所示,该实施例提供的方法可以包括:
S901、终端设备获取目标区域对应的图像,并将图像发送至云端。
S902、云端根据图像确定目标家居设备,获取目标家居设备对应的控制菜单和设备状态,并将控制菜单和设备状态发送至终端设备。
其中,终端设备获取目标区域对应的图像与实施例一S301中终端设备获取目标区域对应的图像的获取方式相同,在此不再赘述。
本实施例中,终端设备获取目标区域对应的图像后,可以将图像发送至云端。云端则可以根据图像来确定待控制的目标家居设备。
在一个示例中,云端可以根据图像中的设备特征来确定待控制的目标家居设备。具体地,云端可以先对图像进行设备检测,检测出图像中的家居设备。然后可以对图像中的家居设备进行特征提取,提取出家居设备的设备特征,并可以将所提取出的设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,从而可以根据第一匹配结果来确定待控制的目标家居设备。
在另一个示例中,云端也可以根据已训练的神经网络模型来确定待控制的目标家居设备。具体地,云端可以将图像输入至已训练的神经网络模型进行处理,得到神经网络模型输出的设备标识,并可以根据设备标识来确定目标家居设备。
本实施例中,设备特征库可以由云端根据各家居设备或各家居设备对应的三维3D模型来建立。其中,云端进行设备特征库的建立过程与实施例一中终端设备进行设备特征库的过程相似,基本原理相同,在此不再赘述。同样的,已训练的神经网络模型也可以由云端根据各家居设备对应的设备 图像或各家居设备的3D模型对应的模型图像训练得到。其中,云端进行神经网络模型的训练过程与实施例一中终端设备进行神经网络模型的训练过程相似,基本原理相同,在此不再赘述。
在此,云端根据图像确定待控制的目标家居设备后,可以获取该目标家居设备对应的控制菜单。示例性的,云端可以从预设存储装置获取该目标家居设备对应的控制菜单。示例性的,云端可通过对所获取的图像进行图像分析,来获取该目标家居设备对应的控制菜单。示例性的,云端可以获取该目标家居设备对应的设备profile,并可以根据设备profile来生成该目标家居设备对应的控制菜单;或者,云端获取设备profile后,可以直接将该设备profile发送至终端设备,以指示终端设备根据设备profile来生成该目标家居设备对应的控制菜单,即云端发送给终端设备的控制菜单也可以是该控制菜单对应的设备profile。
应理解,云端在确定目标家居设备后,还可以根据该目标家居设备的设备标识从该目标家居设备对应的设备影子中获取该目标家居设备对应的设备状态。其中,各家居设备的对应的设备影子可以保存于云端。
S903、终端设备接收云端发送的控制菜单和设备状态,并通过AR技术在图像中显示控制菜单和设备状态。
其中,终端设备通过AR技术在图像中显示控制菜单和设备状态的具体内容可参照实施例一S302中的描述,在此不再赘述。
S904、终端设备响应于控制菜单的选择操作,生成选择操作对应的目标控制指令,并将目标控制指令发送至云端。
本实施例中,终端设备通过AR技术在图像中显示该目标家居设备对应的控制菜单和设备状态后,用户可以直接对图像中的控制菜单进行操作来控制该目标家居设备。即用户可以直接选择控制菜单中的任一菜单项(如开启项),终端设备检测到控制菜单中的开启项被触发后,可以生成开启项所对应的目标控制指令,并将该目标控制指令发送至云端。
S905、云端接收终端设备发送的目标控制指令,并将目标控制指令发送至目标家居设备。
云端接收到终端设备发送的目标控制指令后,则可以将该目标控制指令转发至目标家居设备。应理解,为确保家居设备控制的有效性,云端中可以具有权限校验过程,即云端在接收到终端设备发送的目标控制指令后,可以先对终端设备进行权限校验,以确定终端设备是否有权限控制该目标家居设备。当权限校验通过时,云端可以获取该目标家居设备对应的设备控制通道,并可以通过该设备控制通道将该目标控制指令发送至该目标家居设备。当权限校验不通过时,云端可以确定该终端设备不具有控制该目标家居设备的权限,即云端可以拒绝发送目标控制指令,以拒绝终端设备对该目标家居设备的控制。
S906、目标家居设备接收云端发送的目标控制指令,执行目标控制指令,并向云端上报执行结果。
S907、云端接收目标家居设备上报的执行结果,并将执行结果发送至终端设备。
S908、终端设备根据执行结果更新图像中目标家居设备对应的设备状态。
应理解,当目标家居设备接收到目标控制指令后,目标家居设备可以执行该目标控制指令,以开启目标家居设备,或关闭目标家居设备,或调节目标家居设备的温度大小等。目标家居设备执行完目标控制指令后,可以向云端反馈执行结果。云端则可以将目标家居设备反馈的执行结果发送至终端设备。终端设备接收到目标家居设备的执行结果后,可以根据执行结果更新图像中目标家居设备对应的设备状态,例如将目标家居设备对应的设备状态由关闭状态更新至开启状态,或者将目标 家居设备对应的设备状态由开启状态更新至关闭状态,或者将目标家居设备对应的设备状态中的温度由23度更新至26度,等等。
本实施例中,在需要进行家居设备的控制时,终端设备可获取目标区域对应的图像,并将图像发送至云端。以通过云端来确定需进行控制的目标家居设备,并获取目标家居设备对应的控制菜单发送至终端设备。终端设备可以通过AR技术在图像中显示控制菜单,使得用户可直接触发控制菜单中相应的菜单项来对该目标家居设备进行控制,不仅可简化家居设备的控制流程,提高家居设备的控制效率。而且,用户在显示有目标家居设备和控制菜单的图像中直接对控制菜单进行操作来对目标家居设备进行控制,如同用户直接对实际场景中的家居设备进行控制一样,实现了用户所见即所控的目的,极大地提高了家居设备控制中的交互性能,提升了用户体验,具有较强的易用性和实用性。另外,通过云端来进行目标家居设备的确定可以降低终端设备的处理性能,提高目标家居设备的确定效率,从而进一步提高家居设备的控制效率。
请参阅图10,图10示出了本实施例二提供的家居设备控制方法所适用于的控制***的***结构图。如图10所示,该***可以包括终端设备100、云端200和家居设备300,其中,云端200可以包括设备模型库装置201、设备特征库202、设备绑定装置203、环境特征库204、设备识别装置205、设备连接管理装置206和设备影子207。
其中,设备模型库装置201,用于接收家电厂家上传的家居设备的3D模型,或者用于接收家电厂家上传的家居设备的设备图像,并根据设备图像构建该家居设备的3D模型。然后,用于从3D模型中提取家居设备对应的预设设备特征,并将提取的预设设备特征保存至设备特征库202,同时建立家居设备与预设设备特征之间的索引保存于设备特征库202。
设备绑定装置203,用于获取家居设备所在环境的预设环境特征,并将所获取的预设环境特征与对应的家居设备进行关联绑定后保存至环境特征库204。即设备绑定装置203,用于对所获取的环境图像(或环境视频)进行特征检测与提取,得到家居设备所在环境的预设环境特征,并将家居设备所在环境的预设环境特征保存至环境特征库204,同时建立家居设备与预设环境特征之间的索引保存于环境特征库204。
设备连接管理装置206,用于与各家居设备保存通信连接,负责向各家居设备发送控制指令,以及获取各家居设备对应的设备状态,并将各家居设备对应的设备状态同步至各家居设备对应的设备影子207。
设备识别装置205,用于结合设备特征库202和/或环境特征库204对摄像头获取的图像进行识别,以确定待控制的目标家居设备。同时,设备识别装置205,还用于识别用户对图像中的某一家居设备对应的控制菜单所执行的选择操作,并可生成该选择操作对应的控制指令发送至设备连接管理装置206,以通过设备连接管理装置206将控制指令发送至该家居设备,从而对该家居设备进行设备控制。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实 施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述***中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本申请实施例还提供了一种终端设备,所述终端设备包括至少一个存储器、至少一个处理器以及存储在所述至少一个存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时,使所述终端设备实现上述任意各个方法实施例中的家居设备控制方法。示例性的,所述终端设备的结构可以如图1所示。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被计算机执行时,使所述计算机实现上述任意各个方法实施例中的家居设备控制方法。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备实现上述任意各个方法实施例中的家居设备控制方法。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (12)

  1. 一种家居设备控制方法,其特征在于,应用于终端设备,所述方法包括:
    获取目标区域对应的图像,并根据所述图像确定目标家居设备;
    获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单;
    响应于所述控制菜单中的选择操作,控制所述目标家居设备执行与所述选择操作对应的目标控制指令。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述图像确定目标家居设备包括:
    对所述图像进行设备检测,并获取检测出的家居设备的设备特征;
    将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并根据所述第一匹配结果确定所述目标家居设备。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述图像确定目标家居设备包括:
    对所述图像进行设备检测,并获取检测出的家居设备的设备特征和所述家居设备所在环境的环境特征;
    将所述设备特征与设备特征库中的预设设备特征进行匹配,得到第一匹配结果,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第二匹配结果;
    根据所述第一匹配结果和所述第二匹配结果确定所述目标家居设备。
  4. 根据权利要求2或3所述的方法,其特征在于,在所述将所述设备特征与设备特征库中的预设设备特征进行匹配之前包括:
    获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
    对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
    分别对各所述模型图像进行预设设备特征的提取,并根据各所述模型图像对应的预设设备特征构建所述设备特征库。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述图像确定目标家居设备包括:
    将所述图像输入至已训练的神经网络模型进行处理,得到所述神经网络模型输出的设备标识,并根据所述设备标识确定所述目标家居设备。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述设备标识确定所述目标家居设备包括:
    获取所述图像对应的环境特征,并将所述环境特征与环境特征库中的预设环境特征进行匹配,得到第三匹配结果;
    根据所述设备标识和所述第三匹配结果确定所述目标家居设备。
  7. 根据权利要求5或6所述的方法,其特征在于,在所述将所述图像输入至已训练的神经网络模型进行处理之前包括:
    获取各家居设备的三维模型,所述各家居设备包括所述目标家居设备;
    对每一个三维模型,从不同角度获取所述三维模型对应的模型图像;
    将各所述模型图像以及各所述模型图像对应的家居设备的设备标识输入至初始的神经网络模型进行训练,得到所述已训练的神经网络模型。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述获取所述目标家居设备对应的控制菜单,并通过增强现实AR技术在所述图像中显示所述控制菜单包括:
    获取所述目标家居设备对应的控制菜单和设备状态,并通过AR技术在所述图像中显示所述控制菜单和所述设备状态。
  9. 根据权利要求1所述的方法,其特征在于,所述根据所述图像确定目标家居设备包括:
    将所述图像发送至云端,以指示所述云端根据所述图像确定所述目标家居设备,并将所确定的目标家居设备发送至所述终端设备。
  10. 根据权利要求1或9所述的方法,其特征在于,所述获取所述目标家居设备对应的控制菜单 包括:
    将所述目标家居设备的设备标识发送至云端,以指示所述云端根据所述设备标识获取所述目标家居设备对应的设备能力描述文件,并将所述设备能力描述文件发送至所述终端设备;
    根据所述设备能力描述文件生成所述目标家居设备对应的控制菜单。
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,使所述终端设备实现如权利要求1至10中任一项所述的家居设备控制方法。
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被计算机执行时,使所述计算机实现如权利要求1至10中任一项所述的家居设备控制方法。
PCT/CN2021/104078 2020-07-07 2021-07-01 家居设备控制方法、终端设备及计算机可读存储介质 WO2022007707A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21838796.7A EP4170440A4 (en) 2020-07-07 2021-07-01 HOME DEVICE CONTROL METHOD, TERMINAL DEVICE AND COMPUTER-READABLE STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010655225.6A CN113970888A (zh) 2020-07-07 2020-07-07 家居设备控制方法、终端设备及计算机可读存储介质
CN202010655225.6 2020-07-07

Publications (1)

Publication Number Publication Date
WO2022007707A1 true WO2022007707A1 (zh) 2022-01-13

Family

ID=79553520

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/104078 WO2022007707A1 (zh) 2020-07-07 2021-07-01 家居设备控制方法、终端设备及计算机可读存储介质

Country Status (3)

Country Link
EP (1) EP4170440A4 (zh)
CN (1) CN113970888A (zh)
WO (1) WO2022007707A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465838A (zh) * 2022-02-16 2022-05-10 海信视像科技股份有限公司 显示设备、智能家居***及多屏控制方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114255333B (zh) * 2022-02-24 2022-06-24 浙江毫微米科技有限公司 基于空间锚点的数字内容展示方法、装置及电子设备
CN114968387A (zh) * 2022-06-07 2022-08-30 三星电子(中国)研发中心 外接设备切换方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100091863A (ko) * 2009-02-10 2010-08-19 김용기 홈 네트워크 시스템 및 지능형 홈서버 제어 동작 방법 및 tcp/ip를 이용한 영상 확인 제어 및 모니터 방법
CN110336719A (zh) * 2019-06-03 2019-10-15 武汉工程大学 一种实时视频家居环境设备识别交互的远程智能家居控制方法
CN110827099A (zh) * 2018-08-07 2020-02-21 北京优酷科技有限公司 一种家居商品推荐方法、客户端及服务器
CN111045344A (zh) * 2019-12-31 2020-04-21 维沃移动通信有限公司 一种家居设备的控制方法及电子设备

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5229912B2 (ja) * 2009-08-21 2013-07-03 独立行政法人産業技術総合研究所 物体認識装置および物体認識方法
US9886162B2 (en) * 2014-06-02 2018-02-06 Qualcomm Incorporated Device-provided tracking data for augmented reality
US20160071319A1 (en) * 2014-09-09 2016-03-10 Schneider Electric It Corporation Method to use augumented reality to function as hmi display
CN105843054A (zh) * 2016-03-22 2016-08-10 美的集团股份有限公司 控制家居设备的方法、智能家居***及移动设备
CN105867628A (zh) * 2016-04-18 2016-08-17 浙江理工大学 基于柔性电子皮肤的智能家居手势控制***及控制方法
US10110678B2 (en) * 2016-08-19 2018-10-23 Sony Corporation System and method for data communication based on image processing
EP3660703B1 (en) * 2018-09-27 2023-06-07 Siemens Aktiengesellschaft Method, apparatus, and system for identifying device, storage medium, processor, and terminal
CN111077783A (zh) * 2018-10-18 2020-04-28 珠海格力电器股份有限公司 家电自定义控制***、方法、自定义动作处理***、方法
US10762328B2 (en) * 2018-10-22 2020-09-01 Dell Products, Lp Method and apparatus for identifying a device within the internet of things using interrogation
US11157220B2 (en) * 2018-12-17 2021-10-26 Canon Kabushiki Kaisha Connecting an image processing device via a mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100091863A (ko) * 2009-02-10 2010-08-19 김용기 홈 네트워크 시스템 및 지능형 홈서버 제어 동작 방법 및 tcp/ip를 이용한 영상 확인 제어 및 모니터 방법
CN110827099A (zh) * 2018-08-07 2020-02-21 北京优酷科技有限公司 一种家居商品推荐方法、客户端及服务器
CN110336719A (zh) * 2019-06-03 2019-10-15 武汉工程大学 一种实时视频家居环境设备识别交互的远程智能家居控制方法
CN111045344A (zh) * 2019-12-31 2020-04-21 维沃移动通信有限公司 一种家居设备的控制方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4170440A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465838A (zh) * 2022-02-16 2022-05-10 海信视像科技股份有限公司 显示设备、智能家居***及多屏控制方法
CN114465838B (zh) * 2022-02-16 2023-10-31 海信视像科技股份有限公司 显示设备、智能家居***及多屏控制方法

Also Published As

Publication number Publication date
CN113970888A (zh) 2022-01-25
EP4170440A1 (en) 2023-04-26
EP4170440A4 (en) 2023-12-27

Similar Documents

Publication Publication Date Title
CN109814766B (zh) 一种应用显示方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
CN110134316B (zh) 模型训练方法、情绪识别方法及相关装置和设备
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2022007707A1 (zh) 家居设备控制方法、终端设备及计算机可读存储介质
WO2020029306A1 (zh) 一种图像拍摄方法及电子设备
WO2022017261A1 (zh) 图像合成方法和电子设备
CN113805487B (zh) 控制指令的生成方法、装置、终端设备及可读存储介质
WO2021052139A1 (zh) 手势输入方法及电子设备
CN112130788A (zh) 一种内容分享方法及其装置
CN113935898A (zh) 图像处理方法、***、电子设备及计算机可读存储介质
WO2022052740A1 (zh) 一种折叠设备及其开合控制方法
CN112087649B (zh) 一种设备搜寻方法以及电子设备
CN114995715B (zh) 悬浮球的控制方法和相关装置
CN114444000A (zh) 页面布局文件的生成方法、装置、电子设备以及可读存储介质
WO2023000746A1 (zh) 增强现实视频的处理方法与电子设备
WO2022002213A1 (zh) 翻译结果显示方法、装置及电子设备
CN114721614A (zh) 一种调用其他设备能力的方法、电子设备和***
CN114812381A (zh) 电子设备的定位方法及电子设备
CN113867851A (zh) 电子设备操作引导信息录制方法、获取方法和终端设备
WO2022222702A1 (zh) 屏幕解锁方法和电子设备
CN116450026B (zh) 用于识别触控操作的方法和***
WO2023016347A1 (zh) 声纹认证应答方法、***及电子设备
WO2024114493A1 (zh) 一种人机交互的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21838796

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18004463

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021838796

Country of ref document: EP

Effective date: 20230117