US-12626388-B2 - Method for location objects in alternative reality, electronic device, and non-transitory storage medium
Abstract
An object location method to obtain location information of an object based on positioning light comprises: emitting a first positioning light, to scan a preset region where the object is located to obtain a characteristic value of each of multiple standard regions in the preset region, wherein the preset region comprises multiple standard regions; determining a basic region where the object is located according to the characteristic value of each standard region, wherein each of the standard region comprises multiple basic regions; and emitting a second positioning light to the basic regions where the object is located and to obtain coordinates of the object. An electronic device and a non-transitory storage medium are also provided.
Inventors
- Chun-Hsiang Huang
- Po-Hsun Huang
Assignees
- HONGFUJIN PRECISION ELECTRONS (YANTAI) CO., LTD.
- HON HAI PRECISION INDUSTRY CO., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20221129
- Priority Date
- 20220711
Claims (13)
- 1 . An object location method applied to an electronic device, the electronic device comprising a first light source, a second light source, a diffractive optical element, a receiver, and a processor, the second light source being connected with the diffractive optical element; the first light source, the second light source, and the receiver being coupled to the processor, the object location method comprising: controlling, by the processor, the first light source to emit a first positioning light, to scan a preset region where the receiver is located to obtain a characteristic value of each of multiple standard regions in the preset region, wherein the preset region comprises the multiple standard regions, the processor obtains the characteristic value of each of multiple standard regions in the preset region according to the first positioning light received by the receiver; constructing, by the processor, a comparison table of regional eigenvalues according to whether the receiver has existed in the multiple standard regions; comparing, by the processor, the characteristic value of each of the multiple standard regions with the comparison table of regional eigenvalues to determine a basic region where the receiver is located, wherein each of the multiple standard regions comprises multiple basic regions; and controlling, by the processor, the second light source to emit a second positioning light to the basic regions where the receiver is located to obtain coordinates of the receiver, wherein the processor obtains the coordinates of the receiver according to the second positioning light received by the receiver.
- 2 . The object location method of claim 1 , wherein the receiver in different basic regions of the same standard region shares a unique characteristic value of the same standard region in the comparison table of regional eigenvalues.
- 3 . The object location method of claim 1 , wherein each of the multiple standard regions comprises at least one unique basic region which is different from a remaining of the basic regions.
- 4 . The object location method of claim 3 , wherein the preset region comprises n*n of the basic regions, and the standard region comprises n*m of the basic regions, n and m are positive integers, and n≥m.
- 5 . The object location method of claim 1 , wherein the second positioning light comprises light spots arranged in an array, and an area swept by the light spots cover the preset region.
- 6 . An electronic device, comprising: a first light source, a second light source, a diffractive optical element, a receiver, and a processor; wherein the second light source is connected with the diffractive optical element; the first light source, the second light source, and the receiver are coupled to the processor; the processor controls the first light source to emit a first positioning light to scan a preset region where the receiver is located, the processor obtains characteristic values of each of multiple standard regions in the preset region according to the first positioning light received by the receiver; and wherein the preset region comprises the multiple standard regions, the processor constructs a comparison table of regional eigenvalues according to whether the receiver has existed in the multiple standard regions; and the processor further compares the characteristic value of each of the multiple standard regions with the comparison table of regional eigenvalues to determine a basic region where the receiver is located, each of the multiple standard regions comprises multiple basic regions, the processor controls the second light source to emit a second positioning light to the basic regions where the receiver is located, the processor obtains coordinates of the receiver according to the second positioning light received by the receiver.
- 7 . The electronic device of claim 6 , further comprising a collimating element arranged between the second light source and the diffractive optical element.
- 8 . The electronic device of claim 6 , wherein the diffractive optical element comprises a diffraction grating, the diffraction grating scatters the second positioning light into light spots arranged in an array, and an area swept by the light spots cover the preset region.
- 9 . A non-transitory storage medium having stored thereon instructions that, when executed by a processor of an electronic device, causes the electronic device to perform an object location method, the electronic device comprising a first light source, a second light source, a diffractive optical element, a receiver, and a processor, the second light source being connected with the diffractive optical element; the first light source, the second light source, and the receiver being coupled to the processor, the object location method comprising: controlling, by the processor, the first light source to emit a first positioning light, to scan a preset region where the receiver is located to obtain a characteristic value of each of multiple standard regions in the preset region, wherein the preset region comprises the multiple standard regions, the processor obtains the characteristic value of each of multiple standard regions in the preset region according to the first positioning light received by the receiver; constructing, by the processor, a comparison table of regional eigenvalues according to whether the receiver has existed in the multiple standard regions; comparing, by the processor, the characteristic value of each of the multiple standard regions with the comparison table of regional eigenvalues to determine a basic region where the receiver is located, wherein each of the multiple standard regions comprises multiple basic regions; and controlling, by the processor, the second light source to emit a second positioning light to the basic regions where the receiver is located to obtain coordinates of the receiver, wherein the processor obtains the coordinates of the receiver according to the second positioning light received by the receiver.
- 10 . The non-transitory storage medium of claim 9 , wherein the receiver in different basic regions of the same standard region shares a unique characteristic value of the same standard region in the comparison table of regional eigenvalues.
- 11 . The non-transitory storage medium of claim 9 , wherein each of the multiple standard regions comprises at least one unique basic region which is different from a remaining of the basic regions.
- 12 . The non-transitory storage medium of claim 11 , wherein the preset region comprises n*n of the basic regions, and the standard region comprises n*m of the basic regions, n and m are positive integers, and n≥m.
- 13 . The non-transitory storage medium of claim 9 , wherein the second positioning light comprises light spots arranged in an array, and an area swept by the light spots cover the preset region.
Description
TECHNICAL FIELD The subject matter herein generally relates to object location. BACKGROUND Application scenarios developed from virtual reality, augmented reality, and mixed reality technology, are more and more extensive. In the application of virtual reality technology, object detection and locating technology is necessary for achieving input of instructions. However, the existing technology for object detection and locating retrieves, locates and returns information within the whole range of objects, which imposes a high computational load. In the existing technology, delays in input are frequent and affect the user experience. BRIEF DESCRIPTION OF THE DRAWINGS Implementations of the present disclosure will now be described, by way of embodiments, with reference to the attached figures. FIG. 1 is a flowchart of an embodiment of a method for locating objects in an alternative reality according to the preset disclosure. FIG. 2 is a flowchart of another embodiment of a method according to the present disclosure. FIG. 3 is a diagram showing divisions of a preset region in the method as shown in FIG. 1. FIG. 4 is a diagram of assigned divisions of the preset region in the method as shown in FIG. 1. FIG. 5 is a diagram showing modules of an electronic device. FIG. 6 is the schematic diagram of a scanning receiver for a second light source of the electronic device of FIG. 5. FIG. 7 is an architecture diagram of another electronic device. DETAILED DESCRIPTION It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one”. Several definitions that apply throughout this disclosure will now be presented. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising,” when utilized, means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in the so-described combination, group, series, and the like. The method for locating objects in an alternative reality scenario is applied in one or more electronic devices. The electronic device is a device that can automatically carry out numerical calculation and/or information processing according to preset or stored instructions. The hardware is not limited to include Microprogrammed Control Unit, Application Specific Integrated Circuit, Field-Programmable Gate Array, Digital Signal Processor, and embedded devices, etc. FIG. 1 illustrates one exemplary embodiment of the method. The flowchart presents an exemplary embodiment of the method. The exemplary method is provided by way of example, as there are a variety of ways to carry out the method. Each block shown in FIG. 1 may represent one or more processes, methods, or subroutines, carried out in the example method. Furthermore, the illustrated order of blocks is illustrative only and the order of the blocks can change. Additional blocks can be added or fewer blocks may be utilized, without departing from this disclosure. The example method can be begin at block S10. In block S10, a first positioning light is emitted to scan a preset region where the object is located to obtain characteristic values of each of multiple standard regions in the preset region, the preset region comprises the multiple standard regions. In one embodiment, the scene is determined according to the basic range of objects, associated with VR, AR, XR and so on. An object can be installed in a handle, glove, or other device held by the user, therefore the mothed can be applied in the continuous tracking and positioning of the handle and other devices in the VR, AR, XR and other scenarios, and determine the user's input instructions through his gestures and track of movements. The laser positioning device in the above system emits a first positioning light to preliminarily locate the object. The large range of the object is defined as a preset region, and the preset region is divided into several standard regions. The first positioning li