CN112508820A - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN112508820A
CN112508820A CN202011507459.2A CN202011507459A CN112508820A CN 112508820 A CN112508820 A CN 112508820A CN 202011507459 A CN202011507459 A CN 202011507459A CN 112508820 A CN112508820 A CN 112508820A
Authority
CN
China
Prior art keywords
image
pixel point
region
adjusting
adjusted
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202011507459.2A
Other languages
Chinese (zh)
Other versions
CN112508820B (en
Inventor
胡静婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011507459.2A priority Critical patent/CN112508820B/en
Priority claimed from CN202011507459.2A external-priority patent/CN112508820B/en
Publication of CN112508820A publication Critical patent/CN112508820A/en
Application granted granted Critical
Publication of CN112508820B publication Critical patent/CN112508820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The application discloses an image processing method, an image processing device and electronic equipment, which belong to the technical field of communication, wherein the method comprises the following steps: acquiring a first image in a RAW format and storing definition detail information of each first pixel point in the first image; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; and performing detail compensation on each second pixel point in the region to be adjusted according to the definition detail information of each first pixel point contained in the first region in the first image to generate a target image. The image processing method disclosed by the application can adjust the definition of the target image in the generation process of the target image, the target image finally presented to a user is a high-quality image with the adjusted definition, the user does not need to participate in image processing, and the image processing method has good universality.

Description

Image processing method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an image processing method and device and electronic equipment.
Background
With the rapid development of electronic device technology, the types of applications that can be installed in electronic devices are increasing. The user can chat in voice, watch videos, take pictures and the like through the electronic equipment. When the electronic equipment is used for shooting, the problems of hand shake, blurring, unclear dim light and the like frequently occur, so that a user cannot shoot a high-quality image.
To obtain high quality images, the main solutions at present are: performing post-image processing on the captured image, for example: sharpening, adding noise and the like to improve the definition of the image. The existing image processing method needs to use professional image processing software on one hand, and needs a user to have a certain amount of picture repairing power on the other hand, so that the universality is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image processing method, which can solve the problem of poor universality of the existing image processing method.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image processing method, where the method includes: acquiring a first image in a RAW format and storing definition detail information of each first pixel point in the first image; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; according to the definition detail information of each first pixel point contained in the first region in the first image, performing detail compensation on each second pixel point in the region to be adjusted to generate a target image; wherein the first region in the first image corresponds to the region to be adjusted in the second image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, where the apparatus includes: the acquisition module is used for acquiring a first image in a RAW format and storing definition detail information of each first pixel point in the first image; the format adjusting module is used for adjusting the image format of the first image to obtain a second image; the detection module is used for detecting a region to be adjusted in the second image; the adjusting module is used for performing detail compensation on each second pixel point in the area to be adjusted according to the definition detail information of each first pixel point contained in the first area in the first image to generate a target image; wherein the first region in the first image corresponds to the region to be adjusted in the second image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the first image in the RAW format is collected, and the definition detail information of each first pixel point in the first image is stored; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; according to the definition detail information of each first pixel point contained in the first region in the first image, detail compensation is carried out on each second pixel point in the region to be adjusted, a target image is generated, the definition detail can be compensated in the target image generation process, the target image finally presented to a user is a high-quality image after definition adjustment, the user does not need to participate in image processing, the user does not need to have a picture repairing power, and professional picture repairing software does not need to be additionally installed, so that the universality is good.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart illustrating the steps of an image processing method according to an embodiment of the present application;
fig. 2 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present application;
fig. 3 is a block diagram showing a configuration of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an image processing method according to an embodiment of the present application is shown.
The image processing method of the embodiment of the application comprises the following steps:
step 101: the method comprises the steps of collecting a first image in a RAW format and storing definition detail information of each first pixel point in the first image.
And acquiring image information in the RAW field to obtain a first image in the RAW format. RAW is intended to be RAW, and RAW images are RAW data in which an image sensor converts a captured light source signal into a digital signal. The information acquisition of the image is carried out in the RAW domain, and the definition detail information of each pixel point in the image can be acquired, such as: the noise, texture detail information and transparency of each pixel point in the image are one hundred percent of the transparency of each pixel point in the RAW domain. The first image in the RAW format is not a color image, so the detail information of the definition of the pixel does not include color and brightness information. After the first image in the RAW format is converted into the image in the YUV format, the display parameters of the pixel point include color and brightness information. The stored definition detail information of each first pixel point can be used for repairing lost details in the subsequent image format conversion process.
Step 102: and adjusting the image format of the first image to obtain a second image.
When the image is shot, the image processing device collects image information in a RAW domain, converts the collected image information in the RAW format into an image in a YUV format, and converts the image information in the YUV format into an image format visible to a user. YUV is a color coding method, often used in various video processing components. "Y" represents brightness (Luma) and thus gray scale value, "U" and "V" represent Chroma (Chroma or Chroma) and function to describe the color and saturation of the image.
Step 103: and detecting a region to be adjusted in the second image.
The area to be adjusted in the second image is an area of which the definition does not meet the preset condition. For the screening method of the region to be adjusted in the image, reference may be made to the existing related art, which is not specifically limited in the embodiment of the present application. For example: and identifying the area to be adjusted in the image based on the preset filtering limit parameter.
When the second image contains the figure image, the area occupied by the figure image can be determined as the area to be adjusted by default; the image of the person and the background area corresponding to the image of the person may be determined as the area to be adjusted by default.
Step 104: and performing detail compensation on each second pixel point in the region to be adjusted according to the definition detail information of each first pixel point contained in the first region in the first image to generate a target image.
The first area in the first image corresponds to the area to be adjusted in the second image. The image contents in the two corresponding regions are the same, and the positions in the images to which the respective regions belong are the same.
And when detail compensation is carried out, the first pixel point and the second pixel point form a pixel pair, and for each pixel pair, detail compensation is carried out on the second pixel point according to the definition detail information of the first pixel point in the pixel pair.
The image processing method provided by the embodiment of the application comprises the steps of collecting a first image in a RAW format and storing definition detail information of each first pixel point in the first image; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; according to the definition detail information of each first pixel point contained in the first region in the first image, detail compensation is carried out on each second pixel point in the region to be adjusted, a target image is generated, the definition detail can be compensated in the target image generation process, the target image finally presented to a user is a high-quality image after definition adjustment, the user does not need to participate in image processing, the user does not need to have a picture repairing power, and professional picture repairing software does not need to be additionally installed, so that the universality is good.
In an alternative embodiment, the first image is converted into an image format, and the second image is obtained as follows:
firstly, converting a first image into a third image in a YUV format;
secondly, adjusting display parameters of corresponding third pixel points in the third image according to the definition detail information of the first pixel points respectively to obtain a fourth image;
display parameters may include, but are not limited to: and color and brightness, wherein some image information is converted and lost from the RAW domain to the YUV domain, so that in the step, according to the definition detail information of each first pixel point, the display parameters of the corresponding third pixel point in the third image are adjusted, and finally, the color and the brightness of the RAW domain are restored in the YUV domain to obtain the fourth image.
And finally, adjusting the image format of the fourth image to obtain a second image.
The image format of the second image may include, but is not limited to: JPEG, TIFF, BMP, GIF, PCX, or the like.
The optional image conversion mode can restore the color and brightness of pixel points in the image in the conversion process, and ensures that the finally converted image is more real and clear.
In an optional embodiment, the step of adjusting the display parameter of the corresponding third pixel point in the third image according to the detail information of the definition of each first pixel point to obtain the fourth image includes the following substeps:
the first substep: aiming at each third pixel point in the third image, determining a first target pixel point corresponding to the third pixel point from the first pixel points;
and a second substep: and adjusting the color and the brightness of the third pixel point according to the definition detail information of the first target pixel point.
The mode of optionally restoring the pixel point display parameters has small calculated amount and good restoring effect.
In an alternative embodiment, the manner of detecting the region to be adjusted in the second image is as follows:
firstly, carrying out noise filtration on all pixel points in a second image;
each pixel point in the second image corresponds to a noise value, when noise filtering is carried out, a noise filtering range is set, pixel points with the noise values within the noise filtering range are filtered, and a region formed by the pixel points which are not filtered is an unclear region, namely a region to be adjusted.
The method is a method for determining the region to be adjusted according to a filtering limitation parameter, wherein the filtering limitation parameter is a set noise filtering range.
The larger the noise value, the coarser the texture corresponding to that pixel point. In the actual implementation process, the noise filtering range can be flexibly set by a person skilled in the art or a user.
And secondly, determining the region formed by the residual pixel points after filtering as the region to be adjusted.
The mode of optionally detecting the unclear region according to the noise value of the pixel point in the second image enables the detection result to be more accurate.
In an optional embodiment, the step of performing detail compensation on each second pixel point in the region to be adjusted according to the detail information of the definition of each first pixel point included in the first region in the first image, and generating the target image includes the following sub-steps:
the first substep: aiming at each second pixel point in the region to be adjusted, determining a second target pixel point matched with the second pixel point from all the first pixel points;
and a second substep: and adjusting the definition detail information of the second pixel point into the definition detail information of the second target pixel point.
The sharpness detail packet is not limited to: and adjusting the noise point and the texture detail information into the noise point of the matched first pixel point and adjusting the texture detail information into the texture detail information of the matched first pixel point when adjusting the definition detail information of the second pixel point.
The optional detail compensation mode has small calculation amount and more real compensated image details.
In an optional embodiment, in a case that the region to be adjusted contains the human image, after the step of performing detail compensation on each second pixel point in the region to be adjusted to generate the target image, the method may further include the following steps:
the method comprises the following steps: respectively determining a third area occupied by the figure image and a fourth area except the third area;
step two: and adjusting the transparency of the second pixel points in the third area to be a first preset transparency, and adjusting the transparency of the second pixel points in the fourth area to be a second preset transparency.
The first preset transparency is smaller than the second preset transparency.
The mode of optionally adjusting the character image area and the background area to different transparencies can make the presentation effect of the character image clearer.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module in the image processing apparatus for executing the image processing method. In the embodiment of the present application, an image processing module is taken as an example to execute an image processing method, and an image processing apparatus provided in the embodiment of the present application is described.
Fig. 2 is a block diagram of an image processing apparatus implementing an embodiment of the present application.
The image processing apparatus 200 according to the embodiment of the present application includes:
the acquisition module 201 is configured to acquire a first image in a RAW format and store definition detail information of each first pixel point in the first image;
a format adjusting module 202, configured to adjust an image format of the first image to obtain a second image;
a detecting module 203, configured to detect a region to be adjusted in the second image;
an adjusting module 204, configured to perform detail compensation on each second pixel point in the region to be adjusted according to the detail information of the definition of each first pixel point included in the first region in the first image, and generate a target image;
wherein the first region in the first image corresponds to the region to be adjusted in the second image.
Optionally, the format adjusting module includes:
the first sub-module is used for converting the first image into a third image in a YUV format;
the second sub-module is used for adjusting the display parameters of corresponding third pixel points in the third image according to the definition detail information of the first pixel points respectively to obtain a fourth image;
and the third sub-module is used for adjusting the image format of the fourth image to obtain the second image.
Optionally, the second sub-module includes:
a first unit, configured to determine, for each third pixel point in the third image, a first target pixel point corresponding to the third pixel point from the first pixel points;
and the second unit is used for adjusting the color and the brightness of the third pixel point according to the definition detail information of the first target pixel point to obtain a fourth image.
Optionally, the detection module includes:
the fourth sub-module is used for carrying out noise filtering on all pixel points in the second image;
and the fifth submodule is used for determining the region formed by the residual pixel points after filtering as the region to be adjusted.
Optionally, the adjusting module includes:
a sixth submodule, configured to determine, for each second pixel point in the region to be adjusted, a second target pixel point that is matched with the second pixel point from among the first pixel points;
and the seventh sub-module is used for adjusting the definition detail information of the second pixel point into the definition detail information of the second target pixel point.
Optionally, the apparatus further comprises:
the region determining module is used for performing detail compensation on each second pixel point in the region to be adjusted by the adjusting module under the condition that the region to be adjusted contains the figure image, and respectively determining a third region occupied by the figure image and a fourth region except the third region after generating a target image;
and the transparency adjusting module is used for adjusting the transparency of the second pixel points in the third area to be a first preset transparency and adjusting the transparency of the second pixel points in the fourth area to be a second preset transparency.
Wherein the first preset transparency is less than the second preset transparency. It will be appreciated that the greater the transparency, the more transparent.
The image processing device provided by the embodiment of the application acquires the first image in the RAW format and stores the definition detail information of each first pixel point in the first image; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; according to the definition detail information of each first pixel point contained in the first region in the first image, detail compensation is carried out on each second pixel point in the region to be adjusted, a target image is generated, the definition detail can be compensated in the target image generation process, the target image finally presented to a user is a high-quality image after definition adjustment, the user does not need to participate in image processing, the user does not need to have a picture repairing power, and professional picture repairing software does not need to be additionally installed, so that the universality is good.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of being executed on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the above-mentioned embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 410 is configured to acquire a first image in a RAW format and store definition detail information of each first pixel in the first image;
adjusting the image format of the first image to obtain a second image;
detecting a region to be adjusted in the second image;
according to the definition detail information of each first pixel point contained in the first region in the first image, performing detail compensation on each second pixel point in the region to be adjusted to generate a target image;
wherein the first region in the first image corresponds to the region to be adjusted in the second image.
The electronic device provided by the embodiment of the application acquires the first image in the RAW format and stores the definition detail information of each first pixel point in the first image; adjusting the image format of the first image to obtain a second image; detecting a region to be adjusted in the second image; according to the definition detail information of each first pixel point contained in the first region in the first image, detail compensation is carried out on each second pixel point in the region to be adjusted, a target image is generated, the definition detail can be compensated in the target image generation process, the target image finally presented to a user is a high-quality image after definition adjustment, the user does not need to participate in image processing, the user does not need to have a picture repairing power, and professional picture repairing software does not need to be additionally installed, so that the universality is good.
Optionally, the processor 410 adjusts an image format of the first image, and when obtaining the second image, is specifically configured to:
converting the first image into a third image in a YUV format;
adjusting display parameters of corresponding third pixel points in the third image according to the definition detail information of the first pixel points respectively to obtain a fourth image;
and adjusting the image format of the fourth image to obtain the second image.
Optionally, the processor 410 adjusts the display parameter of the corresponding third pixel point in the third image according to the detail information of the definition of each first pixel point, and when a fourth image is obtained, the processor is specifically configured to:
aiming at each third pixel point in the third image, determining a first target pixel point corresponding to the third pixel point from the first pixel points;
and adjusting the color and the brightness of the third pixel point according to the definition detail information of the first target pixel point to obtain a fourth image.
Optionally, when the processor 410 detects the region to be adjusted in the second image, it is specifically configured to:
carrying out noise filtration on all pixel points in the second image;
and determining the region formed by the residual pixel points after filtering as the region to be adjusted.
Optionally, the processor 410 performs detail compensation on each second pixel point in the region to be adjusted according to the detail information of the definition of each first pixel point included in the first region in the first image, and when generating the target image, is specifically configured to:
aiming at each second pixel point in the region to be adjusted, determining a second target pixel point matched with the second pixel point from each first pixel point;
and adjusting the definition detail information of the second pixel point into the definition detail information of the second target pixel point.
Optionally, the processor 410 is further configured to: under the condition that the region to be adjusted contains the figure image, after the detail compensation is carried out on each second pixel point in the region to be adjusted to generate a target image, a third region occupied by the figure image and a fourth region except the third region are respectively determined; and adjusting the transparency of the second pixel points in the third area to be a first preset transparency, and adjusting the transparency of the second pixel points in the fourth area to be a second preset transparency.
Wherein the first preset transparency is less than the second preset transparency.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image processing method, characterized in that the method comprises:
acquiring a first image in a RAW format and storing definition detail information of each first pixel point in the first image;
adjusting the image format of the first image to obtain a second image;
detecting a region to be adjusted in the second image;
according to the definition detail information of each first pixel point contained in the first region in the first image, performing detail compensation on each second pixel point in the region to be adjusted to generate a target image;
wherein the first region in the first image corresponds to the region to be adjusted in the second image.
2. The method of claim 1, wherein the step of adjusting the image format of the first image to obtain the second image comprises:
converting the first image into a third image in a YUV format;
adjusting display parameters of corresponding third pixel points in the third image according to the definition detail information of the first pixel points respectively to obtain a fourth image;
and adjusting the image format of the fourth image to obtain the second image.
3. The method according to claim 2, wherein the step of adjusting the display parameter of the corresponding third pixel point in the third image according to the detail information of the sharpness of each first pixel point to obtain a fourth image comprises:
aiming at each third pixel point in the third image, determining a first target pixel point corresponding to the third pixel point from the first pixel points;
and adjusting the color and the brightness of the third pixel point according to the definition detail information of the first target pixel point to obtain a fourth image.
4. The method according to claim 1, wherein the step of detecting the region to be adjusted in the second image comprises:
carrying out noise filtration on all pixel points in the second image;
and determining the region formed by the residual pixel points after filtering as the region to be adjusted.
5. The method according to claim 1, wherein the step of performing detail compensation on each second pixel point in the region to be adjusted according to detail information of definition of each first pixel point included in the first region in the first image to generate the target image comprises:
aiming at each second pixel point in the region to be adjusted, determining a second target pixel point matched with the second pixel point from each first pixel point;
and adjusting the definition detail information of the second pixel point into the definition detail information of the second target pixel point.
6. The method of claim 1, wherein when the region to be adjusted contains a human image, after the step of performing detail compensation on each second pixel point in the region to be adjusted to generate the target image, the method further comprises:
respectively determining a third area occupied by the figure image and a fourth area except the third area;
adjusting the transparency of the second pixel points in the third area to be a first preset transparency, and adjusting the transparency of the second pixel points in the fourth area to be a second preset transparency;
wherein the first preset transparency is less than the second preset transparency.
7. An image processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a first image in a RAW format and storing definition detail information of each first pixel point in the first image;
the format adjusting module is used for adjusting the image format of the first image to obtain a second image;
the detection module is used for detecting a region to be adjusted in the second image;
the adjusting module is used for performing detail compensation on each second pixel point in the area to be adjusted according to the definition detail information of each first pixel point contained in the first area in the first image to generate a target image;
wherein the first region in the first image corresponds to the region to be adjusted in the second image.
8. The apparatus of claim 7, wherein the format adjustment module comprises:
the first sub-module is used for converting the first image into a third image in a YUV format;
the second sub-module is used for adjusting the display parameters of corresponding third pixel points in the third image according to the definition detail information of the first pixel points respectively to obtain a fourth image;
and the third sub-module is used for adjusting the image format of the fourth image to obtain the second image.
9. The apparatus of claim 8, wherein the second sub-module comprises:
a first unit, configured to determine, for each third pixel point in the third image, a first target pixel point corresponding to the third pixel point from the first pixel points;
and the second unit is used for adjusting the color and the brightness of the third pixel point according to the definition detail information of the first target pixel point to obtain a fourth image.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the image processing method of any one of claims 1-6.
CN202011507459.2A 2020-12-18 Image processing method and device and electronic equipment Active CN112508820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011507459.2A CN112508820B (en) 2020-12-18 Image processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011507459.2A CN112508820B (en) 2020-12-18 Image processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112508820A true CN112508820A (en) 2021-03-16
CN112508820B CN112508820B (en) 2024-07-05

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225451A (en) * 2021-04-28 2021-08-06 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN114554284A (en) * 2022-02-22 2022-05-27 网易(杭州)网络有限公司 Image quality information processing method, image quality information processing device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827971A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN109697738A (en) * 2018-12-28 2019-04-30 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN109817170A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Pixel compensation method, device and terminal device
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111835937A (en) * 2020-06-30 2020-10-27 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN111861908A (en) * 2020-06-29 2020-10-30 维沃移动通信有限公司 Image processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827971A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN109817170A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Pixel compensation method, device and terminal device
CN109697738A (en) * 2018-12-28 2019-04-30 Oppo广东移动通信有限公司 Image processing method, device, terminal device and storage medium
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111861908A (en) * 2020-06-29 2020-10-30 维沃移动通信有限公司 Image processing method and device
CN111835937A (en) * 2020-06-30 2020-10-27 维沃移动通信有限公司 Image processing method and device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225451A (en) * 2021-04-28 2021-08-06 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN113225451B (en) * 2021-04-28 2023-06-27 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN114554284A (en) * 2022-02-22 2022-05-27 网易(杭州)网络有限公司 Image quality information processing method, image quality information processing device, computer equipment and storage medium
CN114554284B (en) * 2022-02-22 2023-08-11 网易(杭州)网络有限公司 Image quality information processing method, image quality information processing device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113891018A (en) Shooting method and device and electronic equipment
CN112437235B (en) Night scene picture generation method and device and mobile terminal
CN112565603B (en) Image processing method and device and electronic equipment
CN112672055A (en) Photographing method, device and equipment
CN112333441A (en) Camera detection method and device and electronic equipment
CN112437237A (en) Shooting method and device
CN111835937A (en) Image processing method and device and electronic equipment
US10311550B2 (en) Image processing device for eliminating graininess of image
CN113393391B (en) Image enhancement method, image enhancement device, electronic apparatus, and storage medium
CN112508820B (en) Image processing method and device and electronic equipment
CN112446848A (en) Image processing method and device and electronic equipment
CN115439386A (en) Image fusion method and device, electronic equipment and storage medium
CN113012085A (en) Image processing method and device
CN112508820A (en) Image processing method and device and electronic equipment
CN114298889A (en) Image processing circuit and image processing method
CN112672056A (en) Image processing method and device
CN113037996A (en) Image processing method and device and electronic equipment
CN114143448B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112367470B (en) Image processing method and device and electronic equipment
CN112419218B (en) Image processing method and device and electronic equipment
CN114302026B (en) Noise reduction method, device, electronic equipment and readable storage medium
CN116668773B (en) Method for enhancing video image quality and electronic equipment
CN112367562B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant