Device search method, device, electronic device and storage medium
The relative position relationship is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and identification information is added to the live screen, which solves the problem of inefficiency in location sharing between electronic devices and achieves rapid tracking in poor environments. Accurate device search improves user experience.
Patent Information
- Application Number
- CN202210471120.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-28
AI Technical Summary
When existing electronic devices use GPS and remote networks to share locations between devices, the efficiency of finding devices is low, especially in environments where the GPS signal and network are poor, resulting in low efficiency and low user experience in finding people.
The relative position relationship is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and when the preset position relationship is met, the camera is used to collect live images, and identification information is added to display the location of the device to be found, improving the user's ability to find the device. efficiency.
It enables the device to be found quickly and accurately under poor GPS signal and network conditions, improving the user experience and search efficiency.
Smart Images

Figure CN114885279B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic devices, and more specifically, to a device search method, apparatus, electronic device, and storage medium. Background Art
[0002] With the development of science and technology, electronic devices are used more and more widely and have more and more functions. They have become one of the necessities in people's daily life. At present, it is very common for users to use electronic devices to share locations to find people or objects. However, in the related technology, since the location sharing between devices is heavily dependent on the Global Positioning System (GPS) and the remote network, there is a problem of low efficiency in using the location sharing between devices to find people or objects. Summary of the invention
[0003] In view of the above problems, the present application proposes a device search method, apparatus, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a device search method, which is applied to an electronic device, the method comprising: obtaining a relative position relationship between the electronic device and the device to be found through an ultra-wideband module of the electronic device and an ultra-wideband module of the device to be found; capturing a live picture through a camera of the electronic device when the relative position relationship satisfies a preset position relationship; based on the relative position relationship, adding identification information to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture; and displaying the target picture.
[0005] In a second aspect, an embodiment of the present application provides a device for searching for a device, which is applied to an electronic device, and the device includes: a relative position acquisition module, which is used to obtain the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found; a live picture acquisition module, which is used to collect the live picture through the camera of the electronic device when the relative position relationship satisfies a preset position relationship; a picture identification module, which is used to add identification information to the live picture to obtain a target picture based on the relative position relationship, wherein the identification information is used to identify the position of the device to be found in the live picture; and a picture display module, which is used to display the target picture.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a camera, a memory and a processor, wherein the camera is used to capture live images, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The device search method, apparatus, electronic device, and storage medium provided in the embodiments of the present application obtain the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. When the relative position relationship satisfies a preset position relationship, a live image is captured by the camera of the electronic device. Based on the relative position relationship, identification information for identifying the position of the device to be found in the live image is added to obtain a target image. The target image is displayed to instruct the user to approach the device to be found based on the target image, thereby improving the efficiency of the user in finding the device to be found and enhancing the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 A schematic diagram of an application environment that can be used for the device search method provided in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram showing the interaction between the electronic device and the vehicle to be found device provided in an embodiment of the present application is shown;
[0012] Figure 3 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0013] Figure 4 The target screen of the electronic device provided by an embodiment of the present application is shown;
[0014] Figure 5 A live picture captured by a camera of an electronic device provided in an embodiment of the present application is shown;
[0015] Figure 6 An interface including a target screen displayed by an electronic device provided by an embodiment of the present application is shown;
[0016] Figure 7 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0017] Figure 8 A schematic diagram of a process of mobile phone A searching for mobile phone B according to an embodiment of the present application is shown;
[0018] Fig. 9 An interface including a map screen displayed by an electronic device provided by an embodiment of the present application is shown;
[0019] Fig.10 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0020] Fig.11 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0021] Fig.12 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0022] Fig.13 A schematic diagram showing a flow chart of a device search method provided by an embodiment of the present application is shown;
[0023] Fig.14 A module block diagram of a device search apparatus provided by an embodiment of the present application is shown;
[0024] Fig.15 A block diagram of an electronic device according to an embodiment of the present application for executing a device search method according to an embodiment of the present application is shown;
[0025] Fig.16 A storage unit for storing or carrying program codes for implementing a device search method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0027] It should be noted that in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0028] At present, most electronic devices, such as vehicles and mobile phones, can provide real-time positioning of electronic devices through GPS. Each electronic device can share each other's geographic location using a remote network (such as a local area network, a wide area network). Among them, electronic devices that can share locations all have GPS and remote network functions.
[0029] In the related art, the method of finding devices by sharing locations between electronic devices through GPS and remote networks is heavily dependent on the GPS and remote networks of the electronic devices. Therefore, it is inefficient to find the device to be found by sharing locations between electronic devices.
[0030] For example, the GPS signal and network of the electronic device are poor in scenes such as between buildings and crowded public places, such as shopping malls, supermarkets, airports, high-speed rail stations, subways, school gates, and roadsides of bus stations. At this time, if the user uses the electronic device to find the user to be found (i.e., the device to be found), the poor GPS signal and network of the electronic device make the user's search efficiency low, which also makes the user's experience low.
[0031] In view of the above problems, the inventor has discovered after long-term research and proposed the device search method, device, electronic device and storage medium provided in the embodiments of the present application. Through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, the relative position relationship between the electronic device and the device to be found is obtained, and the camera of the electronic device is controlled to collect the live screen and display the target screen that identifies the position of the device to be found in the live screen, so that the user can approach the device to be found based on the target screen, and then quickly and accurately find the device to be found, thereby improving the user experience. Among them, the specific device search method is described in detail in the subsequent embodiments.
[0032] The following describes an application environment in which the device search method provided in the embodiments of the present application can be used.
[0033] See also Figure 1 , Figure 1 A schematic diagram of an application environment that can be used for the device search method provided in the embodiment of the present application is shown. Figure 1 As shown, the application environment includes an electronic device 100 and a device to be found 200, wherein the device to be found 200 can send WLAN broadcast messages, Bluetooth broadcast messages, UWB broadcast messages, etc. When the electronic device 100 is within the broadcast range of the device to be found 200 ( Figure 1 When the device 200 to be found is located in the dashed box, the WLAN broadcast message, Bluetooth broadcast message, UWB broadcast information, etc. sent by the device 200 to be found can be received. Figure 1 Only a schematic diagram is shown in which the electronic device 100 is a mobile phone and the device to be found 200 is a vehicle.
[0034] See also Figure 2 , Figure 2 The following is a schematic diagram showing the interaction between the electronic device and the device to be found provided by the embodiment of the present application. Figure 2As shown, the electronic device may include a smart watch, a smart phone, smart glasses, a vehicle, etc. The electronic device is equipped with an operating system and is used to identify the user and share the spatial relationship position of the user. Among them, the electronic device may include an ultra-wideband (Ultra Wide Band, UWB) module and a Bluetooth Low Energy (Bluetooth Low Energy, BLE) module. On the one hand, the ultra-wideband module can provide an authentication function, that is, it can provide an identity authentication capability before the electronic device interacts with the electronic device to be found. After the device to be found completes the authentication, it can establish a secure connection and data communication with the electronic device. On the other hand, the ultra-wideband module can provide spatial relationship information such as direction and distance between the electronic device and the device to be found.
[0035] See also Figure 3 , Figure 3 The flowchart of the device search method provided by an embodiment of the present application is shown. The method is used to obtain the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and thereby control the camera of the electronic device to capture the live screen and display the target screen that identifies the position of the device to be found in the live screen, so that the user can approach the device to be found based on the target screen, and then quickly and accurately find the device to be found, thereby improving the user experience. In a specific embodiment, the device search method is applied to Fig.14 The device search apparatus 300 and the electronic device 100 ( Fig.15 ). The following will take an electronic device as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic device used in this embodiment may include a smart phone, a vehicle, a tablet computer, a wearable electronic device, etc., which is not limited here. Figure 3 The process shown is described in detail, and the device search method may specifically include the following steps:
[0036] Step S110: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0037] In this embodiment, the electronic device may include an ultra-wideband module, and the device to be found may include an ultra-wideband module, and the relative position relationship between the electronic device and the device to be found may be obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. The relative position relationship includes a relative direction (relative angle) and a relative distance, that is, the relative direction and relative distance between the electronic device and the electronic device to be found may be obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0038] Among them, when the relative position relationship between the electronic device and the device to be found is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, it indicates that the distance between the electronic device and the device to be found is relatively close, and the requirement of detecting the relative position relationship through the ultra-wideband module is met. Then, the relative position relationship between the electronic device and the device to be found can be obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0039] In some embodiments, when the relative position relationship between the electronic device and the device to be found is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, an ultra-wideband communication connection can also be established between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. After the device to be found completes the authentication of the electronic device, secure data communication is performed with the device to be found through the ultra-wideband communication connection.
[0040] As an implementable method, the device to be found can transmit a broadcast message, and the electronic device can perform a broadcast scan. Wherein, if the electronic device does not scan the broadcast message transmitted by the device to be found, it can be determined that the distance between the electronic device and the device to be found is far, and the requirement of detecting the relative position relationship through the ultra-wideband module is not met, and the electronic device can be controlled to continue broadcast scanning. Wherein, if the electronic device scans the broadcast message transmitted by the device to be found, it can be determined that the distance between the electronic device and the device to be found is close, and the requirement of detecting the relative position relationship through the ultra-wideband module is met, and the relative position relationship between the electronic device and the device to be found can be obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and a communication connection can also be established through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. For example, the device to be found can transmit a UWB broadcast, and the electronic device can perform a UWB broadcast scan. Then, when the electronic device scans the UWB broadcast transmitted by the device to be found, a UWB connection between the electronic device and the device to be found can be established.
[0041] In some embodiments, the requirement to detect the relative distance between electronic devices through the ultra-wideband module may include 10 meters.
[0042] The relative position relationship may be the relative position relationship between the electronic device and the device to be found in terms of up and down, front and back, left and right in space.
[0043] Step S120: When the relative position relationship satisfies a preset position relationship, a live image is captured by a camera of the electronic device.
[0044] In an embodiment of the present application, the electronic device may further include a camera; when the electronic device obtains, through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, that the relative position relationship between the electronic device and the device to be found satisfies a preset position relationship, the electronic device controls the camera of the electronic device to capture a live image.
[0045] In some embodiments, the camera of the electronic device is in a dormant state, and when the relative position relationship between the electronic device and the device to be found is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and the relative position relationship between the electronic device and the device to be found satisfies the preset position relationship, the operating system of the electronic device controls the camera of the electronic device to switch from the dormant state to the working state to collect the live picture, so as to reduce the power consumption of the camera of the electronic device. In addition, when the relative position relationship satisfies the preset position relationship, the live picture is collected by the camera of the electronic device, so as to facilitate the user to quickly and accurately find the device to be found based on the live picture.
[0046] In some embodiments, the electronic device may be pre-set and store a preset position relationship, wherein the preset position relationship is used as a basis for determining whether the electronic device uses a camera to capture a live image. Therefore, in an embodiment of the present application, when the relative position relationship between the electronic device and the device to be found is obtained by the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, the camera of the electronic device is controlled to capture a live image. The number of cameras included in the electronic device may be one or more, which is not limited here.
[0047] Optionally, the relative position relationship satisfies the preset position relationship when the relative distance between the electronic device and the device to be found is less than or equal to the preset relative distance, or / and the relative angle between the electronic device and the device to be found is less than or equal to the preset relative angle.
[0048] Step S130: Based on the relative position relationship, identification information is added to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0049] In an embodiment of the present application, when the relative position relationship satisfies a preset position relationship, after the camera of the electronic device captures a live image, the electronic device adds identification information to the live image based on the relative position relationship to obtain a target image, wherein the identification information is used to identify the position of the device to be found in the live image.
[0050] As an implementation mode, the electronic device adds identification information to the live screen based on the relative position relationship to obtain the target screen, which can be based on the up-down, front-back, left-right position relationship between the electronic device and the device to be found in space, and uses text information to mark the relative position relationship between the device to be found and the electronic device in the live screen. Among them, the live screen is marked with text information representing the relative position relationship between the device to be found and the electronic device to identify the precise position of the device to be found and the electronic device, so that the user can find the device to be found conveniently and efficiently, and improve the user's use experience.
[0051] As another implementation, the electronic device adds identification information to the live screen to obtain the target screen based on the relative position relationship, which can be based on the up-down, front-back, left-right position relationship between the electronic device and the device to be found in space, and uses an identifier to identify the position of the device to be found in the live screen. The method of marking the position of the device to be found can be to mark it with a frame, an arrow, etc., to mark the precise position of the device to be found, so that the user can find the device to be found conveniently and efficiently, and improve the user's experience.
[0052] As another implementation, the electronic device adds identification information to the live screen to obtain the target screen based on the relative position relationship. The relative position relationship between the device to be found and the electronic device can be marked in the live screen with text information based on the up-down, front-back, left-right position relationship between the electronic device and the device to be found in space, and the position of the device to be found is identified in the live screen with an identifier. For example, please refer to Figure 4 , Figure 4 The target screen is shown in which the relative position relationship between the device to be found and the electronic device is marked with text information in the live screen, and the position of the device to be found is identified in the live screen with an identifier.
[0053] Step S140: displaying the target picture.
[0054] In some embodiments, the electronic device may further include a display screen. After the electronic device obtains the target screen, the display screen of the electronic device is controlled to display the target screen, so as to facilitate the user to find the device to be found based on the target screen, thereby improving the efficiency of the user in finding the device to be found.
[0055] As an implementation method, after the electronic device obtains the target image, it can send the target image to the device to be found through an ultra-wideband communication connection established between the electronic device and the device to be found, so as to avoid arbitrary movement of the user corresponding to the device to be found that hinders the electronic device from searching for the device to be found, thereby improving the efficiency of the electronic device in searching for the device to be found.
[0056] In some implementations, when the electronic device displays the target screen, it may also display device information including the device to be found on the display interface, such as the device ID name, the name and photo of the user holding the device to be found, etc.
[0057] For example, see Figure 5 and Figure 6 , Figure 5 shows the live picture collected by the camera of the electronic device, Figure 6 A schematic diagram of an interface including a target screen displayed by an electronic device is shown, wherein an arrow is used in the target screen to point to the device to be found, and the relative position relationship between the device to be found and the electronic device is marked (left side, 5m).
[0058] In an embodiment of the present application, the relative position relationship between the electronic device and the device to be found is obtained through an ultra-wideband module of the electronic device and an ultra-wideband module of the device to be found, and the camera of the electronic device is controlled to capture a live image and display a target image that identifies the position of the device to be found in the live image, so that the user can approach the device to be found based on the target image, and then quickly and accurately find the device to be found, thereby improving the user experience.
[0059] See also Figure 7 , see Figure 7 , Figure 7 The schematic diagram of the process flow of the device search method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the device search method may specifically include the following steps:
[0060] Step S210: establishing a communication connection with the preset communication module of the device to be found through the preset communication module of the electronic device.
[0061] In this embodiment, the electronic device may include a preset communication module, and the device to be found may include a preset communication module, and a communication connection between the electronic device and the device to be found may be established through the preset communication module of the electronic device and the preset communication module of the device to be found. As one way, the preset communication module may include a Bluetooth module, and a communication connection between the electronic device and the device to be found may be established through the Bluetooth module of the electronic device and the Bluetooth module of the device to be found. As another way, the preset communication module may include a Bluetooth low-power module, and a communication connection between the electronic device and the device to be found may be established through the Bluetooth low-power module of the electronic device and the Bluetooth low-power module of the device to be found.
[0062] As an implementable method, the device to be found can transmit a broadcast message, and the electronic device can perform a broadcast scan. Wherein, if the electronic device does not scan the broadcast message transmitted by the device to be found, the relative position relationship between the electronic device and the device to be found can be determined, and if the condition for establishing a communication connection with the preset communication module of the device to be found through the preset communication module of the electronic device is not met, the electronic device can be controlled to continue broadcast scanning. Wherein, if the electronic device scans the broadcast message transmitted by the device to be found, the relative position relationship between the electronic device and the device to be found can be determined, and if the condition for establishing a communication connection with the preset communication module of the device to be found through the preset communication module of the electronic device is met, a communication connection can be established with the preset communication module of the device to be found through the preset communication module of the electronic device. For example, the device to be found can transmit a Bluetooth broadcast, and the electronic device can perform a Bluetooth broadcast scan. Then, when the electronic device scans the Bluetooth broadcast transmitted by the device to be found, a Bluetooth connection between the electronic device and the device to be found can be established.
[0063] In some embodiments, the condition for establishing a communication connection between a preset communication module of the electronic device and a preset communication module of the device to be found may include that the relative position relationship between the electronic device and the device to be found is less than or equal to 30 meters.
[0064] For example, see Figure 8 , Figure 8The flowchart shows that the electronic device is the mobile phone A of user A, the device to be found is the mobile phone B of user B, and user A uses the mobile phone A he holds to find user B (mobile phone B). Among them, the operating system is installed in mobile phone A and is used to identify users and share user spatial relationship positions. Among them, the operating system installed in mobile phone A includes a search application (Application, APP) with a search function composed of program codes, which can execute a device search method provided by an embodiment of the present application. Among them, the device to be found (mobile phone B) transmits a broadcast message, and user A holds mobile phone A and walks towards user B holding mobile phone B. The operating system of mobile phone A detects whether the search function of the search APP in mobile phone A is turned on. If the function is turned on, the search APP follows the account registered in the operating system of mobile phone A to log in to the service of the search function, and the operating system of mobile phone A controls mobile phone A to perform broadcast scanning. Among them, when mobile phone A scans the broadcast information transmitted by mobile phone B, a communication connection between mobile phone A and mobile phone B can be established; if mobile phone A does not scan the broadcast information transmitted by mobile phone B, it continues to scan until the broadcast information transmitted by mobile phone B is scanned. Among them, if the search function of the search APP of mobile phone A is not turned on, mobile phone A cannot execute a device search method provided in an embodiment of the present application to find user B (mobile phone B), or if this function is turned on, the account of the search APP that has not been registered in the operating system of mobile phone A follows the login service of the search function, and mobile phone A cannot execute a device search method provided in an embodiment of the present application to find user B (mobile phone B).
[0065] Step S220: Based on the communication connection, a first position sent by the device to be found is obtained, wherein the first position is detected and obtained by a positioning module of the device to be found.
[0066] In this embodiment, the device to be found may include a positioning module, which can detect the position of the device to be found, that is, the first position. The first position may be the longitude and latitude information of the device to be found, or the direction and distance of the device to be found based on a target observation point, which is not limited here. The electronic device obtains the first position sent by the device to be found based on the communication connection established with the device to be found.
[0067] In some embodiments, the electronic device can also obtain the device type corresponding to the device to be found, and the identity information of the user holding the device to be found (a photo of the user holding the device to be found, the ID registered to use the device to be found, phone number, etc.) based on the communication connection, so that the user can use the relevant information of the device to be found to assist the electronic device in accurately finding the device to be found.
[0068] In some implementations, the electronic device obtains the first location of the device to be found based on a Bluetooth connection established between the electronic device and the device to be found, so that the electronic device can obtain the first location of the device to be found without a network.
[0069] Step S230: Acquire a second position, wherein the second position is detected and obtained by a positioning module of the electronic device.
[0070] In the embodiment of the present application, the electronic device may include a positioning module, which may detect the position of the electronic device, i.e., the second position. The second position may be the latitude and longitude information of the electronic device, or the direction and distance observed by the electronic device based on the same target observation point as the position of the device to be found, which is not limited here.
[0071] In some embodiments, the electronic device includes a navigation module. After the electronic device obtains the first position and the second position, the navigation module of the electronic device obtains map information between the first position and the second position, and generates navigation path information with the first position as the starting point and the second position as the end point based on the obtained first position and second position, so that the electronic device is close to the device to be found based on the navigation path information, and then the relative position relationship between the electronic device and the device to be found is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, so as to quickly and accurately find the device to be found.
[0072] Step S240: displaying a map screen including the first location and the second location.
[0073] In this embodiment, the electronic device includes a display module. After the electronic device obtains the first position and the second position, the display module of the electronic device displays a map screen including the first position and the second position, so that the user can accurately find the device to be found based on the map screen, thereby improving the user experience.
[0074] In some implementations, the map screen including the first location and the second location may be such that the location of the electronic device and the location of the device to be found are marked using annotation information in the map screen including the first location and the second location.
[0075] For example, see Fig. 9 , Fig. 9 A map screen including a first location and a second location is displayed for the electronic device, wherein the location of the electronic device (you) and the location of the device to be found (L) are marked with dots.
[0076] Step S250: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0077] Step S260: When the relative position relationship satisfies a preset position relationship, a live image is captured by a camera of the electronic device.
[0078] Step S270: Based on the relative position relationship, adding identification information to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0079] Step S280: Display the target picture.
[0080] Among them, the specific description of steps S250 to S280 can be found in steps S110 to S140, which will not be repeated here.
[0081] For example, please refer again Figure 8 The relative distance and relative angle between mobile phone A and mobile phone B are calculated through the UWB module of mobile phone A and the UWB module of mobile phone B. When the relative distance and relative angle meet the requirements of the preset relative position relationship, the live picture is collected through the camera of mobile phone A, and identification information is added to the live picture to obtain the target picture, and finally the target picture is displayed.
[0082] In this embodiment, before obtaining the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, a communication connection is established between the electronic device and the device to be found, the first position sent by the device to be found and the second position of the electronic device are obtained, and a map screen including the first position and the second position is displayed, so that the user can get close to the device to be found based on the map screen, thereby improving the efficiency of finding the device to be found. In addition, this embodiment also obtains the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and thereby controls the camera of the electronic device to capture the live screen and display the target screen that identifies the position of the device to be found in the live screen, so that the user can get close to the device to be found based on the target screen, and then quickly and accurately find the device to be found, thereby improving the user experience.
[0083] See also Fig.10 , see Fig.10 , Fig.10 The schematic diagram of the process flow of the device search method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Fig.10 The process shown is described in detail, and the device search method may specifically include the following steps:
[0084] Step S310: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0085] The specific description of step S310 can be found in step S110 , which will not be repeated here.
[0086] Step S320: When the relative position relationship satisfies a preset position relationship, a live image is captured by the camera of the electronic device, and based on the relative position relationship, position navigation information is sent to the device to be found to indicate that the device to be found is approaching the electronic device based on the position navigation information.
[0087] In some embodiments, the electronic device includes a navigation and positioning module, which generates navigation information from the position of the device to be found to the position of the electronic device based on the relative position relationship between the electronic device and the device to be found, and sends the navigation information to the device to be found through a communication connection established between the electronic device and the device to be found to indicate that the device to be found is close to the electronic device based on the position navigation information.
[0088] Step S330: Based on the relative position relationship, identification information is added to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0089] Step S340: Display the target picture.
[0090] In this embodiment, compared with Figure 1 In addition, when the relative position relationship satisfies the preset position relationship, based on the relative position relationship, the position navigation information is sent to the device to be found to indicate that the device to be found is close to the electronic device based on the position navigation information, so as to improve the efficiency of finding the device to be found.
[0091] See also Fig.11 , see Fig.11 , Fig.11 The schematic diagram of the process flow of the device search method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Fig.11 The process shown is described in detail, and the device search method may specifically include the following steps:
[0092] Step S410: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0093] Step S420: When the relative position relationship satisfies a preset position relationship, a live image is captured through the camera of the electronic device, and an input target position is obtained, wherein the target position is between the position of the electronic device and the position of the device to be found.
[0094] In some embodiments, the target location for obtaining input can be the target location where the electronic device obtains the user's touch operation input on the electronic device, wherein the target location is between the location of the electronic device and the location of the device to be found. The target location can be input by the user based on the transportation convenience between the electronic device and the device to be found, so as to improve the user's usage experience.
[0095] As an embodiment, the electronic device includes a vehicle, and when the relative position relationship satisfies a preset position relationship, a method for obtaining the input target position may be: when the relative position relationship satisfies the preset position relationship, obtaining the position of the device to be found; when the position of the device to be found does not satisfy the preset parking position, displaying multiple positions to be selected, wherein the multiple positions to be selected all satisfy the preset parking position; and determining the target position from the multiple positions to be selected in response to the position selection instruction.
[0096] The preset parking position is a position that meets traffic regulations and does not affect the driving safety of other vehicles. The driving safety and driving convenience of vehicles searching for people are taken into consideration, and multiple positions to be found are obtained between the position of the electronic device and the position of the device to be found for the user to select, so as to improve the user experience.
[0097] As an implementation mode, the vehicle displays a plurality of positions to be selected, and the user issues a position selection instruction by operating a touch button corresponding to each position to be selected. The vehicle responds to the position selection instruction and determines a target position from the plurality of positions to be selected.
[0098] Step S430: Sending a position moving instruction to the device to be found, so as to instruct the device to be found to move to the target position.
[0099] In this embodiment, when the relative position relationship between the electronic device and the device to be found satisfies a preset position relationship, an input target position located between the position of the electronic device and the position of the device to be found is obtained, and based on the target position, the electronic device obtains navigation information from the position of the device to be found to the target position, and at the same time generates a position movement instruction to the device to be found based on the navigation information to instruct the device to be found to move to the target position, thereby assisting the user to quickly and accurately find the device to be found, thereby improving the user's usage experience.
[0100] Step S440: Based on the relative position relationship, identification information is added to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0101] Step S450: Display the target picture.
[0102] Compared to Figure 1 In this embodiment, when the relative position relationship between the electronic device and the device to be found satisfies the preset position relationship, the input target position between the position of the electronic device and the position of the device to be found is obtained, thereby sending a position movement instruction to the device to be found to instruct the device to be found to move to the target position. The actual transportation convenience between devices is taken into consideration, and the user experience is improved while the electronic device can quickly and accurately find the device to be found.
[0103] See also Fig.12 , see Fig.12 , Fig.12 The schematic diagram of the process flow of the device search method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Fig.12 The process shown is described in detail, and the device search method may specifically include the following steps:
[0104] Step S510: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0105] Step S520: When the relative position relationship satisfies a preset position relationship, a live image is captured by a camera of the electronic device.
[0106] Step S530: Based on the relative position relationship, adding identification information to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0107] Step S540: Display the target picture.
[0108] Among them, the specific description of steps S510 to S540 can be found in steps S110 to S140, which will not be repeated here.
[0109] Step S550: When the electronic device approaches the device to be found based on the target screen, first prompt information is generated, where the first prompt information is used to prompt that the moving direction of the electronic device is correct.
[0110] In this embodiment, the relative position relationship between the electronic device and the device to be found is obtained in real time through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. After the electronic device displays the target screen, if the electronic device detects the relative position relationship between the electronic device and the device to be found obtained by using UWB technology through the processor and determines that the electronic device is approaching the device to be found, the processor of the electronic device generates first prompt information for prompting the electronic device that the current moving direction of the device to be found is correct, so that the user can quickly and accurately find the device to be found, thereby improving the user's experience.
[0111] The first prompt information may be voice prompt information, indicator light prompt information, interface display information, etc., which is not specifically limited here.
[0112] Step S560: When the electronic device is moving away from the device to be found based on the target screen, a second prompt message is generated, wherein the second prompt message is used to prompt that the moving direction of the electronic device is wrong.
[0113] In this embodiment, the relative position relationship between the electronic device and the device to be found is obtained in real time through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found. After the electronic device displays the target screen, if the electronic device detects the relative position relationship between the electronic device and the device to be found obtained by using UWB technology through the processor and determines that the electronic device is moving away from the device to be found, the processor of the electronic device generates a second prompt message for prompting the electronic device that the current moving direction of the device to be found is wrong, so that the user can adjust the moving direction of the device to be found, thereby quickly and accurately finding the device to be found, thereby improving the user's experience.
[0114] The second prompt information may be voice prompt information, indicator light prompt information, interface display information, etc., which is not specifically limited here.
[0115] In this embodiment, when the user searches for the device to be found based on the target screen, prompt information is generated to prompt the user whether the moving direction of the device to be found is correct, so that the user can quickly and accurately find the device to be found, thereby improving the user's experience.
[0116] See also Fig.13 , see Fig.13 , Fig.13 The flowchart of the device search method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. In the embodiment of the present application, the preset position relationship includes a preset relative distance. Fig.13 The process shown is described in detail, and the device search method may specifically include the following steps:
[0117] Step S610: Acquire the device type of the electronic device.
[0118] In this embodiment, the processor of the electronic device obtains the device type of the electronic device, where the device type may be a mobile phone, a smart wearable device, a vehicle, etc.
[0119] Step S620: Obtain the preset relative distance according to the device type.
[0120] In this embodiment, the processor of the electronic device obtains the preset relative distance according to the device type of the electronic device, wherein the preset relative distance is associated with the device type, and the preset relative distances corresponding to different device types may be the same or different.
[0121] Exemplarily, the preset relative distance corresponding to the mobile phone is shorter than the preset relative distance corresponding to the vehicle. Since the vehicle moves faster, the preset relative distance corresponding to the vehicle is longer than the preset relative distance corresponding to the mobile phone to avoid the vehicle missing the device to be found due to the vehicle's excessive speed when the vehicle starts to collect live images at a position where the relative distance between the vehicle and the device to be found is short.
[0122] Step S630: obtaining a relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0123] Step S640: When the relative position relationship satisfies a preset position relationship, a live image is captured by a camera of the electronic device.
[0124] Step S650: Based on the relative position relationship, adding identification information to the live picture to obtain a target picture, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0125] Step S660: Display the target picture.
[0126] In this embodiment, the preset position relationship includes a preset relative distance. The preset relative distance corresponding to the electronic device is obtained through the device type of the electronic device, and then the device search method provided in this embodiment is executed to enable the user to quickly and accurately find the device to be found, thereby improving the user's usage experience.
[0127] See also Fig.14 , Fig.14 The module block diagram of the device search apparatus provided by an embodiment of the present application is shown. The device search apparatus 300 is applied to the above electronic device 100. Fig.14The device search apparatus 300 includes: a relative position acquisition module 310, a live picture acquisition module 320, a picture identification module 330 and a picture display module 340, wherein:
[0128] The relative position acquisition module 310 is used to obtain the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found.
[0129] The live picture acquisition module 320 is used to collect the live picture through the camera of the electronic device when the relative position relationship meets the preset position relationship.
[0130] The picture identification module 330 is used to add identification information to the live picture to obtain a target picture based on the relative position relationship, wherein the identification information is used to identify the position of the device to be found in the live picture.
[0131] The picture display module 340 is used to display the target picture.
[0132] Furthermore, the relative position acquisition module 310 includes: a communication connection submodule and a positioning acquisition submodule, wherein:
[0133] The communication connection submodule is used to establish a communication connection with the preset communication module of the device to be found through the preset communication module of the electronic device.
[0134] A positioning acquisition submodule is used to acquire a first position sent by the device to be found based on the communication connection, wherein the first position is detected and obtained by the positioning module of the device to be found; and to acquire a second position, wherein the second position is detected and obtained by the positioning module of the electronic device.
[0135] Furthermore, the live picture acquisition module 320 includes: a navigation information sending module, wherein:
[0136] The navigation information sending module is used to send position navigation information to the device to be found based on the relative position relationship when the relative position relationship meets the preset position relationship, so as to indicate that the device to be found is close to the electronic device based on the position navigation information.
[0137] Furthermore, the live picture acquisition module 320 further includes: a target position acquisition module and a displacement instruction sending module, wherein:
[0138] A target position acquisition module, used to acquire an input target position when the relative position relationship satisfies a preset position relationship, wherein the target position is located between the position of the electronic device and the position of the device to be found;
[0139] The displacement instruction sending module is used to send a position movement instruction to the device to be found, so as to instruct the device to be found to move to the target position.
[0140] Furthermore, the device search apparatus 300 further includes: a prompt information sending module, wherein:
[0141] A prompt information sending module is used to generate a first prompt information when the electronic device is close to the device to be found based on the target screen, and the first prompt information is used to prompt that the moving direction of the electronic device is correct; or to generate a second prompt information when the electronic device is away from the device to be found based on the target screen, and the second prompt information is used to prompt that the moving direction of the electronic device is wrong.
[0142] Furthermore, the preset position relationship includes a preset relative distance, and the device search apparatus 300 further includes: a device type acquisition module and a preset relative distance acquisition module, wherein:
[0143] The device type acquisition module is used to acquire the device type of the electronic device.
[0144] The preset relative distance acquisition module is used to obtain the preset relative distance according to the device type.
[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0146] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0147] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0148] See also Fig.15, which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 in the present application may include one or more of the following components: a camera 110, a processor 120, a memory 130, and one or more applications, wherein the one or more applications may be stored in the memory 130 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0149] Among them, the processor 120 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 130, and calling data stored in the memory 130. Optionally, the processor 120 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 120 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 120, but implemented separately through a communication chip.
[0150] The memory 130 may include a random access memory (RAM) or a read-only memory (ROM). The memory 130 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 130 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as audio and video data, chat record data) created by the electronic device 100 during use.
[0151] See also Fig.16, which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 400 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0152] The computer readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 410 can be compressed, for example, in an appropriate form.
[0153] To summarize, in the embodiments of the present application, the relative position relationship between the electronic device and the device to be found is obtained through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found, and the camera of the electronic device is controlled to capture the live screen and display the target screen that identifies the position of the device to be found in the live screen, so that the user can get close to the device to be found based on the target screen, and then quickly and accurately find the device to be found, thereby improving the user experience.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device search method, characterized in that: Applied to electronic equipment, the method comprises: Displaying a location sharing screen, in which the location of the device to be found and the location of the electronic device are marked; Obtaining a relative position relationship between the electronic device and the device to be found through an ultra-wideband module of the electronic device and an ultra-wideband module of the device to be found; When the relative position relationship satisfies a preset position relationship, a live picture is collected by a camera of the electronic device, and a live picture with the relative position relationship marked is displayed; When the user holding the device to be found appears in the live picture, the live picture with the relative position relationship and the user holding the device to be found marked is displayed.
2. The method according to claim 1, characterized in that Before displaying the location sharing screen and marking the location of the device to be found and the location of the electronic device in the location sharing screen, the method further includes: Establishing a communication connection with a preset communication module of the device to be found through a preset communication module of the electronic device; Based on the communication connection, the position of the device to be found is obtained, wherein the position of the device to be found is detected and obtained by a positioning module of the device to be found.
3. The method according to claim 2, characterized in that After obtaining the location of the device to be found based on the communication connection, the method further includes: The position of the electronic device is obtained, wherein the position of the electronic device is detected and obtained by a positioning module of the electronic device.
4. The method according to claim 1, characterized in that: The method further comprises: In the case where the relative position relationship satisfies a preset position relationship, based on the relative position relationship, position navigation information is sent to the device to be found, so as to indicate that the device to be found is close to the electronic device based on the position navigation information.
5. The method according to claim 1, characterized in that The method further comprises: In the case where the relative position relationship satisfies a preset position relationship, obtaining an input target position, wherein the target position is located between the position of the electronic device and the position of the device to be found; Sending a position moving instruction to the device to be found to instruct the device to be found to move to the target position.
6. The method according to claim 5, characterized in that The electronic device includes a vehicle, and when the relative position relationship satisfies a preset position relationship, obtaining an input target position includes: When the relative position relationship satisfies a preset position relationship, obtaining the position of the device to be found; In the case where the location of the device to be found does not satisfy the preset parking location, multiple locations to be selected are displayed, wherein the multiple locations to be selected all satisfy the preset parking location; In response to a position selection instruction, the target position is determined from the plurality of positions to be selected.
7. The method according to claim 1, characterized in that The method further comprises: When the electronic device approaches the device to be found based on the relative position relationship, generating first prompt information, wherein the first prompt information is used to prompt that the moving direction of the electronic device is correct; or When the electronic device is away from the device to be found based on the relative position relationship, second prompt information is generated, where the second prompt information is used to prompt that the moving direction of the electronic device is wrong.
8. The method according to any one of claims 1 to 7, characterized in that: The preset position relationship includes a preset relative distance, and the method further includes: Acquire the device type of the electronic device; The preset relative distance is obtained according to the device type.
9. A device search apparatus, characterized in that: Applied to electronic equipment, the device comprises: A relative position acquisition module, used for obtaining the relative position relationship between the electronic device and the device to be found through the ultra-wideband module of the electronic device and the ultra-wideband module of the device to be found; A live picture acquisition module, used for collecting the live picture through the camera of the electronic device when the relative position relationship satisfies the preset position relationship; A screen identification module, used for marking the relative position relationship in the live screen when the relative position relationship satisfies a preset position relationship; when a user holding the device to be found appears in the live screen, marking the relative position relationship and the user holding the device to be found in the live screen; The screen display module is used to display a position sharing screen; when the relative position relationship meets the preset position relationship, a live screen with the relative position relationship marked is displayed; when a user holding the device to be found appears in the live screen, a live screen with the relative position relationship and the user holding the device to be found marked is displayed.
10. An electronic device, characterized in that: include: Camera, used to collect live images; one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 8.
