Image information determination method and device, electronic equipment and computer medium
By controlling the light source emission and the combination of single-pixel cameras, the problem of low positioning accuracy of visual SLAM in high-speed motion and dark scenes is solved, and more efficient image information capture and map construction are achieved.
Patent Information
- Application Number
- CN202310195903.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
Existing visual SLAM technology is prone to motion blur and motion discontinuity in high-speed motion scenes, and cannot extract enough feature points in dark scenes, resulting in low positioning accuracy and map construction accuracy.
It uses a controlled light source and a single-pixel camera to project light to the target object through the projection unit. It uses the modulation unit and the single-pixel barrel detector to obtain the modulation results and detection results of the reflected light, quickly capture the motion information of the target object, and improve imaging capabilities and Detection effect in dark scenes.
It improves the imaging capabilities of high-speed moving targets, enhances detection accuracy in dark scenes, provides more accurate image information, and improves the accuracy of feature extraction, matching and map construction.
Smart Images

Figure CN118565445A
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of image processing, and in particular relates to a method, device, electronic device and computer medium for determining image information. Background Art
[0002] Simultaneous localization and mapping (SLAM) technology assumes that the robot starts from an unknown point, obtains features in the environment through sensors during movement, estimates its position and posture by correcting and comparing repeated features, and incrementally builds a map of the environment.
[0003] Visual SLAM usually uses multiple visible light cameras to collect texture information in the environment, extract feature points and match them, thereby achieving real-time positioning and map construction in unknown environments.
[0004] In order to improve positioning accuracy, visual SLAM requires that the input image should have good and stable image quality so that as many and stable matching feature points as possible can be obtained from the image. However, the visible light cameras currently used in visual SLAM are limited by exposure time and frame rate, and are usually unable to avoid problems such as motion blur and motion discontinuity in high-speed motion scenes. At the same time, passive acquisition methods cannot extract enough feature points for back-end tracking and positioning in dark scenes, resulting in performance bottlenecks in existing visual SLAM. Summary of the invention
[0005] The embodiments of the present disclosure provide an implementation scheme different from the prior art to solve the technical problem of low accuracy of visual SLAM real-time positioning and / or map construction in the related art.
[0006] In a first aspect, the present disclosure provides a method for determining image information, comprising:
[0007] Controlling the light source to emit light so that the light is projected onto the surface of the target object through the projection unit;
[0008] Acquire a modulation result of the reflected light after the light is projected onto the target object and passes through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0009] The first image information of the target object is determined according to the modulation result and the detection result.
[0010] In a second aspect, the present disclosure provides an image information determination device, applicable to a head mounted display device, comprising:
[0011] A control unit, used to control the light source to emit light so that the light is projected onto the surface of the target object through the projection unit;
[0012] an acquisition unit, used to acquire a modulation result of the reflected light after the light is projected onto the target object through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0013] A determination unit is used to determine first image information of the target object according to the modulation result and the detection result.
[0014] In a third aspect, the present disclosure provides an electronic device, including:
[0015] Processor; and
[0016] A memory, configured to store executable instructions of the processor;
[0017] The processor is configured to execute any method in the first aspect or any possible implementation manner of the first aspect by executing the executable instructions.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the first aspect and any one of the methods in the possible implementation modes of the first aspect.
[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the first aspect and any one of the methods in the possible implementation modes of the first aspect.
[0020] The present disclosure provides a method for controlling the light source to emit light, so that the light is projected onto the surface of a target object through a projection unit; obtaining a modulation result of reflected light after the light is projected onto the target object and passing through a modulation unit, as well as a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit; determining a first image information of the target object according to the modulation result and the detection result, and using a single-pixel bucket detector to quickly obtain the detection result, so as to more efficiently capture the motion information of the target object, thereby improving the imaging capability of high-speed moving targets; in addition, the active irradiation method of the light source and the higher sensitivity of the single-pixel detector can enhance the detection effect in dark scenes, thereby improving the accuracy of the image information of the target object, providing more accurate data for subsequent feature extraction, matching and map construction, and improving the accuracy of real-time positioning and / or map construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0022] Figure 1 A schematic diagram of a scenario of a method for determining image information provided by an embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram of a flow chart of a method for determining image information provided by an embodiment of the present disclosure;
[0024] Figure 3 A flowchart of a method for determining image information provided by an exemplary embodiment of the present disclosure;
[0025] Figure 4 A flowchart of a map construction method provided by an exemplary embodiment of the present disclosure;
[0026] Figure 5 A schematic diagram of the structure of an image information determination device provided by an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, but should not be understood as limiting the present disclosure.
[0029] The terms "first" and "second" and the like in the specification, claims, and drawings of the disclosed embodiments are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the disclosed embodiments described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0030] First, some terms in the embodiments of the present disclosure are explained below to facilitate understanding by those skilled in the art.
[0031] Spatial Light Modulator: SLM for short, means that under active control, it can modulate a certain parameter of the light field through liquid crystal molecules, such as by modulating the amplitude of the light field, modulating the phase through the refractive index, modulating the polarization state through the rotation of the polarization plane, or realizing the conversion of incoherent to coherent light, so as to write certain information into the light wave and achieve the purpose of light wave modulation.
[0032] Digital Micromirror Devices, or DMD for short, is an optical micro-electrical-mechanical system (MEMS) with electronic input and optical output. It consists of many small aluminum reflective mirrors, each of which is called a pixel.
[0033] Hadamard product: Hadamard product is a type of matrix operation. If A = (aij) and B = (bij) are two matrices of the same order, and if cij = aij × bij, then the matrix C = (cij) is called the Hadamard product of A and B, or the basic product.
[0034] Toeplitz matrix, full name diagonal-constant matrix, also known as Toeplitz matrix, refers to the matrix in which the elements on each diagonal line from the upper left to the lower right are the same.
[0035] Features from accelerated segment test, referred to as FAST algorithm, is a corner detection method that can be used to extract feature points and complete tracking and mapping objects.
[0036] Harris corner detection algorithm is a corner point extraction algorithm. The algorithm idea is that if a small deviation of a point in any direction can cause a large change in grayscale, the point is considered to be a corner point. A corner point response function is defined, and whether a pixel is a corner point is determined by determining the size of the corner point response value.
[0037] The BRIEF algorithm is a feature descriptor extraction algorithm. The algorithm idea is to select multiple point pairs around the key point P in a certain pattern and combine the gray value comparison results of the multiple point pairs as descriptors.
[0038] The Hamming distance represents the number of different characters in corresponding positions of two strings (of the same length). The two strings are XORed and the number of results that are 1 is counted. This number is the Hamming distance.
[0039] Brute force matching algorithm: compare the first character of the target string with the first character of the pattern string. If they are equal, continue to compare the characters. Otherwise, recompare the target string with the first character of the pattern string from the second character until each character in the pattern string is equal to a continuous sequence of characters in the target string. This is called a successful match, otherwise a failed match.
[0040] Random Access Memory (RAM), also called main memory, is internal memory that directly exchanges data with the CPU.
[0041] Simultaneous localization and mapping (SLAM) technology assumes that the robot starts from an unknown point, obtains features in the environment through sensors during movement, estimates its position and posture by correcting and comparing repeated features, and incrementally builds a map of the environment.
[0042] Visual SLAM usually uses multiple visible light cameras to collect texture information in the environment, extract feature points and match them, thereby achieving real-time positioning and map construction in unknown environments.
[0043] In order to improve positioning accuracy, visual SLAM requires that the input image should have good and stable image quality so that as many and stable matching feature points as possible can be obtained from the image. However, the visible light cameras currently used in visual SLAM are subject to exposure time and frame rate, and are usually unable to avoid problems such as motion blur and discontinuous motion in high-speed motion scenes. At the same time, the passive acquisition method cannot extract enough feature points for back-end tracking and positioning in dark scenes, resulting in performance bottlenecks in existing visual SLAM. The present disclosure provides an image information determination method, device, electronic device and computer medium for solving the technical problem of low accuracy of visual SLAM real-time positioning and / or map construction in related technologies.
[0044] The following specific embodiments are used to describe in detail the technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0045] Figure 1 A schematic diagram of a scene of an image information determination method provided by an exemplary embodiment of the present disclosure, in which a terminal device and a target object are involved, wherein the terminal device may be a robot or a wearable device, such as a head-mounted display device, etc., and the terminal device is provided with a single-pixel camera, such as Figure 1 The device shown may include: a light source, a projection unit, a modulation unit, and a single-pixel bucket detector. The single-pixel camera can control the light source to emit light through a control unit, so that the light is projected onto the surface of the target object through the projection unit; obtain the modulation result of the reflected light after the light is projected onto the target object through the modulation unit, and the detection result of the reflected light detected by the single-pixel bucket detector after passing through the modulation unit; and determine the first image information of the target object according to the modulation result and the detection result through the control unit. After obtaining the first image information, the terminal device further constructs a map based on the first image information.
[0046] The execution principle and interaction process of each component unit in this embodiment can be found in the description of the following method embodiments.
[0047] Figure 2 A flowchart of a method for determining image information provided by an exemplary embodiment of the present disclosure is provided. The method may be applicable to a single-pixel camera, which may be provided on a head-mounted display device. The method at least includes the following steps S201-S203:
[0048] S201, controlling the light source to emit light so that the light is projected onto the surface of the target object through the projection unit;
[0049] In some embodiments, the light source may be disposed in a single-pixel camera, and the single-pixel camera may be disposed on a head-mounted display device.
[0050] In some embodiments, the light source may actively emit continuous or pulsed light, and the light source may be one or more.
[0051] In some embodiments, the type of the light source may be a white light source or a monochromatic light source, etc., depending on the spectral coverage; the type of the light source may be a light emitting diode (LED) light source or a laser light source, etc., depending on the light emitting type.
[0052] Since the wavelength of the light source is not limited to visible light and covers a wide range (350-1200nm), environmental information can be extracted well in dark scenes.
[0053] The embodiment of the present disclosure does not specifically limit the type and quantity of light sources, and the type and quantity of light sources can be selected according to different measurement requirements.
[0054] In some embodiments, the projection unit may include a lens assembly that can project light onto a surface of a target object.
[0055] S202, obtaining a modulation result of the reflected light after the light is projected onto the target object passing through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0056] In some embodiments, the modulation device may include RAM, and its modulation rate (which may be greater than 1 MHz) may be much higher than the camera acquisition rate (eg, 60 Hz).
[0057] In some embodiments, the modulation unit may include a modulation device and a collimator, wherein the modulation device may include at least one of the following: an SLM, a DMD, a random phase mask, and the like.
[0058] The modulation device is used to apply amplitude and / or phase modulation to light to form distributed controllable modulation. The specific modulation methods include but are not limited to any of the following: Hadamard product, Toeplitz matrix, Gaussian function.
[0059] In some optional embodiments provided in the present disclosure, the modulation result includes a plurality of sub-modulation results, the detection result includes a plurality of sub-detection results, and the sub-modulation results correspond to the sub-detection results one by one.
[0060] In some embodiments, the multiple sub-modulation results may be multiple arrays of dimensions W*H, where W may refer to columns and H may refer to rows.
[0061] In some embodiments, the plurality of sub-detection results may be a plurality of arrays with a dimension of 1.
[0062] In some embodiments, the single-pixel bucket detector can also be a small-scale sparse array. The single-pixel bucket detector or small-scale sparse array has a higher information transmission bit width (bit), that is, a higher dynamic range, and a lower total bandwidth occupancy (because there are fewer pixels), so it can more efficiently capture the motion information of the target object and image the target object or high-speed motion scene.
[0063] S203: Determine first image information of the target object according to the modulation result and the detection result.
[0064] In some optional embodiments provided by the present disclosure, in S203, determining the first image information of the target object according to the modulation result and the detection result includes S301-S302:
[0065] S301, obtaining the number of multiple sub-modulation results;
[0066] S302: Determine first image information of the target object according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results.
[0067] In some embodiments, in S302, determining the first image information of the target object according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results may include S401-S405:
[0068] S401. For each sub-modulation result of the multiple sub-modulation results, determine a first product of the sub-modulation result and a sub-detection result corresponding to the sub-modulation result to obtain multiple first products;
[0069] S402, determining a first arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of first products;
[0070] S403, determining a second arithmetic mean value according to the number of the multiple sub-modulation results and the multiple sub-modulation results;
[0071] S404, determining a third arithmetic mean according to the number of the multiple sub-modulation results and the multiple sub-detection results;
[0072] S405: Determine first image information of the target object based on the first arithmetic mean, the second arithmetic mean, and the third arithmetic mean.
[0073] In some embodiments, in S405, determining the first image information of the target object based on the first arithmetic mean, the second arithmetic mean, and the third arithmetic mean includes:
[0074] determining a second product of the second arithmetic mean and the third arithmetic mean;
[0075] determining a first ratio of the first arithmetic mean to the second product;
[0076] The first image information of the target object is determined according to the first ratio, wherein the first ratio is a pixel value matrix of the first image information.
[0077] In some embodiments, the pixel value matrix T(x, y) (first ratio) of the first image information can be expressed as:
[0078]
[0079] In the above formula, “<>” represents averaging, N is the number of multiple sub-modulation results, I(x, y; n) is the nth sub-modulation result among the multiple sub-modulation results, wherein n represents the sequence number of the sub-modulation result, 1≤n≤N; B(n) is the nth sub-detection result, and (x, y) refers to the pixel position.
[0080] Further, see Figure 3 , Figure 3 A flow chart of an image information determination method provided for an exemplary embodiment of the present disclosure, wherein a modulation result includes multiple sub-modulation results, and a detection result includes multiple sub-detection results. The present application can determine the first image information of the target object based on the multiple sub-modulation results and the multiple sub-detection results.
[0081] The present disclosure provides a method for controlling the light source to emit light, so that the light is projected onto the surface of a target object through a projection unit; obtaining a modulation result of reflected light after the light is projected onto the target object and passing through a modulation unit, as well as a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit; determining a first image information of the target object according to the modulation result and the detection result, and using a single-pixel bucket detector to quickly obtain the detection result, so as to more efficiently capture the motion information of the target object, thereby improving the imaging capability of high-speed moving targets; in addition, the active irradiation method of the light source and the higher sensitivity of the single-pixel detector can enhance the detection effect in dark scenes, thereby improving the accuracy of the image information of the target object, providing more accurate data for subsequent feature extraction, matching and map construction, and improving the accuracy of real-time positioning and / or map construction.
[0082] In some optional embodiments provided by the present disclosure, with respect to the processing of the first image information, the method further includes S1-S4:
[0083] S1. Perform feature extraction on the first image information to obtain a first extraction result corresponding to the first image information;
[0084] In some embodiments, before performing S1 to extract features from the first image information to obtain a first extraction result corresponding to the first image information, the first image information may be preprocessed. For the preprocessing process, the method further includes:
[0085] The first image information is processed in blocks to obtain processed first image information, where the processed image information includes a plurality of sub-image information, for example, 20*20 sub-image information.
[0086] The above preprocessing process can make the first target feature points determined subsequently to be feature points evenly distributed in the first image information, thereby improving the accuracy of subsequent matching results.
[0087] In some embodiments, if the above-mentioned preprocessing process is performed on the first image information, then in S1, feature extraction is performed on the first image information to obtain a first extraction result corresponding to the first image information. Feature extraction may be performed on the processed first image information to obtain a first extraction result corresponding to the first image information.
[0088] In some embodiments, the first extraction result includes a plurality of first target feature points.
[0089] In some embodiments, in S1, feature extraction is performed on the first image information to obtain a first extraction result corresponding to the first image information, including S11-S15:
[0090] S11, using a first preset algorithm to perform feature point detection on the first image information to obtain a plurality of initial feature points in the first image information;
[0091] In some embodiments, the first preset algorithm may be a FAST algorithm.
[0092] S12, determining a plurality of response values corresponding to the plurality of initial feature points according to a second preset algorithm, wherein the initial feature points correspond to the response values one by one;
[0093] In some embodiments, the second preset algorithm may be a Harris corner detection algorithm.
[0094] S13, determining reference image information according to the multiple sub-modulation results and multiple target sub-modulation results corresponding to the central pixel of the modulation unit;
[0095] In some embodiments, in S13, according to the multiple sub-modulation results and the multiple target sub-modulation results corresponding to the central pixel of the modulation unit, the reference image information is determined, including S131-S136:
[0096] S131, for each sub-modulation result among the multiple sub-modulation results, obtaining a target sub-modulation result corresponding to the sub-modulation result among multiple target sub-modulation results corresponding to a pixel at the center of the modulation unit;
[0097] S132, determining a third product of the sub-modulation result and the target sub-modulation result, to obtain a plurality of third products corresponding to the plurality of sub-modulation results, wherein the sub-modulation result, the target sub-modulation result and the third products correspond one to one;
[0098] In some embodiments, the center of the modulation unit may be the center of the field of view of the SLM. For example, if the total resolution of the SLM is (960, 1280), the center of the modulation unit may be expressed as (480, 640).
[0099] S133, determining a fourth arithmetic mean of the plurality of third products based on the number of the plurality of sub-modulation results and the plurality of third products;
[0100] S134, determining a fifth arithmetic mean of the plurality of target sub-modulation results based on the number of the plurality of sub-modulation results and the plurality of target sub-modulation results;
[0101] S135, obtaining a second arithmetic mean value, wherein the second arithmetic mean value is the arithmetic mean value of the multiple sub-modulation results, and the second arithmetic mean value may be obtained based on the above S403;
[0102] S136. Determine reference image information according to the second arithmetic mean, the fourth arithmetic mean, and the fifth arithmetic mean.
[0103] In some embodiments, in S136, determining reference image information according to the second arithmetic mean, the fourth arithmetic mean, and the fifth arithmetic mean includes:
[0104] determining a fourth product of the second arithmetic mean and the fifth arithmetic mean;
[0105] determining a second ratio of the fourth arithmetic mean and the fourth product;
[0106] The reference image information is determined according to the second ratio, wherein the second ratio is a pixel value matrix of the reference image information.
[0107] In some embodiments, the pixel value matrix T0(x, y) of the reference image information can be expressed as:
[0108]
[0109] Among them, N can represent the number of the multiple sub-modulation results, or the number of multiple target sub-modulation results, I(x0, y0; n) represents the nth target sub-modulation result among the multiple target sub-modulation results, 1≤n≤N, (x, y) refers to the pixel position, and (x0, y0) refers to the pixel position of the center of the modulation unit.
[0110] S14, processing the reference image information according to a preset rule to obtain processed reference image information;
[0111] In some embodiments, the preset rule may be: performing zero-point truncation and normalization processing on the function corresponding to the pixel value matrix of the reference image information.
[0112] In some embodiments, the size of the processed reference image information may be 15*15.
[0113] In some embodiments, the pixel values of the normalized reference image information are all in the interval [0, 1].
[0114] S15, sorting the multiple response values to obtain a first sorting result;
[0115] Specifically, the multiple response values may be sorted from large to small, or from small to large.
[0116] S16. Determine a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information, and obtain a first extraction result corresponding to the first image information.
[0117] In some embodiments, in S16, determining a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information includes:
[0118] S161. Acquire, according to the first sorting result, a reference feature point corresponding to a maximum response value among the multiple response values, and first position information of the reference feature point in the first image information;
[0119] In some embodiments, the reference feature points are included in the aforementioned multiple initial feature points.
[0120] S162, adding the reference feature point to a feature point set corresponding to the first image information;
[0121] S163, determining whether the number of reference feature points in the feature point set reaches a preset number, if so, using the reference feature points in the feature point set as a plurality of first target feature points in a plurality of initial feature points, if not, executing the following S164-S166:
[0122] S164, obtaining image size information of the processed reference image information;
[0123] S165, determining a target image area in the first image information according to the image size information;
[0124] In some embodiments, in S165, determining the target image area in the first image information according to the image size information includes the following S1651-S1653:
[0125] S1651, taking first position information of the reference feature point in the first image information as a reference center;
[0126] S1652, acquiring an image region in the first image information, which is centered at the reference center and has a region size that is the same as the image size information;
[0127] S1653: Determine the image area as a target image area in the first image information.
[0128] S166. Determine a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information.
[0129] In some embodiments, in S166, determining a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information includes the following S1661-S1664:
[0130] S1661, for each second position information in at least one second position information corresponding to at least one first feature point other than the reference feature point in the target image area, determine a pixel value corresponding to third position information corresponding to the second position information in the processed reference image information;
[0131] S1662: Determine a second product of a response value corresponding to the second position information and a pixel value corresponding to the third position information to obtain at least one second product corresponding to the at least one second position information;
[0132] S1663: Use the at least one second product as at least one updated response value corresponding to the at least one first feature point, wherein the second product corresponds to the updated response value in a one-to-one manner;
[0133] S1664. Sort the remaining response values among the multiple response values except the maximum response value and the at least one updated response value with the at least one updated response value to obtain a new first sorting result, and return to execute determining multiple first target feature points among the multiple initial feature points based on the first sorting result and the processed reference image information to obtain a first extraction result corresponding to the first image information.
[0134] In this embodiment, multiple first target feature points can be further identified from multiple first feature points. The multiple first target feature points can be corner points in the first image information. Corner points are defined as points with maximum curvature on the image edge curve or points where the image brightness changes dramatically. These points not only retain the important features of the first image information, but also effectively reduce the amount of data of the information.
[0135] In this embodiment, the use of a single-pixel camera and a feature screening method based on resolution estimation can make the feature points more evenly distributed, avoiding the concentration of features in a small area and affecting the accuracy of subsequent positioning algorithms.
[0136] S2, obtaining second image information and a second extraction result corresponding to the second image information, wherein the second image information is image information adjacent to the first image information determined according to the modulation result and the detection result, and the second extraction result is obtained by performing feature extraction on the second image information;
[0137] In some embodiments, the second image information may be image information adjacent to the first image information, and specifically may be image information determined before or after the first image information is determined.
[0138] S3. performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result;
[0139] In some embodiments, the matching result is used to indicate whether each first target feature point of the plurality of first target feature points in the first extraction result matches each second target feature point of the plurality of second target feature points in the second extraction result.
[0140] In some optional embodiments, in S3, feature matching is performed on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result, including S31-S33:
[0141] S31, determining a plurality of first descriptors of a plurality of first target feature points corresponding to the first image information, and a plurality of second descriptors of a plurality of second target feature points corresponding to the second image information based on a third preset algorithm, the first extraction result, and the second extraction result;
[0142] In some embodiments, the third preset algorithm may be a BRIEF algorithm.
[0143] In some embodiments, the first descriptor and the second descriptor may be descriptors represented in binary form.
[0144] S32, for each first descriptor in the plurality of first descriptors, determining a plurality of Hamming distances between the first descriptor and the plurality of second descriptors, wherein the second descriptors correspond to the Hamming distances one by one;
[0145] S33. For each feature point among the multiple first feature points, when the Hamming distance between the first descriptor and the second descriptor of the first feature point is less than a preset threshold, it is determined that the second feature point corresponding to the second descriptor matches the first feature point; when the Hamming distance between the first descriptor and the second descriptor of the first feature point is not less than the preset threshold, it is determined that the second feature point corresponding to the second descriptor does not match the first feature point, and a matching result is obtained.
[0146] In some embodiments, the preset threshold can be flexibly set by relevant personnel.
[0147] In some embodiments, the preset threshold may be twice the minimum Hamming distance of the second feature point that has been determined to match the first feature point.
[0148] In other embodiments, feature matching is performed on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result, including: using a brute force matching algorithm or a FLANN (Fast Library for Approximate Nearest Neighbors) algorithm to perform feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result.
[0149] S4. Constructing a map according to the matching results.
[0150] See also Figure 4 , Figure 4 A flowchart of a map construction method provided for an exemplary embodiment of the present disclosure is provided. After determining the first image information of the target object, feature extraction and feature matching may be performed on the first image information, and then map construction may be performed.
[0151] The present disclosure provides a method for controlling the light source to emit light, so that the light is projected onto the surface of a target object through a projection unit; obtaining a modulation result of reflected light after the light is projected onto the target object and passing through a modulation unit, as well as a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit; determining a first image information of the target object according to the modulation result and the detection result, and using a single-pixel bucket detector to quickly obtain the detection result, so as to more efficiently capture the motion information of the target object, thereby improving the imaging capability of high-speed moving targets; in addition, the active irradiation method of the light source and the higher sensitivity of the single-pixel detector can enhance the detection effect in dark scenes, thereby improving the accuracy of the image information of the target object, providing more accurate data for subsequent feature extraction, matching and map construction, and improving the accuracy of real-time positioning and / or map construction.
[0152] Figure 5 A schematic diagram of a structure of an image information determination device provided in an embodiment of the present disclosure, wherein the device comprises:
[0153] A control unit 51, used to control the light source to emit light, so that the light is projected onto the surface of the target object through the projection unit;
[0154] An acquisition unit 52, used to acquire a modulation result of the reflected light after the light is projected onto the target object through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0155] The determination unit 53 is configured to determine the first image information of the target object according to the modulation result and the detection result.
[0156] In some embodiments, the modulation result includes a plurality of sub-modulation results, the detection result includes a plurality of sub-detection results, the sub-modulation results correspond to the sub-detection results one by one, and the determination unit 53, when used to determine the first image information of the target object according to the modulation result and the detection result, is specifically used to:
[0157] Obtaining the number of the multiple sub-modulation results;
[0158] The first image information of the target object is determined according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results.
[0159] In some embodiments, when the determination unit 53 is used to determine the first image information of the target object according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results, it is specifically used to:
[0160] For each sub-modulation result of the multiple sub-modulation results, determine a first product of the sub-modulation result and a sub-detection result corresponding to the sub-modulation result to obtain multiple first products;
[0161] Determine a first arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of first products;
[0162] Determine a second arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of sub-modulation results;
[0163] Determine a third arithmetic mean according to the number of the plurality of sub-modulation results and the plurality of sub-detection results;
[0164] First image information of the target object is determined based on the first arithmetic mean, the second arithmetic mean, and the third arithmetic mean.
[0165] In some embodiments, the device is further used to:
[0166] Performing feature extraction on the first image information to obtain a first extraction result corresponding to the first image information;
[0167] Acquire second image information and a second extraction result corresponding to the second image information, wherein the second image information is image information adjacent to the first image information, and the second extraction result is obtained by performing feature extraction on the second image information;
[0168] Performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result;
[0169] A map is constructed according to the matching results.
[0170] In some embodiments, the first extraction result includes a plurality of first target feature points, and the device, when used to perform feature extraction on the first image information to obtain the first extraction result corresponding to the first image information, is specifically used to:
[0171] Using a first preset algorithm, perform feature point detection on the first image information to obtain a plurality of initial feature points in the first image information;
[0172] Determine a plurality of response values corresponding to the plurality of initial feature points according to a second preset algorithm, wherein the initial feature points correspond to the response values one by one;
[0173] Determine reference image information according to the multiple sub-modulation results and multiple target sub-modulation results corresponding to the central pixel of the modulation unit;
[0174] Processing the reference image information according to a preset rule to obtain processed reference image information;
[0175] Sorting the multiple response values to obtain a first sorting result;
[0176] A plurality of first target feature points among the plurality of initial feature points are determined according to the first sorting result and the processed reference image information, so as to obtain a first extraction result corresponding to the first image information.
[0177] In some embodiments, when the device is used to determine a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information, it is specifically used to:
[0178] According to the first sorting result, obtaining a reference feature point corresponding to a maximum response value among the multiple response values, and first position information of the reference feature point in the first image information;
[0179] Adding the reference feature point to a feature point set corresponding to the first image information;
[0180] Determine whether the number of reference feature points in the feature point set reaches a preset number, if so, use the reference feature points in the feature point set as multiple first target feature points in multiple initial feature points, if not,
[0181] Acquire image size information of the processed reference image information;
[0182] Determine a target image area in the first image information according to the image size information;
[0183] A plurality of first target feature points among the plurality of initial feature points are determined based on the target image area, the feature point set, and the processed reference image information.
[0184] In some embodiments, when the device is used to determine a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information, it is specifically used to:
[0185] For each second position information in at least one second position information corresponding to at least one first feature point other than the reference feature point in the target image area, determine a pixel value corresponding to third position information corresponding to the second position information in the processed reference image information;
[0186] Determine a second product of a response value corresponding to the second position information and a pixel value corresponding to the third position information to obtain at least one second product corresponding to the at least one second position information;
[0187] Using the at least one second product as at least one updated response value corresponding to the at least one first feature point, the second product and the updated response value corresponding one to one;
[0188] Sort the remaining response values of the multiple response values except the maximum response value and the at least one updated response value with the at least one updated response value to obtain a new first sorting result, return to execute determining multiple first target feature points among the multiple initial feature points based on the first sorting result and the processed reference image information, and obtain a first extraction result corresponding to the first image information.
[0189] In some embodiments, when the device is used to perform feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result, it is specifically used to:
[0190] Determine, based on a third preset algorithm, the first extraction result, and the second extraction result, a plurality of first descriptors of a plurality of first target feature points corresponding to the first image information, and a plurality of second descriptors of a plurality of second target feature points corresponding to the second image information;
[0191] For each first descriptor in the plurality of first descriptors, determining a plurality of Hamming distances between the first descriptor and the plurality of second descriptors, wherein the second descriptors correspond one to one to the Hamming distances;
[0192] For each first feature point among multiple first feature points, when the Hamming distance between the first descriptor and the second descriptor of the first feature point is less than a preset threshold, it is determined that the second feature point corresponding to the second descriptor matches the first feature point; when the Hamming distance between the first descriptor and the second descriptor of the first feature point is not less than the preset threshold, it is determined that the second feature point corresponding to the second descriptor does not match the first feature point, and a matching result is obtained.
[0193] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device may perform the above method embodiment, and the above and other operations and / or functions of each module in the device are the corresponding processes in each method in the above method embodiment, respectively, and no further description is given here for the sake of brevity.
[0194] The above describes the device of the embodiment of the present disclosure from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present disclosure can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as a hardware decoding processor to execute, or a combination of hardware and software modules in the decoding processor to execute. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.
[0195] Figure 6 is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure, and the electronic device may include:
[0196] The memory 701 and the processor 702, the memory 701 is used to store the computer program and transmit the program code to the processor 702. In other words, the processor 702 can call and run the computer program from the memory 701 to implement the method in the embodiment of the present disclosure.
[0197] For example, the processor 702 may be configured to execute the above method embodiments according to instructions in the computer program.
[0198] In some embodiments of the present disclosure, the processor 702 may include but is not limited to:
[0199] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0200] In some embodiments of the present disclosure, the memory 701 includes but is not limited to:
[0201] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0202] In some embodiments of the present disclosure, the computer program may be divided into one or more modules, which are stored in the memory 701 and executed by the processor 702 to complete the method provided by the present disclosure. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0203] like Figure 6 As shown, the electronic device may also include:
[0204] The transceiver 703 may be connected to the processor 702 or the memory 701 .
[0205] The processor 702 may control the transceiver 703 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 703 may include a transmitter and a receiver. The transceiver 703 may further include an antenna, and the number of antennas may be one or more.
[0206] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0207] The present disclosure also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present disclosure embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0208] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state disk (solid state disk, SSD)), etc.
[0209] According to one or more embodiments of the present disclosure, a method for determining image information is provided, including:
[0210] Controlling the light source to emit light so that the light is projected onto the surface of the target object through the projection unit;
[0211] Acquire a modulation result of the reflected light after the light is projected onto the target object and passes through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0212] The first image information of the target object is determined according to the modulation result and the detection result.
[0213] According to one or more embodiments of the present disclosure, the modulation result includes a plurality of sub-modulation results, the detection result includes a plurality of sub-detection results, the sub-modulation results correspond to the sub-detection results one by one, and determining the first image information of the target object according to the modulation result and the detection result includes:
[0214] Obtaining the number of the multiple sub-modulation results;
[0215] The first image information of the target object is determined according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results.
[0216] According to one or more embodiments of the present disclosure, determining the first image information of the target object according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results includes:
[0217] For each sub-modulation result of the multiple sub-modulation results, determine a first product of the sub-modulation result and a sub-detection result corresponding to the sub-modulation result to obtain multiple first products;
[0218] Determine a first arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of first products;
[0219] Determine a second arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of sub-modulation results;
[0220] Determine a third arithmetic mean according to the number of the plurality of sub-modulation results and the plurality of sub-detection results;
[0221] First image information of the target object is determined based on the first arithmetic mean, the second arithmetic mean, and a third arithmetic mean.
[0222] According to one or more embodiments of the present disclosure, the method further includes:
[0223] Performing feature extraction on the first image information to obtain a first extraction result corresponding to the first image information;
[0224] Acquire second image information and a second extraction result corresponding to the second image information, wherein the second image information is image information adjacent to the first image information, and the second extraction result is obtained by performing feature extraction on the second image information;
[0225] Performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result;
[0226] A map is constructed according to the matching results.
[0227] According to one or more embodiments of the present disclosure, the first extraction result includes a plurality of first target feature points, and feature extraction is performed on the first image information to obtain a first extraction result corresponding to the first image information, including:
[0228] Using a first preset algorithm, perform feature point detection on the first image information to obtain a plurality of initial feature points in the first image information;
[0229] Determine a plurality of response values corresponding to the plurality of initial feature points according to a second preset algorithm, wherein the initial feature points correspond to the response values one by one;
[0230] Determine reference image information according to the multiple sub-modulation results and multiple target sub-modulation results corresponding to the central pixel of the modulation unit;
[0231] Processing the reference image information according to a preset rule to obtain processed reference image information;
[0232] Sorting the multiple response values to obtain a first sorting result;
[0233] A plurality of first target feature points among the plurality of initial feature points are determined according to the first sorting result and the processed reference image information, so as to obtain a first extraction result corresponding to the first image information.
[0234] According to one or more embodiments of the present disclosure, determining a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information includes:
[0235] According to the first sorting result, obtaining a reference feature point corresponding to a maximum response value among the multiple response values, and first position information of the reference feature point in the first image information;
[0236] Adding the reference feature point to a feature point set corresponding to the first image information;
[0237] Determine whether the number of reference feature points in the feature point set reaches a preset number, if so, use the reference feature points in the feature point set as multiple first target feature points in multiple initial feature points, if not,
[0238] Acquire image size information of the processed reference image information;
[0239] Determine a target image area in the first image information according to the image size information;
[0240] A plurality of first target feature points among the plurality of initial feature points are determined based on the target image area, the feature point set, and the processed reference image information.
[0241] According to one or more embodiments of the present disclosure, determining a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information includes:
[0242] For each second position information in at least one second position information corresponding to at least one first feature point other than the reference feature point in the target image area, determine a pixel value corresponding to third position information corresponding to the second position information in the processed reference image information;
[0243] Determine a second product of a response value corresponding to the second position information and a pixel value corresponding to the third position information to obtain at least one second product corresponding to the at least one second position information;
[0244] Using the at least one second product as at least one updated response value corresponding to the at least one first feature point, the second product and the updated response value corresponding one to one;
[0245] Sort the remaining response values of the multiple response values except the maximum response value and the at least one updated response value with the at least one updated response value to obtain a new first sorting result, return to execute determining multiple first target feature points among the multiple initial feature points based on the first sorting result and the processed reference image information, and obtain a first extraction result corresponding to the first image information.
[0246] According to one or more embodiments of the present disclosure, performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result includes:
[0247] Determine, based on a third preset algorithm, the first extraction result, and the second extraction result, a plurality of first descriptors of a plurality of first target feature points corresponding to the first image information, and a plurality of second descriptors of a plurality of second target feature points corresponding to the second image information;
[0248] For each first descriptor in the plurality of first descriptors, determining a plurality of Hamming distances between the first descriptor and the plurality of second descriptors, wherein the second descriptors correspond one to one to the Hamming distances;
[0249] For each first feature point among multiple first feature points, when the Hamming distance between the first descriptor and the second descriptor of the first feature point is less than a preset threshold, it is determined that the second feature point corresponding to the second descriptor matches the first feature point; when the Hamming distance between the first descriptor and the second descriptor of the first feature point is not less than the preset threshold, it is determined that the second feature point corresponding to the second descriptor does not match the first feature point, and a matching result is obtained.
[0250] According to one or more embodiments of the present disclosure, there is provided an image information determination device, including:
[0251] A control unit, used to control the light source to emit light so that the light is projected onto the surface of the target object through the projection unit;
[0252] an acquisition unit, used to acquire a modulation result of the reflected light after the light is projected onto the target object through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit;
[0253] A determination unit is used to determine first image information of the target object according to the modulation result and the detection result.
[0254] According to one or more embodiments of the present disclosure, the modulation result includes a plurality of sub-modulation results, the detection result includes a plurality of sub-detection results, the sub-modulation results correspond to the sub-detection results one-to-one, and the determination unit, when used to determine the first image information of the target object according to the modulation result and the detection result, is specifically used to:
[0255] Obtaining the number of the multiple sub-modulation results;
[0256] The first image information of the target object is determined according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results.
[0257] According to one or more embodiments of the present disclosure, when the determining unit is used to determine the first image information of the target object according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results, it is specifically used to:
[0258] For each sub-modulation result of the multiple sub-modulation results, determine a first product of the sub-modulation result and a sub-detection result corresponding to the sub-modulation result to obtain multiple first products;
[0259] Determine a first arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of first products;
[0260] Determine a second arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of sub-modulation results;
[0261] Determine a third arithmetic mean according to the number of the plurality of sub-modulation results and the plurality of sub-detection results;
[0262] First image information of the target object is determined based on the first arithmetic mean, the second arithmetic mean, and the third arithmetic mean.
[0263] According to one or more embodiments of the present disclosure, the device is further used for:
[0264] Performing feature extraction on the first image information to obtain a first extraction result corresponding to the first image information;
[0265] Acquire second image information and a second extraction result corresponding to the second image information, wherein the second image information is image information adjacent to the first image information, and the second extraction result is obtained by performing feature extraction on the second image information;
[0266] Performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result;
[0267] A map is constructed according to the matching results.
[0268] According to one or more embodiments of the present disclosure, the first extraction result includes a plurality of first target feature points, and when the device is used to perform feature extraction on the first image information to obtain the first extraction result corresponding to the first image information, it is specifically used to:
[0269] Using a first preset algorithm, perform feature point detection on the first image information to obtain a plurality of initial feature points in the first image information;
[0270] Determine a plurality of response values corresponding to the plurality of initial feature points according to a second preset algorithm, wherein the initial feature points correspond to the response values one by one;
[0271] Determine reference image information according to the multiple sub-modulation results and multiple target sub-modulation results corresponding to the central pixel of the modulation unit;
[0272] Processing the reference image information according to a preset rule to obtain processed reference image information;
[0273] Sorting the multiple response values to obtain a first sorting result;
[0274] A plurality of first target feature points among the plurality of initial feature points are determined according to the first sorting result and the processed reference image information, so as to obtain a first extraction result corresponding to the first image information.
[0275] According to one or more embodiments of the present disclosure, when the device is used to determine a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information, it is specifically used to:
[0276] According to the first sorting result, obtaining a reference feature point corresponding to a maximum response value among the multiple response values, and first position information of the reference feature point in the first image information;
[0277] Adding the reference feature point to a feature point set corresponding to the first image information;
[0278] Determine whether the number of reference feature points in the feature point set reaches a preset number, if so, use the reference feature points in the feature point set as multiple first target feature points in multiple initial feature points, if not,
[0279] Acquire image size information of the processed reference image information;
[0280] Determine a target image area in the first image information according to the image size information;
[0281] A plurality of first target feature points among the plurality of initial feature points are determined based on the target image area, the feature point set, and the processed reference image information.
[0282] According to one or more embodiments of the present disclosure, when the device is used to determine a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information, it is specifically used to:
[0283] For each second position information in at least one second position information corresponding to at least one first feature point other than the reference feature point in the target image area, determine a pixel value corresponding to third position information corresponding to the second position information in the processed reference image information;
[0284] Determine a second product of a response value corresponding to the second position information and a pixel value corresponding to the third position information to obtain at least one second product corresponding to the at least one second position information;
[0285] Using the at least one second product as at least one updated response value corresponding to the at least one first feature point, the second product and the updated response value corresponding one to one;
[0286] Sort the remaining response values of the multiple response values except the maximum response value and the at least one updated response value with the at least one updated response value to obtain a new first sorting result, return to execute determining multiple first target feature points among the multiple initial feature points based on the first sorting result and the processed reference image information, and obtain a first extraction result corresponding to the first image information.
[0287] According to one or more embodiments of the present disclosure, when the device is used to perform feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result, it is specifically used to:
[0288] Determine, based on a third preset algorithm, the first extraction result, and the second extraction result, a plurality of first descriptors of a plurality of first target feature points corresponding to the first image information, and a plurality of second descriptors of a plurality of second target feature points corresponding to the second image information;
[0289] For each first descriptor in the plurality of first descriptors, determining a plurality of Hamming distances between the first descriptor and the plurality of second descriptors, wherein the second descriptors correspond one to one to the Hamming distances;
[0290] For each first feature point among multiple first feature points, when the Hamming distance between the first descriptor and the second descriptor of the first feature point is less than a preset threshold, it is determined that the second feature point corresponding to the second descriptor matches the first feature point; when the Hamming distance between the first descriptor and the second descriptor of the first feature point is not less than the preset threshold, it is determined that the second feature point corresponding to the second descriptor does not match the first feature point, and a matching result is obtained.
[0291] According to one or more embodiments of the present disclosure, there is provided an electronic device, including:
[0292] Processor; and
[0293] A memory, configured to store executable instructions of the processor;
[0294] The processor is configured to perform the above-mentioned image information determination method by executing the executable instructions.
[0295] According to one or more embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program implements the above-mentioned image information determination method when executed by a processor.
[0296] According to one or more embodiments of the present application, a computer program product is provided, including a computer program, and the computer program implements the above methods when executed by a processor.
[0297] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0298] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0299] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present disclosure may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0300] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for determining image information, characterized in that: include: Controlling the light source to emit light so that the light is projected onto the surface of the target object through the projection unit; Acquire a modulation result of the reflected light after the light is projected onto the target object and passes through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit; The first image information of the target object is determined according to the modulation result and the detection result.
2. The method according to claim 1, characterized in that The modulation result includes a plurality of sub-modulation results, the detection result includes a plurality of sub-detection results, the sub-modulation results correspond to the sub-detection results one by one, and determining the first image information of the target object according to the modulation result and the detection result includes: Obtaining the number of the multiple sub-modulation results; The first image information of the target object is determined according to the number of the multiple sub-modulation results, the multiple sub-modulation results, and the multiple sub-detection results.
3. The method according to claim 2, characterized in that Determining first image information of the target object according to the number of the plurality of sub-modulation results, the plurality of sub-modulation results, and the plurality of sub-detection results includes: For each sub-modulation result of the multiple sub-modulation results, determine a first product of the sub-modulation result and a sub-detection result corresponding to the sub-modulation result to obtain multiple first products; Determine a first arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of first products; Determine a second arithmetic mean value according to the number of the plurality of sub-modulation results and the plurality of sub-modulation results; Determine a third arithmetic mean according to the number of the plurality of sub-modulation results and the plurality of sub-detection results; First image information of the target object is determined based on the first arithmetic mean, the second arithmetic mean, and the third arithmetic mean.
4. The method according to claim 1, characterized in that: The method further comprises: Performing feature extraction on the first image information to obtain a first extraction result corresponding to the first image information; Acquire second image information and a second extraction result corresponding to the second image information, wherein the second image information is image information adjacent to the first image information, and the second extraction result is obtained by performing feature extraction on the second image information; Performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result; A map is constructed according to the matching results.
5. The method according to claim 4, characterized in that The first extraction result includes a plurality of first target feature points, and feature extraction is performed on the first image information to obtain a first extraction result corresponding to the first image information, including: Using a first preset algorithm, perform feature point detection on the first image information to obtain a plurality of initial feature points in the first image information; Determine a plurality of response values corresponding to the plurality of initial feature points according to a second preset algorithm, wherein the initial feature points correspond to the response values one by one; Determine reference image information according to the multiple sub-modulation results and multiple target sub-modulation results corresponding to the central pixel of the modulation unit; Processing the reference image information according to a preset rule to obtain processed reference image information; Sorting the multiple response values to obtain a first sorting result; A plurality of first target feature points among the plurality of initial feature points are determined according to the first sorting result and the processed reference image information, so as to obtain a first extraction result corresponding to the first image information.
6. The method according to claim 5, characterized in that Determining a plurality of first target feature points among the plurality of initial feature points according to the first sorting result and the processed reference image information includes: According to the first sorting result, obtaining a reference feature point corresponding to a maximum response value among the multiple response values, and first position information of the reference feature point in the first image information; Adding the reference feature point to a feature point set corresponding to the first image information; Determine whether the number of reference feature points in the feature point set reaches a preset number, if so, use the reference feature points in the feature point set as multiple first target feature points in multiple initial feature points, if not, Acquire image size information of the processed reference image information; Determine a target image area in the first image information according to the image size information; A plurality of first target feature points among the plurality of initial feature points are determined based on the target image area, the feature point set, and the processed reference image information.
7. The method according to claim 6, characterized in that Determining a plurality of first target feature points among the plurality of initial feature points based on the target image area, the feature point set, and the processed reference image information includes: For each second position information in at least one second position information corresponding to at least one first feature point other than the reference feature point in the target image area, determine a pixel value corresponding to third position information corresponding to the second position information in the processed reference image information; Determine a second product of a response value corresponding to the second position information and a pixel value corresponding to the third position information to obtain at least one second product corresponding to the at least one second position information; Using the at least one second product as at least one updated response value corresponding to the at least one first feature point, the second product and the updated response value corresponding one to one; Sort the remaining response values of the multiple response values except the maximum response value and the at least one updated response value with the at least one updated response value to obtain a new first sorting result, return to execute determining multiple first target feature points among the multiple initial feature points based on the first sorting result and the processed reference image information, and obtain a first extraction result corresponding to the first image information.
8. The method according to claim 4, characterized in that Performing feature matching on the first image information and the second image information based on the first extraction result and the second extraction result to obtain a matching result includes: Determine, based on a third preset algorithm, the first extraction result, and the second extraction result, a plurality of first descriptors of a plurality of first target feature points corresponding to the first image information, and a plurality of second descriptors of a plurality of second target feature points corresponding to the second image information; For each first descriptor in the plurality of first descriptors, determining a plurality of Hamming distances between the first descriptor and the plurality of second descriptors, wherein the second descriptors correspond one to one to the Hamming distances; For each first feature point among multiple first feature points, when the Hamming distance between the first descriptor and the second descriptor of the first feature point is less than a preset threshold, it is determined that the second feature point corresponding to the second descriptor matches the first feature point; when the Hamming distance between the first descriptor and the second descriptor of the first feature point is not less than the preset threshold, it is determined that the second feature point corresponding to the second descriptor does not match the first feature point, and a matching result is obtained.
9. An image information determination device, applicable to a head mounted display device, characterized in that: include: A control unit, used to control the light source to emit light, so that the light is projected onto the surface of the target object through the projection unit; an acquisition unit, used to acquire a modulation result of the reflected light after the light is projected onto the target object through a modulation unit, and a detection result of the reflected light being detected by a single-pixel bucket detector after passing through the modulation unit; A determination unit is used to determine first image information of the target object according to the modulation result and the detection result.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 8 by executing the executable instructions.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
