Image processing circuit, method and electronic device based on memristor array

By using an image processing circuit based on a memristor array, combined with a photosensitive sensor and a switching unit, low-latency and low-power image processing is achieved, solving the latency and energy consumption problems in traditional solutions and supporting the rapid acquisition and storage of large-scale images.

CN116347001BActive Publication Date: 2026-06-23NAT UNIV OF DEFENSE TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NAT UNIV OF DEFENSE TECH
Filing Date
2023-03-28
Publication Date
2026-06-23

Smart Images

  • Figure CN116347001B_ABST
    Figure CN116347001B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose an image processing circuit and method based on a memristor array and an electronic device, comprising a light sensor unit, a conversion unit, a memristor unit array, a first switch unit and a second switch unit; when the image processing circuit is working, the light sensor unit detects an optical image and inputs detected optical data to the conversion unit; the conversion unit converts the optical data into electrical data and outputs the electrical data to the memristor unit array to control the modulation state of each memristor unit in the memristor unit array; the first switch unit and the second switch unit open a preset number of switches according to a preset exposure mode and pixel data of the optical image, so that the memristor unit array performs preset image processing on the optical image. The present application combines the memristor array with the light sensor, and can realize large-scale, low-latency and low-power image processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image sensing technology, and in particular to an image processing circuit, method, and electronic device based on a memristor array. Background Technology

[0002] In traditional image processing schemes, image information is first acquired by sensors and preprocessed by analog-to-digital conversion, encoding, etc., and then transmitted to memory for storage. When performing image recognition and other processing tasks, the image information is retrieved from memory to the processor, processed, and then the result is transmitted back to memory.

[0003] The analog-to-digital conversion during image acquisition and the frequent data movement during processing lead to additional latency and energy consumption, which is detrimental to the efficient processing of large-scale image data.

[0004] In recent years, with the rapid development of technologies such as artificial intelligence and the Internet of Things, the tasks of sensing and processing image information have exploded. Traditional image processing solutions can no longer meet the needs of processing massive amounts of information, and new image processing solutions with large scale, low latency, and low power consumption have become an urgent need.

[0005] Therefore, there is an urgent need for a new image processing solution that can achieve rapid and continuous acquisition and storage of high-pixel image frames. Summary of the Invention

[0006] To address the aforementioned technical problems, this application provides an image processing circuit, method, and electronic device based on a memristor array, as detailed below:

[0007] In a first aspect, embodiments of this application provide an image processing circuit based on a memristor array, including: a light sensor unit, a conversion unit, a memristor unit array, a first switching unit, and a second switching unit;

[0008] The optical sensor unit is connected to the input terminal of the conversion unit, the output terminal of the conversion unit is connected to the control terminal of the memristor unit array, the first terminal of the memristor unit array is connected to the first excitation signal through the first switch unit, and the second terminal of the memristor unit array is connected to the second excitation signal through the second switch unit.

[0009] When the image processing circuit is working, the light sensor unit detects the optical image and inputs the detected optical data to the conversion unit;

[0010] The conversion unit converts the optical data into electrical data and outputs the electrical data to the memristor unit array to control the modulation state of each memristor unit in the memristor unit array.

[0011] The first switching unit and the second switching unit activate a preset number of switches according to a preset exposure mode and the pixel data of the optical image, so that the memristor unit array performs preset image processing on the optical image.

[0012] According to a specific embodiment of the present application, the memristor unit array includes m×n memristor units, wherein the memristor unit array is arranged in m rows and n columns, and each memristor unit includes a transistor and a memristor.

[0013] The gate of the transistor serves as the control terminal of the memristor unit and is connected to the output terminal of the conversion unit.

[0014] The source of the transistor is connected to the first switching unit through the memristor, and the drain of the transistor is connected to the second switching unit.

[0015] According to a specific embodiment of the present application, the first switching unit includes n switches, and the second switching unit includes m switches.

[0016] The first switching unit controls the conduction state of n columns of memristor units according to the preset exposure mode and the pixel data, and the second switching unit controls the conduction state of m rows of memristor units according to the preset exposure mode and the pixel data.

[0017] According to a specific embodiment of this application, the optical sensor unit includes m optical sensors, and the conversion unit includes m sets of conversion circuits, wherein each optical sensor is connected to the gate of n memristor units through a corresponding set of conversion circuits.

[0018] According to a specific embodiment of the present application, the conversion circuit includes a voltage divider resistor and an operational amplifier;

[0019] The non-inverting input of the operational amplifier is used to connect to a reference voltage, the inverting input of the operational amplifier is used to connect one end of the voltage divider resistor to the optical sensor, and the other end of the voltage divider resistor is used to connect to the power supply voltage.

[0020] According to a specific embodiment of the present application, the preset exposure mode includes global exposure and rolling shutter exposure;

[0021] When the preset exposure mode is global exposure, the first switch unit and the second switch unit turn on a column and a preset number of rows of switches according to the pixel data, so that a column of the memristor unit array performs global exposure processing on the optical image;

[0022] When the preset exposure mode is roller shutter exposure, the first switch unit or the second switch unit sequentially turns on the switches of one column and all rows according to the pixel data and the preset arrangement order, so that the memristor unit array performs roller shutter exposure processing on the optical image.

[0023] Secondly, embodiments of this application provide an image processing method based on a memristor array, applied to the image processing circuit based on a memristor array described in the first aspect and any embodiment of the first aspect, the method comprising:

[0024] Optical images are detected by a light sensor unit to obtain optical data;

[0025] The optical data is converted into electrical data by a conversion unit;

[0026] The modulation state of each memristor unit in the memristor unit array is controlled based on the electrical data.

[0027] According to the preset exposure mode and the pixel data of the optical image, a preset number of switches of the first switch unit and the second switch unit are turned on, so as to perform preset image processing on the optical image through the memristor unit array.

[0028] According to a specific embodiment of this application, the first switching unit includes n switches, the second switching unit includes m switches, and the step of "activating a preset number of switches in the first and second switching units according to a preset exposure mode and the pixel data, so as to perform preset image processing on the optical image through the memristor unit array" includes:

[0029] According to the preset exposure mode and the pixel data, the first switching unit is controlled to turn on a first number of switches to control the n columns of memristor units to perform preset image processing on the optical image;

[0030] Based on the preset exposure mode and the pixel data, the second switch opening element is controlled to open a second number of switches, so as to control the m-row memristor unit to perform preset image processing on the optical image.

[0031] According to a specific embodiment of this application, the preset exposure mode includes global exposure and rolling shutter exposure, and the method further includes:

[0032] When the preset exposure mode is global exposure, the first switch unit and the second switch unit are controlled to turn on a column and a preset number of rows of switches according to the pixel data, so that a column of the memristor unit array performs global exposure processing on the optical image;

[0033] When the preset exposure mode is roller shutter exposure, according to the pixel data and the preset arrangement order, the first switch unit or the second switch unit is controlled to turn on the switches of one column and all rows in sequence, so that the memristor unit array performs roller shutter exposure processing on the optical image.

[0034] Thirdly, embodiments of this application provide an electronic device, which includes an image processing circuit based on a memristor array as described in the first aspect and any embodiment of the first aspect, a processor, and a memory. The memory stores a computer program, and the computer program executes the image processing method based on a memristor array as described in the second aspect and any embodiment of the second aspect when it is run on the processor.

[0035] This application provides an image processing circuit, method, and electronic device based on a memristor array, including: a photosensitive unit, a conversion unit, a memristor unit array, a first switching unit, and a second switching unit. When the image processing circuit operates, the photosensitive unit detects an optical image and inputs the detected optical data to the conversion unit. The conversion unit converts the optical data into electrical data and outputs the electrical data to the memristor unit array to control the modulation state of each memristor unit in the memristor unit array. The first switching unit and the second switching unit activate a preset number of switches according to a preset exposure mode and the pixel data of the optical image, so that the memristor unit array performs preset image processing on the optical image. This invention combines a memristor array with a photosensitive unit, enabling large-scale, low-latency, and low-power image processing. Attached Figure Description

[0036] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope of protection of the present invention. In the various drawings, similar components are numbered similarly.

[0037] Figure 1 A schematic diagram of a circuit module for an image processing circuit based on a memristor array provided in an embodiment of this application is shown.

[0038] Figure 2 This illustration shows a schematic diagram of the photosensitive characteristics of an image processing circuit based on a memristor array provided in an embodiment of this application;

[0039] Figure 3 This illustration shows a circuit connection diagram of a conversion unit for an image processing circuit based on a memristor array, according to an embodiment of this application.

[0040] Figure 4This illustration shows a schematic diagram of the output characteristics of a conversion circuit for an image processing circuit based on a memristor array, according to an embodiment of this application.

[0041] Figure 5 A circuit connection diagram of an image processing circuit based on a memristor array provided in an embodiment of this application is shown;

[0042] Figure 6 This illustration shows a schematic diagram of the multi-valued characteristics of a memristor cell in an image processing circuit based on a memristor array, according to an embodiment of this application.

[0043] Figure 7 A schematic flowchart of an image processing method based on a memristor array provided in an embodiment of this application is shown. Detailed Implementation

[0044] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0045] The components of the embodiments of the invention described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0046] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of the invention, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.

[0047] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.

[0048] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the invention pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be interpreted as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of the invention.

[0049] refer to Figure 1 This is a schematic diagram of a circuit module for an image processing circuit based on a memristor array provided in an embodiment of this application. The image processing circuit based on a memristor array provided in this embodiment is an integrated architecture that combines a memristor array and an image sensor. It can integrate image sensing, image storage and image computing into one, avoiding analog-to-digital conversion and frequent data movement during image processing, and effectively reducing the latency and energy consumption of image processing.

[0050] like Figure 1 As shown, the image processing unit based on a memristor array proposed in this embodiment includes: a light sensor unit, a conversion unit, a memristor unit array, a first switching unit, and a second switching unit;

[0051] The optical sensor unit is connected to the input terminal of the conversion unit, the output terminal of the conversion unit is connected to the control terminal of the memristor unit array, the first terminal of the memristor unit array is connected to the first excitation signal through the first switch unit, and the second terminal of the memristor unit array is connected to the second excitation signal through the second switch unit.

[0052] In a specific embodiment, the optical sensor unit includes multiple optical sensors, which can be image sensor devices such as photoresistors or photodiodes. This embodiment does not limit the type of optical sensor. In one embodiment, the optical sensor unit is a sensor array composed of multiple optical sensors.

[0053] like Figure 2 As shown, if the light sensor is a photoresistor, when the power supply voltage is 0.1V, the current reading will increase with the increase of the applied light intensity, and the light sensor can sense different light intensities.

[0054] The conversion unit is a circuit or chip that converts optical signals into electrical signals, and can process the optical data collected by the optical sensor unit into electrical data to realize the storage and calculation of image data.

[0055] like Figure 3The conversion circuit includes a voltage divider resistor Rd and an operational amplifier; the non-inverting input of the operational amplifier is used to connect to a reference voltage Vref, the inverting input of the operational amplifier is used to connect one end of the voltage divider resistor Rd and the optical sensor Ro, and the other end of the voltage divider resistor Rd is used to connect to a power supply voltage V1.

[0056] In one embodiment, the conversion circuit can be as follows: Figure 3 The differential amplifier circuit shown in the figure divides the power supply voltage V1 through the photoresistor Ro and the voltage divider resistor Rd, and then differentially amplifies it with the reference voltage Vref to obtain the converted voltage. Finally, the converted voltage is sent to the gate line of the memristor unit.

[0057] Specifically, the converted voltage is the electrical data.

[0058] like Figure 4 As shown, the output voltage of the conversion unit increases with the increase of light intensity.

[0059] The memristor unit array is a memristor array composed of n×m memristor units. Based on the function of the memristor unit array, it can realize real-time storage and real-time calculation of image data without repeated access to the memory. It can quickly perform calculation and processing on large-scale image data in a low-power manner.

[0060] Each memristor unit includes a control terminal, a first terminal, and a second terminal. In practical applications, such as... Figure 5 As shown, the memristor unit has a transistor-memristor (1T1R) structure. The control terminal corresponds to the gate of the transistor, the first terminal corresponds to the source of the transistor, and the second terminal corresponds to the drain of the transistor. It should be noted that in some applications, the first terminal may also correspond to the drain of the transistor, and the second terminal may also correspond to the source of the transistor. This is not a specific limitation; the correspondence between the first and second terminals is adaptively set according to the type of transistor in the actual application scenario. This embodiment does not specifically limit the type of transistor; a suitable transistor model can be selected according to the actual application scenario.

[0061] In this embodiment, the conduction state of the first switching unit is used to determine whether the first terminal of the memristor unit can conduct the first excitation signal, and the conduction state of the second switching unit is used to determine whether the second terminal of the memristor unit can conduct the second excitation signal.

[0062] In the specific implementation process, the conduction state of the first switching unit and the second switch, as well as the first excitation signal and the second excitation signal, are all provided by a processor connected to the image processing circuit provided in this embodiment. The processor is located in an electronic device capable of image processing. Based on a preset software program, it can allocate corresponding first excitation signals and second excitation signals to the first switching unit and the second switching unit according to the acquired optical image, and control the conduction state of the first switching unit and the second switching unit to input the corresponding excitation signals into the memristor unit array for image processing tasks such as image storage and image calculation.

[0063] When the image processing circuit is working, the light sensor unit detects the optical image and inputs the detected optical data to the conversion unit;

[0064] The conversion unit converts the optical data into electrical data and outputs the electrical data to the memristor unit array to control the modulation state of each memristor unit in the memristor unit array.

[0065] The first switching unit and the second switching unit activate a preset number of switches according to a preset exposure mode and the pixel data of the optical image, so that the memristor unit array performs preset image processing on the optical image.

[0066] In practice, the image processing circuit is installed in an electronic device capable of image acquisition, image storage, and image calculation, such as a camera, camcorder, mobile terminal, or computer terminal.

[0067] like Figure 5 As shown, the memristor unit array comprises m×n memristor units, arranged in m rows and n columns. Both the first and second switching units include multiplexers; the first switching unit is a column-line multiplexer (i.e., it includes n switches), and the second switching unit is a row-line multiplexer (i.e., it includes m switches). The optical sensor unit comprises m optical sensors, and the conversion unit comprises m sets of conversion circuits, wherein each optical sensor is connected to the gates of the n memristor units through a corresponding set of conversion circuits.

[0068] Specifically, such as Figure 5As shown, taking the first row as an example, the optical sensors in the same row are connected to the input terminal of the conversion circuit 1. The output terminal of the conversion circuit 1, as well as the gates of memristor units 11, 21, and n1, are all connected to the gate lines. The sources of memristor units 11, 21, and n1 are all connected to the column lines, and the drains of the sources of memristor units 11, 21, and n1 are all connected to the row lines.

[0069] The first switching unit controls the conduction state of each column line according to the preset exposure mode and the pixel data to control the conduction state of n columns of memristor units. The second switching unit controls the conduction state of each row line according to the preset exposure mode and the pixel data to control the conduction state of m rows of memristor units.

[0070] In a specific embodiment, each memristor cell can be modulated into different states when the same pulse excitation is applied at different gate voltages.

[0071] In practice, each memristor unit is restored to the same initial state before each modulation operation. This embodiment does not limit the initial state; the data configuration for the initial state can be tailored to the specific application scenario.

[0072] After applying voltage to the grid lines, control each column line to be grounded, and apply an excitation pulse with parameters (1.6V, 200ns) to each row line, such as... Figure 6 As shown, eight different gate voltages can be obtained, and the memristor cell is modulated into eight distinguishable states, indicating that the memristor cell can successfully store the light intensity values ​​of eight states in a very short time without the need for additional verification operations.

[0073] Based on the aforementioned circuit setup and the modulation of the memristor state, the memristor array proposed in this embodiment can achieve fast image storage and image computation for large-scale optical images.

[0074] According to a specific embodiment of the present application, the preset exposure mode includes global exposure and rolling shutter exposure;

[0075] When the preset exposure mode is global exposure, the first switch unit and the second switch unit turn on a column and a preset number of switches according to the pixel data, so that the memristor unit array performs global exposure processing on the optical image;

[0076] When the preset exposure mode is roller shutter exposure, the first switch unit or the second switch unit sequentially turns on the switches of one column and all rows according to the pixel data and the preset arrangement order, so that the memristor unit array performs roller shutter exposure processing on the optical image.

[0077] Specifically, the image processing circuit proposed in this embodiment has two operating modes when performing exposure processing on images: a global exposure mode and a rolling shutter exposure mode.

[0078] In global exposure mode, if the pixel data of the optical image shows an image size of sqrt(m)×sqrt(m), then the first switching unit turns on 1 column of switches and the second switching unit turns on m rows of switches, so that m×1 memristor units simultaneously expose the optical image.

[0079] In the rolling shutter exposure mode, the memristor unit array is exposed column by column.

[0080] If the pixel data of the optical image shows an image size of m×n / 3, with m rows of pixels, and the second switching unit turns on all switches, resulting in n / 3 columns of pixels, during exposure, the image is first aligned with the first column of pixels. The first switching unit then controls the column lines of the first column to conduct, causing the memristor units in the first column to enter a working state according to the excitation signal. The memristor units in the first column are operated to different resistance states corresponding to the pixels in the first column, thus storing the image information of the first column. Then, exposure is performed column by column in the same manner until all column pixels are stored.

[0081] In practical applications, the preset exposure mode and the pixel data of the optical image are both provided by the processor connected to the image processing circuit. This embodiment does not impose specific limitations on this, and the processor can realize corresponding functional interactions according to the actual application scenario.

[0082] In summary, this embodiment provides an image processing circuit based on a memristor array. For the integrated architecture of the memristor array and image sensor, a rolling shutter exposure architecture with gate multiplexing of the memristor array is designed, solving the problems of memristor array size limitations and continuous erasure technology. This meets the needs of rapid continuous acquisition and storage of large-size image sequences, providing support for memristor arrays in image processing applications. Furthermore, compared to existing integrated architectures, the image processing circuit proposed in this embodiment has advantages such as circuit simplicity, low power consumption, fast storage speed, and the ability to process large image sizes.

[0083] refer to Figure 7 This is a schematic flowchart of an image processing method based on a memristor array provided in an embodiment of this application. The image processing method based on a memristor array provided in this embodiment is applied to the image processing circuit based on a memristor array in the aforementioned circuit embodiment, such as... Figure 7 As shown, the image processing method based on memristor array includes:

[0084] Step S701: Detect the optical image using the light sensor unit to obtain optical data;

[0085] Step S702: The optical data is converted into electrical data by the conversion unit;

[0086] Step S703: Control the modulation state of each memristor unit in the memristor unit array based on the electrical data;

[0087] Step S704: According to the preset exposure mode and the pixel data of the optical image, a preset number of switches of the first switch unit and the second switch unit are turned on, so as to perform preset image processing on the optical image through the memristor unit array.

[0088] According to a specific embodiment of this application, the first switching unit includes n switches, the second switching unit includes m switches, and the step of "activating a preset number of switches in the first and second switching units according to a preset exposure mode and the pixel data, so as to perform preset image processing on the optical image through the memristor unit array" includes:

[0089] According to the preset exposure mode and the pixel data, the first switching unit is controlled to turn on a first number of switches to control the n columns of memristor units to perform preset image processing on the optical image;

[0090] Based on the preset exposure mode and the pixel data, the second switch opening element is controlled to open a second number of switches, so as to control the m-row memristor unit to perform preset image processing on the optical image.

[0091] According to a specific embodiment of this application, the preset exposure mode includes global exposure and rolling shutter exposure, and the method further includes:

[0092] When the preset exposure mode is global exposure, the first switch unit and the second switch unit are controlled to turn on a column and a preset number of rows of switches according to the pixel data, so that a column of the memristor unit array performs global exposure processing on the optical image;

[0093] When the preset mode is roller shutter exposure, according to the pixel data and preset arrangement order, the first switch unit or the second switch unit is controlled to turn on the switches of one column and all rows in sequence, so that the memristor unit array performs roller shutter exposure processing on the optical image.

[0094] In addition, this application also provides an electronic device, which includes the image processing circuit based on memristor array as described in the circuit embodiments above, a processor, and a memory. The memory stores a computer program, and the computer program executes the image processing method based on memristor array as described in the method embodiments above when it is run on the processor.

[0095] The specific implementation process of the electronic device and the image processing method based on memristor array mentioned in the above embodiments can be found in the specific implementation process of the above method embodiments, and will not be repeated here.

[0096] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, as an alternative implementation, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0097] In addition, the functional modules or units in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0098] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0099] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. An image processing circuit based on a memristor array, characterized in that, include: The optical sensor unit, the conversion unit, the memristor unit array, the first switching unit, and the second switching unit; The optical sensor unit is connected to the input terminal of the conversion unit, the output terminal of the conversion unit is connected to the control terminal of the memristor unit array, the first terminal of the memristor unit array is connected to the first excitation signal through the first switch unit, and the second terminal of the memristor unit array is connected to the second excitation signal through the second switch unit. When the image processing circuit is working, the light sensor unit detects the optical image and inputs the detected optical data to the conversion unit; The conversion unit converts the optical data into electrical data and outputs the electrical data to the memristor unit array to control the modulation state of each memristor unit in the memristor unit array. The first switching unit and the second switching unit turn on a preset number of switches according to the preset exposure mode and the pixel data of the optical image, so that the memristor unit array performs preset image processing on the optical image; The preset exposure modes include global exposure and rolling shutter exposure; When the preset exposure mode is global exposure, the first switch unit and the second switch unit turn on a column and a preset number of switches according to the pixel data, so that the memristor unit array performs global exposure processing on the optical image; When the preset exposure mode is roller shutter exposure, the first switch unit or the second switch unit sequentially turns on the switches of one column and all rows according to the pixel data and the preset arrangement order, so that the memristor unit array performs roller shutter exposure processing on the optical image.

2. The circuit according to claim 1, characterized in that, The memristor unit array includes m×n memristor units, wherein the memristor unit array is arranged in m rows and n columns, and each memristor unit includes a transistor and a memristor. The gate of the transistor serves as the control terminal of the memristor unit and is connected to the output terminal of the conversion unit. The source of the transistor is connected to the first switching unit through the memristor, and the drain of the transistor is connected to the second switching unit.

3. The circuit according to claim 2, characterized in that, The first switching unit includes n switches, and the second switching unit includes m switches; The first switching unit controls the conduction state of n columns of memristor units according to the preset exposure mode and the pixel data, and the second switching unit controls the conduction state of m rows of memristor units according to the preset exposure mode and the pixel data.

4. The circuit according to claim 2, characterized in that, The optical sensor unit includes m optical sensors, and the conversion unit includes m sets of conversion circuits, wherein each optical sensor is connected to the gate of n memristor units through a corresponding set of conversion circuits.

5. The circuit according to claim 4, characterized in that, The conversion circuit includes voltage divider resistors and an operational amplifier; The non-inverting input of the operational amplifier is used to connect to a reference voltage, the inverting input of the operational amplifier is used to connect one end of the voltage divider resistor to the optical sensor, and the other end of the voltage divider resistor is used to connect to the power supply voltage.

6. An image processing method based on a memristor array, characterized in that, The method, applied to the image processing circuit based on a memristor array according to any one of claims 1 to 5, comprises: Optical images are detected by a light sensor unit to obtain optical data; The optical data is converted into electrical data by a conversion unit; The modulation state of each memristor unit in the memristor unit array is controlled based on the electrical data. According to the preset exposure mode and the pixel data of the optical image, a preset number of switches of the first switch unit and the second switch unit are turned on, so as to perform preset image processing on the optical image through the memristor unit array.

7. The method according to claim 6, characterized in that, The first switching unit includes n switches, and the second switching unit includes m switches. The step of activating a preset number of switches in the first and second switching units according to a preset exposure mode and the pixel data, so as to perform preset image processing on the optical image through the memristor unit array, includes: According to the preset exposure mode and the pixel data, the first switching unit is controlled to turn on a first number of switches to control the n columns of memristor units to perform preset image processing on the optical image; Based on the preset exposure mode and the pixel data, the second switch opening element is controlled to open a second number of switches, so as to control the m-row memristor unit to perform preset image processing on the optical image.

8. The method according to claim 7, characterized in that, The preset exposure modes include global exposure and rolling shutter exposure, and the method further includes: When the preset exposure mode is global exposure, the first switch unit and the second switch unit are controlled to turn on a column and a preset number of rows of switches according to the pixel data, so that a column of the memristor unit array performs global exposure processing on the optical image; When the preset exposure mode is roller shutter exposure, according to the pixel data and the preset arrangement order, the first switch unit or the second switch unit is controlled to turn on the switches of one column and all rows in sequence, so that the memristor unit array performs roller shutter exposure processing on the optical image.

9. An electronic device, characterized in that, The electronic device includes an image processing circuit based on a memristor array as described in any one of claims 1 to 5, a processor, and a memory, wherein the memory stores a computer program, and the computer program executes the image processing method based on a memristor array as described in any one of claims 6 to 8 when it is run on the processor.