A method and system for positioning LED lights of a handle controller based on computer vision

By combining infrared optics and visible light positioning technologies and using computer vision methods to locate the LED lights on the controller, the stability and cost issues of existing VR device positioning methods are solved, achieving highly stable and low-cost VR spatial positioning interaction.

CN113327244BInactive Publication Date: 2024-09-13NANJING QIYUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110708618.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing VR device positioning methods are inadequate in terms of stability, durability, and cost, and lack technology that combines the advantages of all aspects.

Method used

Combining infrared optical positioning technology and visible light positioning technology, computer vision methods are used to acquire two-dimensional images of the handle controller through multiple cameras. The LED lights are located using a sliding window strategy, feature extraction, classifier, and threshold segmentation method. Missegmentation filtering is performed by combining the maximum working range of the ergonomic arm relative to the camera and the principle of similar triangles.

Benefits of technology

It achieves VR spatial positioning interaction with high stability, durability and low cost for the game controller, and can track the position of the game controller in real time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113327244B
    Figure CN113327244B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and system for positioning the LED lights of a handle controller based on computer vision, including: obtaining two-dimensional images of the handle controller in multiple use states through multiple cameras; and positioning the LED lights in the two-dimensional images using computer vision methods. Compared with the prior art, the technical solution of the present invention combines infrared optical positioning technology and visible light positioning technology, and uses computer vision methods to locate and track infrared handles with LED lights in space to realize the spatial positioning interaction function of VR devices, which can track the handle controller in real time and has the advantages of high stability, durability and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of VR space positioning interaction technology, and in particular to a method and system for positioning an LED light of a handle controller based on computer vision. Background Art

[0002] With the development of technology, VR devices are gradually applied to people's lives. Consumers can wear VR head-mounted display devices and hold handle controllers to achieve VR spatial positioning interaction and obtain a good interactive experience.

[0003] However, there are three common positioning methods at present:

[0004] The first is laser positioning. Laser positioning technology is to install several laser-emitting devices in the space, emit lasers in both horizontal and vertical directions to the space, place multiple laser sensing receivers on the located object, and calculate the angle difference between the two beams of light reaching the located object to obtain the three-dimensional coordinates of the object. The advantages of laser positioning technology are high positioning accuracy, no positioning failure due to occlusion, extremely fast response speed, almost no delay, and can support multiple target positioning at the same time, with a relatively wide movable range; the disadvantages are high cost, mechanical control of laser scanning, poor stability and durability.

[0005] The second is infrared positioning. Infrared optical positioning technology is to install multiple infrared emitting cameras in the space to cover the entire space. Infrared reflective points are installed on the surface of the located object. After the infrared light emitted by the camera is reflected by the reflective points, the camera captures the reflected infrared light, and then calculates through subsequent programs to obtain the spatial coordinates of the located object. The advantages of infrared optical positioning technology are low complexity, long service life, easy connection, and relatively low cost; the disadvantages are that it is affected by the camera's viewing angle, the user's range of activities cannot be too large, the use angle is relatively limited, and it does not support the positioning of too many objects.

[0006] The third is visible light positioning. Visible light positioning technology uses visible light through the camera to capture the location information of the tracked object. By installing lights that emit different colors on different tracked objects, the camera captures these color light spots to distinguish different tracked objects and location information. The advantages of visible light positioning technology are low cost, high sensitivity, good stability and durability, and no need for subsequent complex algorithms, and the technical implementation is easy. The disadvantages are that the positioning accuracy is relatively poor, the anti-occlusion performance is poor, and it is sensitive to the surrounding lighting conditions.

[0007] In summary, the existing technologies have application defects to varying degrees in terms of stability, durability, cost, etc., and there is currently a lack of a positioning technology that can take into account the above-mentioned issues. Summary of the invention

[0008] In view of this, an embodiment of the present invention proposes a method and system for positioning the LED light of a handle controller based on computer vision, which combines infrared optical positioning technology and visible light positioning technology, and uses computer vision methods to locate and track an infrared handle with an LED light in space to realize the spatial positioning interaction function of a VR device. It can track the handle controller in real time and has the advantages of high stability, durability and low cost.

[0009] An embodiment of the present invention provides a method for positioning an LED light of a handle controller based on computer vision, comprising:

[0010] Acquire two-dimensional images of the handle controller in multiple usage states through multiple cameras;

[0011] The LED lights in the two-dimensional image are located using computer vision methods.

[0012] Furthermore, in the above-mentioned handle controller LED light positioning method based on computer vision, the positioning of the LED light in the two-dimensional image using a computer vision method includes:

[0013] Traversing the two-dimensional image using a sliding window strategy;

[0014] Perform feature extraction on the two-dimensional image area after each sliding window traversal;

[0015] Use the classifier to classify the extracted features;

[0016] For the area containing the handle controller in the classification result, the imaging of each LED light in the two-dimensional image is calculated by using a threshold segmentation method;

[0017] Filter the images with segmentation errors.

[0018] Furthermore, in the above-mentioned computer vision-based handle controller LED light positioning method, the traversal of the two-dimensional image using a sliding window strategy includes:

[0019] Select the size of the sliding window;

[0020] The two-dimensional image is traversed by using a sliding window, and the overlap of the image scanned by the sliding window each time is half of the shorter side of the window.

[0021] Furthermore, in the above-mentioned handle controller LED light positioning method based on computer vision, the selection of the size of the sliding window includes:

[0022] Calculate the maximum operating range of the ergonomic arm relative to the camera;

[0023] Calculate the size range of the handle controller in the image according to the maximum operating range;

[0024] The size range is divided into a plurality of interval segments, each of the interval segments has a different aspect ratio, and a plurality of sliding windows are formed according to different aspect ratio types.

[0025] Furthermore, in the above-mentioned computer vision-based handle controller LED light positioning method, the feature extraction of the two-dimensional image area after each sliding window traversal includes:

[0026] Design the characteristic pyramid FPN network according to the computing capacity of the application;

[0027] The feature pyramid FPN network is used to extract features from the traversed two-dimensional image area.

[0028] Furthermore, in the above-mentioned computer vision-based handle controller LED light positioning method, the classifying the extracted features using a classifier includes:

[0029] Use support vector machine SVM classifier to classify the extracted features;

[0030] Determining whether the candidate area completely includes the handle controller according to the position of the handle controller in the candidate area;

[0031] If it is not completely contained, the candidate region is discarded.

[0032] Furthermore, in the above-mentioned computer vision-based handle controller LED light positioning method, the imaging of each LED light in the two-dimensional image is calculated using a threshold segmentation method for the area containing the handle controller in the classification result, including:

[0033] Calculating an adaptive threshold for a candidate area including the handle controller, wherein the method for calculating the adaptive threshold comprises:

[0034] The candidate area is segmented by using the adaptive threshold to obtain the imaging of each LED lamp in the two-dimensional image.

[0035] Furthermore, in the above-mentioned computer vision-based handle controller LED light positioning method, filtering the image with segmentation errors includes:

[0036] According to the maximum operating range of the ergonomic arm relative to the camera, the image size and morphological characteristics of the LED light at different distances are counted;

[0037] The mis-segmented images are removed according to the imaging size and morphological features.

[0038] Furthermore, removing the mis-segmented image according to the imaging size and morphological features includes:

[0039] The LED light imaging size and morphological characteristics are used as prior information of LED imaging;

[0040] The distance between the handle controller and the camera is estimated according to the size of the candidate area and the principle of similar triangles, and the imaging size and morphological features corresponding to the distance are obtained from the prior information to remove the mis-segmented image, wherein the distance between the handle controller and the camera is calculated according to the following formula:

[0041] depth = (scale_t*f) / scale_p

[0042] Among them, depth is the distance between the handle controller and the camera, scale_p is the maximum imaging size of the object, scale_t is the maximum size of the object in the real space, and f is the focal length.

[0043] Another embodiment of the present invention provides a handle controller LED light positioning system based on computer vision, comprising:

[0044] An acquisition unit, used for acquiring two-dimensional images of the handle controller in multiple usage states through multiple cameras;

[0045] A positioning calculation unit is used to locate the LED lamp in the two-dimensional image using a computer vision method.

[0046] Yet another embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed, implements the method for supporting multi-dimensional content aggregation display of a VR all-in-one machine.

[0047] The computer vision-based handle controller LED light positioning method and system proposed in the embodiment of the present invention include: first, obtaining two-dimensional images of the handle controller in multiple usage states through multiple cameras, and the combination of multiple cameras can expand the field of view of the VR device and can completely capture the imaging of the handle controller during movement; then using computer vision methods to locate the LED lights in the two-dimensional image, and completing the spatial positioning of the LED lights by calculating the relationship between the imaging of the LED lights on the controller and the camera, thereby realizing the spatial positioning of the handle controller and real-time tracking of the handle controller, which has the advantages of high stability, durability and low cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0049] Figure 1 A schematic diagram of the process of the method for positioning the LED light of a handle controller based on computer vision according to an embodiment of the present invention is shown;

[0050] Figure 2 A schematic diagram of the process of step S102 of an embodiment of the present invention is shown;

[0051] Figure 3 A schematic diagram of the process of step S201 of an embodiment of the present invention is shown;

[0052] Figure 4 A schematic diagram of the process of step S301 of an embodiment of the present invention is shown;

[0053] Figure 5 A schematic diagram of the process of step S202 of an embodiment of the present invention is shown;

[0054] Figure 6 A schematic diagram showing a method of removing an erroneously segmented image according to an embodiment of the present invention is shown;

[0055] Figure 7 A schematic diagram of the structure of a handle controller LED light positioning system based on computer vision according to an embodiment of the present invention is shown.

[0056] Description of main component symbols:

[0057] 10-acquisition unit; 20-positioning calculation unit. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0059] Example 1

[0060] The embodiment of the present invention focuses on solving the problem of positioning the LED lights on the handle controller. In the VR spatial positioning interaction system, the two-dimensional image corresponding to the handle controller is captured by an external camera, and the coordinates of the LED lights on the handle controller in the two-dimensional image are located by using computer vision methods, and then the LED lights are three-dimensionally modeled to achieve real-time tracking of the handle controller, thereby completing the VR spatial positioning interaction. The number of LED lights of the handle controller involved in the embodiment of the present invention is not less than 5, and it is an infrared handle.

[0061] Please refer to Figure 1 This embodiment proposes a method for positioning LED lights of a handle controller based on computer vision, including:

[0062] Step S101, obtaining two-dimensional images of the handle controller in multiple usage states through multiple cameras;

[0063] Step S102, using computer vision methods to locate the LED lights in the two-dimensional image.

[0064] Specifically, due to the limited viewing angle of the camera, a single camera cannot fully capture the image of the handle during movement. Multiple cameras can expand the field of view FOV of the VR device. Therefore, the embodiment of the present invention obtains multiple two-dimensional images corresponding to the handle controller through multiple cameras. Generally, the number of cameras is appropriate to ensure the FOV requirement range of the VR device up, down, left, and right.

[0065] For example, refer to Figure 2 , step S102 includes:

[0066] Step S201, traversing the two-dimensional image using a sliding window strategy;

[0067] Step S202, performing feature extraction on the two-dimensional image area after each sliding window traversal;

[0068] Step S203, classifying the extracted features using a classifier;

[0069] Step S204, for the area containing the handle controller in the classification result, the imaging of each LED light in the two-dimensional image is calculated by using a threshold segmentation method;

[0070] Step S205: filtering the images with segmentation errors.

[0071] Specifically, in the embodiment of the present invention, the number of LED lights n of the infrared handle controller used for positioning is more than 5 to assist in the subsequent 3D modeling work. The 2D image area in step S202 refers to the area identified after the sliding window traversal of the 2D image.

[0072] For example, refer to Figure 3 , step S201 includes:

[0073] Step S301, selecting the size of the sliding window;

[0074] Step S302, traversing the two-dimensional image using a sliding window, each time the sliding window scans the image, the overlap degree is half of the shorter side of the window.

[0075] For example, refer to Figure 4, step S301 includes:

[0076] Step S401, counting the maximum operating range of the ergonomic arm relative to the camera;

[0077] Step S402, calculating the size range of the handle controller in the two-dimensional image according to the maximum operating range;

[0078] Step S403: divide the size range into a plurality of interval segments, each interval segment having a different aspect ratio, and form a plurality of sliding windows according to different aspect ratio types.

[0079] Specifically, since the controller is at different distances and angles from the camera during movement, the imaging of the controller in the two-dimensional image has different scales and postures, so there are high requirements for the selection of the sliding window.

[0080] By counting the maximum operating range of the ergonomic arm relative to the camera, it can be known that the maximum linear operating range of an average person's arm relative to the camera is 0-100 cm. According to the distance between the camera and the handle controller, the imaging scale of the controller changes significantly every 20 cm. Accordingly, the embodiment of the present invention designs 5 ratio divisions for this purpose. The 5 ratio divisions can form 9 aspect ratios, namely 1:1; 1:2, 1:3, 1:4, 1:5; 2:3, 2:5; 3:5; 4:5. The 9 aspect ratios can be expanded to 18 scales. By counting the maximum operating range of the ergonomic arm relative to the camera, the scale range (C1, C2) of the controller in the image is calculated. In order to cover targets of different scales more finely, (C1, C2) is divided into 10 intervals, each of which corresponds to 18 ratios, so a total of 180 sliding windows are included. A total of 180 sliding windows can be set to traverse the two-dimensional image. The overlap of each sliding window scanning image is half of the shorter side of the window, which can ensure that the scanning window contains the controller with a greater probability and satisfies the controller in the center of the scanning window.

[0081] For example, refer to Figure 5 , step S202 includes:

[0082] Step S501, designing a characteristic pyramid FPN network according to the computing capacity of the application;

[0083] Step S502, using the feature pyramid FPN network to extract features from the traversed two-dimensional image area.

[0084] Specifically, since the imaging size and morphology of the controller corresponding to different image areas are different, the general network can only perform network training on pictures of the same size, which has great application limitations. In order to better meet the needs of pictures of different sizes, the embodiment of the present invention constructs a smaller feature pyramid FPN network to adapt to pictures of more sizes, and then perform feature extraction. In addition, since it is necessary to achieve real-time tracking of the controller, the timeliness of the calculation is relatively high, so a pyramid FPN network is used to extract features from the image, which can effectively extract image features while taking into account the multi-scale information of the target. It should be noted that since neural networks are accompanied by a large amount of calculations, it is necessary to design an FPN network of appropriate size according to the computing capacity required by the application itself for positioning the handle LED light.

[0085] Exemplarily, step S203 includes:

[0086] Use support vector machine SVM classifier to classify the extracted features;

[0087] Determining whether the candidate area completely includes the handle controller according to the position of the handle controller in the candidate area;

[0088] If it is not completely contained, the candidate region is discarded.

[0089] Specifically, the extracted features are classified using an SVM classifier to determine whether the candidate region contains the controller. When the candidate region only contains a portion of the controller, the candidate region is not considered to contain the controller. In the embodiment of the present invention, no additional processing is required for the SVM classifier, and only the category of the sample needs to be specified in the process of making the training set.

[0090] Exemplarily, step S204 includes:

[0091] Calculating an adaptive threshold for the candidate area including the handle controller, wherein the adaptive threshold calculation method includes, but is not limited to, the big law method;

[0092] The candidate area is segmented by using an adaptive threshold to obtain an image of each LED lamp in the two-dimensional image.

[0093] Specifically, after the candidate area including the controller is determined through the aforementioned process, an adaptive threshold is calculated for the candidate area, and the adaptive threshold is used to perform threshold segmentation on the candidate area to obtain the imaging of each LED lamp in the two-dimensional image.

[0094] Exemplarily, step S205 includes:

[0095] According to the maximum operating range of the ergonomic arm relative to the camera, the image size and morphological characteristics of the LED light at different distances are counted;

[0096] Remove mis-segmented images based on imaging size and morphological features.

[0097] Specifically, due to the poor robustness of traditional threshold segmentation, more mis-segmented targets will be generated. The size of the candidate area combined with the camera parameters can be used to estimate the distance between the controller and the camera. The LED image close to the camera is large, and the LED image far from the camera is small. According to the maximum operating range of the ergonomic arm relative to the camera, the size and morphological characteristics of the LED image at different distance stages are statistically analyzed. The embodiment of the present invention removes mis-segmented targets through scale thresholds and morphological thresholds. The results of filtering out erroneous detections can be referred to. Figure 6 To understand. Figure 6 In the equation, o is the center of the camera aperture, scale_p is the maximum scale of the object in the image plane, scale_t is the maximum scale of the object in the real space, f is the focal length, and depth is the distance of the object from the camera in the real space. According to the similar triangle principle of camera imaging, (depth / f) = (scale_t) / scale_p, we can get depth = (scale_t*f) / scale_p. According to the maximum operating range of the ergonomic arm relative to the camera, multiple images are collected, and the imaging size and shape of the LED corresponding to different distances are counted as the prior information of LED imaging. The depth of the distance between the controller and the camera can be estimated through the size of the candidate area, and then the imaging size and shape corresponding to the current depth are obtained from the prior information, thereby removing the mis-segmented targets.

[0098] The computer vision-based positioning method for the LED light of a handle controller proposed in an embodiment of the present invention first obtains two-dimensional images of the handle controller in multiple usage states through multiple cameras. The combination of multiple cameras can expand the field of view of the VR device and can fully capture the imaging of the handle controller during movement; through the operable range of the ergonomic arm, sliding windows with different aspect ratios and different scales are designed to traverse the two-dimensional image, and for the candidate area obtained by the sliding window traversal, feature extraction is performed through a relatively small FPN network to achieve image training, and the extracted features are classified using an SVM classifier to obtain a candidate area containing the controller, and according to the size of the candidate area, the distance between the handle controller and the camera is estimated, and then the spatial positioning of the LED light is completed by calculating the relationship between the imaging of the LED light on the controller and the camera, thereby achieving spatial positioning of the handle controller and real-time tracking of the handle controller, which has the advantages of high stability, durability and low cost.

[0099] Embodiment 2:

[0100] Reference Figure 7 , a handle controller LED light positioning system based on computer vision, comprising:

[0101] An acquisition unit 10 is used to acquire two-dimensional images of the handle controller in multiple usage states through multiple cameras;

[0102] The positioning calculation unit 20 is used to locate the LED lights in the two-dimensional image using a computer vision method.

[0103] It can be understood that the above-mentioned handle controller LED light positioning system based on computer vision corresponds to the handle controller LED light positioning method based on computer vision in Example 1. Any optional items in Example 1 are also applicable to this embodiment and will not be described in detail here.

[0104] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A handle controller LED light positioning method based on computer vision, characterized in that: include: Acquire two-dimensional images of the handle controller in multiple usage states through multiple cameras; Using computer vision methods to locate the LED lights in the two-dimensional image; wherein, The method of using computer vision to locate the LED lights in the two-dimensional image includes: traversing the two-dimensional image using a sliding window strategy; extracting features from the two-dimensional image area after each sliding window traversal; classifying the extracted features using a classifier; for the area containing the handle controller in the classification result, calculating the imaging of each LED light in the two-dimensional image using a threshold segmentation method; and filtering images with segmentation errors. The traversing the two-dimensional image by using a sliding window strategy comprises: Select the size of the sliding window; The two-dimensional image is traversed by using a sliding window, and the overlap of the image scanned by the sliding window each time is half of the shorter side of the window; The selection of the size of the sliding window includes: counting the maximum operating range of the ergonomic arm relative to the camera; calculating the size range of the handle controller in the image based on the maximum operating range; dividing the size range into multiple intervals, each of the intervals having a different aspect ratio, and forming multiple sliding windows according to different aspect ratio types.

2. The method for positioning LED lights of a handle controller based on computer vision according to claim 1, characterized in that: The feature extraction of the two-dimensional image area after each sliding window traversal comprises: Design the characteristic pyramid FPN network according to the computing capacity of the application; The feature pyramid FPN network is used to extract features from the traversed two-dimensional image area.

3. The method for positioning LED lights of a handle controller based on computer vision according to claim 2, characterized in that: The classifying the extracted features by using a classifier comprises: Use support vector machine SVM classifier to classify the extracted features; Determining whether the candidate area completely includes the handle controller according to the position of the handle controller in the candidate area; If it is not completely contained, the candidate region is discarded.

4. The method for positioning LED lights of a handle controller based on computer vision according to claim 3, characterized in that: The method of calculating the image of each LED light in the two-dimensional image by using a threshold segmentation method for the area containing the handle controller in the classification result includes: Calculating an adaptive threshold for a candidate area including the handle controller, wherein the method for calculating the adaptive threshold comprises: The candidate area is segmented by using the adaptive threshold to obtain the imaging of each LED lamp in the two-dimensional image.

5. The method for positioning LED lights of a handle controller based on computer vision according to claim 4, characterized in that: The filtering of the segmentation error image comprises: According to the maximum operating range of the ergonomic arm relative to the camera, the image size and morphological characteristics of the LED light at different distances are counted; The mis-segmented images are removed according to the imaging size and morphological features.

6. The method for positioning LED lights of a handle controller based on computer vision according to claim 5, characterized in that: The removing of mis-segmented images according to the imaging size and morphological features comprises: The LED light imaging size and morphological characteristics are used as prior information of LED imaging; The distance between the handle controller and the camera is estimated according to the size of the candidate area and the principle of similar triangles, and the imaging size and morphological features corresponding to the distance are obtained from the prior information to remove the mis-segmented image, wherein the distance between the handle controller and the camera is calculated according to the following formula: depth = (scale_t*f) / scale_p Among them, depth is the distance between the handle controller and the camera, scale_p is the maximum imaging size of the object, scale_t is the maximum size of the object in the real space, and f is the focal length.

7. A handle controller LED light positioning system based on computer vision, characterized in that: include: An acquisition unit, used for acquiring two-dimensional images of the handle controller in multiple usage states through multiple cameras; A positioning calculation unit is used to locate the LED lights in the two-dimensional image using a computer vision method: extract features from the two-dimensional image area after each sliding window traversal; classify the extracted features using a classifier; and calculate the imaging of each LED light in the two-dimensional image using a threshold segmentation method for the area containing the handle controller in the classification result; Filter the images with segmentation errors; Using a sliding window strategy to traverse the two-dimensional image includes: selecting the size of the sliding window; traversing the two-dimensional image using the sliding window, and each time the sliding window scans the image, the overlap is half of the shorter side of the window; the selection of the sliding window size includes: counting the maximum operating range of the ergonomic arm relative to the camera; calculating the size range of the handle controller in the image based on the maximum operating range; dividing the size range into multiple intervals, each of the intervals has a different aspect ratio, and forming multiple sliding windows according to different aspect ratio types.