WO2023207137A1 - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
WO2023207137A1
WO2023207137A1 PCT/CN2022/139253 CN2022139253W WO2023207137A1 WO 2023207137 A1 WO2023207137 A1 WO 2023207137A1 CN 2022139253 W CN2022139253 W CN 2022139253W WO 2023207137 A1 WO2023207137 A1 WO 2023207137A1
Authority
WO
WIPO (PCT)
Prior art keywords
image processing
image
information
original image
original
Prior art date
Application number
PCT/CN2022/139253
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 WO2023207137A1 publication Critical patent/WO2023207137A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20004Adaptive image processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present application relates to the field of image processing, and in particular to image processing methods and devices.
  • the image processing device can process the acquired image so that the processed image meets certain requirements. For example, the image processing device can process an image with lower brightness so that the brightness of the processed image is greater than or equal to the threshold 1, or the image processing device can process an image with higher brightness and overexposure so that the processed image The brightness of the image is less than or equal to the threshold 2, so that the image recognition device can recognize the image.
  • image processing devices can use the adaptive Gamma correction with weighting distribution (AGCWD) algorithm to process original images to obtain processed images that meet certain requirements.
  • AGCWD adaptive Gamma correction with weighting distribution
  • the image processing device can obtain the original image, generate a grayscale histogram based on the original image, redistribute the grayscale histogram, obtain gamma (gamma) parameters, and enhance the original image through the gamma parameters. Get the processed image.
  • AGCWD adaptive Gamma correction with weighting distribution
  • Embodiments of the present application provide image processing methods and devices, which can reduce the amount of calculation in the image processing process.
  • an image processing method is provided.
  • the device for executing the method may be an image processing device; it may also be a module used in the image processing device, such as a chip or a chip system.
  • the following description takes the execution subject as an image processing device as an example.
  • the method includes: acquiring an image processing model, a first original image and first environment information, where the first environment information is information about the environment when acquiring the first original image; and using the first environment information as an input to the image processing model. parameters to obtain the first image processing parameters; use the first image processing parameters to process the first original image to obtain the first processed image.
  • the image processing device can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image, and process the first original image according to the first image processing parameters, Get the processed image.
  • the above method it does not involve the generation and redistribution of grayscale histograms and other computationally intensive processes.
  • an image processing model trained in advance and related to environmental information is used to obtain the first image processing parameters.
  • the first image processing parameter processes the first original image.
  • the calculation process is relatively simple and the calculation amount is small. It can be applied to equipment with low computing power, so that the equipment can also perform image processing, or be applied to real-time processing.
  • the above method obtains the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image. That is to say, the first image processing parameters are related to the environmental information and have nothing to do with the original image. Therefore, , there will be no problem that the processed image is too bright and overexposed due to dark objects in the original image.
  • the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur.
  • the first environment information includes at least one of the following: time information for obtaining the first original image, information on the illumination intensity when the first original image is obtained, and information on the illumination direction when the first original image is obtained. information, brightness information when the first original image is obtained, or position information when the first original image is obtained.
  • the above information is related to the gamma correction function. Therefore, the first image processing parameters obtained according to the first environment information can be used for gamma correction.
  • the above information is also smooth and excessive, that is, the first environment information corresponding to two adjacent frames of images in the video is not much different, so the first environment information corresponding to the two adjacent frames of images obtained based on the first environment information The processing parameters are not much different, so there will be no problem of video flickering.
  • obtaining an image processing model includes: obtaining at least one second environment information and at least one second original image, the at least one second original image including each second environment in the at least one second environment information A second original image corresponding to the information; acquiring at least one target image, the at least one target image including a target image corresponding to each second environment information in the at least one second environment information, the second environment information is to obtain the second environment
  • the second original image and the third original image corresponding to the information are environmental information
  • the third original image is the original image of the target image corresponding to the second environmental information
  • the type of information included in the second environmental information is the same as that of the third original image.
  • a piece of environmental information includes the same type of information; the image processing model is obtained according to the at least one second environmental information, the at least one second original image and the at least one target image.
  • the image processing device can obtain the image processing model.
  • obtaining the image processing model according to the at least one second environment information, the at least one second original image and the at least one target image includes: using at least one second image processing parameter to respectively A second original image is processed to obtain at least one second processed image, and the absolute value of the difference between the correlation coefficient of the at least one second processed image and the correlation coefficient of the at least one target image is less than or equal to the first threshold; according to the at least one A second environment information and the at least one second image processing parameter are used to obtain the image processing model.
  • the image processing device can train at least one second image processing parameter and at least one second environment information to obtain an image processing model.
  • at least one second image processing parameter can make at least one second processed image have a high similarity with at least one target image. Therefore, environmental information (such as first environmental information) is input into the image processing model obtained according to the above method.
  • the image processing parameters (such as the first image processing parameters) can be obtained, and the original image (such as the first original image) corresponding to the environmental information is processed by using the image processing parameters, so that the processed image (such as the first processed image) can be compared with at least A target image has higher similarity.
  • the processed image can also meet the requirements of the target image.
  • the method before using at least one second image processing parameter to respectively process the at least one second original image to obtain at least one second processed image, the method further includes: obtaining a set of candidate image processing parameters, the The set of candidate image processing parameters includes a plurality of candidate image processing parameters, the plurality of candidate image processing parameters including the at least one second processing parameter.
  • the image processing device can first obtain multiple candidate parameters, and then use the candidate parameters to process the second original image to obtain a processed image. If the correlation coefficient of the processed image is consistent with the target image If the absolute value of the difference between the correlation coefficients is less than or equal to the first threshold, the image processing device determines the candidate parameter corresponding to the processed image as the second processing parameter.
  • the method further includes: obtaining initial image processing parameters; performing a first operation on the initial image processing parameters to obtain the candidate image processing parameter set.
  • the image processing apparatus can obtain the candidate image processing parameter set.
  • the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to the initial image processing parameters, randomly determining candidate image processing parameters based on the initial image processing parameters, or determining candidate image processing parameters based on historically determined parameters.
  • the candidate image processing parameters determine the set of candidate image processing parameters.
  • the image processing device can obtain the candidate image processing parameter set through multiple methods, which improves the flexibility and diversity of obtaining the candidate image processing parameter set.
  • the image processing model includes functions or algorithms.
  • the calculation amount of using a function or algorithm to calculate the parameters in the first environment information is much less than the calculation amount of generating and redistributing the grayscale histogram. Therefore, the image processing speed of the image processing device can be greatly improved.
  • an image processing device for implementing the above method.
  • the image processing device may be the image processing device in the above-described first aspect, or a device including the above-described image processing device.
  • the image processing device includes corresponding modules, units, or means (means) for implementing the above method.
  • the modules, units, or means can be implemented by hardware, software, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • the image processing device may include a processing module.
  • This processing module can be used to implement the processing functions in any of the above aspects and any possible implementation manner thereof.
  • the processing module may be, for example, a processor.
  • a third aspect provides an image processing device, including: a processor; the processor is configured to be coupled to a memory, and after reading instructions in the memory, execute the method described in the first aspect according to the instructions.
  • the image processing device may be the image processing device in the above-described first aspect, or a device including the above-described image processing device.
  • the image processing device further includes a memory, and the memory is used to store necessary program instructions and data.
  • the image processing device is a chip or a chip system.
  • the image processing device when it is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
  • an image processing device including: a processor and an interface circuit; the interface circuit is used to receive a computer program or instructions and transmit them to the processor; the processor is used to execute the computer program or instructions, so that the The image processing device executes the method described in the above first aspect.
  • the image processing device is a chip or a chip system.
  • the image processing device when it is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
  • a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium, and when run on a computer, the computer can execute the method described in the first aspect.
  • a sixth aspect provides a computer program product containing instructions that, when run on a computer, enable the computer to execute the method described in the first aspect.
  • a seventh aspect provides an intelligent driving vehicle, which includes an image processing device for executing the method described in the first aspect.
  • Figure 1 is a schematic diagram of the image processing process
  • Figure 2 is a schematic diagram before and after image processing
  • Figure 3A is a schematic diagram of the image processing system architecture provided by an embodiment of the present application.
  • Figure 3B is a schematic diagram of an image processing device provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of the hardware structure of an image processing device provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart 1 of the image processing method provided by the embodiment of the present application.
  • FIG. 6 is a schematic flowchart 2 of the image processing method provided by the embodiment of the present application.
  • Figure 7 is a schematic flow chart of the feature extraction method provided by the embodiment of the present application.
  • Figure 8 is a schematic diagram of an image processing model provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an image processing device provided by an embodiment of the present application.
  • the image sensing device (such as a camera) can project the ambient light signal into the visual sensor chip, and the visual sensor chip can convert the light signal into an electrical signal and maintain it as a raw data (RAW) image.
  • the image processing device can convert the RAW image into a red green blue (RGB) image. That is, the image data type may include RAW images or RGB images.
  • a RAW image may represent a native, unprocessed image.
  • RAW images include images sensed from image sensing devices such as digital cameras, mobile phones, tablets, or scanners.
  • RAW images correspond to RAW files.
  • RAW files can contain data information needed to create a viewable image, such as file header and pixel area information.
  • the structure of RAW files can follow a common pattern.
  • the structure of a RAW file may include a RAW image format ISO12234-2 or TIFF/EP that complies with the International Organization for Standardization (ISO) standard.
  • ISO International Organization for Standardization
  • a RAW image can refer to an image in bayer format. The number of pixels is the same as the number of pixels in the image perceived by the image sensing device.
  • width and height indicate the width and height of the image respectively, and 1 indicates that the RAW image has one channel.
  • Each pixel represents one of three colors: red (red, R), green (green, G), or blue (blue, B).
  • a floating point number from 0.0 to 1.0 is usually used to represent the signal strength of each color.
  • RGB images can represent various eye-friendly images generated after RAW images are processed by an image signal processor (ISP), for example, common jpeg format images, BMP format images or PNG format images, etc.
  • ISP image signal processor
  • files corresponding to RGB images do not include file headers, but include pixel area information.
  • the file corresponding to an RGB image includes a matrix of width*height*3. 3 means that the RGB image has 3 channels, each channel represents one of the three colors of R/G/B, and an integer from 0 to 255 is used to represent each pixel value of the image.
  • the image processing device may include an ISP for processing images.
  • the ISPs used by different image processing devices may be the same or different.
  • the ISP can have at least one of the following functions: demosaicing, black level correction, lens correction, bad pixel correction, gamma correction, denoising, white balance or color mapping.
  • the parameters used by the ISPs of different image processing devices may be the same or different. For example, for image 1, the ISP of image processing device 1 processes image 1 through gamma parameter 1 to obtain image 2, and the ISP of image processing device 2 processes image 1 through gamma parameter 2 to obtain image 3. Or, for image 1, both the ISP of image processing device 1 and the ISP of image processing device 2 process image 1 through gamma parameter 1 to obtain image 2.
  • the image processing method provided by the embodiment of the present application can be applied to one or more of the above functions.
  • parameters in one or more of the above functions can be obtained according to environmental information, and the image can be processed according to the obtained parameters. Process to get the processed image.
  • the following embodiments of the present application are described by taking the image processing method applied to gamma correction (for example, obtaining gamma parameters according to environmental information, processing the image according to the gamma parameters, and obtaining a processed image) as an example.
  • the embodiments of the present application provide The application of the image processing method to other functions is similar to the application to gamma correction. Please refer to the following embodiments of this application and will not be described again.
  • Figure 2 shows images taken under different lighting conditions from sunrise to sunset.
  • the original images taken at 5:00am (5:00am) and 19:00pm (19:00pm) have lower brightness and the images are too dark, while the original images taken at 13:00pm (13:00pm)
  • the brightness of the image is high, and the image is too bright and overexposed, which makes it difficult for the image recognition device to identify the content in the image, such as objects or people in the image.
  • the original image in Figure 2 can be used to adjust the brightness of the image through the method shown in Figure 1 to obtain the processed image.
  • the brightness of the processed image is moderate, which can improve the recognition rate of the image recognition device and the accuracy of identifying objects.
  • the method shown in Figure 1 is more complex and requires a large amount of calculation. Usually, when digital signal processing (DSP) chips use this algorithm, it takes tens of milliseconds. It is not suitable for some scenarios that require high real-time performance, such as intelligent driving scenarios. Moreover, in the method shown in Figure 1, if there are dark objects in the original image, the processed image will be brighter, and the image may be too bright and overexposed. In addition, in the method shown in Figure 1, the gamma parameters obtained according to different original images are different. Therefore, if the method shown in Figure 1 is used to process the video stream, the gamma parameters of two adjacent frames of images will be different. Since the gamma parameter is related to image brightness, the problem of video flickering may occur.
  • DSP digital signal processing
  • the image processing method can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image.
  • the parameters are used to process the first original image to obtain the processed image.
  • an image processing model trained in advance and related to environmental information is used to obtain the first image processing parameters.
  • the first image processing parameter processes the first original image, the calculation process is relatively simple, and the calculation amount is small.
  • the above method obtains the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image.
  • the first image processing parameters are related to the environmental information and have nothing to do with the original image. Therefore, , there will be no problem that the processed image is too bright and overexposed due to dark objects in the original image.
  • the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur. The specific process of this method will be introduced in the embodiment shown in Figure 5 below, and will not be described again here.
  • the method provided by the embodiments of the present application can be used in various image processing systems to process the original image and obtain a processed image, so that the processed image meets certain requirements.
  • the following uses the image processing system 30 shown in FIG. 3A as an example to describe the method provided by the embodiment of the present application.
  • FIG. 3A it is a schematic architectural diagram of an image processing system 30 provided by an embodiment of the present application.
  • the image processing system 30 may include one or more image processing devices 301 (only one is shown).
  • the image processing system 30 also includes an image sensing device 302 and/or an image recognition device 303 that can communicate with the image processing device 301 .
  • FIG. 3A is only a schematic diagram and does not constitute a limitation on the applicable scenarios of the technical solution provided by this application.
  • the image processing device in the embodiment of the present application can be any device with computing functions.
  • the image processing device also has image perception capabilities and/or image recognition capabilities, for example, it can perceive the original image (or shoot the original image) and/or be able to identify the content in the image.
  • the image processing device 301 can obtain the image processing model, the first original image and the first environment information, use the first environment information as an input parameter of the image processing model, obtain the first image processing parameters, and use the first image processing The parameters are used to process the first original image to obtain the first processed image.
  • the first environment information is information about the environment when the first original image is acquired.
  • the image processing device includes but is not limited to: handheld device, vehicle-mounted device, computing device or intelligent driving vehicle.
  • the image processing device may be a mobile phone, a tablet, a computer, various devices with computing capabilities in a car, or an intelligent driving vehicle with an automatic driving function or an assisted driving function.
  • Various devices with computing capabilities in the car can include: gateway, vehicle T-Box (telematics box), body control module (BCM), smart cockpit domain controller (cockpit domain controller, CDC), multi-domain Controller (multi domain controller, MDC), vehicle control unit (vehicle control unit, VCU), electronic control unit (electronic control unit, ECU), vehicle domain controller (vehicle domain controller, VDC) or vehicle integrated unit (vehicle integrated/integration unit, VIU) etc.
  • Automatic driving means that the automatic driving device in the vehicle can operate the vehicle to drive safely without the participation of the driver during the driving process.
  • Assisted driving refers to the auxiliary driving device in the vehicle that assists the driver in safe driving while the vehicle is driving.
  • Autonomous driving or assisted driving can also be called intelligent driving.
  • the image processing device can also be a virtual reality (VR) device, an augmented reality (AR) device, a wearable device, a wireless terminal in industrial control, a wireless terminal in driverless driving, or a remote control device.
  • VR virtual reality
  • AR augmented reality
  • Wireless terminals in medical treatment wireless terminals in smart grids, wireless terminals in smart cities, or wireless terminals in smart homes, etc.
  • the image processing device can also be a terminal in the Internet of Things (IoT) system.
  • IoT Internet of Things
  • the image processing device of the present application may be a vehicle-mounted module, vehicle-mounted module, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit built into the vehicle as one or more components or units.
  • the vehicle uses the built-in vehicle-mounted module, vehicle-mounted module, Vehicle-mounted components, vehicle-mounted chips or vehicle-mounted units can implement the method of the present application.
  • the embodiments of the present application can be applied to the Internet of Vehicles, such as vehicle outreach (vehicle to everything, V2X), inter-vehicle communication long term evolution technology (long term evolution vehicle, LTE-V), vehicle to vehicle (vehicle to vehicle, V2V) wait.
  • vehicle outreach vehicle to everything, V2X
  • inter-vehicle communication long term evolution technology long term evolution vehicle, LTE-V
  • vehicle to vehicle vehicle to vehicle, V2V
  • the image sensing device in the embodiment of the present application can be any device with image sensing capabilities.
  • the image sensing device may include one or more of a monocular camera, a binocular camera, a trinocular camera, a depth camera, or a scanner.
  • the image recognition device in the embodiment of the present application can be any device with image recognition capabilities and can recognize the content in the image.
  • the image processing system 30 shown in FIG. 3A is only used as an example and is not used to limit the technical solution of the present application. Those skilled in the art should understand that during specific implementation, the image processing system 30 may also include other equipment, and the number of image processing devices, image sensing devices or image recognition devices may also be determined according to specific needs without limitation.
  • the functions of the image processing apparatus in the embodiments of the present application can be implemented by one device or module, or by multiple devices or modules.
  • the functions of the image processing device are implemented by multiple devices or modules, the image processing device may be as shown in Figure 3B.
  • the image processing device 301 may include multiple modules, namely a model acquisition module 3011, an information acquisition module 3012 and an image processing module 3013.
  • the image processing device 301 also includes an image acquisition module 3014 and/or an image recognition module 3015.
  • the model acquisition module 3011 can be used to acquire an image processing model and send the image processing model to the image processing module 3013.
  • the information acquisition module 3012 may be used to acquire the first environment information and send the first environment information to the image processing module 3013.
  • the image processing module 3013 can be used to receive the image processing model from the model acquisition module 3011, receive the first environment information from the information acquisition module 3012, acquire the first original image, and use the first environment information as an input parameter of the image processing model to obtain first image processing parameters, and use the first image processing parameters to process the first original image to obtain a first processed image.
  • the image processing module 3013 can also send the first processed image to the image recognition module 3015, so that the image recognition module 3015 can recognize the content in the first processed image, etc.
  • the model acquisition module 3011 may be used to acquire an image processing model and send the image processing model to the image processing module 3013.
  • the information acquisition module 3012 may be used to acquire the first environment information and send the first environment information to the image processing module 3013.
  • the image acquisition module 3014 may be used to acquire the first original image and send the first original image to the image processing module 3013.
  • the image processing module 3013 may be configured to receive the image processing model from the model acquisition module 3011, receive the first environment information from the information acquisition module 3012, receive the first original image from the image acquisition module 3014, and process the first environment information as an image.
  • the input parameters of the model are used to obtain the first image processing parameters, and the first original image is processed using the first image processing parameters to obtain the first processed image.
  • the image processing module 3013 can also send the first processed image to the image recognition module 3015, so that the image recognition module 3015 can recognize the content in the first processed image, etc.
  • module can be replaced by “device”.
  • image processing module can be replaced by “image processing device”.
  • the image processing device 301 shown in FIG. 3B is only used as an example and is not used to limit the technical solution of the present application. Those skilled in the art should understand that during specific implementation, the image processing device 301 may also include other modules or equipment, and may also determine a model acquisition module, an information acquisition module, an image processing module, an image acquisition module, or a module according to specific needs. The number of image recognition modules is not limited.
  • each device or module (such as an image processing device, a model acquisition module, an information acquisition module, or an image processing module, etc.) in Figure 3A or Figure 3B in the embodiment of this application can be a general device or a special device, The embodiments of the present application do not specifically limit this.
  • each device or module such as an image processing device, a model acquisition module, an information acquisition module, or an image processing module, etc.
  • each device or module can be implemented by one device, or they can It can be jointly implemented by multiple devices, or can also be implemented by one or more functional modules in one device, which is not specifically limited in the embodiments of the present application.
  • the above functions can be either network elements in hardware devices, software functions running on dedicated hardware, or a combination of hardware and software, or virtualization instantiated on a platform (for example, a cloud platform) Function.
  • each device or module (such as image processing device, model acquisition module, information acquisition module, or image processing module, etc.) in Figure 3A or Figure 3B in the embodiment of the present application can adopt the composition structure shown in Figure 4 , or include the components shown in Figure 4.
  • FIG. 4 shows a schematic diagram of the hardware structure of an image processing device applicable to embodiments of the present application.
  • the image processing device 40 includes at least one processor 401 and at least one communication interface 404, which are used to implement the method provided by the embodiment of the present application.
  • the image processing device 40 may also include a communication line 402 and a memory 403.
  • the processor 401 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication line 402 may include a path, such as a bus, that carries information between the above-mentioned components.
  • Communication interface 404 is used to communicate with other devices or communication networks.
  • the communication interface 404 can be any device such as a transceiver, such as an Ethernet interface, a radio access network (RAN) interface, a wireless local area networks (WLAN) interface, a transceiver, and pins , bus, or transceiver circuit, etc.
  • RAN radio access network
  • WLAN wireless local area networks
  • Memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions.
  • a dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other medium for access, but not limited to this.
  • the memory may exist independently and be coupled to the processor 401 through a communication line 402 . Memory 403 may also be integrated with processor 401.
  • the memory provided by the embodiment of the present application may generally be non-volatile.
  • the memory 403 is used to store computer execution instructions involved in executing the solutions provided by the embodiments of this application, and the processor 401 controls the execution.
  • the processor 401 is used to execute computer execution instructions stored in the memory 403, thereby implementing the method provided by the embodiment of the present application.
  • the processor 401 may also perform processing-related functions in the methods provided in the following embodiments of the present application, and the communication interface 404 is responsible for communicating with other devices or communication networks. This application implements The example does not specifically limit this.
  • the computer-executed instructions in the embodiments of the present application may also be called application codes, which are not specifically limited in the embodiments of the present application.
  • the coupling in the embodiment of this application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
  • the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .
  • the image processing device 40 may include multiple processors, such as the processor 401 and the processor 407 in FIG. 4 . Each of these processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the image processing apparatus 40 may also include an output device 405 and/or an input device 406.
  • Output device 405 is coupled to processor 401 and can display information in a variety of ways.
  • the output device 405 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc.
  • Input device 406 is coupled to processor 401 and can receive user input in a variety of ways.
  • the input device 406 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
  • the image processing device 40 also includes an image perception module and/or an image recognition module (not shown in Figure 4).
  • the image sensing module can have image sensing capabilities.
  • the image processing device 40 is configured with one or more of a monocular camera, a binocular camera, a trinocular camera, a depth camera or a scanning module.
  • the image recognition module can have the ability to recognize the content in the image.
  • composition structure shown in Figure 4 does not constitute a limitation on the image processing device.
  • the image processing device may include more or fewer components than shown in the figure, or Combining certain parts, or different arrangements of parts.
  • image in the embodiments of this application can be replaced by “picture” or “photograph” or other names similar to “image” without limitation.
  • A/B may indicate A or B; "and/or” may be used to describe There are three relationships between associated objects.
  • a and/or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
  • a and B can be singular or plural.
  • expressions similar to "at least one of A, B and C" or "at least one of A, B or C” are often used to mean any of the following: A alone; B alone; alone C exists; A and B exist simultaneously; A and C exist simultaneously; B and C exist simultaneously; A, B, and C exist simultaneously.
  • the above is an example of three elements A, B and C to illustrate the optional items of this project. When there are more elements in the expression, the meaning of the expression can be obtained according to the aforementioned rules.
  • words such as “first” and “second” may be used to distinguish technical features with the same or similar functions.
  • the words “first”, “second” and other words do not limit the quantity and execution order, and the words “first” and “second” do not limit the number and execution order.
  • words such as “exemplary” or “for example” are used to express examples, illustrations or illustrations, and any embodiment or design solution described as “exemplary” or “for example” shall not be interpreted. To be more preferred or advantageous than other embodiments or designs.
  • the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner that is easier to understand.
  • an embodiment means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. Therefore, various embodiments are not necessarily referred to the same embodiment throughout this specification. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It can be understood that in the various embodiments of the present application, the size of the sequence numbers of each process does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be determined by the execution order of the embodiments of the present application. The implementation process constitutes no limitation.
  • At the same time in this application can be understood as at the same point in time, within a period of time, or within the same cycle.
  • the image processing device can perform some or all of the steps in the embodiments of the present application. These steps are only examples. The embodiments of the present application can also perform other steps or variations of various steps. In addition, various steps may be performed in a different order than those presented in the embodiments of the present application, and it may not be necessary to perform all the steps in the embodiments of the present application.
  • the image processing method may include the following steps:
  • the image processing device obtains the image processing model, the first original image and the first environment information.
  • the image processing device in S501 may be the image processing device 301 in FIG. 3A or FIG. 3B.
  • the image processing device may acquire the image processing model, the first original image, and the first environment information at the same time, or may not acquire the image processing model, the first original image, and the first environment information at the same time.
  • the image processing device may first acquire the image processing model and the first environment information, and then acquire the first original image, or the image processing device may first acquire the image processing model, then acquire the first environment information, and finally acquire the first original image.
  • the image processing model may include an input terminal and an output terminal. After the input parameters are input into the image processing model through the input terminal, the output terminal can output the output parameters.
  • an image processing model includes a function or algorithm.
  • the image processing model can include any function or algorithm, such as a quadratic function, a cubic function, an exponential function, a custom function or a custom algorithm, etc. It can be understood that the calculation amount of using a function or algorithm to calculate the parameters in the first environment information is much less than the calculation amount of generating and redistributing the grayscale histogram. Therefore, the image processing speed of the image processing device can be greatly improved.
  • the input parameters may include environmental information, such as environmental information when acquiring the original image.
  • the input parameters include first environment information.
  • the original image (such as the first original image, and/or the second original image, and/or the third original image, etc.) may be an image of any type or format.
  • the original image is a RAW image or an RGB image.
  • the original image is an image in bayer format, an image in jpeg format, an image in BMP format, or an image in PNG format, etc.
  • the output parameters may include image processing parameters (such as first image processing parameters).
  • the image processing parameters may include at least one of the following: parameters in the demosaic function, parameters in the black level correction function, parameters in the lens correction function, parameters in the gamma correction function (such as gamma parameters), parameters in the white balance function Parameters or parameters in a colormap function.
  • the first environment information is information about the environment when the first original image is acquired. It can be understood that the first environment information is related to the function applied by the image processing method. Specifically, if the function is a gamma correction function, the first environment information is related to the gamma correction function. In this way, the first image processing parameters obtained according to the first environment information can be used for gamma correction.
  • the first environment information includes at least one of the following: time information when the first original image is obtained, information about the illumination intensity when the first original image is obtained, information about the illumination direction when the first original image is obtained, information about the illumination direction when the first original image is obtained, The brightness information when the image is taken or the position information when the first original image is obtained.
  • the time information for obtaining the first original image may include at least one of the following: a moment when the first original image is obtained, a month when the first original image is obtained, or a season when the first original image is obtained.
  • the lighting direction can include east, south, west, or north; or the lighting direction can include east, south, west, north, northeast, southeast, northwest, or southwest; or the lighting direction can include angles, such as the lighting direction and each coordinate system. angle of the axis.
  • the coordinate system can be any two-dimensional or three-dimensional coordinate system in which the first original image is located. Location information can include longitude and latitude. It can be understood that the above information is related to the gamma correction function. Therefore, the first image processing parameters obtained according to the first environment information can be used for gamma correction.
  • the above information is also smooth and excessive, that is, the first environment information corresponding to two adjacent frames of images in the video is not much different, so the corresponding two adjacent frames of images obtained based on the first environment information in S502
  • the first processing parameters are also not much different, so there will be no problem of video flickering.
  • the first environment information includes multiple bits, and different bits correspond to different information.
  • the first environment information may include 6 bits, where the first two bits are related to the season in which the first original image was acquired.
  • the last 4 bits correspond to the information of the illumination intensity when acquiring the first original image. If the value of the first two bits is "00", it means that the season in which the first original image is obtained is spring. If the value of the first two bits is "01”, it means that the season in which the first original image is obtained is summer. If the value of the two bits is "10”, it means that the season in which the first original image is obtained is autumn. If the value of the first two bits is "11”, it means that the season in which the first original image is obtained is winter. The value of the last 4 bits can represent the illumination intensity when the first original image was acquired.
  • the image processing device can obtain the image processing model, and/or the first original image, and/or the first environment information in various ways.
  • the image processing device can obtain the above information locally, or the image processing device can obtain the above information through other devices or equipment, or the image processing device can obtain the above information by itself.
  • Detailed introduction is given below.
  • the image processing device locally stores the image processing model, and/or the first original image, and/or the first environment information. Therefore, the image processing device can obtain the image processing model, and/or the first original image, and/or the first environment information locally.
  • the model acquisition device can acquire the image processing model and send it to the image processing device, and accordingly, the image processing device receives the image processing model.
  • the image sensing device can acquire the first original image and send it to the image processing device, and accordingly, the image processing device receives the first original image.
  • the image sensing device may be image sensing device 302 in Figure 3A.
  • the information acquisition device can acquire the first environment information and send it to the image processing device.
  • the image processing device receives the first environment information. It can be understood that the model acquisition device, the image sensing device and the information acquisition device are different devices from the image processing device.
  • the model acquisition device, image sensing device and information acquisition device may be the same device or different devices without limitation.
  • the image processing device may acquire the image processing model by itself in the following manner: the image processing device acquires at least one second environment information, at least one second original image, and at least one target image, and determines the image processing model according to the at least one second environment information. , at least one second original image and at least one target image, and obtain an image processing model.
  • the image processing device may have image sensing capabilities.
  • the image processing device is configured with a camera device, and the first original image may be acquired through the camera device.
  • the camera device may include one or more of the following: a monocular camera, a binocular camera, a trinocular camera, a depth camera or a scanner.
  • the image processing device can obtain the first environment information through one or more of the network, a sensor in the image processing device, or software installed in the image processing device.
  • the image processing device determines the time information for acquiring the first original image through the network or time software installed thereon.
  • the image processing device determines, through a sensor configured on it, the information on the illumination intensity when acquiring the first original image, and/or the information on the illumination direction when acquiring the first original image, and/or the information on the illumination direction when acquiring the first original image.
  • brightness information For another example, the image processing device determines the location information when the first original image is acquired through the map software installed thereon.
  • the image processing device uses the first environment information as an input parameter of the image processing model to obtain the first image processing parameters.
  • the image processing device inputs the first environment information into the image processing model, that is, the first image processing parameters can be obtained. That is to say, the first image processing parameters can be obtained by calculating the first environment information using the function or algorithm in the image processing model.
  • the first image processing parameters may include at least one of the following: parameters in the demosaic function, parameters in the black level correction function, parameters in the lens correction function, and parameters in the gamma correction function (such as gamma parameters), parameters in the white balance function, or parameters in the color mapping function.
  • the image processing device uses the first image processing parameters to process the first original image to obtain the first processed image.
  • the image processing device can use the gamma parameter to perform gamma correction on the first original image to obtain the first processed image.
  • the image processing device may identify the content in the first processed image.
  • the image processing device may send the first processed image to the image recognition device, so that the image recognition device recognizes the content in the first image.
  • the image recognition device may be the image recognition device 303 in FIG. 3A.
  • the actions of the image processing device in the above S501-S503 can be executed by the processor 401 in the image processing device 40 shown in Figure 4 calling the application code stored in the memory 403.
  • This embodiment of the present application does not do anything in this regard. limit.
  • the image processing device can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image, and process the first original image according to the first image processing parameters to obtain Processed image.
  • it does not involve the generation and redistribution of grayscale histograms and other computationally intensive processes. Instead, it uses an image processing model trained in advance and related to environmental information to obtain the first image.
  • Processing parameters process the first original image according to the first image processing parameters. The calculation process is relatively simple and the calculation amount is small.
  • the smart driving vehicle can identify targets (such as vehicles, pedestrians, lane lines or obstacles, etc.) as quickly as possible based on the first processed image.
  • the method shown in Figure 5 above obtains the first image processing parameters based on the environment information and the image processing model when acquiring the first original image. That is to say, the first image processing parameters are related to the environment information and are related to the environment information.
  • the original image has nothing to do, so there will be no problem of the processed image being too bright and overexposed due to dark objects in the original image.
  • the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur.
  • the image processing device can obtain the image processing model by itself. Specifically, as shown in Figure 6, the image processing device can obtain the image processing model through the following steps:
  • the image processing device obtains at least one second environment information and at least one second original image.
  • At least one second original image includes a second original image corresponding to each of the at least one second environment information.
  • one piece of second environment information may correspond to at least one second original image.
  • the image processing device acquires 2 pieces of second environment information and 50 pieces of second original images.
  • the first second environment information corresponds to the first 20 second original images
  • the second second environment information corresponds to the last 30 second original images.
  • the image processing device can obtain at least one second environment information and/or at least one second original image in various ways.
  • the image processing device can obtain the above information locally, or the image processing device can obtain the above information through other devices or equipment, or the image processing device can obtain the above information by itself.
  • the image processing device acquires at least one target image.
  • At least one target image includes a target image corresponding to each second environment information in at least one second environment information.
  • one piece of second environment information can correspond to at least one target image.
  • the target image may be an image obtained by processing the third original image, and the target image meets certain requirements.
  • the image processing device can obtain at least one target image in various ways.
  • the image processing device may acquire at least one target image locally, that is, at least one target image is stored locally in advance.
  • the image processing device can obtain at least one target image through other devices or equipment.
  • other devices or equipment use the method shown in Figure 1 to process at least one third original image to obtain the at least one third original image corresponding to at least one target image, and sending the at least one target image to the image processing device.
  • the image processing device may acquire at least one target image by itself.
  • the image processing device uses the method shown in FIG. 1 to process at least one third original image to obtain at least one target image corresponding to at least one third original image. It should be understood that in addition to the method shown in Figure 1, other methods can also be used to obtain the target image without limitation.
  • the second environment information is information about the environment when acquiring the second original image and the third original image corresponding to the second environment information.
  • the third original image is the original image of the target image corresponding to the second environment information.
  • the second environment information includes at least one of the following: acquiring the time information of the second original image and the third original image corresponding to the second environment information, and acquiring the second original image and the third original image corresponding to the second environment information.
  • the second environment information includes the time at which the second original image and the third original image corresponding to the second environment information are acquired, and the time is 12:00
  • the second original image corresponding to the second environment information is The images are image 1 and image 2
  • the third original image corresponding to the second environment information is image 3.
  • the time at which image 1, image 2 and image 3 are acquired is all 12:00.
  • the type of information included in the second environment information is the same as the type of information included in the first environment information. That is to say, the parameters included in the first environment information will be determined by the parameters included in the second environment information. However, the values of parameters included in the second environment information may not be the same as the values of parameters included in the first environment information. Same, maybe different. For example, if the first environment information includes information about the illumination intensity when acquiring the first original image, then the second environment information includes information about the illumination intensity when acquiring the second original image and the third original image corresponding to the second environment information, and The illumination intensity information included in the first environment information and the illumination intensity information included in the second environment information may be the same or different.
  • the second environment information includes acquiring the second original image corresponding to the second environment information and The illumination direction information of the third original image, and the brightness information of the second original image and the third original image corresponding to the second environment information
  • the first environment information includes the illumination direction information and the second environment information
  • the included illumination direction information may be the same or different, and the brightness information included in the first environment information and the brightness information included in the second environment information may be the same or different.
  • the image processing device acquires an image processing model based on at least one second environment information, at least one second original image, and at least one target image.
  • the image processing device can train at least one second environment information, at least one second original image and at least one target image to obtain an image processing model.
  • the image processing parameters (such as the first image processing parameters) obtained through the image processing model are also more accurate.
  • the image processing device uses at least one second image processing parameter to respectively process at least one second original image to obtain at least one second processed image, and performs processing according to at least one second environment information and at least one second Image processing parameters to obtain the image processing model.
  • At least one second image processing parameter corresponds to at least one second original image one-to-one, and the second image processing parameters corresponding to different second original images may be the same or different.
  • the absolute value of the difference between the correlation coefficient of the at least one second processed image and the correlation coefficient of the at least one target image is less than or equal to the first threshold.
  • the correlation coefficient can also be called entropy.
  • the image processing device can extract features of at least one second processed image, and obtain a correlation coefficient of at least one second processed image based on the extracted features. Specifically, as shown in FIG. 7 , the image processing device can obtain the grayscale image of each second processed image in at least one second processed image, and obtain at least one grayscale histogram based on the at least one grayscale image. A gray histogram is averaged to obtain the first average gray histogram. Subsequently, the image processing device may determine the correlation coefficient of at least one second processed image based on the first average grayscale histogram.
  • the correlation coefficient of at least one second processed image can satisfy the formula:
  • H 1 is the correlation coefficient of at least one second processed image
  • xi is the pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255
  • p(xi ) is the point with pixel value xi in the first
  • N is 255.
  • the method by which the image processing apparatus obtains the correlation coefficient of at least one target image is similar to the method of obtaining the correlation coefficient of at least one second processed image.
  • the image processing device may extract features of at least one target image, and obtain a correlation coefficient of at least one target image based on the extracted features.
  • the image processing device can acquire a grayscale image of each target image in at least one target image, obtain at least one grayscale histogram based on the at least one grayscale image, average the at least one grayscale histogram, and obtain a third Two average grayscale histograms. Subsequently, the image processing device may determine the correlation coefficient of at least one target image according to the second average grayscale histogram.
  • the correlation coefficient of at least one target image can satisfy the formula: Among them, H 2 is the correlation coefficient of at least one target image, xi is the pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255, q(xi ) is the second average gray value of the point with pixel value xi The probability corresponding to the degree histogram. This probability can represent the probability that a point with a pixel value of x i appears in at least one gray level histogram corresponding to at least one target image. N is 255.
  • the absolute value of the difference between the correlation coefficient of at least one second processing image and the correlation coefficient of at least one target image can be expressed as
  • This absolute value may represent the similarity between at least one second processed image and at least one target image. Specifically, the larger the absolute value is, the less similar the at least one second processed image is to the at least one target image. The smaller the absolute value is, the more similar the at least one second processed image is to the at least one target image. Therefore, if the absolute value is less than or equal to the first threshold, the similarity between the at least one second processed image and the at least one target image can be high.
  • the first threshold can be set as needed and is not limited.
  • the difference between the correlation coefficient of at least one second processed image and the correlation coefficient of at least one target image can also be characterized by KL divergence (Kullback–Leibler divergence) or relative entropy, or in other words, at least one second The processing image is similar to at least one target image.
  • the KL divergence of at least one second processing image and at least one target image can satisfy the formula:
  • q) is the KL divergence of at least one second processing image and at least one target image
  • xi is a pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255
  • p( xi ) is the probability that the point with pixel value xi corresponds to the first average grayscale histogram
  • q(xi ) is the probability that the point with pixel value xi corresponds to the second average grayscale histogram.
  • KL divergence indicates that the at least one second processing image and at least one target image are less similar, and a smaller value of KL divergence indicates that the at least one second processing image and at least one target image are more similar. Therefore, if the value of the KL divergence is less than or equal to the first threshold, the similarity between the at least one second processed image and the at least one target image can be made high.
  • the first threshold can be set as needed and is not limited.
  • the image processing device can obtain an image processing model based on at least one second environment information and at least one second image processing parameter.
  • the image processing parameters can be obtained.
  • the image processing parameters can be obtained.
  • the image processing parameters can be obtained.
  • the image processing parameters to process the original image corresponding to the environmental information can make the processed image similar to at least one target image. The degree is higher. Therefore, the processed image can also meet the requirements met by the target image.
  • the image processing device obtains the image processing model based on at least one second environment information and at least one second image processing parameter.
  • the image processing device can obtain at least one second image processing parameter in various ways.
  • At least one second image processing parameter can be preconfigured in the image processing device based on experience, and the image processing device obtains at least one second image processing parameter locally.
  • the image processing device obtains a set of candidate image processing parameters.
  • the set of candidate image processing parameters includes a plurality of candidate image processing parameters, the plurality of candidate image processing parameters including at least one second processing parameter. That is to say, the image processing device can first obtain multiple candidate parameters, and then use the candidate parameters to process the second original image to obtain a processed image. If the correlation coefficient of the processed image and the correlation coefficient of the target image If the absolute value of the difference is less than or equal to the first threshold, the image processing device determines the candidate parameter corresponding to the processed image as the second processing parameter.
  • the image processing device obtains initial image processing parameters and performs a first operation on the initial image processing parameters to obtain a set of candidate image processing parameters.
  • the initial image processing parameters can be set as needed.
  • the first operation includes at least one of the following: determining candidate image processing parameters according to rules based on initial image processing parameters, randomly determining candidate image processing parameters based on initial image processing parameters, or determining a set of candidate image processing parameters based on historically determined candidate image processing parameters. .
  • the image processing device can determine 20 values in the interval from 1.90 to 2.10 with an interval of 0.01 as multiple candidate image processing parameters.
  • the image processing device can randomly add or subtract a number within 0.3 to 2.0 to obtain multiple candidate image processing parameters.
  • the image processing apparatus may determine all or part of the candidate image processing parameters determined historically as a plurality of candidate image processing parameters.
  • the image processing device can determine 20 values in the interval from 1.90 to 2.10 at intervals of 0.01, and then select among the 20 values that have not been historically determined as candidate image processing parameters. Values are determined as multiple candidate image processing parameters.
  • the image processing device can randomly add or subtract a number within 0.3 to 2.0 to obtain 30 values, and then select among the 30 values, values that have not been historically determined as candidate image processing parameters. , determined as multiple candidate image processing parameters.
  • the image processing device first obtains a set of candidate image processing parameters, and then processes the second original image according to the parameters in the set to obtain at least one second image processing parameter.
  • the image processing device can also obtain a candidate image processing parameter, and process the second original image according to the candidate image processing parameter. If the correlation coefficient of the processed image and the target image If the absolute value of the difference in correlation coefficients is less than or equal to the first threshold, then the candidate image processing parameter is the second image processing parameter. After that, the image processing device obtains a candidate image processing parameter again, and processes the second original image according to the candidate image processing parameter.
  • the candidate image processing parameter is the second image processing parameter.
  • the image processing device can train at least one second image processing parameter and at least one second environment information to obtain an image processing model.
  • at least one second image processing parameter can make at least one second processed image have a high similarity with at least one target image. Therefore, environmental information (such as first environmental information) is input into the image processing model obtained according to the above method.
  • the image processing parameters (such as the first image processing parameters) can be obtained, and the original image (such as the first original image) corresponding to the environmental information is processed by using the image processing parameters, so that the processed image (such as the first processed image) can be compared with at least A target image has higher similarity.
  • the processed image can also meet the requirements of the target image.
  • the actions of the image processing device in the above-mentioned S5011-S5013 can be executed by the processor 401 in the image processing device 40 shown in Figure 4 calling the application code stored in the memory 403.
  • This embodiment of the present application does not do anything in this regard. limit.
  • the methods and/or steps implemented by the image processing device can also be implemented by components (such as chips or circuits) that can be used in the image processing device.
  • embodiments of the present application also provide an image processing device, which may be the image processing device in the above method embodiment, or a device including the above image processing device, or a component that can be used in the image processing device.
  • the above-mentioned image processing device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
  • Embodiments of the present application can divide the image processing device into functional modules according to the above method examples.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It can be understood that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
  • FIG. 9 shows a schematic structural diagram of an image processing device 90 .
  • the image processing device 90 includes a processing module 901 .
  • the processing module 901 which may also be called a processing unit, is used to perform operations other than sending and receiving operations, and may be, for example, a processing circuit or a processor.
  • the image processing device 90 may also include a storage module (not shown in FIG. 9) for storing program instructions and data.
  • the image processing device 90 is used to implement the functions of the above image processing device.
  • the image processing device 90 is, for example, the image processing device described in the embodiment shown in FIG. 5 or the embodiment shown in FIG. 6 .
  • the processing module 901 is used to obtain the image processing model, the first original image and the first environment information.
  • the first environment information is information about the environment when the first original image is acquired.
  • the processing module 901 may be used to perform S501.
  • the processing module 901 is also used to use the first environment information as an input parameter of the image processing model to obtain the first image processing parameters.
  • the processing module 901 can also be used to perform S502.
  • the processing module 901 is also used to process the first original image using the first image processing parameters to obtain the first processed image.
  • the processing module 901 can also be used to perform S503.
  • the first environment information includes at least one of the following: time information for obtaining the first original image, information on the illumination intensity when obtaining the first original image, information on the illumination direction when obtaining the first original image, information on obtaining the first original image.
  • time information for obtaining the first original image information on the illumination intensity when obtaining the first original image
  • information on the illumination direction when obtaining the first original image information on obtaining the first original image.
  • the processing module 901 is specifically configured to obtain at least one second environment information and at least one second original image.
  • the at least one second original image includes at least one second environment information corresponding to each second environment information.
  • the second original image; the processing module 901 is also specifically configured to obtain at least one target image.
  • the at least one target image includes a target image corresponding to each second environmental information in at least one second environmental information.
  • the second environmental information is to obtain the first
  • the second original image and the third original image corresponding to the second environmental information are environmental information, the third original image is the original image of the target image corresponding to the second environmental information, and the type of information included in the second environmental information is the same as that of the first environment.
  • the processing module 901 is also specifically configured to use at least one second image processing parameter to process at least one second original image respectively to obtain at least one second processed image and the correlation of at least one second processed image.
  • the absolute value of the difference between the coefficient and the correlation coefficient of at least one target image is less than or equal to the first threshold; the processing module 901 is also specifically configured to obtain an image processing model based on at least one second environment information and at least one second image processing parameter.
  • the processing module 901 is also used to obtain a candidate image processing parameter set, where the candidate image processing parameter set includes a plurality of candidate image processing parameters, and the plurality of candidate image processing parameters include at least one second processing parameter.
  • the processing module 901 is also used to obtain initial image processing parameters; the processing module 901 is also used to perform a first operation on the initial image processing parameters to obtain a set of candidate image processing parameters.
  • the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to initial image processing parameters, randomly determining candidate image processing parameters based on initial image processing parameters, or determining candidate image processing parameters based on history. Parameters determine a set of candidate image processing parameters.
  • the image processing model includes functions or algorithms.
  • the image processing device 90 may take the form shown in FIG. 4 .
  • the processor 401 in Figure 4 can cause the image processing device 90 to execute the method described in the above method embodiment by calling the computer execution instructions stored in the memory 403.
  • the function/implementation process of the processing module 901 in Figure 9 can be implemented by the processor 401 in Figure 4 calling the computer execution instructions stored in the memory 403.
  • the above modules or units can be implemented in software, hardware, or a combination of both.
  • the software exists in the form of computer program instructions and is stored in the memory.
  • the processor can be used to execute the program instructions and implement the above method flow.
  • the processor can be built into an SoC (System on a Chip) or ASIC, or it can be an independent semiconductor chip.
  • the processor can further include necessary hardware accelerators, such as field programmable gate array (FPGA), PLD (programmable logic device) , or a logic circuit that implements dedicated logic operations.
  • FPGA field programmable gate array
  • PLD programmable logic device
  • the hardware can be a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, Any one or any combination of SoC, FPGA, PLD, dedicated digital circuits, hardware accelerators or non-integrated discrete devices, which can run the necessary software or not rely on software to perform the above method flow.
  • DSP digital signal processing
  • MCU microcontroller unit
  • embodiments of the present application also provide a chip system, including: at least one processor and an interface.
  • the at least one processor is coupled to the memory through the interface.
  • the at least one processor executes the computer program or instructions in the memory
  • the chip system further includes a memory.
  • the chip system may be composed of chips, or may include chips and other discrete devices, which is not specifically limited in the embodiments of the present application.
  • embodiments of the present application also provide a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program.
  • the program can be stored in the above computer-readable storage medium. When executed, the program can include the processes of the above method embodiments. .
  • the computer-readable storage medium may be an internal storage unit of the image processing device of any of the aforementioned embodiments, such as a hard disk or memory of the image processing device.
  • the computer-readable storage medium may also be an external storage device of the image processing device, such as a plug-in hard drive, a smart media card (SMC), or a secure digital (SD) equipped on the image processing device. card, flash card, etc.
  • SMC smart media card
  • SD secure digital
  • the above computer-readable storage medium may also include both the internal storage unit of the above image processing apparatus and an external storage device.
  • the above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned image processing apparatus.
  • the above-mentioned computer-readable storage media can also be used to temporarily store data that has been output or is to be output.
  • the embodiment of the present application also provides a computer program product. All or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program.
  • the program can be stored in the above computer program product. When executed, the program can include the processes of the above method embodiments.
  • the embodiment of the present application also provides a computer instruction. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct related hardware (such as computers, processors, access network equipment, mobility management network elements or session management network elements, etc.).
  • the program may be stored in the above-mentioned computer-readable storage medium or in the above-mentioned computer program product.
  • embodiments of the present application also provide an intelligent driving vehicle, including the image processing device in the above embodiment.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be The combination can either be integrated into another device, or some features can be omitted, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated.
  • the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units can be selected according to actual needs to achieve the purpose of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.

Landscapes

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

Abstract

The present application relates to the field of image processing, and discloses an image processing method and device, which can reduce the amount of calculation in an image processing process. The method comprises: acquiring an image processing model, a first original image and first environment information; using the first environment information as an input parameter of the image processing model to obtain a first image processing parameter; and processing the first original image by means of the first image processing parameter to obtain a first processed image. The first environment information is information of an environment when the first original image is acquired.

Description

图像处理方法及装置Image processing method and device
“本申请要求于2022年4月28日提交国家知识产权局、申请号为202210470192.7、发明名称为“图像处理方法及装置”的专利申请的优先权,其全部内容通过引用结合在本申请中”。"This application claims priority to the patent application filed with the State Intellectual Property Office on April 28, 2022, with application number 202210470192.7 and the invention name "Image Processing Method and Device", the entire content of which is incorporated into this application by reference." .
技术领域Technical field
本申请涉及图像处理领域,尤其涉及图像处理方法及装置。The present application relates to the field of image processing, and in particular to image processing methods and devices.
背景技术Background technique
在图像处理领域中,图像处理装置可以对获取到的图像进行处理,使得处理后的图像满足一定的要求。例如,图像处理装置可以对亮度较低的图像进行处理,使得处理后的图像的亮度大于或等于阈值1,或者,图像处理装置可以对亮度较高而过曝的图像进行处理,使得处理后的图像的亮度小于或等于阈值2,以便图像识别装置对图像进行识别。In the field of image processing, the image processing device can process the acquired image so that the processed image meets certain requirements. For example, the image processing device can process an image with lower brightness so that the brightness of the processed image is greater than or equal to the threshold 1, or the image processing device can process an image with higher brightness and overexposure so that the processed image The brightness of the image is less than or equal to the threshold 2, so that the image recognition device can recognize the image.
目前,图像处理装置可以采用加权分布自适应伽马校正(adaptive Gamma correction with weighting distribution,AGCWD)算法对原始图像进行处理,得到满足一定要求的处理后的图像。具体的,可以如图1所示。在图1中,图像处理装置可以获取原始图像,根据该原始图像生成灰度直方图,对灰度直方图进行重分布,获得伽马(gamma)参数,通过该gamma参数对原始图像进行增强,得到处理后的图像。上述过程较为复杂,而且计算量大。Currently, image processing devices can use the adaptive Gamma correction with weighting distribution (AGCWD) algorithm to process original images to obtain processed images that meet certain requirements. Specifically, it can be shown in Figure 1. In Figure 1, the image processing device can obtain the original image, generate a grayscale histogram based on the original image, redistribute the grayscale histogram, obtain gamma (gamma) parameters, and enhance the original image through the gamma parameters. Get the processed image. The above process is relatively complex and computationally intensive.
发明内容Contents of the invention
本申请实施例提供图像处理方法及装置,可以降低图像处理过程中的计算量。Embodiments of the present application provide image processing methods and devices, which can reduce the amount of calculation in the image processing process.
为达到上述目的,本申请的实施例采用如下技术方案:In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,提供了一种图像处理方法,执行该方法的装置可以为图像处理装置;也可以为应用于图像处理装置中的模块,例如芯片或芯片系统。下面以执行主体为图像处理装置为例进行描述。该方法包括:获取图像处理模型、第一原始图像和第一环境信息,该第一环境信息为获取该第一原始图像时,环境的信息;将该第一环境信息作为该图像处理模型的输入参数,得到第一图像处理参数;采用该第一图像处理参数对该第一原始图像进行处理,得到第一处理图像。In a first aspect, an image processing method is provided. The device for executing the method may be an image processing device; it may also be a module used in the image processing device, such as a chip or a chip system. The following description takes the execution subject as an image processing device as an example. The method includes: acquiring an image processing model, a first original image and first environment information, where the first environment information is information about the environment when acquiring the first original image; and using the first environment information as an input to the image processing model. parameters to obtain the first image processing parameters; use the first image processing parameters to process the first original image to obtain the first processed image.
基于上述第一方面提供的方法,图像处理装置可以根据获取第一原始图像时,环境的信息以及图像处理模型,得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,得到处理后的图像。在上述方法中,并不涉及灰度直方图的生成、重分布等计算量较大的过程,而是利用提前训练好的,并且与环境信息有关的图像处理模型得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,计算过程较为简便,计算量较小,可以应用于计算能力不高的设备中,使得该设备也能够进行图像处理,或者,应用于对实时性要求较高的场景,如智能驾驶场景,使得智能驾驶车辆能够根据第一处理图像尽快识别目标(如车辆、行人、车道线或障碍物等)。 而且,上述方法是根据获取第一原始图像时,环境的信息以及图像处理模型,得到的第一图像处理参数,也就是说,第一图像处理参数与环境信息有关,而与原始图像无关,因此,不会出现由于原始图像中有深色物体,而导致处理后的图像太亮而过曝的问题。另外,由于第一图像处理参数,是与环境信息有关的参数,所以若两个原始图像对应的环境信息相同(或相差不大),则这两个原始图像对应的第一图像处理参数也相同(或相差不大)。因此,若采用该方法处理视频流,不会出现视频闪烁的问题。Based on the method provided in the first aspect, the image processing device can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image, and process the first original image according to the first image processing parameters, Get the processed image. In the above method, it does not involve the generation and redistribution of grayscale histograms and other computationally intensive processes. Instead, an image processing model trained in advance and related to environmental information is used to obtain the first image processing parameters. According to The first image processing parameter processes the first original image. The calculation process is relatively simple and the calculation amount is small. It can be applied to equipment with low computing power, so that the equipment can also perform image processing, or be applied to real-time processing. Highly demanding scenarios, such as smart driving scenarios, enable smart driving vehicles to identify targets (such as vehicles, pedestrians, lane lines or obstacles, etc.) as quickly as possible based on the first processed image. Moreover, the above method obtains the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image. That is to say, the first image processing parameters are related to the environmental information and have nothing to do with the original image. Therefore, , there will be no problem that the processed image is too bright and overexposed due to dark objects in the original image. In addition, since the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur.
一种可能的实现方式,该第一环境信息包括以下至少一项:获取该第一原始图像的时间信息、获取该第一原始图像时光照强度的信息、获取该第一原始图像时光照方向的信息、获取该第一原始图像时的亮度信息或获取该第一原始图像时的位置信息。In a possible implementation, the first environment information includes at least one of the following: time information for obtaining the first original image, information on the illumination intensity when the first original image is obtained, and information on the illumination direction when the first original image is obtained. information, brightness information when the first original image is obtained, or position information when the first original image is obtained.
可以理解的,上述信息与gamma矫正功能有关。因此,可以使得根据第一环境信息得到的第一图像处理参数能够用于gamma矫正。另外,在拍摄视频时,上述信息也是平滑过度的,即视频中相邻两帧图像对应的第一环境信息相差不大,所以根据该第一环境信息得到的相邻两帧图像对应的第一处理参数也相差不大,也就不会出现视频闪烁的问题。It can be understood that the above information is related to the gamma correction function. Therefore, the first image processing parameters obtained according to the first environment information can be used for gamma correction. In addition, when shooting a video, the above information is also smooth and excessive, that is, the first environment information corresponding to two adjacent frames of images in the video is not much different, so the first environment information corresponding to the two adjacent frames of images obtained based on the first environment information The processing parameters are not much different, so there will be no problem of video flickering.
一种可能的实现方式,获取图像处理模型,包括:获取至少一个第二环境信息和至少一个第二原始图像,该至少一个第二原始图像包括该至少一个第二环境信息中每个第二环境信息对应的第二原始图像;获取至少一个目标图像,该至少一个目标图像包括该至少一个第二环境信息中每个第二环境信息对应的目标图像,该第二环境信息为获取该第二环境信息对应的第二原始图像和第三原始图像时,环境的信息,该第三原始图像为该第二环境信息对应的目标图像的原始图像,该第二环境信息包括的信息的类型与该第一环境信息包括的信息的类型相同;根据该至少一个第二环境信息、该至少一个第二原始图像和该至少一个目标图像,获取该图像处理模型。A possible implementation manner, obtaining an image processing model includes: obtaining at least one second environment information and at least one second original image, the at least one second original image including each second environment in the at least one second environment information A second original image corresponding to the information; acquiring at least one target image, the at least one target image including a target image corresponding to each second environment information in the at least one second environment information, the second environment information is to obtain the second environment When the second original image and the third original image corresponding to the information are environmental information, the third original image is the original image of the target image corresponding to the second environmental information, and the type of information included in the second environmental information is the same as that of the third original image. A piece of environmental information includes the same type of information; the image processing model is obtained according to the at least one second environmental information, the at least one second original image and the at least one target image.
基于上述可能的实现方式,图像处理装置可以得到图像处理模型。Based on the above possible implementation manner, the image processing device can obtain the image processing model.
一种可能的实现方式,根据该至少一个第二环境信息、该至少一个第二原始图像和该至少一个目标图像,获取该图像处理模型,包括:采用至少一个第二图像处理参数分别对该至少一个第二原始图像进行处理,得到至少一个第二处理图像,该至少一个第二处理图像的相关系数与该至少一个目标图像的相关系数之差的绝对值小于或等于第一阈值;根据该至少一个第二环境信息和该至少一个第二图像处理参数,得到该图像处理模型。A possible implementation manner, obtaining the image processing model according to the at least one second environment information, the at least one second original image and the at least one target image includes: using at least one second image processing parameter to respectively A second original image is processed to obtain at least one second processed image, and the absolute value of the difference between the correlation coefficient of the at least one second processed image and the correlation coefficient of the at least one target image is less than or equal to the first threshold; according to the at least one A second environment information and the at least one second image processing parameter are used to obtain the image processing model.
基于上述可能的实现方式,图像处理装置可以对至少一个第二图像处理参数,以及至少一个第二环境信息进行训练,得到图像处理模型。其中,至少一个第二图像处理参数能够使得至少一个第二处理图像与至少一个目标图像相似度较高,所以,将环境信息(如第一环境信息)输入到根据上述方法得到的图像处理模型中,可以得到图像处理参数(如第一图像处理参数),采用该图像处理参数处理环境信息对应的原始图像(如第一原始图像),能够使得处理后的图像(如第一处理图像)与至少一个目标图像相似度较高。也就是说,处理后的图像也能够满足目标图像所满足的要求。Based on the above possible implementation manner, the image processing device can train at least one second image processing parameter and at least one second environment information to obtain an image processing model. Wherein, at least one second image processing parameter can make at least one second processed image have a high similarity with at least one target image. Therefore, environmental information (such as first environmental information) is input into the image processing model obtained according to the above method. , the image processing parameters (such as the first image processing parameters) can be obtained, and the original image (such as the first original image) corresponding to the environmental information is processed by using the image processing parameters, so that the processed image (such as the first processed image) can be compared with at least A target image has higher similarity. In other words, the processed image can also meet the requirements of the target image.
一种可能的实现方式,在采用至少一个第二图像处理参数分别对该至少一个第二原始图像进行处理,得到至少一个第二处理图像之前,该方法还包括:获取候选图像处理参数集合,该候选图像处理参数集合包括多个候选图像处理参数,该多个候选图 像处理参数包括该至少一个第二处理参数。In one possible implementation, before using at least one second image processing parameter to respectively process the at least one second original image to obtain at least one second processed image, the method further includes: obtaining a set of candidate image processing parameters, the The set of candidate image processing parameters includes a plurality of candidate image processing parameters, the plurality of candidate image processing parameters including the at least one second processing parameter.
基于上述可能的实现方式,图像处理装置可以先获取多个候选的参数,再采用该候选的参数对第二原始图像进行处理得到处理后的图像,若该处理后的图像的相关系数与目标图像的相关系数之差的绝对值小于或等于第一阈值,则图像处理装置将该处理后的图像所对应的候选的参数确定为第二处理参数。Based on the above possible implementation, the image processing device can first obtain multiple candidate parameters, and then use the candidate parameters to process the second original image to obtain a processed image. If the correlation coefficient of the processed image is consistent with the target image If the absolute value of the difference between the correlation coefficients is less than or equal to the first threshold, the image processing device determines the candidate parameter corresponding to the processed image as the second processing parameter.
一种可能的实现方式,该方法还包括:获取初始图像处理参数;对该初始图像处理参数执行第一操作,得到该候选图像处理参数集合。In a possible implementation, the method further includes: obtaining initial image processing parameters; performing a first operation on the initial image processing parameters to obtain the candidate image processing parameter set.
基于上述可能的实现方式,图像处理装置可以得到候选图像处理参数集合。Based on the above possible implementation manner, the image processing apparatus can obtain the candidate image processing parameter set.
一种可能的实现方式,该第一操作包括以下至少一项:根据该初始图像处理参数按照规律确定候选图像处理参数,根据该初始图像处理参数随机确定候选图像处理参数,或根据历史上确定的候选图像处理参数确定该候选图像处理参数集合。In a possible implementation, the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to the initial image processing parameters, randomly determining candidate image processing parameters based on the initial image processing parameters, or determining candidate image processing parameters based on historically determined parameters. The candidate image processing parameters determine the set of candidate image processing parameters.
基于上述可能的实现方式,图像处理装置可以通过多种方式获取候选图像处理参数集合,提高了获取候选图像处理参数集合的灵活性和多样性。Based on the above possible implementation manner, the image processing device can obtain the candidate image processing parameter set through multiple methods, which improves the flexibility and diversity of obtaining the candidate image processing parameter set.
一种可能的实现方式,该图像处理模型包括函数或算法。In a possible implementation manner, the image processing model includes functions or algorithms.
可以理解的,用函数或算法对第一环境信息中的参数进行计算的计算量要远小于灰度直方图的生成、重分布的计算量。因此,可以大大提升图像处理装置处理图像的速度。It can be understood that the calculation amount of using a function or algorithm to calculate the parameters in the first environment information is much less than the calculation amount of generating and redistributing the grayscale histogram. Therefore, the image processing speed of the image processing device can be greatly improved.
第二方面,提供了一种图像处理装置用于实现上述方法。该图像处理装置可以为上述第一方面中的图像处理装置,或者包含上述图像处理装置的装置。该图像处理装置包括实现上述方法相应的模块、单元、或手段(means),该模块、单元、或means可以通过硬件实现,软件实现,或者通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块或单元。In a second aspect, an image processing device is provided for implementing the above method. The image processing device may be the image processing device in the above-described first aspect, or a device including the above-described image processing device. The image processing device includes corresponding modules, units, or means (means) for implementing the above method. The modules, units, or means can be implemented by hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
结合上述第二方面,在一种可能的实现方式中,该图像处理装置可以包括处理模块。该处理模块,可以用于实现上述任一方面及其任意可能的实现方式中的处理功能。该处理模块例如可以为处理器。In conjunction with the above second aspect, in a possible implementation, the image processing device may include a processing module. This processing module can be used to implement the processing functions in any of the above aspects and any possible implementation manner thereof. The processing module may be, for example, a processor.
第三方面,提供了一种图像处理装置,包括:处理器;该处理器用于与存储器耦合,并读取存储器中的指令之后,根据该指令执行如上述第一方面所述的方法。该图像处理装置可以为上述第一方面中的图像处理装置,或者包含上述图像处理装置的装置。A third aspect provides an image processing device, including: a processor; the processor is configured to be coupled to a memory, and after reading instructions in the memory, execute the method described in the first aspect according to the instructions. The image processing device may be the image processing device in the above-described first aspect, or a device including the above-described image processing device.
结合上述第三方面,在一种可能的实现方式中,该图像处理装置还包括存储器,该存储器,用于保存必要的程序指令和数据。In conjunction with the above third aspect, in a possible implementation, the image processing device further includes a memory, and the memory is used to store necessary program instructions and data.
结合上述第三方面,在一种可能的实现方式中,该图像处理装置为芯片或芯片系统。可选的,该图像处理装置是芯片系统时,可以由芯片构成,也可以包含芯片和其他分立器件。In conjunction with the above third aspect, in a possible implementation manner, the image processing device is a chip or a chip system. Optionally, when the image processing device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
第四方面,提供了一种图像处理装置,包括:处理器和接口电路;接口电路,用于接收计算机程序或指令并传输至处理器;处理器用于执行所述计算机程序或指令,以使该图像处理装置执执行如上述第一方面所述的方法。In a fourth aspect, an image processing device is provided, including: a processor and an interface circuit; the interface circuit is used to receive a computer program or instructions and transmit them to the processor; the processor is used to execute the computer program or instructions, so that the The image processing device executes the method described in the above first aspect.
结合上述第四方面,在一种可能的实现方式中,该图像处理装置为芯片或芯片系统。可选的,该图像处理装置是芯片系统时,可以由芯片构成,也可以包含芯片和其 他分立器件。In conjunction with the fourth aspect, in a possible implementation, the image processing device is a chip or a chip system. Optionally, when the image processing device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
第五方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面所述的方法。In a fifth aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium, and when run on a computer, the computer can execute the method described in the first aspect.
第六方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面所述的方法。A sixth aspect provides a computer program product containing instructions that, when run on a computer, enable the computer to execute the method described in the first aspect.
第七方面,提供了一种智能驾驶车辆,该智能驾驶车辆包括用于执行上述第一方面所述的方法的图像处理装置。A seventh aspect provides an intelligent driving vehicle, which includes an image processing device for executing the method described in the first aspect.
其中,第二方面至第七方面中任一种可能的实现方式所带来的技术效果可参见上述第一方面或第一方面中不同可能的实现方式所带来的技术效果,此处不再赘述。Among them, the technical effects brought by any possible implementation method in the second to seventh aspects can be referred to the technical effects brought by the above-mentioned first aspect or different possible implementation methods in the first aspect, which will not be discussed here. Repeat.
可以理解的是,在方案不矛盾的前提下,上述各个方面中的方案均可以结合。It is understandable that, on the premise that the solutions are not inconsistent, the solutions in each of the above aspects can be combined.
附图说明Description of drawings
图1为图像处理过程的示意图;Figure 1 is a schematic diagram of the image processing process;
图2为图像处理前后的示意图;Figure 2 is a schematic diagram before and after image processing;
图3A为本申请实施例提供的图像处理系统架构示意图;Figure 3A is a schematic diagram of the image processing system architecture provided by an embodiment of the present application;
图3B为本申请实施例提供的图像处理装置的示意图;Figure 3B is a schematic diagram of an image processing device provided by an embodiment of the present application;
图4为本申请实施例提供的图像处理装置的硬件结构示意图;Figure 4 is a schematic diagram of the hardware structure of an image processing device provided by an embodiment of the present application;
图5为本申请实施例提供的图像处理方法的流程示意图一;Figure 5 is a schematic flowchart 1 of the image processing method provided by the embodiment of the present application;
图6为本申请实施例提供的图像处理方法的流程示意图二;Figure 6 is a schematic flowchart 2 of the image processing method provided by the embodiment of the present application;
图7为本申请实施例提供的特征提取方法的流程示意图;Figure 7 is a schematic flow chart of the feature extraction method provided by the embodiment of the present application;
图8为本申请实施例提供的图像处理模型的示意图;Figure 8 is a schematic diagram of an image processing model provided by an embodiment of the present application;
图9为本申请实施例提供的图像处理装置的结构示意图。FIG. 9 is a schematic structural diagram of an image processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
在介绍本申请实施例之前,对本申请实施例涉及的相关技术术语进行解释说明。可以理解的是,这些解释说明是为了让本申请实施例更容易被理解,而不应该视为对本申请实施例所要求的保护范围的限定。Before introducing the embodiments of the present application, relevant technical terms involved in the embodiments of the present application will be explained. It can be understood that these explanations are intended to make the embodiments of the present application easier to understand and should not be regarded as limiting the scope of protection required by the embodiments of the present application.
1、图像数据类型1. Image data type
可以理解的,图像感知装置(如:摄像机)可以将环境光信号,投影到视觉传感器芯片中,视觉传感器芯片可以将光信号转换为电信号,并保持为原始数据(RAW)图像。后续,图像处理装置可以将RAW图像转换为红绿蓝(red green blue,RGB)图像。也就是说,图像数据类型可以包括RAW图像或RGB图像。It can be understood that the image sensing device (such as a camera) can project the ambient light signal into the visual sensor chip, and the visual sensor chip can convert the light signal into an electrical signal and maintain it as a raw data (RAW) image. Subsequently, the image processing device can convert the RAW image into a red green blue (RGB) image. That is, the image data type may include RAW images or RGB images.
本申请实施例中,RAW图像可以表示原生的、未被处理的图像。例如,RAW图像包含从数码相机、手机、平板电脑或扫描器等图像感知装置所感知的图像。RAW图像对应有RAW文件。RAW文件可以包含创建可视图像所需要的数据信息,如文件头和像素区域的信息。RAW文件的结构可以遵循一个共同的模式。例如,RAW文件的结构可以包含符合国际标准化组织(international organization for standardization,ISO)标准的RAW图像格式ISO12234-2或TIFF/EP。有时,RAW图像可以指bayer格式的图像,其像素数量和图像感知装置所感知的图像的像素数量相同,为宽度(width)*高度(height)*1大小的矩阵,即像素区域的信息包括width*height*1大小的矩阵。 其中,width和height分别表示图片的宽和高,1表示RAW图像有一个通道。每个像素表示红(red,R)、绿(green,G)或蓝(blue,B)三种颜色中的一种,通常使用0.0~1.0的浮点数表示每种颜色的信号强度。In the embodiment of the present application, a RAW image may represent a native, unprocessed image. For example, RAW images include images sensed from image sensing devices such as digital cameras, mobile phones, tablets, or scanners. RAW images correspond to RAW files. RAW files can contain data information needed to create a viewable image, such as file header and pixel area information. The structure of RAW files can follow a common pattern. For example, the structure of a RAW file may include a RAW image format ISO12234-2 or TIFF/EP that complies with the International Organization for Standardization (ISO) standard. Sometimes, a RAW image can refer to an image in bayer format. The number of pixels is the same as the number of pixels in the image perceived by the image sensing device. It is a matrix of width (width) * height (height) * 1, that is, the information of the pixel area includes width A matrix of size *height*1. Among them, width and height indicate the width and height of the image respectively, and 1 indicates that the RAW image has one channel. Each pixel represents one of three colors: red (red, R), green (green, G), or blue (blue, B). A floating point number from 0.0 to 1.0 is usually used to represent the signal strength of each color.
本申请实施例中,RGB图像可以表示RAW图像经过图像处理器(image signal processor,ISP)处理后生成的各种人眼友好的图像,例如,常见的jpeg格式的图像、BMP格式的图像或PNG格式的图像等等。跟RAW文件相比,RGB图像对应的文件不包括文件头,但是包括像素区域的信息。例如,RGB图像对应的文件包括width*height*3的矩阵。3表示RGB图像有3个通道,每个通道分别表示R/G/B三种颜色中的一种,使用0~255的整数表示图像的每个像素值。In the embodiment of this application, RGB images can represent various eye-friendly images generated after RAW images are processed by an image signal processor (ISP), for example, common jpeg format images, BMP format images or PNG format images, etc. Compared with RAW files, files corresponding to RGB images do not include file headers, but include pixel area information. For example, the file corresponding to an RGB image includes a matrix of width*height*3. 3 means that the RGB image has 3 channels, each channel represents one of the three colors of R/G/B, and an integer from 0 to 255 is used to represent each pixel value of the image.
2.ISP图像处理流程2.ISP image processing process
本申请实施例中,图像处理装置可以包括ISP,用于处理图像。不同的图像处理装置所使用的ISP可以相同也可以不同。其中,ISP可以具备以下至少一种功能:去马赛克、黑电平矫正、镜头矫正、坏像素矫正、gamma矫正、去噪、白平衡或色彩映射。对于上述任一种功能,不同的图像处理装置的ISP所使用的参数可以相同也可以不同。例如,对于图像1,图像处理装置1的ISP通过gamma参数1对图像1进行处理,得到图像2,图像处理装置2的ISP通过gamma参数2对图像1进行处理,得到图像3。或者,对于图像1,图像处理装置1的ISP和图像处理装置2的ISP都通过gamma参数1对图像1进行处理,得到图像2。In this embodiment of the present application, the image processing device may include an ISP for processing images. The ISPs used by different image processing devices may be the same or different. Among them, the ISP can have at least one of the following functions: demosaicing, black level correction, lens correction, bad pixel correction, gamma correction, denoising, white balance or color mapping. For any of the above functions, the parameters used by the ISPs of different image processing devices may be the same or different. For example, for image 1, the ISP of image processing device 1 processes image 1 through gamma parameter 1 to obtain image 2, and the ISP of image processing device 2 processes image 1 through gamma parameter 2 to obtain image 3. Or, for image 1, both the ISP of image processing device 1 and the ISP of image processing device 2 process image 1 through gamma parameter 1 to obtain image 2.
可以理解的,本申请实施例提供的图像处理方法可以应用于上述一种或多种功能,例如,可以根据环境信息获取上述一种或多种功能中的参数,根据获取到的参数对图像进行处理,得到处理后的图像。本申请下述实施例是以图像处理方法应用于gamma矫正(例如,根据环境信息获取gamma参数,根据gamma参数对图像进行处理,得到处理后的图像)为例进行描述的,本申请实施例提供的图像处理方法应用于其他功能的情况与应用于gamma矫正的情况类似,可以参考本申请下述实施例中所述,不予赘述。It can be understood that the image processing method provided by the embodiment of the present application can be applied to one or more of the above functions. For example, parameters in one or more of the above functions can be obtained according to environmental information, and the image can be processed according to the obtained parameters. Process to get the processed image. The following embodiments of the present application are described by taking the image processing method applied to gamma correction (for example, obtaining gamma parameters according to environmental information, processing the image according to the gamma parameters, and obtaining a processed image) as an example. The embodiments of the present application provide The application of the image processing method to other functions is similar to the application to gamma correction. Please refer to the following embodiments of this application and will not be described again.
请参考图2。图2示出了从日出到日落,不同光照条件下拍摄的图像。在图2中,早晨5:00(5:00am)和下午19:00(19:00pm)拍摄的原始图像的亮度较低,图像太暗,而下午13:00(13:00pm)拍摄的原始图像的亮度较高,图像太亮而过曝,都使得图像识别装置不易识别图像中的内容,如:图像中的物体或人物等。可以将图2中的原始图像通过图1所示的方法调整图像的亮度,得到处理后的图像。显然,处理后的图像的亮度适中,能够提高图像识别装置的识别率以及识别物体的准确率。然而,图1所示的方法较为复杂,计算量较大。通常,数字信号处理(digital signal processing,DSP)芯片使用这种算法时,需要耗费几十毫秒的时间。对于一些对实时性要求较高的场景,如智能驾驶场景,并不适用。而且,在图1所示方法中,若原始图像中有深色物体,则处理后的图像更亮,可能会出现图像太亮而过曝的情况。另外,在图1所示的方法中,根据不同原始图像获得的gamma参数不同。所以,若采用图1所示方法处理视频流,会出现相邻两帧图像的gamma参数不同的情况。由于gamma参数与图像亮度有关,所以会出现视频闪烁的问题。Please refer to Figure 2. Figure 2 shows images taken under different lighting conditions from sunrise to sunset. In Figure 2, the original images taken at 5:00am (5:00am) and 19:00pm (19:00pm) have lower brightness and the images are too dark, while the original images taken at 13:00pm (13:00pm) The brightness of the image is high, and the image is too bright and overexposed, which makes it difficult for the image recognition device to identify the content in the image, such as objects or people in the image. The original image in Figure 2 can be used to adjust the brightness of the image through the method shown in Figure 1 to obtain the processed image. Obviously, the brightness of the processed image is moderate, which can improve the recognition rate of the image recognition device and the accuracy of identifying objects. However, the method shown in Figure 1 is more complex and requires a large amount of calculation. Usually, when digital signal processing (DSP) chips use this algorithm, it takes tens of milliseconds. It is not suitable for some scenarios that require high real-time performance, such as intelligent driving scenarios. Moreover, in the method shown in Figure 1, if there are dark objects in the original image, the processed image will be brighter, and the image may be too bright and overexposed. In addition, in the method shown in Figure 1, the gamma parameters obtained according to different original images are different. Therefore, if the method shown in Figure 1 is used to process the video stream, the gamma parameters of two adjacent frames of images will be different. Since the gamma parameter is related to image brightness, the problem of video flickering may occur.
为了解决上述问题,本申请实施例提供了一种图像处理方法,该图像处理方法可 以根据获取第一原始图像时,环境的信息以及图像处理模型,得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,得到处理后的图像。在上述方法中,并不涉及灰度直方图的生成、重分布等计算量较大的过程,而是利用提前训练好的,并且与环境信息有关的图像处理模型得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,计算过程较为简便,计算量较小。而且,上述方法是根据获取第一原始图像时,环境的信息以及图像处理模型,得到的第一图像处理参数,也就是说,第一图像处理参数与环境信息有关,而与原始图像无关,因此,不会出现由于原始图像中有深色物体,而导致处理后的图像太亮而过曝的问题。另外,由于第一图像处理参数,是与环境信息有关的参数,所以若两个原始图像对应的环境信息相同(或相差不大),则这两个原始图像对应的第一图像处理参数也相同(或相差不大)。因此,若采用该方法处理视频流,不会出现视频闪烁的问题。该方法的具体过程将在下述图5所示的实施例中进行介绍,在此不做赘述。In order to solve the above problems, embodiments of the present application provide an image processing method. The image processing method can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image. According to the first image processing The parameters are used to process the first original image to obtain the processed image. In the above method, it does not involve the generation and redistribution of grayscale histograms and other computationally intensive processes. Instead, an image processing model trained in advance and related to environmental information is used to obtain the first image processing parameters. According to The first image processing parameter processes the first original image, the calculation process is relatively simple, and the calculation amount is small. Moreover, the above method obtains the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image. That is to say, the first image processing parameters are related to the environmental information and have nothing to do with the original image. Therefore, , there will be no problem that the processed image is too bright and overexposed due to dark objects in the original image. In addition, since the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur. The specific process of this method will be introduced in the embodiment shown in Figure 5 below, and will not be described again here.
下面结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
本申请实施例提供的方法可用于各种图像处理系统,以对原始图像进行处理,得到处理后的图像,使得处理后的图像满足一定的要求。下面以图3A所示图像处理系统30为例,对本申请实施例提供的方法进行描述。The method provided by the embodiments of the present application can be used in various image processing systems to process the original image and obtain a processed image, so that the processed image meets certain requirements. The following uses the image processing system 30 shown in FIG. 3A as an example to describe the method provided by the embodiment of the present application.
如图3A所示,为本申请实施例提供的一种图像处理系统30的架构示意图。图3A中,图像处理系统30可以包括一个或多个图像处理装置301(仅示出了1个)。可选的,图像处理系统30还包括可以与图像处理装置301进行通信的图像感知装置302和/或图像识别装置303。图3A仅为示意图,并不构成对本申请提供的技术方案的适用场景的限定。As shown in FIG. 3A , it is a schematic architectural diagram of an image processing system 30 provided by an embodiment of the present application. In FIG. 3A , the image processing system 30 may include one or more image processing devices 301 (only one is shown). Optionally, the image processing system 30 also includes an image sensing device 302 and/or an image recognition device 303 that can communicate with the image processing device 301 . FIG. 3A is only a schematic diagram and does not constitute a limitation on the applicable scenarios of the technical solution provided by this application.
本申请实施例中的图像处理装置,例如:图像处理装置301可以是任意一种具有计算功能的装置。可选的,图像处理装置还具备图像感知能力和/或图像识别能力,例如,能够感知原始图像(或拍摄原始图像)和/或能够识别图像中的内容等。作为一种示例,图像处理装置301可以获取图像处理模型、第一原始图像和第一环境信息,将第一环境信息作为图像处理模型的输入参数,得到第一图像处理参数,采用第一图像处理参数对第一原始图像进行处理,得到第一处理图像。其中,第一环境信息为获取第一原始图像时,环境的信息。The image processing device in the embodiment of the present application, for example, the image processing device 301 can be any device with computing functions. Optionally, the image processing device also has image perception capabilities and/or image recognition capabilities, for example, it can perceive the original image (or shoot the original image) and/or be able to identify the content in the image. As an example, the image processing device 301 can obtain the image processing model, the first original image and the first environment information, use the first environment information as an input parameter of the image processing model, obtain the first image processing parameters, and use the first image processing The parameters are used to process the first original image to obtain the first processed image. The first environment information is information about the environment when the first original image is acquired.
在本申请实施例中,图像处理装置包括但不限于:手持式设备、车载设备、计算设备或智能驾驶车辆。示例性的,图像处理装置可以是手机(mobile phone)、平板电脑、电脑、车内的各种具备计算能力的设备或具备自动驾驶功能或辅助驾驶功能的智能驾驶车辆。车内的各种具备计算能力的设备可以包括:网关、车载T-Box(telematics box)、车身控制模块(body control module,BCM)、智能座舱域控制器(cockpit domain controller,CDC)、多域控制器(multi domain controller,MDC)、整车控制单元(vehicle control unit,VCU)、电子控制单元(electronic control unit,ECU)、车控域控制器(vehicle domain controller,VDC)或整车集成单元(vehicle integrated/integration unit,VIU)等。自动驾驶是指在车辆行驶过程中不需要驾驶人员的参与,车辆中的自动驾驶装置就能够操作车辆安全行驶。辅助驾驶是指在车辆行驶过程中,车辆中的辅助驾驶装置辅助驾驶人员安全驾驶。自动驾驶或辅助驾驶也可以称为智能驾驶。In the embodiment of this application, the image processing device includes but is not limited to: handheld device, vehicle-mounted device, computing device or intelligent driving vehicle. For example, the image processing device may be a mobile phone, a tablet, a computer, various devices with computing capabilities in a car, or an intelligent driving vehicle with an automatic driving function or an assisted driving function. Various devices with computing capabilities in the car can include: gateway, vehicle T-Box (telematics box), body control module (BCM), smart cockpit domain controller (cockpit domain controller, CDC), multi-domain Controller (multi domain controller, MDC), vehicle control unit (vehicle control unit, VCU), electronic control unit (electronic control unit, ECU), vehicle domain controller (vehicle domain controller, VDC) or vehicle integrated unit (vehicle integrated/integration unit, VIU) etc. Automatic driving means that the automatic driving device in the vehicle can operate the vehicle to drive safely without the participation of the driver during the driving process. Assisted driving refers to the auxiliary driving device in the vehicle that assists the driver in safe driving while the vehicle is driving. Autonomous driving or assisted driving can also be called intelligent driving.
可以理解的,图像处理装置还可以是虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、可穿戴设备、工业控制中的无线终端、无人驾驶中的无线终端、远程医疗中的无线终端、智能电网中的无线终端、智慧城市(smart city)中的无线终端、或智慧家庭(smart home)中的无线终端等等。It can be understood that the image processing device can also be a virtual reality (VR) device, an augmented reality (AR) device, a wearable device, a wireless terminal in industrial control, a wireless terminal in driverless driving, or a remote control device. Wireless terminals in medical treatment, wireless terminals in smart grids, wireless terminals in smart cities, or wireless terminals in smart homes, etc.
在本申请中,图像处理装置还可以是物联网(internet of things,IoT)系统中的终端,IoT是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。本申请的图像处理装置可以是作为一个或多个部件或者单元而内置于车辆的车载模块、车载模组、车载部件、车载芯片或者车载单元,车辆通过内置的所述车载模块、车载模组、车载部件、车载芯片或者车载单元可以实施本申请的方法。因此,本申请实施例可以应用于车联网,例如车辆外联(vehicle to everything,V2X)、车间通信长期演进技术(long term evolution vehicle,LTE-V)、车到车(vehicle to vehicle,V2V)等。In this application, the image processing device can also be a terminal in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect items to the network through communication technology. This enables an intelligent network of human-computer interconnection and physical-object interconnection. The image processing device of the present application may be a vehicle-mounted module, vehicle-mounted module, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit built into the vehicle as one or more components or units. The vehicle uses the built-in vehicle-mounted module, vehicle-mounted module, Vehicle-mounted components, vehicle-mounted chips or vehicle-mounted units can implement the method of the present application. Therefore, the embodiments of the present application can be applied to the Internet of Vehicles, such as vehicle outreach (vehicle to everything, V2X), inter-vehicle communication long term evolution technology (long term evolution vehicle, LTE-V), vehicle to vehicle (vehicle to vehicle, V2V) wait.
本申请实施例中的图像感知装置,例如,图像感知装置302,可以是任意一个具备图像感知能力的设备。例如,图像感知装置可以包括单目摄像机、双目摄像机、三目摄像机、深度摄像机或扫描仪中的一种或多种。The image sensing device in the embodiment of the present application, for example, the image sensing device 302, can be any device with image sensing capabilities. For example, the image sensing device may include one or more of a monocular camera, a binocular camera, a trinocular camera, a depth camera, or a scanner.
本申请实施例中的图像识别装置,例如,图像识别装置303,可以是任意一个具备图像识别能力的设备,能够识别图像中的内容。The image recognition device in the embodiment of the present application, for example, the image recognition device 303, can be any device with image recognition capabilities and can recognize the content in the image.
图3A所示的图像处理系统30仅用于举例,并非用于限制本申请的技术方案。本领域的技术人员应当明白,在具体实现过程中,图像处理系统30还可以包括其他设备,同时也可根据具体需要来确定图像处理装置、图像感知装置或图像识别装置的数量,不予限制。The image processing system 30 shown in FIG. 3A is only used as an example and is not used to limit the technical solution of the present application. Those skilled in the art should understand that during specific implementation, the image processing system 30 may also include other equipment, and the number of image processing devices, image sensing devices or image recognition devices may also be determined according to specific needs without limitation.
可以理解的,本申请实施例中的图像处理装置的功能可以由一个设备或模块实现,也可以由多个设备或模块实现。作为一种示例,若图像处理装置的功能由多个设备或模块实现,图像处理装置可以如图3B所示。It can be understood that the functions of the image processing apparatus in the embodiments of the present application can be implemented by one device or module, or by multiple devices or modules. As an example, if the functions of the image processing device are implemented by multiple devices or modules, the image processing device may be as shown in Figure 3B.
在图3B中,图像处理装置301可以包括多个模块,分别是模型获取模块3011、信息获取模块3012和图像处理模块3013。可选的,图像处理装置301还包括图像获取模块3014和/或图像识别模块3015。In Figure 3B, the image processing device 301 may include multiple modules, namely a model acquisition module 3011, an information acquisition module 3012 and an image processing module 3013. Optionally, the image processing device 301 also includes an image acquisition module 3014 and/or an image recognition module 3015.
作为一种示例,模型获取模块3011可以用于获取图像处理模型,并向图像处理模块3013发送图像处理模型。信息获取模块3012可以用于获取第一环境信息,并向图像处理模块3013发送第一环境信息。图像处理模块3013可以用于接收来自模型获取模块3011的图像处理模型,接收来自信息获取模块3012的第一环境信息,获取第一原始图像,将第一环境信息作为图像处理模型的输入参数,得到第一图像处理参数,并采用第一图像处理参数对第一原始图像进行处理,得到第一处理图像。可选的,图像处理模块3013还可以向图像识别模块3015发送第一处理图像,使得图像识别模块3015可以识别第一处理图像中的内容等。As an example, the model acquisition module 3011 can be used to acquire an image processing model and send the image processing model to the image processing module 3013. The information acquisition module 3012 may be used to acquire the first environment information and send the first environment information to the image processing module 3013. The image processing module 3013 can be used to receive the image processing model from the model acquisition module 3011, receive the first environment information from the information acquisition module 3012, acquire the first original image, and use the first environment information as an input parameter of the image processing model to obtain first image processing parameters, and use the first image processing parameters to process the first original image to obtain a first processed image. Optionally, the image processing module 3013 can also send the first processed image to the image recognition module 3015, so that the image recognition module 3015 can recognize the content in the first processed image, etc.
作为另一种示例,模型获取模块3011可以用于获取图像处理模型,并向图像处理模块3013发送图像处理模型。信息获取模块3012可以用于获取第一环境信息,并向图像处理模块3013发送第一环境信息。图像获取模块3014可以用于获取第一原始图像,并向图像处理模块3013发送第一原始图像。图像处理模块3013可以用于接收来 自模型获取模块3011的图像处理模型,接收来自信息获取模块3012的第一环境信息,接收来自图像获取模块3014的第一原始图像,将第一环境信息作为图像处理模型的输入参数,得到第一图像处理参数,并采用第一图像处理参数对第一原始图像进行处理,得到第一处理图像。可选的,图像处理模块3013还可以向图像识别模块3015发送第一处理图像,使得图像识别模块3015可以识别第一处理图像中的内容等。As another example, the model acquisition module 3011 may be used to acquire an image processing model and send the image processing model to the image processing module 3013. The information acquisition module 3012 may be used to acquire the first environment information and send the first environment information to the image processing module 3013. The image acquisition module 3014 may be used to acquire the first original image and send the first original image to the image processing module 3013. The image processing module 3013 may be configured to receive the image processing model from the model acquisition module 3011, receive the first environment information from the information acquisition module 3012, receive the first original image from the image acquisition module 3014, and process the first environment information as an image. The input parameters of the model are used to obtain the first image processing parameters, and the first original image is processed using the first image processing parameters to obtain the first processed image. Optionally, the image processing module 3013 can also send the first processed image to the image recognition module 3015, so that the image recognition module 3015 can recognize the content in the first processed image, etc.
在图3B中,“模块”可以替换为“设备”。例如,“图像处理模块”可以替换为“图像处理设备”。In Figure 3B, "module" can be replaced by "device". For example, "image processing module" can be replaced by "image processing device".
图3B所示的图像处理装置301仅用于举例,并非用于限制本申请的技术方案。本领域的技术人员应当明白,在具体实现过程中,图像处理装置301还可以包括其他模块或设备,同时也可根据具体需要来确定模型获取模块、信息获取模块、图像处理模块、图像获取模块或图像识别模块的数量,不予限制。The image processing device 301 shown in FIG. 3B is only used as an example and is not used to limit the technical solution of the present application. Those skilled in the art should understand that during specific implementation, the image processing device 301 may also include other modules or equipment, and may also determine a model acquisition module, an information acquisition module, an image processing module, an image acquisition module, or a module according to specific needs. The number of image recognition modules is not limited.
可选的,本申请实施例图3A或图3B中的各装置或模块(例如图像处理装置、模型获取模块、信息获取模块、或图像处理模块等)可以是一个通用设备或者是一个专用设备,本申请实施例对此不作具体限定。Optionally, each device or module (such as an image processing device, a model acquisition module, an information acquisition module, or an image processing module, etc.) in Figure 3A or Figure 3B in the embodiment of this application can be a general device or a special device, The embodiments of the present application do not specifically limit this.
可选的,本申请实施例图3A或图3B中的各装置或模块(例如图像处理装置、模型获取模块、信息获取模块、或图像处理模块等)的相关功能可以由一个设备实现,也可以由多个设备共同实现,还可以是由一个设备内的一个或多个功能模块实现,本申请实施例对此不作具体限定。可以理解的是,上述功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行的软件功能,或者硬件与软件的结合,或者平台(例如,云平台)上实例化的虚拟化功能。Optionally, the relevant functions of each device or module (such as an image processing device, a model acquisition module, an information acquisition module, or an image processing module, etc.) in Figure 3A or Figure 3B in the embodiment of this application can be implemented by one device, or they can It can be jointly implemented by multiple devices, or can also be implemented by one or more functional modules in one device, which is not specifically limited in the embodiments of the present application. It can be understood that the above functions can be either network elements in hardware devices, software functions running on dedicated hardware, or a combination of hardware and software, or virtualization instantiated on a platform (for example, a cloud platform) Function.
在具体实现时,本申请实施例图3A或图3B中的各装置或模块(例如图像处理装置、模型获取模块、信息获取模块、或图像处理模块等)都可以采用图4所示的组成结构,或者包括图4所示的部件。图4所示为可适用于本申请实施例的图像处理装置的硬件结构示意图。该图像处理装置40包括至少一个处理器401和至少一个通信接口404,用于实现本申请实施例提供的方法。该图像处理装置40还可以包括通信线路402和存储器403。During specific implementation, each device or module (such as image processing device, model acquisition module, information acquisition module, or image processing module, etc.) in Figure 3A or Figure 3B in the embodiment of the present application can adopt the composition structure shown in Figure 4 , or include the components shown in Figure 4. FIG. 4 shows a schematic diagram of the hardware structure of an image processing device applicable to embodiments of the present application. The image processing device 40 includes at least one processor 401 and at least one communication interface 404, which are used to implement the method provided by the embodiment of the present application. The image processing device 40 may also include a communication line 402 and a memory 403.
处理器401可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 401 can be a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the program of the present application. integrated circuit.
通信线路402可包括一通路,在上述组件之间传送信息,例如总线。Communication line 402 may include a path, such as a bus, that carries information between the above-mentioned components.
通信接口404,用于与其他设备或通信网络通信。通信接口404可以是任何收发器一类的装置,如可以是以太网接口、无线接入网(radio access network,RAN)接口、无线局域网(wireless local area networks,WLAN)接口、收发器、管脚、总线、或收发电路等。 Communication interface 404 is used to communicate with other devices or communication networks. The communication interface 404 can be any device such as a transceiver, such as an Ethernet interface, a radio access network (RAN) interface, a wireless local area networks (WLAN) interface, a transceiver, and pins , bus, or transceiver circuit, etc.
存储器403可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光 碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路402与处理器401相耦合。存储器403也可以和处理器401集成在一起。本申请实施例提供的存储器通常可以具有非易失性。 Memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory (RAM)) or other type that can store information and instructions. A dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other medium for access, but not limited to this. The memory may exist independently and be coupled to the processor 401 through a communication line 402 . Memory 403 may also be integrated with processor 401. The memory provided by the embodiment of the present application may generally be non-volatile.
其中,存储器403用于存储执行本申请实施例提供的方案所涉及的计算机执行指令,并由处理器401来控制执行。处理器401用于执行存储器403中存储的计算机执行指令,从而实现本申请实施例提供的方法。或者,可选的,本申请实施例中,也可以是处理器401执行本申请下述实施例提供的方法中的处理相关的功能,通信接口404负责与其他设备或通信网络通信,本申请实施例对此不作具体限定。Among them, the memory 403 is used to store computer execution instructions involved in executing the solutions provided by the embodiments of this application, and the processor 401 controls the execution. The processor 401 is used to execute computer execution instructions stored in the memory 403, thereby implementing the method provided by the embodiment of the present application. Or, optionally, in this embodiment of the present application, the processor 401 may also perform processing-related functions in the methods provided in the following embodiments of the present application, and the communication interface 404 is responsible for communicating with other devices or communication networks. This application implements The example does not specifically limit this.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiments of the present application may also be called application codes, which are not specifically limited in the embodiments of the present application.
本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。The coupling in the embodiment of this application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information interaction between devices, units or modules.
作为一种实施例,处理器401可以包括一个或多个CPU,例如图4中的CPU0和CPU1。As an embodiment, the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4 .
作为一种实施例,图像处理装置40可以包括多个处理器,例如图4中的处理器401和处理器407。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。As an embodiment, the image processing device 40 may include multiple processors, such as the processor 401 and the processor 407 in FIG. 4 . Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
作为一种实施例,图像处理装置40还可以包括输出设备405和/或输入设备406。输出设备405和处理器401耦合,可以以多种方式来显示信息。例如,输出设备405可以是液晶显示器(liquid crystal display,LCD),发光二极管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备406和处理器401耦合,可以以多种方式接收用户的输入。例如,输入设备406可以是鼠标、键盘、触摸屏设备或传感设备等。As an embodiment, the image processing apparatus 40 may also include an output device 405 and/or an input device 406. Output device 405 is coupled to processor 401 and can display information in a variety of ways. For example, the output device 405 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc. Input device 406 is coupled to processor 401 and can receive user input in a variety of ways. For example, the input device 406 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
可选的,图像处理装置40还包括图像感知模块和/或图像识别模块(图4中未示出)。图像感知模块可以具备图像感知能力。例如,图像处理装置40配置了单目摄像机、双目摄像机、三目摄像机、深度摄像机或扫描模块中的一种或多种。图像识别模块可以具备识别图像中的内容的能力。Optionally, the image processing device 40 also includes an image perception module and/or an image recognition module (not shown in Figure 4). The image sensing module can have image sensing capabilities. For example, the image processing device 40 is configured with one or more of a monocular camera, a binocular camera, a trinocular camera, a depth camera or a scanning module. The image recognition module can have the ability to recognize the content in the image.
可以理解的,图4中示出的组成结构并不构成对该图像处理装置的限定,除图4所示部件之外,该图像处理装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It can be understood that the composition structure shown in Figure 4 does not constitute a limitation on the image processing device. In addition to the components shown in Figure 4, the image processing device may include more or fewer components than shown in the figure, or Combining certain parts, or different arrangements of parts.
下面将结合附图,对本申请实施例提供的方法进行描述。下述实施例中的各装置可以具备图4所示部件,不予赘述。The method provided by the embodiment of the present application will be described below with reference to the accompanying drawings. Each device in the following embodiments may be equipped with the components shown in Figure 4, which will not be described again.
可以理解的是,本申请实施例提供的方法可以应用于多个领域,例如:无人驾驶领域、自动驾驶领域、辅助驾驶领域、智能驾驶领域、网联驾驶领域、智能网联驾驶领域、汽车共享领域等。It can be understood that the methods provided by the embodiments of the present application can be applied to multiple fields, such as: unmanned driving field, automatic driving field, assisted driving field, intelligent driving field, connected driving field, intelligent connected driving field, automobile Shared areas, etc.
可以理解的,本申请实施例中的“图像”可以替换为“图片”或“照片”等与“图 像”相近的名称,不予限制。It can be understood that the "image" in the embodiments of this application can be replaced by "picture" or "photograph" or other names similar to "image" without limitation.
可以理解的是,本申请下述实施例中的信息名字或信息中各参数的名字等只是一个示例,具体实现中也可以是其他的名字,本申请实施例对此不作具体限定。It can be understood that the information name or the name of each parameter in the information in the following embodiments of the present application is just an example, and other names may also be used in specific implementations, and the embodiments of the present application do not specifically limit this.
可以理解的是,在本申请实施例中,“/”可以表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;“和/或”可以用于描述关联对象存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。此外,类似于“A、B和C中的至少一项”或“A、B或C中的至少一项”的表述通常用于表示如下中任一项:单独存在A;单独存在B;单独存在C;同时存在A和B;同时存在A和C;同时存在B和C;同时存在A、B和C。以上是以A、B和C共三个元素进行举例来说明该项目的可选用条目,当表述中具有更多元素时,该表述的含义可以按照前述规则获得。It can be understood that in the embodiment of the present application, "/" may indicate that the related objects are in an "or" relationship. For example, A/B may indicate A or B; "and/or" may be used to describe There are three relationships between associated objects. For example, A and/or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural. In addition, expressions similar to "at least one of A, B and C" or "at least one of A, B or C" are often used to mean any of the following: A alone; B alone; alone C exists; A and B exist simultaneously; A and C exist simultaneously; B and C exist simultaneously; A, B, and C exist simultaneously. The above is an example of three elements A, B and C to illustrate the optional items of this project. When there are more elements in the expression, the meaning of the expression can be obtained according to the aforementioned rules.
为了便于描述本申请实施例的技术方案,在本申请实施例中,可以采用“第一”、“第二”等字样对功能相同或相似的技术特征进行区分。该“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。在本申请实施例中,“示例性的”或者“例如”等词用于表示例子、例证或说明,被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In order to facilitate the description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" may be used to distinguish technical features with the same or similar functions. The words "first", "second" and other words do not limit the quantity and execution order, and the words "first" and "second" do not limit the number and execution order. In the embodiments of this application, words such as "exemplary" or "for example" are used to express examples, illustrations or illustrations, and any embodiment or design solution described as "exemplary" or "for example" shall not be interpreted. To be more preferred or advantageous than other embodiments or designs. The use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner that is easier to understand.
可以理解,说明书通篇中提到的“实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各个实施例未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。可以理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It will be understood that reference throughout this specification to "an embodiment" means that a particular feature, structure, or characteristic associated with the embodiment is included in at least one embodiment of the present application. Therefore, various embodiments are not necessarily referred to the same embodiment throughout this specification. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It can be understood that in the various embodiments of the present application, the size of the sequence numbers of each process does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be determined by the execution order of the embodiments of the present application. The implementation process constitutes no limitation.
可以理解,在本申请中,“若”可以指在某种客观情况下会做出相应的处理,并非是限定时间,且也不要求实现时一定要有判断的动作,也不意味着存在其它限定。It can be understood that in this application, "if" can mean that corresponding processing will be carried out under certain objective circumstances. It does not limit the time, nor does it require that there must be a judgment action during implementation, nor does it mean that there are other limited.
本申请中的“同时”可以理解为在相同的时间点,也可以理解为在一段时间段内,还可以理解为在同一个周期内。“At the same time” in this application can be understood as at the same point in time, within a period of time, or within the same cycle.
可以理解,本申请实施例中的一些可选的特征,在某些场景下,可以不依赖于其他特征,比如其当前所基于的方案,而独立实施,解决相应的技术问题,达到相应的效果,也可以在某些场景下,依据需求与其他特征进行结合。相应的,本申请实施例中给出的装置也可以相应的实现这些特征或功能,在此不予赘述。例如,在下述实施例中,S5011-S5013可以不依赖S501-S503,独立实施。It can be understood that some optional features in the embodiments of the present application, in certain scenarios, can be implemented independently without relying on other features, such as the solutions they are currently based on, to solve corresponding technical problems and achieve corresponding effects. , and can also be combined with other features according to needs in certain scenarios. Correspondingly, the devices provided in the embodiments of the present application can also implement these features or functions, which will not be described again here. For example, in the following embodiments, S5011-S5013 can be implemented independently without relying on S501-S503.
可以理解的,本申请实施例中同一个步骤或者具有相同功能的步骤或者技术特征在不同实施例之间可以互相参考借鉴。It can be understood that the same step or steps with the same function or technical features in the embodiments of the present application can be used as reference between different embodiments.
可以理解的,本申请实施例中,图像处理装置可以执行本申请实施例中的部分或全部步骤,这些步骤仅是示例,本申请实施例还可以执行其它步骤或者各种步骤的变形。此外,各个步骤可以按照本申请实施例呈现的不同的顺序来执行,并且有可能并非要执行本申请实施例中的全部步骤。It can be understood that in the embodiments of the present application, the image processing device can perform some or all of the steps in the embodiments of the present application. These steps are only examples. The embodiments of the present application can also perform other steps or variations of various steps. In addition, various steps may be performed in a different order than those presented in the embodiments of the present application, and it may not be necessary to perform all the steps in the embodiments of the present application.
如图5所示,为本申请实施例提供的一种图像处理方法,该图像处理方法可以包括如下步骤:As shown in Figure 5, an image processing method is provided in an embodiment of the present application. The image processing method may include the following steps:
S501:图像处理装置获取图像处理模型、第一原始图像和第一环境信息。S501: The image processing device obtains the image processing model, the first original image and the first environment information.
S501中的图像处理装置可以是图3A或图3B中的图像处理装置301。图像处理装置可以同时获取图像处理模型、第一原始图像和第一环境信息,也可以不同时获取图像处理模型、第一原始图像和第一环境信息。例如,图像处理装置可以先获取图像处理模型和第一环境信息,再获取第一原始图像,或者,图像处理装置可以先获取图像处理模型,再获取第一环境信息,最后获取第一原始图像。The image processing device in S501 may be the image processing device 301 in FIG. 3A or FIG. 3B. The image processing device may acquire the image processing model, the first original image, and the first environment information at the same time, or may not acquire the image processing model, the first original image, and the first environment information at the same time. For example, the image processing device may first acquire the image processing model and the first environment information, and then acquire the first original image, or the image processing device may first acquire the image processing model, then acquire the first environment information, and finally acquire the first original image.
本申请实施例中,图像处理模型可以包括输入端和输出端。将输入参数通过输入端输入到图像处理模型中后,输出端可以输出输出参数。作为一种示例,图像处理模型包括函数或算法。例如,图像处理模型为y=f(x)。其中,x为输入参数,y为输出参数。可以理解的,图像处理模型可以包括任意一种函数或算法,例如,二次函数、三次函数、指数函数、自定义函数或自定义算法等。可以理解的,用函数或算法对第一环境信息中的参数进行计算的计算量要远小于灰度直方图的生成、重分布的计算量。因此,可以大大提升图像处理装置处理图像的速度。In this embodiment of the present application, the image processing model may include an input terminal and an output terminal. After the input parameters are input into the image processing model through the input terminal, the output terminal can output the output parameters. As an example, an image processing model includes a function or algorithm. For example, the image processing model is y=f(x). Among them, x is the input parameter and y is the output parameter. It can be understood that the image processing model can include any function or algorithm, such as a quadratic function, a cubic function, an exponential function, a custom function or a custom algorithm, etc. It can be understood that the calculation amount of using a function or algorithm to calculate the parameters in the first environment information is much less than the calculation amount of generating and redistributing the grayscale histogram. Therefore, the image processing speed of the image processing device can be greatly improved.
本申请实施例中,输入参数可以包括环境信息,如获取原始图像时,环境的信息。例如,输入参数包括第一环境信息。In this embodiment of the present application, the input parameters may include environmental information, such as environmental information when acquiring the original image. For example, the input parameters include first environment information.
本申请实施例中,原始图像(如:第一原始图像,和/或,第二原始图像,和/或,第三原始图像等)可以是任意类型或任意格式的图像。例如,原始图像为RAW图像或RGB图像。又例如,原始图像为bayer格式的图像、jpeg格式的图像、BMP格式的图像或PNG格式的图像等等。In this embodiment of the present application, the original image (such as the first original image, and/or the second original image, and/or the third original image, etc.) may be an image of any type or format. For example, the original image is a RAW image or an RGB image. For another example, the original image is an image in bayer format, an image in jpeg format, an image in BMP format, or an image in PNG format, etc.
本申请实施例中,输出参数可以包括图像处理参数(如:第一图像处理参数)。图像处理参数可以包括以下至少一项:去马赛克功能中的参数、黑电平矫正功能中的参数、镜头矫正功能中的参数、gamma矫正功能中的参数(如gamma参数)、白平衡功能中的参数或色彩映射功能中的参数。In this embodiment of the present application, the output parameters may include image processing parameters (such as first image processing parameters). The image processing parameters may include at least one of the following: parameters in the demosaic function, parameters in the black level correction function, parameters in the lens correction function, parameters in the gamma correction function (such as gamma parameters), parameters in the white balance function Parameters or parameters in a colormap function.
本申请实施例中,第一环境信息为获取第一原始图像时,环境的信息。可以理解的,第一环境信息与图像处理方法所应用的功能有关。具体来说,若该功能为gamma矫正功能,则第一环境信息与gamma矫正功能有关。如此,可以使得根据第一环境信息得到的第一图像处理参数能够用于gamma矫正。In this embodiment of the present application, the first environment information is information about the environment when the first original image is acquired. It can be understood that the first environment information is related to the function applied by the image processing method. Specifically, if the function is a gamma correction function, the first environment information is related to the gamma correction function. In this way, the first image processing parameters obtained according to the first environment information can be used for gamma correction.
作为一种示例,第一环境信息包括以下至少一项:获取第一原始图像的时间信息、获取第一原始图像时光照强度的信息、获取第一原始图像时光照方向的信息、获取第一原始图像时的亮度信息或获取第一原始图像时的位置信息。As an example, the first environment information includes at least one of the following: time information when the first original image is obtained, information about the illumination intensity when the first original image is obtained, information about the illumination direction when the first original image is obtained, information about the illumination direction when the first original image is obtained, The brightness information when the image is taken or the position information when the first original image is obtained.
其中,获取第一原始图像的时间信息可以包括以下至少一种:获取第一原始图像的时刻、获取第一原始图像的月份或获取第一原始图像的季节。光照方向可以包括东、南、西或北;或者,光照方向可以包括东、南、西、北、东北、东南、西北或西南;或者,光照方向可以包括角度,如光照方向与坐标系中各轴的夹角。该坐标系可以是第一原始图像所在的任意二维或三维坐标系。位置信息可以包括经度和纬度。可以理解的,上述信息与gamma矫正功能有关。因此,可以使得根据第一环境信息得到的第一图像处理参数能够用于gamma矫正。另外,在拍摄视频时,上述信息也是平滑过度 的,即视频中相邻两帧图像对应的第一环境信息相差不大,所以S502中根据该第一环境信息得到的相邻两帧图像对应的第一处理参数也相差不大,也就不会出现视频闪烁的问题。The time information for obtaining the first original image may include at least one of the following: a moment when the first original image is obtained, a month when the first original image is obtained, or a season when the first original image is obtained. The lighting direction can include east, south, west, or north; or the lighting direction can include east, south, west, north, northeast, southeast, northwest, or southwest; or the lighting direction can include angles, such as the lighting direction and each coordinate system. angle of the axis. The coordinate system can be any two-dimensional or three-dimensional coordinate system in which the first original image is located. Location information can include longitude and latitude. It can be understood that the above information is related to the gamma correction function. Therefore, the first image processing parameters obtained according to the first environment information can be used for gamma correction. In addition, when shooting a video, the above information is also smooth and excessive, that is, the first environment information corresponding to two adjacent frames of images in the video is not much different, so the corresponding two adjacent frames of images obtained based on the first environment information in S502 The first processing parameters are also not much different, so there will be no problem of video flickering.
一种可能的实现方式,第一环境信息包括多个比特,不同比特对应不同信息。以第一环境信息包括获取第一原始图像的季节和获取第一原始图像时光照强度的信息为例,第一环境信息可以包括6比特,其中,前两个比特与获取第一原始图像的季节对应,后4个比特与获取第一原始图像时光照强度的信息对应。若前两个比特的值为“00”,则表示获取第一原始图像的季节为春季,若前两个比特的值为“01”,则表示获取第一原始图像的季节为夏季,若前两个比特的值为“10”,则表示获取第一原始图像的季节为秋季,若前两个比特的值为“11”,则表示获取第一原始图像的季节为冬季。后4个比特的值可以表示获取第一原始图像时的光照强度。In one possible implementation, the first environment information includes multiple bits, and different bits correspond to different information. Taking the first environment information as an example including the season in which the first original image was acquired and the light intensity when the first original image was acquired, the first environment information may include 6 bits, where the first two bits are related to the season in which the first original image was acquired. Correspondingly, the last 4 bits correspond to the information of the illumination intensity when acquiring the first original image. If the value of the first two bits is "00", it means that the season in which the first original image is obtained is spring. If the value of the first two bits is "01", it means that the season in which the first original image is obtained is summer. If the value of the two bits is "10", it means that the season in which the first original image is obtained is autumn. If the value of the first two bits is "11", it means that the season in which the first original image is obtained is winter. The value of the last 4 bits can represent the illumination intensity when the first original image was acquired.
可以理解的,图像处理装置可以通过多种方式获取图像处理模型,和/或,第一原始图像,和/或,第一环境信息。例如,图像处理装置可以从本地获取上述信息,或者图像处理装置可以通过其他装置或设备获取上述信息,或者图像处理装置可以自己获取上述信息。下面进行具体介绍。It can be understood that the image processing device can obtain the image processing model, and/or the first original image, and/or the first environment information in various ways. For example, the image processing device can obtain the above information locally, or the image processing device can obtain the above information through other devices or equipment, or the image processing device can obtain the above information by itself. Detailed introduction is given below.
作为一种示例,图像处理装置本地存储了图像处理模型,和/或,第一原始图像,和/或,第一环境信息。因此,图像处理装置可以从本地获取图像处理模型,和/或,第一原始图像,和/或,第一环境信息。As an example, the image processing device locally stores the image processing model, and/or the first original image, and/or the first environment information. Therefore, the image processing device can obtain the image processing model, and/or the first original image, and/or the first environment information locally.
作为另一种示例,模型获取装置可以获取图像处理模型,并发送给图像处理装置,相应的,图像处理装置接收该图像处理模型。图像感知装置可以获取第一原始图像,并发送给图像处理装置,相应的,图像处理装置接收该第一原始图像。图像感知装置可以是图3A中的图像感知装置302。信息获取装置可以获取第一环境信息,并发送给图像处理装置,相应的,图像处理装置接收该第一环境信息。可以理解的,模型获取装置、图像感知装置和信息获取装置是与图像处理装置不同的装置。模型获取装置、图像感知装置和信息获取装置可以是同一个装置,也可以是不同的装置,不予限制。As another example, the model acquisition device can acquire the image processing model and send it to the image processing device, and accordingly, the image processing device receives the image processing model. The image sensing device can acquire the first original image and send it to the image processing device, and accordingly, the image processing device receives the first original image. The image sensing device may be image sensing device 302 in Figure 3A. The information acquisition device can acquire the first environment information and send it to the image processing device. Correspondingly, the image processing device receives the first environment information. It can be understood that the model acquisition device, the image sensing device and the information acquisition device are different devices from the image processing device. The model acquisition device, image sensing device and information acquisition device may be the same device or different devices without limitation.
作为另一种示例,图像处理装置可以通过如下方式自己获取图像处理模型:图像处理装置获取至少一个第二环境信息、至少一个第二原始图像和至少一个目标图像,并根据至少一个第二环境信息、至少一个第二原始图像和至少一个目标图像,获取图像处理模型。这一过程将在下述图6所示的实施例中进行介绍,在此不做赘述。可以理解的,图像处理装置可以具备图像感知能力,例如,图像处理装置配置了摄像装置,可以通过摄像装置获取第一原始图像。摄像装置可以包括以下一种或多种:单目摄像机、双目摄像机、三目摄像机、深度摄像机或扫描仪。可以理解的,图像处理装置可以通过网络、图像处理装置中的传感器或图像处理装置中安装的软件中的一种或多种获取第一环境信息。例如,图像处理装置通过网络或在其上安装的时间软件确定获取第一原始图像的时间信息。又例如,图像处理装置通过在其上配置的传感器确定获取第一原始图像时光照强度的信息,和/或,获取第一原始图像时光照方向的信息,和/或,获取第一原始图像时的亮度信息。再例如,图像处理装置通过在其上安装的地图软件确定获取第一原始图像时的位置信息。As another example, the image processing device may acquire the image processing model by itself in the following manner: the image processing device acquires at least one second environment information, at least one second original image, and at least one target image, and determines the image processing model according to the at least one second environment information. , at least one second original image and at least one target image, and obtain an image processing model. This process will be introduced in the embodiment shown in Figure 6 below, and will not be described in detail here. It can be understood that the image processing device may have image sensing capabilities. For example, the image processing device is configured with a camera device, and the first original image may be acquired through the camera device. The camera device may include one or more of the following: a monocular camera, a binocular camera, a trinocular camera, a depth camera or a scanner. It can be understood that the image processing device can obtain the first environment information through one or more of the network, a sensor in the image processing device, or software installed in the image processing device. For example, the image processing device determines the time information for acquiring the first original image through the network or time software installed thereon. For another example, the image processing device determines, through a sensor configured on it, the information on the illumination intensity when acquiring the first original image, and/or the information on the illumination direction when acquiring the first original image, and/or the information on the illumination direction when acquiring the first original image. brightness information. For another example, the image processing device determines the location information when the first original image is acquired through the map software installed thereon.
S502:图像处理装置将第一环境信息作为图像处理模型的输入参数,得到第一图 像处理参数。S502: The image processing device uses the first environment information as an input parameter of the image processing model to obtain the first image processing parameters.
一种可能的实现方式,图像处理装置将第一环境信息输入到图像处理模型中,即可以得到第一图像处理参数。也就是说,利用图像处理模型中的函数或算法对第一环境信息进行计算,即可以得到第一图像处理参数。In one possible implementation, the image processing device inputs the first environment information into the image processing model, that is, the first image processing parameters can be obtained. That is to say, the first image processing parameters can be obtained by calculating the first environment information using the function or algorithm in the image processing model.
本申请实施例中,第一图像处理参数可以包括以下至少一项:去马赛克功能中的参数、黑电平矫正功能中的参数、镜头矫正功能中的参数、gamma矫正功能中的参数(如gamma参数)、白平衡功能中的参数或色彩映射功能中的参数。In the embodiment of the present application, the first image processing parameters may include at least one of the following: parameters in the demosaic function, parameters in the black level correction function, parameters in the lens correction function, and parameters in the gamma correction function (such as gamma parameters), parameters in the white balance function, or parameters in the color mapping function.
S503:图像处理装置采用第一图像处理参数对第一原始图像进行处理,得到第一处理图像。S503: The image processing device uses the first image processing parameters to process the first original image to obtain the first processed image.
示例性的,以第一图像处理参数包括gamma参数为例,图像处理装置可以利用gamma参数对第一原始图像进行gamma矫正,得到第一处理图像。For example, taking the first image processing parameter including the gamma parameter as an example, the image processing device can use the gamma parameter to perform gamma correction on the first original image to obtain the first processed image.
可选的,S503之后,图像处理装置可以识别第一处理图像中的内容。或者,图像处理装置可以向图像识别装置发送第一处理图像,以便图像识别装置识别第一图像中的内容。该图像识别装置可以是图3A中的图像识别装置303。Optionally, after S503, the image processing device may identify the content in the first processed image. Alternatively, the image processing device may send the first processed image to the image recognition device, so that the image recognition device recognizes the content in the first image. The image recognition device may be the image recognition device 303 in FIG. 3A.
其中,上述S501-S503中的图像处理装置的动作可以由图4所示的图像处理装置40中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不做任何限制。Among them, the actions of the image processing device in the above S501-S503 can be executed by the processor 401 in the image processing device 40 shown in Figure 4 calling the application code stored in the memory 403. This embodiment of the present application does not do anything in this regard. limit.
基于图5所示的方法,图像处理装置可以根据获取第一原始图像时,环境的信息以及图像处理模型,得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,得到处理后的图像。在图5所示的方法中,并不涉及灰度直方图的生成、重分布等计算量较大的过程,而是利用提前训练好的,并且与环境信息有关的图像处理模型得到第一图像处理参数,根据第一图像处理参数对第一原始图像进行处理,计算过程较为简便,计算量较小,可以应用于计算能力不高的设备中,使得该设备也能够进行图像处理,或者,应用于对实时性要求较高的场景,如智能驾驶场景,使得智能驾驶车辆能够根据第一处理图像尽快识别目标(如车辆、行人、车道线或障碍物等)。而且,上述图5所示的方法是根据获取第一原始图像时,环境的信息以及图像处理模型,得到的第一图像处理参数,也就是说,第一图像处理参数与环境信息有关,而与原始图像无关,因此,不会出现由于原始图像中有深色物体,而导致处理后的图像太亮而过曝的问题。另外,由于第一图像处理参数,是与环境信息有关的参数,所以若两个原始图像对应的环境信息相同(或相差不大),则这两个原始图像对应的第一图像处理参数也相同(或相差不大)。因此,若采用该方法处理视频流,不会出现视频闪烁的问题。Based on the method shown in Figure 5, the image processing device can obtain the first image processing parameters based on the environmental information and the image processing model when acquiring the first original image, and process the first original image according to the first image processing parameters to obtain Processed image. In the method shown in Figure 5, it does not involve the generation and redistribution of grayscale histograms and other computationally intensive processes. Instead, it uses an image processing model trained in advance and related to environmental information to obtain the first image. Processing parameters: process the first original image according to the first image processing parameters. The calculation process is relatively simple and the calculation amount is small. It can be applied to devices with low computing power, so that the device can also perform image processing, or, application For scenarios with high real-time requirements, such as smart driving scenarios, the smart driving vehicle can identify targets (such as vehicles, pedestrians, lane lines or obstacles, etc.) as quickly as possible based on the first processed image. Moreover, the method shown in Figure 5 above obtains the first image processing parameters based on the environment information and the image processing model when acquiring the first original image. That is to say, the first image processing parameters are related to the environment information and are related to the environment information. The original image has nothing to do, so there will be no problem of the processed image being too bright and overexposed due to dark objects in the original image. In addition, since the first image processing parameters are parameters related to environmental information, if the environmental information corresponding to the two original images is the same (or has little difference), then the first image processing parameters corresponding to the two original images are also the same. (Or not much different). Therefore, if this method is used to process video streams, the problem of video flickering will not occur.
如前文所述,图像处理装置可以自己获取图像处理模型,具体的,可以如图6所示,图像处理装置可以通过如下步骤获取图像处理模型:As mentioned above, the image processing device can obtain the image processing model by itself. Specifically, as shown in Figure 6, the image processing device can obtain the image processing model through the following steps:
S5011:图像处理装置获取至少一个第二环境信息和至少一个第二原始图像。S5011: The image processing device obtains at least one second environment information and at least one second original image.
本申请实施例中,至少一个第二原始图像包括至少一个第二环境信息中每个第二环境信息对应的第二原始图像。或者说,一个第二环境信息可以对应至少一个第二原始图像。例如,图像处理装置获取了2个第二环境信息和50个第二原始图像。其中,第一个第二环境信息对应前20个第二原始图像,第二个第二环境信息对应后30个第 二原始图像。In this embodiment of the present application, at least one second original image includes a second original image corresponding to each of the at least one second environment information. In other words, one piece of second environment information may correspond to at least one second original image. For example, the image processing device acquires 2 pieces of second environment information and 50 pieces of second original images. Among them, the first second environment information corresponds to the first 20 second original images, and the second second environment information corresponds to the last 30 second original images.
可以理解的,图像处理装置可以通过多种方式获取至少一个第二环境信息,和/或,至少一个第二原始图像。例如,图像处理装置可以从本地获取上述信息,或者图像处理装置可以通过其他装置或设备获取上述信息,或者图像处理装置可以自己获取上述信息。具体的,可以参考S501中对图像处理装置获取第一原始图像,和/或,第一环境信息的对应描述,不予赘述。It can be understood that the image processing device can obtain at least one second environment information and/or at least one second original image in various ways. For example, the image processing device can obtain the above information locally, or the image processing device can obtain the above information through other devices or equipment, or the image processing device can obtain the above information by itself. Specifically, reference may be made to the corresponding description of the image processing device acquiring the first original image and/or the first environment information in S501, which will not be described again.
S5012:图像处理装置获取至少一个目标图像。S5012: The image processing device acquires at least one target image.
本申请实施例中,至少一个目标图像包括至少一个第二环境信息中每个第二环境信息对应的目标图像。或者说,一个第二环境信息可以对应至少一个目标图像。目标图像可以是对第三原始图像进行处理后的图像,目标图像满足一定的要求。In this embodiment of the present application, at least one target image includes a target image corresponding to each second environment information in at least one second environment information. In other words, one piece of second environment information can correspond to at least one target image. The target image may be an image obtained by processing the third original image, and the target image meets certain requirements.
可以理解的,图像处理装置可以通过多种方式获取至少一个目标图像。示例性的,图像处理装置可以从本地获取至少一个目标图像,也就是说,至少一个目标图像预先存储在本地。或者,图像处理装置可以通过其他装置或设备获取至少一个目标图像,例如,其他装置或设备采用图1所示的方法对至少一个第三原始图像进行处理,得到与至少一个第三原始图像对应的至少一个目标图像,并将至少一个目标图像发送给图像处理装置。或者,图像处理装置可以自己获取至少一个目标图像,例如,图像处理装置采用图1所示的方法对至少一个第三原始图像进行处理,得到与至少一个第三原始图像对应的至少一个目标图像。应理解,除了图1所示的方法之外,还可以采用其他方法得到目标图像,不予限制。It can be understood that the image processing device can obtain at least one target image in various ways. Exemplarily, the image processing device may acquire at least one target image locally, that is, at least one target image is stored locally in advance. Alternatively, the image processing device can obtain at least one target image through other devices or equipment. For example, other devices or equipment use the method shown in Figure 1 to process at least one third original image to obtain the at least one third original image corresponding to at least one target image, and sending the at least one target image to the image processing device. Alternatively, the image processing device may acquire at least one target image by itself. For example, the image processing device uses the method shown in FIG. 1 to process at least one third original image to obtain at least one target image corresponding to at least one third original image. It should be understood that in addition to the method shown in Figure 1, other methods can also be used to obtain the target image without limitation.
本申请实施例中,第二环境信息为获取第二环境信息对应的第二原始图像和第三原始图像时,环境的信息。此处,第三原始图像为该第二环境信息对应的目标图像的原始图像。第二环境信息包括以下至少一项:获取与该第二环境信息对应的第二原始图像和第三原始图像的时间信息、获取与该第二环境信息对应的第二原始图像和第三原始图像时光照强度的信息、获取与该第二环境信息对应的第二原始图像和第三原始图像时光照方向的信息、获取与该第二环境信息对应的第二原始图像和第三原始图像时的亮度信息,或获取与该第二环境信息对应的第二原始图像和第三原始图像时的位置信息。In this embodiment of the present application, the second environment information is information about the environment when acquiring the second original image and the third original image corresponding to the second environment information. Here, the third original image is the original image of the target image corresponding to the second environment information. The second environment information includes at least one of the following: acquiring the time information of the second original image and the third original image corresponding to the second environment information, and acquiring the second original image and the third original image corresponding to the second environment information. Information on the illumination intensity, information on the illumination direction when obtaining the second original image and the third original image corresponding to the second environmental information, and obtaining the second original image and the third original image corresponding to the second environmental information. Brightness information, or position information when acquiring the second original image and the third original image corresponding to the second environment information.
示例性的,以第二环境信息包括获取与第二环境信息对应的第二原始图像和第三原始图像的时刻,该时刻为12:00为例,若与第二环境信息对应的第二原始图像为图像1和图像2,与第二环境信息对应的第三原始图像为图像3,则获取图像1、图像2和图像3的时刻都是12:00。采用图1所示的方法对图像3进行处理后,可以得到与第二环境信息对应的目标图像。For example, assuming that the second environment information includes the time at which the second original image and the third original image corresponding to the second environment information are acquired, and the time is 12:00, if the second original image corresponding to the second environment information is The images are image 1 and image 2, and the third original image corresponding to the second environment information is image 3. Then the time at which image 1, image 2 and image 3 are acquired is all 12:00. After processing image 3 using the method shown in Figure 1, the target image corresponding to the second environment information can be obtained.
可以理解的,第二环境信息包括的信息的类型与第一环境信息包括的信息的类型相同。也就是说,第一环境信息包括了哪几种参数,第二环境信息中就包括了哪几种参数,但是第二环境信息包括的参数的值,与第一环境信息包括的参数的值可能相同,也可能不同。例如,若第一环境信息包括获取第一原始图像时光照强度的信息,则第二环境信息包括获取与该第二环境信息对应的第二原始图像和第三原始图像时光照强度的信息,并且第一环境信息包括的光照强度的信息与第二环境信息包括的光照强度的信息可以相同也可以不同。又例如,若第一环境信息包括获取第一原始图像时光照 方向的信息和获取第一原始图像时的亮度信息,则第二环境信息包括获取与该第二环境信息对应的第二原始图像和第三原始图像时光照方向的信息,以及获取与该第二环境信息对应的第二原始图像和第三原始图像时的亮度信息,并且第一环境信息包括的光照方向的信息与第二环境信息包括的光照方向的信息可以相同也可以不同,第一环境信息包括的亮度信息与第二环境信息包括的亮度信息可以相同也可以不同。It can be understood that the type of information included in the second environment information is the same as the type of information included in the first environment information. That is to say, the parameters included in the first environment information will be determined by the parameters included in the second environment information. However, the values of parameters included in the second environment information may not be the same as the values of parameters included in the first environment information. Same, maybe different. For example, if the first environment information includes information about the illumination intensity when acquiring the first original image, then the second environment information includes information about the illumination intensity when acquiring the second original image and the third original image corresponding to the second environment information, and The illumination intensity information included in the first environment information and the illumination intensity information included in the second environment information may be the same or different. For another example, if the first environment information includes information on the illumination direction when acquiring the first original image and brightness information when acquiring the first original image, then the second environment information includes acquiring the second original image corresponding to the second environment information and The illumination direction information of the third original image, and the brightness information of the second original image and the third original image corresponding to the second environment information, and the first environment information includes the illumination direction information and the second environment information The included illumination direction information may be the same or different, and the brightness information included in the first environment information and the brightness information included in the second environment information may be the same or different.
可以理解的,第二环境信息的其他介绍可以参数S501中对第一环境信息的对应描述,不予赘述。It can be understood that other introduction of the second environment information can be the corresponding description of the first environment information in parameter S501, which will not be described again.
S5013:图像处理装置根据至少一个第二环境信息、至少一个第二原始图像和至少一个目标图像,获取图像处理模型。S5013: The image processing device acquires an image processing model based on at least one second environment information, at least one second original image, and at least one target image.
可以理解的,图像处理装置可以对至少一个第二环境信息、至少一个第二原始图像和至少一个目标图像进行训练,得到图像处理模型。至少一个第二环境信息的数量,和/或,至少一个第二原始图像的数量,和/或,至少一个目标图像的数量越多,得到的图像处理模型的鲁棒性越好,准确性越高。通过图像处理模型得到的图像处理参数(如第一图像处理参数)也越准确。It can be understood that the image processing device can train at least one second environment information, at least one second original image and at least one target image to obtain an image processing model. The greater the number of at least one second environment information, and/or the number of at least one second original image, and/or the number of at least one target image, the better the robustness and accuracy of the obtained image processing model. high. The image processing parameters (such as the first image processing parameters) obtained through the image processing model are also more accurate.
一种可能的实现方式,图像处理装置采用至少一个第二图像处理参数分别对至少一个第二原始图像进行处理,得到至少一个第二处理图像,并根据至少一个第二环境信息和至少一个第二图像处理参数,得到图像处理模型。In one possible implementation, the image processing device uses at least one second image processing parameter to respectively process at least one second original image to obtain at least one second processed image, and performs processing according to at least one second environment information and at least one second Image processing parameters to obtain the image processing model.
本申请实施例中,至少一个第二图像处理参数与至少一个第二原始图像一一对应,不同的第二原始图像对应的第二图像处理参数可以相同也可以不同。至少一个第二处理图像的相关系数与至少一个目标图像的相关系数之差的绝对值小于或等于第一阈值。相关系数还可以称为熵。In the embodiment of the present application, at least one second image processing parameter corresponds to at least one second original image one-to-one, and the second image processing parameters corresponding to different second original images may be the same or different. The absolute value of the difference between the correlation coefficient of the at least one second processed image and the correlation coefficient of the at least one target image is less than or equal to the first threshold. The correlation coefficient can also be called entropy.
一种可能的设计,图像处理装置可以提取至少一个第二处理图像的特征,根据提取的特征来获取至少一个第二处理图像的相关系数。具体的,可以如图7所示,图像处理装置可以获取至少一个第二处理图像中每个第二处理图像的灰度图,根据至少一个灰度图,得到至少一个灰度直方图,对至少一个灰度直方图求平均,得到第一平均灰度直方图。后续,图像处理装置可以根据第一平均灰度直方图确定至少一个第二处理图像的相关系数。In one possible design, the image processing device can extract features of at least one second processed image, and obtain a correlation coefficient of at least one second processed image based on the extracted features. Specifically, as shown in FIG. 7 , the image processing device can obtain the grayscale image of each second processed image in at least one second processed image, and obtain at least one grayscale histogram based on the at least one grayscale image. A gray histogram is averaged to obtain the first average gray histogram. Subsequently, the image processing device may determine the correlation coefficient of at least one second processed image based on the first average grayscale histogram.
作为一种示例,至少一个第二处理图像的相关系数可以满足公式:
Figure PCTCN2022139253-appb-000001
其中,H 1为至少一个第二处理图像的相关系数,x i为像素值,具体可以是大于等于0并且小于等于255的整数,p(x i)为像素值为x i的点在第一平均灰度直方图对应的概率,这个概率可以表征像素值为x i的点在至少一个灰度直方图中出现的概率。N为255。
As an example, the correlation coefficient of at least one second processed image can satisfy the formula:
Figure PCTCN2022139253-appb-000001
Among them, H 1 is the correlation coefficient of at least one second processed image, xi is the pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255, p(xi ) is the point with pixel value xi in the first The probability corresponding to the average gray-scale histogram. This probability can represent the probability that a point with pixel value xi appears in at least one gray-scale histogram. N is 255.
可以理解的,图像处理装置获取至少一个目标图像的相关系数的方法,与获取至少一个第二处理图像的相关系数的方法类似。示例性的,图像处理装置可以提取至少一个目标图像的特征,根据提取的特征来获取至少一个目标图像的相关系数。具体来说,图像处理装置可以获取至少一个目标图像中每个目标图像的灰度图,根据至少一个灰度图,得到至少一个灰度直方图,对至少一个灰度直方图求平均,得到第二平均灰度直方图。后续,图像处理装置可以根据第二平均灰度直方图确定至少一个目标图像的相关系数。It can be understood that the method by which the image processing apparatus obtains the correlation coefficient of at least one target image is similar to the method of obtaining the correlation coefficient of at least one second processed image. For example, the image processing device may extract features of at least one target image, and obtain a correlation coefficient of at least one target image based on the extracted features. Specifically, the image processing device can acquire a grayscale image of each target image in at least one target image, obtain at least one grayscale histogram based on the at least one grayscale image, average the at least one grayscale histogram, and obtain a third Two average grayscale histograms. Subsequently, the image processing device may determine the correlation coefficient of at least one target image according to the second average grayscale histogram.
作为一种示例,至少一个目标图像的相关系数可以满足公式:
Figure PCTCN2022139253-appb-000002
其中,H 2为至少一个目标图像的相关系数,x i为像素值,具体可以是大于等于0并且小于等于255的整数,q(x i)为像素值为x i的点在第二平均灰度直方图对应的概率,这个概率可以表征像素值为x i的点在至少一个目标图像对应的至少一个灰度直方图中出现的概率。N为255。
As an example, the correlation coefficient of at least one target image can satisfy the formula:
Figure PCTCN2022139253-appb-000002
Among them, H 2 is the correlation coefficient of at least one target image, xi is the pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255, q(xi ) is the second average gray value of the point with pixel value xi The probability corresponding to the degree histogram. This probability can represent the probability that a point with a pixel value of x i appears in at least one gray level histogram corresponding to at least one target image. N is 255.
可以理解的,至少一个第二处理图像的相关系数与至少一个目标图像的相关系数之差的绝对值可以表示为|H 1-H 2|。这个绝对值可以表示至少一个第二处理图像和至少一个目标图像的相似度。具体的,该绝对值越大,表示至少一个第二处理图像和至少一个目标图像越不相似,该绝对值越小,表示至少一个第二处理图像和至少一个目标图像越相似。因此,若该绝对值小于或等于第一阈值,可以使得至少一个第二处理图像和至少一个目标图像的相似度较高。第一阈值可以根据需要进行设置,不予限制。 It can be understood that the absolute value of the difference between the correlation coefficient of at least one second processing image and the correlation coefficient of at least one target image can be expressed as |H 1 -H 2 |. This absolute value may represent the similarity between at least one second processed image and at least one target image. Specifically, the larger the absolute value is, the less similar the at least one second processed image is to the at least one target image. The smaller the absolute value is, the more similar the at least one second processed image is to the at least one target image. Therefore, if the absolute value is less than or equal to the first threshold, the similarity between the at least one second processed image and the at least one target image can be high. The first threshold can be set as needed and is not limited.
除此之外,还可以通过KL散度(Kullback–Leibler divergence)或相对熵来表征至少一个第二处理图像的相关系数与至少一个目标图像的相关系数之差,或者说来表征至少一个第二处理图像和至少一个目标图像的相似度。例如,至少一个第二处理图像与至少一个目标图像的KL散度可以满足公式:
Figure PCTCN2022139253-appb-000003
其中,D KL(p||q)为至少一个第二处理图像与至少一个目标图像的KL散度,x i为像素值,具体可以是大于等于0并且小于等于255的整数,p(x i)为像素值为x i的点在第一平均灰度直方图对应的概率,q(x i)为像素值为x i的点在第二平均灰度直方图对应的概率。通常,KL散度的值越大,表示至少一个第二处理图像和至少一个目标图像越不相似,KL散度的值越小,表示至少一个第二处理图像和至少一个目标图像越相似。因此,若KL散度的值小于或等于第一阈值,可以使得至少一个第二处理图像和至少一个目标图像的相似度较高。第一阈值可以根据需要进行设置,不予限制。
In addition, the difference between the correlation coefficient of at least one second processed image and the correlation coefficient of at least one target image can also be characterized by KL divergence (Kullback–Leibler divergence) or relative entropy, or in other words, at least one second The processing image is similar to at least one target image. For example, the KL divergence of at least one second processing image and at least one target image can satisfy the formula:
Figure PCTCN2022139253-appb-000003
Among them, D KL (p||q) is the KL divergence of at least one second processing image and at least one target image, xi is a pixel value, specifically it can be an integer greater than or equal to 0 and less than or equal to 255, p( xi ) is the probability that the point with pixel value xi corresponds to the first average grayscale histogram, and q(xi ) is the probability that the point with pixel value xi corresponds to the second average grayscale histogram. Generally, a larger value of KL divergence indicates that the at least one second processing image and at least one target image are less similar, and a smaller value of KL divergence indicates that the at least one second processing image and at least one target image are more similar. Therefore, if the value of the KL divergence is less than or equal to the first threshold, the similarity between the at least one second processed image and the at least one target image can be made high. The first threshold can be set as needed and is not limited.
通过以上描述可以看出,采用至少一个第二图像处理参数分别对至少一个第二原始图像进行处理,可以得到与至少一个目标图像相似度较高的至少一个第二处理图像。因此,后续,图像处理装置可以根据至少一个第二环境信息和至少一个第二图像处理参数,得到图像处理模型。如此,可以使得根据第一环境信息和图像处理模型得到的第一图像处理参数,用于处理第一原始图像后,能够得到与至少一个目标图像相似度较高的第一处理图像。也就是说,将环境信息输入到根据上述方法得到的图像处理模型中,可以得到图像处理参数,采用该图像处理参数处理环境信息对应的原始图像,能够使得处理后的图像与至少一个目标图像相似度较高。因此,处理后的图像也能够满足目标图像所满足的要求。It can be seen from the above description that by using at least one second image processing parameter to process at least one second original image respectively, at least one second processed image that is highly similar to at least one target image can be obtained. Therefore, subsequently, the image processing device can obtain an image processing model based on at least one second environment information and at least one second image processing parameter. In this way, after the first image processing parameters obtained according to the first environment information and the image processing model are used to process the first original image, a first processed image with a high similarity to at least one target image can be obtained. That is to say, by inputting the environmental information into the image processing model obtained according to the above method, the image processing parameters can be obtained. Using the image processing parameters to process the original image corresponding to the environmental information can make the processed image similar to at least one target image. The degree is higher. Therefore, the processed image can also meet the requirements met by the target image.
下面以图像处理模型为二次函数为例,介绍图像处理装置根据至少一个第二环境信息和至少一个第二图像处理参数,得到图像处理模型的过程。Taking the image processing model as a quadratic function as an example, the following describes the process in which the image processing device obtains the image processing model based on at least one second environment information and at least one second image processing parameter.
作为一种示例,如图8所示,图像处理模型为y=ax 2+bx+c,其中,y为第二图像处理参数,x为第二环境信息,那么得到a,b和c的值,即可以确定图像处理模型。可以理解的,通过至少三个第二图像处理参数,以及与至少三个第二图像处理参数分别对应的至少三个第二环境信息就能够确定a,b和c的值,即能够得到图像处理模型。 As an example, as shown in Figure 8, the image processing model is y=ax 2 +bx+c, where y is the second image processing parameter and x is the second environment information, then the values of a, b and c are obtained , that is, the image processing model can be determined. It can be understood that the values of a, b and c can be determined through at least three second image processing parameters and at least three second environmental information respectively corresponding to the at least three second image processing parameters, that is, the image processing can be obtained Model.
可以理解的,图像处理装置可以通过多种方式获取至少一个第二图像处理参数。It can be understood that the image processing device can obtain at least one second image processing parameter in various ways.
一种可能的实现方式,可以根据经验在图像处理装置中预配置至少一个第二图像 处理参数,图像处理装置从本地获取至少一个第二图像处理参数。In one possible implementation, at least one second image processing parameter can be preconfigured in the image processing device based on experience, and the image processing device obtains at least one second image processing parameter locally.
另一种可能的实现方式,图像处理装置获取候选图像处理参数集合。该候选图像处理参数集合包括多个候选图像处理参数,该多个候选图像处理参数包括至少一个第二处理参数。也就是说,图像处理装置可以先获取多个候选的参数,再采用该候选的参数对第二原始图像进行处理得到处理后的图像,若该处理后的图像的相关系数与目标图像的相关系数之差的绝对值小于或等于第一阈值,则图像处理装置将该处理后的图像所对应的候选的参数确定为第二处理参数。In another possible implementation, the image processing device obtains a set of candidate image processing parameters. The set of candidate image processing parameters includes a plurality of candidate image processing parameters, the plurality of candidate image processing parameters including at least one second processing parameter. That is to say, the image processing device can first obtain multiple candidate parameters, and then use the candidate parameters to process the second original image to obtain a processed image. If the correlation coefficient of the processed image and the correlation coefficient of the target image If the absolute value of the difference is less than or equal to the first threshold, the image processing device determines the candidate parameter corresponding to the processed image as the second processing parameter.
一种可能的设计,图像处理装置获取初始图像处理参数,并对初始图像处理参数执行第一操作,得到候选图像处理参数集合。其中,初始图像处理参数可以根据需要设置。第一操作包括以下至少一项:根据初始图像处理参数按照规律确定候选图像处理参数,根据初始图像处理参数随机确定候选图像处理参数,或根据历史上确定的候选图像处理参数确定候选图像处理参数集合。In one possible design, the image processing device obtains initial image processing parameters and performs a first operation on the initial image processing parameters to obtain a set of candidate image processing parameters. Among them, the initial image processing parameters can be set as needed. The first operation includes at least one of the following: determining candidate image processing parameters according to rules based on initial image processing parameters, randomly determining candidate image processing parameters based on initial image processing parameters, or determining a set of candidate image processing parameters based on historically determined candidate image processing parameters. .
作为一种示例,若初始图像处理参数为2.0,则图像处理装置可以以0.01为间隔,在1.90~2.10的区间中确定20个值,作为多个候选图像处理参数。或者,若初始图像处理参数为2.0,则图像处理装置可以对2.0随机加减一个0.3以内的数,得到多个候选图像处理参数。或者,图像处理装置可以将历史上确定的全部或部分候选图像处理参数,确定为多个候选图像处理参数。或者,若初始图像处理参数为2.0,图像处理装置可以以0.01为间隔,在1.90~2.10的区间中确定20个值,再将20个值中,在历史上未被确定为候选图像处理参数的值,确定为多个候选图像处理参数。或者,若初始图像处理参数为2.0,图像处理装置可以对2.0随机加减一个0.3以内的数,得到30个值,再将30个值中,在历史上未被确定为候选图像处理参数的值,确定为多个候选图像处理参数。As an example, if the initial image processing parameter is 2.0, the image processing device can determine 20 values in the interval from 1.90 to 2.10 with an interval of 0.01 as multiple candidate image processing parameters. Alternatively, if the initial image processing parameter is 2.0, the image processing device can randomly add or subtract a number within 0.3 to 2.0 to obtain multiple candidate image processing parameters. Alternatively, the image processing apparatus may determine all or part of the candidate image processing parameters determined historically as a plurality of candidate image processing parameters. Alternatively, if the initial image processing parameter is 2.0, the image processing device can determine 20 values in the interval from 1.90 to 2.10 at intervals of 0.01, and then select among the 20 values that have not been historically determined as candidate image processing parameters. Values are determined as multiple candidate image processing parameters. Alternatively, if the initial image processing parameter is 2.0, the image processing device can randomly add or subtract a number within 0.3 to 2.0 to obtain 30 values, and then select among the 30 values, values that have not been historically determined as candidate image processing parameters. , determined as multiple candidate image processing parameters.
可以理解的,在上述示例中,图像处理装置是先获取了一个候选图像处理参数集合,再根据集合中的参数对第二原始图像进行处理,以获取至少一个第二图像处理参数。除此之外,在具体应用中,图像处理装置也可以获取到一个候选图像处理参数,就根据该候选图像处理参数对第二原始图像进行处理,若处理后的图像的相关系数与目标图像的相关系数之差的绝对值小于或等于第一阈值,则该候选图像处理参数即为第二图像处理参数。之后,图像处理装置再次获取一个候选图像处理参数,根据该候选图像处理参数对第二原始图像进行处理,若处理后的图像的相关系数与目标图像的相关系数之差的绝对值小于或等于第一阈值,则该候选图像处理参数即为第二图像处理参数。以此类推,直到图像处理装置获取到足够的第二图像处理参数。It can be understood that in the above example, the image processing device first obtains a set of candidate image processing parameters, and then processes the second original image according to the parameters in the set to obtain at least one second image processing parameter. In addition, in specific applications, the image processing device can also obtain a candidate image processing parameter, and process the second original image according to the candidate image processing parameter. If the correlation coefficient of the processed image and the target image If the absolute value of the difference in correlation coefficients is less than or equal to the first threshold, then the candidate image processing parameter is the second image processing parameter. After that, the image processing device obtains a candidate image processing parameter again, and processes the second original image according to the candidate image processing parameter. If the absolute value of the difference between the correlation coefficient of the processed image and the correlation coefficient of the target image is less than or equal to the first a threshold, then the candidate image processing parameter is the second image processing parameter. By analogy, until the image processing device obtains sufficient second image processing parameters.
基于图6所示方法,图像处理装置可以对至少一个第二图像处理参数,以及至少一个第二环境信息进行训练,得到图像处理模型。其中,至少一个第二图像处理参数能够使得至少一个第二处理图像与至少一个目标图像相似度较高,所以,将环境信息(如第一环境信息)输入到根据上述方法得到的图像处理模型中,可以得到图像处理参数(如第一图像处理参数),采用该图像处理参数处理环境信息对应的原始图像(如第一原始图像),能够使得处理后的图像(如第一处理图像)与至少一个目标图像相似度较高。也就是说,处理后的图像也能够满足目标图像所满足的要求。Based on the method shown in Figure 6, the image processing device can train at least one second image processing parameter and at least one second environment information to obtain an image processing model. Wherein, at least one second image processing parameter can make at least one second processed image have a high similarity with at least one target image. Therefore, environmental information (such as first environmental information) is input into the image processing model obtained according to the above method. , the image processing parameters (such as the first image processing parameters) can be obtained, and the original image (such as the first original image) corresponding to the environmental information is processed by using the image processing parameters, so that the processed image (such as the first processed image) can be compared with at least A target image has higher similarity. In other words, the processed image can also meet the requirements of the target image.
其中,上述S5011-S5013中的图像处理装置的动作可以由图4所示的图像处理装 置40中的处理器401调用存储器403中存储的应用程序代码来执行,本申请实施例对此不做任何限制。Among them, the actions of the image processing device in the above-mentioned S5011-S5013 can be executed by the processor 401 in the image processing device 40 shown in Figure 4 calling the application code stored in the memory 403. This embodiment of the present application does not do anything in this regard. limit.
本申请上文中提到的各个实施例之间在方案不矛盾的情况下,均可以进行结合,不作限制。The various embodiments mentioned above in this application can be combined without any limitation, as long as the solutions are not inconsistent.
可以理解的,以上各个实施例中,由图像处理装置实现的方法和/或步骤,也可以由可用于图像处理装置的部件(例如芯片或者电路)实现。It can be understood that in each of the above embodiments, the methods and/or steps implemented by the image processing device can also be implemented by components (such as chips or circuits) that can be used in the image processing device.
上述对本申请实施例提供的方案进行了介绍。相应的,本申请实施例还提供了图像处理装置,该图像处理装置可以为上述方法实施例中的图像处理装置,或者包含上述图像处理装置的装置,或者为可用于图像处理装置的部件。可以理解的是,上述图像处理装置等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法操作,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above has introduced the solutions provided by the embodiments of the present application. Correspondingly, embodiments of the present application also provide an image processing device, which may be the image processing device in the above method embodiment, or a device including the above image processing device, or a component that can be used in the image processing device. It can be understood that, in order to implement the above functions, the above-mentioned image processing device includes hardware structures and/or software modules corresponding to each function. Persons skilled in the art should easily realize that, with the units and algorithm operations of each example described in conjunction with the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对图像处理装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可以理解的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can divide the image processing device into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. It can be understood that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.
比如,以采用集成的方式划分各个功能模块的情况下,图9示出了一种图像处理装置90的结构示意图。图像处理装置90包括处理模块901。处理模块901,也可以称为处理单元用于执行除了收发操作之外的操作,例如可以是处理电路或者处理器等。For example, when each functional module is divided into integrated modules, FIG. 9 shows a schematic structural diagram of an image processing device 90 . The image processing device 90 includes a processing module 901 . The processing module 901, which may also be called a processing unit, is used to perform operations other than sending and receiving operations, and may be, for example, a processing circuit or a processor.
在一些实施例中,该图像处理装置90还可以包括存储模块(图9中未示出),用于存储程序指令和数据。In some embodiments, the image processing device 90 may also include a storage module (not shown in FIG. 9) for storing program instructions and data.
示例性地,图像处理装置90用于实现上述图像处理装置的功能。图像处理装置90例如为图5所示的实施例或图6所示的实施例所述的图像处理装置。Illustratively, the image processing device 90 is used to implement the functions of the above image processing device. The image processing device 90 is, for example, the image processing device described in the embodiment shown in FIG. 5 or the embodiment shown in FIG. 6 .
其中,处理模块901,用于获取图像处理模型、第一原始图像和第一环境信息。其中,第一环境信息为获取第一原始图像时,环境的信息。例如,处理模块901可以用于执行S501。Among them, the processing module 901 is used to obtain the image processing model, the first original image and the first environment information. The first environment information is information about the environment when the first original image is acquired. For example, the processing module 901 may be used to perform S501.
处理模块901,还用于将第一环境信息作为图像处理模型的输入参数,得到第一图像处理参数。例如,处理模块901还可以用于执行S502。The processing module 901 is also used to use the first environment information as an input parameter of the image processing model to obtain the first image processing parameters. For example, the processing module 901 can also be used to perform S502.
处理模块901,还用于采用第一图像处理参数对第一原始图像进行处理,得到第一处理图像。例如,处理模块901还可以用于执行S503。The processing module 901 is also used to process the first original image using the first image processing parameters to obtain the first processed image. For example, the processing module 901 can also be used to perform S503.
一种可能的实现方式,第一环境信息包括以下至少一项:获取第一原始图像的时间信息、获取第一原始图像时光照强度的信息、获取第一原始图像时光照方向的信息、获取第一原始图像时的亮度信息或获取第一原始图像时的位置信息。In a possible implementation, the first environment information includes at least one of the following: time information for obtaining the first original image, information on the illumination intensity when obtaining the first original image, information on the illumination direction when obtaining the first original image, information on obtaining the first original image. The brightness information of an original image or the position information of the first original image.
一种可能的实现方式,处理模块901,具体用于获取至少一个第二环境信息和至少一个第二原始图像,至少一个第二原始图像包括至少一个第二环境信息中每个第二 环境信息对应的第二原始图像;处理模块901,还具体用于获取至少一个目标图像,至少一个目标图像包括至少一个第二环境信息中每个第二环境信息对应的目标图像,第二环境信息为获取第二环境信息对应的第二原始图像和第三原始图像时,环境的信息,第三原始图像为第二环境信息对应的目标图像的原始图像,第二环境信息包括的信息的类型与第一环境信息包括的信息的类型相同;处理模块901,还具体用于根据至少一个第二环境信息、至少一个第二原始图像和至少一个目标图像,获取图像处理模型。In one possible implementation, the processing module 901 is specifically configured to obtain at least one second environment information and at least one second original image. The at least one second original image includes at least one second environment information corresponding to each second environment information. The second original image; the processing module 901 is also specifically configured to obtain at least one target image. The at least one target image includes a target image corresponding to each second environmental information in at least one second environmental information. The second environmental information is to obtain the first The second original image and the third original image corresponding to the second environmental information are environmental information, the third original image is the original image of the target image corresponding to the second environmental information, and the type of information included in the second environmental information is the same as that of the first environment. The information includes the same type of information; the processing module 901 is also specifically configured to obtain an image processing model based on at least one second environment information, at least one second original image, and at least one target image.
一种可能的实现方式,处理模块901,还具体用于采用至少一个第二图像处理参数分别对至少一个第二原始图像进行处理,得到至少一个第二处理图像,至少一个第二处理图像的相关系数与至少一个目标图像的相关系数之差的绝对值小于或等于第一阈值;处理模块901,还具体用于根据至少一个第二环境信息和至少一个第二图像处理参数,得到图像处理模型。In one possible implementation, the processing module 901 is also specifically configured to use at least one second image processing parameter to process at least one second original image respectively to obtain at least one second processed image and the correlation of at least one second processed image. The absolute value of the difference between the coefficient and the correlation coefficient of at least one target image is less than or equal to the first threshold; the processing module 901 is also specifically configured to obtain an image processing model based on at least one second environment information and at least one second image processing parameter.
一种可能的实现方式,处理模块901,还用于获取候选图像处理参数集合,候选图像处理参数集合包括多个候选图像处理参数,多个候选图像处理参数包括至少一个第二处理参数。In one possible implementation, the processing module 901 is also used to obtain a candidate image processing parameter set, where the candidate image processing parameter set includes a plurality of candidate image processing parameters, and the plurality of candidate image processing parameters include at least one second processing parameter.
一种可能的实现方式,处理模块901,还用于获取初始图像处理参数;处理模块901,还用于对初始图像处理参数执行第一操作,得到候选图像处理参数集合。In one possible implementation, the processing module 901 is also used to obtain initial image processing parameters; the processing module 901 is also used to perform a first operation on the initial image processing parameters to obtain a set of candidate image processing parameters.
一种可能的实现方式,第一操作包括以下至少一项:根据初始图像处理参数按照规律确定候选图像处理参数,根据初始图像处理参数随机确定候选图像处理参数,或根据历史上确定的候选图像处理参数确定候选图像处理参数集合。In a possible implementation, the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to initial image processing parameters, randomly determining candidate image processing parameters based on initial image processing parameters, or determining candidate image processing parameters based on history. Parameters determine a set of candidate image processing parameters.
一种可能的实现方式,图像处理模型包括函数或算法。In one possible implementation, the image processing model includes functions or algorithms.
当用于实现图像处理装置的功能时,关于图像处理装置90所能实现的其他功能,可参考图5所示的实施例或图6所示的实施例的相关介绍,不多赘述。When used to implement the functions of the image processing device, for other functions that the image processing device 90 can implement, reference may be made to the embodiment shown in FIG. 5 or the relevant introduction of the embodiment shown in FIG. 6 , and will not be described again.
在一个简单的实施例中,本领域的技术人员可以想到图像处理装置90可以采用图4所示的形式。比如,图4中的处理器401可以通过调用存储器403中存储的计算机执行指令,使得图像处理装置90执行上述方法实施例中所述的方法。In a simple embodiment, those skilled in the art can imagine that the image processing device 90 may take the form shown in FIG. 4 . For example, the processor 401 in Figure 4 can cause the image processing device 90 to execute the method described in the above method embodiment by calling the computer execution instructions stored in the memory 403.
示例性的,图9中的处理模块901的功能/实现过程可以通过图4中的处理器401调用存储器403中存储的计算机执行指令来实现。For example, the function/implementation process of the processing module 901 in Figure 9 can be implemented by the processor 401 in Figure 4 calling the computer execution instructions stored in the memory 403.
可以理解的是,以上模块或单元的一个或多个可以软件、硬件或二者结合来实现。当以上任一模块或单元以软件实现的时候,所述软件以计算机程序指令的方式存在,并被存储在存储器中,处理器可以用于执行所述程序指令并实现以上方法流程。该处理器可以内置于SoC(片上系统)或ASIC,也可是一个独立的半导体芯片。该处理器内处理用于执行软件指令以进行运算或处理的核外,还可进一步包括必要的硬件加速器,如现场可编程门阵列(field programmable gate array,FPGA)、PLD(可编程逻辑器件)、或者实现专用逻辑运算的逻辑电路。It can be understood that one or more of the above modules or units can be implemented in software, hardware, or a combination of both. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in the memory. The processor can be used to execute the program instructions and implement the above method flow. The processor can be built into an SoC (System on a Chip) or ASIC, or it can be an independent semiconductor chip. In addition to the core used to execute software instructions for calculation or processing, the processor can further include necessary hardware accelerators, such as field programmable gate array (FPGA), PLD (programmable logic device) , or a logic circuit that implements dedicated logic operations.
当以上模块或单元以硬件实现的时候,该硬件可以是CPU、微处理器、数字信号处理(digital signal processing,DSP)芯片、微控制单元(microcontroller unit,MCU)、人工智能处理器、ASIC、SoC、FPGA、PLD、专用数字电路、硬件加速器或非集成的分立器件中的任一个或任一组合,其可以运行必要的软件或不依赖于软件以执行以上 方法流程。When the above modules or units are implemented in hardware, the hardware can be a CPU, a microprocessor, a digital signal processing (DSP) chip, a microcontroller unit (MCU), an artificial intelligence processor, an ASIC, Any one or any combination of SoC, FPGA, PLD, dedicated digital circuits, hardware accelerators or non-integrated discrete devices, which can run the necessary software or not rely on software to perform the above method flow.
可选的,本申请实施例还提供了一种芯片系统,包括:至少一个处理器和接口,该至少一个处理器通过接口与存储器耦合,当该至少一个处理器执行存储器中的计算机程序或指令时,使得上述任一方法实施例中的方法被执行。在一种可能的实现方式中,该芯片系统还包括存储器。可选的,该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件,本申请实施例对此不作具体限定。Optionally, embodiments of the present application also provide a chip system, including: at least one processor and an interface. The at least one processor is coupled to the memory through the interface. When the at least one processor executes the computer program or instructions in the memory When, the method in any of the above method embodiments is executed. In a possible implementation, the chip system further includes a memory. Optionally, the chip system may be composed of chips, or may include chips and other discrete devices, which is not specifically limited in the embodiments of the present application.
可选的,本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机可读存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。计算机可读存储介质可以是前述任一实施例的图像处理装置的内部存储单元,例如图像处理装置的硬盘或内存。上述计算机可读存储介质也可以是上述图像处理装置的外部存储设备,例如上述图像处理装置上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,上述计算机可读存储介质还可以既包括上述图像处理装置的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述图像处理装置所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。Optionally, embodiments of the present application also provide a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in the above computer-readable storage medium. When executed, the program can include the processes of the above method embodiments. . The computer-readable storage medium may be an internal storage unit of the image processing device of any of the aforementioned embodiments, such as a hard disk or memory of the image processing device. The computer-readable storage medium may also be an external storage device of the image processing device, such as a plug-in hard drive, a smart media card (SMC), or a secure digital (SD) equipped on the image processing device. card, flash card, etc. Furthermore, the above computer-readable storage medium may also include both the internal storage unit of the above image processing apparatus and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned image processing apparatus. The above-mentioned computer-readable storage media can also be used to temporarily store data that has been output or is to be output.
可选的,本申请实施例还提供了一种计算机程序产品。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机程序产品中,该程序在执行时,可包括如上述各方法实施例的流程。Optionally, the embodiment of the present application also provides a computer program product. All or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in the above computer program product. When executed, the program can include the processes of the above method embodiments.
可选的,本申请实施例还提供了一种计算机指令。上述方法实施例中的全部或者部分流程可以由计算机指令来指令相关的硬件(如计算机、处理器、接入网设备、移动性管理网元或会话管理网元等)完成。该程序可被存储于上述计算机可读存储介质中或上述计算机程序产品中。Optionally, the embodiment of the present application also provides a computer instruction. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct related hardware (such as computers, processors, access network equipment, mobility management network elements or session management network elements, etc.). The program may be stored in the above-mentioned computer-readable storage medium or in the above-mentioned computer program product.
可选的,本申请实施例还提供了一种智能驾驶车辆,包括上述实施例中的图像处理装置。Optionally, embodiments of the present application also provide an intelligent driving vehicle, including the image processing device in the above embodiment.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be The combination can either be integrated into another device, or some features can be omitted, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施 例方案的目的。The units described as separate components may or may not be physically separated. The components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units can be selected according to actual needs to achieve the purpose of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (20)

  1. 一种图像处理方法,其特征在于,所述方法包括:An image processing method, characterized in that the method includes:
    获取图像处理模型、第一原始图像和第一环境信息,所述第一环境信息为获取所述第一原始图像时,环境的信息;Obtain the image processing model, the first original image and the first environment information, where the first environment information is the information of the environment when the first original image is acquired;
    将所述第一环境信息作为所述图像处理模型的输入参数,得到第一图像处理参数;Use the first environment information as an input parameter of the image processing model to obtain first image processing parameters;
    采用所述第一图像处理参数对所述第一原始图像进行处理,得到第一处理图像。The first original image is processed using the first image processing parameter to obtain a first processed image.
  2. 根据权利要求1所述的方法,其特征在于,所述第一环境信息包括以下至少一项:获取所述第一原始图像的时间信息、获取所述第一原始图像时光照强度的信息、获取所述第一原始图像时光照方向的信息、获取所述第一原始图像时的亮度信息或获取所述第一原始图像时的位置信息。The method according to claim 1, characterized in that the first environment information includes at least one of the following: obtaining time information of the first original image, information on illumination intensity when obtaining the first original image, obtaining The first original image is the information of the illumination direction, the brightness information when the first original image is obtained, or the position information when the first original image is obtained.
  3. 根据权利要求1或2所述的方法,其特征在于,所述获取图像处理模型,包括:The method according to claim 1 or 2, characterized in that said obtaining the image processing model includes:
    获取至少一个第二环境信息和至少一个第二原始图像,所述至少一个第二原始图像包括所述至少一个第二环境信息中每个第二环境信息对应的第二原始图像;Obtaining at least one second environmental information and at least one second original image, the at least one second original image including a second original image corresponding to each second environmental information in the at least one second environmental information;
    获取至少一个目标图像,所述至少一个目标图像包括所述至少一个第二环境信息中每个第二环境信息对应的目标图像,所述第二环境信息为获取所述第二环境信息对应的第二原始图像和第三原始图像时,环境的信息,所述第三原始图像为所述第二环境信息对应的目标图像的原始图像,所述第二环境信息包括的信息的类型与所述第一环境信息包括的信息的类型相同;Acquire at least one target image, the at least one target image includes a target image corresponding to each second environment information in the at least one second environment information, and the second environment information is to obtain the third environment information corresponding to the second environment information. When the second original image and the third original image are environmental information, the third original image is the original image of the target image corresponding to the second environmental information, and the type of information included in the second environmental information is the same as that of the third original image. The environmental information includes the same type of information;
    根据所述至少一个第二环境信息、所述至少一个第二原始图像和所述至少一个目标图像,获取所述图像处理模型。The image processing model is obtained according to the at least one second environment information, the at least one second original image and the at least one target image.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述至少一个第二环境信息、所述至少一个第二原始图像和所述至少一个目标图像,获取所述图像处理模型,包括:The method of claim 3, wherein obtaining the image processing model based on the at least one second environment information, the at least one second original image and the at least one target image includes:
    采用至少一个第二图像处理参数分别对所述至少一个第二原始图像进行处理,得到至少一个第二处理图像,所述至少一个第二处理图像的相关系数与所述至少一个目标图像的相关系数之差的绝对值小于或等于第一阈值;Using at least one second image processing parameter to process the at least one second original image respectively to obtain at least one second processed image, the correlation coefficient of the at least one second processed image and the correlation coefficient of the at least one target image The absolute value of the difference is less than or equal to the first threshold;
    根据所述至少一个第二环境信息和所述至少一个第二图像处理参数,得到所述图像处理模型。The image processing model is obtained according to the at least one second environment information and the at least one second image processing parameter.
  5. 根据权利要求4所述的方法,其特征在于,在采用至少一个第二图像处理参数分别对所述至少一个第二原始图像进行处理,得到至少一个第二处理图像之前,所述方法还包括:The method according to claim 4, characterized in that, before using at least one second image processing parameter to respectively process the at least one second original image to obtain at least one second processed image, the method further includes:
    获取候选图像处理参数集合,所述候选图像处理参数集合包括多个候选图像处理参数,所述多个候选图像处理参数包括所述至少一个第二处理参数。A set of candidate image processing parameters is obtained, the set of candidate image processing parameters includes a plurality of candidate image processing parameters, and the plurality of candidate image processing parameters include the at least one second processing parameter.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, further comprising:
    获取初始图像处理参数;Get initial image processing parameters;
    对所述初始图像处理参数执行第一操作,得到所述候选图像处理参数集合。Perform a first operation on the initial image processing parameters to obtain the set of candidate image processing parameters.
  7. 根据权利要求6所述的方法,其特征在于,所述第一操作包括以下至少一项:根据所述初始图像处理参数按照规律确定候选图像处理参数,根据所述初始图像处理参数随机确定候选图像处理参数,或根据历史上确定的候选图像处理参数确定所述候 选图像处理参数集合。The method of claim 6, wherein the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to the initial image processing parameters, and randomly determining candidate images according to the initial image processing parameters. processing parameters, or determining the set of candidate image processing parameters based on historically determined candidate image processing parameters.
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述图像处理模型包括函数或算法。The method according to any one of claims 1-7, characterized in that the image processing model includes a function or algorithm.
  9. 一种图像处理装置,其特征在于,所述图像处理装置包括:处理模块;An image processing device, characterized in that the image processing device includes: a processing module;
    所述处理模块,用于获取图像处理模型、第一原始图像和第一环境信息,所述第一环境信息为获取所述第一原始图像时,环境的信息;The processing module is used to obtain the image processing model, the first original image and the first environmental information. The first environmental information is the information of the environment when the first original image is obtained;
    所述处理模块,还用于将所述第一环境信息作为所述图像处理模型的输入参数,得到第一图像处理参数;The processing module is also configured to use the first environment information as an input parameter of the image processing model to obtain the first image processing parameter;
    所述处理模块,还用于采用所述第一图像处理参数对所述第一原始图像进行处理,得到第一处理图像。The processing module is also used to process the first original image using the first image processing parameter to obtain a first processed image.
  10. 根据权利要求9所述的图像处理装置,其特征在于,所述第一环境信息包括以下至少一项:获取所述第一原始图像的时间信息、获取所述第一原始图像时光照强度的信息、获取所述第一原始图像时光照方向的信息、获取所述第一原始图像时的亮度信息或获取所述第一原始图像时的位置信息。The image processing device according to claim 9, characterized in that the first environment information includes at least one of the following: time information for obtaining the first original image, information on illumination intensity when obtaining the first original image. , the illumination direction information when acquiring the first original image, the brightness information when acquiring the first original image, or the position information when acquiring the first original image.
  11. 根据权利要求9或10所述的图像处理装置,其特征在于,The image processing device according to claim 9 or 10, characterized in that:
    所述处理模块,具体用于获取至少一个第二环境信息和至少一个第二原始图像,所述至少一个第二原始图像包括所述至少一个第二环境信息中每个第二环境信息对应的第二原始图像;The processing module is specifically configured to obtain at least one second environment information and at least one second original image. The at least one second original image includes a third image corresponding to each second environment information in the at least one second environment information. 2 original images;
    所述处理模块,还具体用于获取至少一个目标图像,所述至少一个目标图像包括所述至少一个第二环境信息中每个第二环境信息对应的目标图像,所述第二环境信息为获取所述第二环境信息对应的第二原始图像和第三原始图像时,环境的信息,所述第三原始图像为所述第二环境信息对应的目标图像的原始图像,所述第二环境信息包括的信息的类型与所述第一环境信息包括的信息的类型相同;The processing module is further specifically configured to acquire at least one target image, which includes a target image corresponding to each second environment information in the at least one second environment information, and the second environment information is obtained by The second original image and the third original image corresponding to the second environmental information are environmental information. The third original image is the original image of the target image corresponding to the second environmental information. The second environmental information The type of information included is the same as the type of information included in the first environment information;
    所述处理模块,还具体用于根据所述至少一个第二环境信息、所述至少一个第二原始图像和所述至少一个目标图像,获取所述图像处理模型。The processing module is further specifically configured to obtain the image processing model based on the at least one second environment information, the at least one second original image, and the at least one target image.
  12. 根据权利要求11所述的图像处理装置,其特征在于,The image processing device according to claim 11, characterized in that:
    所述处理模块,还具体用于采用至少一个第二图像处理参数分别对所述至少一个第二原始图像进行处理,得到至少一个第二处理图像,所述至少一个第二处理图像的相关系数与所述至少一个目标图像的相关系数之差的绝对值小于或等于第一阈值;The processing module is further specifically configured to use at least one second image processing parameter to respectively process the at least one second original image to obtain at least one second processed image, and the correlation coefficient of the at least one second processed image is The absolute value of the difference between the correlation coefficients of the at least one target image is less than or equal to the first threshold;
    所述处理模块,还具体用于根据所述至少一个第二环境信息和所述至少一个第二图像处理参数,得到所述图像处理模型。The processing module is further specifically configured to obtain the image processing model according to the at least one second environment information and the at least one second image processing parameter.
  13. 根据权利要求12所述的图像处理装置,其特征在于,The image processing device according to claim 12, characterized in that:
    所述处理模块,还用于获取候选图像处理参数集合,所述候选图像处理参数集合包括多个候选图像处理参数,所述多个候选图像处理参数包括所述至少一个第二处理参数。The processing module is also configured to obtain a candidate image processing parameter set, the candidate image processing parameter set includes a plurality of candidate image processing parameters, and the plurality of candidate image processing parameters include the at least one second processing parameter.
  14. 根据权利要求13所述的图像处理装置,其特征在于,The image processing device according to claim 13, characterized in that:
    所述处理模块,还用于获取初始图像处理参数;The processing module is also used to obtain initial image processing parameters;
    所述处理模块,还用于对所述初始图像处理参数执行第一操作,得到所述候选图像处理参数集合。The processing module is also configured to perform a first operation on the initial image processing parameters to obtain the candidate image processing parameter set.
  15. 根据权利要求14所述的图像处理装置,其特征在于,所述第一操作包括以下至少一项:根据所述初始图像处理参数按照规律确定候选图像处理参数,根据所述初始图像处理参数随机确定候选图像处理参数,或根据历史上确定的候选图像处理参数确定所述候选图像处理参数集合。The image processing device according to claim 14, characterized in that the first operation includes at least one of the following: determining candidate image processing parameters according to rules according to the initial image processing parameters, randomly determining according to the initial image processing parameters Candidate image processing parameters, or the set of candidate image processing parameters is determined based on historically determined candidate image processing parameters.
  16. 根据权利要求9-15中任一项所述的图像处理装置,其特征在于,所述图像处理模型包括函数或算法。The image processing device according to any one of claims 9-15, characterized in that the image processing model includes a function or algorithm.
  17. 一种图像处理装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行如权利要求1至8中任一项所述的方法。An image processing device, characterized in that it includes: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, and when the program or instructions are executed by the processor, the The device performs the method according to any one of claims 1 to 8.
  18. 一种计算机可读存储介质,其上存储有计算机程序或指令,其特征在于,所述计算机程序或指令被执行时使得计算机执行如权利要求1至8中任一项所述的方法。A computer-readable storage medium on which a computer program or instructions are stored, characterized in that, when executed, the computer program or instructions cause the computer to perform the method according to any one of claims 1 to 8.
  19. 一种芯片,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述芯片执行如权利要求1至8中任一项所述的方法。A chip, characterized in that it includes: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip executes The method of any one of claims 1 to 8.
  20. 一种智能驾驶车辆,其特征在于,包括:如权利要求9-16中任一项所述的图像处理装置。An intelligent driving vehicle, characterized by comprising: the image processing device according to any one of claims 9-16.
PCT/CN2022/139253 2022-04-28 2022-12-15 Image processing method and device WO2023207137A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210470192.7A CN117011153A (en) 2022-04-28 2022-04-28 Image processing method and device
CN202210470192.7 2022-04-28

Publications (1)

Publication Number Publication Date
WO2023207137A1 true WO2023207137A1 (en) 2023-11-02

Family

ID=88517233

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/139253 WO2023207137A1 (en) 2022-04-28 2022-12-15 Image processing method and device

Country Status (2)

Country Link
CN (1) CN117011153A (en)
WO (1) WO2023207137A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194215A (en) * 2010-03-19 2011-09-21 索尼公司 Image processing apparatus, method and program
CN107948511A (en) * 2017-11-28 2018-04-20 广东欧珀移动通信有限公司 Brightness of image processing method, device, storage medium and electronic equipment
CN108012078A (en) * 2017-11-28 2018-05-08 广东欧珀移动通信有限公司 Brightness of image processing method, device, storage medium and electronic equipment
WO2021109620A1 (en) * 2019-12-06 2021-06-10 华为技术有限公司 Exposure parameter adjustment method and apparatus
WO2021114184A1 (en) * 2019-12-12 2021-06-17 华为技术有限公司 Neural network model training method and image processing method, and apparatuses therefor
CN113989394A (en) * 2021-10-22 2022-01-28 浙江天行健智能科技有限公司 Image processing method and system for color temperature of automatic driving simulation environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194215A (en) * 2010-03-19 2011-09-21 索尼公司 Image processing apparatus, method and program
CN107948511A (en) * 2017-11-28 2018-04-20 广东欧珀移动通信有限公司 Brightness of image processing method, device, storage medium and electronic equipment
CN108012078A (en) * 2017-11-28 2018-05-08 广东欧珀移动通信有限公司 Brightness of image processing method, device, storage medium and electronic equipment
WO2021109620A1 (en) * 2019-12-06 2021-06-10 华为技术有限公司 Exposure parameter adjustment method and apparatus
WO2021114184A1 (en) * 2019-12-12 2021-06-17 华为技术有限公司 Neural network model training method and image processing method, and apparatuses therefor
CN113989394A (en) * 2021-10-22 2022-01-28 浙江天行健智能科技有限公司 Image processing method and system for color temperature of automatic driving simulation environment

Also Published As

Publication number Publication date
CN117011153A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
US11183067B2 (en) Image generating apparatus, image generating method, and recording medium
JP6789402B2 (en) Method of determining the appearance of an object in an image, equipment, equipment and storage medium
WO2021139176A1 (en) Pedestrian trajectory tracking method and apparatus based on binocular camera calibration, computer device, and storage medium
WO2020083307A1 (en) Method, apparatus, and storage medium for obtaining depth image
CN109413399B (en) Apparatus for synthesizing object using depth map and method thereof
WO2022165722A1 (en) Monocular depth estimation method, apparatus and device
US20190251670A1 (en) Electronic device and method for correcting images using external electronic device
WO2023164845A1 (en) Three-dimensional reconstruction method, device, system, and storage medium
WO2023207379A1 (en) Image processing method and apparatus, device and storage medium
CN113378605A (en) Multi-source information fusion method and device, electronic equipment and storage medium
CN117274107B (en) End-to-end color and detail enhancement method, device and equipment under low-illumination scene
CN111563517A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113721631A (en) Sensor data processing method, system and readable storage medium
WO2023207137A1 (en) Image processing method and device
CN115965961B (en) Local-global multi-mode fusion method, system, equipment and storage medium
US11425300B2 (en) Electronic device and method for processing image by electronic device
WO2022193132A1 (en) Image detection method and apparatus, and electronic device
CN115601275A (en) Point cloud augmentation method and device, computer readable storage medium and terminal equipment
US20230156349A1 (en) Method for generating image and electronic device therefor
CN116263942A (en) Method for adjusting image contrast, storage medium and computer program product
CN113824894A (en) Exposure control method, device, equipment and storage medium
CN117132629B (en) Image processing method and electronic device
CN113452981B (en) Image processing method, image processing device, electronic equipment and storage medium
WO2022041506A1 (en) Image depth estimation method, terminal device, and computer readable storage medium
CN113393510B (en) Image processing method, intelligent terminal and storage medium

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: 22939947

Country of ref document: EP

Kind code of ref document: A1