Optical flow sensor with in-pixel motion computation capability and vector event computation and output method thereof
By integrating motion detection and time difference measurement circuits within the pixels of the optical flow sensor, real-time generation and output of optical flow vector events are achieved, solving the problems of high data bandwidth and high power consumption in optical flow calculation in edge devices and improving system efficiency.
Patent Information
- Application Number
- CN202611224900.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing optical flow computing solutions in edge devices suffer from high data bandwidth requirements, high computational complexity, and high system power consumption, making it difficult to achieve real-time and efficient optical flow computing using traditional methods.
Motion detection and time difference measurement circuits are integrated inside the pixels of the optical flow sensor to achieve pixel-level optical flow inference. Optical flow vector event data is output through the OF-AER readout interface module, reducing the burden of off-chip computation and data transmission.
It enables real-time generation and output of optical flow vector events, reduces system latency and power consumption, improves data throughput, and reduces the operating frequency of row address processing.
Smart Images

Figure CN123145369A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of event vision and on-chip computing, and more particularly to an optical flow sensor (OFS) with intra-pixel motion computing capability and its vector event output method. Background Technology
[0002] Optical flow is used to characterize the apparent motion of brightness patterns on an image plane over time. It is typically described by a two-dimensional vector field, which represents the direction and magnitude of motion at each location (e.g., ...). Figure 1 (As shown). When camera or object motion occurs, the change in pixel brightness over time satisfies certain constraints. Therefore, the optical flow estimation problem can be transformed into solving and fitting these constraints in space and time. In engineering, optical flow is often used as a fundamental measurement for "motion perception," providing input for subsequent decision-making and control. It can be directly used in applications such as robot navigation, UAV obstacle avoidance, and target tracking, which involve rapid motion analysis.
[0003] However, optical flow applications at the edge are highly sensitive to data continuity, throughput, and latency. Traditional frame-based schemes often rely on continuous frame input, requiring higher frame rates to reduce motion blur and improve estimation stability during fast-moving scenarios, thus leading to higher data bandwidth and processor computational burden. Simultaneously, optical flow inference typically requires the introduction of constraints or regularization to obtain stable results, further increasing computational complexity and power consumption. Therefore, in edge or low-power systems, real-time acquisition of optical flow is often constrained by a combined bottleneck of transmission bandwidth, computing power, and system power consumption.
[0004] Dynamic Vision Sensors (DVS) propose acquiring visual change information in an event-driven manner. Instead of periodically outputting entire frames, DVS asynchronously generates events when the brightness change at a pixel exceeds a threshold. Events typically include the pixel address, timestamp, and polarity (ON for brightening, OFF for darkening). Because output is generated only when a change occurs, DVS offers advantages such as low latency, sparse output, and high dynamic range in high-dynamic scenes, while also reducing data redundancy and transmission burden to some extent.
[0005] While DVS (Distributed Visualization Spectroscopy) offers significant advantages in reducing data redundancy, in current technologies, optical flow estimation typically still requires execution on a processor or computing platform external to the sensor. In other words, the sensor only outputs the event stream, while optical flow computation relies on backend algorithms to match and infer a large number of events. This architecture suffers from several drawbacks: frequent access and processing of event data increases overall system latency; the heavy off-chip computational burden limits real-time performance and energy efficiency; and the complex system architecture makes efficient deployment in edge devices and embedded platforms difficult. Therefore, how to implement some or all optical flow computation functions within the sensor, enabling motion information to be generated and output directly close to the sensing end, thereby reducing the burden of external computation and data transmission, has become a crucial technical challenge in the field of optical flow computation. Summary of the Invention
[0006] To address the issues of high data bandwidth requirements, high computational complexity, and high system power consumption in existing optical flow acquisition methods, this invention proposes an optical flow sensor (OFS) with intra-pixel motion calculation capabilities and its vector event calculation and output method. This invention integrates motion detection and time difference measurement circuitry within the optical flow sensor pixel, enabling the pixel to directly compare events of adjacent pixels and perform local optical flow inference. This allows for real-time generation of optical flow vector events at the pixel level, and outputs optical flow data containing address, timestamp, direction, and amplitude information through a dedicated readout interface. This achieves event-based output oriented towards motion information, reducing redundant access and calculation of the event stream outside the chip, thereby lowering overall system latency and power consumption.
[0007] The technical solution of the present invention is as follows:
[0008] An optical flow sensor with intra-pixel motion calculation capability mainly includes an optical flow sensor pixel array module and an optical flow address event representation (OF-AER) readout interface module. The optical flow sensor pixel array module is composed of multiple optical flow sensor pixels with motion calculation capability arranged in rows and columns. Each pixel is connected to the OF-AER readout interface module through row lines and column buses. The OF-AER readout interface module is used to encode and output the optical flow vector events generated in the pixel array, thereby forming an optical flow vector event data stream containing spatial address, time information, direction, and amplitude information.
[0009] Each optical flow sensor pixel includes a dynamic vision sensor pixel (DVS pixel) circuit, an event triggering and time window control circuit, an adjacent pixel event comparison circuit, a detection result latching circuit, and a time difference measurement circuit.
[0010] The Dynamic Vision Sensor Pixel (DVS Pixel) circuit includes a photodiode and a differential detection circuit, used to receive incident light signals and convert them into electrical signals, detect pixel brightness changes caused by incident light, and generate an ON event or an OFF event when the brightness change exceeds a set threshold. The ON event signal output terminal is connected to the adjacent pixel event comparison circuit of the adjacent pixel, and the OFF event signal output terminal is connected to the event triggering and time window control circuit and the time difference measurement circuit.
[0011] The input of the event triggering and time window control circuit is connected to the OFF event output of the DVS pixel circuit. When an OFF event is detected in a pixel, a time window signal is triggered and a time window signal with a duration of Δt is output. This time window signal serves as both an enable signal for the adjacent pixel event comparison circuit and a start trigger signal for the time difference measurement circuit.
[0012] The adjacent pixel event comparison circuit receives a time window signal from the target pixel and ON event signals from surrounding adjacent pixels. The ON events from adjacent pixels are input to the adjacent pixel event comparison circuit via horizontal and vertical connection lines between pixels. When an ON event from a certain adjacent pixel is detected within the time window, the adjacent pixel event comparison circuit outputs a detection signal in the corresponding direction. Adjacent pixels in different orientations correspond to different directional channels, used to represent the direction information of the optical flow vector.
[0013] The detection result latching circuit is connected to the output of the adjacent pixel event comparison circuit and is used to latch the detected direction signals. When a valid OFF-ON event pair is detected in any direction, the latch for the corresponding direction is set to hold the detection signal for that direction until the OF-AER readout interface module completes the reading. Simultaneously, the detection signals from all directions are ORed by a logic circuit to obtain the pixel event signal, which serves as the stop signal for the time difference measurement circuit.
[0014] The time difference measurement circuit employs a time-to-digital converter (TDC) structure. Its input terminals include a start terminal and a stop terminal. The start terminal receives the OFF event signal of the target pixel, and the stop terminal receives the pixel event signal (event). The circuit measures the time difference between the two and converts this time difference into a digital signal for output. This time difference signal is output as the amplitude information of the optical flow vector to the column bus.
[0015] At the pixel array level, the detection result latching circuit of each pixel outputs a pixel event signal (event). This signal is aggregated into a row event signal (row_event) within the same row through a logic OR circuit, and then connected to the OF-AER readout interface module via the row bus to indicate that there is optical flow vector data to be output in that row, triggering the readout process.
[0016] The OF-AER readout interface module includes a row arbitration circuit, an address encoding circuit, a row decoding circuit, a row register circuit, a column shift register, a column address counter, and a timestamp generation circuit. The row arbitration circuit receives row_event signals from each row of the pixel array and selects the target row to be read according to a set arbitration strategy. The arbitration result is output to the address encoding circuit. The address encoding circuit generates a corresponding row address signal and a readout enable signal based on the arbitration result and outputs the row address signal to the row decoding circuit. The row decoding circuit generates a one-hot row readout signal row_load based on the row address signal and connects it to the row register circuit and the corresponding row of the pixel array via a row control line. When the row_load signal is activated, the pixel in that row loads the latched direction information, time difference information, and pixel event signal onto the column bus. After data loading is complete, the row register circuit generates a row clear signal row_clr delayed by one clock cycle and sends it to the corresponding row to reset the detection result latch circuit in that row's pixel, allowing the pixel to enter the next round of optical flow detection. The column bus is connected to the input of the column shift register. The column shift register latches pixel data from the column bus and shifts it sequentially according to column order under the control of the readout enable signal. The column address counter increments synchronously with the shift clock of the column shift register to generate the column address signal of the corresponding pixel, thereby forming complete optical flow vector event data. The timestamp generation circuit generates a corresponding timestamp based on the time of the pixel event signal output by the column shift register.
[0017] This invention also proposes a method for calculating and outputting optical flow vector events based on the above-mentioned optical flow sensor, the process of which includes the following steps:
[0018] S1: Event detection step; The DVS pixel circuit in the optical flow sensor pixel continuously detects changes in incident light intensity. When the detected pixel brightness change exceeds a set threshold, an ON event or an OFF event is generated.
[0019] S2: Time window triggering step; When the target pixel detects an OFF event, the event triggering and time window control circuit starts a time window signal with a duration of Δt, and listens for ON events from adjacent pixels within this time window;
[0020] S3: Event matching and direction determination steps; within the time window, the ON events generated by adjacent pixels are input to the event adjacent pixel event comparison circuit through the inter-pixel connection line; when the adjacent pixel event comparison circuit detects that the ON event from a certain adjacent pixel forms an OFF-ON event pair with the OFF event of the target pixel, it determines that there is a motion vector, and determines the direction of the optical flow vector according to the spatial position of the adjacent pixel that generated the ON event in the array, and triggers the detection result latching circuit to save the direction information, and at the same time generates a pixel event signal event;
[0021] S4: Time Difference Measurement Step; The Time-to-Digital Converter (TDC) measures the time difference between the OFF event signal of the target pixel and the pixel event signal, and converts this time difference into a digital quantity as the amplitude information of the optical flow vector;
[0022] S5: Optical Flow Vector Event Output Steps; Event signals from pixels in the same row are converged through a logic OR circuit to form a row event signal row_event. After receiving the row_event signal, the OF-AER readout interface module selects the target row to be read through the row arbitration circuit, and generates the corresponding row address signal and readout enable signal through the address encoding circuit; and generates a row_load row read signal to load the direction and amplitude information latched by all pixels in the row to the column bus; the column shift register latches the data from the column bus, and under the control of the readout enable signal, outputs the optical flow vector direction, time difference, and pixel event signal of the row in ascending order of column size, while the column address counter generates the corresponding column address; the row address signal and the column address signal together constitute the address information of the pixel; the timestamp generation circuit generates the corresponding timestamp based on the time of the pixel event signal output by the column shift register;
[0023] S6: Pixel reset step; After the data in this row is read out, the OF-AER readout interface module generates a row_clr clear signal and sends it to the corresponding row pixel to clear the internal latch state of the pixel in this row, so that the pixel can re-enter the next round of event detection and optical flow vector calculation process.
[0024] The above steps complete the calculation and output of a row of optical flow vector events. By repeatedly executing this process, the pixel array continuously outputs optical flow vector event data containing pixel address, timestamp information, direction, and amplitude information.
[0025] The beneficial effects of this invention are as follows:
[0026] This invention proposes an optical flow sensor (OFS) with intra-pixel motion calculation capabilities and its vector event calculation and output method. By integrating motion detection and time difference measurement circuits within the optical flow sensor pixel, the pixel can directly compare events of adjacent pixels and perform local optical flow inference, thereby generating optical flow vector events in real time at the pixel level. The optical flow data containing address, timestamp, direction, and amplitude information is output through the OF-AER readout interface module, realizing event-based output for motion information, reducing repeated access and calculation of the event stream outside the chip, and thus reducing the overall system latency and power consumption. Furthermore, through a row-organized data readout method, the OF-AER readout interface module first completes arbitration and address determination at the row level, then loads the optical flow data of the entire row of pixels onto the column bus, and outputs it sequentially column by column through the column shift register driven by a high-frequency clock, thereby significantly reducing the operating frequency required for row address processing while maintaining high throughput. Attached Figure Description
[0027] Figure 1 This is a rendering of the optical flow effect;
[0028] Figure 2 This is a schematic diagram of the optical flow sensor architecture of the present invention;
[0029] Figure 3 This is a schematic diagram of the optical flow sensor pixel with motion detection and optical flow calculation capabilities of the present invention;
[0030] Figure 4 This is a flowchart of the optical flow vector event calculation and output method of the present invention. Detailed Implementation
[0031] The structure and operation of the present invention will be described below with reference to the accompanying drawings.
[0032] like Figure 2 As shown in the diagram, this invention proposes a schematic diagram of the overall structure of an optical flow sensor with intra-pixel motion calculation capabilities. It mainly includes an optical flow sensor (OFS) pixel array module and an optical flow address event (OF-AER) readout interface module. The optical flow sensor pixel array module consists of multiple optical flow sensor pixels with motion detection and optical flow calculation capabilities arranged in a row-column configuration to form a two-dimensional array structure. Each pixel is connected to the OF-AER readout interface module via row and column lines. The OF-AER readout interface module is used to encode and output the optical flow vector events generated in the pixel array, thereby forming an optical flow vector event data stream containing spatial address, temporal information, direction, and amplitude information.
[0033] (I) Pixel structure and connection relationship of optical flow sensor
[0034] like Figure 3As shown, each optical flow sensor pixel mainly includes the following circuit components: Dynamic Vision Sensor Pixel (DVS pixel) circuit, event triggering and time window control circuit, adjacent pixel event comparison circuit, detection result latching circuit, and time difference measurement circuit (TDC).
[0035] The dynamic vision sensor pixel (DVS pixel) includes a photodiode and a differential detection circuit, used to receive incident light signals and convert them into electrical signals to detect changes in pixel brightness. When the DVS pixel circuit detects an increase in brightness exceeding a set threshold, it generates an ON event; when the decrease in brightness exceeds the threshold, it generates an OFF event. The ON event signal output is connected to an adjacent pixel event comparison circuit, and the OFF event signal output is connected to an event triggering and time window control circuit and a time difference measurement circuit.
[0036] The event triggering and time window control circuit generates a time window signal with a duration of Δt when an OFF event is detected in a target pixel. This time window signal serves as the effective time interval for detecting events in adjacent pixels, and its output signal is connected to the enable terminal of the adjacent pixel event comparison circuit. Within this time window, ON events generated by adjacent pixels can be input to the adjacent pixel event comparison circuit through the connection lines between pixels.
[0037] The adjacent pixel event comparison circuit receives the time window signal from the target pixel and the ON event signal from surrounding adjacent pixels. The ON events of adjacent pixels are input to the adjacent pixel event comparison circuit via horizontal and vertical connection lines between pixels. When an ON event is detected in an adjacent pixel during the valid time window, the adjacent pixel event comparison circuit outputs a detection signal in the corresponding direction. Adjacent pixels in different orientations correspond to different directional channels, such as top, bottom, left, and right channels, thereby representing the direction information of the optical flow vector. The detection result latch circuit is connected to the output of the adjacent pixel event comparison circuit. When a valid OFF-ON event pair is detected in any direction, the latch in the corresponding direction is set to hold the detection signal in that direction until the OF-AER readout interface module completes reading. Since the event signal is usually a short pulse signal, to avoid losing the detection result before reading, the detection result latch circuit stores the detected direction information and maintains its state until the OF-AER readout interface issues a clear signal. Simultaneously, the detection signals from all directions are passed through a logic OR circuit to obtain the pixel event signal `event`, which is used as the stop signal for the time difference measurement circuit.
[0038] The time difference measurement circuit is implemented using a pixel-level time-to-digital converter (TDC). Its inputs include a start terminal and a stop terminal. The start terminal receives the OFF event signal of the target pixel, and the stop terminal receives the pixel event signal (event). The time difference data is obtained by quantizing the time interval between the two events. This time difference signal is used to represent the amplitude information of the optical flow vector and output to the column bus, and together with the direction information, constitutes the basic parameters of the optical flow vector.
[0039] In the above structure, each pixel's output includes a direction information output, a time difference information output, and a pixel event signal output. The pixel event signal indicates whether the pixel has detected a valid optical flow vector. When any direction channel detects a valid event, the pixel event signal is set to a high level.
[0040] (ii) Event convergence in pixel array
[0041] At the pixel array level, the pixel event signals (events) of all pixels within the same row are aggregated through a logic OR circuit to form a row event signal (row_event). This signal indicates that at least one pixel in the row has generated an optical flow vector event. The row_event signal is connected to the OF-AER readout interface module via the row line to trigger the readout process. When the row_event signal of a row is detected as valid, the OF-AER readout interface module determines the row to be read first through an arbitration circuit and generates a corresponding row address signal. This row address is decoded by a decoder to form a one-hot row readout signal (row_load), which is sent to the corresponding row of the pixel array via the row control line. When the row_load signal is activated, the latched data of all pixels in that row is loaded onto the column bus, including direction information and amplitude information represented by the time difference signal. After loading is complete, the OF-AER readout interface module generates a row clear signal (row_clr) to reset the latch circuit of the pixels in that row, allowing the pixel to enter the next round of event detection.
[0042] (III) OF-AER Readout Interface Module Structure and Operation
[0043] The OF-AER readout interface module mainly includes a row arbitration circuit, an address encoding circuit, a row decoding circuit, a row register circuit, a column shift register, a column address counter, and a timestamp generation circuit.
[0044] The row arbitration circuit receives row_event signals from each row of the pixel array and selects the target row to be read according to the set arbitration strategy, thereby avoiding conflicts caused by multiple rows simultaneously driving the column bus. The arbitration result is output to the address encoding circuit, which generates the corresponding row address signal and readout enable signal. The row address signal is decoded by the row decoding circuit to generate a one-hot row readout signal row_load signal, which is connected to the row register circuit and the corresponding row of the pixel array via the row control line. This is used to trigger the direction information, time difference information, and pixel event signal of the corresponding row to be loaded and latched onto the column bus. The column bus is connected to the input of the column shift register. The column shift register latches and outputs the data in the column bus sequentially under the drive of a high-frequency clock. The output of the column shift register serves as the output interface of the optical flow sensor, used to form a continuous data stream output. During column shifting, the column address counter in the OF-AER readout interface module increments synchronously with the column shift register, thereby generating the column address signal of the corresponding pixel. The timestamp generation circuit generates the corresponding timestamp based on the time of the pixel event signal output by the column shift register. The final output data includes address information, direction information, and time difference amplitude information, along with a timestamp, thus forming a complete optical flow vector event data packet.
[0045] By combining row-by-row reading with column-by-column shifting, the operating frequency required for row address processing can be significantly reduced while maintaining high data throughput, thereby reducing system power consumption.
[0046] (iv) Method for calculating and outputting optical flow vector events
[0047] Based on the above optical flow sensor structure, this invention also proposes a method for calculating and outputting optical flow vector events. For example... Figure 4 As shown, this method relies on the pixel array module and the OF-AER readout interface module to complete the detection, calculation and output of optical flow vector. The process includes the following steps.
[0048] S1: Event Detection Step. The Dynamic Vision Sensor (DVS) pixel circuit in the optical flow sensor pixel continuously detects changes in incident light intensity. When the light signal received by the photodiode changes and the change in pixel brightness exceeds a set threshold, the DVS pixel circuit outputs a corresponding event signal, where an increase in brightness generates an ON event and a decrease in brightness generates an OFF event.
[0049] S2: Time Window Triggering Step. When the target pixel detects an OFF event, the event triggering and time window control circuit is triggered and generates a time window signal with a duration of Δt. During this time window, the internal circuitry of the target pixel enters an event matching detection state to listen for ON event signals from neighboring pixels.
[0050] S3: Event Matching and Direction Determination Steps. During the effective time window, ON events generated by adjacent pixels are input to the adjacent pixel event comparison circuit through the connection lines between pixels. When the adjacent pixel event comparison circuit detects that an ON event from a certain adjacent pixel forms a valid event pair with the OFF event of the target pixel, it determines that a motion vector exists. Based on the spatial position of the adjacent pixel that generated the ON event in the array, it determines the direction of the optical flow vector and triggers the detection result latching circuit to save the direction information, while simultaneously generating a pixel event signal (event).
[0051] S4: Time Difference Measurement Step. The time difference measurement circuit receives the OFF event and pixel event signal (event) of the target pixel as the start and stop signals, respectively, measures the time interval between the two events, and converts the measured time difference into a digital signal. This digital time difference signal is used to represent the amplitude information of the optical flow vector.
[0052] S5: Optical Flow Vector Event Output Steps. When a target pixel detects a valid optical flow vector, it generates a pixel event signal (event). Pixel event signals from pixels in the same row are converged through a logic OR circuit to form a row event signal (row_event). Upon receiving the row_event signal, the OF-AER readout interface module selects the target row to be read using the row arbitration circuit. Simultaneously, it generates the corresponding row address signal and readout enable signal through the address encoding circuit, and generates a row readout signal (row_load), loading the direction and amplitude information of all pixels in that row onto the column bus. The column shift register latches the data from the column bus and, under the control of the readout enable signal, outputs the optical flow vector direction, time difference, and pixel event signal of that row in ascending column order. Simultaneously, the column address counter synchronously generates the corresponding column address. The row address signal and column address signal together constitute the pixel's address information. The timestamp generation circuit generates the corresponding timestamp based on the time of the pixel event signal output by the column shift register.
[0053] S6: Pixel Reset Step. After the data for this row is read out, the OF-AER readout interface module generates a row clear signal row_clr and sends it to the corresponding row pixel to clear the pixel's internal latch state, allowing the pixel to re-enter the next round of event detection and optical flow vector calculation.
[0054] The above steps complete the calculation and output of a row of optical flow vector events. By repeatedly executing this process, the pixel array can continuously output optical flow vector event data containing pixel address, time information, direction, and amplitude information.
[0055] Finally, it should be noted that the purpose of disclosing the embodiments is to help those skilled in the art further understand the technical solutions and effects of the present invention, rather than to limit the scope of the present invention. Those skilled in the art should understand that various modifications, combinations, and substitutions can be made to the specific implementation schemes according to the needs of actual applications. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of the present invention, and the scope of protection of the present invention is determined by the scope defined in the appended claims.
Claims
1. An optical flow sensor with intra-pixel motion calculation capability, characterized in that, Includes an optical flow sensor pixel array module and an OF-AER readout interface module; The optical flow sensor pixel array module is composed of multiple optical flow sensor pixels arranged in rows and columns. Each pixel is connected to the OF-AER readout interface module through row lines and column buses. The OF-AER readout interface module is used to encode and output the optical flow vector events generated in the pixel array to form an optical flow vector event data stream containing spatial address, time information, direction and amplitude information. The optical flow sensor pixel includes a DVS pixel circuit, an event triggering and time window control circuit, an adjacent pixel event comparison circuit, a detection result latching circuit, and a time difference measurement circuit, wherein... The DVS pixel circuit includes a photosensitive diode and a differential detection circuit, which are used to detect changes in pixel brightness caused by incident light and generate an ON event or an OFF event. The ON event signal output terminal is connected to the adjacent pixel event comparison circuit of the adjacent pixel, and the OFF event signal output terminal is connected to the event triggering and time window control circuit and the time difference measurement circuit. The input terminal of the event triggering and time window control circuit is connected to the OFF event output terminal of the DVS pixel circuit. When an OFF event is detected, a time window signal is triggered and a time window signal with a duration of Δt is output. This time window signal serves as both an enable signal for the adjacent pixel event comparison circuit and a start trigger signal for the time difference measurement circuit. The adjacent pixel event comparison circuit receives the time window signal and the ON event signal from the surrounding adjacent pixels. The ON event of the adjacent pixel is input to the adjacent pixel event comparison circuit through the horizontal and vertical connection lines between pixels. When an ON event from a certain adjacent pixel is detected within the time window, the adjacent pixel event comparison circuit outputs a detection signal in the corresponding direction. Adjacent pixels in different positions correspond to different directional channels, which are used to represent the direction information of the optical flow vector. The detection result latching circuit is connected to the output of the adjacent pixel event comparison circuit and is used to latch the direction detection signal. When an OFF-ON event pair is detected in any direction, the latch in the corresponding direction is set to maintain the detection signal in the corresponding direction until the OF-AER readout interface module completes the reading. At the same time, the detection signals in all directions are passed through a logic OR circuit to obtain the pixel event signal event, which serves as the stop signal for the time difference measurement circuit. The time difference measurement circuit adopts a time-to-digital converter structure. Its input includes a start terminal and a stop terminal. The start terminal receives the OFF event signal, and the stop terminal receives the pixel event signal. The circuit measures the time difference between the two and converts the time difference into a digital signal for output. The time difference signal is output to the column bus as the amplitude information of the optical flow vector. The detection result latching circuit of each pixel in the pixel array outputs a pixel event signal event. This signal is converged into a row event signal row_event in the same row through a logic OR circuit, and then connected to the OF-AER readout interface module through the row bus to indicate that there is optical flow vector data to be output in that row, triggering the readout process.
2. The optical flow sensor according to claim 1, characterized in that, The OF-AER readout interface module includes a row arbitration circuit, an address encoding circuit, a row decoding circuit, a row register circuit, a column shift register, a column address counter, and a timestamp generation circuit. The row arbitration circuit receives row_event signals from each row of the pixel array and selects the target row to be read according to a set arbitration strategy. The arbitration result is output to the address encoding circuit. The address encoding circuit generates a corresponding row address signal and a readout enable signal based on the arbitration result and outputs the row address signal to the row decoding circuit. The row decoding circuit generates a one-hot row readout signal row_load based on the row address signal and connects it to the row register circuit and the corresponding row of the pixel array via a row control line. When the row_load signal is activated, the row... The pixel loads the latched direction information, time difference information, and pixel event signal onto the column bus. After the data loading is complete, the row register circuit generates a row clear signal row_clr delayed by one clock cycle and sends it to the corresponding row to reset the detection result latch circuit in the pixel of that row, allowing the pixel to enter the next round of optical flow detection. The column bus is connected to the input of the column shift register, which latches the pixel data from the column bus and shifts it sequentially according to column order under the control of the readout enable signal. The column address counter increments synchronously with the shift clock of the column shift register to generate the column address signal of the corresponding pixel, forming complete optical flow vector event data. The timestamp generation circuit generates the corresponding timestamp based on the time of the pixel event signal output by the column shift register.
3. A method for calculating and outputting optical flow vector events based on the optical flow sensor described in claim 2, characterized in that, Includes the following steps: S1: Event detection step; The DVS pixel circuit in the optical flow sensor pixel continuously detects changes in incident light intensity. When the detected pixel brightness change exceeds a set threshold, an ON event or an OFF event is generated. S2: Time window triggering steps; When the target pixel detects an OFF event, the event triggers the time window control circuit to start a time window signal with a duration of Δt. S3: Event matching and direction determination steps; within the time window, when the adjacent pixel event comparison circuit detects that the ON event from a certain adjacent pixel and the OFF event of the target pixel form an OFF-ON event pair, it determines that there is a motion vector, and determines the direction of the optical flow vector according to the spatial position of the adjacent pixel that generated the ON event in the array, triggers the detection result latching circuit to save the direction information, and generates a pixel event signal event. S4: Time difference measurement procedure; The time-to-digital converter measures the time difference between the OFF event signal of the target pixel and the pixel event signal, and converts this time difference into a digital quantity as the amplitude information of the optical flow vector; S5: Optical Flow Vector Event Output Steps; Event signals from pixels in the same row are converged through a logic OR circuit to form a row event signal row_event. After receiving the row_event signal, the OF-AER readout interface module selects the target row to be read through the row arbitration circuit, and generates the corresponding row address signal and readout enable signal through the address encoding circuit; and generates a row_load row read signal to load the direction and amplitude information latched by all pixels in the row to the column bus; the column shift register latches the data from the column bus, and under the control of the readout enable signal, outputs the optical flow vector direction, time difference, and pixel event signal of the row in ascending order of column size, while the column address counter generates the corresponding column address; the row address signal and the column address signal together constitute the pixel address information; the timestamp generation circuit generates the corresponding timestamp information based on the time of the pixel event signal output by the column shift register; S6: Pixel reset step; After the data in this row is read out, the OF-AER readout interface module generates a row_clr clear signal and sends it to the corresponding row pixel to clear the internal latch state of the pixel in this row, so that the pixel can re-enter the next round of event detection and optical flow vector calculation process. The above steps complete the calculation and output of a row of optical flow vector events. By repeatedly executing this process, the pixel array continuously outputs optical flow vector event data containing pixel address information, timestamp information, direction, and amplitude information.
