CN113766218A - Position detection method for optical lens, electronic device, and storage medium - Google Patents

Position detection method for optical lens, electronic device, and storage medium Download PDF

Info

Publication number
CN113766218A
CN113766218A CN202111075352.XA CN202111075352A CN113766218A CN 113766218 A CN113766218 A CN 113766218A CN 202111075352 A CN202111075352 A CN 202111075352A CN 113766218 A CN113766218 A CN 113766218A
Authority
CN
China
Prior art keywords
center
pattern
light spot
image
optical lens
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.)
Pending
Application number
CN202111075352.XA
Other languages
Chinese (zh)
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.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing Co Ltd
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 Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
Priority to CN202111075352.XA priority Critical patent/CN113766218A/en
Publication of CN113766218A publication Critical patent/CN113766218A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Abstract

The application provides a position detection method of an optical lens, an electronic device and a storage medium, wherein the method comprises the following steps: controlling the screen layer to display light spots, wherein the light spots form light spot virtual images on the surface of the screen layer; acquiring a target image acquired by an image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern; if the center of the light spot virtual image pattern is coincident with the center of the light spot pattern, judging whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image; and determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image. The scheme provides a simple and quick test method for effectively detecting whether the center of the optical lens is aligned with the image sensor.

Description

Position detection method for optical lens, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a method for detecting a position of an optical lens, an electronic device, and a computer-readable storage medium.
Background
Optical fingerprint under the screen is a fingerprint identification technology applied to mobile intelligent terminal, and it integrates optical fingerprint sensor under the display screen perfectly, need not to design entity button, and the user directly dabs the appointed region of mobile terminal display screen and can realize fingerprint identification. The technology drives the design innovation of the mobile intelligent terminal, and brings incomparable use experience for users.
As shown in fig. 1, the working principle of the optical fingerprint under the screen is as follows: when a finger touches the screen, the touched screen displays light spots, light rays are reflected by the fingerprint to enter the optical lens below the screen, and finally the light rays are imaged on the image sensor.
However, at present, the position of the internal elements of the optical fingerprint device under the screen is unreasonable, which causes image dislocation, as shown in fig. 2, so that the effective image acquisition range is reduced, and fingerprint identification is not facilitated.
Disclosure of Invention
The embodiment of the application provides a position detection method of an optical lens, which is used for effectively and quickly judging whether an optical lens under a screen is aligned with an image sensor.
The application provides a position detection method of an optical lens, wherein the optical lens comprises a screen layer, an optical lens and an image sensor, and the method comprises the following steps:
controlling the screen layer to display light spots; forming a light spot virtual image on the surface of the screen layer by the light spot;
acquiring a target image acquired by the image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern;
if the center of the light spot virtual image pattern is coincident with the center of the light spot pattern, judging whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image;
and determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image.
In an embodiment, the method further comprises:
if the center of the light spot virtual image pattern does not coincide with the center of the light spot pattern, adjusting the position of the light spot displayed on the screen layer to enable the center of the light spot virtual image pattern to coincide with the center of the light spot pattern.
In an embodiment, the determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image includes:
and if the centers of the light spot virtual image pattern and the light spot pattern are not at the center of the target image, determining that the center of the optical lens is not aligned with the center of the image sensor.
In an embodiment, the determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image includes:
and if the offset distance between the centers of the light spot virtual image pattern and the light spot pattern and the center of the target image is larger than a preset value, determining that the center of the optical lens is not aligned with the center of the image sensor.
In an embodiment, the method further comprises:
and if the center of the optical lens is not aligned with the center of the image sensor, determining that the optical lens is unqualified.
In an embodiment, the light spot has a circular shape, and when the center of the virtual light spot pattern coincides with the center of the virtual light spot pattern, the virtual light spot pattern and the virtual light spot pattern together form a concentric circle.
In an embodiment, the determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image includes:
if the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image, determining that the center of the optical lens is aligned with the center of the image sensor;
wherein the center of the optical lens is aligned with the center of the image sensor, indicating that the optical lens is qualified.
In one embodiment, if the center of the optical lens is aligned with the center of the image sensor, the method further comprises:
if a trigger instruction of the area where the target object contacts the light spot on the surface of the screen layer is detected, controlling the screen layer to display the light spot; the light emitted by the light spot enters the optical lens below the screen layer through the reflection of the target object, and is imaged on the image sensor;
and acquiring a biological characteristic image of the target object acquired by the image sensor.
An embodiment of the present application further provides an electronic device, where the electronic device includes:
a memory to store a computer program;
a processor;
wherein the processor is configured to execute any one of the above-mentioned optical lens position detection methods.
An embodiment of the present application further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program can be executed by a processor to perform any one of the above-mentioned methods for detecting a position of an optical lens.
The technical scheme that this application above-mentioned embodiment provided shows the facula through control screen layer, acquires the target image that contains facula virtual image pattern and facula pattern that image sensor gathered, and the center of work as facula virtual image pattern coincides with the center of facula pattern, according to whether the center of facula virtual image pattern and facula pattern is in the center of target image, thereby confirm fast optical lens's center with whether image sensor's center aligns, can judge fast from this whether qualified fingerprint identification device, in time handle off-spec product.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram of the working principle of an optical fingerprint under a screen in the background art;
FIG. 2 is a schematic illustration of a reduction in the range of underscreen optical fingerprint acquisition;
FIG. 3 is a schematic diagram illustrating a method for detecting a position of an optical lens according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a spot pattern and a virtual spot image formed by a circular spot according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a target image formed by a circular light spot according to an embodiment of the present disclosure;
fig. 8 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a target image formed by a circular light spot according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram of an adjustment of an actual collecting area of an optical lens provided in an embodiment of the present application;
fig. 11 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure;
fig. 12 is a block diagram of a position detection apparatus for an optical lens according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 3 is a schematic diagram illustrating a principle of a method for detecting a position of an optical lens according to an embodiment of the present disclosure. As shown in fig. 3, the optical lens includes a screen layer 310, an optical lens 320, and an image sensor 330, wherein a light emitting layer of the screen layer 310 can display light spots 311, and the light spots 311 present virtual images 312 on an upper surface of the screen layer 310. Image sensor 330 may capture a target image that includes a spot pattern for spot 311 and a virtual spot pattern for virtual spot image 312.
The target image captured by the image sensor 330 may be sent to the control device, which determines whether the optical lens 320 and the image sensor 330 in the optical lens are aligned based on the positions of the spot pattern and the spot virtual image pattern in the target image.
Fig. 4 shows an electronic device 4 according to an embodiment of the present application, where the electronic device 4 includes: at least one processor 41 and a memory 42, one processor being exemplified in fig. 4. The processor 41 and the memory 42 are connected by a bus 40, and the memory 42 stores instructions executable by the processor 41 and the instructions are executed by the processor 41. The processor 41 is configured to execute the position detection method of the optical lens provided in the embodiment of the present application.
Processor 41 may be a device containing a Central Processing Unit (CPU), image processing unit (GPU) or other form of processing unit having data processing and/or instruction execution capabilities, may process data for other components in electronic device 4, and may also control other components in electronic device 4 to perform desired functions.
Memory 42 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium and executed by the processor 41 to implement the position detection method of the optical lens described below. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
It should be noted that the components and structure of electronic device 4 shown in fig. 4 are exemplary only, and not limiting, and electronic device 4 may have other components and structures as desired.
In an embodiment, the example electronic device 4 for implementing the position detection method of the optical lens according to the embodiment of the present application may be implemented as a smart device such as a smart phone, a tablet computer, a desktop computer, a notebook computer, and a vehicle-mounted terminal.
Fig. 5 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure. As shown in fig. 5, the method may be executed by the electronic device 4 shown in fig. 4 to implement the position detection of the optical lens, and the method includes the following steps S510 to S540.
Step S510: and controlling the screen layer to display light spots, wherein the light spots form light spot virtual images on the surface of the screen layer.
In this step, the screen layer includes the one deck luminescent layer, and the luminescent layer can be the LED light source, makes the screen layer show the facula through controlling LED's luminous, and when the facula of luminescent layer shined the surface on screen layer, forms corresponding facula virtual image on screen layer surface. The light spot may be circular, equilateral triangular, rectangular, square, or the like. The embodiment of the present application takes a circular shape as an example, and other shapes can be realized by referring to the embodiment of the present application.
Step S520: and acquiring a target image acquired by the image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern.
In this step, facula and facula virtual image form corresponding facula pattern and facula virtual image pattern in image sensor through optical lens jointly, because the facula virtual image is that the facula shines the formation on screen layer surface, so facula pattern and facula virtual image pattern are the same but the different pattern of size of shape. The target image is an image acquired by the image sensor, and the target image comprises the light spot pattern and the light spot virtual image pattern.
Step S530: and if the centers of the spot virtual image patterns coincide with the center of the spot pattern, judging whether the centers of the spot virtual image patterns and the spot pattern are at the center of the target image.
In this step, the target image contains facula virtual image pattern and facula pattern, and when the center of facula virtual image pattern and the center coincidence of facula pattern, the center of the facula that shows the screen layer was aligned with optical lens's center, and facula pattern and facula virtual image pattern superpose together with the mode of center coincidence, and the facula pattern is within the facula virtual image pattern.
Fig. 6 shows several positional relationships between the light spot virtual image pattern and the light spot pattern in the target image. As shown in fig. 6, when the spot is circular, the spot pattern and the virtual spot image pattern may form an intersecting, tangential, containing relationship as shown in a, b, and c in fig. 6, where the center of the spot pattern and the center of the virtual spot image pattern do not coincide. Assuming that the spot pattern and the virtual spot image pattern shown in fig. 6 form a concentric circle (as shown by d in fig. 6), indicating that the center of the spot pattern coincides with the center of the virtual spot image pattern, it may be further determined whether the centers of the virtual spot image pattern and the virtual spot image pattern are at the center of the target image.
On the contrary, if the center of the spot virtual image pattern does not coincide with the center of the spot pattern, the display position of the spot needs to be adjusted to make the center of the spot virtual image pattern coincide with the center of the spot pattern, and until the center of the spot virtual image pattern coincides with the center of the spot pattern, whether the centers of the spot virtual image pattern and the spot pattern are at the center of the target image is further judged. As shown in fig. 7, the virtual spot image pattern and the center of the spot pattern are shown to be at the center of the target image.
Step S540: and determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image.
In this step, it is determined whether the center of the optical lens is aligned with the center of the image sensor, and it is necessary to determine whether the center of the pattern formed on the image sensor by the optical lens falls on the center of the image sensor.
When the centers of the spot virtual image pattern and the spot pattern are at the center of the target image, determining that the center of the optical lens is aligned with the center of the image sensor. Assuming that the light spot is circular, as shown in fig. 7, the center of the concentric circle formed by the virtual light spot pattern and the light spot pattern is at the center of the target image, which means that the center of the optical lens is aligned with the center of the image sensor.
And when the centers of the light spot virtual image pattern and the light spot pattern are not at the center of the target image, determining that the center of the optical lens is not aligned with the center of the image sensor.
According to the method for detecting the position of the optical lens, the position of the optical lens is detected through the target image acquired by the image sensor and according to whether the coincidence center of the light spot pattern and the light spot virtual image pattern in the target image falls at the center of the target image. The scheme can be applied to all design scenes for acquiring the biological characteristics under the screen, particularly to the design scenes for optical fingerprints under the screen, and the position detection of the optical lens can be quickly and simply realized.
In another embodiment, if the center of the virtual spot image pattern does not coincide with the center of the spot pattern, the position of the spot displayed on the screen layer is adjusted so that the center of the virtual spot image pattern coincides with the center of the spot pattern.
When the center of the light spot virtual image pattern and the center of the light spot pattern do not coincide, the LED in the screen layer is controlled, the luminous area of the LED is changed, and the position change of the light spot displayed by the screen layer is realized. And after the position of the light spot is adjusted, observing a target image formed in the image sensor, and stopping adjusting the position of the light spot when the center of the light spot virtual image pattern in the target image is superposed with the center of the light spot pattern. In one embodiment, assuming that the target image includes concentric circles, the adjustment of the spot position is stopped.
Fig. 8 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure. As shown in fig. 8, the method may be performed by the electronic device 4 shown in fig. 4 to determine whether the optical lens center is aligned with the image sensor center according to the pattern position of the target image, and the method includes the following steps S810 to S840.
Step S810: and controlling the screen layer to display light spots, wherein the light spots form light spot virtual images on the surface of the screen layer. See the description of step 510 in the above embodiments for details.
Step S820: and acquiring a target image acquired by the image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern. See the description of step 520 in the above embodiments for details.
Step S830: and if the centers of the spot virtual image patterns coincide with the center of the spot pattern, judging whether the deviation value between the centers of the spot virtual image patterns and the spot pattern and the center of the target image is larger than a preset value.
In this step, the target image contains facula virtual image pattern and facula pattern, and when the center of facula virtual image pattern and the center coincidence of facula pattern, the facula center of screen layer and optical lens's center were aligned, and facula pattern and facula virtual image pattern superpose together with the mode of center coincidence, and the facula pattern is within the facula virtual image pattern.
Setting the offset value threshold value between the light spot virtual image pattern and the center of the light spot pattern and the center of the target image as p. Taking the center of the target image as an origin, when the offset between the centers of the virtual spot image pattern and the spot pattern and the center of the target image is set to (dx, dy), calculating the offset between the centers of the virtual spot image pattern and the spot pattern and the center of the target image, such as by the following formula:
Figure BDA0003262058840000101
and judging whether the deviation value between the light spot virtual image pattern and the center of the light spot pattern and the center of the target image is larger than a preset value, namely judging whether m is larger than p. Assuming that the light spot is circular, it is determined whether an offset value between the center of the concentric circles formed by the light spot virtual image pattern and the light spot pattern and the center of the target image is greater than a preset value, as shown in fig. 9. The spot shape is not limited, and may be any shape such as a square or a rectangle.
Step S840: and if the deviation value between the centers of the light spot virtual image pattern and the light spot pattern and the center of the target image is larger than a preset value, determining that the center of the optical lens is not aligned with the center of the image sensor.
In this step, if the virtual spot image pattern and the offset value between the center of the spot pattern and the center of the target image are greater than the predetermined value, i.e., m is greater than p, the center of the optical lens is not aligned with the center of the image sensor.
In another embodiment, as shown in a in fig. 10, the region imaged by the image sensor is an acquirable region of the biometric feature, but in practical applications, the actually acquired region is set according to the size of the biometric feature, such as the actually acquired region is set according to the size of the acquired fingerprint. The actual biometric collected is typically smaller than the area imaged by the image sensor, so the actual collection area is smaller than the collectable area.
The center of the actual acquisition area is generally located at the center of the acquirable area, and when the offset position between the centers of the virtual spot image pattern and the spot pattern and the center of the target image is (dx, dy), complete acquisition of the biometric characteristic can be achieved by moving the center of the actual acquisition area to the offset position (dx, dy) (as shown by b in fig. 10). When optical fingerprint collection is carried out, the center of the collectable area and the center of actual collection are both located at (100mm ), and when the offset position between the centers of the light spot virtual image pattern and the light spot pattern and the center of the target image is (-5mm, 5mm), the center of the collection area can be adjusted to (95mm, 105mm), so that fingerprint characteristics are completely collected.
According to the position detection method of the optical lens, the position detection of the optical lens is realized through the target image acquired by the image sensor and according to whether the coincidence center of the light spot pattern and the light spot virtual image pattern in the target image falls within the preset value range of the center of the target image. The scheme can be applied to all design scenes for acquiring the biological characteristics under the screen, particularly to the design scenes for optical fingerprints under the screen, and the position detection of the optical lens can be quickly and simply realized.
Fig. 11 is a schematic flowchart of a method for detecting a position of an optical lens according to an embodiment of the present disclosure. As shown in fig. 11, the method may be executed by the electronic device 4 shown in fig. 4 to determine whether the optical lens center is aligned with the image sensor center according to the light spot of the screen layer and the target image formed on the image sensor by the light spot virtual image, and implement position detection of the optical lens and quality determination of the optical lens, and includes the following steps S1110 to S1170.
Step S1110: and controlling the screen layer to display light spots, wherein the light spots form light spot virtual images on the surface of the screen layer. See the description of step 510 in the above embodiments for details.
Step S1120: and acquiring a target image acquired by the image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern. See the description of step 520 in the above embodiments for details.
Step S1130: and if the centers of the spot virtual image patterns coincide with the center of the spot pattern, judging whether the centers of the spot virtual image patterns and the spot pattern are at the center of the target image. See the description of step 530 in the above embodiments for details.
Step S1140: and if the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image, determining that the center of the optical lens is aligned with the center of the image sensor.
In this step, the light spot virtual image pattern and the center of the light spot pattern are at the center of the target image, which means that the light spot virtual image and the light spot jointly pass through the optical lens to form a pattern in the image sensor, and the center of the pattern is at the imaging center of the image sensor, and the center of the optical lens is necessarily aligned with the center of the image sensor.
Step S1150: and if the center of the optical lens is aligned with the center of the image sensor, the optical lens is qualified.
In this step, the center of the optical lens is aligned with the center of the image sensor, and the lens device can effectively and accurately acquire the features, so that the optical lens is qualified.
When the optical lens is qualified, fingerprint identification can be carried out by using the lens, and the method comprises the following specific steps: if a trigger instruction that a target object (such as a finger, a palm and the like) touches an area where a light spot on the surface of a screen layer is located is detected, controlling the screen layer to display the light spot; and light rays emitted by the light spots enter the optical lens below the screen layer through the reflection of the target object and are imaged on the image sensor. And acquiring a biological characteristic image of the target object acquired by the image sensor. The biometric image may be a fingerprint image or a palm print image.
Step S1160: and determining that the optical lens center is not aligned with the image sensor center.
In this step, the fact that the centers of the virtual spot image pattern and the spot pattern are not at the center of the target image means that the virtual spot image and the spot together pass through the optical lens to form a pattern in the image sensor, and the center of the pattern is not at the imaging center of the image sensor, when the center of the optical lens is not aligned with the center of the image sensor.
Step S1170: the center of the optical lens is not aligned with the center of the image sensor, and the optical lens is unqualified.
In this step, the center of the optical lens is aligned with the center of the image sensor, and the content of the characteristic image acquired by the lens device is missing, so that the lens device cannot effectively and accurately acquire the characteristics, and the optical lens is unqualified.
According to the optical lens position detection method, the position detection and the quality detection of the optical lens are realized through the target image acquired by the image sensor and according to whether the coincidence center of the light spot pattern and the light spot virtual image pattern in the target image falls at the center of the target image. The scheme can be applied to all design scenes for acquiring the biological characteristics under the screen, particularly to the design scenes for optical fingerprints under the screen, and can quickly and simply realize the position detection and the quality detection of the optical lens.
Fig. 12 is a block diagram of a position detection apparatus for an optical lens according to an embodiment of the present application. As shown in fig. 12, the apparatus includes: a control module 1210, an image acquisition module 1220, a determination module 1230, and a decision module 1240.
The control module 1210 is configured to control the screen layer to display light spots and form light spot virtual images on the surface of the screen layer by the light spots;
an image obtaining module 1220, configured to obtain a target image acquired by the image sensor, where the target image includes a light spot virtual image pattern and a light spot pattern;
a determining module 1230, configured to determine whether the centers of the spot virtual image pattern and the spot pattern are at the center of the target image if the center of the spot virtual image pattern and the center of the spot pattern coincide with each other;
a decision module 1240, configured to determine whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image.
The implementation processes of the functions and actions of the modules in the device are specifically detailed in the implementation processes of the corresponding steps in the position detection method of the optical lens, and are not described again here.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A method of detecting a position of an optical lens, the optical lens including a screen layer, an optical lens, and an image sensor, the method comprising:
controlling the screen layer to display light spots; forming a light spot virtual image on the surface of the screen layer by the light spot;
acquiring a target image acquired by the image sensor, wherein the target image comprises a light spot virtual image pattern and a light spot pattern;
if the center of the light spot virtual image pattern is coincident with the center of the light spot pattern, judging whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image,
and determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image.
2. The method of claim 1, further comprising:
if the center of the light spot virtual image pattern does not coincide with the center of the light spot pattern, adjusting the position of the light spot displayed on the screen layer to enable the center of the light spot virtual image pattern to coincide with the center of the light spot pattern.
3. The method of claim 1, wherein determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image comprises:
and if the centers of the light spot virtual image pattern and the light spot pattern are not at the center of the target image, determining that the center of the optical lens is not aligned with the center of the image sensor.
4. The method of claim 1, wherein determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image comprises:
and if the offset distance between the centers of the light spot virtual image pattern and the light spot pattern and the center of the target image is larger than a preset value, determining that the center of the optical lens is not aligned with the center of the image sensor.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
and if the center of the optical lens is not aligned with the center of the image sensor, determining that the optical lens is unqualified.
6. The method of claim 1, wherein the spot is circular, and when the center of the virtual spot pattern and the center of the virtual spot pattern coincide, the virtual spot pattern and the virtual spot pattern together form a concentric circle.
7. The method of claim 1, wherein determining whether the center of the optical lens is aligned with the center of the image sensor according to whether the centers of the virtual spot image pattern and the spot pattern are at the center of the target image comprises:
if the centers of the light spot virtual image pattern and the light spot pattern are at the center of the target image, determining that the center of the optical lens is aligned with the center of the image sensor;
wherein the center of the optical lens is aligned with the center of the image sensor, indicating that the optical lens is qualified.
8. The method of claim 1, wherein if the center of the optical lens is aligned with the center of the image sensor, the method further comprises:
if a trigger instruction of the area where the target object contacts the light spot on the surface of the screen layer is detected, controlling the screen layer to display the light spot; the light emitted by the light spot enters the optical lens below the screen layer through the reflection of the target object, and is imaged on the image sensor;
and acquiring a biological characteristic image of the target object acquired by the image sensor.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the position detection method of an optical lens according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor to perform the method of detecting the position of an optical lens according to any one of claims 1 to 8.
CN202111075352.XA 2021-09-14 2021-09-14 Position detection method for optical lens, electronic device, and storage medium Pending CN113766218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111075352.XA CN113766218A (en) 2021-09-14 2021-09-14 Position detection method for optical lens, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111075352.XA CN113766218A (en) 2021-09-14 2021-09-14 Position detection method for optical lens, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN113766218A true CN113766218A (en) 2021-12-07

Family

ID=78795529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111075352.XA Pending CN113766218A (en) 2021-09-14 2021-09-14 Position detection method for optical lens, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113766218A (en)

Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB218763A (en) * 1923-04-17 1924-07-17 Hilger Ltd Adam Improvements in projection apparatus
JPH05241079A (en) * 1992-02-29 1993-09-21 Nidek Co Ltd Binocular stereoscopic microscope
WO1995034013A1 (en) * 1994-06-07 1995-12-14 Industrial Research Limited High speed optical system
WO2001060241A1 (en) * 2000-02-15 2001-08-23 Ian Marshall Ophthalmoscope with multiple interchangeable groups of optical components
WO2009126264A2 (en) * 2008-04-06 2009-10-15 David Chaum Proximal image projection system
US8213022B1 (en) * 2009-03-04 2012-07-03 University Of Central Florida Research Foundation, Inc. Spatially smart optical sensing and scanning
WO2015025878A1 (en) * 2013-08-21 2015-02-26 オリンパスイメージング株式会社 Imaging device, imaging method, and program
CN105657388A (en) * 2015-12-30 2016-06-08 广东威创视讯科技股份有限公司 Method for adjusting position of back projector and back projector
US20160356978A1 (en) * 2015-06-04 2016-12-08 Qualcomm Incorporated Methods and devices for thin camera focusing alignment
US20170084033A1 (en) * 2015-09-17 2017-03-23 Thomson Licensing Method and system for calibrating an image acquisition device and corresponding computer program product
CN206077526U (en) * 2016-08-16 2017-04-05 浙江中正智能科技有限公司 A kind of improved dual-side image acquisition device
CN106791817A (en) * 2016-12-27 2017-05-31 歌尔股份有限公司 The assemble method of camera lens to be assembled and image sensor
CN107153000A (en) * 2017-06-20 2017-09-12 中国地质大学(武汉) A kind of portable filter optical performance detecting device and its detection method
CN109858423A (en) * 2019-01-25 2019-06-07 上海思立微电子科技有限公司 Fingerprint image acquisition methods and equipment
CN110100250A (en) * 2019-03-18 2019-08-06 深圳市汇顶科技股份有限公司 Device, method and the electronic equipment of fingerprint recognition
CN110967169A (en) * 2019-12-16 2020-04-07 塔普翊海(上海)智能科技有限公司 Detection table and detection method for optical module of perspective AR glasses
CN111367286A (en) * 2020-03-19 2020-07-03 沈阳新松机器人自动化股份有限公司 Laser vision positioning system and method for measuring position of docking equipment
CN111523523A (en) * 2020-06-29 2020-08-11 深圳市汇顶科技股份有限公司 Method and device for detecting distance between display screen and fingerprint sensor and display screen
US20200284883A1 (en) * 2019-03-08 2020-09-10 Osram Gmbh Component for a lidar sensor system, lidar sensor system, lidar sensor device, method for a lidar sensor system and method for a lidar sensor device
CN111735613A (en) * 2020-08-11 2020-10-02 吉林省春曦光电科技有限公司 Optical quality detection system of four-quadrant detector lens
CN111819573A (en) * 2020-06-10 2020-10-23 深圳市汇顶科技股份有限公司 Light spot adjusting method, light spot adjusting device and light spot adjusting system
WO2020232696A1 (en) * 2019-05-23 2020-11-26 深圳市汇顶科技股份有限公司 Calibration method and device for optical fingerprint identification and electronic equipment
CN112098426A (en) * 2020-11-17 2020-12-18 北京领邦智能装备股份公司 High-precision imaging system and method, image acquisition device and detection equipment
CN112770111A (en) * 2020-12-30 2021-05-07 凌云光技术股份有限公司 Device and method for identifying coincidence of optical axis of lens and center of image sensor
WO2021146976A1 (en) * 2020-01-22 2021-07-29 深圳市汇顶科技股份有限公司 Fingerprint detection apparatus and electronic device

Patent Citations (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB218763A (en) * 1923-04-17 1924-07-17 Hilger Ltd Adam Improvements in projection apparatus
JPH05241079A (en) * 1992-02-29 1993-09-21 Nidek Co Ltd Binocular stereoscopic microscope
WO1995034013A1 (en) * 1994-06-07 1995-12-14 Industrial Research Limited High speed optical system
WO2001060241A1 (en) * 2000-02-15 2001-08-23 Ian Marshall Ophthalmoscope with multiple interchangeable groups of optical components
WO2009126264A2 (en) * 2008-04-06 2009-10-15 David Chaum Proximal image projection system
US8213022B1 (en) * 2009-03-04 2012-07-03 University Of Central Florida Research Foundation, Inc. Spatially smart optical sensing and scanning
WO2015025878A1 (en) * 2013-08-21 2015-02-26 オリンパスイメージング株式会社 Imaging device, imaging method, and program
US20160356978A1 (en) * 2015-06-04 2016-12-08 Qualcomm Incorporated Methods and devices for thin camera focusing alignment
US20170084033A1 (en) * 2015-09-17 2017-03-23 Thomson Licensing Method and system for calibrating an image acquisition device and corresponding computer program product
CN105657388A (en) * 2015-12-30 2016-06-08 广东威创视讯科技股份有限公司 Method for adjusting position of back projector and back projector
CN206077526U (en) * 2016-08-16 2017-04-05 浙江中正智能科技有限公司 A kind of improved dual-side image acquisition device
CN106791817A (en) * 2016-12-27 2017-05-31 歌尔股份有限公司 The assemble method of camera lens to be assembled and image sensor
CN107153000A (en) * 2017-06-20 2017-09-12 中国地质大学(武汉) A kind of portable filter optical performance detecting device and its detection method
CN109858423A (en) * 2019-01-25 2019-06-07 上海思立微电子科技有限公司 Fingerprint image acquisition methods and equipment
US20200284883A1 (en) * 2019-03-08 2020-09-10 Osram Gmbh Component for a lidar sensor system, lidar sensor system, lidar sensor device, method for a lidar sensor system and method for a lidar sensor device
CN110100250A (en) * 2019-03-18 2019-08-06 深圳市汇顶科技股份有限公司 Device, method and the electronic equipment of fingerprint recognition
WO2020186415A1 (en) * 2019-03-18 2020-09-24 深圳市汇顶科技股份有限公司 Device and method for fingerprint recognition, and electronic apparatus
WO2020232696A1 (en) * 2019-05-23 2020-11-26 深圳市汇顶科技股份有限公司 Calibration method and device for optical fingerprint identification and electronic equipment
CN112513871A (en) * 2019-05-23 2021-03-16 深圳市汇顶科技股份有限公司 Calibration method and device for optical fingerprint identification and electronic equipment
CN110967169A (en) * 2019-12-16 2020-04-07 塔普翊海(上海)智能科技有限公司 Detection table and detection method for optical module of perspective AR glasses
WO2021146976A1 (en) * 2020-01-22 2021-07-29 深圳市汇顶科技股份有限公司 Fingerprint detection apparatus and electronic device
CN111367286A (en) * 2020-03-19 2020-07-03 沈阳新松机器人自动化股份有限公司 Laser vision positioning system and method for measuring position of docking equipment
CN111819573A (en) * 2020-06-10 2020-10-23 深圳市汇顶科技股份有限公司 Light spot adjusting method, light spot adjusting device and light spot adjusting system
CN111523523A (en) * 2020-06-29 2020-08-11 深圳市汇顶科技股份有限公司 Method and device for detecting distance between display screen and fingerprint sensor and display screen
CN111735613A (en) * 2020-08-11 2020-10-02 吉林省春曦光电科技有限公司 Optical quality detection system of four-quadrant detector lens
CN112098426A (en) * 2020-11-17 2020-12-18 北京领邦智能装备股份公司 High-precision imaging system and method, image acquisition device and detection equipment
CN112770111A (en) * 2020-12-30 2021-05-07 凌云光技术股份有限公司 Device and method for identifying coincidence of optical axis of lens and center of image sensor

Similar Documents

Publication Publication Date Title
US11650659B2 (en) User input processing with eye tracking
US8831295B2 (en) Electronic device configured to apply facial recognition based upon reflected infrared illumination and related methods
US7313255B2 (en) System and method for optically detecting a click event
CN110266916B (en) Method and system for processing glare in eye tracking
EP3171294B1 (en) Information processing apparatus, biometric authentication method, and biometric authentication program
US9727774B2 (en) System and method for detecting an organic body for authentication
CN107562288B (en) Response method based on infrared touch device, infrared touch device and medium
CN103916592A (en) Apparatus and method for photographing portrait in portable terminal having camera
US20110141257A1 (en) Apparatus and method for registering plurality of facial images for face recognition
US8594391B2 (en) Finger-based identification systems and methods
US20200167542A1 (en) Electronic Device, Method For Controlling The Same, And Computer Readable Storage Medium
CN113766218A (en) Position detection method for optical lens, electronic device, and storage medium
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
KR20180090798A (en) Method and apparatus for bi-directional biometric authentication
CN113271379B (en) Image processing method and device and electronic equipment
KR101385263B1 (en) System and method for a virtual keyboard
US11436338B2 (en) Biometric recognition attack test methods, apparatuses, and devices
JP4972013B2 (en) Information presenting apparatus, information presenting method, information presenting program, and recording medium recording the program
CN113282220A (en) False touch prevention method, method for determining false touch prevention area and mobile terminal
JP5118663B2 (en) Information terminal equipment
JPH1091785A (en) Check method and device using pattern matching
CN116486469A (en) Iris recognition method and device in human eye image
CN115829575A (en) Payment verification method, device, terminal, server and storage medium
CN112684923A (en) Handwriting generation method and device, terminal equipment and computer storage medium
JP2023064499A (en) Information processing apparatus, imaging system, method, and program

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