WO2021098518A1 - Image adjustment method and apparatus, electronic device, and storage medium - Google Patents

Image adjustment method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2021098518A1
WO2021098518A1 PCT/CN2020/126581 CN2020126581W WO2021098518A1 WO 2021098518 A1 WO2021098518 A1 WO 2021098518A1 CN 2020126581 W CN2020126581 W CN 2020126581W WO 2021098518 A1 WO2021098518 A1 WO 2021098518A1
Authority
WO
WIPO (PCT)
Prior art keywords
adjustment
color
image
detection result
judgment result
Prior art date
Application number
PCT/CN2020/126581
Other languages
French (fr)
Chinese (zh)
Inventor
姚坤
Original Assignee
RealMe重庆移动通信有限公司
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 RealMe重庆移动通信有限公司 filed Critical RealMe重庆移动通信有限公司
Publication of WO2021098518A1 publication Critical patent/WO2021098518A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Definitions

  • the present disclosure relates to the technical field of image processing, and in particular, to an image adjustment method, an image adjustment device, electronic equipment, and a computer-readable storage medium.
  • the initial shooting parameters of the pure color image are adjusted mainly according to the number of color components corresponding to each color channel in the collected image. Or by detecting the scene, and then using the effect parameters suitable for the scene to optimize the image quality.
  • the purpose of the present disclosure is to provide an image adjustment method and device, electronic equipment, and storage medium, so as to overcome at least to a certain extent the problem of limitations in color adjustment due to limitations and defects of related technologies.
  • an image adjustment method including: acquiring a to-be-processed image and determining multiple attribute information of the to-be-processed image, the attribute information including any of scene information, saturation, and brightness information One or a combination thereof; determining, according to the attribute information, that the detection result for the image to be processed satisfies the adjustment condition, and determining the color to be adjusted from the colors corresponding to the multiple color channels of the image to be processed; The color is adjusted to obtain the target image.
  • an image adjustment device including: an attribute information acquisition module for acquiring an image to be processed and determining attribute information of the image to be processed, the attribute information including scene information, saturation, and Any one or a combination of brightness information; the color to-be-adjusted determining module is configured to determine, according to the attribute information, that the detection result of the image to be processed satisfies the adjustment condition, then from the multiple color channels of the image to be processed The color to be adjusted is determined from the corresponding colors; the color adjustment module is used to perform an adjustment operation on the color to be adjusted to obtain a target image.
  • an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute by executing the executable instructions The image adjustment method described in any one of the above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the image adjustment method described in any one of the above is implemented.
  • Fig. 1 schematically shows a system architecture diagram for implementing an image adjustment method in an embodiment of the present disclosure.
  • Fig. 2 schematically shows a schematic diagram of an image adjustment method in an embodiment of the present disclosure.
  • FIG. 3 schematically shows a schematic diagram of the overall flow of determining a detection result in an embodiment of the present disclosure.
  • Fig. 4 schematically shows a flow chart of adjusting saturation in an embodiment of the present disclosure.
  • Fig. 5 schematically shows a block diagram of an image adjustment device in an embodiment of the present disclosure.
  • Fig. 6 schematically shows a block diagram of an electronic device in an embodiment of the present disclosure.
  • the system architecture 100 may include a first end 101, a network 102, and a second end 103.
  • the first terminal 101 may be a client, for example, various handheld devices (smart phones) with camera functions, desktop computers, vehicle-mounted devices, wearable devices, and so on.
  • the network 102 is a medium used to provide a communication link between the first end 101 and the second end 103.
  • the network 102 may include various connection types, such as wired communication links, wireless communication links, and so on.
  • the network 102 between the first end 101 and the second end 103 may be a wired communication link, for example, a communication link may be provided through a serial port cable, or may be a wireless communication link, and a communication link may be provided through a wireless network.
  • the second end 103 may be a client terminal, such as a portable computer, a desktop computer, a smart phone, or a terminal device with a photographing function and an image processing function, for adjusting and processing the image. Wherein, when the first end and the second end are both clients, they may be the same client.
  • the image adjustment method provided by the embodiments of the present disclosure can be completely executed by the second end or the first end, or partly executed by the first end and partly executed by the second end.
  • the executive body does not make special restrictions.
  • the image adjustment device can be arranged in the second end 103 or in the first end 101.
  • the detection result is obtained according to the attribute information of the image to be processed, and when the detection result satisfies the adjustment condition, the image
  • the color to be adjusted is determined from the colors corresponding to the multiple color channels, and then the color adjustment operation is performed.
  • the color to be adjusted can be determined from the colors corresponding to multiple color channels when the detection result meets the adjustment condition, and the color to be adjusted can be one or more of the multiple color channels, thus avoiding the related art The problem that all the color channels of the image can only be adjusted as a whole.
  • the function of locally adjusting the color of a certain color channel is realized, and the accuracy of color adjustment is improved. It can also determine the appropriate adjustment range, thereby improving the image quality.
  • the detection result can be obtained according to the attribute information, and the color can be adjusted when the detection result meets the adjustment conditions, it avoids the limitations of the related technology that can only adjust the pure color image and can only be adjusted as a whole, and increases the adjustment operation.
  • the conditions of use avoid blind adjustment operations, make the adjustment operations more flexible, more in line with the actual situation, and increase the scope of application.
  • an image adjustment method is provided in the embodiments of the present disclosure, which can be applied to any application scenario where a camera is used to collect images.
  • the image adjustment method may include the following steps:
  • step S210 a to-be-processed image is acquired, and multiple attribute information of the to-be-processed image is determined.
  • the attribute information includes any one or a combination of scene information, saturation, and brightness information.
  • the image to be processed may be an image captured by a camera, or an image in a shooting state.
  • the image in the shooting state refers to the state in which the preview image is obtained by entering the preview interface, but the image has not yet been generated.
  • the image in the shooting state may be an image shot in any mode of the camera in the terminal device, such as portrait mode, professional mode, vivid mode, etc., which are not limited here.
  • the image to be processed can be an image captured by various camera modules, which can include, but are not limited to, any of a high-resolution camera, a low-resolution camera (such as a macro camera), and a wide-angle camera.
  • the format of the image to be processed can be RAW (RAW Image Format).
  • RAW is an unprocessed and uncompressed format.
  • RAW can be conceptualized as original image encoding data.
  • the format of the image to be processed can also be YUV format.
  • Y in YUV represents brightness, which is gray value; while UV represents chromaticity, which is used to describe the color and saturation of the image, and is used to specify the color of the pixel.
  • the format of the image to be processed is not limited.
  • the attribute information of the image to be processed is used to describe the image characteristics of the image to be processed, and the attribute information may include scene information and image information.
  • the scene information refers to the information of the scene environment used to shoot the image to be processed, which can be specifically a background type and a preset scene, and the background type can be a solid-color type or a multi-color type.
  • the preset scene can be, for example, a scene such as the sky or green plants.
  • Image information refers to the information contained in the image itself, such as saturation and brightness information. Saturation can be defined as chroma divided by lightness, which, like chroma, represents the degree of color deviation from gray with the same brightness. Saturation refers to the vividness of the color, also known as the purity of the color.
  • Saturation depends on the ratio of the color component and the decolorizing component (gray) in the color.
  • the brightness information refers to the brightness of the image. If the gray value is between [0, 255], the larger the gray value, the higher the brightness.
  • step S220 it is determined according to the attribute information that the detection result for the image to be processed satisfies the adjustment condition, and the color to be adjusted is determined from the colors corresponding to the multiple color channels of the image to be processed.
  • the attribute information after obtaining the attribute information of the image to be processed, the attribute information can be judged, so as to obtain the final detection result used to measure the image to be processed according to the judgment result of the attribute information.
  • any one or more of the attribute information can be jointly processed here to evaluate the image to be processed from multiple dimensions and multiple angles, instead of evaluating only according to a certain dimension, adding evaluation The comprehensiveness and accuracy of the image to be processed.
  • After determining the detection result for the image to be processed it can continue to determine whether the detection result meets the adjustment condition.
  • the adjustment conditions here are used to restrict the color adjustment operation, that is, the restriction on whether to perform the adjustment operation, thereby avoiding the operation of adjusting the color at any time, avoiding the blindness of adjusting the color, and making the color adjustment operation more targeted Sex.
  • the filter conditions used to measure each attribute information are also different. Based on this, the attribute information can be judged to obtain multiple judgment results through the filtering conditions of each information in the attribute information; the multiple judgment results are further combined to obtain the detection result for the image to be processed, and it is determined whether the detection result meets the adjustment condition.
  • Fig. 3 schematically shows a schematic diagram of a flow chart for determining the detection result, referring to Fig. 2, which mainly includes the following steps:
  • step S310 the background type of the image to be processed is judged to obtain a first judgment result, and it is determined whether the first judgment result is a multi-color type; if yes, go to step S320; if not, go to step S350 .
  • step S320 if the first judgment result is a multi-color type, when it is detected that the first judgment result conforms to a preset scene, the saturation of the colors corresponding to the multiple color channels of the image to be processed is determined. Make a judgment to obtain a second judgment result representing the saturation of each color channel, and determine whether the second judgment result is an unsaturated type; if yes, go to step S330; if no, go to Step S360.
  • step S330 if the second judgment result is not saturated, compare the brightness threshold with the brightness information of the image to be processed to obtain a third judgment result representing the brightness information, and determine whether the third judgment result is The brightness information is greater than the brightness threshold; if yes, go to step S340; if not, go to step S370.
  • step S340 the detection result is determined according to the first judgment result, the second judgment result, and the third judgment result, and the third judgment result is that the brightness information is greater than the brightness threshold.
  • the detection result satisfies the adjustment condition
  • step S350 if the first judgment result is a pure color type, the first judgment result is used as the detection result, and it is determined that the detection result does not satisfy the adjustment condition;
  • step S360 if the second judgment result is oversaturated, the detection result is determined according to the first judgment result and the second judgment result, and it is determined that the detection result does not satisfy the adjustment condition;
  • step S370 if the third judgment result is less than the brightness threshold, it is determined that the detection result does not satisfy the adjustment condition.
  • the first judgment result is used to describe whether the background type of the image to be processed is a multi-color type. Specifically, it is possible to detect whether the background used to obtain the image to be processed is of a solid color type by means of artificial intelligence. For example, the type of color used to represent the background image in the scene where the shooting object is located can be recognized. If it contains one color, the background type can be considered as a solid color type; if it contains multiple colors, it can be considered The background type is a multi-color type. After it is determined that the first judgment result is a multi-color type, it can continue to judge whether the first judgment result conforms to the preset scene.
  • the preset scene can be, for example, a multi-color scene such as sky and green plants.
  • the second judgment result is used to indicate the specific situation of the saturation of the color corresponding to each color channel of the image to be processed, that is, the magnitude relationship between the saturation and the saturation threshold.
  • the color channels can include R channels, G channels, and B channels. Each color channel stores the information of the color elements in the image, and the colors in all the color channels are superimposed and mixed to produce the color of the pixels in the image. Specifically, the current saturation of the color of each color channel can be obtained, and the current saturation can be compared with the saturation threshold of each color channel to obtain whether the current saturation of the color of each color channel is unsaturated or oversaturated The second judgment result.
  • the saturation threshold of each color channel can be the same or different, which is not limited here. It should be noted that when the second judgment result is obtained here, the color saturation of each color channel is evaluated separately, that is, the color saturations of multiple color channels are independent of each other, so the second judgment result It is also for the color of each color channel.
  • the third judgment result may be used to indicate the magnitude relationship between the brightness information of the color of the entire image to be processed and the preset brightness threshold. Specifically, the brightness information of the image to be processed can be obtained, and the brightness information can be compared with the brightness threshold to obtain the third judgment result that the brightness information is greater than the brightness threshold or less than the brightness threshold.
  • the first judgment result, the second judgment result, and the third judgment result can be fused together to obtain the final detection result for screening.
  • multiple judgment results are obtained in a sequential order. Specifically, first obtain the first judgment result. If the first judgment result is a multi-color type and the first judgment result matches the preset scene, then continue to obtain the second judgment result; if the first judgment result is a pure color type, there is no need Obtain the second judgment result. Further, if the second judgment result for each color channel is not saturated, continue to obtain the third judgment result and determine the detection result according to the third judgment result; if the second judgment result is oversaturated, there is no need to obtain the third judgment result result. It should be noted that since the second judgment result is made on the basis of the first judgment result, and the third judgment result is made on the basis of the second judgment result, it can be considered that the third judgment result includes the first judgment result. Information about the judgment result and the second judgment result.
  • the detection result can be determined according to the third judgment result in a sequence. Either the first judgment result is directly determined as the detection result, or the detection result is determined according to the first judgment result and the second judgment result. On the basis of determining the detection result, if the third judgment result is that the brightness information is greater than the brightness threshold, it can be considered that the detection result satisfies the adjustment condition. If the third judgment result is that the brightness information is less than the brightness threshold, it can be considered that the detection result does not satisfy the adjustment condition. If the first judgment result is a pure color type, it can be considered that the detection result does not satisfy the adjustment condition. If the second judgment result is oversaturation, it can be considered that the detection result is that the adjustment condition is not satisfied.
  • the color adjustment operation when the detection result meets the adjustment condition, can be triggered, which can avoid unnecessary operations, reduce operation steps, and avoid misoperation.
  • the adjustment operation can be performed when the image to be processed is of a multi-color type conforming to the preset scene, the saturation is not saturated, and the brightness information is greater than the brightness threshold.
  • the adjustment conditions can be triggered by filtering in multiple dimensions, which can improve the adjustment operation Accuracy and pertinence.
  • the color to be adjusted may be one or more of the colors corresponding to the multiple color channels. Specifically, it may be determined according to the color corresponding to the color channel satisfying the second judgment result when the detection result satisfies the adjustment condition. Specifically, if the detection result satisfies the adjustment condition, the color corresponding to the color channel whose color is not saturated as the second determination result is determined as the color to be adjusted. For example, if the second judgment result of the G channel is not saturated, the G channel can be used as the color to be adjusted; if the second judgment result of the G channel and the B channel are both unsaturated, the G channel and the B channel can be All are used as the color to be adjusted.
  • one or more of the corresponding colors of the R channel, G channel, and B channel can be used as the color to be adjusted. Therefore, a certain color channel can be adjusted separately, which avoids the overall adjustment.
  • the problem of individual color oversaturation can be adjusted locally, avoiding limitations, improving the pertinence and flexibility of color adjustment, increasing the scope of application, and improving image quality.
  • step S230 an adjustment operation is performed on the to-be-adjusted color to obtain a target image.
  • the color to be adjusted may be adjusted in response to a user operation or automatically to obtain the target image.
  • the target image here refers to the image after the color adjustment of the image to be processed, so there is a difference in color from the image to be processed.
  • the specific steps of adjusting the color to be adjusted may include: determining the degree of adjustment, and adjusting the saturation of the color to be adjusted according to the degree of adjustment.
  • the degree of adjustment refers to the amplitude used to adjust the image, which can be specifically determined according to the difference information between the brightness information of the image to be processed and the brightness threshold.
  • the difference information between the brightness information and the brightness threshold (that is, the portion where the brightness information is greater than the brightness threshold) can be obtained.
  • the difference information can be negatively correlated with the degree of adjustment, that is, the greater the difference information between the two, the smaller the degree of adjustment; the smaller the difference information between the two, the greater the degree of adjustment.
  • the adjustment degree of each color channel can be determined according to the same rule or different rules.
  • the specific steps of color adjustment may include: dividing the image to be processed into blocks to obtain multiple blocks, respectively obtaining the color channel information and attribute information of each block, and then determining the block in each block according to the method in step S220 to step S230.
  • the saturation of each pixel contained in each block is adjusted one by one, and then all the blocks are merged together to obtain an image after adjusting the saturation.
  • the adjustment degree can be determined according to the environmental brightness, and the degree and level of the saturation increase can be determined according to the adjustment degree, so as to avoid blind increase
  • the problem of image saturation and inaccurate adjustment improves the vividness of the image and improves the image quality.
  • the method may also include the following two cases: Case 1: If the detection result does not satisfy the adjustment condition, stop performing the adjustment operation. Case 2: If the detection result does not satisfy the adjustment condition, a candidate color is determined from the colors corresponding to the multiple color channels, and a preset adjustment operation is performed on the candidate color.
  • the candidate color refers to the color of other color channels except the color to be adjusted.
  • the preset adjustment operation may also be an adjustment operation on the saturation of the color, but the adjustment degree of the adjustment operation in step S230 is different. It should be noted that the adjustment degree of the preset adjustment operation may be smaller than the adjustment degree of the adjustment operation, so as to avoid the problems of excessive and inappropriate saturation adjustment and improve the image quality.
  • Fig. 4 schematically shows a specific flow chart for adjusting saturation, referring to Fig. 4, it mainly includes the following steps:
  • step S410 the scene is detected by artificial intelligence.
  • step S420 it is determined whether it is a solid-color background image. If yes, go to step S430; if not, go to step S490.
  • step S430 it is determined whether it is a preset scene, and the preset scene may be, for example, a multi-color scene such as the sky. If yes, go to step S440.
  • step S440 information of multiple color channels of the image to be processed is acquired.
  • the multiple color channels may be R, G, and B channels, and the information of the multiple color channels may be the color saturation of the multiple color channels.
  • step S450 it is determined whether the saturation of the multiple color channels is oversaturated. If yes, go to step S490; if not, go to step S460.
  • step S460 the brightness information of the image to be processed is acquired.
  • step S470 it is determined whether the brightness information is lower than a preset brightness threshold. If yes, go to step S490; if not, go to step S480.
  • step S480 the color of the R channel, the G channel, or the B channel is used as the color to be adjusted in combination with the judgment results of the saturation of the multiple color channels, so as to increase the color saturation of the R channel, the G channel or the B channel.
  • step S490 no processing is performed or the increase in saturation is weakened.
  • the technical solution in Figure 4 can be combined with the judgment results of the saturation of multiple color channels, and one or more of the R channel, the G channel, and the B channel can be used as the color to be adjusted, so a certain color channel can be individually adjusted
  • the adjustment avoids the problem of over-saturation of individual colors during overall adjustment, enables partial adjustment, avoids limitations, and improves the pertinence of color adjustment.
  • an image adjustment device is provided.
  • the image adjustment device 500 may include:
  • the attribute information obtaining module 501 is configured to obtain a to-be-processed image and determine multiple attribute information of the to-be-processed image, where the attribute information includes any one or a combination of scene information, saturation, and brightness information;
  • the to-be-adjusted color determination module 502 is configured to determine, according to the attribute information, that the detection result of the to-be-processed image satisfies the adjustment condition, and determine the to-be-adjusted color from the colors corresponding to the multiple color channels of the to-be-processed image;
  • the color adjustment module 503 is configured to perform an adjustment operation on the to-be-adjusted color to obtain a target image.
  • the device further includes: a first acquisition module, configured to detect the scene type of the image to be processed to obtain a first judgment result; and a second acquisition module, configured to determine If the first judgment result is a multi-color type, and if it is detected that the first judgment result conforms to a preset scene, the saturation of the colors corresponding to the multiple color channels of the image to be processed is judged to obtain Used to indicate the second judgment result of the color saturation of each of the color channels; the third acquisition module is used to determine that the second judgment result is that the color is not saturated, and compare the brightness threshold with the brightness information of the image to be processed The comparison is performed to obtain a third judgment result indicating whether the brightness information is greater than the brightness threshold; the detection result judgment module is configured to determine the detection result according to the first judgment result, the second judgment result, and the third judgment result, And when the third judgment result is that the brightness information is greater than the brightness threshold, it is determined that the detection result satisfies the adjustment condition.
  • a first acquisition module configured to detect the scene type of the
  • the device further includes: determining that the first judgment result is a pure color type, using the first judgment result as the detection result, and determining that the detection result does not satisfy The adjustment condition; or it is determined that the second judgment result is color oversaturation, the detection result is determined according to the first judgment result and the second judgment result, and it is determined that the detection result does not satisfy the adjustment condition; or It is determined that the third judgment result is that the brightness information is less than the brightness threshold, and it is determined that the detection result does not satisfy the adjustment condition.
  • the to-be-adjusted color determination module is configured to: if the detection result meets the adjustment condition, the second determination result is the color corresponding to the color channel whose color is not saturated Determined to be the color to be adjusted.
  • the color adjustment module includes: a degree determination module, configured to determine the degree of adjustment, and perform an adjustment operation on the saturation of the color to be adjusted according to the degree of adjustment.
  • the degree determination module is configured to: if the brightness information is greater than the brightness threshold, determine the adjustment degree according to the difference information between the brightness information and the brightness threshold. , And the adjustment degree is negatively related to the difference information.
  • the device further includes: a stop adjustment module, configured to stop performing the adjustment operation if the detection result does not satisfy the adjustment condition; or a preset adjustment execution module , For determining a candidate color from the colors corresponding to the multiple color channels if the detection result does not satisfy the adjustment condition, and performing a preset adjustment operation on the candidate color.
  • modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
  • an electronic device capable of implementing the above method is also provided.
  • the electronic device 600 according to this embodiment of the present disclosure will be described below with reference to FIG. 6.
  • the electronic device 600 shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 is represented in the form of a general-purpose computing device.
  • the components of the electronic device 600 may include, but are not limited to: the aforementioned at least one processing unit 610, the aforementioned at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), and a display unit 640.
  • the storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 executes various exemplary methods described in the “Exemplary Method” section of this specification. Steps of implementation. For example, the processing unit 610 may perform the steps shown in FIG. 2.
  • the storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202, and may further include a read-only storage unit (ROM) 6203.
  • RAM random access storage unit
  • ROM read-only storage unit
  • the storage unit 620 may also include a program/utility tool 6204 having a set of (at least one) program module 6205.
  • program module 6205 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
  • the bus 630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration interface, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
  • the electronic device 600 may also communicate with one or more external devices 700 (such as keyboards, pointing devices, Bluetooth devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 600, and/or communicate with Any device (such as a router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 650.
  • the electronic device 600 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660.
  • networks for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
  • the network adapter 660 communicates with other modules of the electronic device 600 through the bus 630. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the above-mentioned method in this specification.
  • various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code.
  • the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
  • the program product for implementing the above method according to the embodiment of the present disclosure may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer.
  • CD-ROM portable compact disk read-only memory
  • the program product of the present disclosure is not limited thereto.
  • the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
  • the program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers for example, using Internet service providers.

Abstract

An image adjustment method and apparatus, an electronic device, and a storage medium, relating to the technical field of image processing. The method comprises: obtaining an image to be processed, and determining attribute information of said image, the attribute information comprising any one or a combination of scene information, saturation, and brightness information; determining, according to the attribute information, that a detection result of said image meets an adjustment condition, and determining a color to be adjusted from colors corresponding to a plurality of color channels of said image; and adjusting said color to obtain a target image. Color adjustment can be locally carried out, and the color adjustment accuracy is improved.

Description

图像调节方法及装置、电子设备、存储介质Image adjustment method and device, electronic equipment, and storage medium
本申请要求于2019年11月18日提交的,申请号为201911128015.5,名称为“图像调节方法及装置、电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 18, 2019, the application number is 201911128015.5, and the title is "Image adjustment method and device, electronic equipment, storage medium", the entire content of which is incorporated into this application by reference in.
技术领域Technical field
本公开涉及图像处理技术领域,具体而言,涉及一种图像调节方法、图像调节装置、电子设备以及计算机可读存储介质。The present disclosure relates to the technical field of image processing, and in particular, to an image adjustment method, an image adjustment device, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
在通过摄像头拍摄图像的过程中,如何提高图像质量是提高用户体验的关键所在。In the process of capturing images through a camera, how to improve image quality is the key to improving user experience.
相关技术中,主要是根据统计收集图像中各颜色通道对应的颜色分量数目,对纯色类型的图像的初始拍摄参数进行调整。或者是通过检测场景,进而使用适合场景的效果参数来进行画质优化。In the related art, the initial shooting parameters of the pure color image are adjusted mainly according to the number of color components corresponding to each color channel in the collected image. Or by detecting the scene, and then using the effect parameters suitable for the scene to optimize the image quality.
上述方式中,只能对纯色图像进行调整,或者是对图像整体进行提升,操作具有一定的局限性,导致图像质量较差。In the above method, only the pure color image can be adjusted, or the overall image can be improved, and the operation has certain limitations, resulting in poor image quality.
发明内容Summary of the invention
本公开的目的在于提供一种图像调节方法及装置、电子设备、存储介质,进而至少在一定程度上克服由于相关技术的限制和缺陷而导致的颜色调节具有局限性的问题。The purpose of the present disclosure is to provide an image adjustment method and device, electronic equipment, and storage medium, so as to overcome at least to a certain extent the problem of limitations in color adjustment due to limitations and defects of related technologies.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other characteristics and advantages of the present disclosure will become apparent through the following detailed description, or partly learned through the practice of the present disclosure.
根据本公开的一个方面,提供一种图像调节方法,包括:获取待处理图像,并确定所述待处理图像的多个属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合;根据所述属性信息确定针对所述待处理图像的检测结果满足调节条件,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色;对所述待调节颜色进行调节操作,以得到目标图像。According to one aspect of the present disclosure, there is provided an image adjustment method, including: acquiring a to-be-processed image and determining multiple attribute information of the to-be-processed image, the attribute information including any of scene information, saturation, and brightness information One or a combination thereof; determining, according to the attribute information, that the detection result for the image to be processed satisfies the adjustment condition, and determining the color to be adjusted from the colors corresponding to the multiple color channels of the image to be processed; The color is adjusted to obtain the target image.
根据本公开的一个方面,提供一种图像调节装置,包括:属性信息获取模块,用于获取待处理图像,并确定所述待处理图像的属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合;待调节颜色确定模块,用于根据所述属性信息确定针对所述待处理图像的检测结果满足调节条件,则从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色;颜色调节模块,用于对所述待调节颜色进行调节操作,以得到目标图像。According to one aspect of the present disclosure, there is provided an image adjustment device, including: an attribute information acquisition module for acquiring an image to be processed and determining attribute information of the image to be processed, the attribute information including scene information, saturation, and Any one or a combination of brightness information; the color to-be-adjusted determining module is configured to determine, according to the attribute information, that the detection result of the image to be processed satisfies the adjustment condition, then from the multiple color channels of the image to be processed The color to be adjusted is determined from the corresponding colors; the color adjustment module is used to perform an adjustment operation on the color to be adjusted to obtain a target image.
根据本公开的一个方面,提供一种电子设备,包括:处理器;以及存储器,用于 存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的图像调节方法。According to one aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute by executing the executable instructions The image adjustment method described in any one of the above.
根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的图像调节方法。According to one aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the image adjustment method described in any one of the above is implemented.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments in accordance with the disclosure, and together with the specification are used to explain the principle of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1示意性示出本公开实施例中用于实现图像调节方法的系统架构图。Fig. 1 schematically shows a system architecture diagram for implementing an image adjustment method in an embodiment of the present disclosure.
图2示意性示出本公开实施例中一种图像调节方法的示意图。Fig. 2 schematically shows a schematic diagram of an image adjustment method in an embodiment of the present disclosure.
图3示意性示出本公开实施例中确定检测结果的整体流程示意图。FIG. 3 schematically shows a schematic diagram of the overall flow of determining a detection result in an embodiment of the present disclosure.
图4示意性示出本公开实施例中调节饱和度的流程示意图。Fig. 4 schematically shows a flow chart of adjusting saturation in an embodiment of the present disclosure.
图5示意性示出本公开实施例中图像调节装置的框图。Fig. 5 schematically shows a block diagram of an image adjustment device in an embodiment of the present disclosure.
图6示意性示出本公开实施例中一种电子设备的框图。Fig. 6 schematically shows a block diagram of an electronic device in an embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed To those skilled in the art. The described features, structures or characteristics can be combined in one or more embodiments in any suitable way. In the following description, many specific details are provided to give a sufficient understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be used. In other cases, the well-known technical solutions are not shown or described in detail to avoid overwhelming the crowd and obscure all aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are only schematic illustrations of the present disclosure, and are not necessarily drawn to scale. The same reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.
本公开实施例中,首先提供了一种用于实现图像调节的系统结构图,如图1所示,系统架构100可以包括第一端101、网络102、第二端103。其中,第一端101可以是 客户端,例如可以为各种具有拍照功能的手持设备(智能手机)、台式计算机、车载设备以及可穿戴设备等等。网络102用以在第一端101和第二端103之间提供通信链路的介质,网络102可以包括各种连接类型,例如有线通信链路、无线通信链路等等,在本公开实施例中,第一端101和第二端103之间的网络102可以是有线通信链路,例如可以通过串口连接线提供通信链路,也可以是无线通信链路,通过无线网络提供通信链路。第二端103可以是客户端,例如便携式计算机、台式计算机、智能手机等具有拍照功能以及具有图像处理功能的终端设备,用于对图像进行调节处理。其中,当第一端和第二端均为客户端时,二者可以为同一个客户端。In the embodiment of the present disclosure, a system structure diagram for implementing image adjustment is first provided. As shown in FIG. 1, the system architecture 100 may include a first end 101, a network 102, and a second end 103. Among them, the first terminal 101 may be a client, for example, various handheld devices (smart phones) with camera functions, desktop computers, vehicle-mounted devices, wearable devices, and so on. The network 102 is a medium used to provide a communication link between the first end 101 and the second end 103. The network 102 may include various connection types, such as wired communication links, wireless communication links, and so on. In the embodiments of the present disclosure, Here, the network 102 between the first end 101 and the second end 103 may be a wired communication link, for example, a communication link may be provided through a serial port cable, or may be a wireless communication link, and a communication link may be provided through a wireless network. The second end 103 may be a client terminal, such as a portable computer, a desktop computer, a smart phone, or a terminal device with a photographing function and an image processing function, for adjusting and processing the image. Wherein, when the first end and the second end are both clients, they may be the same client.
应该理解,图1中的第一端、网络和第二端的数目仅仅是示意性的。根据实现需要,可以具有任意数目的客户端、网络和服务器。It should be understood that the numbers of the first end, the network, and the second end in FIG. 1 are only illustrative. There can be any number of clients, networks, and servers according to implementation needs.
需要说明的是,本公开实施例所提供的图像调节方法可以完全由第二端或第一端执行,也可以部分由第一端执行,部分由第二端执行,此处对图像调节方法的执行主体不做特殊限定。相应地,图像调节装置可设置于第二端103中或设置于第一端101中。It should be noted that the image adjustment method provided by the embodiments of the present disclosure can be completely executed by the second end or the first end, or partly executed by the first end and partly executed by the second end. The executive body does not make special restrictions. Correspondingly, the image adjustment device can be arranged in the second end 103 or in the first end 101.
本公开实施例中提供的图像调节方法、图像调节装置、电子设备以及计算机可读存储介质中,根据待处理图像的属性信息得到检测结果,并在检测结果满足调节条件时,从待处理图像的多个颜色通道对应的颜色中确定待调节颜色,进而执行颜色调节操作。一方面,由于可以在检测结果满足调节条件时从多个颜色通道对应的颜色中确定待调节颜色,且待调节颜色可以为多个颜色通道中的一个或者是多个,因此避免了相关技术中只能对图像的所有颜色通道整体进行调节的问题,由于可以实现只调节其中满足调节条件的颜色通道,从而实现了局部调节某一种颜色通道的颜色的功能,提高了颜色调节的准确性,也能够确定合适的调节范围,从而提高了图像质量。另一方面,由于能够根据属性信息得到检测结果,进而在检测结果满足调节条件时对颜色进行调节,避免了相关技术中只能调节纯色图像以及只能整体调节的局限性,增加了调节操作的使用条件,避免了盲目进行调节的操作,使得调节操作更加灵活,更符合实际情况,且增加了应用范围。In the image adjustment method, image adjustment device, electronic device, and computer-readable storage medium provided in the embodiments of the present disclosure, the detection result is obtained according to the attribute information of the image to be processed, and when the detection result satisfies the adjustment condition, the image The color to be adjusted is determined from the colors corresponding to the multiple color channels, and then the color adjustment operation is performed. On the one hand, since the color to be adjusted can be determined from the colors corresponding to multiple color channels when the detection result meets the adjustment condition, and the color to be adjusted can be one or more of the multiple color channels, thus avoiding the related art The problem that all the color channels of the image can only be adjusted as a whole. Since it is possible to adjust only the color channels that meet the adjustment conditions, the function of locally adjusting the color of a certain color channel is realized, and the accuracy of color adjustment is improved. It can also determine the appropriate adjustment range, thereby improving the image quality. On the other hand, because the detection result can be obtained according to the attribute information, and the color can be adjusted when the detection result meets the adjustment conditions, it avoids the limitations of the related technology that can only adjust the pure color image and can only be adjusted as a whole, and increases the adjustment operation. The conditions of use avoid blind adjustment operations, make the adjustment operations more flexible, more in line with the actual situation, and increase the scope of application.
在上述系统架构的基础上,本公开实施例中提供了一种图像调节方法,可以应用于任何使用摄像头进行采集图像的应用场景。参考图2中所示,该图像调节方法可以包括以下步骤:On the basis of the foregoing system architecture, an image adjustment method is provided in the embodiments of the present disclosure, which can be applied to any application scenario where a camera is used to collect images. Referring to FIG. 2, the image adjustment method may include the following steps:
在步骤S210中,获取待处理图像,并确定所述待处理图像的多个属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合。In step S210, a to-be-processed image is acquired, and multiple attribute information of the to-be-processed image is determined. The attribute information includes any one or a combination of scene information, saturation, and brightness information.
在一些实施例中,待处理图像可以为采用摄像头拍摄好的图像,或者是处于拍摄状态的图像。处于拍摄状态的图像指的是,进入预览界面得到预览图像但是尚未生成图像的状态。处于拍摄状态的图像可以为采用终端设备中相机的任何模式拍摄的图像,例如人像模式、专业模式、鲜艳模式等等,此处不做限定。在这种情况下,待处理图 像可以为通过各种摄像头模组拍摄的图像,摄像头模组可以包括但不限于高分辨率摄像头、低分辨率摄像头(例如微距摄像头)以及广角摄像头中的任意一种或者是多种。待处理图像的格式可以为RAW(RAW Image Format)格式,RAW是未经处理、也未经压缩的格式,可以把RAW概念化为原始图像编码数据。待处理图像的格式也可以为YUV格式,YUV中的Y表示明亮度,也就是灰度值;而UV表示的则是色度,作用是描述影像颜色及饱和度,用于指定像素的颜色。本公开实施例中,对待处理图像的格式不作限定。In some embodiments, the image to be processed may be an image captured by a camera, or an image in a shooting state. The image in the shooting state refers to the state in which the preview image is obtained by entering the preview interface, but the image has not yet been generated. The image in the shooting state may be an image shot in any mode of the camera in the terminal device, such as portrait mode, professional mode, vivid mode, etc., which are not limited here. In this case, the image to be processed can be an image captured by various camera modules, which can include, but are not limited to, any of a high-resolution camera, a low-resolution camera (such as a macro camera), and a wide-angle camera. One or more. The format of the image to be processed can be RAW (RAW Image Format). RAW is an unprocessed and uncompressed format. RAW can be conceptualized as original image encoding data. The format of the image to be processed can also be YUV format. Y in YUV represents brightness, which is gray value; while UV represents chromaticity, which is used to describe the color and saturation of the image, and is used to specify the color of the pixel. In the embodiments of the present disclosure, the format of the image to be processed is not limited.
待处理图像的属性信息用于描述待处理图像的图像特征,属性信息可以包括场景信息以及图像信息。其中场景信息指的是用于拍摄待处理图像的场景环境的信息,具体可以为背景类型和预设场景,且背景类型可以为纯色类型或者是多色类型。预设场景例如可以为天空或者是绿植等场景。图像信息指的是图像自身所具有的信息,例如饱和度以及亮度信息等等。饱和度可定义为彩度除以明度,与彩度同样表征彩色偏离同亮度灰色的程度。饱和度是指颜色的鲜艳程度,也称颜色的纯度。饱和度取决于该色中含色成分和消色成分(灰色)的比例。含色成分越大,饱和度越大;消色成分越大,饱和度越小。亮度信息指的是图像的明暗程度,如果灰度值在[0,255]之间,则灰度值越大亮度越高。The attribute information of the image to be processed is used to describe the image characteristics of the image to be processed, and the attribute information may include scene information and image information. The scene information refers to the information of the scene environment used to shoot the image to be processed, which can be specifically a background type and a preset scene, and the background type can be a solid-color type or a multi-color type. The preset scene can be, for example, a scene such as the sky or green plants. Image information refers to the information contained in the image itself, such as saturation and brightness information. Saturation can be defined as chroma divided by lightness, which, like chroma, represents the degree of color deviation from gray with the same brightness. Saturation refers to the vividness of the color, also known as the purity of the color. Saturation depends on the ratio of the color component and the decolorizing component (gray) in the color. The larger the color component, the greater the saturation; the larger the achromatic component, the smaller the saturation. The brightness information refers to the brightness of the image. If the gray value is between [0, 255], the larger the gray value, the higher the brightness.
接下来,在步骤S220中,根据所述属性信息确定针对所述待处理图像的检测结果满足调节条件,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色。Next, in step S220, it is determined according to the attribute information that the detection result for the image to be processed satisfies the adjustment condition, and the color to be adjusted is determined from the colors corresponding to the multiple color channels of the image to be processed.
在一些实施例中,在获取到待处理图像的属性信息后,可以对属性信息进行判断,以根据属性信息的判断结果得到最终用于衡量待处理图像的检测结果。为了提高准确性,此处可以将属性信息中的任意一个或者是多个进行联合处理,从多个维度和多个角度来评价待处理图像,而不是只根据某一个维度来评价,增加了评价待处理图像的全面性和准确性。在确定针对待处理图像的检测结果后,可以继续判断该检测结果是否满足调节条件。此处的调节条件用于限制对颜色的调节操作,即对是否执行调节操作的限制,从而避免了任何时候都可以调节颜色的操作,避免了调节颜色的盲目性,使得颜色调节操作更具有针对性。In some embodiments, after obtaining the attribute information of the image to be processed, the attribute information can be judged, so as to obtain the final detection result used to measure the image to be processed according to the judgment result of the attribute information. In order to improve accuracy, any one or more of the attribute information can be jointly processed here to evaluate the image to be processed from multiple dimensions and multiple angles, instead of evaluating only according to a certain dimension, adding evaluation The comprehensiveness and accuracy of the image to be processed. After determining the detection result for the image to be processed, it can continue to determine whether the detection result meets the adjustment condition. The adjustment conditions here are used to restrict the color adjustment operation, that is, the restriction on whether to perform the adjustment operation, thereby avoiding the operation of adjusting the color at any time, avoiding the blindness of adjusting the color, and making the color adjustment operation more targeted Sex.
由于属性信息中的每一个相互独立,因此用于衡量每个属性信息的筛选条件也各不相同。基于此,可以分别通过属性信息中每一个信息的筛选条件,对属性信息进行判断以得到多个判断结果;进一步结合多个判断结果得到针对待处理图像的检测结果,并确定检测结果是否符合调节条件。Since each of the attribute information is independent of each other, the filter conditions used to measure each attribute information are also different. Based on this, the attribute information can be judged to obtain multiple judgment results through the filtering conditions of each information in the attribute information; the multiple judgment results are further combined to obtain the detection result for the image to be processed, and it is determined whether the detection result meets the adjustment condition.
图3中示意性示出了确定检测结果的流程示意图,参考图2中所示,主要包括以下步骤:Fig. 3 schematically shows a schematic diagram of a flow chart for determining the detection result, referring to Fig. 2, which mainly includes the following steps:
在步骤S310中,对所述待处理图像的背景类型进行判断得到第一判断结果,并确定第一判断结果是否为多色类型;若是,则转至步骤S320;若否,则转至步骤S350。In step S310, the background type of the image to be processed is judged to obtain a first judgment result, and it is determined whether the first judgment result is a multi-color type; if yes, go to step S320; if not, go to step S350 .
在步骤S320中,若所述第一判断结果为多色类型,则在检测第一判断结果符合预 设场景时,分别对所述待处理图像的所述多个颜色通道对应的颜色的饱和度进行判断,以得到用于表示各所述颜色通道的颜色的饱和度的第二判断结果,并确定第二判断结果是否为未饱和类型;若是,则转至步骤S330;若否,则转至步骤S360。In step S320, if the first judgment result is a multi-color type, when it is detected that the first judgment result conforms to a preset scene, the saturation of the colors corresponding to the multiple color channels of the image to be processed is determined. Make a judgment to obtain a second judgment result representing the saturation of each color channel, and determine whether the second judgment result is an unsaturated type; if yes, go to step S330; if no, go to Step S360.
在步骤S330中,若所述第二判断结果为未饱和,则将亮度阈值与所述待处理图像的亮度信息进行对比得到用于表示亮度信息的第三判断结果,并确定第三判断结果是否为亮度信息大于亮度阈值;若是,则转至步骤S340;若否,则转至步骤S370。In step S330, if the second judgment result is not saturated, compare the brightness threshold with the brightness information of the image to be processed to obtain a third judgment result representing the brightness information, and determine whether the third judgment result is The brightness information is greater than the brightness threshold; if yes, go to step S340; if not, go to step S370.
在步骤S340中,根据所述第一判断结果、第二判断结果以及第三判断结果确定所述检测结果,并在所述第三判断结果为所述亮度信息大于所述亮度阈值时确定所述检测结果满足所述调节条件;In step S340, the detection result is determined according to the first judgment result, the second judgment result, and the third judgment result, and the third judgment result is that the brightness information is greater than the brightness threshold. The detection result satisfies the adjustment condition;
在步骤S350中,若所述第一判断结果为纯色类型,则将所述第一判断结果作为所述检测结果,并确定所述检测结果不满足所述调节条件;In step S350, if the first judgment result is a pure color type, the first judgment result is used as the detection result, and it is determined that the detection result does not satisfy the adjustment condition;
在步骤S360中,若所述第二判断结果为过饱和,则根据所述第一判断结果和第二判断结果确定所述检测结果,并确定所述检测结果不满足所述调节条件;In step S360, if the second judgment result is oversaturated, the detection result is determined according to the first judgment result and the second judgment result, and it is determined that the detection result does not satisfy the adjustment condition;
在步骤S370中,若所述第三判断结果为小于所述亮度阈值,则确定所述检测结果不满足所述调节条件。In step S370, if the third judgment result is less than the brightness threshold, it is determined that the detection result does not satisfy the adjustment condition.
本公开实施例中,第一判断结果用于描述待处理图像的背景类型是否为多色类型。具体可以通过人工智能方式检测用于获取待处理图像的背景是否为纯色类型。举例而言,可以对用于表示拍摄物体所处的场景中背景图像的颜色种类进行识别,如果是包含一种颜色,则可以认为背景类型为纯色类型;如果是包含多种颜色,则可以认为背景类型为多色类型。在确定第一判断结果为多色类型后,可以继续判断第一判断结果是否符合预设场景。预设场景例如可以为天空、绿植等多色场景。In the embodiment of the present disclosure, the first judgment result is used to describe whether the background type of the image to be processed is a multi-color type. Specifically, it is possible to detect whether the background used to obtain the image to be processed is of a solid color type by means of artificial intelligence. For example, the type of color used to represent the background image in the scene where the shooting object is located can be recognized. If it contains one color, the background type can be considered as a solid color type; if it contains multiple colors, it can be considered The background type is a multi-color type. After it is determined that the first judgment result is a multi-color type, it can continue to judge whether the first judgment result conforms to the preset scene. The preset scene can be, for example, a multi-color scene such as sky and green plants.
第二判断结果用于表示待处理图像的每个颜色通道对应的颜色的饱和度的具体情况,即饱和度与饱和度阈值之间的大小关系。颜色通道可以包括R通道、G通道以及B通道。每个颜色通道都存放着图像中颜色元素的信息,所有颜色通道中的颜色叠加混合产生图像中像素的颜色。具体可以获取每个颜色通道的颜色的当前饱和度,并且将当前饱和度与每个颜色通道的饱和度阈值进行对比,以得到每个颜色通道的颜色的当前饱和度为未饱和或者是过饱和的第二判断结果。每个颜色通道的饱和度阈值可以相同或不同,此处不做限定。需要说明的是,此处在获取第二判断结果时,是将每个颜色通道的颜色的饱和度分别进行评估,即多个颜色通道的颜色的饱和度是互相独立的,因此第二判断结果也是针对每个颜色通道的颜色的。The second judgment result is used to indicate the specific situation of the saturation of the color corresponding to each color channel of the image to be processed, that is, the magnitude relationship between the saturation and the saturation threshold. The color channels can include R channels, G channels, and B channels. Each color channel stores the information of the color elements in the image, and the colors in all the color channels are superimposed and mixed to produce the color of the pixels in the image. Specifically, the current saturation of the color of each color channel can be obtained, and the current saturation can be compared with the saturation threshold of each color channel to obtain whether the current saturation of the color of each color channel is unsaturated or oversaturated The second judgment result. The saturation threshold of each color channel can be the same or different, which is not limited here. It should be noted that when the second judgment result is obtained here, the color saturation of each color channel is evaluated separately, that is, the color saturations of multiple color channels are independent of each other, so the second judgment result It is also for the color of each color channel.
第三判断结果可以用于表示整个待处理图像的颜色的亮度信息与预设的亮度阈值之间的大小关系。具体可以获取待处理图像的亮度信息,并将亮度信息与亮度阈值进行对比,以得到亮度信息大于亮度阈值或者是小于亮度阈值的第三判断结果。The third judgment result may be used to indicate the magnitude relationship between the brightness information of the color of the entire image to be processed and the preset brightness threshold. Specifically, the brightness information of the image to be processed can be obtained, and the brightness information can be compared with the brightness threshold to obtain the third judgment result that the brightness information is greater than the brightness threshold or less than the brightness threshold.
在得到不同维度的多个判断结果之后,可以将第一判断结果、第二判断结果以及第三判断结果融合起来得到最终用于筛选的检测结果。在确定检测结果时,得到多个 判断结果是具有先后顺序的。具体而言,先获取第一判断结果,如果第一判断结果为多色类型且第一判断结果符合预设场景时,则继续获取第二判断结果;如果第一判断结果为纯色类型,则无需获取第二判断结果。进一步地,如果针对每个颜色通道第二判断结果为未饱和,则继续获取第三判断结果并根据第三判断结果来确定检测结果;如果第二判断结果为过饱和,则无需获取第三判断结果。需要说明的是,由于第二判断结果是在第一判断结果的基础上进行的,第三判断结果是在第二判断结果的基础上进行的,因此可以认为第三判断结果中包含了第一判断结果和第二判断结果的信息。After obtaining multiple judgment results in different dimensions, the first judgment result, the second judgment result, and the third judgment result can be fused together to obtain the final detection result for screening. When determining the detection result, multiple judgment results are obtained in a sequential order. Specifically, first obtain the first judgment result. If the first judgment result is a multi-color type and the first judgment result matches the preset scene, then continue to obtain the second judgment result; if the first judgment result is a pure color type, there is no need Obtain the second judgment result. Further, if the second judgment result for each color channel is not saturated, continue to obtain the third judgment result and determine the detection result according to the third judgment result; if the second judgment result is oversaturated, there is no need to obtain the third judgment result result. It should be noted that since the second judgment result is made on the basis of the first judgment result, and the third judgment result is made on the basis of the second judgment result, it can be considered that the third judgment result includes the first judgment result. Information about the judgment result and the second judgment result.
进一步地,可以按照先后顺序根据第三判断结果确定检测结果。或者是直接将第一判断结果确定为检测结果,或者是根据第一判断结果和第二判断结果确定检测结果。在确定出检测结果的基础上,如果第三判断结果为亮度信息大于亮度阈值,则可以认为检测结果满足调节条件。如果第三判断结果为亮度信息小于亮度阈值,则可以认为检测结果不满足调节条件。如果第一判断结果为纯色类型,则可以认为检测结果为不满足调节条件。如果第二判断结果为过饱和,则可以认为检测结果为不满足调节条件。由此可见,图3中提供的技术方案,判断待处理图像的检测结果是否满足调整条件可通过多个维度来衡量,因此避免了局限性,增加了衡量调节操作的全面性,使得调节操作更符合实际情况。Further, the detection result can be determined according to the third judgment result in a sequence. Either the first judgment result is directly determined as the detection result, or the detection result is determined according to the first judgment result and the second judgment result. On the basis of determining the detection result, if the third judgment result is that the brightness information is greater than the brightness threshold, it can be considered that the detection result satisfies the adjustment condition. If the third judgment result is that the brightness information is less than the brightness threshold, it can be considered that the detection result does not satisfy the adjustment condition. If the first judgment result is a pure color type, it can be considered that the detection result does not satisfy the adjustment condition. If the second judgment result is oversaturation, it can be considered that the detection result is that the adjustment condition is not satisfied. It can be seen that, in the technical solution provided in Figure 3, judging whether the detection result of the image to be processed meets the adjustment conditions can be measured in multiple dimensions, thus avoiding limitations, increasing the comprehensiveness of the measurement adjustment operation, and making the adjustment operation more comprehensive. match the true situation.
在一些实施例中,在检测结果满足调节条件时,可以触发对颜色的调节操作,能够避免不必要的操作,减少操作步骤,也能避免误操作。与此同时,在待处理图像为多色类型符合预设场景,饱和度为未饱和且亮度信息大于亮度阈值的条件下可以执行调节操作,通过多个维度的筛选触发调节条件,能够提高调节操作的准确性和针对性。In some embodiments, when the detection result meets the adjustment condition, the color adjustment operation can be triggered, which can avoid unnecessary operations, reduce operation steps, and avoid misoperation. At the same time, the adjustment operation can be performed when the image to be processed is of a multi-color type conforming to the preset scene, the saturation is not saturated, and the brightness information is greater than the brightness threshold. The adjustment conditions can be triggered by filtering in multiple dimensions, which can improve the adjustment operation Accuracy and pertinence.
在进行调节操作时,首先可以确定待调节颜色。待调节颜色可以为多个颜色通道对应的颜色中的一种或者是多种,具体可以在检测结果满足调节条件时根据满足第二判断结果的颜色通道对应的颜色而确定。具体而言,若所述检测结果满足所述调节条件,则将所述第二判断结果为颜色未饱和的颜色通道对应的颜色确定为所述待调节颜色。举例而言,如果G通道的第二判断结果为未饱和,则可以将G通道作为待调节颜色;如果G通道和B通道的第二判断结果均为未饱和,则可以将G通道和B通道均作为待调节颜色。When performing adjustment operations, you can first determine the color to be adjusted. The color to be adjusted may be one or more of the colors corresponding to the multiple color channels. Specifically, it may be determined according to the color corresponding to the color channel satisfying the second judgment result when the detection result satisfies the adjustment condition. Specifically, if the detection result satisfies the adjustment condition, the color corresponding to the color channel whose color is not saturated as the second determination result is determined as the color to be adjusted. For example, if the second judgment result of the G channel is not saturated, the G channel can be used as the color to be adjusted; if the second judgment result of the G channel and the B channel are both unsaturated, the G channel and the B channel can be All are used as the color to be adjusted.
本公开实施例中的方法,可以将R通道、G通道以及B通道中的一个或者是多个对应的颜色作为待调节颜色,因此可以单独对某一个颜色通道进行调节,避免了整体调节时导致个别颜色过饱和的问题,能够实现局部调整,避免了局限性,提高了颜色调节的针对性以及灵活性,增加了应用范围,提高了图像质量。In the method in the embodiments of the present disclosure, one or more of the corresponding colors of the R channel, G channel, and B channel can be used as the color to be adjusted. Therefore, a certain color channel can be adjusted separately, which avoids the overall adjustment. The problem of individual color oversaturation can be adjusted locally, avoiding limitations, improving the pertinence and flexibility of color adjustment, increasing the scope of application, and improving image quality.
在步骤S230中,对所述待调节颜色进行调节操作,以得到目标图像。In step S230, an adjustment operation is performed on the to-be-adjusted color to obtain a target image.
在一些实施例中,在确定待调节颜色之后,可以响应于用户操作或者是自动对该待调节颜色进行调节,以得到目标图像。此处的目标图像指的是对待处理图像进行颜色调节之后的图像,因此与待处理图像存在颜色上的差别。对所述待调节颜色进行调 节的具体步骤可以包括:确定调节程度,并根据所述调节程度对所述待调节颜色的饱和度进行调节。调节程度指的是用于对图像进行调节的幅度,其具体可以根据待处理图像的亮度信息与亮度阈值之间的差值信息来确定。具体地,在待处理图像的亮度信息大于亮度阈值的条件下,可以获取亮度信息与亮度阈值之间的差值信息(即亮度信息大于亮度阈值的部分)。差值信息可以与调节程度负相关,即二者之间差值信息越大,调节程度越小;二者之间差值信息越小,调节程度越大。每个颜色通道的调节程度可以根据相同规则或不同规则而确定。对待调节颜色进行调节操作时,具体是对其饱和度进行提升,以实现局部色彩增强的目的。In some embodiments, after determining the color to be adjusted, the color to be adjusted may be adjusted in response to a user operation or automatically to obtain the target image. The target image here refers to the image after the color adjustment of the image to be processed, so there is a difference in color from the image to be processed. The specific steps of adjusting the color to be adjusted may include: determining the degree of adjustment, and adjusting the saturation of the color to be adjusted according to the degree of adjustment. The degree of adjustment refers to the amplitude used to adjust the image, which can be specifically determined according to the difference information between the brightness information of the image to be processed and the brightness threshold. Specifically, under the condition that the brightness information of the image to be processed is greater than the brightness threshold, the difference information between the brightness information and the brightness threshold (that is, the portion where the brightness information is greater than the brightness threshold) can be obtained. The difference information can be negatively correlated with the degree of adjustment, that is, the greater the difference information between the two, the smaller the degree of adjustment; the smaller the difference information between the two, the greater the degree of adjustment. The adjustment degree of each color channel can be determined according to the same rule or different rules. When performing an adjustment operation on the color to be adjusted, the saturation is specifically increased to achieve the purpose of local color enhancement.
具体进行颜色调节的步骤可以包括:对待处理图像进行分块得到多个块,分别获取每个块的颜色通道的信息以及属性信息等,进而根据步骤S220至步骤S230中的方法确定每个块中的待调节颜色,对每个块中包含的每个像素逐一进行饱和度调节,然后把所有块融合在一起,得到调节饱和度之后的图像。The specific steps of color adjustment may include: dividing the image to be processed into blocks to obtain multiple blocks, respectively obtaining the color channel information and attribute information of each block, and then determining the block in each block according to the method in step S220 to step S230. For the color to be adjusted, the saturation of each pixel contained in each block is adjusted one by one, and then all the blocks are merged together to obtain an image after adjusting the saturation.
本公开实施例中的方法,在待处理图像的检测结果满足调节条件,且确定待调节颜色之后,可以根据环境亮度确定调节程度,并根据调节程度确定提升饱和度的程度和等级,避免盲目提高图像饱和度以及调节不准确的问题,提高了图像的鲜艳度,提升了图像质量。In the method in the embodiments of the present disclosure, after the detection result of the image to be processed meets the adjustment conditions and the color to be adjusted is determined, the adjustment degree can be determined according to the environmental brightness, and the degree and level of the saturation increase can be determined according to the adjustment degree, so as to avoid blind increase The problem of image saturation and inaccurate adjustment improves the vividness of the image and improves the image quality.
除此之外,该方法还可以包括以下两种情况:情况一、若所述检测结果不满足所述调节条件,则停止执行所述调节操作。情况二、若所述检测结果不满足所述调节条件,则从所述多个颜色通道对应的颜色中确定候选颜色,并对所述候选颜色执行预设调节操作。其中,候选颜色指的是除待调节颜色之外的其他颜色通道的颜色。当三个颜色通道对应的颜色均为待调节颜色时,则候选颜色不存在。预设调节操作也可以为对颜色的饱和度的调节操作,但是与步骤S230中调节操作的调节程度不同。需要说明的是,预设调节操作的调节程度可以小于调节操作的调节程度,以避免饱和度调节过度和不合适的问题,提高图像质量。In addition, the method may also include the following two cases: Case 1: If the detection result does not satisfy the adjustment condition, stop performing the adjustment operation. Case 2: If the detection result does not satisfy the adjustment condition, a candidate color is determined from the colors corresponding to the multiple color channels, and a preset adjustment operation is performed on the candidate color. Among them, the candidate color refers to the color of other color channels except the color to be adjusted. When the colors corresponding to the three color channels are all the colors to be adjusted, the candidate color does not exist. The preset adjustment operation may also be an adjustment operation on the saturation of the color, but the adjustment degree of the adjustment operation in step S230 is different. It should be noted that the adjustment degree of the preset adjustment operation may be smaller than the adjustment degree of the adjustment operation, so as to avoid the problems of excessive and inappropriate saturation adjustment and improve the image quality.
图4中示意性示出了调节饱和度的具体流程图,参考图4中所示,主要包括以下步骤:Fig. 4 schematically shows a specific flow chart for adjusting saturation, referring to Fig. 4, it mainly includes the following steps:
在步骤S410中,人工智能方式检测场景。In step S410, the scene is detected by artificial intelligence.
在步骤S420中,判断是否为纯色背景图像。若是,则转至步骤S430;若否,则转至步骤S490。In step S420, it is determined whether it is a solid-color background image. If yes, go to step S430; if not, go to step S490.
在步骤S430中,判断是否为预设场景,预设场景例如可以为天空等多色场景。若是,则转至步骤S440。In step S430, it is determined whether it is a preset scene, and the preset scene may be, for example, a multi-color scene such as the sky. If yes, go to step S440.
在步骤S440中,获取待处理图像的多个颜色通道的信息,多个颜色通道可以为R通道、G通道以及B通道,多个颜色通道的信息可以为多个颜色通道的颜色的饱和度。In step S440, information of multiple color channels of the image to be processed is acquired. The multiple color channels may be R, G, and B channels, and the information of the multiple color channels may be the color saturation of the multiple color channels.
在步骤S450中,确定多个颜色通道的饱和度是否为过饱和。若是,则转至步骤S490;若否,则转至步骤S460。In step S450, it is determined whether the saturation of the multiple color channels is oversaturated. If yes, go to step S490; if not, go to step S460.
在步骤S460中,获取待处理图像的亮度信息。In step S460, the brightness information of the image to be processed is acquired.
在步骤S470中,确定亮度信息是否低于预设的亮度阈值。若是,则转至步骤S490;若否,则转至步骤S480。In step S470, it is determined whether the brightness information is lower than a preset brightness threshold. If yes, go to step S490; if not, go to step S480.
在步骤S480中,结合多个颜色通道饱和度的判断结果,将R通道、G通道或者是B通道的颜色作为待调节颜色,以提高R通道、G通道或者是B通道的颜色的饱和度。In step S480, the color of the R channel, the G channel, or the B channel is used as the color to be adjusted in combination with the judgment results of the saturation of the multiple color channels, so as to increase the color saturation of the R channel, the G channel or the B channel.
在步骤S490中,不作处理或者是对饱和度的提高强度减弱。In step S490, no processing is performed or the increase in saturation is weakened.
图4中的技术方案,可以结合对多个颜色通道的饱和度的判断结果,将R通道、G通道以及B通道中的一个或者是多个作为待调节颜色,因此可以单独对某一个颜色通道进行调节,避免了整体调节时导致个别颜色过饱和的问题,能够实现局部调整,避免了局限性,提高了颜色调节的针对性。The technical solution in Figure 4 can be combined with the judgment results of the saturation of multiple color channels, and one or more of the R channel, the G channel, and the B channel can be used as the color to be adjusted, so a certain color channel can be individually adjusted The adjustment avoids the problem of over-saturation of individual colors during overall adjustment, enables partial adjustment, avoids limitations, and improves the pertinence of color adjustment.
本公开实施例中,提供了一种图像调节装置,参考图5中所示,该图像调节装置500可以包括:In an embodiment of the present disclosure, an image adjustment device is provided. Referring to FIG. 5, the image adjustment device 500 may include:
属性信息获取模块501,用于获取待处理图像,并确定所述待处理图像的多个属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合;The attribute information obtaining module 501 is configured to obtain a to-be-processed image and determine multiple attribute information of the to-be-processed image, where the attribute information includes any one or a combination of scene information, saturation, and brightness information;
待调节颜色确定模块502,用于根据所述属性信息确定所述待处理图像的检测结果满足调节条件,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色;The to-be-adjusted color determination module 502 is configured to determine, according to the attribute information, that the detection result of the to-be-processed image satisfies the adjustment condition, and determine the to-be-adjusted color from the colors corresponding to the multiple color channels of the to-be-processed image;
颜色调节模块503,用于对所述待调节颜色进行调节操作,以得到目标图像。The color adjustment module 503 is configured to perform an adjustment operation on the to-be-adjusted color to obtain a target image.
在本公开的一种示例性实施例中,所述装置还包括:第一获取模块,用于对所述待处理图像的场景类型进行检测得到第一判断结果;第二获取模块,用于确定所述第一判断结果为多色类型,且检测所述第一判断结果符合预设场景,则分别对所述待处理图像的所述多个颜色通道对应的颜色的饱和度进行判断,以得到用于表示各所述颜色通道的颜色的饱和度的第二判断结果;第三获取模块,用于确定所述第二判断结果为颜色未饱和,将亮度阈值与所述待处理图像的亮度信息进行对比得到用于表示亮度信息是否大于亮度阈值的第三判断结果;检测结果判断模块,用于根据所述第一判断结果、所述第二判断结果以及所述第三判断结果确定检测结果,并在所述第三判断结果为所述亮度信息大于所述亮度阈值时确定所述检测结果满足所述调节条件。In an exemplary embodiment of the present disclosure, the device further includes: a first acquisition module, configured to detect the scene type of the image to be processed to obtain a first judgment result; and a second acquisition module, configured to determine If the first judgment result is a multi-color type, and if it is detected that the first judgment result conforms to a preset scene, the saturation of the colors corresponding to the multiple color channels of the image to be processed is judged to obtain Used to indicate the second judgment result of the color saturation of each of the color channels; the third acquisition module is used to determine that the second judgment result is that the color is not saturated, and compare the brightness threshold with the brightness information of the image to be processed The comparison is performed to obtain a third judgment result indicating whether the brightness information is greater than the brightness threshold; the detection result judgment module is configured to determine the detection result according to the first judgment result, the second judgment result, and the third judgment result, And when the third judgment result is that the brightness information is greater than the brightness threshold, it is determined that the detection result satisfies the adjustment condition.
在本公开的一种示例性实施例中,所述装置还包括:确定所述第一判断结果为纯色类型,将所述第一判断结果作为所述检测结果,并确定所述检测结果不满足所述调节条件;或确定所述第二判断结果为颜色过饱和,根据所述第一判断结果和第二判断结果确定所述检测结果,并确定所述检测结果不满足所述调节条件;或确定所述第三判断结果为所述亮度信息小于所述亮度阈值,确定所述检测结果不满足所述调节条件。In an exemplary embodiment of the present disclosure, the device further includes: determining that the first judgment result is a pure color type, using the first judgment result as the detection result, and determining that the detection result does not satisfy The adjustment condition; or it is determined that the second judgment result is color oversaturation, the detection result is determined according to the first judgment result and the second judgment result, and it is determined that the detection result does not satisfy the adjustment condition; or It is determined that the third judgment result is that the brightness information is less than the brightness threshold, and it is determined that the detection result does not satisfy the adjustment condition.
在本公开的一种示例性实施例中,待调节颜色确定模块被配置为:若所述检测结果满足所述调节条件,则将所述第二判断结果为颜色未饱和的颜色通道对应的颜色确定为所述待调节颜色。In an exemplary embodiment of the present disclosure, the to-be-adjusted color determination module is configured to: if the detection result meets the adjustment condition, the second determination result is the color corresponding to the color channel whose color is not saturated Determined to be the color to be adjusted.
在本公开的一种示例性实施例中,颜色调节模块包括:程度确定模块,用于确定 调节程度,并根据所述调节程度对所述待调节颜色的饱和度进行调节操作。In an exemplary embodiment of the present disclosure, the color adjustment module includes: a degree determination module, configured to determine the degree of adjustment, and perform an adjustment operation on the saturation of the color to be adjusted according to the degree of adjustment.
在本公开的一种示例性实施例中,程度确定模块被配置为:若所述亮度信息大于所述亮度阈值,则根据所述亮度信息与亮度阈值之间的差值信息确定所述调节程度,且所述调节程度与所述差值信息负相关。In an exemplary embodiment of the present disclosure, the degree determination module is configured to: if the brightness information is greater than the brightness threshold, determine the adjustment degree according to the difference information between the brightness information and the brightness threshold. , And the adjustment degree is negatively related to the difference information.
在本公开的一种示例性实施例中,所述装置还包括:停止调节模块,用于若所述检测结果不满足所述调节条件,则停止执行所述调节操作;或预设调节执行模块,用于若所述检测结果不满足所述调节条件,则从所述多个颜色通道对应的颜色中确定候选颜色,并对所述候选颜色执行预设调节操作。In an exemplary embodiment of the present disclosure, the device further includes: a stop adjustment module, configured to stop performing the adjustment operation if the detection result does not satisfy the adjustment condition; or a preset adjustment execution module , For determining a candidate color from the colors corresponding to the multiple color channels if the detection result does not satisfy the adjustment condition, and performing a preset adjustment operation on the candidate color.
需要说明的是,上述图像调节装置中各模块的具体细节已经在对应的图像调节方法中进行了详细描述,因此此处不再赘述。It should be noted that the specific details of each module in the above-mentioned image adjustment device have been described in detail in the corresponding image adjustment method, and therefore will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although the various steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be performed in the specific order, or that all the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.
在本公开的实施例中,还提供了一种能够实现上述方法的电子设备。In the embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "Circuit", "Module" or "System".
下面参照图6来描述根据本公开的这种实施方式的电子设备600。图6显示的电子设备600仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。The electronic device 600 according to this embodiment of the present disclosure will be described below with reference to FIG. 6. The electronic device 600 shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备600以通用计算设备的形式表现。电子设备600的组件可以包括但不限于:上述至少一个处理单元610、上述至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线630、显示单元640。As shown in FIG. 6, the electronic device 600 is represented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: the aforementioned at least one processing unit 610, the aforementioned at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), and a display unit 640.
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元610执行,使得所述处理单元610执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元610可以执行如图2中所示的步骤。Wherein, the storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 executes various exemplary methods described in the “Exemplary Method” section of this specification. Steps of implementation. For example, the processing unit 610 may perform the steps shown in FIG. 2.
存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)6201和/或高速缓存存储单元6202,还可以进一步包括只读存储单元(ROM)6203。The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202, and may further include a read-only storage unit (ROM) 6203.
存储单元620还可以包括具有一组(至少一个)程序模块6205的程序/实用工具 6204,这样的程序模块6205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 620 may also include a program/utility tool 6204 having a set of (at least one) program module 6205. Such program module 6205 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速接口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 630 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration interface, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
电子设备600也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,电子设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器660通过总线630与电子设备600的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 600 may also communicate with one or more external devices 700 (such as keyboards, pointing devices, Bluetooth devices, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 600, and/or communicate with Any device (such as a router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 650. In addition, the electronic device 600 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660. As shown in the figure, the network adapter 660 communicates with other modules of the electronic device 600 through the bus 630. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
在本公开的实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In the embodiments of the present disclosure, a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the above-mentioned method in this specification. In some possible implementation manners, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
根据本公开的实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The program product for implementing the above method according to the embodiment of the present disclosure may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者 器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。The program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on. In the case of a remote computing device, the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
此外,上述附图仅是根据本公开实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned drawings are merely schematic illustrations of the processing included in the method according to the embodiments of the present disclosure, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not disclosed in the present disclosure. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims (20)

  1. 一种图像调节方法,其特征在于,包括:An image adjustment method, characterized in that it comprises:
    获取待处理图像,并确定所述待处理图像的属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合;Acquiring a to-be-processed image, and determining attribute information of the to-be-processed image, where the attribute information includes any one or a combination of scene information, saturation, and brightness information;
    根据所述属性信息确定所述待处理图像的检测结果满足调节条件,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色;Determining, according to the attribute information, that the detection result of the image to be processed satisfies the adjustment condition, and determining the color to be adjusted from the colors corresponding to the multiple color channels of the image to be processed;
    对所述待调节颜色进行调节操作,以得到目标图像。The adjustment operation is performed on the to-be-adjusted color to obtain a target image.
  2. 根据权利要求1所述的图像调节方法,其特征在于,所述方法还包括:The image adjustment method according to claim 1, wherein the method further comprises:
    分别通过所述属性信息中每一个信息的筛选条件对属性信息进行判断,并结合多个判断结果得到所述检测结果,以确定所述检测结果是否符合调节条件。The attribute information is judged according to the screening conditions of each information in the attribute information, and the detection result is obtained by combining multiple judgment results to determine whether the detection result meets the adjustment condition.
  3. 根据权利要求2所述的图像调节方法,其特征在于,分别通过所述属性信息中每一个信息的筛选条件对属性信息进行判断,并结合多个判断结果得到所述检测结果,以确定所述检测结果是否符合调节条件包括:The image adjustment method according to claim 2, characterized in that the attribute information is judged by the filtering conditions of each information in the attribute information, and the detection result is obtained by combining multiple judgment results to determine the Whether the test results meet the adjustment conditions include:
    对所述待处理图像的背景类型进行检测得到第一判断结果;Detecting the background type of the image to be processed to obtain a first judgment result;
    确定所述第一判断结果为多色类型,且检测所述第一判断结果符合预设场景,则分别对所述待处理图像的所述多个颜色通道对应的颜色的饱和度进行判断,以得到用于表示各所述颜色通道的颜色的饱和度的第二判断结果;If it is determined that the first judgment result is a multi-color type, and if it is detected that the first judgment result matches a preset scene, the saturation of the colors corresponding to the multiple color channels of the image to be processed is judged respectively, to Obtaining a second judgment result used to represent the color saturation of each of the color channels;
    确定所述第二判断结果为颜色未饱和,将亮度阈值与所述待处理图像的亮度信息进行对比得到用于表示亮度信息是否大于亮度阈值的第三判断结果;It is determined that the second judgment result is that the color is not saturated, and the brightness threshold is compared with the brightness information of the image to be processed to obtain a third judgment result used to indicate whether the brightness information is greater than the brightness threshold;
    根据所述第一判断结果、所述第二判断结果以及所述第三判断结果确定检测结果,并在所述第三判断结果为所述亮度信息大于所述亮度阈值时确定所述检测结果满足所述调节条件。The detection result is determined according to the first judgment result, the second judgment result, and the third judgment result, and when the third judgment result is that the brightness information is greater than the brightness threshold, it is determined that the detection result satisfies The adjustment conditions.
  4. 根据权利要求3所述的图像调节方法,其特征在于,所述方法还包括:The image adjustment method according to claim 3, wherein the method further comprises:
    确定所述第一判断结果为纯色类型,将所述第一判断结果作为所述检测结果,并确定所述检测结果不满足所述调节条件;或Determine that the first judgment result is a pure color type, use the first judgment result as the detection result, and determine that the detection result does not satisfy the adjustment condition; or
    确定所述第二判断结果为颜色过饱和,根据所述第一判断结果和第二判断结果确定所述检测结果,并确定所述检测结果不满足所述调节条件;或Determining that the second judgment result is color oversaturation, determining the detection result according to the first judgment result and the second judgment result, and determining that the detection result does not satisfy the adjustment condition; or
    确定所述第三判断结果为所述亮度信息小于所述亮度阈值,确定所述检测结果不满足所述调节条件。It is determined that the third judgment result is that the brightness information is less than the brightness threshold, and it is determined that the detection result does not satisfy the adjustment condition.
  5. 根据权利要求3所述的图像调节方法,其特征在于,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色包括:The image adjustment method according to claim 3, wherein determining the color to be adjusted from the colors corresponding to the multiple color channels of the image to be processed comprises:
    若所述检测结果满足所述调节条件,则将所述第二判断结果为颜色未饱和的颜色通道对应的颜色确定为所述待调节颜色。If the detection result satisfies the adjustment condition, the color corresponding to the color channel whose color is not saturated in the second judgment result is determined as the color to be adjusted.
  6. 根据权利要求1所述的图像调节方法,其特征在于,对所述待调节颜色进行调节操作包括:The image adjustment method according to claim 1, wherein the adjustment operation on the to-be-adjusted color comprises:
    确定调节程度,并根据所述调节程度对所述待调节颜色的饱和度进行调节操作。The adjustment degree is determined, and the saturation of the to-be-adjusted color is adjusted according to the adjustment degree.
  7. 根据权利要求6所述的图像调节方法,其特征在于,确定调节程度,并根据所述调节程度对所述待调节颜色的饱和度进行调节操作包括:8. The image adjustment method according to claim 6, wherein determining the adjustment degree and adjusting the saturation of the color to be adjusted according to the adjustment degree comprises:
    若所述亮度信息大于亮度阈值,则根据所述亮度信息与亮度阈值之间的差值信息确定所述调节程度,且所述调节程度与所述差值信息负相关。If the brightness information is greater than the brightness threshold, the adjustment degree is determined according to the difference information between the brightness information and the brightness threshold, and the adjustment degree is negatively related to the difference information.
  8. 根据权利要求1所述的图像调节方法,其特征在于,所述方法还包括:The image adjustment method according to claim 1, wherein the method further comprises:
    若所述检测结果不满足所述调节条件,则停止执行所述调节操作;或If the detection result does not satisfy the adjustment condition, stop performing the adjustment operation; or
    若所述检测结果不满足所述调节条件,则从所述多个颜色通道对应的颜色中确定候选颜色,并对所述候选颜色执行预设调节操作。If the detection result does not satisfy the adjustment condition, a candidate color is determined from the colors corresponding to the multiple color channels, and a preset adjustment operation is performed on the candidate color.
  9. 根据权利要求8所述的图像调节方法,其特征在于,所述预设调节操作的调节程度小于所述调节操作的调节程度。8. The image adjustment method according to claim 8, wherein the adjustment degree of the preset adjustment operation is smaller than the adjustment degree of the adjustment operation.
  10. 一种图像调节装置,其特征在于,包括:An image adjustment device, characterized in that it comprises:
    属性信息获取模块,用于获取待处理图像,并确定所述待处理图像的属性信息,所述属性信息包括场景信息、饱和度以及亮度信息中的任意一种或其组合;The attribute information acquisition module is configured to acquire the image to be processed and determine the attribute information of the image to be processed, the attribute information including any one or a combination of scene information, saturation and brightness information;
    待调节颜色确定模块,用于根据所述属性信息确定针对所述待处理图像的检测结果满足调节条件,从所述待处理图像的多个颜色通道对应的颜色中确定待调节颜色;A color to-be-adjusted determination module, configured to determine, according to the attribute information, that the detection result for the image to be processed satisfies an adjustment condition, and determine the color to be adjusted from the colors corresponding to the multiple color channels of the image to be processed;
    颜色调节模块,用于对所述待调节颜色进行调节操作,以得到目标图像。The color adjustment module is used to perform adjustment operations on the to-be-adjusted color to obtain a target image.
  11. 根据权利要求10所述的图像调节装置,其特征在于,所述装置还包括:The image adjustment device according to claim 10, wherein the device further comprises:
    判断模块,用于分别通过所述属性信息中每一个信息的筛选条件对属性信息进行判断,并结合多个判断结果得到所述检测结果,以确定所述检测结果是否符合调节条件。The judgment module is used to judge the attribute information according to the screening conditions of each information in the attribute information, and combine multiple judgment results to obtain the detection result, so as to determine whether the detection result meets the adjustment condition.
  12. 根据权利要求11所述的图像调节装置,其特征在于,所述判断模块包括:The image adjustment device according to claim 11, wherein the judgment module comprises:
    第一获取模块,用于对所述待处理图像的场景类型进行检测得到第一判断结果;The first acquisition module is configured to detect the scene type of the image to be processed to obtain a first judgment result;
    第二获取模块,用于确定所述第一判断结果为多色类型,且检测所述第一判断结果符合预设场景,则分别对所述待处理图像的所述多个颜色通道对应的颜色的饱和度进行判断,以得到用于表示各所述颜色通道的颜色的饱和度的第二判断结果;The second acquisition module is configured to determine that the first judgment result is of a multi-color type, and if it is detected that the first judgment result matches a preset scene, then the colors corresponding to the multiple color channels of the image to be processed To determine the saturation of each of the color channels to obtain a second determination result representing the color saturation of each of the color channels;
    第三获取模块,用于确定所述第二判断结果为颜色未饱和,将亮度阈值与所述待处理图像的亮度信息进行对比得到用于表示亮度信息是否大于亮度阈值的第三判断结果;A third acquisition module, configured to determine that the second judgment result is that the color is not saturated, and compare the brightness threshold with the brightness information of the image to be processed to obtain a third judgment result indicating whether the brightness information is greater than the brightness threshold;
    检测结果判断模块,用于根据所述第一判断结果、所述第二判断结果以及所述第三判断结果确定检测结果,并在所述第三判断结果为所述亮度信息大于所述亮度阈值时确定所述检测结果满足所述调节条件。The detection result judgment module is configured to determine the detection result according to the first judgment result, the second judgment result, and the third judgment result, and when the third judgment result is that the brightness information is greater than the brightness threshold When it is determined that the detection result meets the adjustment condition.
  13. 根据权利要求12所述的图像调节装置,其特征在于,所述装置还包括:The image adjustment device according to claim 12, wherein the device further comprises:
    第一确定模块,用于所述第一判断结果为纯色类型,将所述第一判断结果作为所述检测结果,并确定所述检测结果不满足所述调节条件;或A first determination module, configured to use the first determination result as a pure color type, use the first determination result as the detection result, and determine that the detection result does not satisfy the adjustment condition; or
    第二确定模块,用于确定所述第二判断结果为颜色过饱和,根据所述第一判断结果和第二判断结果确定所述检测结果,并确定所述检测结果不满足所述调节条件;或A second determination module, configured to determine that the second determination result is color oversaturation, determine the detection result according to the first determination result and the second determination result, and determine that the detection result does not satisfy the adjustment condition; or
    第三确定模块,用于确定所述第三判断结果为所述亮度信息小于所述亮度阈值,确定所述检测结果不满足所述调节条件。The third determination module is configured to determine that the third determination result is that the brightness information is less than the brightness threshold, and determine that the detection result does not satisfy the adjustment condition.
  14. 根据权利要求12所述的图像调节装置,其特征在于,待调节颜色确定模块被配置为:若所述检测结果满足所述调节条件,则将所述第二判断结果为颜色未饱和的颜色通道对应的颜色确定为所述待调节颜色。The image adjustment device according to claim 12, wherein the to-be-adjusted color determination module is configured to: if the detection result satisfies the adjustment condition, the second judgment result is a color channel with an unsaturated color The corresponding color is determined as the color to be adjusted.
  15. 根据权利要求10所述的图像调节装置,其特征在于,颜色调节模块包括:The image adjustment device according to claim 10, wherein the color adjustment module comprises:
    程度确定模块,用于确定调节程度,并根据所述调节程度对所述待调节颜色的饱和度进行调节操作。The degree determination module is used to determine the degree of adjustment, and perform an adjustment operation on the saturation of the color to be adjusted according to the degree of adjustment.
  16. 根据权利要求15所述的图像调节装置,其特征在于,程度确定模块被配置为:The image adjustment device according to claim 15, wherein the degree determination module is configured to:
    若所述亮度信息大于亮度阈值,则根据所述亮度信息与亮度阈值之间的差值信息确定所述调节程度,且所述调节程度与所述差值信息负相关。If the brightness information is greater than the brightness threshold, the adjustment degree is determined according to the difference information between the brightness information and the brightness threshold, and the adjustment degree is negatively related to the difference information.
  17. 根据权利要求10所述的图像调节装置,其特征在于,所述装置还包括:The image adjustment device according to claim 10, wherein the device further comprises:
    停止调节模块,用于若所述检测结果不满足所述调节条件,则停止执行所述调节操作;或The stop adjustment module is configured to stop performing the adjustment operation if the detection result does not satisfy the adjustment condition; or
    预设调节执行模块,用于若所述检测结果不满足所述调节条件,则从所述多个颜色通道对应的颜色中确定候选颜色,并对所述候选颜色执行预设调节操作。The preset adjustment execution module is configured to determine a candidate color from the colors corresponding to the multiple color channels if the detection result does not satisfy the adjustment condition, and perform a preset adjustment operation on the candidate color.
  18. 根据权利要求17所述的图像调节装置,其特征在于,所述预设调节操作的调节程度小于所述调节操作的调节程度。18. The image adjustment device according to claim 17, wherein the adjustment degree of the preset adjustment operation is smaller than the adjustment degree of the adjustment operation.
  19. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;以及Processor; and
    存储器,用于存储所述处理器的可执行指令;A memory for storing executable instructions of the processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-9任意一项所述的图像调节方法。Wherein, the processor is configured to execute the image adjustment method according to any one of claims 1-9 by executing the executable instructions.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-9任意一项所述的图像调节方法。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the image adjustment method according to any one of claims 1-9 when the computer program is executed by a processor.
PCT/CN2020/126581 2019-11-18 2020-11-04 Image adjustment method and apparatus, electronic device, and storage medium WO2021098518A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911128015.5 2019-11-18
CN201911128015.5A CN110855958B (en) 2019-11-18 2019-11-18 Image adjusting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021098518A1 true WO2021098518A1 (en) 2021-05-27

Family

ID=69601861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/126581 WO2021098518A1 (en) 2019-11-18 2020-11-04 Image adjustment method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN110855958B (en)
WO (1) WO2021098518A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855958B (en) * 2019-11-18 2022-04-26 RealMe重庆移动通信有限公司 Image adjusting method and device, electronic equipment and storage medium
CN112785672B (en) * 2021-01-19 2022-07-05 浙江商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium
CN112991153A (en) * 2021-03-11 2021-06-18 Oppo广东移动通信有限公司 Image color migration method and device, storage medium and electronic equipment
CN113933293A (en) * 2021-11-08 2022-01-14 中国联合网络通信集团有限公司 Concentration detection method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997595A (en) * 2017-03-09 2017-08-01 广东欧珀移动通信有限公司 Color of image processing method, processing unit and electronic installation based on the depth of field
CN107438162A (en) * 2017-07-31 2017-12-05 努比亚技术有限公司 The method of adjustment and device of a kind of acquisition parameters
JP2018195938A (en) * 2017-05-16 2018-12-06 キヤノン株式会社 Imaging apparatus, control method of imaging apparatus, and program
CN109600595A (en) * 2017-09-30 2019-04-09 优酷网络技术(北京)有限公司 Image processing method and device
CN109686342A (en) * 2018-12-25 2019-04-26 青岛海信电器股份有限公司 A kind of image processing method and device
US10319116B1 (en) * 2014-12-02 2019-06-11 Amazon Technologies, Inc. Dynamic color adjustment of electronic content
CN110855958A (en) * 2019-11-18 2020-02-28 RealMe重庆移动通信有限公司 Image adjusting method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694542A (en) * 2005-01-17 2005-11-09 深圳创维-Rgb电子有限公司 Conversion method for colour like of television picture
TWI425841B (en) * 2007-04-10 2014-02-01 Novatek Microelectronics Corp Display device and color adjustment method thereof, and method for display video signal
US8477247B2 (en) * 2008-09-30 2013-07-02 Intel Corporation Joint enhancement of lightness, color and contrast of images and video
CN102567974A (en) * 2010-12-16 2012-07-11 方正国际软件(北京)有限公司 Method and system for adjusting local color of image
CN104978946B (en) * 2014-04-11 2017-09-15 深圳Tcl新技术有限公司 The method and apparatus that display device backlight is adaptively adjusted

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10319116B1 (en) * 2014-12-02 2019-06-11 Amazon Technologies, Inc. Dynamic color adjustment of electronic content
CN106997595A (en) * 2017-03-09 2017-08-01 广东欧珀移动通信有限公司 Color of image processing method, processing unit and electronic installation based on the depth of field
JP2018195938A (en) * 2017-05-16 2018-12-06 キヤノン株式会社 Imaging apparatus, control method of imaging apparatus, and program
CN107438162A (en) * 2017-07-31 2017-12-05 努比亚技术有限公司 The method of adjustment and device of a kind of acquisition parameters
CN109600595A (en) * 2017-09-30 2019-04-09 优酷网络技术(北京)有限公司 Image processing method and device
CN109686342A (en) * 2018-12-25 2019-04-26 青岛海信电器股份有限公司 A kind of image processing method and device
CN110855958A (en) * 2019-11-18 2020-02-28 RealMe重庆移动通信有限公司 Image adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110855958A (en) 2020-02-28
CN110855958B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
WO2021098518A1 (en) Image adjustment method and apparatus, electronic device, and storage medium
US20220207680A1 (en) Image Processing Method and Apparatus
US10810720B2 (en) Optical imaging method and apparatus
US9916518B2 (en) Image processing apparatus, image processing method, program and imaging apparatus
US10827140B2 (en) Photographing method for terminal and terminal
WO2018120946A1 (en) Method and apparatus for determining video image abnormality, and terminal device
EP3855387A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
EP4053784A1 (en) Image processing method and apparatus, electronic device, and storage medium
US11922598B2 (en) Image processing apparatus, image processing method, and storage medium
JP2017028633A (en) Video distribution terminal, program, and video distribution method
US11032529B2 (en) Selectively applying color to an image
US10055823B2 (en) Method for generating a pixel filtering boundary for use in auto white balance calibration
WO2019179242A1 (en) Image processing method and electronic device
CN110581988B (en) Signal quality detection method and device, electronic equipment and storage medium
CN111861964A (en) Image processing method, apparatus and storage medium
US20200106821A1 (en) Video processing apparatus, video conference system, and video processing method
WO2022121893A1 (en) Image processing method and apparatus, and computer device and storage medium
CN110677635B (en) Data parameter field setting system
US10742862B2 (en) Information processing device, information processing method, and information processing system
JP5825681B2 (en) Image processing apparatus, image processing method, and program
CN111614901A (en) Image shooting method and device, storage medium and terminal
CN117176933B (en) Image signal processing method and device, electronic equipment and storage medium
US11283938B2 (en) Communication apparatus communicating with another communication apparatus based on performance, control method, and storage medium
CN108769695B (en) Frame type conversion method, system and terminal
KR102194447B1 (en) Method for removing digital image noise

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20888919

Country of ref document: EP

Kind code of ref document: A1