CN112556994B - Optical information detection method, device and equipment - Google Patents

Optical information detection method, device and equipment Download PDF

Info

Publication number
CN112556994B
CN112556994B CN202011356065.1A CN202011356065A CN112556994B CN 112556994 B CN112556994 B CN 112556994B CN 202011356065 A CN202011356065 A CN 202011356065A CN 112556994 B CN112556994 B CN 112556994B
Authority
CN
China
Prior art keywords
speckle
target
preset
pattern
speckle pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011356065.1A
Other languages
Chinese (zh)
Other versions
CN112556994A (en
Inventor
李文健
刘畅
黄源浩
肖振中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Orbbec Inc
Original Assignee
Orbbec Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Orbbec Inc filed Critical Orbbec Inc
Priority to CN202011356065.1A priority Critical patent/CN112556994B/en
Publication of CN112556994A publication Critical patent/CN112556994A/en
Application granted granted Critical
Publication of CN112556994B publication Critical patent/CN112556994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Chemical & Material Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Analytical Chemistry (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The application is applicable to the technical field of optics, and provides an optical information detection method, which comprises the following steps: the method comprises the steps of obtaining a full-field speckle pattern of a projection pattern acquired by a first camera, determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset characteristic matching rule, obtaining pixel coordinate information corresponding to the target zero-order speckle pattern, and calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information thereof. In this embodiment, some optical information of the target for detection is planned for the projected image of the speckle projection device, and the target zero-order speckle pattern of the projected full-field speckle pattern is determined, so that the optical information of the target for detection can be accurately calculated. The corresponding target optical information for detection is detected through the projected full-field speckle image completely, accurately and reliably, so that whether the quality of the projection device is qualified or not is accurately and rapidly determined, and the efficiency and the yield of the production line are improved.

Description

Optical information detection method, device and equipment
Technical Field
The application belongs to the technical field of optics, and particularly relates to an optical information detection method, an optical information detection device and optical information detection equipment.
Background
When the quality detection is carried out on the projection device, optical information needs to be acquired, and the quality of the projection device is judged through the optical information. In the prior art, there is no complete acquisition method for the optical information required for detection, which leads to a great error in the obtained detection result.
Disclosure of Invention
The embodiment of the application provides an optical information detection method, an optical information detection device and optical information detection equipment, which can solve the problem that in the prior art, a complete acquisition method does not exist for optical information required by detection, so that the error of an obtained detection result is large.
In a first aspect, an embodiment of the present application provides an optical information detection method, including:
acquiring a full-field speckle pattern of a projection pattern acquired by a first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset feature matching rule;
acquiring pixel coordinate information corresponding to the target zero-order speckle pattern;
and calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information.
Further, the target optical information includes an optical axis deflection angle;
the calculating the target optical information according to the target zero-order speckle pattern and the pixel coordinate information comprises the following steps:
acquiring a preset center point in the preset zero-order speckle pattern, and determining a target center point in the target zero-order speckle pattern according to the preset center point;
acquiring pixel differences between the preset center point and the target center point according to the pixel coordinate information;
calculating the optical axis deflection angle according to the pixel difference and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
Further, the target optical information comprises a speckle rotation angle;
the calculating the target optical information according to the target zero-order speckle pattern and the pixel information comprises the following steps:
acquiring a first preset scattered spot and a second preset scattered spot in the preset zero-order scattered spot pattern, and acquiring a second distance between the first preset scattered spot and the second preset scattered spot; the vertical pixel coordinates of the first preset scattered spots and the second preset scattered spots are the same;
acquiring a first target scattered spot corresponding to the first preset scattered spot and a second target scattered spot corresponding to the second preset scattered spot from the target zero-order scattered spot pattern;
acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance;
and calculating the speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information.
Further, after the acquiring the full-field speckle pattern of the projection pattern acquired by the first camera, the method further comprises:
acquiring size proportion information between the projection pattern and the full-field speckle pattern;
acquiring side length information of an inscribed rectangle of the full-field speckle pattern;
determining the actual physical size of the full-field speckle pattern according to the size proportion information and the side length information;
calculating the field angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
In a second aspect, an embodiment of the present application provides an optical information detection apparatus, including:
the first acquisition unit is used for acquiring a full-field speckle pattern of the projection pattern acquired by the first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
the first determining unit is used for determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset characteristic matching rule;
the second acquisition unit is used for acquiring pixel coordinate information corresponding to the target zero-level speckle pattern;
and the first calculating unit is used for calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information.
Further, the target optical information includes an optical axis deflection angle;
the first computing unit is specifically configured to:
acquiring a preset center point in the preset zero-order speckle pattern, and determining a target center point in the target zero-order speckle pattern according to the preset center point;
acquiring pixel differences between the preset center point and the target center point according to the pixel coordinate information;
calculating the optical axis deflection angle according to the pixel difference and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
Further, the target optical information comprises a speckle rotation angle;
the first computing unit is specifically configured to:
acquiring a first preset scattered spot and a second preset scattered spot in the preset zero-order scattered spot pattern, and acquiring a second distance between the first preset scattered spot and the second preset scattered spot; the vertical pixel coordinates of the first preset scattered spots and the second preset scattered spots are the same;
acquiring a first target scattered spot corresponding to the first preset scattered spot and a second target scattered spot corresponding to the second preset scattered spot from the target zero-order scattered spot pattern;
acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance;
and calculating the speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information.
Further, the optical information detection device further includes:
a second acquisition unit configured to acquire size ratio information between the projection pattern and the full-field speckle pattern;
a third obtaining unit, configured to obtain side length information of an inscribed rectangle of the full-field speckle pattern;
a second determining unit configured to determine an actual physical size of the full-field speckle pattern according to the size proportion information and the side length information;
the second calculating unit is used for calculating the view angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
In a third aspect, an embodiment of the present application provides an optical information detection device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the optical information detection method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program, which when executed by a processor implements the optical information detection method according to the first aspect.
In the embodiment of the application, a full-field speckle pattern of a projection pattern acquired by a first camera is acquired, a target zero-level speckle pattern in the full-field speckle pattern is determined according to a preset zero-level speckle pattern and a preset feature matching rule, pixel coordinate information corresponding to the target zero-level speckle pattern is acquired, and target optical information is calculated according to the target zero-level speckle pattern and the pixel coordinate information thereof. In this embodiment, some optical information of the target for detection is planned for the projected image of the speckle projection device, and the target zero-order speckle pattern of the projected full-field speckle pattern is determined, so that the optical information of the target for detection can be accurately calculated. The corresponding target optical information for detection is detected through the projected full-field speckle image completely, accurately and reliably, so that whether the quality of the projection device is qualified or not is accurately and rapidly determined, and the efficiency and the yield of the production line are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an optical information detection system provided in a first embodiment of the present application;
FIG. 2 is a schematic flow chart of an optical information detection method according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of a rotation angle of a speckle pattern in an optical information detection method according to a second embodiment of the present disclosure;
fig. 4 is a schematic flowchart of S105 to S108 in an optical information detection method according to a second embodiment of the present application;
FIG. 5 is a schematic diagram of an optical information detecting device according to a third embodiment of the present application;
fig. 6 is a schematic diagram of an optical information detecting apparatus provided in a fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic diagram of an optical information detection system according to a first embodiment of the present application. The optical information detection system may include a first camera, a speckle projection assembly, and a projection screen, and a device having an optical information detection function in communication with the speckle projection assembly, the first camera, respectively. The device having the optical information detecting function may be a server, a processor, or the like. The speckle projection assembly is used for projecting a projection pattern to the projection screen; the first camera is used for collecting a full-field speckle pattern of a projection pattern projected onto a projection screen.
Referring to fig. 2, fig. 2 is a schematic flowchart of an optical information detection method according to a second embodiment of the present application. An execution subject of the optical information detection method in this embodiment is a device having an optical information detection function, such as a server, a processor, or the like. The optical information detection method as shown in fig. 2 may include:
s101: acquiring a full-field speckle pattern of a projection pattern acquired by a first camera; the projection pattern is projected by a speckle projection assembly onto a projection screen.
The device acquires a full-field speckle pattern of the projection pattern acquired by a first camera, wherein the first camera is a large field angle camera for acquiring the full-field speckle pattern.
The full-field speckle pattern obtained by the first camera is used to detect rotation of the speckle pattern as a whole, angle of view of the speckle projection assembly, detection of the effect of the projection, and so forth.
The speckle projection assembly to be detected projects the projection pattern to the projection screen, and the first camera collects the projection pattern on the projection screen.
S102: and determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset feature matching rule.
The zero-order speckle pattern and the first-order speckle pattern are included in the full-field speckle pattern, and in this embodiment, the apparatus needs to first determine the target zero-order speckle pattern in the full-field speckle pattern.
The method for determining the target zero-order speckle pattern can be that the device determines the target zero-order speckle pattern in the full-field speckle pattern according to the preset zero-order speckle pattern and the preset feature matching rule. The method comprises the steps of pre-storing a preset zero-order speckle pattern in equipment, and carrying out characteristic point matching, mapping, positioning and other methods according to the preset zero-order speckle pattern and a full-field speckle pattern acquired in real time to position a target zero-order speckle pattern in the full-field speckle pattern.
Further, in order to improve the accuracy and speed of determining the target zero-order speckle pattern, a zero-order speckle pattern initial area can be determined in the full-field speckle pattern, and the target zero-order speckle pattern in the full-field speckle pattern is positioned according to the characteristic point matching, mapping, positioning and other methods of the preset zero-order speckle pattern and the speckle in the zero-order speckle pattern initial area.
S103: and acquiring pixel coordinate information corresponding to the target zero-order speckle pattern.
After the device acquires the target zero-order speckle pattern, pixel coordinate information of speckle in the target zero-order speckle pattern is determined, and the speckle at the corresponding position in one target zero-order speckle pattern has unique pixel coordinate information.
Specifically, the speckle in the target zero-order speckle pattern may be numbered, and the speckle at the corresponding position in one target zero-order speckle pattern may have a number, and the pixel coordinate information may be determined according to the number.
S104: and calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information.
Different calculation strategies corresponding to the target optical information for detection are preset in the device, and the target optical information can be obtained through calculation according to the target zero-order speckle pattern, the pixel coordinate information and the different calculation strategies. According to the target zero-order speckle pattern and the pixel coordinate information, the calculated target information can comprise an optical axis deflection angle and a speckle rotation angle.
The target optical information may include an optical axis deflection angle, where the optical axis deflection angle refers to the degree of inclination of the DOE of the diffractive optical element, and theoretically, the plane of the DOE should be parallel to the plane of the light source, and when inclination occurs, this indicates that there is a problem. In calculating the optical axis deflection angle, the calculation may be performed as follows:
the device obtains a preset center point in a preset zero-order speckle pattern, and determines a target center point in a target zero-order speckle pattern according to the preset center point. The device stores a preset center point in the preset zero-order speckle pattern, and after the device obtains the preset center point, the preset zero-order speckle pattern and the preset center point thereof can be matched with the target zero-order speckle pattern to obtain the target center point in the target zero-order speckle pattern. And the equipment acquires the pixel difference between the preset center point and the target center point according to the pixel coordinate information. And calculating an optical axis deflection angle according to the pixel difference and a first distance, wherein the first distance is the distance between the speckle projection assembly and the projection screen.
For example, if the pixel coordinate of the preset center point in the preset zero-level speckle pattern is (1000 ), and the pixel coordinate of the target center point in the target zero-level speckle pattern is (998,1003) according to the preset center point, the pixel difference is (2, 3), which indicates that the DOE is tilted in both directions, that is, the DOE is deflected along the broad side as an axis and deflected along the long side as an axis. Then the tangent of the angle of deflection along the broadside as the axis may be 2 x pixelsize/first distance, and the inverse tangent may be calculated to obtain the angle of deflection along the broadside as the axis; similarly, the tangent of the angle of deflection along the long side is 3 x pixelsize/first distance, and the angle of deflection along the long side is obtained by calculating the inverse tangent. Where pixelsize is the actual physical size of each pixel in the first camera on the glass screen.
The target optical information may include a speckle rotation angle, and when calculating the speckle rotation angle, the calculation may be performed as follows:
the device obtains a first preset scattered spot and a second preset scattered spot in a preset zero-order scattered spot pattern, and obtains a second distance between the first preset scattered spot and the second preset scattered spot, wherein the vertical pixel coordinates of the first preset scattered spot and the second preset scattered spot are the same. Briefly, the first preset speckle and the second preset speckle are on the same row.
And acquiring a first target speckle corresponding to the first preset speckle and a second target speckle corresponding to the second preset speckle from the target zero-level speckle pattern. Namely, a first target speckle corresponding to a first preset speckle and a second target speckle corresponding to a second preset speckle are determined according to the mapping relation between the zero-order speckle pattern and the preset zero-order speckle pattern.
And acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance. The third target scattered spot is the actual spot corresponding to the second preset scattered spot when no rotation occurs. And calculating a speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information. That is, when rotation occurs, the position of the third target speckle is deflected to the position of the second target speckle. Therefore, the speckle rotation angle is the angle formed by the first target speckle, the second target speckle and the third target speckle by taking the first target speckle as the vertex.
For example, as shown in fig. 3, a first preset speckle a and a second preset speckle B in the same row are randomly selected from preset zero-order speckle patterns, and a first target speckle a is found from the target zero-order speckle pattern of the full-field speckle pattern 1 Second target speckle B 2 Finding the distance d between the point A and the point B and the point A according to the distance d between the point A and the point B 1 B of the same line and distance d 1 A dot; according to A 1 、B 2 、B 1 Is used for calculating angle B by pixel point coordinates 2 A 1 B 1 The angle X in the figure is the rotation included angle of the speckle pattern.
Further, the field angle of the speckle projection assembly can also be calculated from the acquired full-field speckle pattern, thereby detecting the field angle of the speckle projection assembly. After S101, S105 to S108 may be further included, and as shown in fig. 4, S105 to S108 are specifically as follows:
s105: and acquiring size proportion information between the projection pattern and the full-field speckle pattern.
The device obtains size ratio information between the projection pattern and the full-field speckle pattern, namely, the size ratio relation between the speckle pattern actually projected on the projection screen and the collected full-field speckle pattern. The calculation may be performed specifically by the camera parameters of the first camera and the principle of triangulation.
S106: and acquiring side length information of the inscribed rectangle of the full-field speckle pattern.
The device acquires the inscribed rectangle of the full-field speckle pattern, specifically, a large-size check full-field speckle pattern can be used for closed operation, then the nearest point of the boundary to the full-field speckle pattern is found, namely, four tangential points, and the inscribed rectangle of the full-field speckle pattern is determined according to the four points. And acquiring side length information, namely length and width, of the inscribed rectangle by taking pixels as units.
S107: and determining the actual physical dimension of the full-field speckle pattern according to the size proportion information and the side length information.
The device determines the actual physical size of the full-field speckle pattern according to the size proportion information and the side length information, namely, the side length information is multiplied by the size proportion information to obtain the actual physical size of the full-field speckle pattern.
S108: calculating the field angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
The distance between the speckle projection assembly and the projection screen is obtained as a first distance, the first distance is recorded as H, the width and the height are recorded as the actual physical dimensions of the full-field speckle pattern, the tangent value width/2H, height/2H is calculated, and then the arc tangent value is multiplied by 2 to obtain the final FOV range size. The specific formula is as follows:
Figure BDA0002802660520000101
Figure BDA0002802660520000102
in the embodiment of the application, a full-field speckle pattern of a projection pattern acquired by a first camera is acquired, a target zero-level speckle pattern in the full-field speckle pattern is determined according to a preset zero-level speckle pattern and a preset feature matching rule, pixel coordinate information corresponding to the target zero-level speckle pattern is acquired, and target optical information is calculated according to the target zero-level speckle pattern and the pixel coordinate information thereof. In this embodiment, some optical information of the target for detection is planned for the projected image of the speckle projection device, and the target zero-order speckle pattern of the projected full-field speckle pattern is determined, so that the optical information of the target for detection can be accurately calculated. The corresponding target optical information for detection is detected through the projected full-field speckle image completely, accurately and reliably, so that whether the quality of the projection device is qualified or not is accurately and rapidly determined, and the efficiency and the yield of the production line are improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Referring to fig. 5, fig. 5 is a schematic diagram of an optical information detection device according to a third embodiment of the present application. The units included are used to perform the steps in the corresponding embodiments of fig. 2 and 4. Refer specifically to fig. 2 and fig. 4 for related descriptions in the respective embodiments. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, the optical information detecting apparatus 5 includes:
a first acquiring unit 510, configured to acquire a full-field speckle pattern of the projection pattern acquired by the first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
a first determining unit 520, configured to determine a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset feature matching rule;
a second obtaining unit 530, configured to obtain pixel coordinate information corresponding to the target zero-order speckle pattern;
the first calculating unit 540 is configured to calculate target optical information according to the target zero-order speckle pattern and the pixel coordinate information.
Further, the target optical information includes an optical axis deflection angle;
the first computing unit 540 is specifically configured to:
acquiring a preset center point in the preset zero-order speckle pattern, and determining a target center point in the target zero-order speckle pattern according to the preset center point;
acquiring pixel differences between the preset center point and the target center point according to the pixel coordinate information;
calculating the optical axis deflection angle according to the pixel difference and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
Further, the target optical information comprises a speckle rotation angle;
the first computing unit 540 is specifically configured to:
acquiring a first preset scattered spot and a second preset scattered spot in the preset zero-order scattered spot pattern, and acquiring a second distance between the first preset scattered spot and the second preset scattered spot; the vertical pixel coordinates of the first preset scattered spots and the second preset scattered spots are the same;
acquiring a first target scattered spot corresponding to the first preset scattered spot and a second target scattered spot corresponding to the second preset scattered spot from the target zero-order scattered spot pattern;
acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance;
and calculating the speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information.
Further, the optical information detecting apparatus 5 further includes:
a second acquisition unit configured to acquire size ratio information between the projection pattern and the full-field speckle pattern;
a third obtaining unit, configured to obtain side length information of an inscribed rectangle of the full-field speckle pattern;
a second determining unit configured to determine an actual physical size of the full-field speckle pattern according to the size proportion information and the side length information;
the second calculating unit is used for calculating the view angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
Fig. 6 is a schematic diagram of an optical information detecting apparatus provided in a fourth embodiment of the present application. As shown in fig. 6, the optical information detecting apparatus 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62, such as an optical information detection program, stored in said memory 61 and executable on said processor 60. The steps of the various optical information detection method embodiments described above, such as steps 101 through 104 shown in fig. 2, are implemented when the processor 60 executes the computer program 62. Alternatively, the processor 60, when executing the computer program 62, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 510-540 shown in fig. 5.
By way of example, the computer program 62 may be partitioned into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions describing the execution of the computer program 62 in the optical information detection device 6. For example, the computer program 62 may be divided into a first acquisition unit, a first determination unit, a second acquisition unit, a first calculation unit, each unit specifically functioning as follows:
the first acquisition unit is used for acquiring a full-field speckle pattern of the projection pattern acquired by the first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
the first determining unit is used for determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset characteristic matching rule;
the second acquisition unit is used for acquiring pixel coordinate information corresponding to the target zero-level speckle pattern;
and the first calculating unit is used for calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information.
The optical information detection device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the optical information detection device 6 and does not constitute a limitation of the optical information detection device 6, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the optical information detection device may further include an input-output device, a network access device, a bus, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the optical information detection device 6, such as a hard disk or a memory of the optical information detection device 6. The memory 61 may also be an external storage device of the optical information detecting device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the optical information detecting device 6. Further, the optical information detecting device 6 may also include both an internal storage unit and an external storage device of the optical information detecting device 6. The memory 61 is used for storing the computer program and other programs and data required for the optical information detecting apparatus. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (8)

1. An optical information detection method, comprising:
acquiring a full-field speckle pattern of a projection pattern acquired by a first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
acquiring size proportion information between the projection pattern and the full-field speckle pattern; acquiring side length information of an inscribed rectangle of the full-field speckle pattern; determining the actual physical size of the full-field speckle pattern according to the size proportion information and the side length information; calculating the field angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen; the specific formula of the view angle of the speckle projection assembly is as follows:
Figure FDA0004251280340000011
Figure FDA0004251280340000012
wherein, the first distance is H, width and height are the actual physical dimensions of the full-field speckle pattern;
determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset feature matching rule;
acquiring pixel coordinate information corresponding to the target zero-order speckle pattern; wherein, the speckle at the corresponding position in a target zero-order speckle pattern has a unique pixel coordinate information;
and calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information thereof, wherein the target optical information comprises an optical axis deflection angle and/or a speckle rotation angle.
2. The optical information detection method according to claim 1, wherein the target optical information includes an optical axis deflection angle;
the calculating the target optical information according to the target zero-order speckle pattern and the pixel coordinate information comprises the following steps:
acquiring a preset center point in the preset zero-order speckle pattern, and determining a target center point in the target zero-order speckle pattern according to the preset center point;
acquiring pixel differences between the preset center point and the target center point according to the pixel coordinate information;
calculating the optical axis deflection angle according to the pixel difference and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
3. The method of optical information detection according to claim 1, wherein the target optical information includes a speckle rotation angle;
the calculating the target optical information according to the target zero-order speckle pattern and the pixel information comprises the following steps:
acquiring a first preset scattered spot and a second preset scattered spot in the preset zero-order scattered spot pattern, and acquiring a second distance between the first preset scattered spot and the second preset scattered spot; the vertical pixel coordinates of the first preset scattered spots and the second preset scattered spots are the same;
acquiring a first target scattered spot corresponding to the first preset scattered spot and a second target scattered spot corresponding to the second preset scattered spot from the target zero-order scattered spot pattern;
acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance;
and calculating the speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information.
4. An optical information detection device, comprising:
the first acquisition unit is used for acquiring a full-field speckle pattern of the projection pattern acquired by the first camera; the projection pattern is projected on a projection screen by a speckle projection assembly;
a second acquisition unit configured to acquire size ratio information between the projection pattern and the full-field speckle pattern;
a third obtaining unit, configured to obtain side length information of an inscribed rectangle of the full-field speckle pattern;
a second determining unit configured to determine an actual physical size of the full-field speckle pattern according to the size proportion information and the side length information;
the second calculating unit is used for calculating the view angle of the speckle projection assembly according to the actual physical size and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen; the specific formula of the view angle of the speckle projection assembly is as follows:
Figure FDA0004251280340000021
Figure FDA0004251280340000031
wherein, the first distance is H, width and height are the actual physical dimensions of the full-field speckle pattern;
the first determining unit is used for determining a target zero-order speckle pattern in the full-field speckle pattern according to a preset zero-order speckle pattern and a preset characteristic matching rule;
the second acquisition unit is used for acquiring pixel coordinate information corresponding to the target zero-level speckle pattern; wherein, the speckle at the corresponding position in a target zero-order speckle pattern has a unique pixel coordinate information;
and the first calculation unit is used for calculating target optical information according to the target zero-order speckle pattern and the pixel coordinate information thereof, wherein the target optical information comprises an optical axis deflection angle and/or a speckle rotation angle.
5. The optical information detecting apparatus according to claim 4, wherein the target optical information includes an optical axis deflection angle;
the first computing unit is specifically configured to:
acquiring a preset center point in the preset zero-order speckle pattern, and determining a target center point in the target zero-order speckle pattern according to the preset center point;
acquiring pixel differences between the preset center point and the target center point according to the pixel coordinate information;
calculating the optical axis deflection angle according to the pixel difference and the first distance; the first distance is a distance between the speckle projection assembly and the projection screen.
6. The optical information detection device of claim 4, further wherein the target optical information comprises a speckle rotation angle;
the first computing unit is specifically configured to:
acquiring a first preset scattered spot and a second preset scattered spot in the preset zero-order scattered spot pattern, and acquiring a second distance between the first preset scattered spot and the second preset scattered spot; the vertical pixel coordinates of the first preset scattered spots and the second preset scattered spots are the same;
acquiring a first target scattered spot corresponding to the first preset scattered spot and a second target scattered spot corresponding to the second preset scattered spot from the target zero-order scattered spot pattern;
acquiring a third target speckle with the same vertical pixel coordinate as the first target speckle according to the second distance;
and calculating the speckle rotation angle according to the first target speckle, the second target speckle, the third target speckle and the pixel information.
7. An optical information detection device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
8. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1 to 3.
CN202011356065.1A 2020-11-27 2020-11-27 Optical information detection method, device and equipment Active CN112556994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011356065.1A CN112556994B (en) 2020-11-27 2020-11-27 Optical information detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011356065.1A CN112556994B (en) 2020-11-27 2020-11-27 Optical information detection method, device and equipment

Publications (2)

Publication Number Publication Date
CN112556994A CN112556994A (en) 2021-03-26
CN112556994B true CN112556994B (en) 2023-07-07

Family

ID=75046279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011356065.1A Active CN112556994B (en) 2020-11-27 2020-11-27 Optical information detection method, device and equipment

Country Status (1)

Country Link
CN (1) CN112556994B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240630B (en) * 2021-04-16 2022-07-12 深圳市安思疆科技有限公司 Speckle image quality evaluation method and device, terminal equipment and readable storage medium
CN113124763B (en) * 2021-04-22 2022-05-24 奥比中光科技集团股份有限公司 Optical axis calibration method, device, terminal, system and medium for optical axis detection system
CN115760750B (en) * 2022-11-15 2023-11-21 北京的卢铭视科技有限公司 DOE quality detection method, DOE quality detection system, DOE quality detection electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911680A (en) * 2017-12-12 2018-04-13 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN111929695A (en) * 2020-07-20 2020-11-13 深圳奥比中光科技有限公司 Optical information detection system
CN111986154A (en) * 2020-07-20 2020-11-24 深圳奥比中光科技有限公司 Optical information detection method, device and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI485361B (en) * 2013-09-11 2015-05-21 Univ Nat Taiwan Measuring apparatus for three-dimensional profilometry and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911680A (en) * 2017-12-12 2018-04-13 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN111929695A (en) * 2020-07-20 2020-11-13 深圳奥比中光科技有限公司 Optical information detection system
CN111986154A (en) * 2020-07-20 2020-11-24 深圳奥比中光科技有限公司 Optical information detection method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于复合带宽积分平均衍射效率的倾斜误差研究;杨亮亮 等;《光学学报》;20200114;全文 *

Also Published As

Publication number Publication date
CN112556994A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112556994B (en) Optical information detection method, device and equipment
CN111179358B (en) Calibration method, device, equipment and storage medium
CN111263142B (en) Method, device, equipment and medium for testing optical anti-shake of camera module
CN107911680B (en) Projection equipment correction method and device and projection equipment
CN111860489A (en) Certificate image correction method, device, equipment and storage medium
CN109461133B (en) Bridge bolt falling detection method and terminal equipment
CN109949306B (en) Reflecting surface angle deviation detection method, terminal device and storage medium
CN108182708B (en) Calibration method and calibration device of binocular camera and terminal equipment
CN113124763B (en) Optical axis calibration method, device, terminal, system and medium for optical axis detection system
CN110634137A (en) Bridge deformation monitoring method, device and equipment based on visual perception
CN111681186A (en) Image processing method and device, electronic equipment and readable storage medium
CN111986154A (en) Optical information detection method, device and equipment
CN113465573A (en) Monocular distance measuring method and device and intelligent device
CN111862208B (en) Vehicle positioning method, device and server based on screen optical communication
KR100624469B1 (en) Checker board having asymmetrical pattern, method and apparatus for calibrating images obtained from image acquisition apparatus using the same
CN114066930A (en) Planar target tracking method and device, terminal equipment and storage medium
EP3822579A1 (en) Three-dimensional measurement device and method
CN112629828B (en) Optical information detection method, device and equipment
CN112784633A (en) Method and device for processing lane boundary, electronic equipment and storage medium
CN111238369B (en) Method, system and equipment for measuring volume of double rectangular objects
CN112163578A (en) Method and system for improving OCR recognition rate
CN111429399A (en) Straight line detection method and device
CN111648414A (en) Method and device for measuring horizontal and vertical displacement of foundation pit by using digital image
CN112711965B (en) Drawing recognition method, device and equipment
CN113625296B (en) Robot positioning method and device based on reflector and robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant