Intelligent device control method, electronic device and system

By adding device location information and scene semantic recognition technology to the smart home voice control system, the problem of being unable to identify specific devices under multiple same device types is solved, achieving more accurate device control and a higher user experience.

CN113823280BActive Publication Date: 2024-10-11HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010568806.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2024-10-11
Estimated Expiration
2040-06-19

Smart Images

  • Figure CN113823280B_ABST
    Figure CN113823280B_ABST
Patent Text Reader

Abstract

The present application provides a smart device control method, electronic device and system; it relates to the field of smart home, and can more accurately control the target smart home device based on the device location information. The method is applied to a communication system including a first device and a second device, and the first device and the second device are smart devices of the same device type. The location information of the first device and the second device are different, the first location information of the first device is the relative position relationship between the first device and the first object, and the second location information of the second device is the relative position relationship between the second device and the second object. The method includes: receiving a first voice of the user, the first voice includes the device type, location information and a first operation. According to the first voice, determine whether the location information contained in the first voice is the first location information or the second location information. Control the first device corresponding to the first location information to perform the first operation or the second device corresponding to the second location information to perform the first operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home, and in particular to a smart device control method, electronic device and system. Background Art

[0002] Smart home is a system that connects various devices in the home (such as audio and video equipment, lighting systems, security systems, etc.) through the Internet of Things technology to provide multiple functions such as home appliance control, lighting control, and anti-theft alarm. Combining voice recognition technology with smart home, define smart home voice control devices. As a control device in a smart home, smart home voice control devices can achieve more convenient smart home device management through voice interaction with users. For example, if a smart home voice control device recognizes the user's voice command "Please turn on a desk lamp for me", it will control the desk lamp in the smart home device to turn on automatically.

[0003] In actual application scenarios, when users issue voice commands, they usually use the device type to refer to a device. However, if there are multiple devices of the same device type around, the smart home voice control device cannot determine which device the user needs to control based on the voice command. For example, suppose there are two desk lamps in the room, namely desk lamp A and desk lamp B. The user wants to turn on desk lamp A and sends a voice command to the smart home voice control device, "Please turn on a desk lamp for me." At this time, since both desk lamp A and desk lamp B meet the requirements of the voice command, the current voice command is ambiguous and cannot be executed correctly.

[0004] In the prior art, there are generally two solutions to this problem. In the first solution, the smart home voice control device enumerates the brands and device names of all devices that meet the conditions, and further asks the user which device he or she specifically wants to operate. In the current solution, if there are many devices of the same type, the amount of information fed back by the smart home voice control device at a time is large, causing greater pressure on the user. In the second solution, the smart home voice control device turns on all devices that meet the requirements. In the current solution, the execution results do not meet user expectations, reducing user satisfaction. Summary of the invention

[0005] The smart device control method, electronic device and system provided in this application can achieve more accurate control of target smart home devices based on device location information.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a smart device control method, which is applied to a communication system including a first device and a second device. Among them, the first device and the second device both correspond to a first category. The first device corresponds to first position information, and the first position information is the relative position relationship between the first device and the first object. The second device corresponds to second position information, and the second position information is the relative position relationship between the second device and the second object. The method may include: receiving a first voice of a user, the first voice includes a first category, a first position information and a first operation. According to the first voice, control the first device corresponding to the first position information to perform a first operation. Receive the second voice of the user, the second voice includes the first category, the second position information and the first operation. According to the second voice, control the second device corresponding to the second position information to perform the first operation.

[0008] In the prior art, when a user issues a voice command, the user usually uses the first category to refer to a certain device. The first category includes, for example, the device type and / or the device name. However, if there are multiple devices of the first category around, the control device cannot determine which device the user needs to control based on the voice command. In an embodiment of the present application, the control device can determine the device that specifically performs the first operation based on the first location information or the second location information in the user's voice command. That is, if the user's voice command includes the first location information, the first device corresponding to the first location information is controlled to perform the first operation. If the user's voice command includes the second location information, the second device corresponding to the second location information is controlled to perform the first operation.

[0009] The above-mentioned first object is an object used to locate the first device (such as furniture, etc.). Usually, the distance between the first object and the first device is less than the threshold value A, that is, the first object is adjacent to the first device. The second object is an object used to locate the second device (such as furniture, etc.). Usually, the distance between the second object and the second device is less than the threshold value A, that is, the second object is adjacent to the second device. Generally, when there are multiple devices of the same device type, users are accustomed to using device locations to describe the devices, and the device location information of each device is different. For example, a desk lamp on a desk and a desk lamp on a coffee table are desk lamps of the same device type, but the corresponding location information is different.

[0010] Exemplarily, the first device and the second device are both desk lamps, that is, the first category is desk lamp. The first device is located above the desk, that is, the first location information is above the desk. The second device is located above the coffee table, that is, the second location information is above the coffee table. The mobile phone receives the user's first voice, such as the first voice is "turn on the desk lamp above the desk". The mobile phone recognizes the intention in the first voice, that is, the first operation is "turn on", the first slot, that is, the first category is "desk lamp", and the second slot, that is, the first location information is "above the desk". Then the mobile phone controls the desk lamp above the desk to turn on according to the first voice. The mobile phone receives the user's second voice, such as the second voice is "turn on the desk lamp above the coffee table". The mobile phone recognizes the intention in the second voice, that is, the first operation is "turn on", the first slot, that is, the first category is "desk lamp", and the second slot, that is, the second location information is "above the coffee table". Then the mobile phone controls the desk lamp above the coffee table to turn on according to the second voice.

[0011] In this way, by adding the device location information to the voice command, the mobile phone can identify the device location information and determine the unique target smart home device corresponding to the current device location information. This ensures that in a home system with multiple devices of the same type, the mobile phone can also correctly and quickly execute user commands, improving the user experience.

[0012] In a possible implementation, the method further includes: receiving a third voice of the user, the third voice including the first category and the first operation, and not including the first location information or the second location information. Playing a prompt voice to prompt the user to input the first location information or the second location information. Receive a fourth voice of the user, the fourth voice including the first location information or the second location information. According to the fourth voice, controlling the first device corresponding to the first location information to perform the first operation, or controlling the second device corresponding to the second location information to perform the first operation.

[0013] Optionally, if the voice command does not include the device location of the target smart home device or the device location is unclear, if the number of smart home devices determined by the mobile phone according to the voice command is one, the currently determined smart home device is the target smart home device. If the number of smart home devices determined by the mobile phone according to the voice command is multiple, that is, there are multiple smart home devices of the same device type, the mobile phone uses voice prompts to guide the user to use the device location to determine the smart home device.

[0014] For example, suppose there are two table lamps in the home system, located on the desk and the coffee table respectively, and the mobile phone receives the user's voice command. For example, the voice command is "turn on the desk lamp", the intention in the recognized voice command is "turn on", the first slot includes "desk lamp", and the second slot is missing. And the mobile phone determines that there are two desk lamps in the home system, then broadcasts the voice prompt "Which desk lamp do you need to turn on", or broadcasts the voice prompt "Do you want to turn on the desk lamp on the desk or the desk lamp on the coffee table", guides the user to choose, and obtains the location information of the smart home device that needs to be turned on. The mobile phone receives the voice command input by the user again, such as "desk lamp on the desk", determines that the target smart home device is the desk lamp on the desk, and controls the desk lamp on the desk to turn on.

[0015] In a possible implementation, the method further includes: receiving first location information of the first device and second location information of the second device input by a user. Alternatively, instructing the user to capture a first image including the first device and the first object, and to capture a second image including the second device and the second object; and acquiring the first location information and the second location information based on the captured first image and the captured second image, respectively.

[0016] Optionally, the mobile phone directly receives the location information input by keyboard input, handwriting input, voice input, etc. Alternatively, the mobile phone collects an image containing the target smart home device, and automatically obtains the location information of the target smart home device in the currently collected image through object recognition technology and scene semantic recognition technology.

[0017] In a possible implementation, the first position information and the second position information are obtained according to the first image and the second image, respectively, including: determining the coordinates of the first device and the coordinates of the first object contained in the first image according to the first image; and determining the coordinates of the second device and the coordinates of the second object contained in the second image according to the second image. According to the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object is determined to obtain the first position information; and according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

[0018] Specifically, the mobile phone obtains the coordinate information of the target smart home device in the captured image and the coordinate information of the object adjacent to the target smart home device for positioning through scene semantic recognition technology. According to the coordinate relationship between the coordinates of the smart home device and the coordinates of the object for positioning, the location information of the smart home device can be determined.

[0019] In a possible implementation, the first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

[0020] In a possible implementation, the first object includes a first type of object and a second type of object, the first type of object is an object whose movement frequency is less than or equal to a first threshold, and the second type of object is an object whose movement frequency is greater than the first threshold; the first position information includes first positioning information and second positioning information, the first positioning information is the position information determined according to the first type of object, and the second positioning information is the position information determined according to the second type of object; the priority of the first positioning information is higher than the priority of the second positioning information. The second object includes the first type of object and the second type of object, the second position information includes third positioning information and fourth positioning information, the third positioning information is the position information determined according to the first type of object, and the fourth positioning information is the position information determined according to the second type of object; the priority of the third positioning information is higher than the priority of the fourth positioning information.

[0021] Optionally, the mobile phone can preconfigure a priority order for the device location of the smart home device. If the device location of the target smart home device contains multiple device location descriptions, the mobile phone can display the sorted device locations in priority order according to preset rules. The preset rules may include, for example, determining the priority based on whether the positioning object in the device location description is easy to move. For example, based on the relationship between the movement frequency of the object and the first threshold, determine whether the object is easy to move. The first threshold is the movement frequency threshold, which can be an empirical value. For example, a desk generally does not move, and its movement frequency is less than the first threshold, and it belongs to the first type of object. The laptop on the desk is often moved, and its movement frequency is greater than the first threshold, and it belongs to the second type of object.

[0022] Exemplarily, the priority of a positioning object that is not easy to move can be set higher, and the priority of a positioning object that is easy to move can be set lower, so as to avoid invalidation of the corresponding device position after the positioning object moves.

[0023] In a possible implementation, the method further includes: receiving a fifth voice of the user, the fifth voice including the first category and the first operation, and the fifth voice also including the second positioning information or the fourth positioning information. Playing a prompt voice to prompt the user to input the first positioning information or the third positioning information. Receive a sixth voice of the user, the sixth voice including the first positioning information or the third positioning information. According to the sixth voice, controlling the first device corresponding to the first positioning information to perform the first operation, or controlling the second device corresponding to the third positioning information to perform the first operation.

[0024] Optionally, if the positioning object corresponding to the device position included in the voice command is an easily movable positioning object, the mobile phone determines the position information of the positioning object that is not easy to move or the positioning object with the highest priority in the corresponding device position list according to the current positioning object, and confirms the target smart home device with the user through voice interaction, thereby avoiding execution errors caused by the movement of the positioning object.

[0025] In one possible implementation, after obtaining the first position information and the second position information based on the first image and the second image respectively, the method further includes: receiving correction information of the user on the first position information and / or the second position information, and obtaining the corrected first position information and / or the corrected second position information.

[0026] For example, if the mobile phone detects that the user has edited the device location, it will correct the location information of the smart home device according to the user's settings. In this way, it provides users with a channel to correct the device location according to the actual environment to avoid errors caused by image recognition.

[0027] In a possible implementation, the method further includes: receiving a first execution result of the first operation performed by the first device, and announcing the first execution result by voice. Receiving a second execution result of the first operation performed by the second device, and announcing the second execution result by voice.

[0028] For example, a mobile phone or a smart home voice control device receives the execution result of the first operation performed by the target smart home device, matches the preconfigured reply words according to the execution result, and voice broadcasts the reply words to let the user know the execution result of the current voice command.

[0029] In a second aspect, the present application provides a communication system, which includes an electronic device, a first device and a second device; wherein the first device and the second device are both smart devices of the first category; the first device corresponds to the first position information, which is the relative position relationship between the first device and the first object, and the second device corresponds to the second position information, which is the relative position relationship between the second device and the second object. The electronic device is used to receive a first voice of a user, the first voice includes a first category, a first position information and a first operation; according to the first voice, determine the first device corresponding to the first position information; send a first indication to the first device, the first indication is used to instruct the first device to perform the first operation. The first device is used to receive the first indication and perform the first operation according to the first indication. The electronic device is also used to receive a second voice of a user, the second voice includes a first category, a second position information and a first operation; according to the second voice, determine the second device corresponding to the second position information; send a second indication to the second device, the second indication is used to instruct the second device to perform the first operation. The second device is used to receive the second indication and perform the first operation according to the second indication.

[0030] In one possible implementation, the electronic device is further used to receive a third voice of the user, the third voice includes the first category and the first operation, and does not include the first location information or the second location information; play a prompt voice to prompt the user to input the first location information or the second location information; receive a fourth voice of the user, the fourth voice includes the first location information or the second location information; determine, based on the fourth voice, a first device corresponding to the first location information, and send a first indication to the first device; or, determine, based on the fourth voice, a second device corresponding to the second location information, and send a second indication to the second device.

[0031] In one possible implementation, the electronic device is further used to receive first position information of a first device and second position information of a second device input by a user; or, to instruct the user to capture a first image including the first device and the first object, and to capture a second image including the second device and the second object; and to obtain the first position information and the second position information based on the captured first image and the captured second image, respectively.

[0032] In one possible implementation, the electronic device is specifically used to determine, based on a first image captured, the coordinates of a first device and the coordinates of a first object contained in the first image; and to determine, based on a second image captured, the coordinates of a second device and the coordinates of the second object contained in the second image; to determine, based on the coordinates of the first device and the coordinates of the first object, a relative position relationship between the first device and the first object to obtain first position information; and to determine, based on the coordinates of the second device and the coordinates of the second object, a relative position relationship between the second device and the second object to obtain second position information.

[0033] In a possible implementation, the first category includes: device type and / or device name.

[0034] In a possible implementation, the first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

[0035] In addition, the technical effects of the communication system described in the second aspect can refer to the technical effects of the smart device control method described in the first aspect, and will not be repeated here.

[0036] In a third aspect, the present application provides a communication system, which includes an electronic device, a first device, a second device and a server; wherein the first device and the second device are both smart devices of the first category; the first device corresponds to the first position information, which is the relative position relationship between the first device and the first object, and the second device corresponds to the second position information, which is the relative position relationship between the second device and the second object. The electronic device is used to receive a first voice of a user, the first voice includes a first category, a first position information and a first operation; and send the first voice to the server. The server is used to receive the first voice, and determine the first device corresponding to the first position information according to the first voice; send a first indication to the first device, and the first indication is used to instruct the first device to perform the first operation. The first device is used to receive the first indication sent by the server, and perform the first operation according to the first indication. The electronic device is also used to receive a second voice of the user, the second voice includes the first category, the second position information and the first operation; and send the second voice to the server. The server is also used to receive the second voice, and determine the second device corresponding to the second position information according to the second voice; send a second indication to the second device, and the second indication is used to instruct the second device to perform the first operation. The second device is used to receive the second indication sent by the server, and perform the first operation according to the second indication.

[0037] The electronic device sending the voice to the server may include: the electronic device directly forwarding the received audio information to the server, or the electronic device processes the received voice, such as identifying it as text information, and then forwarding it to the server.

[0038] In a possible implementation, the electronic device is further used to receive a third voice of the user, the third voice includes the first category and the first operation, and does not include the first location information or the second location information; and sends the third voice to the server. The server is also used to receive the third voice, and send a third indication to the electronic device according to the third voice, the third indication is used to instruct the electronic device to obtain the first location information or the second location information. The electronic device is also used to receive the third indication, and play a prompt voice according to the third indication to prompt the user to input the first location information or the second location information; receive the fourth voice of the user, the fourth voice includes the first location information or the second location information; and send the fourth voice to the server. The server is also used to determine the first device corresponding to the first location information according to the fourth voice, and send the first indication to the first device; or, determine the second device corresponding to the second location information according to the fourth voice, and send the second indication to the second device.

[0039] In a possible implementation, the electronic device is further configured to receive first location information of a first device and second location information of a second device input by a user; or to instruct the user to capture a first image including the first device and the first object, and to capture a second image including the second device and the second object; and to send the first image and the second image to a server. The server is further configured to obtain the first location information and the second location information respectively based on the captured first image and the second image.

[0040] In one possible implementation, the server is specifically used to determine the coordinates of a first device and a first object contained in the first image based on the captured first image; and determine the coordinates of a second device and a second object contained in the second image based on the captured second image; determine the relative position relationship between the first device and the first object based on the coordinates of the first device and the coordinates of the first object to obtain first position information; and determine the relative position relationship between the second device and the second object based on the coordinates of the second device and the coordinates of the second object to obtain second position information.

[0041] In a possible implementation, the first category includes: device type and / or device name.

[0042] In a possible implementation, it is characterized in that the first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

[0043] In addition, the technical effects of the communication system described in the third aspect can refer to the technical effects of the smart device control method described in the first aspect, and will not be repeated here.

[0044] In a fourth aspect, the present application provides an electronic device, which includes: a receiving unit and a processing unit. The receiving unit is used to receive a first voice of a user, and the first voice includes a first category, a first position information, and a first operation. The first device corresponds to the first category, and the first device corresponds to the first position information, and the first position information is the relative position relationship between the first device and the first object. The processing unit is used to control the first device corresponding to the first position information to perform a first operation according to the first voice. The receiving unit is also used to receive a second voice of the user, and the second voice includes a first category, a second position information, and a first operation. The second device corresponds to the first category, and the second device corresponds to the second position information, and the second position information is the relative position relationship between the second device and the second object. The processing unit is also used to control the second device corresponding to the second position information to perform the first operation according to the second voice.

[0045] In a possible implementation, the receiving unit is further used to receive a third voice of the user, the third voice includes the first category and the first operation, and does not include the first location information or the second location information. The electronic device also includes a playing unit, which is used to play a prompt voice to prompt the user to input the first location information or the second location information. The receiving unit is also used to receive a fourth voice of the user, the fourth voice includes the first location information or the second location information. The processing unit is also used to control the first device corresponding to the first location information to perform the first operation, or control the second device corresponding to the second location information to perform the first operation according to the fourth voice.

[0046] In a possible implementation, the receiving unit is further used to receive the first position information of the first device and the second position information of the second device input by the user. Alternatively, the processing unit is further used to instruct the user to capture a first image including the first device and the first object, and to capture a second image including the second device and the second object; and to obtain the first position information and the second position information according to the captured first image and the captured second image, respectively.

[0047] In a possible implementation, the processing unit is specifically configured to determine the coordinates of the first device and the coordinates of the first object contained in the first image based on the first image captured; and determine the coordinates of the second device and the coordinates of the second object contained in the second image based on the second image captured. The relative position relationship between the first device and the first object is determined based on the coordinates of the first device and the coordinates of the first object to obtain first position information; and the relative position relationship between the second device and the second object is determined based on the coordinates of the second device and the coordinates of the second object to obtain second position information.

[0048] In a possible implementation, the first category includes: device type and / or device name.

[0049] In a possible implementation, the first object includes a first type of object and a second type of object, the first type of object is an object whose movement frequency is less than or equal to a first threshold, and the second type of object is an object whose movement frequency is greater than the first threshold; the first position information includes first positioning information and second positioning information, the first positioning information is the position information determined according to the first type of object, and the second positioning information is the position information determined according to the second type of object; the priority of the first positioning information is higher than the priority of the second positioning information. The second object includes the first type of object and the second type of object; the second position information includes third positioning information and fourth positioning information, the third positioning information is the position information determined according to the first type of object, and the fourth positioning information is the position information determined according to the second type of object; the priority of the third positioning information is higher than the priority of the fourth positioning information.

[0050] In a possible implementation, the receiving unit is further used to receive a fifth voice of the user, the fifth voice includes the first category and the first operation, and the fifth voice also includes the second positioning information or the fourth positioning information. The playing unit is further used to play a prompt voice to prompt the user to input the first positioning information or the third positioning information. The receiving unit is further used to receive a sixth voice of the user, the sixth voice includes the first positioning information or the third positioning information. The processing unit is further used to control the first device corresponding to the first positioning information to perform the first operation, or control the second device corresponding to the third positioning information to perform the first operation according to the sixth voice.

[0051] In a possible implementation, the processing unit is further configured to receive correction information of the user on the first location information and / or the second location information, and obtain the corrected first location information and / or the corrected second location information.

[0052] In a possible implementation, the first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

[0053] In a possible implementation, the receiving unit is further used to receive a first execution result of the first operation performed by the first device, and the playing unit is further used to voice broadcast the first execution result. The receiving unit is further used to receive a second execution result of the first operation performed by the second device, and the playing unit is further used to voice broadcast the second execution result.

[0054] In addition, the technical effects of the electronic device described in the fourth aspect can refer to the technical effects of the intelligent device control method described in the first aspect, and will not be repeated here.

[0055] In a fifth aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory is coupled to the processor, the memory is used to store a computer program code, the computer program code includes a computer instruction, when the processor reads the computer instruction from the memory, the electronic device performs the following operations: receiving a first voice of a user, the first voice includes a first category, a first position information and a first operation; wherein the first device corresponds to the first category, the first device corresponds to the first position information, and the first position information is the relative position relationship between the first device and the first object. According to the first voice, the first device corresponding to the first position information is controlled to perform a first operation. Receive a second voice of the user, the second voice includes a first category, a second position information and a first operation; wherein the second device corresponds to the first category, the second device corresponds to the second position information, and the second position information is the relative position relationship between the second device and the second object. According to the second voice, the second device corresponding to the second position information is controlled to perform the first operation.

[0056] In a possible implementation, when the processor reads the computer instructions from the memory, the electronic device is also caused to perform the following operations: receiving a third voice of the user, the third voice includes the first category and the first operation, and does not include the first location information or the second location information. Playing a prompt voice to prompt the user to enter the first location information or the second location information. Receive a fourth voice of the user, the fourth voice includes the first location information or the second location information. According to the fourth voice, controlling the first device corresponding to the first location information to perform the first operation, or controlling the second device corresponding to the second location information to perform the first operation.

[0057] In a possible implementation, before receiving the first voice of the user, when the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: receiving the first position information of the first device and the second position information of the second device input by the user. Alternatively, the user is instructed to take a first image including the first device and the first object, and to take a second image including the second device and the second object; and the first position information and the second position information are obtained according to the first image and the second image respectively.

[0058] In a possible implementation, the first position information and the second position information are obtained according to the first image and the second image, respectively, including: determining the coordinates of the first device and the coordinates of the first object contained in the first image according to the first image; and determining the coordinates of the second device and the coordinates of the second object contained in the second image according to the second image. According to the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object is determined to obtain the first position information; and according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

[0059] In a possible implementation, the first category includes: device type and / or device name.

[0060] In a possible implementation, the first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

[0061] In a possible implementation, the first object includes a first type of object and a second type of object, the first type of object is an object whose movement frequency is less than or equal to a first threshold, and the second type of object is an object whose movement frequency is greater than the first threshold; the first position information includes first positioning information and second positioning information, the first positioning information is the position information determined according to the first type of object, and the second positioning information is the position information determined according to the second type of object; the priority of the first positioning information is higher than the priority of the second positioning information. The second object includes the first type of object and the second type of object; the second position information includes third positioning information and fourth positioning information, the third positioning information is the position information determined according to the first type of object, and the fourth positioning information is the position information determined according to the second type of object; the priority of the third positioning information is higher than the priority of the fourth positioning information.

[0062] In a possible implementation, when the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: receiving a fifth voice of the user, the fifth voice includes the first category and the first operation, and the fifth voice also includes the second positioning information or the fourth positioning information. Playing a prompt voice to prompt the user to input the first positioning information or the third positioning information. Receive a sixth voice of the user, the sixth voice includes the first positioning information or the third positioning information. According to the sixth voice, controlling the first device corresponding to the first positioning information to perform the first operation, or controlling the second device corresponding to the third positioning information to perform the first operation.

[0063] In one possible implementation, after obtaining the first position information and the second position information based on the first image and the second image respectively, when the processor reads the computer instructions from the memory, it also enables the electronic device to perform the following operations: receiving the user's correction information on the first position information and / or the second position information, and obtaining the corrected first position information and / or the corrected second position information.

[0064] In a possible implementation, when the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: receiving a first execution result of the first operation performed by the first device, and announcing the first execution result by voice; receiving a second execution result of the first operation performed by the second device, and announcing the second execution result by voice.

[0065] In addition, the technical effects of the electronic device described in the fifth aspect can refer to the technical effects of the intelligent device control method described in the first aspect, and will not be repeated here.

[0066] In a sixth aspect, the present application provides a terminal device having the function of implementing the intelligent device control method as described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0067] In a seventh aspect, the present application provides a computer storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes an intelligent device control method as described in the first aspect and any possible implementation thereof.

[0068] In an eighth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the intelligent device control method as described in any one of the first aspect and any possible implementation methods thereof.

[0069] In a ninth aspect, a circuit system is provided, the circuit system including a processing circuit, the processing circuit being configured to execute the intelligent device control method as described in the first aspect and any possible implementation thereof.

[0070] In the tenth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the smart device control method as described in the above-mentioned first aspect and any possible implementation method thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A schematic diagram of an object recognition result provided in an embodiment of the present application;

[0072] Figure 2 A schematic diagram of a system architecture provided for an embodiment of the present application;

[0073] Figure 3 A schematic diagram of the structure of the electronic device provided in the embodiment of the present application Figure 1 ;

[0074] Figure 4 A schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0075] Figure 5 A schematic diagram of a flow chart of a smart device control method provided in an embodiment of the present application;

[0076] Figure 6 Interface diagram of an electronic device provided in an embodiment of the present application Figure 1 ;

[0077] Figure 7 Interface diagram of an electronic device provided in an embodiment of the present application Figure 2 ;

[0078] Figure 8 A schematic diagram of the image segmentation process provided in an embodiment of the present application;

[0079] Fig. 9 A schematic diagram of an application scenario of an electronic device determining the position of an object provided in an embodiment of the present application;

[0080] Fig.10 A schematic diagram of the position of an object provided in an embodiment of the present application;

[0081] Fig.11 Interface diagram of an electronic device provided in an embodiment of the present application Figure 3 ;

[0082] Fig.12 A schematic diagram of the probability of containing different objects in a room provided by an embodiment of the present application;

[0083] Fig.13 Interface diagram of an electronic device provided in an embodiment of the present application Figure 4 ;

[0084] Fig.14 Interface diagram of an electronic device provided in an embodiment of the present application Figure 5 ;

[0085] Fig.15 A schematic diagram of the structure of the electronic device provided in the embodiment of the present application Figure 2 ;

[0086] Fig.16 A schematic diagram of the structure of the electronic device provided in the embodiment of the present application Figure 3 . DETAILED DESCRIPTION

[0087] The following is a detailed description of the smart device control method, electronic device and system provided in the embodiments of the present application in conjunction with the accompanying drawings.

[0088] The terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0089] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0090] In the description of this application, unless otherwise specified, the meaning of "plurality" refers to two or more. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0091] First, to facilitate understanding, relevant terms and concepts that may be involved in the embodiments of the present application are introduced below.

[0092] (1) Smart Home

[0093] Smart home can be defined as a goal or a system. With the house as the platform, using advanced computer, network communication, automatic control and other technologies, smart home can organically combine various application subsystems related to home life. Through comprehensive management, it can improve the safety, convenience, comfort and artistry of the home, and realize an environmentally friendly and energy-saving living environment.

[0094] Simply put, a smart home is a system that connects various devices in the living environment (such as audio and video equipment, lighting systems, security systems, etc.) through the Internet of Things technology to provide multiple functions such as home appliance control, lighting control, and burglar alarm.

[0095] (2) Smart Home Devices

[0096] Smart home devices, as devices in the smart home system, can achieve information exchange and interconnection between devices compared to traditional home devices. Smart home devices can connect with other electronic devices, receive information sent by electronic devices, and execute corresponding command actions.

[0097] For example, suppose that the air conditioner is connected to a mobile phone as a smart home device, and the air conditioner can receive control commands sent by the user through the mobile phone. For example, if the air conditioner receives the "turn on" command input by the user through the mobile phone, it will automatically start. For another example, if the air conditioner receives the "adjust the temperature to 26°C" command input by the user through the mobile phone, it will automatically adjust the temperature to 26°C.

[0098] (3) Smart Home Applications

[0099] An application in an electronic device (such as a mobile phone, tablet, etc.) that can pair with and manage smart home devices. Generally, smart home applications are pre-configured in electronic devices to achieve visual management of smart home devices.

[0100] (4) Voice control

[0101] One of the ways of human-computer interaction is to receive voice commands expressed by users in natural language, use natural language recognition and processing technology to convert the audio information in the voice commands into text information, and obtain the user's intention and slot. Then, it is an interactive method to give corresponding feedback based on the user's intention and slot.

[0102] In smart home application scenarios, intents are used to express user expectations, such as turning on, off, parameter adjustment, mode setting, etc. Slots are used to represent key information corresponding to intents, such as device name, device type, etc. The device name can include, for example, the factory name of the device or a user-defined name. The device type can also be described as a device category, and a category in the device category is used to represent a consumer demand. The device type of smart home devices can be lights, air conditioners, TVs, etc.

[0103] In some embodiments, since users can easily obtain the device type of smart home devices, they generally do not name smart home devices or remember the device models of smart home devices. Therefore, the device type can be used to refer to the device name. For example, if the device type is a desk lamp, the device name is a desk lamp. If the device type is an air conditioner, the device name is an air conditioner. Accordingly, the device type can be distinguished directly based on the device name.

[0104] Optionally, voice control technology is combined with smart home to realize the operation of smart home devices through voice control. For example, suppose an air conditioner is a smart home device and is connected to a mobile phone. The mobile phone receives a voice command "turn on the air conditioner" from the user. The voice command is recognized; or the voice command is sent to a server, which recognizes the voice command. The intent is "turn on" and the slot is "air conditioner". After that, the mobile phone or server sends the operation to be performed in the voice command to the target device, such as to the air conditioner, so that the air conditioner performs the corresponding turn-on operation.

[0105] Furthermore, reply words corresponding to the operation results can be pre-configured in the electronic device to feedback the user's reception or execution results of the current operation. For example, "OK", "Opened", "Closed", "This operation cannot be performed at present, please try again later", etc. After the smart home device performs the corresponding operation, the result is fed back to the electronic device. The electronic device matches the corresponding reply words according to the execution result and converts the text information into voice. Through voice broadcast, the user can know the execution result of the current voice command. As in the above example, after the air conditioner is turned on, the reply of the execution completion is returned to the mobile phone. The mobile phone matches the corresponding reply words such as "Opened" according to the execution result, and voice broadcasts the reply words.

[0106] (5) RGB camera

[0107] RGB cameras are the most common cameras, which are placed in various electronic devices such as mobile phones, computers, cameras, etc. During the photo-taking process, light enters the camera through the lens, filters out infrared light, converts the optical signal into an electrical signal through the sensor, and then converts it into a digital signal through the circuit to generate RGB image information.

[0108] Optionally, the electronic device can capture a color image containing the target smart home device through an RGB camera.

[0109] (6) Pixels

[0110] Pixel is the basic unit of image display and is usually regarded as the smallest complete sampling unit of an image. Pixel values ​​are generally represented by a three-dimensional array, that is, the values ​​of two-dimensional pixels and RGB channels on a plane.

[0111] (7) Superpixel

[0112] Superpixels are small areas composed of a series of adjacent pixels with similar features such as color, brightness, texture, etc. Most of these small areas retain effective information for further image segmentation and generally do not destroy the boundary information of objects in the image.

[0113] (8) Depth Camera

[0114] Compared with traditional cameras, in addition to being able to obtain flat images, depth cameras can also obtain depth information of the photographed object, that is, three-dimensional position and size information. Common depth camera technologies include structured light technology, time of flight (TOF) technology, binocular stereo imaging technology, etc. As shown in Table 1 below, the relevant features of three depth camera technologies are introduced. Electronic devices combined with RGB camera technology, super pixel recognition technology and depth camera technology can more accurately segment images and identify objects and positional relationships in images.

[0115] Table 1

[0116]

[0117]

[0118] (9) Object Recognition Technology

[0119] The convolutional neural network (CNN) technology is used to train the neural network in electronic devices, so that the electronic devices can analyze objects in a picture or a video stream and mark them, such as dividing the objects in the image with boxes to achieve object recognition.

[0120] Among them, CNN technology is to imitate the characteristics of the human brain and construct a multi-layer neural network. The neural network includes an input layer, a hidden layer and an output layer. Among them, the input layer of the neural network can process multi-dimensional data. Taking image processing as an example, the input layer can receive the pixel value of the image. The hidden layer of the neural network includes one or more convolutional layers, one or more pooling layers, and one or more fully-connected layers. Usually, one or more convolutional layers are connected to a pooling layer. In some examples, the hidden layer of the neural network may not include a pooling layer. The output layer of the neural network has the same structure and working principle as the output of a traditional feedforward neural network. For example, for a neural network for object recognition, the output layer can be designed to output the center coordinates, size, and classification of the object.

[0121] The lower layers of the hidden layer in the neural network are used to identify primary image features. Several lower layer image features form the image features of the upper layer. Through the combination of multiple layers, the final object classification is achieved at the top layer. Finally, the output layer outputs the object recognition result. The specific CNN image recognition technology can be found in the prior art, and the embodiments of this application will not be elaborated on this.

[0122] For example, Figure 1 As shown in the figure, suppose an electronic device captures an image, and through CNN technology, the current image is input into the neural network to identify the objects contained in the image. The recognition result is output, such as Figure 1 In the example above, the output is an image containing a selection box that selects the recognized objects, such as cars, traffic lights, and signs.

[0123] (10) Computer Vision

[0124] Computer vision refers to the use of cameras and computers to replace the human eye to identify, track and measure target objects, and further perform image processing to obtain images or data that are more suitable for human eye observation or transmission to instrument detection.

[0125] (11) Scene semantic recognition technology

[0126] Scene semantic recognition technology uses computer vision technology to identify objects in images, object attributes (such as color, shape), attachment relationships between objects (such as support relationships, hanging relationships, etc.), and relative position relationships between objects (such as front, back, left, right, up, down, etc.), so that the computer can understand the scene in which the objects in the image are located.

[0127] Optionally, the electronic device uses a camera function to obtain an image containing the target smart home device, analyzes the objects contained in the current image through object recognition technology, and combines scene semantic recognition technology to obtain the scene and location information of the target smart home device. Figure 1 As shown, the electronic device recognizes that the objects in the current image are cars, traffic lights, and signs, and determines that the current scene is a street scene based on the types of objects.

[0128] Figure 2 A schematic diagram of a system architecture provided in an embodiment of the present application. Figure 2 As shown in FIG. 1 , the system architecture includes a first electronic device 100, one or more smart home devices 200 (e.g., Figure 2 Smart home device 1, smart home device 2 and smart home device 3), server 300.

[0129] Among them, the first electronic device 100 can be, for example, a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a netbook, a wearable electronic device, an artificial intelligence (artificial intelligence) terminal, and other electronic devices with a camera function. This application does not impose any special restrictions on the specific form of the electronic device.

[0130] In some embodiments, the first electronic device 100 is connected to one or more smart home devices 200 to obtain device information of the smart home devices 200. The first electronic device 100 provides a human-computer interaction interface, displays device information of the smart home devices 200 to the user through the human-computer interaction interface, and receives user editing of device information of the smart home devices 200.

[0131] Optionally, a first application is installed in the first electronic device 100. The first application is a smart home application that can connect to a smart home device and edit and manage the smart home device. Figure 1 As shown, the first electronic device 100 is connected to one or more smart home devices 200 through a first application.

[0132] In some embodiments, the location information of the target smart home device can be obtained by image analysis. The first electronic device 100 prompts the user to capture images containing smart home devices through the camera function through the human-computer interaction interface. Then, through the above-mentioned scene semantic recognition technology, the first electronic device 100 obtains the scene and location information of the smart home device. Based on this, the first electronic device 100 can obtain the location information corresponding to each smart home device in multiple smart home devices. Subsequently, when selecting and controlling smart home devices through the first electronic device 100, the corresponding target smart home device can be determined according to the location information, so as to achieve more accurate selection and control of the target smart home device.

[0133] The server 300 may be a device or network device with computing functions such as a cloud server or a network server. The server 300 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. The server 300 may also be described as a smart home cloud platform, which is used to manage smart home devices included in the smart home system, receive and process service requests from smart home devices 200, etc.

[0134] For example, the first electronic device 100 receives a command input by a user to start a smart home device, and forwards the command to the server 300 for processing. The server 300 analyzes the command, determines the target smart home device, and sends the command to the target smart home device to start the target smart home device.

[0135] For another example, after the first electronic device 100 captures an image containing a target smart home device, it uploads the image to the server 300, and the server 300 performs scene semantic analysis on the image to obtain the location information of the target smart home device. The server 300 sends the analysis result to the first electronic device 100, so that the first electronic device 100 obtains the location information of the target smart home device.

[0136] In some embodiments, if the system architecture does not include the server 300, the first electronic device 100 processes the received command and analyzes and obtains the location information of the target smart home device.

[0137] Optional, such as Figure 2As shown, the system architecture may also include a second electronic device 400. The second electronic device 400 is connected to one or more smart home devices 200 to control the smart home devices 200. The second electronic device 400 may also be described as a smart home voice control device. The first electronic device 100 synchronizes the device information of the smart home device 200 with the second electronic device 400 in advance, and subsequently, the second electronic device 400 directly receives user commands, selects and controls the smart home device 200.

[0138] In some embodiments, the first electronic device 100 may also be the second electronic device 400 , and the first electronic device 100 receives user commands and selects and controls the smart home device 200 .

[0139] The second electronic device 400 may include a dedicated device for controlling smart home devices, or a device including functions for controlling smart home devices, such as a smart speaker, a smart watch, etc. The present application does not impose any special restrictions on the specific form of the smart home voice control device.

[0140] Figure 3 A schematic structural diagram of a first electronic device 100 provided in an embodiment of the present application.

[0141] The first electronic 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, a radio frequency module 150, a communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0142] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0143] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0144] The controller may be the nerve center and command center of the first electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0145] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0146] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0147] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the first electronic device 100.

[0148] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0149] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the communication module 160 via the PCM interface to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0150] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the communication module 160. For example, the processor 110 communicates with the Bluetooth module in the communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0151] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the first electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the first electronic device 100.

[0152] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0153] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transfer data between the first electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0154] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0155] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the first electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0156] The power management module 141 is used to connect 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 external memory, the display screen 194, the camera 193, and the communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0157] The wireless communication function of the first electronic device 100 can be implemented through the antenna 1, the antenna 2, the radio frequency module 150, the communication module 160, the modem processor and the baseband processor.

[0158] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0159] The RF module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the first electronic device 100. The RF module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The RF module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The RF module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the RF module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the RF module 150 can be set in the same device as at least some of the modules of the processor 110.

[0160] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the RF module 150 or other functional modules.

[0161] The communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the first electronic device 100. The communication module 160 can be one or more devices integrating at least one communication processing module. The communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0162] In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the radio frequency module 150, and the antenna 2 is coupled to the communication module 160, so that the first electronic 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), wideband 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 a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0163] The first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0164] The display screen 194 is used to display images, videos, etc. The 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0165] The first electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0166] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and 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 ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0167] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the first electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0168] In some embodiments, the first electronic device 100 uses the camera 193 to collect an image containing the target smart home device. Subsequently, the location information of the target smart home device is obtained through image recognition technology. Then, the first electronic device 100 can determine the target smart home device among multiple smart home devices of the same device type according to the location information.

[0169] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the first electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0170] The video codec is used to compress or decompress digital video. The first electronic device 100 may support one or more video codecs. In this way, the first electronic device 100 can play or record videos in multiple coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0171] The NPU is a neural network (NN) computing processor that quickly processes input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn. The NPU can realize applications such as intelligent cognition of the first electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0172] 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 first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0173] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0174] The first electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.

[0175] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0176] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The first electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0177] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the first electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0178] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C. The first electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the first electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the first electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0179] In some embodiments, the first electronic device 100 receives the user's voice command using the microphone 170C and controls the target smart home device according to the voice command.

[0180] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0181] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The first electronic device 100 may receive key input and generate key signal input related to user settings and function control of the first electronic device 100.

[0182] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0183] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0184] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the first electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The first electronic device 100 can 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 cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can 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 can also be compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the first electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100.

[0185] The software system of the first electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to exemplify the software structure of the first electronic device 100.

[0186] Figure 4 It is a software structure block diagram of the first electronic device 100 according to an embodiment of the present application.

[0187] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0188] The application layer can include a range of applications.

[0189] like Figure 4 As shown, the application programs may include APPs (applications) such as calls, memos, browsers, contacts, cameras, gallery, calendars, maps, Bluetooth, music, videos, short messages, etc. These applications may be pre-installed when the first electronic device 100 leaves the factory, or may be downloaded and installed from an application market when the user uses the first electronic device 100, and the present application embodiment does not impose any restrictions on this.

[0190] In some embodiments, the application includes a first application. After the first electronic device 100 is connected to the smart home device, the first application is used to control the startup, shutdown or function adjustment of the smart home device. In addition, the first electronic device 100 can edit specific attributes of the smart home device through the first application. The specific attributes may include, for example, the device name of the smart home device, the room where the device is located, the location information of the device, etc.

[0191] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0192] like Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.

[0193] Among them, the window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. 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 short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0194] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0195] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0196] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0197] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0198] A 2D graphics engine is a drawing engine for 2D drawings.

[0199] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0200] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0201] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0202] The kernel layer is a layer between hardware and software. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, etc., and the present application embodiment does not impose any restrictions on this.

[0203] The technical solutions provided in the following embodiments can be applied to Figure 3 A first electronic device of the structure shown, and / or Figure 4 A first electronic device of the structure.

[0204] The following uses a mobile phone as an example of the first electronic device 100 to specifically introduce the smart device control method provided in the embodiment of the present application in conjunction with the accompanying drawings.

[0205] In the prior art, after a mobile phone receives a control command sent by a user, it will determine the target smart home device based on the device category, i.e., the device type, contained in the control command. For example, if the control command is "turn on the light", the mobile phone will recognize that the target smart home device is a light. However, there may be multiple smart home devices of the same device type in a home environment. After receiving a control command from a user, the mobile phone cannot determine which smart home device to control based on the device type in the control command.

[0206] For example, suppose that there are 5 lamps in the home environment, that is, the device types of these 5 smart home devices are the same, all of which are lamps. If the mobile phone receives the control command "turn on the light", it cannot directly determine which specific lamp the user wants to turn on according to the control command. For the situation where multiple devices are of the same type, at present, the processing scheme configured for the mobile phone is generally to use the brand and device name of the smart home device to distinguish the smart home devices of the same device type, and the mobile phone broadcasts the brand and device name, and determines the target smart home device according to the user's re-selection. This requires the user to remember the brand and device name of the smart home device and select and control it, which is difficult and stressful for the user. In addition, if there are a large number of smart home devices of the same device type, the time for re-selection is long and the efficiency is low. Alternatively, the mobile phone performs the same operation on all smart home devices of the same device type according to the control command, and the execution result does not meet the user's expectations, reducing user satisfaction. It can be seen that in the prior art, it is impossible to achieve more convenient and accurate control of the target smart home device that the user expects to control.

[0207] Generally, when a user wants to control a smart home device among multiple smart home devices of the same device type, he or she usually tends to use the location of the smart home device to describe the target smart home device. For example, users tend to distinguish smart home devices by the location relationship between the smart home device and other objects, such as "the lamp on the table", "the lamp on the left of the computer", "the lamp on the wall", etc. However, in the prior art, electronic devices cannot recognize the location relationship between the smart home device and other objects contained in the voice command.

[0208] Based on this, the present application proposes a smart device control method, which combines voice control technology to convert voice commands into text information, obtain user intent and slots, and divide the slots into a first slot and a second slot. The first slot corresponds to the information corresponding to the existing slot, such as device name, device type, etc. The second slot is used to indicate the positional relationship between the smart home device and other objects.

[0209] For example, if there are multiple smart home devices of the same device type in a home environment, and the mobile phone receives a user voice command, the positional relationship between the target smart home device and other objects contained in the second slot is obtained according to the voice command, and the multiple smart home devices of the same device type are distinguished according to the positional relationship to determine the target smart home device. For example, if there are two table lamps in a home environment, one of which is located on the cabinet to the left of the bedside, and the other is located on the cabinet to the right of the bedside, the second slot information in the voice command corresponding to the two table lamps is different.

[0210] The smart device control method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0211] Figure 5 FIG. 1 is a flow chart of a smart device control method provided in an embodiment of the present application, see Figure 5 , the method may include S501-S504:

[0212] S501. Connect a mobile phone to smart home devices.

[0213] There are one or more smart home devices in the smart home system. There are multiple smart home devices of the same device type. The mobile phone connects to multiple smart home devices through the smart home application. After the connection is successful, the smart home device is set through the smart home application. The connection method can be Bluetooth connection, Wi-Fi wireless connection, etc., which is not specifically limited in the embodiments of the present application.

[0214] For example, Figure 6 The main interface 601 of the mobile phone shown in (a) of the figure shows icons of some applications included in the mobile phone, for example, icon 61 of the smart life application. The mobile phone detects that the user clicks on icon 61 and displays the following: Figure 6 Interface 602 is shown in (b) of FIG. Interface 602 is the main page of the smart life application. The mobile phone implements the user's need to add or delete smart home devices on interface 602. The mobile phone detects that the user clicks on the add control 62 and displays the following Figure 6 Interface 603 shown in (c) of FIG. Interface 603 displays a menu bar 63. When the mobile phone detects that the user clicks the option of adding a device in the menu bar 63, it automatically searches for smart home devices. In addition, the mobile phone displays the following Figure 6 Interface 604 is shown in (d) of FIG. 1 . Interface 604 is used to display the scanning progress of the smart home application to establish a connection between the mobile phone and the smart home device. When the scanning progress reaches 100%, it means that the connection between the mobile phone and the smart home device is successfully established. At this time, the mobile phone displays the following Figure 6 The interface 605 shown in (e) is used to prompt the user that the current smart home device has been successfully connected. Figure 6 In (f) of FIG. 6 , the interface 606 shows the smart home devices that have been added to the current smart home system. As shown in the interface 606 , the smart home device included in the current smart home system is a desk lamp.

[0215] S502: The mobile phone obtains information about smart home devices.

[0216] The information of smart home devices includes the device name, device location information, device room, device type, etc. The device location information is used to indicate the relative position relationship between the smart home device and other objects. After the mobile phone establishes a connection with the smart home device, the mobile phone can obtain the basic information of the smart home device, such as the device type, device model, etc. In addition, the mobile phone can edit the device information of the smart home device.

[0217] For example, after the mobile phone is connected to the smart home device, click Figure 6 Option 64 in interface 606 shown in (f) of FIG. 1 can display the information of the connected smart home devices and can edit the information of the smart home devices. If the currently connected smart home device is a desk lamp, after clicking option 64 in interface 606, the following information is displayed: Figure 7 In the interface 701 shown in (a), the device information of the smart home device, such as the device name, device room and device location of the smart home device, is displayed in the interface 701. The mobile phone can receive the user's editing of the device information of the smart home device in the interface 701.

[0218] Optionally, the device location information of the smart home device is determined by scene semantic recognition technology. The mobile phone can prompt the user to collect images containing smart home devices through human-computer interaction, analyze the image information, and then obtain the device location information. Alternatively, the mobile phone forwards the collected image to a server, such as a smart home cloud platform. The server performs image analysis to obtain the device location information. The mobile phone receives the device location information of the smart home device sent by the server. For example, there are a first device and a second device of the same device type in the home system, and the mobile phone instructs the user to shoot a first image containing the first device and the first object, and shoot a second image containing the second device and the second object. The first location information and the second location information are obtained according to the first image and the second image respectively. Among them, the first object is an object used to locate the first device (such as furniture, etc.). Usually, the distance between the first object and the first device is less than the threshold A, that is, the first object is adjacent to the first device. The second object is an object used to locate the second device (such as furniture, etc.). Usually, the distance between the second object and the second device is less than the threshold A, that is, the second object is adjacent to the second device. Threshold A is a preset distance threshold. Then, the device location can be used to distinguish multiple smart home devices of the same device type, and the target smart home device can be determined among multiple smart home devices of the same device type.

[0219] For example, Figure 7 In the interface 701 shown in (a) of FIG. 1 , after the mobile phone detects that the user clicks the icon 71 corresponding to the device position on the interface 701, the following is displayed: Figure 7Interface 702 shown in (b) of the figure is a shooting interface, which is used to prompt the user to shoot the scene where the smart home device currently being edited is located. Among them, the shooting frame must include the smart home device being edited in the framing range, and include other objects used for positioning, wherein the other objects used for positioning are adjacent objects, such as objects whose distance from the smart home device being edited is less than a preset threshold. As shown in interface 702, the smart home device being edited is a desk lamp 72, and the current shooting interface includes the desk lamp 72 and objects used for positioning near the desk lamp 72, such as a desk 73, a computer 74, and a photo frame 75. After the mobile phone detects that the user clicks the photo icon 76, it determines that the user has completed the shooting of the scene where the smart home device is located. Combined with the images captured by the RGB camera and the depth camera, the outline of the object is obtained according to the superpixel, and the three-dimensional spatial coordinates of all pixels belonging to the object in the outline are obtained to achieve accurate image segmentation. According to the image segmentation results and the coordinates of the objects in the image, the scene semantic recognition technology is used to determine the positional relationship between the target smart home device and other objects, and the device position of the target smart home device is obtained.

[0220] The mobile phone determines the device location of the smart home device through the following steps 1 to 3.

[0221] Step 1: The mobile phone performs image segmentation on the collected image to determine the objects contained in the image.

[0222] For example, Figure 8 As shown in (a) of FIG. 8 , the RGB image 801 obtained by the mobile phone through the RGB camera is a general color image containing the target object. Figure 8 As shown in (b), the depth image 802 obtained by the mobile phone through the depth camera. In the depth image 802, different grayscales are used to represent different depth information of the object. For example, if the depths of the sofa 81 and the bookshelf 82 are different, the grayscales displayed in the depth image 802 are different. The depth image taken by the depth camera can be used to know the depth of each pixel in the image, and then the object contour segmentation of the superpixel can be obtained by combining with the RGB image. Figure 8 As shown in (c), the mobile phone obtains a super-pixel image 803 based on the RGB image 801 and the depth image 802. In the super-pixel image 803, pixels that are adjacent in position and have similar features such as color, brightness, and texture form different small areas, and then the outline of the object is obtained. For example, the two pillows 83 and 84 of different colors on the sofa are two different small areas. For another example, due to the shooting angle, the sofa is divided into area 85 and area 86 in the super-pixel image 803. Afterwards, the mobile phone obtains the following image based on the RGB image 801, the depth image 802, and the super-pixel image 803. Figure 8The segmentation map 804 shown in (d) in the figure includes accurate segmentation information of objects in the image, such as sofa 87, floor 88, wall 89, photo 810, bookshelf 811, pillow 812, and pillow 813 in the segmentation map 804.

[0223] It is understandable that the segmentation map 804 should contain accurate segmentation information of the object. Figure 8 The dotted box in (d) is only used to schematically indicate the position of the object and is not used to represent the outline of the object.

[0224] Step 2: The mobile phone determines the positional relationship of objects in the image based on the image segmentation results.

[0225] Specifically, the positional relationship of the objects may include, for example, a support relationship. The support relationship may include, for example, an up-and-down support relationship and a front-and-back support relationship. Figure 8 In the segmented diagram 804 shown in (d), there is a sofa 87 on the floor 88, so the floor 88 and the sofa 87 are in a top-bottom support relationship. There is a pillow 812 on the sofa 87, so the sofa 87 and the pillow 812 are in a top-bottom support relationship. There is a photo 810 hanging on the wall 89, so the wall 89 and the photo 810 are in a front-back support relationship.

[0226] Among them, the support relationship should comply with the following rules ①-rule ④.

[0227] ① The coordinates of the lowest point of the support are less than or equal to the coordinates of the highest point of the supported object.

[0228] ② The support and the supported object are adjacent, that is, there is no other object between the support and the supported object. If the distance between the lowest point of the supported object and the highest point of the support is equal to 0, the support and the supported object are in a vertical support relationship. If there is no distance between the support and the supported object in the depth direction, the support and the supported object are in a front-to-back support relationship.

[0229] ③The floor is the lowest object, that is, the floor can only serve as a support, and there is no upper and lower support relationship below the floor.

[0230] ④ Prior knowledge of other support relationships. For example, a window on a wall belongs to the front and back support relationship.

[0231] For example, Fig. 9 As shown, the three-dimensional coordinates of the image are defined in the x, y, and z axes. The x-axis and z-axis represent two axes parallel to the ground, and the y-axis represents an axis perpendicular to the ground and pointing to the ceiling. Then, Fig. 9In the above example, the x coordinate is used to represent the length of the object in the left-right direction, the y coordinate is used to represent the height of the object, and the z coordinate is used to represent the depth of the object in the front-back direction. Assume that there are objects i and j in the image. The positional relationship between objects i and j can be divided into up or down, front or back, left or right, and the support relationship between objects i and j does not violate the above rules ①-④. Among them, the three-dimensional space coordinates of object i are x i min , x i max ,y i min ,y i max , z i min , z i max , the three-dimensional space coordinates of object j are x j min , x j max ,y j min ,y j max , z j min , z j max Object i and object j are three-dimensional figures with projections in space. The overlapping part of the projections of object i and object j on the x-axis is denoted by I x i,j Indicates that the overlapped part of the projections of object i and object j on the y-axis is represented by I y i,j Indicates that the overlapped part of the projections of object i and object j on the z-axis is represented by I z i,j express.

[0232] In one possible implementation, Fig.10 As shown, a coordinate diagram of the possible positional relationship between object i and object j is shown. Among them, the circle is used to represent object i, and the rectangle is used to represent object j. It can be understood that the positional relationship between two objects is spatially relative. Therefore, the positional relationship of the objects is described exemplarily below by taking one of the objects i as an example, and the positional relationship of the other object j is no longer specifically described. The possible relative positional relationships between object i and object j are object i above object j (that is, object j is below object i), object i behind object j (that is, object j is in front of object i), and object i to the right of object j (that is, object j is to the left of object i).

[0233] For example, Fig.10As shown in (a), the coordinate of the lowest point of object i on the y-axis is greater than or equal to the coordinate of the highest point of object j on the y-axis, that is, y i min ≥y j max Or, if Fig.10 As shown in (b), the coordinate of the center point of object i on the y-axis is greater than or equal to the coordinate of the highest point of object j on the y-axis, that is, (y i min +y i max ) / 2≥y j max . And, if Fig.10 As shown in (c) in the figure, on the plane formed by the x-axis and the z-axis, the projection of object i and the projection of object j overlap, that is, I x i,j with I z i,j are not empty. Then, according to Fig.10 (a) and Fig.10 The positional relationship shown in (c) in FIG. 1 , or, according to Fig.10 (b) and Fig.10 From the positional relationship shown in (c), it can be seen that object i is above object j.

[0234] like Fig.10 As shown in (d) in the figure, the coordinate of the front point of object i on the z-axis is greater than or equal to the coordinate of the rear point of object j on the z-axis, that is, z i min ≥z j max Or, if Fig.10 As shown in (e) in the figure, the coordinate of the center point of object i on the z-axis is greater than or equal to the coordinate of the last point of object j on the z-axis, that is, (z i min +z i max ) / 2≥z j max . And, if Fig.10 As shown in (f) in the figure, on the plane formed by the x-axis and the y-axis, the projection of object i and the projection of object j overlap, that is, I x i,j with I y i,j are not empty. Then, according to Fig.10 (d) and Fig.10 The positional relationship shown in (f) in FIG. 1 , or, according to Fig.10 (e) and Fig.10 From the positional relationship shown in (f) in the figure, it can be seen that object i is behind object j.

[0235] like Fig.10 As shown in (h) in the figure, the coordinate of the leftmost point of object i on the x-axis is greater than or equal to the coordinate of the rightmost point of object j on the x-axis, that is, x i min ≥x j max Or, if Fig.10 As shown in (k) in the figure, the coordinate of the center point of object i on the x-axis is greater than or equal to the coordinate of the rightmost point of object j on the x-axis, that is, (x i min +x i max ) / 2≥x j max . And, if Fig.10 As shown in (l) in the figure, on the plane formed by the y-axis and the z-axis, the projection of object i and the projection of object j overlap, that is, I y i,j with I z i,j are not empty. Then, according to Fig.10 (h) and Fig.10 The positional relationship shown in (i) in Fig.10 (k) and Fig.10 From the positional relationship shown in (l) in the figure, it can be seen that object i is to the right of object j.

[0236] It should be noted that Fig.10 It is only used to indicate the relative position relationship between object i and object j, and is not limited to the size and specific shape of object i and object j.

[0237] That is to say, after the mobile phone determines the image segmentation result, it can determine the coordinates of the object outline in three-dimensional space and the edge coordinates of the object. That is, the three-dimensional space coordinates x of each object can be determined. min , x max ,y min ,y max , z min , z max Afterwards, the positional relationship of the objects in the image is determined according to the above judgment rules.

[0238] Step three: The mobile phone determines the position of the target object based on the positional relationship of the objects in the image.

[0239] Specifically, the mobile phone determines the location information of the target object based on the position relationship. The mobile phone determines the coordinates of the first device and the coordinates of the first object contained in the first image based on the first image captured; and determines the coordinates of the second device and the coordinates of the second object contained in the second image based on the second image captured. Afterwards, the mobile phone determines the relative position relationship between the first device and the first object based on the coordinates of the first device and the coordinates of the first object, and obtains the first position information; and determines the relative position relationship between the second device and the second object based on the coordinates of the second device and the coordinates of the second object, and obtains the second position information.

[0240] For example, Fig. 9 As shown, assuming that the target object is a sofa 91, then according to Fig. 9 After determining the positional relationship, the three-dimensional spatial coordinates of each object in the image are obtained, and the position information of the sofa 91 includes that the sofa 91 is above the floor 92, the sofa 91 is on the right side of the wall 93, and the sofa 91 is in front of the bookshelf 94.

[0241] For example, Figure 7 In the interface 702 shown in (b) of FIG. 1 , in the image captured by the mobile phone, the device location information of the smart home device is obtained according to the method of steps 1 to 3 above. The smart home device desk lamp 72 is located above the desk 73, the desk lamp 72 is located on the right side of the computer 74, and the desk lamp 72 is located on the right side of the photo frame 75. After the mobile phone determines the device location of the smart home device, it is displayed as follows Fig.11 In the interface 1101 shown in (a), the device location of the smart home device being edited is displayed in the interface 1101. When the mobile phone detects that the user clicks the save icon 111, it means that the user has confirmed that the location information of the current smart home device is correct and confirms to save.

[0242] In this way, by using scene semantic recognition technology, the mobile phone can quickly obtain the device location of smart home devices by taking pictures, reducing the time for users to input the device location, facilitating user operation and improving efficiency.

[0243] In some embodiments, the device room of the smart home device can also be determined through the images taken by the mobile phone, thereby more accurately determining the target smart home device.

[0244] For example, assume that the target object is a sofa, that is, the smart home device being edited is a sofa. Figure 8 The segmentation map 804 shown in (d) has identified the objects contained in the current image, such as the sofa 87, the floor 88, the wall 89, the pillow 812, the pillow 813 and the bookshelf 810.

[0245] Afterwards, the mobile phone determines the scene information of the target object based on the identified object information. In the smart home system, the scene information of the target object is the room information. Therefore, determining the scene information of the target object is to determine the room type of the target object. For example, the scene information of the target object is a living room or a bedroom.

[0246] In a possible implementation, a priori knowledge base is preconfigured in a mobile phone, and the mobile phone determines the scene information of the target object based on the prior knowledge in the priori knowledge base. The priori knowledge base contains prior knowledge of the correlation between object types and room categories. For example, different rooms have different possibilities of containing various objects, and images of different rooms have different image features (such as light, texture, etc.), so a priori knowledge base can be constructed according to the indoor environment.

[0247] For example, Fig.12 As shown in the figure, a possible prior knowledge base is shown. It includes the probability of different room categories containing different objects. For example, there is a high probability of a cabinet in the kitchen, a high probability of a bed in the bedroom, and a low probability of a bed in the kitchen. The relevant prior knowledge is stored in the prior knowledge base of the mobile phone. After the mobile phone recognizes the object contained in the current image, it can directly match the room category where the current target object is located based on the prior knowledge. For example, Figure 8 The interface 804 shown in (d) in the figure is based on the sofa 87, floor 88, wall 89, pillow 812, pillow 813 and bookshelf 810 included in the current image. Fig.12 Based on the prior knowledge shown, the mobile phone determines that the room category where the current target object sofa 87 is located is a living room. Figure 7 In the interface 702 shown in (b), the objects contained in the scene currently being photographed include a desk lamp 72, a desk 73, a computer 74, and a photo frame 75. Fig.12 Based on the prior knowledge shown, the mobile phone determines that the room category of the smart home device desk lamp 72 currently being edited is a study room. Fig.11 In the interface 1101 shown in (a), after the mobile phone detects that the user clicks the save icon 111, the following is displayed: Fig.11 In the interface 1102 shown in (b), the recognition result of the equipment room, such as a study, obtained based on the captured image is automatically displayed at the equipment room 112.

[0248] Alternatively, after obtaining the location information of the smart home device, the mobile phone does not directly obtain the device room of the smart home device, but needs to set the device room separately. Fig.11 In the interface 1101 shown in (a), after the mobile phone detects that the user clicks the save icon 1101, the following is displayed: Figure 7In the interface 701 shown in (a), the device room is to be confirmed. After the mobile phone detects that the user clicks the icon 77 corresponding to the device room on the interface 701, it can prompt the user to take an image containing the smart home device again to confirm the device room in the above manner. For example, in some scenarios, the device room cannot be analyzed based on the image obtained from the device location, and the user needs to take another image containing more objects adjacent to the smart home device to determine the device room.

[0249] It should be noted that the embodiment of the present application does not specifically limit the order of confirming the device room and the device location. The mobile phone captures an image once, and determines the device room and the device location based on the captured image. Alternatively, the mobile phone can capture an image for the first time to confirm the device room, and capture an image for the second time to determine the device location. Alternatively, the mobile phone can capture an image for the first time to determine the device location, and capture an image for the second time to determine the device room.

[0250] In some embodiments, the mobile phone receives the correction information of the user on the first location information and / or the second location information, and obtains the corrected first location information and / or the corrected second location information. For example, if the mobile phone detects that the user edits the device location, the location information of the smart home device is corrected according to the user setting. In this way, a channel is provided for the user to correct the device location according to the actual environment to avoid errors caused by image recognition.

[0251] For example, Fig.13 In the interface 1301 shown in (a), if a user clicks on the edit icon 131 on the interface 1301, the following is displayed: Fig.13 In the interface 1302 shown in (b) of FIG. 1302, the device location information corresponding to the edit icon 131 can be edited. For example, Figure 7 The captured image is displayed in the interface 702 shown in (b), wherein the smart home device lamp 72 is located on the right side of the computer 74, but Fig.13 In the interface 1301 shown in (a) of FIG. 1 , the device position is displayed as a desk lamp located on the left side of the computer. If an abnormality occurs, the user can click the edit icon 131 to correct the abnormal information. Fig.13 In the interface 1302 shown in (b) of FIG. 1302, the mobile phone receives the user's correction of the device position in the interface 1302. When the mobile phone detects that the user clicks the confirmation icon 132, it means that the user has completed the correction of the current device position, and the display is as follows: Fig.13 The interface 1303 shown in (c) in FIG. 1303. When the mobile phone detects that the user clicks the save icon 133 in the interface 1303, it means that the user has confirmed that the current device location is correct and the save operation can be performed.

[0252] Similarly, the room category determined based on the image may be inaccurate, so the mobile phone can Fig.11 The interface 1102 shown in (b) receives the user's modification of the equipment room and displays the modified equipment room.

[0253] Optionally, the mobile phone directly receives the device location input by the user. For example, Fig.14 In the interface 1401 shown in (a), the mobile phone detects that the user clicks the icon 141 corresponding to the device position on the interface 1401, and then displays the following Fig.14 In the interface 1402 shown in (b), the mobile phone receives the device location input by the user through the keyboard 142 in the interface 1402. Further, the mobile phone detects that the user clicks the add device location control 143, and can add the location description of the smart home device being edited in the device location. For example, the device location is determined by the position relationship between more positioning objects and the smart home device being edited. After the editing is completed, it is displayed as follows Fig.11 The interface 1101 shown in (a) in FIG. 1 shows the device location information input by the user. If the subsequent user's control command includes any of the device locations, the smart home device can be controlled.

[0254] Similarly, the mobile phone can directly receive the device room input by the user. Fig.14 In the interface 1401 shown in (a) of FIG. 1401, the mobile phone detects that the user clicks the icon 144 corresponding to the device room on the interface 1401, and displays the following Fig.14 In the interface 1403 shown in (c), the mobile phone receives the device room input by the user through the keyboard 145 on the interface 1403.

[0255] It is understandable that the user can edit the device location and device room in various ways including handwriting input, voice input, etc.

[0256] In some embodiments, the mobile phone defines the device type as the device name. Assuming that the smart home device currently being edited is a desk lamp, Fig.14 As shown in (a) of FIG. 1401 , the interface 1401 shows that the device name is a desk lamp. In addition, the mobile phone can also receive the user's modification of the device name, and the user can customize the device name. Fig.14 In the interface 1401 shown in (a), the mobile phone detects that the user clicks the icon 146 corresponding to the device name on the interface 1401, and then the device name can be edited. Similarly, the editing method can include keyboard input, handwriting input, voice input and other methods.

[0257] Optionally, the mobile phone can automatically determine the device room corresponding to the smart home device based on the type of objects in the environment where the smart home device is located. For example, if the mobile phone determines that there is a bed in the environment where the smart home device is located, it will automatically correspond to the device room as a bedroom. For another example, if the mobile phone determines that there is a bathtub in the environment where the smart home device is located, it will automatically correspond to the device room as a bathroom, etc. Figure 7 In the interface 701 shown in (a), the device room is displayed as a default room, which means the device room corresponding to the smart home device in the prior knowledge. Alternatively, the default room can also be a default room set by the user. If the device room displayed in the interface 701 does not match the device room where the smart home device is located, the user can edit and correct the device room. Alternatively, the mobile phone displays a blank in the device room position, and the user enters it by himself.

[0258] Optionally, the mobile phone can preconfigure a priority order for the device location of the smart home device. If the device location of the target smart home device contains multiple device location descriptions, the mobile phone can display the sorted device locations in priority order according to preset rules. Among them, the preset rules may include, for example, determining the priority based on whether the positioning object in the device location description is easy to move. For example, based on the relationship between the movement frequency of the object and the first threshold, determine whether the object is easy to move. Among them, the first threshold is the movement frequency threshold, which can be an empirical value. For example, a desk generally does not move, and its movement frequency is less than the first threshold, which belongs to the first type of object. The laptop on the desk is often moved, and its movement frequency is greater than the first threshold, which belongs to the second type of object. Exemplarily, the priority of positioning objects that are not easy to move can be set higher, and the priority of positioning objects that are easy to move can be set lower, so as to avoid the corresponding device position being invalid after the positioning object moves.

[0259] That is to say, the first object used to locate the first device includes a first type of object and a second type of object, the first type of object is an object whose movement frequency is less than or equal to the first threshold, and the second type of object is an object whose movement frequency is greater than the first threshold. The first position information includes first positioning information and second positioning information, the first positioning information is the position information determined according to the first type of object, and the second positioning information is the position information determined according to the second type of object. The priority of the first positioning information is higher than the priority of the second positioning information. The second object used to locate the second device also includes the first type of object and the second type of object. The second position information includes third positioning information and fourth positioning information, the third positioning information is the position information determined according to the first type of object, and the fourth positioning information is the position information determined according to the second type of object. The priority of the third positioning information is higher than the priority of the fourth positioning information.

[0260] For example, Fig.11In the interface 1101 shown in (a), three device location description information are displayed in the interface 1101. The located objects are a desk, a computer, and a photo frame. Among them, the user generally does not move the desk, so the device location description corresponding to the desk can be defined as having the highest priority and displayed at the top of the device location. Secondly, both the computer and the photo frame are at risk of being moved, and the photo frame is the easiest to be moved. Therefore, the device location description corresponding to the photo frame has the lowest priority and is displayed at the bottom of the device location.

[0261] Later, when the mobile phone receives the user's control command, it can also determine the target smart home device according to the device location priority. The specific implementation method is described below.

[0262] Optionally, multiple device locations all correspond to the same target smart home device, which can increase the number of ways for users to control the target smart home device, but at the same time increases the possibility of misoperation. Therefore, only one or a limited number of device location information corresponding to the positioning object that is not easy to move can be retained, thereby reducing control anomalies caused by the movement of the positioning object.

[0263] In this way, the information of one or more smart home devices obtained by the above method includes the device location information, and then in the subsequent process of controlling the target smart home device, the target smart home device can be accurately determined according to the device location information, avoiding abnormal control of smart home devices of the same device type.

[0264] S503: Receive a user voice command, and determine a target smart home device according to the user voice command.

[0265] Specifically, the mobile phone receives the user's voice command, parses the voice command, and obtains the user's intention and slot. Alternatively, the mobile phone is connected to the target smart home device, and after obtaining the device information of the target smart home device, the information of the target smart home device is synchronized to the smart home voice control device. Subsequently, the smart home voice control device receives the user's voice command, parses the voice command, and obtains the user's intention and slot. Alternatively, after the mobile phone or the smart home voice control device receives the user's voice command, the voice command is uploaded to the smart home cloud platform, and the smart home cloud platform parses the voice command, obtains the user's intention and slot, and sends the parsing result to the mobile phone or the smart home voice control device. Among them, the slot includes a first slot and a second slot. The first slot includes the device name, device type, etc. The second slot includes the device location.

[0266] The following is an explanation using a mobile phone processing voice commands as an example.

[0267] Optionally, the voice command includes the device location of the target smart home device, and the mobile phone converts the audio information in the voice command into text information, and then obtains the device location of the target smart home device contained in the second slot. In this way, even if there are multiple smart home devices of the same device type, a unique target smart home device can be matched according to the device location to achieve precise control.

[0268] Assume that the smart home system includes a first device and a second device, and both the first device and the second device correspond to a first category. The first category includes, for example, a device type and / or a device name. That is to say, the first device and the second device are smart home devices of the same type. The device positions of the first device and the second device are different. The first device corresponds to first location information, which is the relative position relationship between the first device and the first object. The second device corresponds to second location information, which is the relative position relationship between the second device and the second object. The mobile phone receives a first voice from the user, and the first voice includes a first category, a first location information, and a first operation. The mobile phone controls the first device corresponding to the first location information to perform a first operation according to the first voice. The mobile phone receives a second voice from the user, and the second voice includes a first category, a second location information, and a first operation. The mobile phone controls the second device corresponding to the second location information to perform the first operation according to the second voice.

[0269] Exemplarily, the first device and the second device are both desk lamps, that is, the first category is desk lamp. The first device is located above the desk, that is, the first location information is above the desk. The second device is located above the coffee table, that is, the second location information is above the coffee table. The mobile phone receives the first voice of the user, such as the first voice is "turn on the desk lamp above the desk". The mobile phone recognizes the intention in the first voice, that is, the first operation is "turn on", the first slot, that is, the first category is "desk lamp", and the second slot, that is, the first location information is "above the desk". Then the mobile phone controls the desk lamp above the desk to turn on according to the first voice. The mobile phone receives the second voice of the user, such as the second voice is "turn on the desk lamp above the coffee table". The mobile phone recognizes the intention in the second voice, that is, the first operation is "turn on", the first slot, that is, the first category is "desk lamp", and the second slot, that is, the second location information is "above the coffee table". Then the mobile phone controls the desk lamp above the coffee table to turn on according to the second voice. In this way, even if the first device and the second device are of the same device type, both are desk lamps, the mobile phone can determine which desk lamp the user wants to control according to the different location information of the two desk lamps to meet the user's needs.

[0270] Optionally, if the voice command does not include the device location of the target smart home device or the device location is unclear, if the number of smart home devices determined by the mobile phone according to the voice command is one, the currently determined smart home device is the target smart home device. If the number of smart homes determined by the mobile phone according to the voice command is multiple, that is, there are multiple smart home devices of the same device type, the mobile phone uses voice prompts to guide the user to use the device location to determine the smart home device. For example, if the mobile phone receives the user's voice command, the slot obtained by recognizing the voice command does not include the second slot, and the mobile phone determines that the number of smart home devices corresponding to the current voice command is multiple, the mobile phone automatically plays a prompt voice to guide the user to determine the device location of the target smart home device. For example, the mobile phone receives the user's third voice, the third voice includes the first category and the first operation, and does not include the first location information or the second location information. Then, the mobile phone plays a prompt voice to prompt the user to enter the first location information or the second location information. Afterwards, the mobile phone receives the user's fourth voice, and the fourth voice includes the first location information or the second location information. According to the fourth voice, the mobile phone controls the first device corresponding to the first location information to perform the first operation, or controls the second device corresponding to the second location information to perform the first operation.

[0271] For example, suppose there are two table lamps in the home system, located on the desk and the coffee table respectively, and the mobile phone receives the user's voice command. For example, the voice command is "turn on the desk lamp", the intention in the recognized voice command is "turn on", the first slot includes "desk lamp", and the second slot is missing. And the mobile phone determines that there are two desk lamps in the home system, then broadcasts the voice prompt "Which desk lamp do you need to turn on", or broadcasts the voice prompt "Do you want to turn on the desk lamp on the desk or the desk lamp on the coffee table", guides the user to choose, and obtains the location information of the smart home device that needs to be turned on. The mobile phone receives the voice command input by the user again, such as "desk lamp on the desk", determines that the target smart home device is the desk lamp on the desk, and controls the desk lamp on the desk to turn on.

[0272] Optionally, the mobile phone can also extract the slot information of the device room contained in the voice command, and the mobile phone can distinguish the target smart home device according to the device room. For example, suppose there are two desk lamps located in different rooms in the home system. The mobile phone receives the voice command "turn on the desk lamp in the study". According to the voice command, the mobile phone extracts the device room as "study", determines the target smart home device, and controls the desk lamp in the study to turn on.

[0273] Similarly, if the user's voice command includes the device room but lacks location information, the user can be guided to make further choices by broadcasting voice prompts. For example, the voice command is "turn on the desk lamp in the study", the intent in the recognized voice command is "turn on", the first slot includes "desk lamp", the device room is the study, and the location information is missing. If the mobile phone confirms that there are two desk lamps in the study, the mobile phone can voice broadcast "Do you want to turn on the desk lamp on the desk or the desk lamp on the coffee table" to guide the user to choose, receive the voice command selected by the user, and determine the target smart home device.

[0274] Optionally, if the missing device room or device location in the user's voice command does not affect the execution of the voice command, the mobile phone does not need to play the prompt voice, and directly controls the target smart home device according to the voice command to improve efficiency. For example, the user's voice command is "turn off the desk lamp", and the mobile phone determines that there are multiple desk lamps in the current home system. However, only one of the desk lamps is on, then the mobile phone determines that the first operation is to turn off, and determines that the target smart home device is the desk lamp that is currently on, then the instruction command is sent directly to the desk lamp to control the desk lamp to turn off.

[0275] Optionally, the mobile phone receives a fifth voice of the user, the fifth voice includes the first category and the first operation, and the fifth voice also includes the second positioning information or the fourth positioning information. The mobile phone plays a prompt voice to prompt the user to enter the first positioning information or the third positioning information. The mobile phone receives a sixth voice of the user, and the sixth voice includes the first positioning information or the third positioning information. According to the sixth voice, the mobile phone controls the first device corresponding to the first positioning information to perform the first operation, or controls the second device corresponding to the third positioning information to perform the first operation. Among them, the second positioning information and the fourth positioning information are position information determined according to a positioning object that is easy to move, and the first positioning information and the third positioning information are position information determined according to a positioning object that is not easy to move. In other words, if the positioning object corresponding to the device position contained in the voice command is an easy-to-move positioning object, the mobile phone determines the corresponding device position list according to the current positioning object. The positioning object position information or the positioning object position information with the highest priority, confirms the target smart home device with the user through voice interaction. Thereby avoiding execution errors caused by the movement of the positioning object.

[0276] For example, Figure 7 The captured scene is displayed in the interface 702 shown in (b), and the mobile phone receives a user voice command, such as "turn on the desk lamp on the right side of the photo frame". The mobile phone determines the second slot "right side of the photo frame" contained in the voice command, where the photo frame is an easily movable positioning object and there is a risk of it being moved. If the photo frame has moved at this time, the object on the right side of the photo frame observed by the user is inconsistent with the object on the right side of the photo frame stored in the mobile phone, and the execution result is wrong and cannot meet the user's needs. Therefore, if Fig.11 In the interface 1101 shown in (a), the device location list of the target smart home device is displayed in the interface 1101. The mobile phone determines the location information of the positioning object that is not easy to move or the location information of the positioning object with the highest priority according to the device location list. As shown in the interface 1101, the mobile phone determines that the positioning object information is above the desk, and then the voice broadcast "Excuse me, is it the desk lamp above the desk" guides the user to determine the correct target smart home device.

[0277] Optionally, if the smart home system does not include multiple smart home devices of the same device type, that is, one device type includes only one smart home device. Then, even if the second slot is missing in the voice command received by the mobile phone, if the mobile phone can directly determine the only smart home device according to the user's intention and the first slot, the mobile phone does not need to guide the user to make a second selection, but directly controls the corresponding target smart home device.

[0278] Optionally, user voice commands are not limited to standard descriptions, and users can issue voice commands based on their own habits. For example, Figure 8 In the segmentation diagram 804 shown in (d), the sofa 87 is located in front of the bookshelf 811. The voice command received by the mobile phone may be "the sofa next to the bookshelf". In this regard, the mobile phone can generalize the voice command and make the positions with similar meanings refer to the same target object according to the position relationship of the objects, further reducing the difficulty for the user to control the target object. For example, the mobile phone determines that the sofa next to the bookshelf is the sofa 87 in front of the bookshelf 811.

[0279] For example, the mobile phone generalizes the voice command and corresponds the device locations with similar meanings in the voice command to the same target smart home device. Figure 7 In the scene shown in interface 702 shown in (b), the mobile phone receives user voice commands such as "turn on the desk lamp on the right side of the computer", "turn on the desk lamp next to the computer", and "turn on the desk lamp on the right side of the photo frame". According to the voice commands, the mobile phone can determine that the corresponding target smart home devices are all desk lamps 72.

[0280] S504: According to the voice command, control the target smart home device to perform a first operation.

[0281] Specifically, the first operation is an operation determined according to the user's intention, such as opening, closing, parameter adjustment, mode setting, etc. The mobile phone or smart home voice control device sends the user's intention in the voice command to the determined target smart home device, and controls the target smart home device to perform the first operation. Alternatively, after the mobile phone or smart home voice control device receives the analysis result of the voice command by the smart home cloud platform, it sends the user's intention in the voice command to the determined target smart home device, and controls the target smart home device to perform the first operation. Alternatively, the mobile phone or smart home voice control device forwards the voice command to the smart home cloud platform, and after the smart home cloud platform analyzes the voice command, it directly controls the target smart home device to perform the first operation.

[0282] Optionally, the mobile phone or smart home voice control device receives the first execution result of the first operation performed by the first device, and voice broadcasts the first execution result. The mobile phone or smart home voice control device receives the second execution result of the first operation performed by the second device, and voice broadcasts the second execution result. In other words, the mobile phone or smart home voice control device receives the execution result of the first operation performed by the target smart home device, matches the pre-configured reply words according to the execution result, and voice broadcasts the reply words, so that the user knows the execution result of the current voice command.

[0283] For example, Figure 7 In the scene shown in interface 702 in (b), the mobile phone receives the user's semantic command "turn on the desk lamp above the study desk". Then, the first operation is the turn-on operation. After the mobile phone sends the turn-on command to the desk lamp 72, the desk lamp 72 executes the first operation and automatically turns on. After the mobile phone receives the execution result of the desk lamp 72 and matches the corresponding reply dialogue, it automatically broadcasts "turned on".

[0284] It can be seen that the smart device control method provided in the embodiment of the present application can add the recognition of the device location information of the smart home device to the recognition of the voice command. Based on the device location information, more accurate selection and control of the target smart home device can be achieved. Avoid the situation where the user needs to confirm multiple times or cannot accurately control one of the smart home devices in the scenario of multiple smart home devices of the same device type. The smart device control method provided in the present application can improve work efficiency and reduce user pressure.

[0285] like Fig.15 As shown, the embodiment of the present application discloses an electronic device. The electronic device 1500 can be used to implement the methods described in the above method embodiments. Exemplarily, the electronic device 1500 may specifically include: a receiving unit 1501 and a processing unit 1502. The receiving unit 1501 is used to support the electronic device 1500 to execute Figure 5Step S503 in the processing unit 1502 is used to support the electronic device 1500 to perform Figure 5 Step S501, step S502, step S503 and step S504 in .

[0286] Optionally, the electronic device 1500 may further include a playing unit 1503 for supporting the electronic device 1500 to play voice prompts.

[0287] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0288] like Fig.16 As shown, the embodiment of the present application discloses an electronic device, including: one or more processors 1601; memory 1602; one or more computer programs 1603; and microphone 1604. The above-mentioned components can be connected through one or more communication buses 1605. Among them, the above-mentioned one or more computer programs 1603 are stored in the above-mentioned memory 1602 and are configured to be executed by the one or more processors 1601, and the one or more computer programs 1603 include instructions, and the above-mentioned instructions can be used to execute each step in the above-mentioned embodiment.

[0289] Optional, still as Fig.16 As shown, the electronic device may further include a camera 1606. The camera 1606 may be used to collect images including the target smart home device.

[0290] Optional, still as Fig.16 As shown, the electronic device may further include a communication module 1607. The communication module 1607 may be used to interact with smart home devices. The communication module 1607 may also be used to interact with a server, such as a smart home device cloud platform.

[0291] Exemplarily, the processor 1601 may be Figure 3 The processor 110 shown in FIG. 1 , the memory 1602 may specifically be Figure 3 The internal memory 121 shown, the microphone 1604 is specifically used for Figure 3 The audio module shown can be Figure 3 The microphone 170C or the receiver 170B shown in the figure, the camera 1606 can be specifically Figure 3 The camera 193 shown in the figure, the communication module 1607 can be specifically Figure 3 The mobile phone number RF module 150 and / or communication module 160 shown in the figure are not limited in any way in the embodiment of the present application.

[0292] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through lines. For example, the interface circuit can be used to receive signals from other devices. For another example, the interface circuit can be used to send signals to other devices. Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can execute the various steps executed by the mobile phone in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.

[0293] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the smart device control method in the above-mentioned embodiment.

[0294] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the smart device control method in the above-mentioned embodiment.

[0295] In addition, an embodiment of the present application also provides a device, which may specifically be a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the device executes the intelligent device control method in the above-mentioned method embodiments.

[0296] Among them, the electronic device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0297] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0298] In the several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. For example, the electronic device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.

[0299] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0300] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0301] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program instructions.

[0302] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling an intelligent device, characterized in that: Applied to a communication system including a first device and a second device, wherein the first device and the second device both correspond to a first category; the first device corresponds to first position information, the first position information is a relative position relationship between the first device and a first object, and the second device corresponds to second position information, the second position information is a relative position relationship between the second device and a second object, the method comprising: receiving a first voice of a user, where the first voice includes the first category, the first location information, and a first operation; Controlling the first device corresponding to the first location information to perform the first operation according to the first voice; receiving a second voice of a user, where the second voice includes the first category, the second location information, and the first operation; Controlling the second device corresponding to the second location information to perform the first operation according to the second voice; Among them, the first object and the second object both include a first type of object and a second type of object, the first type of object is an object with a moving frequency less than or equal to a first threshold, and the second type of object is an object with a moving frequency greater than the first threshold; the first position information includes first positioning information and second positioning information, the second position information includes third positioning information and fourth positioning information, the first positioning information and the third positioning information are both position information determined according to the first type of object, the second positioning information and the fourth positioning information are both position information determined according to the second type of object, the first positioning information has a higher priority than the second positioning information, and the third positioning information has a higher priority than the fourth positioning information.

2. The method according to claim 1, characterized in that The method further comprises: receiving a third voice of a user, wherein the third voice includes the first category and the first operation, but does not include the first location information or the second location information; Play a prompt voice to prompt the user to input the first location information or the second location information; receiving a fourth voice of a user, where the fourth voice includes the first location information or the second location information; According to the fourth voice, the first device corresponding to the first location information is controlled to perform the first operation, or the second device corresponding to the second location information is controlled to perform the first operation.

3. The method according to claim 1 or 2, characterized in that: Before receiving the first voice of the user, the method further includes: receiving the first location information of the first device and the second location information of the second device input by a user; Alternatively, instruct the user to capture a first image including the first device and the first object, and capture a second image including the second device and the second object; and obtain the first location information and the second location information based on the first image and the second image captured, respectively.

4. The method according to claim 3, characterized in that The acquiring the first position information and the second position information according to the first image and the second image respectively obtained by shooting includes: Determine, based on the first image obtained by taking pictures, the coordinates of the first device and the coordinates of the first object contained in the first image; and determine, based on the second image obtained by taking pictures, the coordinates of the second device and the coordinates of the second object contained in the second image; According to the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object is determined to obtain the first position information; and according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

5. The method according to claim 1 or 2, characterized in that: The first category includes: device type and / or device name.

6. The method according to claim 1 or 2, characterized in that: The first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

7. A communication system, characterized in that: The communication system includes an electronic device, a first device and a second device; wherein the first device and the second device are both smart home devices of the first category; the first device corresponds to first position information, the first position information is the relative position relationship between the first device and a first object, and the second device corresponds to second position information, the second position information is the relative position relationship between the second device and a second object; The electronic device is configured to receive a first voice of a user, the first voice including the first category, the first location information, and a first operation; determine, according to the first voice, the first device corresponding to the first location information; and send a first indication to the first device, the first indication being used to instruct the first device to perform the first operation; The first device is configured to receive the first instruction and perform the first operation according to the first instruction; The electronic device is further configured to receive a second voice of a user, the second voice including the first category, the second location information, and the first operation; determine the second device corresponding to the second location information according to the second voice; and send a second indication to the second device, the second indication being used to instruct the second device to perform the first operation; The second device is used to receive the second instruction and perform the first operation according to the second instruction; Among them, the first object and the second object both include a first type of object and a second type of object, the first type of object is an object with a moving frequency less than or equal to a first threshold, and the second type of object is an object with a moving frequency greater than the first threshold; the first position information includes first positioning information and second positioning information, the second position information includes third positioning information and fourth positioning information, the first positioning information and the third positioning information are both position information determined according to the first type of object, the second positioning information and the fourth positioning information are both position information determined according to the second type of object, the first positioning information has a higher priority than the second positioning information, and the third positioning information has a higher priority than the fourth positioning information.

8. The communication system according to claim 7, characterized in that: The electronic device is further used to receive a third voice of the user, the third voice includes the first category and the first operation, but does not include the first location information or the second location information; play a prompt voice to prompt the user to input the first location information or the second location information; receive a fourth voice of the user, the fourth voice includes the first location information or the second location information; determine the first device corresponding to the first location information based on the fourth voice, and send the first indication to the first device; or determine the second device corresponding to the second location information based on the fourth voice, and send the second indication to the second device.

9. The communication system according to claim 7 or 8, characterized in that: The electronic device is further configured to receive the first location information of the first device and the second location information of the second device input by a user; Alternatively, instruct the user to capture a first image including the first device and the first object, and capture a second image including the second device and the second object; and obtain the first location information and the second location information based on the captured first image and the captured second image, respectively.

10. The communication system according to claim 9, characterized in that: The electronic device is specifically configured to determine, based on the first image obtained by shooting, the coordinates of the first device and the coordinates of the first object contained in the first image; and, based on the second image obtained by shooting, determine the coordinates of the second device and the coordinates of the second object contained in the second image; and determine, based on the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object, to obtain the first position information; And according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

11. The communication system according to claim 7 or 8, characterized in that: The first category includes: device type and / or device name.

12. The communication system according to claim 7 or 8, characterized in that: The first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

13. A communication system, characterized in that: The communication system includes an electronic device, a first device, a second device and a server; wherein the first device and the second device are both smart devices of the first category; the first device corresponds to first position information, the first position information is a relative position relationship between the first device and a first object, and the second device corresponds to second position information, the second position information is a relative position relationship between the second device and a second object; The electronic device is configured to receive a first voice of a user, the first voice including the first category, the first location information and a first operation; and send the first voice to the server; The server is configured to receive the first voice, and determine the first device corresponding to the first location information according to the first voice; and send a first instruction to the first device, wherein the first instruction is used to instruct the first device to perform the first operation; The first device is configured to receive the first instruction sent by the server, and perform the first operation according to the first instruction; The electronic device is further configured to receive a second voice of a user, the second voice including the first category, the second location information and the first operation; and send the second voice to the server; The server is further configured to receive the second voice, and determine the second device corresponding to the second location information according to the second voice; and send a second indication to the second device, where the second indication is used to instruct the second device to perform the first operation; The second device is used to receive the second instruction sent by the server, and perform the first operation according to the second instruction; Among them, the first object and the second object both include a first type of object and a second type of object, the first type of object is an object with a moving frequency less than or equal to a first threshold, and the second type of object is an object with a moving frequency greater than the first threshold; the first position information includes first positioning information and second positioning information, the second position information includes third positioning information and fourth positioning information, the first positioning information and the third positioning information are both position information determined according to the first type of object, the second positioning information and the fourth positioning information are both position information determined according to the second type of object, the first positioning information has a higher priority than the second positioning information, and the third positioning information has a higher priority than the fourth positioning information.

14. The communication system according to claim 13, characterized in that: The electronic device is further configured to receive a third voice of a user, the third voice including the first category and the first operation, but not including the first location information or the second location information; and send the third voice to the server; The server is further configured to receive the third voice, and send a third instruction to the electronic device according to the third voice, wherein the third instruction is used to instruct the electronic device to obtain the first location information or the second location information; The electronic device is further configured to receive the third instruction, and play a prompt voice according to the third instruction to prompt the user to input the first location information or the second location information; receive a fourth voice from the user, the fourth voice including the first location information or the second location information; and send the fourth voice to the server; The server is further used to determine the first device corresponding to the first location information according to the fourth voice, and send the first indication to the first device; or determine the second device corresponding to the second location information according to the fourth voice, and send the second indication to the second device.

15. The communication system according to claim 13 or 14, characterized in that: The electronic device is further configured to receive the first position information of the first device and the second position information of the second device input by a user; or to instruct the user to capture a first image including the first device and the first object, and to capture a second image including the second device and the second object; and to send the first image and the second image to the server; The server is further configured to respectively obtain the first location information and the second location information based on the first image and the second image captured.

16. The communication system according to claim 15, characterized in that: The server is specifically configured to determine, based on the first image obtained by shooting, the coordinates of the first device and the coordinates of the first object contained in the first image; and, based on the second image obtained by shooting, determine the coordinates of the second device and the coordinates of the second object contained in the second image; and determine, based on the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object, to obtain the first position information; And according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

17. The communication system according to claim 13 or 14, characterized in that: The first category includes: device type and / or device name.

18. The communication system according to claim 13 or 14, characterized in that: The first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

19. An electronic device, characterized in that: include: A processor, a microphone and a memory, wherein the memory and the microphone are coupled to the processor, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and when the processor reads the computer instructions from the memory, the electronic device performs the following operations: Receive a first voice of a user, where the first voice includes a first category, first location information, and a first operation; wherein a first device corresponds to the first category, the first device corresponds to the first location information, and the first location information is a relative position relationship between the first device and a first object; Controlling the first device corresponding to the first location information to perform the first operation according to the first voice; receiving a second voice of a user, wherein the second voice includes the first category, second location information, and the first operation; wherein a second device corresponds to the first category, the second device corresponds to the second location information, and the second location information is a relative position relationship between the second device and a second object; Controlling the second device corresponding to the second location information to perform the first operation according to the second voice; Among them, the first object and the second object both include a first type of object and a second type of object, the first type of object is an object with a moving frequency less than or equal to a first threshold, and the second type of object is an object with a moving frequency greater than the first threshold; the first position information includes first positioning information and second positioning information, the second position information includes third positioning information and fourth positioning information, the first positioning information and the third positioning information are both position information determined according to the first type of object, the second positioning information and the fourth positioning information are both position information determined according to the second type of object, the first positioning information has a higher priority than the second positioning information, and the third positioning information has a higher priority than the fourth positioning information.

20. The electronic device according to claim 19, characterized in that When the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: receiving a third voice of a user, wherein the third voice includes the first category and the first operation, but does not include the first location information or the second location information; Play a prompt voice to prompt the user to input the first location information or the second location information; receiving a fourth voice of a user, where the fourth voice includes the first location information or the second location information; According to the fourth voice, the first device corresponding to the first location information is controlled to perform the first operation, or the second device corresponding to the second location information is controlled to perform the first operation.

21. The electronic device according to claim 19 or 20, characterized in that: Before receiving the first voice of the user, when the processor reads the computer instruction from the memory, the electronic device is also caused to perform the following operations: receiving the first location information of the first device and the second location information of the second device input by a user; Alternatively, instruct the user to capture a first image including the first device and the first object, and capture a second image including the second device and the second object; and obtain the first location information and the second location information based on the captured first image and the captured second image, respectively.

22. The electronic device according to claim 21, characterized in that: The acquiring the first position information and the second position information according to the first image and the second image respectively obtained by shooting includes: Determine, based on the first image obtained by taking pictures, the coordinates of the first device and the coordinates of the first object contained in the first image; and determine, based on the second image obtained by taking pictures, the coordinates of the second device and the coordinates of the second object contained in the second image; According to the coordinates of the first device and the coordinates of the first object, the relative position relationship between the first device and the first object is determined to obtain the first position information; and according to the coordinates of the second device and the coordinates of the second object, the relative position relationship between the second device and the second object is determined to obtain the second position information.

23. The electronic device according to claim 19 or 20, characterized in that: The first category includes: device type and / or device name.

24. The electronic device according to claim 19 or 20, characterized in that: The first operation includes one or more of the following: opening, closing, parameter adjustment, and mode setting.

25. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on the electronic device, the electronic device executes the smart device control method according to any one of claims 1 to 6.

26. A computer program product comprising instructions, characterized in that When the computer program product is executed on an electronic device, the electronic device executes the intelligent device control method according to any one of claims 1 to 6.