WO2023011032A1 - Image processing method, image processing chip, and electronic device - Google Patents

Image processing method, image processing chip, and electronic device Download PDF

Info

Publication number
WO2023011032A1
WO2023011032A1 PCT/CN2022/100535 CN2022100535W WO2023011032A1 WO 2023011032 A1 WO2023011032 A1 WO 2023011032A1 CN 2022100535 W CN2022100535 W CN 2022100535W WO 2023011032 A1 WO2023011032 A1 WO 2023011032A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processor
data
processing
image data
Prior art date
Application number
PCT/CN2022/100535
Other languages
French (fr)
Chinese (zh)
Inventor
吴义孝
Original Assignee
哲库科技(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 哲库科技(上海)有限公司 filed Critical 哲库科技(上海)有限公司
Publication of WO2023011032A1 publication Critical patent/WO2023011032A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level

Definitions

  • the present application relates to image processing technology, in particular to an image processing method, an image processing chip and electronic equipment.
  • image processing technology it is very common for electronic equipment to be equipped with display screens with high resolution and high frame rate, but it is also accompanied by the problem of high power consumption when the image processor of the electronic equipment performs image processing.
  • an image processor is used to preprocess images in electronic equipment, but when processing images with high resolution and high frame rate for a long time, the problem of high power consumption of the image processor is more serious.
  • the embodiments of the present application expect to provide an image processing method, an image processing chip, and an electronic device.
  • an image processing method including:
  • an image processing chip including: an image processor and an application processor coupled to the image processor, the image processor is configured to process received image data, and the image processor has a first working mode and a second working mode,
  • the image processor when the image processor operates in the first working mode, the image processor performs frame-interval processing on the image data to obtain the first image data;
  • the image processor When the image processor is running in the second working mode, the image processor performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
  • the application processor is configured to process the first image data.
  • an electronic device in a third aspect, includes:
  • an image acquisition device configured to acquire image data
  • An image processor configured to execute the method steps in the aforementioned first aspect implemented by the image processor.
  • FIG. 1 is a schematic diagram of a first flow chart of an image processing method in an embodiment of the present application
  • Fig. 2 is a second schematic flow chart of the image processing method in the embodiment of the present application.
  • FIG. 3 is a schematic diagram of classification of image processor working modes in the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a third flow chart of an image processing method in an embodiment of the present application.
  • FIG. 5 is a schematic flow chart of frame-interval processing in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a fourth flow chart of an image processing method in an embodiment of the present application.
  • FIG. 7 is a schematic flow chart of downsampling and upsampling processing in the embodiment of the present application.
  • FIG. 8 is a schematic diagram of a fifth flow chart of the image processing method in the embodiment of the present application.
  • FIG. 9 is a schematic diagram of the composition and structure of the image processing chip in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of the composition and structure of the electronic device in the embodiment of the present application.
  • An embodiment of the present application provides an image processing method applied to an image processor, wherein the method includes:
  • performing frame-interval processing on the image data includes: performing frame-interval processing on the image data to obtain the first image data and 3A statistical data of the processed image; sending the first image data and the 3A statistical data to an application processor, so that the application processor can analyze the first image data by the 3A statistical data of the processed image Perform image compensation on the unprocessed image to obtain second image data.
  • performing down-sampling processing and frame-interval processing on the image data includes: performing down-sampling processing on the image data, and performing down-sampling processing on the down-sampled
  • the sampled image data is processed every frame to obtain the first image data and the 3A statistical data of the processed image; the first image data and the 3A statistical data are sent to the application processor for the application processor Perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image, and perform up-sampling processing on the compensated image data to obtain the second image data.
  • the first image data and the 3A statistical data are sent to the application processor, so that the application processor can use the 3A statistical data of the processed image of the previous frame to perform the processing on the unprocessed image of the current frame.
  • Image compensation processing or, sending the first image data and the 3A statistical data to the application processor, so that the application processor can analyze the 3A statistical data of the processed image of the previous frame and the processed image of the next frame Perform weighting processing to obtain weighted 3A statistical data; perform image compensation processing on the unprocessed image of the current frame through the weighted 3A statistical data.
  • the method further includes: determining that the image processor is running in a third working mode according to the running state information, wherein when the image processor is running in the third working mode, the Some modules in the image processor are set to bypass mode.
  • the method further includes: from preset operating conditions, determining a target operating condition satisfied by the operating state information; when the target operating condition is the first operating condition, determining that the image processing The processor operates in the first operating mode; when the target operating condition is the second operating condition, determine that the image processor is operating in the second operating mode; when the target operating condition is the third operating condition, determine The image processor operates in the third working mode.
  • the operating status information includes at least one of the following: temperature of the image processor, power consumption of the image processor for a preset working time,
  • the operating conditions include at least one of the following: the temperature of the image processor is within a preset temperature range; the power consumption of the image processor is within a preset power consumption range.
  • the embodiment of the present application also provides an image processor, the image processor is configured to call and run the computer program stored in the memory, and execute any method steps implemented by the image processor in the embodiments of the present application.
  • the embodiment of the present application also provides an image processing chip, which includes:
  • the image processor is configured to process received image data, the image processor has a first mode of operation and a second mode of operation,
  • the image processor when the image processor operates in the first working mode, the image processor performs frame-interval processing on the image data to obtain the first image data;
  • the image processor When the image processor is running in the second working mode, the image processor performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
  • the application processor is configured to process the first image data.
  • the image processor is configured to process the image data every other frame to obtain the first image data and 3A statistical data of the processed image; the first image data and the 3A statistical data Data is sent to the application processor;
  • the application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image to obtain the second image data.
  • the image processor is configured to perform down-sampling processing on the image data, and perform frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image; sending the first image data and the 3A statistical data to an application processor;
  • the application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image, and perform up-sampling processing on the compensated image data to obtain the second image data.
  • the application processor is configured to perform image compensation processing on the unprocessed image of the current frame by using the 3A statistical data of the processed image of the previous frame;
  • the application processor is configured to perform weighted processing on the 3A statistical data of the processed image of the previous frame and the processed image of the next frame to obtain weighted 3A statistical data; Perform image compensation processing.
  • the embodiment of the present application also provides an electronic device, and the electronic device includes:
  • an image acquisition device configured to acquire image data
  • An image processor configured to execute any method steps implemented by the image processor in the embodiments of the present application.
  • the electronic device further includes an application processor configured to receive the first image data processed by the image processor and process the first image processing data.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium is configured to store a computer program, and the computer program enables the computer to execute the image processor or application processor in the embodiment of the present application. method steps.
  • An embodiment of the present application provides an image processing method for adaptively adjusting a working mode of an image processor, and the method is applied to an image processor.
  • Electronic equipment includes an application processor (Application Processor, AP) and an image processor (Image Signal Processor, ISP).
  • the ISP can also be called a front-end image processor (Previous Image Signal Processor, Pre-ISP).
  • the image processor performs front-end image processor operations on the original image data collected by the image acquisition device, and the application processor is used to perform back-end image processing operations.
  • the electronic equipment described in this application has a shooting function, and the electronic equipment may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP) , wearable devices, cameras, smart cars, etc.
  • PDA Personal Digital Assistant
  • PMP portable media players
  • wearable devices cameras, smart cars, etc.
  • Fig. 1 is a schematic flow chart of the first image processing method in the embodiment of the present application. As shown in Fig. 1, the method may specifically include:
  • Step 101 Obtain the running status information of the image processor
  • the running state information is used to characterize the power consumption of the image processor, and the best working mode matching the current power consumption of the image processor is determined according to the running state information.
  • the running state information includes at least one of the following: the temperature of the image processor, and the power consumption of the image processor within a preset working period.
  • the image processor includes a temperature detection device and a power consumption detection device, the temperature detection device is used for detecting temperature, and the power consumption detection device is used for detecting power consumption.
  • Temperature can be correlated to characterize the power consumption of an image processor, with higher temperatures indicating greater power consumption.
  • the aforementioned preset working duration may be 30 seconds, 60 seconds, 90 seconds, 120 seconds, 5 minutes, etc.
  • Step 102 Determine whether the image processor is running in the first working mode or the second working mode according to the running state information, wherein when the image processor is running in the first working mode, the image data is isolated Frame processing: when the image processor operates in the second working mode, down-sampling processing and frame-interval processing are performed on the image data.
  • the working modes of the image processor include at least a first working mode and a second working mode, and the image sensor operates in different working modes under different power consumption.
  • the first working mode and the second working mode may be referred to as low power consumption modes, and the power consumption of the image processor running the first working mode is greater than the power consumption of running the second working mode.
  • the low power consumption mode can be understood as the simplified processing of the input image data by the ISP, and the ISP in different low power consumption modes adopts different simplified processing strategies to process the image data.
  • the ISP performs down-sampling and frame-interval processing on the high frame rate and high resolution video to reduce the amount of processed data.
  • the method further includes: setting a plurality of operating conditions in advance, and different operating conditions correspond to different working modes; correspondingly, the operating conditions include at least one of the following: the temperature of the image processor is at a preset within the preset temperature range; the power consumption of the image processor is within the preset power consumption range. Different operating conditions correspond to different temperature ranges and different power consumption ranges.
  • a target operating condition satisfied by the operating state information determines a target operating condition satisfied by the operating state information; when the target operating condition is a first operating condition, determine that the image processor is operating in the first working mode; the When the target running condition is the second running condition, it is determined that the image processor runs in the second working mode.
  • the working mode further includes a high-performance mode, and the power consumption of the image processor running in any low-power consumption mode is less than the power consumption of running in the high-performance mode.
  • the high-performance mode can be understood as not making any adjustments to the processing process of the image processor, and it is determined according to the operation state information that the image processor is running in the high-performance mode, and the image processor can normally process the input image data. In practical applications, when it is determined according to the operating state information that the current power consumption of the image sensor is low, the high-performance mode is operated to achieve high-quality image processing effects.
  • the self-adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balanced image processing for the purpose of device power consumption and image processing effects.
  • FIG. 2 is a second schematic flow diagram of the image processing method in the embodiment of the present application. As shown in FIG. 2 , the processing method specifically includes:
  • Step 201 Obtain the running status information of the image processor
  • Step 202 From the preset operating conditions, determine the target operating conditions that the operating state information satisfies;
  • the method further includes: setting a plurality of operating conditions in advance, and different operating conditions correspond to different working modes;
  • the running condition includes at least one of the following: the temperature of the image processor is within a preset temperature range; the power consumption of the image processor is within a preset power consumption range.
  • Different operating conditions correspond to different temperature ranges and different power consumption ranges.
  • the temperature threshold in the temperature range can be preset in the product development stage based on experimental data, and the power consumption threshold in the power consumption range can be preset in the product development stage based on experimental data.
  • Temperature ranges and power dissipation ranges include upper and/or lower limits.
  • the running state information includes at least one of the following: the temperature of the image processor, and the power consumption of the image processor within a preset working period.
  • the running state information includes the temperature and power consumption of the ISP
  • the first running condition corresponding to the first working mode includes: the temperature is in the first temperature range, or the power consumption is in the first power consumption range.
  • the running state information satisfies the first running condition; if the temperature is outside the first temperature range, and the power consumption is within the first If it is outside the power consumption range, it is determined that the running state information does not meet the first running condition. That is to say, when either the temperature or the power consumption is within the preset range, it is determined that the first operating condition is satisfied; otherwise, it is determined that the first operating condition is not satisfied.
  • the first operating condition includes: the temperature is within a first temperature range, and the power consumption is within a first power consumption range. That is to say, when the temperature and power consumption of the ISP meet the first operating condition at the same time, it is determined that the operating state information satisfies the first operating condition; otherwise, it is determined that the operating state information does not meet the first operating condition.
  • the running state information only includes the temperature of the ISP, and the first running condition includes: the temperature is in the first temperature range; or the running state information only includes the power consumption of the ISP, and the first running condition includes: the power consumption is in the first temperature range; A power consumption range.
  • Step 203 When the target operating condition is the first operating condition, determine that the image processor is operating in the first working mode;
  • the image processor when the image processor operates in the first working mode, the image data is processed every other frame.
  • Step 204 When the target operating condition is the second operating condition, determine that the image processor is operating in the second working mode;
  • the image processor when the image processor operates in the second working mode, it performs down-sampling processing and frame-interval processing on the image data.
  • the second operating condition corresponds to a second temperature range and a second power consumption range.
  • Step 205 When the target operating condition is a third operating condition, determine that the image processor is operating in the third working mode.
  • the third operating condition corresponds to a third temperature range and a third power consumption range.
  • the first operating condition includes: the temperature is in the first temperature range, and/or the power consumption is in the first power consumption range.
  • the second operating condition includes: the temperature is within the second temperature range, and/or the power consumption is within the second power consumption range.
  • the third operating condition includes: the temperature is in the third temperature range, and/or the power consumption is in the third power consumption range.
  • the temperature range and power consumption range can be set according to the test results.
  • the first temperature range, the second temperature range, and the third temperature range can be different or partially the same.
  • the first power consumption range, the second power consumption range The range and the third power consumption range may be different or partially the same.
  • the working mode also includes a high-performance mode, and the high-performance mode is set with corresponding high-performance operating conditions, and the power consumption of the image processor running in any low-power mode is less than that of running in all low-power modes. power consumption in high-performance mode.
  • the high-performance mode can be understood as not making any adjustments to the processing process of the image processor, and it is determined according to the operation state information that the image processor is running in the high-performance mode, and the image processor can normally process the input image data. In practical applications, when it is determined according to the operating state information that the current power consumption of the image sensor is low, the high-performance mode is operated to achieve high-quality image processing effects.
  • FIG. 3 is a schematic diagram of the classification of image processor working modes in the embodiment of the present application.
  • There are four working modes that is, a high-performance mode, a first working mode, a second working mode and a third working mode.
  • the power consumption is in order from high to low.
  • the first operation mode, the second operation mode and the third operation mode may be referred to as low power consumption modes.
  • the control device determines the optimal working mode of the image processor according to the operating state information of the image processor.
  • the operating state information includes temperature and power consumption, and each threshold includes a temperature threshold and a power consumption threshold.
  • each threshold includes a temperature threshold and a power consumption threshold.
  • the image processor is controlled to enter the high-performance mode; when the temperature or power consumption is greater than or equal to threshold 1, and both are less than threshold 2, the image processor is controlled to enter the first working mode; when the temperature or power consumption is greater than or equal to threshold 2, and When both are less than the threshold 3, the image processor is controlled to enter the second working mode; when the temperature or power consumption is greater than or equal to the threshold 3, the image processor is controlled to enter the third working mode.
  • the operating conditions corresponding to different working modes are set through threshold 1, threshold 2 and threshold 3, the operating status information is compared with the operating conditions, and the target operating conditions satisfied by the operating status information are judged, so as to determine the target operating conditions corresponding to the target operating conditions. model.
  • the control device may belong to the image processor, that is, the control device inside the image processor controls the switching of the working mode, and the control device may belong to the application processor or other processors coupled with the image processor.
  • the fourth working mode corresponds to a fourth operating condition
  • the fourth operating condition corresponds to a fourth temperature range and a fourth power consumption range.
  • the fourth working mode means that other working modes may be included in order to represent the image processor, and it is not intended to limit the number of working modes.
  • the self-adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balanced image processing for the purpose of device power consumption and image processing effects.
  • FIG. 4 is a schematic flow chart of the third image processing method in the embodiment of the present application. As shown in FIG. In one working mode, the image processing method specifically includes:
  • Step 401 Obtain the running status information of the image processor
  • Step 402 Determine that the image processor is running in a first working mode according to the running status information
  • Step 403 Processing the image data at intervals to obtain the first image data and 3A statistical data of the processed image;
  • the image data is the original image data collected by the image acquisition device.
  • the number of interval frames may be one frame or two frames.
  • the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without frame-by-frame statistics or calculation, so as to reduce the pressure of ISP processing, but in order to improve the video image quality, the AP side does not Process the image to compensate.
  • LSC Lens shading correction
  • only the actual LSC processing is done for the interval frame, and the check table calculation based on the image is not performed, and the LSC processing for the interval frame is based on the check table
  • the information can use the checklist information of the previous adjacent frame, so as to ensure the LSC processing effect of the image.
  • Step 404 Send the first image data and the 3A statistical data to an application processor, so that the application processor can use the 3A statistical data of the processed image to process the unprocessed image in the first image data image compensation to obtain second image data.
  • the AP side determines that the ISP is running in the first working mode, the AP side will perform corresponding compensation processing.
  • the first image data and the 3A statistical data are sent to the application processor, so that the application processor can analyze the current frame by using the 3A statistical data of the processed image of the previous frame. performing image compensation processing on the unprocessed image; or, sending the first image data and the 3A statistical data to the application processor for the application processor to process the image of the previous frame and the processed image of the next frame
  • the weighted 3A statistical data is processed to obtain the weighted 3A statistical data; image compensation processing is performed on the unprocessed image of the current frame through the weighted 3A statistical data.
  • the AP side when the AP side compensates the unprocessed image of the current frame, it can use the 3A statistical data of the processed image of the previous frame to compensate, or to improve the compensation accuracy, it can firstly combine the processed image of the previous frame with the post-processing image.
  • the 3A statistics of a processed image are weighted and then compensated using the weighted 3A statistics.
  • the weight of the 3A statistical data of the processed image in the previous frame is higher than that in the subsequent frame.
  • FIG. 5 is a schematic flowchart of frame-interval processing in the embodiment of the present application, as shown in FIG. 5 ,
  • the image data are: D1, D2, D3, D4, D5, D6, D7...
  • the image data After the image data enters the ISP, all the data is first processed by the front end module (Front End, FE), and then processed by the back end module (Back End, BE) every frame.
  • the data processed every frame is the gray block in Figure 5 (D1, D3, D5, D7), and the data (D2, D4, D6) that have not been processed by the BE module are directly sent to the AP side;
  • the 3A statistical data of the data (D1, D3, D5, D7) processed by the ISP every other frame is transmitted to the AP side through the Mobile Industry Processor Interface (MIPI), and the data is shared on the AP side, and the unprocessed images are shared adjacent to each other.
  • MIPI Mobile Industry Processor Interface
  • the 3A statistical data of the frame so that the ISP can process frame by frame, reduce the read and write operations of the internal memory of the ISP, and reduce the power consumption of the ISP.
  • the video preview does not require high image quality
  • the AP side can use the 3A statistical data of the processed image of the previous frame to perform image compensation, reducing The amount of calculation saves ISP energy consumption.
  • high image quality is required.
  • the AP side can use weighted 3A statistical data for image compensation.
  • FIG. 6 is a schematic diagram of the fourth process flow of the image processing method in the embodiment of the present application. As shown in FIG. In the second working mode, the image processing method specifically includes:
  • Step 601 Obtain the running status information of the image processor
  • Step 602 Determine that the image processor is running in a second working mode according to the running state information
  • Step 603 Perform down-sampling processing on the image data, and perform frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image;
  • the image data is the original image data collected by the image acquisition device.
  • the image acquisition device includes a camera and an image sensor.
  • the camera may be a rear main camera, a rear wide-angle camera, a rear telephoto camera or a front camera.
  • the sampling coefficient k may be 1 or 2.
  • the number of interval frames may be one frame or two frames.
  • the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without frame-by-frame statistics or calculation, so as to reduce the pressure of ISP processing, but in order to improve the video image quality, the AP side does not Process the image to compensate.
  • LSC Lens shading correction
  • only the actual LSC processing is done for the interval frame, and the check table calculation based on the image is not performed, and the LSC processing for the interval frame is based on the check table
  • the information can use the checklist information of the previous adjacent frame, so as to ensure the LSC processing effect of the image.
  • Step 603 Send the first image data and the 3A statistical data to an application processor, so that the application processor can use the 3A statistical data of the processed image to process the unprocessed image in the first image data Image compensation, and performing up-sampling processing on the compensated image data to obtain second image data.
  • the AP side determines that the ISP is running in the second working mode, the AP side will perform corresponding compensation processing and upsampling. Compensation processing is used to improve image quality, and upsampling processing is used to restore the original image size.
  • the upsampling processing may be implemented based on a bilinear interpolation method, or may be implemented by a super-resolution technology (Super-Resolution, SR).
  • Super-Resolution SR
  • FIG. 7 is a schematic flow chart of downsampling and upsampling processing in the embodiment of the present application.
  • the ISP side performs downsampling processing on the received image of height x width, and the downsampling coefficient is 1, and the image size is obtained It is height/2xwidth/2, that is, in the original image, one point is taken every other point in each row and column to form an image, and then the sampled image is processed every other frame to further reduce the calculation amount on the ISP side. ISP energy consumption.
  • the image is first up-sampled on the AP side to restore the image size to the height x width, and then the image compensation process is performed.
  • the first image data and the 3A statistical data are sent to the application processor, so that the application processor can analyze the current frame by using the 3A statistical data of the processed image of the previous frame. performing image compensation processing on the unprocessed image; or, sending the first image data and the 3A statistical data to the application processor for the application processor to process the image of the previous frame and the processed image of the next frame
  • the weighted 3A statistical data is processed to obtain the weighted 3A statistical data; image compensation processing is performed on the unprocessed image of the current frame through the weighted 3A statistical data.
  • the AP side when the AP side compensates the unprocessed image of the current frame, it can use the 3A statistical data of the processed image of the previous frame to compensate, or to improve the compensation accuracy, it can firstly combine the processed image of the previous frame with the post-processing image.
  • the 3A statistics of a processed image are weighted and then compensated using the weighted 3A statistics.
  • frame-interval processing and compensation processing refer to FIG. 5 .
  • the weight of the 3A statistical data of the processed image in the previous frame is higher than that in the subsequent frame.
  • FIG. 8 is a schematic flowchart of a fifth image processing method in the embodiment of the present application.
  • the image processor includes a front-end module (FE) and a back-end module (BE), and the front-end module is used to perform front-end processing on the image data collected by the image sensor, and process the processed
  • the data is stored in the memory; the back-end module is used to read the image data from the memory for back-end processing.
  • the image processor runs in the third working mode, retains the function of the front-end module (FE), and sets the back-end module (BE) to a bypass mode (also called Bypass mode).
  • the image data is sent to the AP side after being processed by the front-end module (FE) through the processing path 82 in FIG. 8 .
  • the image processor operates in a high-performance mode.
  • the image data is processed by the front-end module (FE) through the processing path 83 in FIG. Back-end processing, and then send the processed image data to the AP side.
  • FE front-end module
  • the working mode further includes a fourth working mode, and when the image processor is running in the third working mode, the image processor is set to a bypass mode.
  • the fourth working mode is also a low power consumption mode, and the power consumption of the ISP running in the fourth working mode is less than that of running in the third working mode.
  • Run the fourth working mode set the image processor to bypass mode, taking Figure 8 as an example, setting the image processor to bypass mode includes setting both the front-end module (FE) and the back-end module (BE) to bypass mode, the image data is directly sent to the AP side through the processing path 81 in FIG. 8 .
  • the image data may be data processed by the FF module, and the back-end module (BE) performs down-sampling processing and frame-interval processing on the image data.
  • BE back-end module
  • the ISP runs in the third working mode, and the ISP directly sends the image data to the AP.
  • the ISP may also include other modules, which are not shown in FIG. 8 .
  • the ISP calculation load can be reduced by sharing the intermediate processing results, thereby reducing power consumption.
  • the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without the need Statistics or calculations are performed frame by frame to reduce the pressure of ISP processing, but in order to improve the quality of video images, the AP side compensates for unprocessed images.
  • the embodiment of the present application also provides an image processor, the image processor is configured to call and run the computer program stored in the memory, and execute the method in the embodiment of the present application The steps of the image processing method.
  • the embodiment of the present application also provides an image processing chip.
  • the image processing chip 90 includes:
  • the image processor 901a when the image processor 901a operates in the first working mode, the image processor 901a performs frame-interval processing on the image data to obtain the first image data;
  • the image processor 901a When the image processor 901a is running in the second working mode, the image processor 901a performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
  • the application processor 901b is configured to process the first image data.
  • the image data is processed every other frame to obtain the first image data and the 3A statistical data of the processed image; the first image data and the 3A statistical data are obtained
  • the statistical data is sent to the application processor 901b, so that the application processor 901b performs image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image to obtain the second image data.
  • the image data when the image processor 901a operates in the second working mode, the image data is down-sampled, and the down-sampled image data is processed every other frame to obtain the first image data and the 3A statistical data of the processed image ; Send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can perform an unprocessed image in the first image data through the 3A statistical data of the processed image Image compensation, and performing up-sampling processing on the compensated image data to obtain second image data.
  • the image processor 901a is configured to send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can use the previous frame processed image 3A statistical data performs image compensation processing on the unprocessed image of the current frame;
  • the image processor 901a is configured to send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can analyze the processed image of the previous frame and the processed image of the next frame. Perform weighting processing on the 3A statistical data of the processed image to obtain weighted 3A statistical data; perform image compensation processing on the unprocessed image of the current frame through the weighted 3A statistical data.
  • the image processor 901a operates in the third working mode, and some modules in the image processor are set to bypass mode.
  • the image processor 901a determines the working mode according to the running state information, specifically, determines the target running condition satisfied by the running state information from the preset running conditions; the target running condition is When the first running condition is used, it is determined that the image processor is running in the first working mode; when the target running condition is a second running condition, it is determined that the image processor is running in the second working mode; the When the target operating condition is the third operating condition, it is determined that the image processor is operating in the third working mode.
  • the operating status information includes at least one of the following: temperature of the image processor, power consumption of the image processor for a preset working time,
  • the operating conditions include at least one of the following:
  • the temperature of the image processor is within a preset temperature range
  • the power consumption of the image processor is within a preset power consumption range.
  • the image processing chip 90 may further include a memory 902 .
  • the image processor 901a and the application processor 901b can call and run a computer program from the memory 902, so as to implement the method in the embodiment of the present application.
  • the memory 902 may be a separate device independent of the image processor 901a and the application processor 901b, or may be integrated in the image processor 901a and the application processor 901b.
  • the image processing chip 90 may also include an input interface 903 . Communicate with other devices or chips through the input interface 903 , specifically, information or data sent by other devices or chips can be obtained.
  • the image processing chip 90 may also include an output interface 904 . Communicate with other devices or chips through the output interface 904 , specifically, output information or data to other devices or chips.
  • the image processing chip 90 may be applied to the electronic device in the embodiment of the present application.
  • the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.
  • the above-mentioned processor can be application specific integrated circuit (ASIC, Application Specific Integrated Circuit), digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), on-site At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor.
  • ASIC Application Specific Integrated Circuit
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • controller a microcontroller
  • microprocessor programmable gate array
  • memory can be volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); Or non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
  • volatile memory such as random access memory (RAM, Random-Access Memory
  • non-volatile memory such as read-only memory (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device described in the present application has a shooting function, and the electronic device may include such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable Media player (Portable Media Player, PMP), wearable device, camera, smart car, etc.
  • PDA Personal Digital Assistant
  • PMP portable Media Player
  • wearable device camera, smart car, etc.
  • the electronic device 100 includes:
  • An image acquisition device 1001 configured to acquire image data
  • the image processor 1002 is configured to execute the method steps implemented by the image processor in the foregoing embodiments.
  • the application processor 1003 is configured to receive the first image data processed by the image processor and process the first image processing data.
  • bus system 1004 various components in the electronic device 100 are coupled together through the bus system 1004 .
  • the bus system 1004 is used to realize connection and communication between these components.
  • the bus system 1004 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 1004 in FIG. 10 for clarity of illustration.
  • the embodiment of the present application also provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by an image processor to complete the steps of the foregoing method.
  • a computer-readable storage medium such as a memory including a computer program
  • the embodiment of the present application also provides a computer program product, including computer program instructions.
  • the computer program product can be applied to the image processor in the embodiment of the present application, and the computer program instructions cause the computer to execute the corresponding process implemented by the image processor in each method of the embodiment of the present application.
  • the computer program instructions cause the computer to execute the corresponding process implemented by the image processor in each method of the embodiment of the present application.
  • the embodiment of the present application also provides a computer program.
  • the computer program may be applied to the image processor in the embodiment of the present application, and when the computer program is run on the computer, the computer executes the corresponding process implemented by the image processor in each method of the embodiment of the present application, For the sake of brevity, details are not repeated here.
  • first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another and are not necessarily used to describe a specific order or sequence.
  • first information may also be called second information, and similarly, second information may also be called first information.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the present application provides an image processing method, an image processing chip and an electronic device.
  • the method obtains the operation state information by monitoring the operation state of the image processor, and determines the best work matching the current operation state information for the image processor according to the operation state information. mode, when the image processor runs in the first working mode, the image data is processed every other frame, and when the image processor runs the second working mode, the image data is down-sampled and processed every other frame.
  • the adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balance between the power consumption of the image processor and the image The purpose of processing effects.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The present application discloses an image processing method, an image processing chip, and an electronic device. The method comprises: obtaining running state information by monitoring a running state of an image processor; determining, according to the running state information, an optimal working mode matched with the current running state information for the image processor; when the image processor runs ina first working mode, performing frame separation processing on image data; and when the image processor runs in a second working mode, performing downsampling processing and frame separation processing on the image data. Adaptive adjustment of the working mode of the image processor is implemented, such that power consumption of the image processor is optimized, the problem of high power consumption in processing high-frame-rate images for a long time in a single working mode is solved, and the objective of balancing the power consumption of the image processor and an image processing effect is achieved.

Description

一种图像处理方法、图像处理芯片及电子设备Image processing method, image processing chip and electronic equipment
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110894743.8、申请日为2021年08月05日、发明创造名称为“一种图像处理方法、图像处理芯片及电子设备”的在先中国专利申请提出,并要求该在先中国专利申请的优先权,该在先中国专利申请的全部内容在此以全文引入的方式引入本申请作为参考。This application is based on the prior Chinese patent application with the application number 202110894743.8, the application date is August 5, 2021, and the invention title is "an image processing method, image processing chip and electronic equipment", and requires the prior Chinese patent application Priority of the patent application, the entire content of this prior Chinese patent application is hereby incorporated by reference in its entirety into this application.
技术领域technical field
本申请涉及图像处理技术,尤其涉及一种图像处理方法、图像处理芯片及电子设备。The present application relates to image processing technology, in particular to an image processing method, an image processing chip and electronic equipment.
背景技术Background technique
随着图像处理技术的发展,电子设备搭载高分辨率和高帧率的显示屏已十分普遍,但随之也伴随着电子设备的图像处理器进行图像处理时的高功耗问题。目前电子设备中通过设置图像处理器对图像进行预处理,但在长时间处理高分辨率和高帧率的图像时,图像处理器的高功耗问题更为严重。With the development of image processing technology, it is very common for electronic equipment to be equipped with display screens with high resolution and high frame rate, but it is also accompanied by the problem of high power consumption when the image processor of the electronic equipment performs image processing. At present, an image processor is used to preprocess images in electronic equipment, but when processing images with high resolution and high frame rate for a long time, the problem of high power consumption of the image processor is more serious.
发明内容Contents of the invention
为解决上述技术问题,本申请实施例期望提供一种图像处理方法、图像处理芯片及电子设备。In order to solve the above technical problems, the embodiments of the present application expect to provide an image processing method, an image processing chip, and an electronic device.
本申请的技术方案是这样实现的:The technical scheme of the present application is realized like this:
第一方面,提供了一种图像处理方法,包括:In a first aspect, an image processing method is provided, including:
获取所述图像处理器的运行状态信息;Acquiring the running state information of the image processor;
根据所述运行状态信息确定所述图像处理器运行在第一工作模式或第二工作模式,其中,当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理;当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理。Determining that the image processor is running in a first working mode or a second working mode according to the running status information, wherein when the image processor is running in the first working mode, image data is processed every other frame; When the image processor operates in the second working mode, it performs down-sampling processing and frame-interval processing on the image data.
第二方面,提供了一种图像处理芯片,包括:图像处理器以及与图像处理器耦合的应用处理器,所述图像处理器配置为处理接收到的图像数据,所述图像处理器具有第一工作模式和第二工作模式,In a second aspect, an image processing chip is provided, including: an image processor and an application processor coupled to the image processor, the image processor is configured to process received image data, and the image processor has a first working mode and a second working mode,
其中,当所述图像处理器运行在第一工作模式时,所述图像处理器对所述图像数据进行隔帧处理以得到第一图像数据;Wherein, when the image processor operates in the first working mode, the image processor performs frame-interval processing on the image data to obtain the first image data;
当所述图像处理器运行在第二工作模式时,所述图像处理器对所述图像数据进行降采样处理后进行隔帧处理以得到第一图像数据;When the image processor is running in the second working mode, the image processor performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
所述应用处理器配置为对所述第一图像数据进行处理。The application processor is configured to process the first image data.
第三方面,提供了一种电子设备,所述电子设备包括:In a third aspect, an electronic device is provided, and the electronic device includes:
图像获取装置,配置为采集图像数据;an image acquisition device configured to acquire image data;
图像处理器,配置为执行前述第一方面由图像处理器实现的方法步骤。An image processor configured to execute the method steps in the aforementioned first aspect implemented by the image processor.
附图说明Description of drawings
图1为本申请实施例中图像处理方法的第一流程示意图;FIG. 1 is a schematic diagram of a first flow chart of an image processing method in an embodiment of the present application;
图2为本申请实施例中图像处理方法的第二流程示意图;Fig. 2 is a second schematic flow chart of the image processing method in the embodiment of the present application;
图3为本申请实施例中图像处理器工作模式的分类示意图;FIG. 3 is a schematic diagram of classification of image processor working modes in the embodiment of the present application;
图4为本申请实施例中图像处理方法的第三流程示意图;FIG. 4 is a schematic diagram of a third flow chart of an image processing method in an embodiment of the present application;
图5为本申请实施例中隔帧处理的流程示意图;FIG. 5 is a schematic flow chart of frame-interval processing in the embodiment of the present application;
图6为本申请实施例中图像处理方法的第四流程示意图;FIG. 6 is a schematic diagram of a fourth flow chart of an image processing method in an embodiment of the present application;
图7为本申请实施例中降采样和升采样处理的流程示意图;FIG. 7 is a schematic flow chart of downsampling and upsampling processing in the embodiment of the present application;
图8为本申请实施例中图像处理方法的第五流程示意图;FIG. 8 is a schematic diagram of a fifth flow chart of the image processing method in the embodiment of the present application;
图9为本申请实施例中图像处理芯片的组成结构示意图;9 is a schematic diagram of the composition and structure of the image processing chip in the embodiment of the present application;
图10为本申请实施例中电子设备的组成结构示意图。FIG. 10 is a schematic diagram of the composition and structure of the electronic device in the embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种图像处理方法,应用于图像处理器,其中,所述方法包括:An embodiment of the present application provides an image processing method applied to an image processor, wherein the method includes:
获取所述图像处理器的运行状态信息;Acquiring the running state information of the image processor;
根据所述运行状态信息确定所述图像处理器运行在第一工作模式或第二工作模式,其中,当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理;当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理。Determining that the image processor is running in a first working mode or a second working mode according to the running status information, wherein when the image processor is running in the first working mode, image data is processed every other frame; When the image processor operates in the second working mode, it performs down-sampling processing and frame-interval processing on the image data.
在一些实施例中,所述当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理,包括:对所述图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,得到第二图像数据。In some embodiments, when the image processor operates in the first working mode, performing frame-interval processing on the image data includes: performing frame-interval processing on the image data to obtain the first image data and 3A statistical data of the processed image; sending the first image data and the 3A statistical data to an application processor, so that the application processor can analyze the first image data by the 3A statistical data of the processed image Perform image compensation on the unprocessed image to obtain second image data.
在一些实施例中,所述当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理,包括:对所述图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给 应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。In some embodiments, when the image processor operates in the second working mode, performing down-sampling processing and frame-interval processing on the image data includes: performing down-sampling processing on the image data, and performing down-sampling processing on the down-sampled The sampled image data is processed every frame to obtain the first image data and the 3A statistical data of the processed image; the first image data and the 3A statistical data are sent to the application processor for the application processor Perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image, and perform up-sampling processing on the compensated image data to obtain the second image data.
在一些实施例中,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;或者,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。In some embodiments, the first image data and the 3A statistical data are sent to the application processor, so that the application processor can use the 3A statistical data of the processed image of the previous frame to perform the processing on the unprocessed image of the current frame. Image compensation processing; or, sending the first image data and the 3A statistical data to the application processor, so that the application processor can analyze the 3A statistical data of the processed image of the previous frame and the processed image of the next frame Perform weighting processing to obtain weighted 3A statistical data; perform image compensation processing on the unprocessed image of the current frame through the weighted 3A statistical data.
在一些实施例中,所述方法还包括:根据所述运行状态信息确定所述图像处理器运行在第三工作模式,其中,当所述图像处理器运行在所述第三工作模式时,将所述图像处理器中的部分模块设置为旁路模式。In some embodiments, the method further includes: determining that the image processor is running in a third working mode according to the running state information, wherein when the image processor is running in the third working mode, the Some modules in the image processor are set to bypass mode.
在一些实施例中,所述方法还包括:从预设的运行条件中,确定所述运行状态信息所满足的目标运行条件;所述目标运行条件为第一运行条件时,确定所述图像处理器运行在所述第一工作模式;所述目标运行条件为第二运行条件时,确定所述图像处理器运行在所述第二工作模式;所述目标运行条件为第三运行条件时,确定所述图像处理器运行在所述第三工作模式。In some embodiments, the method further includes: from preset operating conditions, determining a target operating condition satisfied by the operating state information; when the target operating condition is the first operating condition, determining that the image processing The processor operates in the first operating mode; when the target operating condition is the second operating condition, determine that the image processor is operating in the second operating mode; when the target operating condition is the third operating condition, determine The image processor operates in the third working mode.
在一些实施例中,所述运行状态信息包括以下至少之一:所述图像处理器的温度、预设工作时长所述图像处理器的功耗,In some embodiments, the operating status information includes at least one of the following: temperature of the image processor, power consumption of the image processor for a preset working time,
所述运行条件包括以下至少之一:所述图像处理器的温度位于预设的温度范围内;所述图像处理器的功耗位于预设的功耗范围内。The operating conditions include at least one of the following: the temperature of the image processor is within a preset temperature range; the power consumption of the image processor is within a preset power consumption range.
本申请实施例还提供了一种图像处理器,所述图像处理器配置为调用并运行存储器中存储的计算机程序,执行本申请实施例中任一种由图像处理器实现的方法步骤。The embodiment of the present application also provides an image processor, the image processor is configured to call and run the computer program stored in the memory, and execute any method steps implemented by the image processor in the embodiments of the present application.
本申请实施例还提供了一种图像处理芯片,其中,包括:The embodiment of the present application also provides an image processing chip, which includes:
图像处理器以及与图像处理器耦合的应用处理器,所述图像处理器配置为处理接收到的图像数据,所述图像处理器具有第一工作模式和第二工作模式,an image processor and an application processor coupled to the image processor, the image processor is configured to process received image data, the image processor has a first mode of operation and a second mode of operation,
其中,当所述图像处理器运行在第一工作模式时,所述图像处理器对所述图像数据进行隔帧处理以得到第一图像数据;Wherein, when the image processor operates in the first working mode, the image processor performs frame-interval processing on the image data to obtain the first image data;
当所述图像处理器运行在第二工作模式时,所述图像处理器对所述图像数据进行降采样处理后进行隔帧处理以得到第一图像数据;When the image processor is running in the second working mode, the image processor performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
所述应用处理器配置为对所述第一图像数据进行处理。The application processor is configured to process the first image data.
在一些实施例中,所述图像处理器,配置为对所述图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器;In some embodiments, the image processor is configured to process the image data every other frame to obtain the first image data and 3A statistical data of the processed image; the first image data and the 3A statistical data Data is sent to the application processor;
所述应用处理器,配置为通过已处理图像的3A统计数据对所述第一图 像数据中的未处理图像进行图像补偿,得到第二图像数据。The application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image to obtain the second image data.
在一些实施例中,所述图像处理器,配置为对所述图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器;In some embodiments, the image processor is configured to perform down-sampling processing on the image data, and perform frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image; sending the first image data and the 3A statistical data to an application processor;
所述应用处理器配置为通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。The application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image, and perform up-sampling processing on the compensated image data to obtain the second image data.
在一些实施例中,所述应用处理器配置为通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;In some embodiments, the application processor is configured to perform image compensation processing on the unprocessed image of the current frame by using the 3A statistical data of the processed image of the previous frame;
或者,所述应用处理器配置为对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Alternatively, the application processor is configured to perform weighted processing on the 3A statistical data of the processed image of the previous frame and the processed image of the next frame to obtain weighted 3A statistical data; Perform image compensation processing.
本申请实施例还提供了一种电子设备,所述电子设备包括:The embodiment of the present application also provides an electronic device, and the electronic device includes:
图像获取装置,配置为采集图像数据;an image acquisition device configured to acquire image data;
图像处理器,配置为执行本申请实施例中任一种由图像处理器实现的方法步骤。An image processor configured to execute any method steps implemented by the image processor in the embodiments of the present application.
在一些实施例中,电子设备还包括应用处理器,应用处理器,配置为接收经由所述图像处理器处理过的第一图像数据并对所述第一图像处理数据进行处理。In some embodiments, the electronic device further includes an application processor configured to receive the first image data processed by the image processor and process the first image processing data.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质配置为存储计算机程序,所述计算机程序使得计算机执行本申请实施例中由图像处理器或应用处理器实现的方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium is configured to store a computer program, and the computer program enables the computer to execute the image processor or application processor in the embodiment of the present application. method steps.
为了能够更加详尽地了解本申请实施例的特点与技术内容,下面结合附图对本申请实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本申请实施例。In order to understand the characteristics and technical contents of the embodiments of the present application in more detail, the implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present application.
本申请实施例提供了一种图像处理方法,用于自适应调整图像处理器的工作模式,该方法应用于图像处理器。电子设备包括应用处理器(Application Processor,AP)和图像处理器(Image Signal Processor,ISP),ISP也可以称为前端图像处理器(Previous Image Signal Processor,Pre-ISP)。图像处理器对图像获取装置采集到的原始图像数据执行前端图像处理器操作,应用处理器用于执行后端图像处理操作。An embodiment of the present application provides an image processing method for adaptively adjusting a working mode of an image processor, and the method is applied to an image processor. Electronic equipment includes an application processor (Application Processor, AP) and an image processor (Image Signal Processor, ISP). The ISP can also be called a front-end image processor (Previous Image Signal Processor, Pre-ISP). The image processor performs front-end image processor operations on the original image data collected by the image acquisition device, and the application processor is used to perform back-end image processing operations.
本申请中描述的电子设备具备拍摄功能,电子设备可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、可穿戴设备、相机、智能汽车等。The electronic equipment described in this application has a shooting function, and the electronic equipment may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP) , wearable devices, cameras, smart cars, etc.
下面对本申请实施例提供了一种图像处理方法进行详细的举例说明,图1为本申请实施例中图像处理方法的第一流程示意图,如图1所示,该 方法具体可以包括:The following provides a detailed illustration of an image processing method in the embodiment of the present application. Fig. 1 is a schematic flow chart of the first image processing method in the embodiment of the present application. As shown in Fig. 1, the method may specifically include:
步骤101:获取图像处理器的运行状态信息;Step 101: Obtain the running status information of the image processor;
这里,运行状态信息用于表征图像处理器的功耗,根据运行状态信息确定与图像处理器的当前功耗匹配的最佳工作模式。示例性的,运行状态信息包括以下至少之一:所述图像处理器的温度、在预设工作时长内所述图像处理器的功耗。图像处理器包括温度检测装置和功耗检测装置,温度检测装置用于检测温度,功耗检测装置用于检测功耗。Here, the running state information is used to characterize the power consumption of the image processor, and the best working mode matching the current power consumption of the image processor is determined according to the running state information. Exemplarily, the running state information includes at least one of the following: the temperature of the image processor, and the power consumption of the image processor within a preset working period. The image processor includes a temperature detection device and a power consumption detection device, the temperature detection device is used for detecting temperature, and the power consumption detection device is used for detecting power consumption.
温度可与表征图像处理器的功耗相关联,温度越高则表示功耗越大。上述的预设工作时长可以为30秒、60秒、90秒、120秒、5分钟等。Temperature can be correlated to characterize the power consumption of an image processor, with higher temperatures indicating greater power consumption. The aforementioned preset working duration may be 30 seconds, 60 seconds, 90 seconds, 120 seconds, 5 minutes, etc.
步骤102:根据所述运行状态信息确定所述图像处理器运行在第一工作模式或第二工作模式,其中,当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理;当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理。Step 102: Determine whether the image processor is running in the first working mode or the second working mode according to the running state information, wherein when the image processor is running in the first working mode, the image data is isolated Frame processing: when the image processor operates in the second working mode, down-sampling processing and frame-interval processing are performed on the image data.
图像处理器的工作模式至少包括第一工作模式和第二工作模式,图像传感器在不同功耗下运行不同工作模式。The working modes of the image processor include at least a first working mode and a second working mode, and the image sensor operates in different working modes under different power consumption.
第一工作模式和第二工作模式可称为低功耗模式,图像处理器运行第一工作模式的功耗大于运行第二工作模式的功耗。低功耗模式可以理解为ISP对输入的图像数据简化处理,不同低功耗模式ISP采用不同的简化处理策略执行对图像数据的处理。本申请实施例中,在低功耗模式下ISP对高帧率和高分辨率的视频进行降采样、隔帧处理等以减少处理数据量。The first working mode and the second working mode may be referred to as low power consumption modes, and the power consumption of the image processor running the first working mode is greater than the power consumption of running the second working mode. The low power consumption mode can be understood as the simplified processing of the input image data by the ISP, and the ISP in different low power consumption modes adopts different simplified processing strategies to process the image data. In the embodiment of the present application, in the low power consumption mode, the ISP performs down-sampling and frame-interval processing on the high frame rate and high resolution video to reduce the amount of processed data.
示例性的,在一些实施例中,该方法还包括:预先设置多个运行条件,不同运行条件对应不同工作模式;相应的,运行条件包括以下至少之一:所述图像处理器的温度位于预设的温度范围内;所述图像处理器的功耗位于预设的功耗范围内。不同运行条件对应不同温度范围以及不同功耗范围。Exemplarily, in some embodiments, the method further includes: setting a plurality of operating conditions in advance, and different operating conditions correspond to different working modes; correspondingly, the operating conditions include at least one of the following: the temperature of the image processor is at a preset within the preset temperature range; the power consumption of the image processor is within the preset power consumption range. Different operating conditions correspond to different temperature ranges and different power consumption ranges.
从预设的运行条件中,确定所述运行状态信息所满足的目标运行条件;所述目标运行条件为第一运行条件时,确定所述图像处理器运行在所述第一工作模式;所述目标运行条件为第二运行条件时,确定所述图像处理器运行在所述第二工作模式。From preset operating conditions, determine a target operating condition satisfied by the operating state information; when the target operating condition is a first operating condition, determine that the image processor is operating in the first working mode; the When the target running condition is the second running condition, it is determined that the image processor runs in the second working mode.
示例性的,在一些实施例中,工作模式还包括高性能模式,所述图像处理器运行在任一种低功耗模式的功耗小于运行在所述高性能模式的功耗。高性能模式可以理解为不对图像处理器的处理过程进行任何调整,根据所述运行状态信息确定所述图像处理器运行在高性能模式,图像处理器能够对输入的图像数据进行正常处理。实际应用中,根据运行状态信息确定图像传感器当前功耗较低时,运行高性能模式实现高质量的图像处理效果。Exemplarily, in some embodiments, the working mode further includes a high-performance mode, and the power consumption of the image processor running in any low-power consumption mode is less than the power consumption of running in the high-performance mode. The high-performance mode can be understood as not making any adjustments to the processing process of the image processor, and it is determined according to the operation state information that the image processor is running in the high-performance mode, and the image processor can normally process the input image data. In practical applications, when it is determined according to the operating state information that the current power consumption of the image sensor is low, the high-performance mode is operated to achieve high-quality image processing effects.
采用上述技术方案,实现了图像处理器工作模式的自适应调整,从而优化图像处理器的功耗,解决单一的工作模式下长时间处理高帧率图像存在的高功耗问题,达到平衡图像处理器功耗和图像处理效果的目的。By adopting the above technical solution, the self-adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balanced image processing for the purpose of device power consumption and image processing effects.
基于上述实施例,下面对图像处理方法进行进一步举例说明,图2为本申请实施例中图像处理方法的第二流程示意图,如图2所示,该处理方法具体包括:Based on the above-mentioned embodiments, the image processing method is further illustrated below. FIG. 2 is a second schematic flow diagram of the image processing method in the embodiment of the present application. As shown in FIG. 2 , the processing method specifically includes:
步骤201:获取所述图像处理器的运行状态信息;Step 201: Obtain the running status information of the image processor;
步骤202:从预设的运行条件中,确定所述运行状态信息所满足的目标运行条件;Step 202: From the preset operating conditions, determine the target operating conditions that the operating state information satisfies;
示例性的,在一些实施例中,该方法还包括:预先设置多个运行条件,不同运行条件对应不同工作模式;Exemplarily, in some embodiments, the method further includes: setting a plurality of operating conditions in advance, and different operating conditions correspond to different working modes;
相应的,运行条件包括以下至少之一:所述图像处理器的温度位于预设的温度范围内;所述图像处理器的功耗位于预设的功耗范围内。不同运行条件对应不同温度范围以及不同功耗范围。温度范围中的温度阈值可以在产品研发阶段根据实验数据预先设置,功耗范围中的功耗阈值可以在产品研发阶段根据实验数据预先设置。温度范围和功耗范围包括上限值和/或下限值。Correspondingly, the running condition includes at least one of the following: the temperature of the image processor is within a preset temperature range; the power consumption of the image processor is within a preset power consumption range. Different operating conditions correspond to different temperature ranges and different power consumption ranges. The temperature threshold in the temperature range can be preset in the product development stage based on experimental data, and the power consumption threshold in the power consumption range can be preset in the product development stage based on experimental data. Temperature ranges and power dissipation ranges include upper and/or lower limits.
示例性的,运行状态信息包括以下至少之一:所述图像处理器的温度、在预设工作时长内所述图像处理器的功耗。相应的,运行状态信息包括ISP的温度和功耗,第一工作模式对应的第一运行条件包括:温度位于第一温度范围,或者功耗位于第一功耗范围。具体地,若温度位于第一温度范围之内,或者功耗位于第一功耗范围内,确定运行状态信息满足第一运行条件;若温度位于第一温度范围之外,且功耗位于第一功耗范围之外,确定运行状态信息不满足第一运行条件。也就是说,当温度或功耗任意一个位于预设范围,则确定第一运行条件满足,否则,确定第一运行条件不满足。Exemplarily, the running state information includes at least one of the following: the temperature of the image processor, and the power consumption of the image processor within a preset working period. Correspondingly, the running state information includes the temperature and power consumption of the ISP, and the first running condition corresponding to the first working mode includes: the temperature is in the first temperature range, or the power consumption is in the first power consumption range. Specifically, if the temperature is within the first temperature range, or the power consumption is within the first power consumption range, it is determined that the running state information satisfies the first running condition; if the temperature is outside the first temperature range, and the power consumption is within the first If it is outside the power consumption range, it is determined that the running state information does not meet the first running condition. That is to say, when either the temperature or the power consumption is within the preset range, it is determined that the first operating condition is satisfied; otherwise, it is determined that the first operating condition is not satisfied.
在另一些实施例中,第一运行条件包括:温度位于第一温度范围,且功耗位于第一功耗范围。也就是说,ISP的温度和功耗同时满足第一运行条件时,确定运行状态信息满足第一运行条件;否则,确定运行状态信息不满足第一运行条件。In some other embodiments, the first operating condition includes: the temperature is within a first temperature range, and the power consumption is within a first power consumption range. That is to say, when the temperature and power consumption of the ISP meet the first operating condition at the same time, it is determined that the operating state information satisfies the first operating condition; otherwise, it is determined that the operating state information does not meet the first operating condition.
在另一些实施例中,运行状态信息只包括ISP的温度,第一运行条件包括:温度位于第一温度范围;或者运行状态信息只包括ISP的功耗,第一运行条件包括:功耗位于第一功耗范围。In some other embodiments, the running state information only includes the temperature of the ISP, and the first running condition includes: the temperature is in the first temperature range; or the running state information only includes the power consumption of the ISP, and the first running condition includes: the power consumption is in the first temperature range; A power consumption range.
步骤203:所述目标运行条件为第一运行条件时,确定所述图像处理器运行在所述第一工作模式;Step 203: When the target operating condition is the first operating condition, determine that the image processor is operating in the first working mode;
其中,当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理。Wherein, when the image processor operates in the first working mode, the image data is processed every other frame.
步骤204:所述目标运行条件为第二运行条件时,确定所述图像处理器运行在所述第二工作模式;Step 204: When the target operating condition is the second operating condition, determine that the image processor is operating in the second working mode;
其中,当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理。Wherein, when the image processor operates in the second working mode, it performs down-sampling processing and frame-interval processing on the image data.
参考第一运行条件,第二运行条件对应第二温度范围和第二功耗范围。Referring to the first operating condition, the second operating condition corresponds to a second temperature range and a second power consumption range.
步骤205:所述目标运行条件为第三运行条件时,确定所述图像处理器运行在所述第三工作模式。Step 205: When the target operating condition is a third operating condition, determine that the image processor is operating in the third working mode.
其中,当所述图像处理器运行在所述第三工作模式时,将所述图像处理器中的部分模块设置为旁路模式。Wherein, when the image processor is running in the third working mode, some modules in the image processor are set to bypass mode.
参考第一运行条件,第三运行条件对应第三温度范围和第三功耗范围。Referring to the first operating condition, the third operating condition corresponds to a third temperature range and a third power consumption range.
可以理解的是,第一运行条件包括:温度位于第一温度范围,和/或功耗位于第一功耗范围。第二运行条件包括:温度位于第二温度范围,和/或功耗位于第二功耗范围。第三运行条件包括:温度位于第三温度范围,和/或功耗位于第三功耗范围。实际应用中,可以根据测试结果对温度范围和功耗范围进行设定,第一温度范围、第二温度范围和第三温度范围可以不相同或部分相同,第一功耗范围、第二功耗范围和第三功耗范围可以不相同或部分相同。It can be understood that the first operating condition includes: the temperature is in the first temperature range, and/or the power consumption is in the first power consumption range. The second operating condition includes: the temperature is within the second temperature range, and/or the power consumption is within the second power consumption range. The third operating condition includes: the temperature is in the third temperature range, and/or the power consumption is in the third power consumption range. In practical applications, the temperature range and power consumption range can be set according to the test results. The first temperature range, the second temperature range, and the third temperature range can be different or partially the same. The first power consumption range, the second power consumption range The range and the third power consumption range may be different or partially the same.
示例性的,在一些实施例中,工作模式还包括高性能模式,高性能模式设置有对应的高性能运行条件,所述图像处理器运行在任一种低功耗模式的功耗小于运行在所述高性能模式的功耗。高性能模式可以理解为不对图像处理器的处理过程进行任何调整,根据所述运行状态信息确定所述图像处理器运行在高性能模式,图像处理器能够对输入的图像数据进行正常处理。实际应用中,根据运行状态信息确定图像传感器当前功耗较低时,运行高性能模式实现高质量的图像处理效果。Exemplarily, in some embodiments, the working mode also includes a high-performance mode, and the high-performance mode is set with corresponding high-performance operating conditions, and the power consumption of the image processor running in any low-power mode is less than that of running in all low-power modes. power consumption in high-performance mode. The high-performance mode can be understood as not making any adjustments to the processing process of the image processor, and it is determined according to the operation state information that the image processor is running in the high-performance mode, and the image processor can normally process the input image data. In practical applications, when it is determined according to the operating state information that the current power consumption of the image sensor is low, the high-performance mode is operated to achieve high-quality image processing effects.
示例性的,图3为本申请实施例中图像处理器工作模式的分类示意图,如图3所示,通过设置3个阈值,即阈值1、阈值2和阈值3,将图像处理器的分为四种工作模式,即高性能模式、第一工作模式、第二工作模式和第三工作模式,图像处理器运行这四种工作模式时功耗依次从高到底。第一工作模式、第二工作模式和第三工作模式可称为低功耗模式。Exemplarily, FIG. 3 is a schematic diagram of the classification of image processor working modes in the embodiment of the present application. As shown in FIG. There are four working modes, that is, a high-performance mode, a first working mode, a second working mode and a third working mode. When the image processor runs these four working modes, the power consumption is in order from high to low. The first operation mode, the second operation mode and the third operation mode may be referred to as low power consumption modes.
控制装置根据图像处理器的运行状态信息确定图像处理器的最佳工作模式,例如,运行状态信息包括温度和功耗,每个阈值中包括温度阈值和功耗阈值,当温度和功耗小于阈值1时,控制图像处理器进入高性能模式;当温度或功耗大于等于阈值1,且均小于阈值2时,控制图像处理器进入第一工作模式;当温度或功耗大于等于阈值2,且均小于阈值3时,控制图像处理器进入第二工作模式;当温度或功耗大于等于阈值3时,控制图像处理器进入第三工作模式。The control device determines the optimal working mode of the image processor according to the operating state information of the image processor. For example, the operating state information includes temperature and power consumption, and each threshold includes a temperature threshold and a power consumption threshold. When the temperature and power consumption are less than the threshold When 1, the image processor is controlled to enter the high-performance mode; when the temperature or power consumption is greater than or equal to threshold 1, and both are less than threshold 2, the image processor is controlled to enter the first working mode; when the temperature or power consumption is greater than or equal to threshold 2, and When both are less than the threshold 3, the image processor is controlled to enter the second working mode; when the temperature or power consumption is greater than or equal to the threshold 3, the image processor is controlled to enter the third working mode.
这里,通过阈值1、阈值2和阈值3来设置不同工作模式对应的运行条件,运行状态信息与运行条件进行比较,判断运行状态信息所满足的目标运行条件,从而确定目标运行条件对应的目标工作模式。Here, the operating conditions corresponding to different working modes are set through threshold 1, threshold 2 and threshold 3, the operating status information is compared with the operating conditions, and the target operating conditions satisfied by the operating status information are judged, so as to determine the target operating conditions corresponding to the target operating conditions. model.
控制装置可以属于图像处理器,即有图像处理器内部的控制装置控制工作模式的切换,控制装置可以属于与图像处理器耦合的应用处理器或者其他处理器。The control device may belong to the image processor, that is, the control device inside the image processor controls the switching of the working mode, and the control device may belong to the application processor or other processors coupled with the image processor.
需要说明的是,当图像处理器还包括第四工作模式时,第四工作模式 对应第四运行条件,第四运行条件对应第四温度范围和第四功耗范围。这里,第四工作模式是指为了表征图像处理器还可以包括其他工作模式,并不是为了限定工作模式的数量。It should be noted that when the image processor further includes a fourth working mode, the fourth working mode corresponds to a fourth operating condition, and the fourth operating condition corresponds to a fourth temperature range and a fourth power consumption range. Here, the fourth working mode means that other working modes may be included in order to represent the image processor, and it is not intended to limit the number of working modes.
需要说明的是,本申请采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,不必用于描述特定的顺序或先后次序。It should be noted that the present application uses the terms first, second, third, etc. to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another and are not necessarily used to describe a specific order or sequence.
采用上述技术方案,实现了图像处理器工作模式的自适应调整,从而优化图像处理器的功耗,解决单一的工作模式下长时间处理高帧率图像存在的高功耗问题,达到平衡图像处理器功耗和图像处理效果的目的。By adopting the above technical solution, the self-adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balanced image processing for the purpose of device power consumption and image processing effects.
基于上述实施例,下面对ISP工作在第一工作模式时的图像处理方法进行举例说明,图4为本申请实施例中图像处理方法的第三流程示意图,如图4所示,ISP运行第一工作模式时,图像处理方法具体包括:Based on the above-mentioned embodiments, the image processing method when the ISP works in the first working mode is illustrated below. FIG. 4 is a schematic flow chart of the third image processing method in the embodiment of the present application. As shown in FIG. In one working mode, the image processing method specifically includes:
步骤401:获取图像处理器的运行状态信息;Step 401: Obtain the running status information of the image processor;
步骤402:根据所述运行状态信息确定所述图像处理器运行在第一工作模式;Step 402: Determine that the image processor is running in a first working mode according to the running status information;
以图3为例,当检测到ISP的运行状态信息处于阈值1和阈值2之间时,确定ISP的最佳工作模式为第一工作模式。Taking FIG. 3 as an example, when it is detected that the running state information of the ISP is between the threshold 1 and the threshold 2, it is determined that the best working mode of the ISP is the first working mode.
步骤403:对图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;Step 403: Processing the image data at intervals to obtain the first image data and 3A statistical data of the processed image;
这里,图像数据为图像获取装置采集到的原始图像数据。Here, the image data is the original image data collected by the image acquisition device.
示例性的,隔帧处理时,间隔帧数可以为一帧也可以为两帧。可以根据算法需求将未处理图像的3A统计数据换成前后已处理图像的3A统计数据,而不需要逐帧统计或计算,以减少ISP处理的压力,但为了提高视频图像质量,AP侧对未处理图像进行补偿。例如在镜头阴影校正(Lens Shading Correction,LSC)处理时,对于间隔帧只做实际的LSC处理,而不会进行基于该图像的检查表计算,而对间隔帧进行的LSC处理所依据的检查表信息则可以使用前一相邻帧的检查表信息,以此来保证图像的LSC处理效果。Exemplarily, when processing at intervals, the number of interval frames may be one frame or two frames. According to the algorithm requirements, the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without frame-by-frame statistics or calculation, so as to reduce the pressure of ISP processing, but in order to improve the video image quality, the AP side does not Process the image to compensate. For example, during lens shading correction (Lens Shading Correction, LSC) processing, only the actual LSC processing is done for the interval frame, and the check table calculation based on the image is not performed, and the LSC processing for the interval frame is based on the check table The information can use the checklist information of the previous adjacent frame, so as to ensure the LSC processing effect of the image.
步骤404:将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,得到第二图像数据。Step 404: Send the first image data and the 3A statistical data to an application processor, so that the application processor can use the 3A statistical data of the processed image to process the unprocessed image in the first image data image compensation to obtain second image data.
需要说明的是,ISP进行隔帧处理后,如果不进行图像补偿,会影响视频质量。因此,AP侧确定ISP运行在第一工作模式时,AP侧会进行对应的补偿处理。It should be noted that after the ISP performs frame-interval processing, if image compensation is not performed, the video quality will be affected. Therefore, when the AP side determines that the ISP is running in the first working mode, the AP side will perform corresponding compensation processing.
示例性的,在一些实施例中,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;或者,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统 计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Exemplarily, in some embodiments, the first image data and the 3A statistical data are sent to the application processor, so that the application processor can analyze the current frame by using the 3A statistical data of the processed image of the previous frame. performing image compensation processing on the unprocessed image; or, sending the first image data and the 3A statistical data to the application processor for the application processor to process the image of the previous frame and the processed image of the next frame The weighted 3A statistical data is processed to obtain the weighted 3A statistical data; image compensation processing is performed on the unprocessed image of the current frame through the weighted 3A statistical data.
也就是说,AP侧对当前帧未处理图像进行补偿时,可以利用其前一帧已处理图像的3A统计数据进行补偿,或者为了提高补偿准确性也可以先将前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,再利用加权3A统计数据进行补偿。That is to say, when the AP side compensates the unprocessed image of the current frame, it can use the 3A statistical data of the processed image of the previous frame to compensate, or to improve the compensation accuracy, it can firstly combine the processed image of the previous frame with the post-processing image. The 3A statistics of a processed image are weighted and then compensated using the weighted 3A statistics.
示例性的,在进行加权处理时,前一帧已处理图像的3A统计数据的权重高于后一帧的。Exemplarily, when performing weighting processing, the weight of the 3A statistical data of the processed image in the previous frame is higher than that in the subsequent frame.
示例性的,图5为本申请实施例中隔帧处理的流程示意图,如图5所示,Exemplarily, FIG. 5 is a schematic flowchart of frame-interval processing in the embodiment of the present application, as shown in FIG. 5 ,
图像数据为:D1、D2、D3、D4、D5、D6、D7……The image data are: D1, D2, D3, D4, D5, D6, D7...
图像数据进入ISP后,所有数据先经过前端模块(Front End,FE)进行处理,再经过后端模块(Back End,BE)对进行隔帧处理,隔帧处理的数据为图5中灰色块部分(D1、D3、D5、D7),而未经BE模块处理的数据(D2、D4、D6),直接送到AP侧;After the image data enters the ISP, all the data is first processed by the front end module (Front End, FE), and then processed by the back end module (Back End, BE) every frame. The data processed every frame is the gray block in Figure 5 (D1, D3, D5, D7), and the data (D2, D4, D6) that have not been processed by the BE module are directly sent to the AP side;
ISP隔帧处理的数据(D1、D3、D5、D7)的3A统计数据通过移动行业处理器接口(Mobile Industry Processor Interface MIPI)传递给AP侧,在AP侧通过数据共享,未处理图像共享相邻帧的3A统计数据,从而使ISP进行逐帧处理,减少ISP内部存储器的读写操作,降低ISP功耗目的。The 3A statistical data of the data (D1, D3, D5, D7) processed by the ISP every other frame is transmitted to the AP side through the Mobile Industry Processor Interface (MIPI), and the data is shared on the AP side, and the unprocessed images are shared adjacent to each other. The 3A statistical data of the frame, so that the ISP can process frame by frame, reduce the read and write operations of the internal memory of the ISP, and reduce the power consumption of the ISP.
示例性的,拍摄高帧率和高分辨率的视频(例如4K视频),视频预览时,对图像质量要求不高,AP侧可以利用前一帧已处理图像的3A统计数据进行图像补偿,减少计算量节约ISP能耗。视频保存时,对图像质量要求较高,为了在功耗和图像处理效果之间取得平衡,AP侧可以利用加权3A统计数据进行图像补偿。For example, when shooting a video with a high frame rate and high resolution (for example, 4K video), the video preview does not require high image quality, and the AP side can use the 3A statistical data of the processed image of the previous frame to perform image compensation, reducing The amount of calculation saves ISP energy consumption. When saving videos, high image quality is required. To strike a balance between power consumption and image processing effects, the AP side can use weighted 3A statistical data for image compensation.
基于上述实施例,下面对ISP工作在第二工作模式时的图像处理方法进行举例说明,图6为本申请实施例中图像处理方法的第四流程示意图,如图6所示,ISP运行第二工作模式时,图像处理方法具体包括:Based on the above-mentioned embodiments, the image processing method when the ISP works in the second working mode is illustrated below. FIG. 6 is a schematic diagram of the fourth process flow of the image processing method in the embodiment of the present application. As shown in FIG. In the second working mode, the image processing method specifically includes:
步骤601:获取图像处理器的运行状态信息;Step 601: Obtain the running status information of the image processor;
步骤602:根据所述运行状态信息确定所述图像处理器运行在第二工作模式;Step 602: Determine that the image processor is running in a second working mode according to the running state information;
以图3为例,当检测到ISP的运行状态信息处于阈值2和阈值3之间时,确定ISP的最佳工作模式为第二工作模式。Taking FIG. 3 as an example, when it is detected that the running state information of the ISP is between the threshold 2 and the threshold 3, it is determined that the best working mode of the ISP is the second working mode.
步骤603:对图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;Step 603: Perform down-sampling processing on the image data, and perform frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image;
这里,图像数据为图像获取装置采集到的原始图像数据。图像获取装置包括摄像头和图像传感器。例如,电子设备为手机时,摄像头可以为后置主摄像头、后置广角摄像头、后置长焦摄像头或者前置摄像头。Here, the image data is the original image data collected by the image acquisition device. The image acquisition device includes a camera and an image sensor. For example, when the electronic device is a mobile phone, the camera may be a rear main camera, a rear wide-angle camera, a rear telephoto camera or a front camera.
示例性的,降采样处理时,采样系数k可以为1也可以为2。Exemplarily, during the downsampling process, the sampling coefficient k may be 1 or 2.
示例性的,隔帧处理时,间隔帧数可以为一帧也可以为两帧。可以根据算法需求将未处理图像的3A统计数据换成前后已处理图像的3A统计数据,而不需要逐帧统计或计算,以减少ISP处理的压力,但为了提高视频图像质量,AP侧对未处理图像进行补偿。例如在镜头阴影校正(Lens Shading Correction,LSC)处理时,对于间隔帧只做实际的LSC处理,而不会进行基于该图像的检查表计算,而对间隔帧进行的LSC处理所依据的检查表信息则可以使用前一相邻帧的检查表信息,以此来保证图像的LSC处理效果。Exemplarily, when processing at intervals, the number of interval frames may be one frame or two frames. According to the algorithm requirements, the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without frame-by-frame statistics or calculation, so as to reduce the pressure of ISP processing, but in order to improve the video image quality, the AP side does not Process the image to compensate. For example, during lens shading correction (Lens Shading Correction, LSC) processing, only the actual LSC processing is done for the interval frame, and the check table calculation based on the image is not performed, and the LSC processing for the interval frame is based on the check table The information can use the checklist information of the previous adjacent frame, so as to ensure the LSC processing effect of the image.
步骤603:将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。Step 603: Send the first image data and the 3A statistical data to an application processor, so that the application processor can use the 3A statistical data of the processed image to process the unprocessed image in the first image data Image compensation, and performing up-sampling processing on the compensated image data to obtain second image data.
需要说明的是,ISP进行降采样和隔帧处理后,如果不进行升采样和图像补偿,会影响视频质量。因此,AP侧确定ISP运行在第二工作模式时,AP侧会进行对应的补偿处理和升采样。补偿处理为了提高图像质量,升采样处理为了恢复到原始图像尺寸。It should be noted that after the ISP performs down-sampling and frame-interval processing, if no up-sampling and image compensation are performed, the video quality will be affected. Therefore, when the AP side determines that the ISP is running in the second working mode, the AP side will perform corresponding compensation processing and upsampling. Compensation processing is used to improve image quality, and upsampling processing is used to restore the original image size.
示例性的,升采样处理可以基于双线性插值法实现,也可以为超分辨率技术(Super-Resolution,SR)实现。Exemplarily, the upsampling processing may be implemented based on a bilinear interpolation method, or may be implemented by a super-resolution technology (Super-Resolution, SR).
图7为本申请实施例中降采样和升采样处理的流程示意图,如图7所示,ISP侧对接收到的高x宽的图像进行降采样处理,且降采样系数为1,得到图像尺寸为高/2x宽/2,即在原图像中每行每列每隔1个点取一个点组成一幅图像,再对将采样后的图像进行隔帧处理,进一步减小ISP侧的计算量节约ISP能耗。同样为了保证图像显示效果,在AP侧先对图像进行上采样,以恢复图像尺寸到高x宽,再进行图像补偿处理。Figure 7 is a schematic flow chart of downsampling and upsampling processing in the embodiment of the present application. As shown in Figure 7, the ISP side performs downsampling processing on the received image of height x width, and the downsampling coefficient is 1, and the image size is obtained It is height/2xwidth/2, that is, in the original image, one point is taken every other point in each row and column to form an image, and then the sampled image is processed every other frame to further reduce the calculation amount on the ISP side. ISP energy consumption. Also in order to ensure the image display effect, the image is first up-sampled on the AP side to restore the image size to the height x width, and then the image compensation process is performed.
示例性的,在一些实施例中,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;或者,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Exemplarily, in some embodiments, the first image data and the 3A statistical data are sent to the application processor, so that the application processor can analyze the current frame by using the 3A statistical data of the processed image of the previous frame. performing image compensation processing on the unprocessed image; or, sending the first image data and the 3A statistical data to the application processor for the application processor to process the image of the previous frame and the processed image of the next frame The weighted 3A statistical data is processed to obtain the weighted 3A statistical data; image compensation processing is performed on the unprocessed image of the current frame through the weighted 3A statistical data.
也就是说,AP侧对当前帧未处理图像进行补偿时,可以利用其前一帧已处理图像的3A统计数据进行补偿,或者为了提高补偿准确性也可以先将前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,再利用加权3A统计数据进行补偿。隔帧处理和补偿处理可以参考图5。That is to say, when the AP side compensates the unprocessed image of the current frame, it can use the 3A statistical data of the processed image of the previous frame to compensate, or to improve the compensation accuracy, it can firstly combine the processed image of the previous frame with the post-processing image. The 3A statistics of a processed image are weighted and then compensated using the weighted 3A statistics. For frame-interval processing and compensation processing, refer to FIG. 5 .
示例性的,在进行加权处理时,前一帧已处理图像的3A统计数据的权重高于后一帧的。Exemplarily, when performing weighting processing, the weight of the 3A statistical data of the processed image in the previous frame is higher than that in the subsequent frame.
基于上述实施例,下面对ISP工作在第三工作模式时的图像处理方法进行举例说明,图8为本申请实施例中图像处理方法的第五流程示意图。Based on the above-mentioned embodiments, the image processing method when the ISP works in the third working mode is described below with an example, and FIG. 8 is a schematic flowchart of a fifth image processing method in the embodiment of the present application.
示例性的,如图8所示,所述图像处理器包括前端模块(FE)和后端模块(BE),所述前端模块用于对图像传感器采集的图像数据进行前端处理,将处理后的数据存储到存储器;后端模块用于从存储器中读取图像数据进行后端处理。图像处理器运行在第三工作模式,保留前端模块(FE)功能,将后端模块(BE)设置为旁路模式(也称Bypass模式)。图像数据经图8中处理路径82经过前端模块(FE)处理后,发送到AP侧。Exemplarily, as shown in FIG. 8, the image processor includes a front-end module (FE) and a back-end module (BE), and the front-end module is used to perform front-end processing on the image data collected by the image sensor, and process the processed The data is stored in the memory; the back-end module is used to read the image data from the memory for back-end processing. The image processor runs in the third working mode, retains the function of the front-end module (FE), and sets the back-end module (BE) to a bypass mode (also called Bypass mode). The image data is sent to the AP side after being processed by the front-end module (FE) through the processing path 82 in FIG. 8 .
图像处理器运行高性能模式,图像数据经图8中处理路径83先经过前端模块(FE)处理,将处理后的数据先存储到存储器,后端模块(BE)从存储器中读取图像数据进行后端处理,再将处理后的图像数据发送到AP侧。The image processor operates in a high-performance mode. The image data is processed by the front-end module (FE) through the processing path 83 in FIG. Back-end processing, and then send the processed image data to the AP side.
在一些实施例中,工作模式还包括第四工作模式,当所述图像处理器运行在所述第三工作模式时,将所述图像处理器设置为旁路模式。In some embodiments, the working mode further includes a fourth working mode, and when the image processor is running in the third working mode, the image processor is set to a bypass mode.
第四工作模式也为一种低功耗模式,且ISP运行第四工作模式的功耗小于运行在第三工作模式的功耗。运行第四工作模式,将图像处理器设置为旁路模式,以图8为例,将图像处理器设置为旁路模式包括将前端模块(FE)和后端模块(BE)都设置为旁路模式,图像数据经图8中处理路径81直接发送到AP侧。The fourth working mode is also a low power consumption mode, and the power consumption of the ISP running in the fourth working mode is less than that of running in the third working mode. Run the fourth working mode, set the image processor to bypass mode, taking Figure 8 as an example, setting the image processor to bypass mode includes setting both the front-end module (FE) and the back-end module (BE) to bypass mode, the image data is directly sent to the AP side through the processing path 81 in FIG. 8 .
第三工作模式与第四工作模式相比,将后端模块(BE)设置为旁路模式由于保留了ISP部分处理能力,最终得到的图像处理效果更好。Compared with the fourth working mode, in the third working mode, setting the back-end module (BE) as the bypass mode retains part of the processing capability of the ISP, and finally obtains a better image processing effect.
示例性的,ISP运行第一工作模式和第二工作模式时,图像数据可以为FF模块处理后的数据,在后端模块(BE)中对图像数据进行降采样处理和隔帧处理。ISP运行在第三工作模式,ISP将图像数据直接发送给AP。Exemplarily, when the ISP operates in the first working mode and the second working mode, the image data may be data processed by the FF module, and the back-end module (BE) performs down-sampling processing and frame-interval processing on the image data. The ISP runs in the third working mode, and the ISP directly sends the image data to the AP.
需要说明的是,ISP中还可以包括其他模块,图8中未示出。It should be noted that the ISP may also include other modules, which are not shown in FIG. 8 .
采用上述技术方案,通过共享中间处理结果的方式来减少ISP的计算量,从而减少功耗,可以根据算法需求将未处理图像的3A统计数据换成前后已处理图像的3A统计数据,而不需要逐帧统计或计算,以减少ISP处理的压力,但为了提高视频图像质量,AP侧对未处理图像进行补偿。Using the above technical solution, the ISP calculation load can be reduced by sharing the intermediate processing results, thereby reducing power consumption. According to the algorithm requirements, the 3A statistical data of the unprocessed image can be replaced with the 3A statistical data of the processed image before and after, without the need Statistics or calculations are performed frame by frame to reduce the pressure of ISP processing, but in order to improve the quality of video images, the AP side compensates for unprocessed images.
为实现本申请实施例的方法,基于同一发明构思本申请实施例还提供了一种图像处理器,所述图像处理器配置为调用并运行存储器中存储的计算机程序,执行本申请实施例中的图像处理方法的步骤。In order to implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides an image processor, the image processor is configured to call and run the computer program stored in the memory, and execute the method in the embodiment of the present application The steps of the image processing method.
为实现本申请实施例的方法,基于同一发明构思本申请实施例还提供了一种图像处理芯片,如图9所示,该图像处理芯片90包括:In order to implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides an image processing chip. As shown in FIG. 9, the image processing chip 90 includes:
图像处理器901a以及与图像处理器901a耦合的应用处理器901b,所述图像处理器901a配置为处理接收到的图像数据,所述图像处理器901a具有第一工作模式和第二工作模式,an image processor 901a and an application processor 901b coupled to the image processor 901a, the image processor 901a is configured to process received image data, the image processor 901a has a first working mode and a second working mode,
其中,当所述图像处理器901a运行在第一工作模式时,所述图像处理器901a对图像数据进行隔帧处理以得到第一图像数据;Wherein, when the image processor 901a operates in the first working mode, the image processor 901a performs frame-interval processing on the image data to obtain the first image data;
当所述图像处理器901a运行在第二工作模式时,所述图像处理器901a 对图像数据进行降采样处理后进行隔帧处理以得到第一图像数据;When the image processor 901a is running in the second working mode, the image processor 901a performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
所述应用处理器901b配置为对所述第一图像数据进行处理。The application processor 901b is configured to process the first image data.
在一些实施例中,图像处理器901a运行第一工作模式时,对图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器901b,以供所述应用处理器901b通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,得到第二图像数据。In some embodiments, when the image processor 901a operates in the first working mode, the image data is processed every other frame to obtain the first image data and the 3A statistical data of the processed image; the first image data and the 3A statistical data are obtained The statistical data is sent to the application processor 901b, so that the application processor 901b performs image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image to obtain the second image data.
在一些实施例中,图像处理器901a运行第二工作模式时,对图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器901b,以供所述应用处理器901b通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。In some embodiments, when the image processor 901a operates in the second working mode, the image data is down-sampled, and the down-sampled image data is processed every other frame to obtain the first image data and the 3A statistical data of the processed image ; Send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can perform an unprocessed image in the first image data through the 3A statistical data of the processed image Image compensation, and performing up-sampling processing on the compensated image data to obtain second image data.
在一些实施例中,所述图像处理器901a配置为将所述第一图像数据和所述3A统计数据发送给应用处理器901b,以供所述应用处理器901b通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;In some embodiments, the image processor 901a is configured to send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can use the previous frame processed image 3A statistical data performs image compensation processing on the unprocessed image of the current frame;
或者,所述图像处理器901a配置为将所述第一图像数据和所述3A统计数据发送给应用处理器901b,以供所述应用处理器901b对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Alternatively, the image processor 901a is configured to send the first image data and the 3A statistical data to the application processor 901b, so that the application processor 901b can analyze the processed image of the previous frame and the processed image of the next frame. Perform weighting processing on the 3A statistical data of the processed image to obtain weighted 3A statistical data; perform image compensation processing on the unprocessed image of the current frame through the weighted 3A statistical data.
在一些实施例中,图像处理器901a运行在第三工作模式,将图像处理器中的部分模块设置为旁路模式。In some embodiments, the image processor 901a operates in the third working mode, and some modules in the image processor are set to bypass mode.
在一些实施例中,图像处理器901a根据所述运行状态信息确定工作模式,具体的,从预设的运行条件中,确定所述运行状态信息所满足的目标运行条件;所述目标运行条件为第一运行条件时,确定所述图像处理器运行在所述第一工作模式;所述目标运行条件为第二运行条件时,确定所述图像处理器运行在所述第二工作模式;所述目标运行条件为第三运行条件时,确定所述图像处理器运行在所述第三工作模式。In some embodiments, the image processor 901a determines the working mode according to the running state information, specifically, determines the target running condition satisfied by the running state information from the preset running conditions; the target running condition is When the first running condition is used, it is determined that the image processor is running in the first working mode; when the target running condition is a second running condition, it is determined that the image processor is running in the second working mode; the When the target operating condition is the third operating condition, it is determined that the image processor is operating in the third working mode.
在一些实施例中,所述运行状态信息包括以下至少之一:所述图像处理器的温度、预设工作时长所述图像处理器的功耗,In some embodiments, the operating status information includes at least one of the following: temperature of the image processor, power consumption of the image processor for a preset working time,
所述运行条件包括以下至少之一:The operating conditions include at least one of the following:
所述图像处理器的温度位于预设的温度范围内;The temperature of the image processor is within a preset temperature range;
所述图像处理器的功耗位于预设的功耗范围内。The power consumption of the image processor is within a preset power consumption range.
可选地,如图9所示,图像处理芯片90还可以包括存储器902。其中,图像处理器901a和应用处理器901b可以从存储器902中调用并运行计算机程序,以实现本申请实施例中的方法。Optionally, as shown in FIG. 9 , the image processing chip 90 may further include a memory 902 . Wherein, the image processor 901a and the application processor 901b can call and run a computer program from the memory 902, so as to implement the method in the embodiment of the present application.
其中,存储器902可以是独立于图像处理器901a和应用处理器901b的一个单独的器件,也可以集成在图像处理器901a和应用处理器901b中。Wherein, the memory 902 may be a separate device independent of the image processor 901a and the application processor 901b, or may be integrated in the image processor 901a and the application processor 901b.
可选地,该图像处理芯片90还可以包括输入接口903。通过输入接口903与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。Optionally, the image processing chip 90 may also include an input interface 903 . Communicate with other devices or chips through the input interface 903 , specifically, information or data sent by other devices or chips can be obtained.
可选地,该图像处理芯片90还可以包括输出接口904。通过输出接口904与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。Optionally, the image processing chip 90 may also include an output interface 904 . Communicate with other devices or chips through the output interface 904 , specifically, output information or data to other devices or chips.
可选地,该图像处理芯片90可应用于本申请实施例中的电子设备。Optionally, the image processing chip 90 may be applied to the electronic device in the embodiment of the present application.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.
在实际应用中,上述处理器可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理装置(DSPD,Digital Signal Processing Device)、可编程逻辑装置(PLD,Programmable Logic Device)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本申请实施例不作具体限定。In practical application, the above-mentioned processor can be application specific integrated circuit (ASIC, Application Specific Integrated Circuit), digital signal processing device (DSPD, Digital Signal Processing Device), programmable logic device (PLD, Programmable Logic Device), on-site At least one of a programmable gate array (Field-Programmable Gate Array, FPGA), a controller, a microcontroller, and a microprocessor. It can be understood that, for different devices, the electronic device used to implement the above processor function may also be other, which is not specifically limited in this embodiment of the present application.
上述存储器可以是易失性存储器(volatile memory),例如随机存取存储器(RAM,Random-Access Memory);或者非易失性存储器(non-volatile memory),例如只读存储器(ROM,Read-Only Memory),快闪存储器(flash memory),硬盘(HDD,Hard Disk Drive)或固态硬盘(SSD,Solid-State Drive);或者上述种类的存储器的组合,并向处理器提供指令和数据。Above-mentioned memory can be volatile memory (volatile memory), such as random access memory (RAM, Random-Access Memory); Or non-volatile memory (non-volatile memory), such as read-only memory (ROM, Read-Only Memory), flash memory (flash memory), hard disk (HDD, Hard Disk Drive) or solid-state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and provide instructions and data to the processor.
本申请实施例还提供了电子设备,本申请中描述的电子设备具备拍摄功能,电子设备可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、可穿戴设备、相机、智能汽车等。The embodiment of the present application also provides an electronic device. The electronic device described in the present application has a shooting function, and the electronic device may include such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable Media player (Portable Media Player, PMP), wearable device, camera, smart car, etc.
如图10所示,该电子设备100包括:As shown in Figure 10, the electronic device 100 includes:
图像获取装置1001,配置为采集图像数据;An image acquisition device 1001 configured to acquire image data;
图像处理器1002,配置为执行上述实施例中图像处理器实现的方法步骤。The image processor 1002 is configured to execute the method steps implemented by the image processor in the foregoing embodiments.
应用处理器1003,配置为接收经由所述图像处理器处理过的第一图像数据并对所述第一图像处理数据进行处理。The application processor 1003 is configured to receive the first image data processed by the image processor and process the first image processing data.
当然,实际应用时,如10所示,该电子设备100中的各个组件通过总线系统1004耦合在一起。可理解,总线系统1004用于实现这些组件之间的连接通信。总线系统1004除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统1004。Of course, in actual application, as shown in 10 , various components in the electronic device 100 are coupled together through the bus system 1004 . It can be understood that the bus system 1004 is used to realize connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 1004 in FIG. 10 for clarity of illustration.
在示例性实施例中,本申请实施例还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,计算机程序可由图像处理器执行,以完成 前述方法的步骤。In an exemplary embodiment, the embodiment of the present application also provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by an image processor to complete the steps of the foregoing method.
本申请实施例还提供了一种计算机程序产品,包括计算机程序指令。The embodiment of the present application also provides a computer program product, including computer program instructions.
可选的,该计算机程序产品可应用于本申请实施例中的图像处理器,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由图像处理器实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program product can be applied to the image processor in the embodiment of the present application, and the computer program instructions cause the computer to execute the corresponding process implemented by the image processor in each method of the embodiment of the present application. For brevity, the This will not be repeated here.
本申请实施例还提供了一种计算机程序。The embodiment of the present application also provides a computer program.
可选的,该计算机程序可应用于本申请实施例中的图像处理器,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由图像处理器实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program may be applied to the image processor in the embodiment of the present application, and when the computer program is run on the computer, the computer executes the corresponding process implemented by the image processor in each method of the embodiment of the present application, For the sake of brevity, details are not repeated here.
应当理解,在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。本申请中表述“具有”、“可以具有”、“包括”和“包含”、或者“可以包括”和“可以包含”在本文中可以用于指示存在对应的特征(例如,诸如数值、功能、操作或组件等元素),但不排除附加特征的存在。It should be understood that the terminology used in the present application is for the purpose of describing particular embodiments only, and is not intended to limit the present application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items. The expressions "has", "may have", "comprises" and "comprises", or "may comprise" and "may comprise" in this application may be used herein to indicate the presence of corresponding features (for example, such as values, functions, elements such as operations or components), but does not exclude the presence of additional features.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,不必用于描述特定的顺序或先后次序。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, first information may also be called second information, and similarly, second information may also be called first information.
本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。The technical solutions described in the embodiments of the present application may be combined arbitrarily if there is no conflict.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法、装置和设备,可以通过其它的方式实现。以上所描述的实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed methods, devices and equipment may be implemented in other ways. The above-described embodiments are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into Another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可 以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application.
工业实用性Industrial Applicability
本申请提供一种图像处理方法、图像处理芯片及电子设备,该方法通过监测图像处理器的运行状态获取运行状态信息,根据运行状态信息为图像处理器确定与当前运行状态信息匹配的最佳工作模式,当图像处理器运行第一工作模式时,对图像数据进行隔帧处理,当图像处理器运行第二工作模式时,对图像数据进行降采样处理以及隔帧处理。实现了图像处理器工作模式的自适应调整,从而优化图像处理器的功耗,解决单一的工作模式下长时间处理高帧率图像存在的高功耗问题,达到平衡图像处理器功耗和图像处理效果的目的。The present application provides an image processing method, an image processing chip and an electronic device. The method obtains the operation state information by monitoring the operation state of the image processor, and determines the best work matching the current operation state information for the image processor according to the operation state information. mode, when the image processor runs in the first working mode, the image data is processed every other frame, and when the image processor runs the second working mode, the image data is down-sampled and processed every other frame. The adaptive adjustment of the working mode of the image processor is realized, thereby optimizing the power consumption of the image processor, solving the problem of high power consumption in processing high frame rate images for a long time in a single working mode, and achieving a balance between the power consumption of the image processor and the image The purpose of processing effects.

Claims (15)

  1. 一种图像处理方法,应用于图像处理器,其中,所述方法包括:An image processing method applied to an image processor, wherein the method includes:
    获取所述图像处理器的运行状态信息;Acquiring the running state information of the image processor;
    根据所述运行状态信息确定所述图像处理器运行在第一工作模式或第二工作模式,其中,当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理;当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理。Determining that the image processor is running in a first working mode or a second working mode according to the running status information, wherein when the image processor is running in the first working mode, image data is processed every other frame; When the image processor operates in the second working mode, it performs down-sampling processing and frame-interval processing on the image data.
  2. 根据权利要求1所述的方法,其中,所述当所述图像处理器运行在所述第一工作模式时,对图像数据进行隔帧处理,包括:The method according to claim 1, wherein when the image processor is running in the first working mode, performing frame-interval processing on the image data comprises:
    对所述图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;Processing the image data at intervals to obtain the first image data and 3A statistical data of the processed image;
    将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,得到第二图像数据。sending the first image data and the 3A statistical data to an application processor, so that the application processor can perform image compensation on an unprocessed image in the first image data by using the 3A statistical data of the processed image, Obtain the second image data.
  3. 根据权利要求1所述的方法,其中,所述当所述图像处理器运行在所述第二工作模式时,对图像数据进行降采样处理以及隔帧处理,包括:The method according to claim 1, wherein, when the image processor operates in the second working mode, performing downsampling processing and frame-interval processing on the image data includes:
    对所述图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;Carrying out down-sampling processing on the image data, and performing frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image;
    将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。sending the first image data and the 3A statistical data to an application processor, so that the application processor can perform image compensation on an unprocessed image in the first image data by using the 3A statistical data of the processed image, And performing up-sampling processing on the compensated image data to obtain second image data.
  4. 根据权利要求2或3所述的方法,其中,The method according to claim 2 or 3, wherein,
    将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器通过前一帧已处理图像的3A统计数据对当前帧未处理图像进行图像补偿处理;Sending the first image data and the 3A statistical data to an application processor, so that the application processor performs image compensation processing on the unprocessed image of the current frame through the 3A statistical data of the processed image of the previous frame;
    或者,将所述第一图像数据和所述3A统计数据发送给应用处理器,以供所述应用处理器对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Or, sending the first image data and the 3A statistical data to an application processor, so that the application processor can perform weighting processing on the 3A statistical data of the processed image of the previous frame and the processed image of the next frame, Obtaining weighted 3A statistical data; performing image compensation processing on the unprocessed image of the current frame through the weighted 3A statistical data.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    根据所述运行状态信息确定所述图像处理器运行在第三工作模式,其中,当所述图像处理器运行在所述第三工作模式时,将所述图像处理器中的部分模块设置为旁路模式。According to the operation status information, it is determined that the image processor is running in a third working mode, wherein when the image processor is running in the third working mode, some modules in the image processor are set as bypass road mode.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    从预设的运行条件中,确定所述运行状态信息所满足的目标运行条件;From the preset operating conditions, determine the target operating conditions satisfied by the operating state information;
    所述目标运行条件为第一运行条件时,确定所述图像处理器运行在所述第一工作模式;When the target operating condition is the first operating condition, it is determined that the image processor is operating in the first working mode;
    所述目标运行条件为第二运行条件时,确定所述图像处理器运行在所述第二工作模式;When the target operating condition is a second operating condition, it is determined that the image processor is operating in the second working mode;
    所述目标运行条件为第三运行条件时,确定所述图像处理器运行在所述第三工作模式。When the target operating condition is a third operating condition, it is determined that the image processor is operating in the third working mode.
  7. 根据权利要求6所述的方法,其中,所述运行状态信息包括以下至少之一:所述图像处理器的温度、预设工作时长所述图像处理器的功耗,The method according to claim 6, wherein the operating status information includes at least one of the following: temperature of the image processor, power consumption of the image processor during preset working hours,
    所述运行条件包括以下至少之一:The operating conditions include at least one of the following:
    所述图像处理器的温度位于预设的温度范围内;The temperature of the image processor is within a preset temperature range;
    所述图像处理器的功耗位于预设的功耗范围内。The power consumption of the image processor is within a preset power consumption range.
  8. 一种图像处理器,其中,所述图像处理器配置为调用并运行存储器中存储的计算机程序,执行如权利要求1-7任一项由所述图像处理器实现的方法步骤。An image processor, wherein the image processor is configured to invoke and run a computer program stored in a memory, and execute the method steps implemented by the image processor according to any one of claims 1-7.
  9. 一种图像处理芯片,其中,包括:An image processing chip, including:
    图像处理器以及与图像处理器耦合的应用处理器,所述图像处理器配置为处理接收到的图像数据,所述图像处理器具有第一工作模式和第二工作模式,an image processor and an application processor coupled to the image processor, the image processor is configured to process received image data, the image processor has a first mode of operation and a second mode of operation,
    其中,当所述图像处理器运行在第一工作模式时,所述图像处理器对所述图像数据进行隔帧处理以得到第一图像数据;Wherein, when the image processor operates in the first working mode, the image processor performs frame-interval processing on the image data to obtain the first image data;
    当所述图像处理器运行在第二工作模式时,所述图像处理器对所述图像数据进行降采样处理后进行隔帧处理以得到第一图像数据;When the image processor is running in the second working mode, the image processor performs down-sampling processing on the image data and then performs frame-interval processing to obtain the first image data;
    所述应用处理器配置为对所述第一图像数据进行处理。The application processor is configured to process the first image data.
  10. 根据权利要求9所述的图像处理芯片,其中,The image processing chip according to claim 9, wherein,
    所述图像处理器,配置为对所述图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器;The image processor is configured to process the image data at intervals to obtain first image data and 3A statistical data of the processed image; and send the first image data and the 3A statistical data to an application processor ;
    所述应用处理器,配置为通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,得到第二图像数据。The application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image to obtain the second image data.
  11. 根据权利要求9所述的图像处理芯片,其中,The image processing chip according to claim 9, wherein,
    所述图像处理器,配置为对所述图像数据进行降采样处理,对降采样后的图像数据进行隔帧处理,得到第一图像数据和已处理图像的3A统计数据;将所述第一图像数据和所述3A统计数据发送给应用处理器;The image processor is configured to perform down-sampling processing on the image data, and perform frame-interval processing on the down-sampled image data to obtain the first image data and 3A statistical data of the processed image; the first image data and said 3A statistics are sent to the application processor;
    所述应用处理器配置为通过已处理图像的3A统计数据对所述第一图像数据中的未处理图像进行图像补偿,并对补偿后的图像数据进行升采样处理,得到第二图像数据。The application processor is configured to perform image compensation on the unprocessed image in the first image data by using the 3A statistical data of the processed image, and perform up-sampling processing on the compensated image data to obtain the second image data.
  12. 根据权利要求10或11所述的图像处理芯片,其中,The image processing chip according to claim 10 or 11, wherein,
    所述应用处理器配置为通过前一帧已处理图像的3A统计数据对当前 帧未处理图像进行图像补偿处理;The application processor is configured to perform image compensation processing on the unprocessed image of the current frame through the 3A statistical data of the processed image of the previous frame;
    或者,所述应用处理器配置为对前一帧已处理图像和后一帧已处理图像的3A统计数据进行加权处理,得到加权3A统计数据;通过所述加权3A统计数据对当前帧未处理图像进行图像补偿处理。Alternatively, the application processor is configured to perform weighted processing on the 3A statistical data of the processed image of the previous frame and the processed image of the next frame to obtain weighted 3A statistical data; Perform image compensation processing.
  13. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    图像获取装置,配置为采集图像数据;an image acquisition device configured to acquire image data;
    图像处理器,配置为执行权利要求1至7任一项由图像处理器实现的方法步骤。An image processor configured to execute the method steps implemented by the image processor according to any one of claims 1 to 7.
  14. 如权利要求13所述的电子设备,其中,所述电子设备还包括应用处理器,The electronic device of claim 13, wherein the electronic device further comprises an application processor,
    应用处理器,配置为接收经由所述图像处理器处理过的第一图像数据并对所述第一图像处理数据进行处理。An application processor configured to receive the first image data processed by the image processor and process the first image processing data.
  15. 一种计算机可读存储介质,所述计算机可读存储介质配置为存储计算机程序,所述计算机程序使得计算机执行如权利要求1-7任一项所述方法的步骤。A computer-readable storage medium configured to store a computer program, the computer program causing a computer to execute the steps of the method according to any one of claims 1-7.
PCT/CN2022/100535 2021-08-05 2022-06-22 Image processing method, image processing chip, and electronic device WO2023011032A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110894743.8A CN115706768A (en) 2021-08-05 2021-08-05 Image processing method, image processing chip and electronic equipment
CN202110894743.8 2021-08-05

Publications (1)

Publication Number Publication Date
WO2023011032A1 true WO2023011032A1 (en) 2023-02-09

Family

ID=85154242

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/100535 WO2023011032A1 (en) 2021-08-05 2022-06-22 Image processing method, image processing chip, and electronic device

Country Status (2)

Country Link
CN (1) CN115706768A (en)
WO (1) WO2023011032A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
US20180007336A1 (en) * 2016-07-01 2018-01-04 Qualcomm Incorporated Correlation based approach for skipping frames
CN107803029A (en) * 2017-10-26 2018-03-16 广东欧珀移动通信有限公司 Display processing method and related product
CN107959965A (en) * 2017-11-20 2018-04-24 广东欧珀移动通信有限公司 Frame dropping method, device, mobile terminal and the readable storage medium storing program for executing of application program
US20210196223A1 (en) * 2019-12-27 2021-07-01 Fujifilm Corporation Radiography apparatus, method for operating radiography apparatus, and program for operating radiography apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201821A (en) * 2016-06-29 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control mechanism and terminal
US20180007336A1 (en) * 2016-07-01 2018-01-04 Qualcomm Incorporated Correlation based approach for skipping frames
CN107803029A (en) * 2017-10-26 2018-03-16 广东欧珀移动通信有限公司 Display processing method and related product
CN107959965A (en) * 2017-11-20 2018-04-24 广东欧珀移动通信有限公司 Frame dropping method, device, mobile terminal and the readable storage medium storing program for executing of application program
US20210196223A1 (en) * 2019-12-27 2021-07-01 Fujifilm Corporation Radiography apparatus, method for operating radiography apparatus, and program for operating radiography apparatus

Also Published As

Publication number Publication date
CN115706768A (en) 2023-02-17

Similar Documents

Publication Publication Date Title
US11308582B2 (en) Blended neural network for super-resolution image processing
CN107924554B (en) Multi-rate processing of image data in an image processing pipeline
US8749667B2 (en) System and method for maintaining maximum input rate while up-scaling an image vertically
US8655066B2 (en) Color constancy method and system
US10846551B2 (en) Video data processing
CN110555808B (en) Image processing method, device, equipment and machine-readable storage medium
US8861846B2 (en) Image processing apparatus, image processing method, and program for performing superimposition on raw image or full color image
US8194155B2 (en) Information processing apparatus, buffer control method, and computer program
US20130004071A1 (en) Image signal processor architecture optimized for low-power, processing flexibility, and user experience
JP2015216644A (en) Architecture for video processing, fast still picture processing and high quality still picture processing
US8587705B2 (en) Hardware and software partitioned image processing pipeline
US11223762B2 (en) Device and method for processing high-resolution image
JPWO2007142134A1 (en) Image processing circuit, semiconductor device, and image processing device
WO2023011032A1 (en) Image processing method, image processing chip, and electronic device
US20240080410A1 (en) Imaging apparatus, image data processing method of imaging apparatus, and program
CN113014817A (en) Method and device for acquiring high-definition high-frame video and electronic equipment
CN108024074A (en) A kind of miniaturization infrared imaging method based on SOPC
US20200074691A1 (en) Processing images using hybrid infinite impulse response (iir) and finite impulse response (fir) convolution block
CN103875234A (en) Fine grained power gating of camera image processing
US11443403B2 (en) Image and video processing using multiple pipelines
US20140104459A1 (en) Imaging device, method for processing image, and program product for processing image
WO2018217334A1 (en) Frame buffering technology for camera-inclusive devices
US10547781B1 (en) Lighting correction for motion detection and temporal filtering
CN109102770B (en) Low-power-consumption low-bandwidth display panel driving chip for high-performance calculation
WO2023045907A1 (en) Multi-exposure image processing method and apparatus, and noise reduction circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22851748

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE