Exposure control method and device of MCU vision module
By predicting the ambient light data information in the MCU vision module, determining and updating the exposure control parameter information in advance, the problem of response lag in the traditional exposure control method is solved, and faster and more accurate exposure control is achieved.
Patent Information
- Application Number
- CN202510188256.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-02-20
AI Technical Summary
The traditional exposure control method lags in response when the lighting conditions change, resulting in overexposed or underexposed images.
By realizing the prediction of ambient light data information in the MCU vision module, the target exposure control parameter information is determined in advance, and the current exposure control parameter information is updated after receiving these parameters.
Reduces the delay in the response of exposure control parameter information, ensuring that the image obtains optimal exposure when the lighting conditions change, and avoids exposure problems caused by adjustment lag.
Smart Images

Figure CN119676573B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image capture technology, and in particular to an exposure control method and device for an MCU vision module. Background Art
[0002] In modern image acquisition equipment, exposure control is one of the key factors to ensure image quality. The main purpose of exposure control is to adjust the relevant parameters of the image sensor so that the images taken under different lighting conditions can achieve the best brightness and contrast, avoid overexposure or underexposure of the image, and ensure accurate restoration of image details and colors.
[0003] Traditional exposure control methods usually rely on the automatic exposure algorithm of the image sensor itself, which automatically adjusts the exposure parameters of the image acquisition device by analyzing the current ambient light data information in real time. However, since the adjustment of exposure parameters takes a certain amount of time, this method often leads to a response lag, which in turn causes the image to be overexposed or underexposed. Summary of the invention
[0004] The present application provides an exposure control method and device for an MCU vision module to solve the problems raised by the above background technology.
[0005] In a first aspect, the present application provides an exposure control method for an MCU vision module, wherein the MCU vision module includes an MCU and a vision sensor, and the method is used for the MCU, and the method includes:
[0006] When shooting the nth frame image, predicting the ambient light data information corresponding to the n+mth frame image, and obtaining the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor;
[0007] Acquire the second ambient light prediction data information corresponding to the (n+m-1)th frame image in the database;
[0008] Determining whether the first ambient light prediction data information is consistent with the second ambient light prediction data information;
[0009] If they are inconsistent, determining the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information;
[0010] The target exposure control parameter information is sent to the visual sensor. After receiving the target exposure control parameter information, the visual sensor uses the target exposure control parameter information to update current exposure control parameter information.
[0011] In a possible implementation, predicting the ambient light data information corresponding to the n+m-th frame image to obtain first ambient light prediction data information corresponding to the n+m-th frame image includes:
[0012] For each frame image between the nmth frame image and the nth frame image, historical ambient light prediction data information and historical ambient light detection data information corresponding to the image are obtained in a database; wherein each frame image between the nmth frame image and the nth frame image includes the nmth frame image and the nth frame image;
[0013] Determine whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information;
[0014] If each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, it is determined that the historical ambient light detection data information corresponding to any frame image between the nmth frame image and the nth frame image is the first ambient light prediction data information.
[0015] In a possible implementation manner, after determining whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, the method further includes:
[0016] If the historical ambient light prediction data information is not completely consistent with the historical ambient light detection data information, the ambient light data information corresponding to the n+mth frame image is predicted based on the historical ambient light detection data information to obtain the first ambient light prediction data information corresponding to the n+mth frame image.
[0017] In a possible implementation, the historical ambient light detection data information includes historical light brightness values and historical color temperature values, and the ambient light data information corresponding to the n+mth frame image is predicted based on each of the historical ambient light detection data information to obtain the first ambient light prediction data information corresponding to the n+mth frame image, including:
[0018] Arranging the historical light brightness values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information is collected, to obtain a historical light brightness value sequence;
[0019] Arranging the historical color temperature values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information are collected, to obtain a historical color temperature value sequence;
[0020] Determining whether the historical light brightness values in the historical light brightness value sequence show an increasing or decreasing trend;
[0021] If the historical brightness values in the historical brightness value sequence show an increasing or decreasing trend, predicting the brightness value corresponding to the n+m-th frame image based on the historical brightness value sequence to obtain a brightness prediction value corresponding to the n+m-th frame image;
[0022] If the historical brightness values in the historical brightness value sequence do not show an increasing or decreasing trend, determining the historical brightness value corresponding to the n-th frame image as the brightness prediction value corresponding to the n+m-th frame image;
[0023] Determining whether the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend;
[0024] If the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend, predicting the color temperature value corresponding to the n+m-th frame image based on the historical color temperature value sequence to obtain a color temperature prediction value corresponding to the n+m-th frame image;
[0025] If the historical color temperature values in the historical color temperature value sequence do not show an increasing or decreasing trend, determine the historical color temperature value corresponding to the nth frame image as the color temperature prediction value corresponding to the (n+m)th frame image; the brightness prediction value and the color temperature prediction value constitute the first ambient light prediction data information.
[0026] In a possible implementation, predicting the brightness value corresponding to the n+m-th frame image based on the historical brightness value sequence to obtain the brightness prediction value corresponding to the n+m-th frame image includes:
[0027] The historical brightness value corresponding to the nth frame image is subtracted from the historical brightness value corresponding to the nmth frame image to obtain the difference in historical brightness values, and the difference in historical brightness values is added to the historical brightness value corresponding to the nth frame image to obtain the brightness prediction value.
[0028] In a possible implementation, predicting the color temperature value corresponding to the n+m-th frame image based on the historical color temperature value sequence to obtain the color temperature prediction value corresponding to the n+m-th frame image includes:
[0029] The historical color temperature value corresponding to the nth frame image is subtracted from the historical color temperature value corresponding to the nmth frame image to obtain the difference in historical color temperature values, and the historical color temperature value corresponding to the nth frame image is added to the difference in historical color temperature values to obtain the color temperature prediction value.
[0030] In a possible implementation manner, before sending the target exposure control parameter information to the visual sensor, the method further includes:
[0031] Acquire a logo image of the visual sensor; the logo image is a rectangle;
[0032] Based on the preset image analysis software, the RGB color space corresponding to each pixel of the logo image is respectively obtained;
[0033] Constructing a blank table; the numerical value corresponding to the number of columns of the blank table is consistent with the numerical value corresponding to the number of pixels in each row of the logo image, and the numerical value corresponding to the number of rows of the blank table is consistent with the numerical value corresponding to the number of pixels in each column of the logo image;
[0034] For each of the pixels, determine a target blank cell corresponding to the pixel in the blank table based on the position of the pixel in the identification image, and insert the RGB color space corresponding to the pixel into the target blank cell to obtain a target table;
[0035] Determine a value corresponding to the number of columns of the blank table as a first target value, and determine a value corresponding to the number of rows of the blank table as a second target value;
[0036] Determine a target cell in the target table; the numerical attribute of the value corresponding to the row number corresponding to the position of the target cell is consistent with the numerical attribute of the first target numerical value, and the numerical attribute of the value corresponding to the column number corresponding to the position of the target cell is consistent with the numerical attribute of the second target numerical value; the numerical attribute is a prime number or a composite number;
[0037] Arranging the RGB color spaces in the target cells in sequence based on the positions of the target cells in the target table to obtain an RGB color space sequence;
[0038] The target exposure control parameter information is encrypted using the RGB color space sequence.
[0039] In a second aspect, the present application provides an exposure control device for an MCU visual module, wherein the MCU visual module includes an MCU and a visual sensor, and the device is used for the MCU, and the device includes:
[0040] A prediction module, used for predicting the ambient light data information corresponding to the n+mth frame image when shooting the nth frame image, to obtain the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor;
[0041] An acquisition module, used to acquire second ambient light prediction data information corresponding to the n+m-1th frame image in a database;
[0042] A determination module, configured to determine whether the first ambient light prediction data information is consistent with the second ambient light prediction data information;
[0043] a determination module, configured to determine the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information if the first ambient light prediction data information is inconsistent with the second ambient light prediction data information;
[0044] The sending module is used to send the target exposure control parameter information to the visual sensor, and after receiving the target exposure control parameter information, the visual sensor uses the target exposure control parameter information to update the current exposure control parameter information.
[0045] The present application provides an exposure control method and device for an MCU visual module, wherein the MCU visual module includes an MCU and a visual sensor, and the method is used for the MCU. The method includes predicting the ambient light data information corresponding to the n+m-th frame image when shooting the n-th frame image, and obtaining the first ambient light prediction data information corresponding to the n+m-th frame image; wherein m is the delayed frame number for the exposure control parameter information to be updated to the visual sensor; obtaining the second ambient light prediction data information corresponding to the n+m-1-th frame image from a database; determining whether the first ambient light prediction data information is consistent with the second ambient light prediction data information; if they are inconsistent, determining the target exposure control parameter information of the n+m-th frame image based on the first ambient light prediction data information; and sending the target exposure control parameter information to the visual sensor, and after receiving the target exposure control parameter information, the visual sensor uses the target exposure control parameter information to update the current exposure control parameter information. This method predicts the ambient light data information of the n+mth frame image in advance and completes the determination of the target exposure control parameter information of the n+mth frame image at the nth frame. It can adjust the exposure control parameter information of the visual sensor in time before the lighting changes. This forward-looking adjustment mechanism helps to reduce the delay in the response of the exposure control parameter information, ensure that the image obtains the best exposure as much as possible when the lighting conditions change, and avoid exposure problems caused by adjustment lags. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0047] Figure 1 A flow chart of an exposure control method for an MCU vision module provided in an embodiment of the present application;
[0048] Figure 2 A schematic block diagram of the structure of an exposure control device for an MCU vision module provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0051] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0052] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0053] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0054] See also Figure 1 , Figure 1 A flow chart of an exposure control method of an MCU visual module provided in an embodiment of the present application, wherein the MCU visual module includes an MCU and a visual sensor, such as Figure 1 As shown, the exposure control method of the MCU vision module provided in the embodiment of the present application includes steps S1 to S5.
[0055] Step S1, when shooting the nth frame image, predict the ambient light data information corresponding to the n+mth frame image to obtain the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor.
[0056] Among them, an optical sensor is provided on the visual sensor, and the optical sensor is used to detect the ambient light data information around the visual sensor when shooting the nth frame image, and obtain the ambient light detection data information corresponding to the nth frame image. After obtaining the ambient light detection data information corresponding to the nth frame image, the ambient light detection data information is numbered with n, and the numbered ambient light detection data information is stored in a database.
[0057] Specifically, the step S1 predicts the ambient light data information corresponding to the n+m-th frame image to obtain the first ambient light prediction data information corresponding to the n+m-th frame image, including the following steps:
[0058] For each frame image between the nmth frame image and the nth frame image, historical ambient light prediction data information and historical ambient light detection data information corresponding to the image are obtained in a database; wherein each frame image between the nmth frame image and the nth frame image includes the nmth frame image and the nth frame image;
[0059] Determine whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information;
[0060] If each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, determine that the historical ambient light detection data information corresponding to any frame image between the nm-th frame image and the n-th frame image is the first ambient light prediction data information; it can be understood that if each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, it means that the current ambient light performance is stable, and the ambient light data information at the moment corresponding to the n+m-th frame image is likely to be consistent with the historical ambient light detection data information, for example, the ambient light data information is stable and unchanged in a certain period of time during the day;
[0061] If each of the historical ambient light prediction data information is not completely consistent with each of the historical ambient light detection data information, predicting the ambient light data information corresponding to the n+m-th frame image based on each of the historical ambient light detection data information to obtain first ambient light prediction data information corresponding to the n+m-th frame image;
[0062] The historical ambient light detection data information includes historical light brightness values and historical color temperature values, and the ambient light data information corresponding to the n+mth frame image is predicted based on each of the historical ambient light detection data information to obtain the first ambient light prediction data information corresponding to the n+mth frame image, including the following steps:
[0063] Arranging the historical light brightness values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information is collected, to obtain a historical light brightness value sequence;
[0064] Arranging the historical color temperature values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information are collected, to obtain a historical color temperature value sequence;
[0065] Determining whether the historical light brightness values in the historical light brightness value sequence show an increasing or decreasing trend;
[0066] If the historical brightness values in the historical brightness value sequence show an increasing or decreasing trend, predict the brightness value corresponding to the n+m-th frame image based on the historical brightness value sequence to obtain the brightness prediction value corresponding to the n+m-th frame image; specifically, subtract the historical brightness value corresponding to the nm-th frame image from the historical brightness value corresponding to the n-th frame image to obtain the difference in historical brightness values, and add the difference in historical brightness values to the historical brightness value corresponding to the n-th frame image to obtain the brightness prediction value;
[0067] If the historical brightness values in the historical brightness value sequence do not show an increasing or decreasing trend, determining the historical brightness value corresponding to the n-th frame image as the brightness prediction value corresponding to the n+m-th frame image;
[0068] Determining whether the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend;
[0069] If the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend, predicting the color temperature value corresponding to the n+m-th frame image based on the historical color temperature value sequence, to obtain a color temperature prediction value corresponding to the n+m-th frame image; specifically, subtracting the historical color temperature value corresponding to the nm-th frame image from the historical color temperature value corresponding to the n-th frame image to obtain a difference in historical color temperature values, and adding the difference in historical color temperature values to the historical color temperature value corresponding to the n-th frame image to obtain the color temperature prediction value;
[0070] If the historical color temperature values in the historical color temperature value sequence do not show an increasing or decreasing trend, determine the historical color temperature value corresponding to the nth frame image as the color temperature prediction value corresponding to the (n+m)th frame image; the brightness prediction value and the color temperature prediction value constitute the first ambient light prediction data information.
[0071] It can be understood that the method in step S1, on the one hand, can effectively cope with dynamically changing lighting environments. When the ambient light is stable, it can quickly use historical ambient light detection data information to determine the first ambient light prediction data information. When the lighting conditions change, it can timely predict the ambient light data information corresponding to the n+mth frame image, thereby enhancing the adaptability of the exposure control method under complex lighting conditions and helping to ensure the stability of image quality. On the other hand, by predicting the ambient light data information of the n+mth frame in advance, the visual sensor can complete the update of the exposure control parameter information when shooting the n+mth frame image, thereby avoiding overexposure or underexposure of the image as much as possible.
[0072] Step S2: Obtain second ambient light prediction data information corresponding to the (n+m-1)th frame image from the database.
[0073] Specifically, the second ambient light prediction data information numbered n+m-1 is obtained in the database.
[0074] Step S3: Determine whether the first ambient light prediction data information is consistent with the second ambient light prediction data information.
[0075] Specifically, the first ambient light prediction data information includes a first brightness prediction value and a first color temperature prediction value, and the second ambient light prediction data information includes a second brightness prediction value and a second color temperature prediction value. When the first brightness prediction value is equal to the second brightness prediction value, and the first color temperature prediction value is equal to the second color temperature prediction value, it is determined that the first ambient light prediction data information is consistent with the second ambient light prediction data information.
[0076] Step S4: If they are inconsistent, determine the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information.
[0077] Specifically, a plurality of correspondences between ambient light data information and exposure control parameter information are provided in the database, and a target correspondence is searched in the database based on the first ambient light prediction data information, and the exposure control parameter information in the target correspondence is determined to be the target exposure control parameter information, and the ambient light data information in the target correspondence is consistent with the first ambient light prediction data information.
[0078] Step S5: sending the target exposure control parameter information to the visual sensor. After receiving the target exposure control parameter information, the visual sensor updates the current exposure control parameter information using the target exposure control parameter information.
[0079] The method provided in this embodiment predicts the ambient light data information of the n+mth frame image in advance and completes the determination of the target exposure control parameter information of the n+mth frame image at the nth frame. This can timely adjust the exposure control parameter information of the visual sensor before the lighting changes. This forward-looking adjustment mechanism helps to reduce the delay in the response of the exposure control parameter information, ensure that when the lighting conditions change, the image obtains the best exposure as much as possible, and avoid exposure problems caused by adjustment lags.
[0080] In some embodiments, before sending the target exposure control parameter information to the visual sensor, the method further includes the following steps:
[0081] Acquire a logo image of the visual sensor; the logo image is a rectangle;
[0082] Based on the preset image analysis software, the RGB color space corresponding to each pixel of the logo image is respectively obtained;
[0083] Constructing a blank table; the numerical value corresponding to the number of columns of the blank table is consistent with the numerical value corresponding to the number of pixels in each row of the logo image, and the numerical value corresponding to the number of rows of the blank table is consistent with the numerical value corresponding to the number of pixels in each column of the logo image;
[0084] For each pixel, a target blank cell corresponding to the pixel is determined in the blank table based on the position of the pixel in the identification image, and the RGB color space corresponding to the pixel is inserted into the target blank cell to obtain a target table; illustratively, if the pixel is a pixel in the third row and second column of the identification image, then the target blank cell corresponding to the pixel is a blank cell in the third row and second column of the blank table;
[0085] Determine a value corresponding to the number of columns of the blank table as a first target value, and determine a value corresponding to the number of rows of the blank table as a second target value;
[0086] Determine a target cell in the target table; the numerical attribute of the value corresponding to the row number corresponding to the position of the target cell is consistent with the numerical attribute of the first target numerical value, and the numerical attribute of the value corresponding to the column number corresponding to the position of the target cell is consistent with the numerical attribute of the second target numerical value; the numerical attribute is a prime number or a composite number;
[0087] Arranging the RGB color spaces in the target cells in sequence based on the positions of the target cells in the target table to obtain an RGB color space sequence;
[0088] The target exposure control parameter information is encrypted using the RGB color space sequence.
[0089] The method provided in this embodiment can improve the security of the target exposure control parameter information during transmission and prevent unauthorized personnel from tampering with the target exposure control parameter information. After receiving the target exposure control parameter information provided by this embodiment, the visual sensor first decrypts the target exposure control parameter information, and then updates the current exposure control parameter information based on the decrypted target exposure control parameter information.
[0090] See also Figure 2 , Figure 2 The structure schematic block diagram of the exposure control device 100 of the MCU visual module provided in the embodiment of the present application, the MCU visual module includes an MCU and a visual sensor, and the exposure control device 100 of the MCU visual module is used for the MCU, such as Figure 2 As shown, the exposure control device 100 of the MCU vision module provided in the embodiment of the present application includes:
[0091] The prediction module 110 is used to predict the ambient light data information corresponding to the n+mth frame image when shooting the nth frame image, and obtain the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor.
[0092] The acquisition module 120 is used to acquire the second ambient light prediction data information corresponding to the (n+m-1)th frame image from the database.
[0093] The judgment module 130 is used to judge whether the first ambient light prediction data information is consistent with the second ambient light prediction data information.
[0094] The determination module 140 is configured to determine the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information if the first ambient light prediction data information is inconsistent with the second ambient light prediction data information.
[0095] The sending module 150 is used to send the target exposure control parameter information to the visual sensor. After receiving the target exposure control parameter information, the visual sensor uses the target exposure control parameter information to update the current exposure control parameter information.
[0096] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the process in the exposure control method embodiment of the aforementioned MCU vision module, and will not be repeated here.
[0097] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. An exposure control method for an MCU vision module, characterized in that: The MCU vision module includes an MCU and a vision sensor. The method is used for the MCU, and the method includes: When shooting the nth frame image, predicting the ambient light data information corresponding to the n+mth frame image, and obtaining the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor; Acquire the second ambient light prediction data information corresponding to the (n+m-1)th frame image in the database; Determining whether the first ambient light prediction data information is consistent with the second ambient light prediction data information; If they are inconsistent, determining the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information; Sending the target exposure control parameter information to the visual sensor, and after receiving the target exposure control parameter information, the visual sensor uses the target exposure control parameter information to update current exposure control parameter information; The step of predicting the ambient light data information corresponding to the n+m-th frame image to obtain the first ambient light prediction data information corresponding to the n+m-th frame image includes: For each frame image between the nmth frame image and the nth frame image, historical ambient light prediction data information and historical ambient light detection data information corresponding to the image are obtained in a database; wherein each frame image between the nmth frame image and the nth frame image includes the nmth frame image and the nth frame image; Determine whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information; If each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, it is determined that the historical ambient light detection data information corresponding to any frame image between the nmth frame image and the nth frame image is the first ambient light prediction data information.
2. The exposure control method of the MCU vision module according to claim 1, characterized in that: After determining whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, the method further includes: If the historical ambient light prediction data information is not completely consistent with the historical ambient light detection data information, the ambient light data information corresponding to the n+mth frame image is predicted based on the historical ambient light detection data information to obtain the first ambient light prediction data information corresponding to the n+mth frame image.
3. The exposure control method of the MCU vision module according to claim 2, characterized in that: The historical ambient light detection data information includes historical light brightness values and historical color temperature values, and the ambient light data information corresponding to the n+m-th frame image is predicted based on each of the historical ambient light detection data information to obtain the first ambient light prediction data information corresponding to the n+m-th frame image, including: Arranging the historical light brightness values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information is collected, to obtain a historical light brightness value sequence; Arranging the historical color temperature values corresponding to the historical ambient light detection data information in sequence based on the order in which the historical ambient light detection data information are collected, to obtain a historical color temperature value sequence; Determining whether the historical light brightness values in the historical light brightness value sequence show an increasing or decreasing trend; If the historical brightness values in the historical brightness value sequence show an increasing or decreasing trend, predicting the brightness value corresponding to the n+m-th frame image based on the historical brightness value sequence to obtain a brightness prediction value corresponding to the n+m-th frame image; If the historical brightness values in the historical brightness value sequence do not show an increasing or decreasing trend, determining the historical brightness value corresponding to the n-th frame image as the brightness prediction value corresponding to the n+m-th frame image; Determining whether the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend; If the historical color temperature values in the historical color temperature value sequence show an increasing or decreasing trend, predicting the color temperature value corresponding to the n+m-th frame image based on the historical color temperature value sequence to obtain a color temperature prediction value corresponding to the n+m-th frame image; If the historical color temperature values in the historical color temperature value sequence do not show an increasing or decreasing trend, determine the historical color temperature value corresponding to the nth frame image as the color temperature prediction value corresponding to the (n+m)th frame image; the brightness prediction value and the color temperature prediction value constitute the first ambient light prediction data information.
4. The exposure control method of the MCU vision module according to claim 3, characterized in that: The step of predicting the brightness value corresponding to the n+mth frame image based on the historical brightness value sequence to obtain the brightness prediction value corresponding to the n+mth frame image includes: The historical brightness value corresponding to the nth frame image is subtracted from the historical brightness value corresponding to the nmth frame image to obtain the difference in historical brightness values, and the difference in historical brightness values is added to the historical brightness value corresponding to the nth frame image to obtain the brightness prediction value.
5. The exposure control method of the MCU vision module according to claim 3, characterized in that: The predicting the color temperature value corresponding to the n+m-th frame image based on the historical color temperature value sequence to obtain the color temperature prediction value corresponding to the n+m-th frame image includes: The historical color temperature value corresponding to the nth frame image is subtracted from the historical color temperature value corresponding to the nmth frame image to obtain the difference in historical color temperature values, and the historical color temperature value corresponding to the nth frame image is added to the difference in historical color temperature values to obtain the color temperature prediction value.
6. The exposure control method of the MCU vision module according to claim 1, characterized in that: Before sending the target exposure control parameter information to the visual sensor, the method further includes: Acquire a logo image of the visual sensor; the logo image is a rectangle; Based on the preset image analysis software, the RGB color space corresponding to each pixel of the logo image is respectively obtained; Constructing a blank table; the numerical value corresponding to the number of columns of the blank table is consistent with the numerical value corresponding to the number of pixels in each row of the logo image, and the numerical value corresponding to the number of rows of the blank table is consistent with the numerical value corresponding to the number of pixels in each column of the logo image; For each of the pixels, determine a target blank cell corresponding to the pixel in the blank table based on the position of the pixel in the identification image, and insert the RGB color space corresponding to the pixel into the target blank cell to obtain a target table; Determine a value corresponding to the number of columns of the blank table as a first target value, and determine a value corresponding to the number of rows of the blank table as a second target value; Determine a target cell in the target table; the numerical attribute of the value corresponding to the row number corresponding to the position of the target cell is consistent with the numerical attribute of the first target numerical value, and the numerical attribute of the value corresponding to the column number corresponding to the position of the target cell is consistent with the numerical attribute of the second target numerical value; the numerical attribute is a prime number or a composite number; Arranging the RGB color spaces in the target cells in sequence based on the positions of the target cells in the target table to obtain an RGB color space sequence; The target exposure control parameter information is encrypted using the RGB color space sequence.
7. An exposure control device for an MCU vision module, characterized in that: The MCU vision module includes an MCU and a vision sensor, and the device is used for the MCU, and the device includes: A prediction module, used for predicting the ambient light data information corresponding to the n+mth frame image when shooting the nth frame image, to obtain the first ambient light prediction data information corresponding to the n+mth frame image; wherein m is the delay frame number for the exposure control parameter information to be updated to the visual sensor; An acquisition module, used to acquire second ambient light prediction data information corresponding to the n+m-1th frame image in a database; A determination module, configured to determine whether the first ambient light prediction data information is consistent with the second ambient light prediction data information; a determination module, configured to determine the target exposure control parameter information of the (n+m)th frame image based on the first ambient light prediction data information if the first ambient light prediction data information is inconsistent with the second ambient light prediction data information; A sending module, used for sending the target exposure control parameter information to the visual sensor, and after receiving the target exposure control parameter information, the visual sensor updates the current exposure control parameter information using the target exposure control parameter information; The step of predicting the ambient light data information corresponding to the n+m-th frame image to obtain the first ambient light prediction data information corresponding to the n+m-th frame image includes: For each frame image between the nmth frame image and the nth frame image, historical ambient light prediction data information and historical ambient light detection data information corresponding to the image are obtained in a database; wherein each frame image between the nmth frame image and the nth frame image includes the nmth frame image and the nth frame image; Determine whether each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information; If each of the historical ambient light prediction data information is consistent with each of the historical ambient light detection data information, it is determined that the historical ambient light detection data information corresponding to any frame image between the nmth frame image and the nth frame image is the first ambient light prediction data information.
Citation Information
Patent Citations
Control method for automatic exposure adjustment and electronic equipment
CN117528258A