Electronic device and method of configuring event camera

By using the electronic devices of the processor and transceiver, and utilizing the target image acquired by the light source and image sensor in the automatic alignment system, geometric parameters and fitting curves are calculated to optimize the lens and image sensor positions of the event camera. This solves the problem of event camera sharpness optimization and improves image quality and computational efficiency.

CN121888074APending Publication Date: 2026-04-17JUJIA UNITED TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JUJIA UNITED TECHNOLOGY CO LTD
Filing Date
2026-01-22
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing automatic alignment systems cannot effectively optimize the relative position between the event camera's lens and the image sensor, resulting in a failure to ensure sharp output from the event camera.

Method used

By configuring the electronic devices of the processor and transceiver, the target pattern is displayed using the light source in the automatic alignment system. The processor calculates geometric parameters based on multiple images acquired by the image sensor and generates a fitting curve to determine the optimal configuration distance between the lens and the image sensor.

Benefits of technology

It achieves the optimal configuration between the event camera lens and the image sensor, improving the accuracy and efficiency of image sharpness judgment, reducing sensitivity to environmental changes, and reducing computational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121888074A_ABST
    Figure CN121888074A_ABST
Patent Text Reader

Abstract

An electronic device and a method of configuring an event camera are provided. The method includes: communicating with an auto-alignment system of an event camera, where the auto-alignment system includes a light source, where the event camera includes a lens and an image sensor at a distance from the lens; determining the configuration distance of the lens according to the image acquired by the image sensor; and outputting the configuration distance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a camera assembly technique, and more particularly to an electronic device and method for configuring an event camera. Background Technology

[0002] In traditional camera assembly processes, an active alignment (AA) system can instantly adjust the relative positions between the lens and the sensor (e.g., complementary metal-oxide-semiconductor (CMOS) element or charge-coupled device (CCD)) to ensure that the optical system achieves the optimal focal length and makes the image output by the camera clearer.

[0003] Unlike conventional cameras, event cameras are used to capture changes in brightness. When the brightness change of a pixel exceeds a threshold, the event camera records that pixel and outputs its relevant information. Because event cameras cannot generate continuous images or grayscale images, the image quality metrics relied upon by AA systems (e.g., modulation transfer function (MTF) or spatial frequency response (SFR)) cannot support the configuration of event cameras. Therefore, optimizing the configuration of event cameras is one of the important issues in this field. Summary of the Invention

[0004] The present invention provides an electronic device and method for configuring an event camera, which can optimize the distance between the lens of the event camera and the image sensor.

[0005] The present invention discloses an electronic device for configuring an event camera, comprising a processor and a transceiver. The transceiver is communicatively connected to an automatic alignment system of the event camera, wherein the automatic alignment system includes a light source, and wherein the event camera includes a lens and an image sensor disposed at a distance from the lens. The processor is coupled to the transceiver, wherein the processor is configured to perform: determining a configuration distance of the lens based on an image acquired by the image sensor; and outputting the configuration distance.

[0006] In one embodiment of the present invention, the processor described above is configured to further perform: receiving a first image, a second image, and a third image acquired by an image sensor from an automatic alignment system, wherein the image sensor acquires a target pattern displayed by a light source at a first distance to form a first image, acquires a target pattern displayed by a light source at a second distance to form a second image, and acquires a target pattern displayed by a light source at a third distance to form a third image; and determining a configuration distance based on the first distance, the second distance, the third distance, the first image, the second image, and the third image.

[0007] In one embodiment of the invention, the image sensor described above includes an event-based vision sensor, wherein the image sensor acquires a target pattern displayed by a light source during a period of time to form a first image.

[0008] In one embodiment of the present invention, the target pattern is a rectangle, wherein the processor is configured to further perform: calculating a first aspect ratio of the rectangle in a first image, calculating a second aspect ratio of the rectangle in a second image, and calculating a third aspect ratio of the rectangle in a third image; determining whether the first aspect ratio is less than the second and third aspect ratios; and in response to the first aspect ratio being less than the second and third aspect ratios, selecting a first distance from a first distance, a second distance, and a third distance as a configuration distance.

[0009] In one embodiment of the present invention, the first image includes a first geometric contour and a second geometric contour corresponding to a target graphic, wherein the processor is configured to further perform: calculating a first absolute difference between the first geometric contour and the second geometric contour in a first dimension and a second absolute difference in a second dimension, and calculating a first ratio of the first absolute difference to the second absolute difference, wherein the first absolute difference is greater than the second absolute difference; determining whether the first ratio of the first image is less than the second ratio of the second image and the third ratio of the third image; and in response to the first ratio being less than the second ratio and the third ratio, selecting a first distance from a first distance, a second distance, and a third distance as a configuration distance.

[0010] In one embodiment of the present invention, the first geometric profile described above is a circle or a square.

[0011] In one embodiment of the present invention, the first distance between the first geometric contour and the pixel in the first image corresponding to the center point of the image sensor is different from the second distance between the second geometric contour and the pixel.

[0012] In one embodiment of the present invention, the processor described above is configured to further perform: calculating a first geometric parameter of the target graphic in a first image, calculating a second geometric parameter of the target graphic in a second image, and calculating a third geometric parameter of the target graphic in a third image; generating a fitting curve based on the first geometric parameter, the second geometric parameter, and the third geometric parameter; and determining a configuration distance based on the extreme value of the fitting curve.

[0013] In one embodiment of the invention, the processor described above is configured to further perform: receiving a fourth image acquired by an image sensor from an automatic alignment system, wherein the image sensor acquires a target pattern displayed by a light source at a fourth distance to form the fourth image; calculating a fourth geometric parameter of the target pattern in the fourth image; and generating a fitting curve based on the fourth geometric parameter.

[0014] In one embodiment of the invention, the processor described above is configured to further perform: transmitting a command to an automatic alignment system via a transceiver, wherein the command instructs the automatic alignment system to configure the lens and image sensor of the event camera according to a configured distance.

[0015] In one embodiment of the present invention, the light source displays a target pattern through a plurality of pixels including a first pixel and a second pixel, wherein the first pixel and the second pixel are not adjacent.

[0016] A method for configuring an event camera according to the present invention includes: communicating with an automatic alignment system of the event camera, wherein the automatic alignment system includes a light source, wherein the event camera includes a lens and an image sensor located at a distance from the lens; determining a configuration distance of the lens based on an image acquired by the image sensor; and outputting the configuration distance.

[0017] In one embodiment of the present invention, the step of determining the lens configuration distance based on the image acquired by the image sensor includes: receiving a first image, a second image, and a third image acquired by the image sensor from an automatic alignment system, wherein the image sensor acquires a target pattern displayed by a light source at a first distance to form a first image, acquires a target pattern displayed by a light source at a second distance to form a second image, and acquires a target pattern displayed by a light source at a third distance to form a third image; and determining the lens configuration distance based on the first distance, the second distance, the third distance, the first image, the second image, and the third image.

[0018] In one embodiment of the present invention, the step of determining the lens configuration distance based on a first distance, a second distance, a third distance, a first image, a second image, and a third image includes: calculating a first geometric parameter of the target pattern in the first image, calculating a second geometric parameter of the target pattern in the second image, and calculating a third geometric parameter of the target pattern in the third image; generating a fitting curve based on the first geometric parameter, the second geometric parameter, and the third geometric parameter; and determining the configuration distance based on the extreme value of the fitting curve.

[0019] In one embodiment of the present invention, the step of generating a fitting curve based on a first geometric parameter, a second geometric parameter, and a third geometric parameter includes: receiving a fourth image acquired by an image sensor from an automatic alignment system, wherein the image sensor acquires a target pattern displayed by a light source at a fourth distance to form the fourth image; calculating a fourth geometric parameter of the target pattern in the fourth image; and generating a fitting curve based on the fourth geometric parameter.

[0020] Based on the above, the electronic device of the present invention can receive images acquired by the image sensor of the event camera from the automatic alignment system, and determine the optimal configuration distance between the lens of the event camera and the image sensor based on the images. Attached Figure Description

[0021] Figure 1 A schematic diagram of an electronic device for configuring an event camera is shown according to an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of a lens and an image sensor separated by a distance D1 is shown according to an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of an image corresponding to distance D1 is shown according to an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of a lens and an image sensor separated by a distance D2 is shown according to an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of an image corresponding to distance D2 is shown according to an embodiment of the present invention;

[0026] Figure 6 A schematic diagram of a lens and an image sensor separated by a distance D3 is shown according to an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of an image corresponding to distance D3 is shown according to an embodiment of the present invention;

[0028] Figure 8 A schematic diagram of the fitted curve is shown according to an embodiment of the present invention;

[0029] Figure 9 A schematic diagram of geometric parameters is shown according to an embodiment of the present invention;

[0030] Figure 10 A flowchart of a method for configuring an event camera is shown according to an embodiment of the present invention. Detailed Implementation

[0031] Reference will now be made in detail to exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same element references are used in the drawings and description to denote the same or similar parts.

[0032] Figure 1 A schematic diagram of an electronic device 100 configured with an event camera is shown according to an embodiment of the present invention. The electronic device 100 may include a processor 110, a storage medium 120, and a transceiver 130.

[0033] Processor 110 may be, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose microcontroller (MCU), microprocessor, digital signal processor (DSP), programmable controller, application-specific integrated circuit (ASIC), graphics processing unit (GPU), image signal processor (ISP), image processing unit (IPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field-programmable gate array (FPGA), or other similar elements or combinations thereof. Processor 110 may be coupled to storage medium 120 and transceiver 130, and access and execute multiple modules and various applications stored in storage medium 120.

[0034] Storage medium 120 may be, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk drive (HDD), solid state drive (SSD), or similar components or combinations thereof. Storage medium 120 may be, for example, a non-volatile computer-readable storage medium and may be configured to store multiple modules or various applications executable by processor 110.

[0035] Transceiver 130 transmits or receives signals wirelessly or via a wired connection. Transceiver 130 can also perform operations such as low-noise amplification, impedance matching, mixing, up- or down-frequency conversion, filtering, amplification, and similar functions. Processor 110 can communicate with an automatic alignment system for configuring an event camera via transceiver 130, or communicate with the event camera itself.

[0036] The automatic alignment system may include a light source and can be used to configure the distance between the lens of the event camera and the image sensor. Figure 2 A schematic diagram of a lens 31 and an image sensor 32 separated by a distance D1 is shown according to an embodiment of the present invention. The event camera may include a lens 31, an image sensor 32, and an aperture 33, wherein the lens 31 and the image sensor 32 are separated by a distance D. The image sensor 32 may be, for example, an event-based vision sensor (EVS) or a frame-based vision sensor (FVS), or, for example, a hybrid sensor including both EVS and FVS. The image sensor 32 may output event information, which may include pixel coordinates, event polarity (e.g., binarized pixels), and a timestamp. The automatic alignment system may include a light source 20, wherein the light source 20 is, for example, a display. The light source 20 may include one or more pixels, such as pixel 21 or pixel 22.

[0037] The automatic alignment system can display a target pattern via light source 20, wherein the target pattern may contain at least two pixels (e.g., two lit pixels of light source 20 (two point light sources) can serve as the target pattern). Multiple pixels of light source 20 used to display the target pattern may not be adjacent to each other. Image sensor 32 can acquire the target pattern displayed by light source 20 at different distances D. Image sensor 32 can acquire the target pattern displayed by light source 20 over a period of time to form an image corresponding to distance D. That is, the image acquired by image sensor 32 is formed after accumulating over a period of time. In one embodiment, image sensor 32 can repeatedly acquire the target pattern displayed by light source 20 over a period of time to form multiple images corresponding to distance D. Processor 110 can assign weights to the same pixel in multiple images and calculate the probability of an event occurring at that pixel (e.g., the acquired image corresponding to the target pattern) based on the weights.

[0038] The image acquired by image sensor 32 may contain one or more geometric contours corresponding to a target pattern. A geometric contour contains at least two pixels. These two pixels are asymmetrical with respect to the origin (e.g., the pixel in the image corresponding to the center point of image sensor 32), or the two pixels are at different distances from the origin. Processor 110 may receive multiple images acquired by image sensor 32 from an automatic alignment system (or an event camera). In one embodiment, light source 20 may display the same / different target patterns at different frequencies to improve the signal-to-noise ratio of the image.

[0039] by Figure 2 For example, the automatic alignment system can configure the distance D to D1 and display a target pattern through the light source 20. The light emitted by the light source 20 (e.g., light emitted by pixel 21 or pixel 22) passes through the aperture 33 and lens 31 to form an image 40. The image sensor 32 can acquire the image 40 corresponding to the distance D1. Assuming the target pattern displayed by the light source 20 is a rectangle, the image 40 can contain a rectangular geometric outline 41, such as... Figure 3 As shown.

[0040] Figure 4 A schematic diagram of a lens 31 and an image sensor 32 separated by a distance D2 is shown according to an embodiment of the present invention. Figure 4 For example, the automatic alignment system can configure the distance D to D2 and display a target pattern through the light source 20. The light emitted by the light source 20 (e.g., light emitted by pixel 21 or pixel 22) passes through the aperture 33 and lens 31 to form an image 50. The image sensor 32 can acquire the image 50 corresponding to the distance D2. Assuming the target pattern displayed by the light source 20 is a rectangle, the image 50 can contain the geometric outline 51 of a rectangle, such as... Figure 5 As shown.

[0041] Figure 6 A schematic diagram of a lens 31 and an image sensor 32 separated by a distance D3 according to an embodiment of the present invention is shown. Figure 6 For example, the automatic alignment system can configure the distance D to D3 and display a target pattern through the light source 20. The light emitted by the light source 20 (e.g., light emitted by pixel 21 or pixel 22) passes through the aperture 33 and lens 31 to form an image 60. The image sensor 32 can acquire the image 60 corresponding to the distance D3. Assuming the target pattern displayed by the light source 20 is a rectangle, the image 60 can contain the geometric outline 61 of a rectangle, such as... Figure 7 As shown.

[0042] The automatic alignment system can adjust the distance DN times to acquire N images from the image sensor 32, where N is any positive integer (e.g., N can be greater than or equal to 3). The processor 110 can determine the optimal configuration distance between the lens 31 and the image sensor 32 based on the N distances D and the N images.

[0043] For each of the N images, processor 110 can calculate the geometric parameters of one or more geometric contours corresponding to the target pattern in the image. Processor 110 can generate fitting curves based on the N geometric parameters corresponding to the N images respectively, and determine the optimal configuration distance based on the extreme value (e.g., minimum value) of the fitting curve. For example, if a geometric parameter corresponding to a specific distance is the minimum value of the fitting curve, then processor 110 can set that specific distance as the optimal configuration distance. That is, processor 110 can select the distance corresponding to the minimum geometric parameter as the optimal configuration distance. Geometric parameters, for example, are the imaging height or the aspect ratio of a rectangle. Processor 110 can calculate the first absolute difference and the second absolute difference (e.g., the absolute difference on the X-axis and the absolute difference on the Y-axis) between two geometric contours (or two pixels of a geometric contour) in the image, respectively, in two different dimensions, and calculate the ratio of the first absolute difference to the second absolute difference as a geometric parameter, where the first absolute difference is greater than the second absolute difference. The coordinates of the geometric contour are, for example, the coordinates of the pixel in the geometric contour that is farthest from the pixel corresponding to the center point of the image sensor 32. For another example, if the two adjacent points of the minimum value of the fitted curve correspond to two specific distances, the processor 110 can perform interpolation on the two specific distances to obtain the optimal configuration distance. In one embodiment, when the geometric parameter reaches a threshold (e.g., the geometric parameter is less than the threshold), even if the geometric parameter has not yet reached its extreme value, the processor 110 can determine the optimal configuration distance based on the distance corresponding to the geometric parameter.

[0044] Figure 8A schematic diagram of a fitted curve is shown according to an embodiment of the present invention. The fitted curve is derived from a plurality of geometric parameters, wherein geometric parameter 81 corresponds to distance D1, geometric parameter 82 corresponds to distance D2, geometric parameter 83 corresponds to distance D3, and geometric parameter 84 corresponds to distance D4. The processor 110 may perform interpolation operations on distances D2 and D3 based on the two adjacent points of the minimum value 80 of the fitted curve (i.e., geometric parameters 82 and 83) corresponding to distances D2 and D3, respectively, to obtain the optimal configuration distance between the lens 31 and the image sensor 32.

[0045] After obtaining the optimal configuration distance, the processor 110 can output the optimal configuration distance for use in the event camera assembly process. For example, the processor 110 can send a command to the automatic alignment system to instruct the automatic alignment system to configure the distance D between the lens 31 and the image sensor 32 according to the optimal configuration distance.

[0046] In one embodiment, the target image and its geometric contour displayed by the light source 20 can be rectangular, and the geometric parameters of the geometric contour can be, for example, the aspect ratio of the rectangle. Figure 5 For example, the image 50 acquired by the image sensor 32 may include a geometric contour 51 corresponding to a rectangle, where pixel 331 corresponds to the center point of the image sensor 32. The processor 110 can obtain the imaging height H1 of the geometric contour 51 on the long side of the rectangle (e.g., the distance between a vertex on the long side of the rectangle and pixel 331 on the X-axis), and can obtain the imaging height H2 of the geometric contour 51 on the short side of the rectangle (e.g., the distance between a vertex on the short side of the rectangle and pixel 331 on the Y-axis). The processor 110 can calculate the aspect ratio H2 / H1 of the rectangle based on the imaging height H1 and the imaging height H2. Compared to the aspect ratio corresponding to distance D1 or distance D3, the aspect ratio corresponding to distance D2 has the minimum value. Accordingly, the processor 110 can select distance D2 from distances D1 to D3 as the optimal configuration distance, or perform interpolation based on distance D2 to obtain the optimal configuration distance.

[0047] In one embodiment, the number of pixels at imaging height H1 must be greater than or equal to twice the number of pixels at imaging height H2. For example, if the number of pixels at imaging height H2 is 3, then the number of pixels at imaging height H1 can be 7.

[0048] In one embodiment, if the target pattern is rectangular, the processor 110 can calculate the aspect ratio of the geometric contour based on the eccentricity of the geometric contour, as shown in formula (1), where This is the eccentricity rate.

[0049]

[0050] and For image The covariance matrix The eigenvalues ​​of the image The pixels representing the image are shown in formula (2), where This represents the set of pixels that make up the geometric contour. Equations (3) and (4) respectively show the covariance matrix. and eigenvalues and .

[0051]

[0052]

[0053]

[0054] Let be the central moment, as shown in formula (5), where and Let be the coordinates of the centroid of the geometric profile as shown in formula (6), and The raw moment is as shown in formula (7).

[0055]

[0056]

[0057]

[0058] In one embodiment, the target graphic and its geometric outline displayed by the light source 20 may be two circles (or two pixels, two squares), and the geometric parameters may be, for example, the ratio of the absolute differences between the two circles in two dimensions. Figure 9 A schematic diagram of geometric parameters is shown according to an embodiment of the present invention, wherein pixel 331 corresponds to the center point of image sensor 32, and pixel 331 can be used as the origin of a planar coordinate system. Geometric contour 91 (or the center point of geometric contour 91), geometric contour 92 (or the center point of geometric contour 92), and pixel 331 are located on the same straight line, and the distance between geometric contour 91 (or the center point of geometric contour 91) and pixel 331 is different from the distance between geometric contour 92 (or the center point of geometric contour 92) and pixel 331. Pixel 911 is the pixel in geometric contour 91 that is farthest from pixel 331. Pixel 921 is the pixel in geometric contour 92 that is farthest from pixel 331. Processor 110 can calculate geometric parameters based on the ratio of the absolute differences between pixel 911 and pixel 921 on the X-axis and Y-axis. Assume the coordinates of pixel 911 are... And the coordinates of pixel 921 are .

[0059] In one embodiment, processor 110 can calculate the absolute difference between two pixels on the X-axis. And the absolute difference between the two pixels on the Y-axis .like Processor 110 can calculate the ratio Used as a geometric parameter. If Processor 110 can calculate the ratio Used as geometric parameters. Geometric parameters of the image. The smaller the value, the closer the distance corresponding to the image is to the optimal configuration distance. For example, if the geometric parameter corresponding to distance D2 is greater than the geometric parameter corresponding to distance D1 or distance D3, the processor 110 can determine that distance D2 is closer to the optimal configuration distance than distance D1 or distance D3. Accordingly, the processor 110 can select distance D2 as the optimal configuration distance from distances D1, D2, and D3, or perform interpolation based on distance D2 to obtain the optimal configuration distance.

[0060] In one embodiment, it is assumed that the coordinates of pixel 331 are... Processor 110 can compute... as well as .like Processor 110 can calculate the ratio Used as a geometric parameter. If Processor 110 can calculate the ratio Used as a geometric parameter.

[0061] Figure 10 A flowchart of a method for configuring an event camera is shown according to an embodiment of the present invention, wherein the method may be implemented by an electronic device 100. In step S1001, communication is made with an automatic alignment system of the event camera, wherein the automatic alignment system includes a light source, and wherein the event camera includes a lens and an image sensor located at a distance from the lens. In step S1002, a configuration distance for the lens is determined based on an image acquired by the image sensor. In step S1003, the configuration distance is output.

[0062] In summary, the electronic device of the present invention can receive images acquired by the image sensor of an event camera from an automatic alignment system and determine the configuration distance based on the images. The light source of the automatic alignment system can display a target pattern through the light source, and the image sensor can acquire an image corresponding to the target pattern. The electronic device can generate a fitting curve based on the geometric parameters of the geometric contour corresponding to the target pattern in the image, and determine the optimal configuration distance between the lens and the image sensor based on the extreme value of the fitting curve.

[0063] Most anti-aliasing (AA) systems rely on information such as grayscale values ​​to determine camera sharpness. However, event cameras do not have grayscale information, so sharpness cannot be determined using metrics such as gradient, spectrum, MTF, or SFR. The electronic device of this invention estimates the sharpness of the event camera using information such as imaging height. The parameters used in this invention are less affected by image translation, rotation, or scaling, thus reducing the environmental requirements for the AA system. Furthermore, this invention does not require computations such as Fast Fourier Transform (FFT), and its time complexity (e.g., O(N)) is lower than that of traditional methods using MTF or SFR (e.g., O(N+NlogN)).

[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An electronic device for configuring an event camera, characterized in that, include: A transceiver is communicatively connected to an automatic alignment system of an event camera, wherein the automatic alignment system includes a light source, and wherein the event camera includes a lens and an image sensor located at a distance from the lens. as well as A processor, coupled to the transceiver, wherein the processor is configured to perform: The placement distance of the lens is determined based on the image acquired by the image sensor; and Output the configured distance.

2. The electronic device of claim 1, wherein the processor is configured to further perform: The automatic alignment system receives a first image, a second image, and a third image acquired by the image sensor, wherein the image sensor acquires the target pattern displayed by the light source to form the first image at a first distance, acquires the target pattern displayed by the light source to form the second image at a second distance, and acquires the target pattern displayed by the light source to form the third image at a third distance; and The configuration distance is determined based on the first distance, the second distance, the third distance, the first image, the second image, and the third image.

3. The electronic device of claim 2, wherein the image sensor comprises an event-based vision sensor, wherein the image sensor acquires the target pattern displayed by the light source during a time period to form the first image.

4. The electronic device of claim 2, wherein the target pattern is rectangular, and wherein the processor is configured to further perform: Calculate the first aspect ratio of the rectangle in the first image, calculate the second aspect ratio of the rectangle in the second image, and calculate the third aspect ratio of the rectangle in the third image; Determine whether the first aspect ratio is less than the second aspect ratio and the third aspect ratio; as well as In response to the first aspect ratio being less than the second aspect ratio and the third aspect ratio, the first distance is selected as the configuration distance from the first distance, the second distance and the third distance.

5. The electronic device of claim 2, wherein the first image includes a first geometric contour and a second geometric contour corresponding to the target pattern, wherein the processor is configured to further perform: Calculate the first absolute difference between the first geometric contour and the second geometric contour in the first dimension and the second absolute difference in the second dimension, and calculate the first ratio of the first absolute difference to the second absolute difference, wherein the first absolute difference is greater than the second absolute difference; Determine whether the first ratio of the first image is less than the second ratio of the second image and the third ratio of the third image; as well as In response to the first ratio being less than the second ratio and the third ratio, the first distance is selected as the configured distance from the first distance, the second distance and the third distance.

6. The electronic device of claim 5, wherein the first geometric profile is circular or square.

7. The electronic device of claim 5, wherein the first distance between the first geometric contour and a pixel in the first image corresponding to the center point of the image sensor is different from the second distance between the second geometric contour and the pixel.

8. The electronic device of claim 2, wherein the processor is configured to further perform: Calculate the first geometric parameter of the target graphic in the first image, calculate the second geometric parameter of the target graphic in the second image, and calculate the third geometric parameter of the target graphic in the third image; A fitting curve is generated based on the first geometric parameter, the second geometric parameter, and the third geometric parameter; as well as The configuration distance is determined based on the extreme values ​​of the fitted curve.

9. The electronic device of claim 8, wherein the processor is configured to further perform: The system receives a fourth image acquired by the image sensor, wherein the image sensor acquires the target pattern displayed by the light source at the fourth distance to form the fourth image; Calculate the fourth geometric parameter of the target pattern in the fourth image; as well as The fitted curve is generated based on the fourth geometric parameter.

10. The electronic device of claim 2, wherein the processor is configured to further perform: The transceiver transmits commands to the automatic alignment system, wherein the commands instruct the automatic alignment system to configure the lens and the image sensor of the event camera according to the configured distance.

11. The electronic device of claim 2, wherein the light source displays the target pattern through a plurality of pixels including a first pixel and a second pixel, wherein the first pixel and the second pixel are not adjacent.

12. A method for configuring an event camera, characterized in that, include: The event camera communicates with an automatic alignment system, wherein the automatic alignment system includes a light source, and wherein the event camera includes a lens and an image sensor located at a distance from the lens. The placement distance of the lens is determined based on the image acquired by the image sensor; and Output the configured distance.

13. The method of claim 12, wherein the step of determining the configuration distance of the lens based on the image acquired by the image sensor comprises: The system receives a first image, a second image, and a third image acquired by the image sensor, wherein the image sensor acquires the target pattern displayed by the light source to form the first image at a first distance, acquires the target pattern displayed by the light source to form the second image at a second distance, and acquires the target pattern displayed by the light source to form the third image at a third distance; as well as The configuration distance of the lens is determined based on the first distance, the second distance, the third distance, the first image, the second image, and the third image.

14. The method of claim 13, wherein the step of determining the configuration distance of the lens based on the first distance, the second distance, the third distance, the first image, the second image, and the third image comprises: Calculate the first geometric parameter of the target graphic in the first image, calculate the second geometric parameter of the target graphic in the second image, and calculate the third geometric parameter of the target graphic in the third image; A fitting curve is generated based on the first geometric parameter, the second geometric parameter, and the third geometric parameter; as well as The configuration distance is determined based on the extreme values ​​of the fitted curve.

15. The method of claim 14, wherein the step of generating the fitted curve based on the first geometric parameter, the second geometric parameter, and the third geometric parameter comprises: The system receives a fourth image acquired by the image sensor, wherein the image sensor acquires the target pattern displayed by the light source at the fourth distance to form the fourth image; Calculate the fourth geometric parameter of the target pattern in the fourth image; as well as The fitted curve is generated based on the fourth geometric parameter.