CN111866407A - Image processing method and device based on motion digital camera - Google Patents

Image processing method and device based on motion digital camera Download PDF

Info

Publication number
CN111866407A
CN111866407A CN202010750612.8A CN202010750612A CN111866407A CN 111866407 A CN111866407 A CN 111866407A CN 202010750612 A CN202010750612 A CN 202010750612A CN 111866407 A CN111866407 A CN 111866407A
Authority
CN
China
Prior art keywords
special effect
image
exposure
long
digital camera
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.)
Pending
Application number
CN202010750612.8A
Other languages
Chinese (zh)
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.)
Shenzhen Adas High Tech Co ltd
Original Assignee
Shenzhen Adas High Tech 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 Shenzhen Adas High Tech Co ltd filed Critical Shenzhen Adas High Tech Co ltd
Priority to CN202010750612.8A priority Critical patent/CN111866407A/en
Publication of CN111866407A publication Critical patent/CN111866407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Abstract

The invention provides an image processing method and device based on a motion digital camera, wherein the image processing method based on the motion digital camera comprises the following steps: inquiring a mapping relation between a preset special effect and an image special effect strategy according to a special effect request selected by a user, and acquiring the image special effect strategy mapped by the special effect request; and controlling the motion digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image. The special effect processing efficiency of the image can be improved.

Description

Image processing method and device based on motion digital camera
Technical Field
The invention relates to the technical field of image processing, in particular to an image processing method and device based on a motion Digital Video (DV).
Background
Digital images shot by motion DV have high resolution, clear image quality, vivid colors and small distortion, and can realize large-range zooming along with a moving target, thereby presenting high-quality dynamic pictures and being popular with wide photography users. With the diversified requirements of the photographing user on the image, for example, the photographed image is subjected to image special effect processing, but due to the closed nature of a Real Time Operating System (RTOS) carried by the motion DV, it is difficult to meet the diversified requirements of the photographing user on the image processing, so that the photographing user is required to extract the photographed image from the motion DV and perform special effect processing by using a professional image tool, and because the familiarity of the photographing user with the professional image tool is different, even the professional image tool is not used, the special effect processing efficiency of the image is low.
Disclosure of Invention
In view of the above, the present invention provides an image processing method and apparatus based on a motion digital camera to improve the special effect processing efficiency of images.
In a first aspect, an embodiment of the present invention provides an image processing method based on a motion digital camera, including:
inquiring a mapping relation between a preset special effect and an image special effect strategy according to a special effect request selected by a user, and acquiring the image special effect strategy mapped by the special effect request;
and controlling the motion digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the special effect request is a long and short exposure request for taking a special effect, and the obtaining an image special effect policy mapped by the special effect request by querying a mapping relationship between a preset special effect and an image special effect policy according to the special effect request selected by a user includes:
receiving a long and short exposure request, and inquiring and acquiring an exposure table corresponding to a sensor according to the sensor used by the motion digital camera;
acquiring ambient brightness, and setting a target exposure value of the sensor according to the acquired ambient brightness;
inquiring an exposure table according to the target exposure value to obtain a brightness adjustment strategy corresponding to the target exposure value;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, and preset normal exposure time and normal exposure sensitivity;
and sending the calculated long and short exposure parameters to a sensor so that the sensor shoots according to the long and short exposure parameters to obtain a shooting special effect image.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the brightness adjustment policy is to change an exposure time, and calculate an long-short exposure parameter corresponding to the long-short exposure request according to the brightness adjustment policy, a preset normal exposure time, and a preset normal exposure sensitivity, and the method includes:
calculating the ratio of the normal exposure time to the normal exposure sensitivity to obtain a conversion ratio;
calculating the product of the normal exposure time and the conversion ratio to obtain the long exposure time;
calculating the ratio of the normal exposure time to the conversion ratio to obtain the short exposure time;
the ratio of the normal exposure sensitivity to the conversion ratio is calculated to obtain the short exposure sensitivity and the long exposure sensitivity.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the special effect request is a monochrome special effect request, and the obtaining an image special effect policy mapped by the special effect request according to a special effect request selected by a user by querying a mapping relationship between a preset special effect and an image special effect policy includes:
setting a target color for a single-color special effect;
inquiring a pre-constructed correspondence table of HSV color blocks of colors, hues, saturation and brightness to obtain HSV color blocks corresponding to the target colors;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
editing an HSV table of the HSV color block corresponding to the target color;
and according to the edited HSV table, carrying out regeneration processing on the image shot by the motion digital camera to obtain a monochromatic special effect image corresponding to the target color.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the special effect request is a film special effect request, and the obtaining an image special effect policy mapped by the special effect request according to a special effect request selected by a user by querying a mapping relationship between a preset special effect and an image special effect policy includes:
acquiring a contrast curve of a shot image according to the input brightness of the shot image;
adjusting a contrast curve of the shot image;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
according to the adjusted contrast curve, carrying out contrast processing on the shot image again, and editing an HSV (hue, saturation and value) table of the image subjected to the contrast processing again;
and according to the edited HSV table, carrying out regeneration processing on the image subjected to the contrast processing again to obtain a film special effect image.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the special effect request is a beauty special effect request, and the obtaining an image special effect policy mapped by the special effect request according to a special effect request selected by a user by querying a mapping relationship between a preset special effect and an image special effect policy includes:
setting an image processing area and a beauty target color in a shot image;
adjusting the contrast curve of the image processing area, and keeping the contrast curves of other areas unchanged to obtain a beauty contrast curve;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
according to the beauty contrast curve, performing contrast processing on the shot image again, and editing an HSV (hue, saturation and value) table corresponding to the beauty target color in the image subjected to the contrast processing again;
according to the edited HSV table, carrying out regeneration processing on the image subjected to the contrast processing again to obtain a beautifying initial image, and carrying out skin grinding and noise reduction processing on the beautifying initial image;
and performing edge thinning treatment on the image subjected to buffing and noise reduction to obtain a special-effect image for beautifying.
In a second aspect, an embodiment of the present invention further provides an image processing apparatus based on a motion digital camera, including:
the image special effect strategy obtaining module is used for inquiring the mapping relation between the preset special effect and the image special effect strategy according to the special effect request selected by the user and obtaining the image special effect strategy mapped by the special effect request;
and the special effect image acquisition module is used for controlling the motion digital camera to shoot or process the shot image according to the acquired image special effect strategy to obtain a special effect image.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the image special effect policy obtaining module includes:
the exposure table acquisition unit is used for receiving the long and short exposure requests, and inquiring and acquiring an exposure table corresponding to a sensor used by the motion digital camera according to the sensor;
an exposure value acquisition unit for acquiring ambient brightness and setting a target exposure value of the sensor according to the acquired ambient brightness;
the strategy acquisition unit is used for inquiring an exposure table according to the target exposure value and acquiring a brightness adjustment strategy corresponding to the target exposure value;
the special effect image acquisition module comprises:
the exposure parameter recalculation unit is used for calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, the preset normal exposure time and the preset normal exposure sensitivity;
and the exposure parameter issuing unit is used for issuing the calculated long and short exposure parameters to the sensor so that the sensor can shoot according to the long and short exposure parameters to obtain a shooting special effect image.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method described above.
According to the image processing method and device based on the motion digital camera, provided by the embodiment of the invention, the mapping relation between the preset special effect and the image special effect strategy is inquired according to the special effect request selected by a user, and the image special effect strategy mapped by the special effect request is obtained; and controlling the motion digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image. Therefore, by setting the image special effect strategy for the image special effect, the image special effect processing is directly carried out while the motion DV is shot, the special effect processing does not need to be manually participated by a shooting user, and the special effect processing efficiency of the image is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flow chart of an image processing method based on a motion digital camera according to an embodiment of the present invention;
FIG. 2 is a flow chart of a photographing special effect based on a sports digital camera according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of monochrome special effects based on a sports digital camera according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a film special effect flow based on a motion digital camera according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a beauty effect process based on a sports digital camera according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an image processing apparatus based on a motion digital camera according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device 700 according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The shooting image is extracted from the motion DV, and a special effect processing mode is carried out by utilizing a professional image tool, so that the special effect processing efficiency of the image is low due to the familiarity of the shooting user to the professional image tool and the transmission time of the image. In the embodiment of the invention, the Internet Service Provider (ISP) function of the motion DV is utilized, the image special effect processing algorithm is set in the motion DV, the special effect processing is directly carried out while the motion DV is shot, and the special effect processing function of the motion DV is realized, so that the special effect processing requirement of a shooting user part is met, the special effect processing is not required to be manually participated by the shooting user, and the special effect processing efficiency of the image is improved.
The embodiment of the invention provides an image processing method and device based on a motion digital camera, which are described by embodiments below.
Fig. 1 is a schematic flow chart of an image processing method based on a motion digital camera according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, inquiring a mapping relation between a preset special effect and an image special effect strategy according to a special effect request selected by a user, and acquiring an image special effect strategy mapped by the special effect request;
in this embodiment of the present invention, as an optional embodiment, the special effects included in the special effect request include but are not limited to: a photographing special effect, a monochrome special effect, a film special effect and a beauty special effect.
In the embodiment of the invention, an image special effect strategy of the special effect mapping is set in advance aiming at each special effect, so that in the follow-up process, the digital motion camera can be controlled during shooting according to the image special effect strategy of the special effect mapping, or the shot image is processed to generate a special effect image.
And step 102, controlling the motion digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image.
The following describes image processing based on a motion digital camera in detail, with respect to a photographing special effect, a monochrome special effect, a film special effect, and a beauty special effect, as specific embodiments.
Fig. 2 is a schematic diagram illustrating a special photographing effect flow based on a sports digital video camera according to an embodiment of the present invention. As shown in fig. 2, the process includes:
step 201, receiving a long and short exposure request, and inquiring and acquiring an exposure table corresponding to a sensor according to the sensor used by the motion digital camera;
in the embodiment of the invention, the special effect of the motion track during long exposure and the special effect of the static motion track during short exposure can be achieved by increasing or reducing the exposure time during photographing, and the special effect of long and short exposure is realized. For example, with the long exposure function, an image of a moving locus such as a locus of a fan, a locus of a car, or the like can be captured, and with the short exposure function, still effect capturing of a moving locus of an image can be realized.
In the embodiment of the invention, if a user needs to realize a long and short exposure special effect in a photographing special effect, a long and short exposure request is initiated to the motion DV, for example, the long and short exposure request is initiated through a long and short exposure control button in a motion DV display interface, and the motion DV obtains an exposure table corresponding to a sensor used for photographing according to the sensor.
In the embodiment of the invention, different types of sensors correspond to different exposure tables. As an alternative embodiment, a part of the program code segments of the exposure table corresponding to a sensor are as follows:
Figure BDA0002609945470000091
in the embodiment of the present invention, AEALG _ IRIS _0 is the maximum aperture of the sensor lens, and for motion DV, for example, a car recorder performs shooting, since a fixed focus lens is selected, AEALG _ IRIS _0 is not considered in the embodiment of the present invention, and thus, by adjusting exposure time (exposure time) and/or sensitivity (ISO), image brightness is adjusted, so that image brightness can be adjusted to an Exposure Value (EV) corresponding to a preset target brightness.
AEALG _ ADJ _ EXP is a brightness adjustment strategy corresponding to the condition that ISO is a value in an exposure table, and the brightness adjustment strategy is a set value for adjusting exposure time;
AEALG _ ADJ _ GAIN is a brightness adjustment policy corresponding to the exposure time being a value in the exposure table, and the brightness adjustment policy is a set value for adjusting ISO.
Step 202, acquiring ambient brightness, and setting a target exposure value of the sensor according to the acquired ambient brightness;
in the embodiment of the present invention, as an optional embodiment, the ambient brightness may be obtained by using a lens of the motion DV, where the ambient brightness and a target Exposure Value (EV) of the sensor have a one-to-one correspondence, and the target brightness corresponding to the target exposure Value is an average brightness of a captured image. The corresponding relation between the environment brightness and the target exposure value of the sensor can be determined according to a table look-up.
In the embodiment of the present invention, as an optional embodiment, the exposure value corresponding to the ambient brightness is divided into 20 levels, and each level corresponds to an exposure value. And inquiring and acquiring an exposure value corresponding to the target brightness of the sensor according to the exposure value level corresponding to the environment brightness.
Step 203, inquiring an exposure table according to the target exposure value, and acquiring a brightness adjustment strategy corresponding to the target exposure value;
step 204, calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, and preset normal exposure time and normal exposure sensitivity;
in the embodiment of the present invention, for example, if the Exposure Value (EV) corresponding to the target brightness is 2000000, the exposure table is queried, the ISO corresponding to the EV is 100, the exposure time is 0, and the corresponding brightness adjustment policy is to change the exposure time (AEALG _ ADJ _ EXP), that is, by changing the exposure time, the brightness of the image can reach the target exposure value corresponding to the set target brightness. For another example, if the exposure value corresponding to the target brightness is 4266, the exposure table is looked up, ISO corresponding to EV is 200, the exposure time is 10000, and the brightness adjustment policy corresponding to the exposure table is to adjust the setting value (AEALG _ ADJ _ GAIN) of ISO, that is, to change the setting value of ISO, the brightness of the image can be made to reach the target exposure value corresponding to the set target brightness.
In the embodiment of the present invention, the long and short exposure parameters include: long exposure parameters and short exposure parameters, wherein the long exposure parameters include: a long exposure time and a long exposure sensitivity, the short exposure parameters comprising: short exposure time and short exposure sensitivity.
In this embodiment of the present invention, as an optional embodiment, the calculating the long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, the preset normal exposure time and the preset normal exposure sensitivity includes:
a11, calculating the ratio of the normal exposure time to the normal exposure sensitivity to obtain a conversion ratio;
in the embodiment of the present invention, the conversion ratio is calculated using the following formula:
RATIO=Cur_Expos_Time/Cur_ISO
in the formula (I), the compound is shown in the specification,
RATIO is the conversion RATIO;
cur _ Expos _ Time is the normal exposure Time;
cur _ ISO is the normal exposure sensitivity.
In the embodiment of the present invention, the conversion ratio is an integer greater than 1, and the larger the value of the conversion ratio is, the larger the difference between the subsequently obtained long and short exposure parameters (long exposure time, short exposure sensitivity, and long exposure sensitivity) and the normal exposure parameters is, the more obvious the effect is.
In the embodiment of the present invention, as an optional embodiment, the conversion ratio may be adjusted by setting the normal exposure time and the normal exposure sensitivity according to the special effect requirement of the shooting user.
A12, calculating the product of the normal exposure time and the conversion ratio to obtain the long exposure time;
in the embodiment of the invention, the long exposure time is calculated by using the following formula:
New_Long_Expos_Time=Cur_Expos_Time*RATIO
in the formula (I), the compound is shown in the specification,
new _ Long _ Expos _ Time is the Long exposure Time.
A13, calculating the ratio of the normal exposure time to the conversion ratio to obtain the short exposure time;
in the embodiment of the invention, the short exposure time is calculated by using the following formula:
New_Short_Expos_Time=Cur_Expos_Time/RATIO
in the formula (I), the compound is shown in the specification,
new _ Short _ Expos _ Time is the Short exposure Time.
A14, calculating the ratio of the normal exposure sensitivity to the conversion ratio to obtain the short exposure sensitivity and the long exposure sensitivity.
In the examples of the present invention, the short exposure sensitivity and the long exposure sensitivity were calculated using the following formulas:
New_Long_ISO=Cur_ISO/RATIO
New_Short_ISO=Cur_ISO/RATIO
in the formula (I), the compound is shown in the specification,
new _ Long _ ISO is Long exposure sensitivity;
new _ Short _ ISO is the Short exposure sensitivity.
In the embodiment of the present invention, the calculation of the long and short exposure parameters is similar to the calculation of the brightness adjustment policy for changing the exposure time, and the detailed description thereof is omitted here.
And step 205, issuing the calculated long and short exposure parameters to the sensor so that the sensor can shoot according to the long and short exposure parameters to obtain a special shooting effect image.
In the embodiment of the invention, if normal photographing is carried out, the sensor determines and sets the opening duration and the light sensitivity multiple of the shutter according to the normal exposure time and the normal exposure sensitivity; if short exposure photographing is carried out, the sensor sets the opening time length and the light sensitivity multiple of the shutter according to the received short exposure time and the received short exposure light sensitivity, so that a short exposure image can be obtained; if long exposure photographing is carried out, the sensor sets the opening time length and the light sensitivity multiple of the shutter according to the long exposure time and the long exposure light sensitivity, and a long exposure image can be obtained.
Fig. 3 is a schematic flow chart of monochrome special effect based on a motion digital camera according to an embodiment of the present invention. As shown in fig. 3, the process includes:
step 301, setting a target color for a single-color special effect;
in the embodiment of the invention, the monochrome special effect is used for highlighting the target color in the image. As an alternative embodiment, the highlighted target color may be set via a monochrome function control button in the DV display interface, which is described below with red as an example.
In the embodiment of the present invention, the adjustment of the color is generally performed based on Hue, Saturation, and brightness (HSV, Hue, Saturation, and Value), where HSV is a method for representing a point in an RGB color space in an inverted cone, V is 0 at the vertex of the cone, H and S are undefined and represent black, and V is max, S is 0 at the center of the top surface of the cone, and H is undefined and represents white. As an alternative, HSV comprises 24 color patches (HVS24), each color patch being characterized by a number from 0 to 23, e.g., 0 for the first color patch of the 24 color patches, 1 for the second color patch, etc., and for a pixel in an image its color is a composite of the HVS24 colors.
In the embodiment of the invention, if the bright special effect of the target color needs to be highlighted, the monochrome special effect can be realized by increasing the saturation and the brightness of the target color and reducing the saturation and the brightness of other colors.
Step 302, inquiring a pre-constructed corresponding relation table of colors and HSV color blocks to obtain HSV color blocks corresponding to the target color;
in the embodiment of the present invention, the set target color is a color in a preset color table, and each color in the color table forms a correspondence table with an HSV color block, and as an optional embodiment, the color table includes 24 colors.
In the embodiment of the present invention, as an optional embodiment, for example, for a target color being red, corresponding HSV color blocks in the correspondence table are respectively 0, 1, and 24, which indicate that the color of the red is respectively associated with HSV color blocks with labels of 0, 1, and 24 among the 24 color blocks, that is, the color of the red is affected by color values of HSV color blocks with labels (coordinates) of 0, 1, and 24 in the correspondence table. Therefore, the HSV color block corresponding to the target color can be obtained by checking the corresponding relation table. Each color block corresponds to an HSV table comprising a hue table, a saturation table and a brightness table.
Step 303, editing an HSV table of the HSV color block corresponding to the target color;
in the embodiment of the invention, the HSV table corresponding to each color block comprises a hue table, a saturation table and a brightness table. Taking the target color as red as an example, the HSV color blocks corresponding to red include HSV color blocks with labels (coordinates) of 0, 1 and 24 respectively in the correspondence table, and thus, the hue table, the saturation table and the brightness table of the HSV color blocks with labels (coordinates) of 0, 1 and 24 respectively are edited.
In the embodiment of the invention, the HSV table comprises: hue Table (Hue _ Table), Saturation Table (Saturation _ Table), and Brightness Table (Brightness _ Table), and HSV tables corresponding to 24 color patches for an image captured with a normal exposure time and a normal exposure sensitivity are as follows:
the Hue Table (Hue _ Table) is:
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}
the Saturation Table (Saturation _ Table) is:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
the Brightness (Brightness _ Table) is:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
for the HSV table, the saturation value ranges from-128 to 128, with a higher saturation value indicating a stronger saturation and a more brilliant color, and conversely a more grey color. The brightness values range from-128 to 128, with larger brightness values indicating stronger brightness and brighter colors, and conversely darker colors. In the embodiment of the invention, for the special effect of the single color, hue adjustment and editing are not required, so that the saturation table and the brightness table of color blocks 0, 1 and 24 corresponding to the red target color in the HSV table are edited.
In the embodiment of the present invention, since the Saturation value and the Brightness value in the Saturation Table Saturation _ Table and the Brightness Table Brightness _ Table corresponding to the normal image are both 0, if the special effect of monochrome is to be achieved by highlighting red, as an optional embodiment, in the Saturation Table and the Brightness Table of color blocks 0, 1 and 24 corresponding to red, the Saturation value and the Brightness value corresponding to color blocks 0, 1 and 24 are respectively changed to 3, 1 and 1, other colors are changed to gray, and the values corresponding to other HSV color blocks are changed to-128. Thus, a special effect of monochrome is achieved by enhancing and reducing the saturation and brightness of each color.
In the embodiment of the present invention, taking the target color as red as an example, the saturation table corresponding to the edited target color is:
{3,1,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,1}
the brightness table corresponding to the edited target color is as follows:
{3,1,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,1}
in the embodiment of the invention, the saturation and brightness of other HSV color blocks are weakened by enhancing the saturation and brightness of the HSV color block corresponding to red, for example, the saturation and brightness of other HSV color blocks are set to-128, so that the special effect of monochrome is realized.
And 304, according to the edited HSV table, carrying out regeneration processing on the image shot by the motion digital camera to obtain a monochromatic special effect image corresponding to the target color.
In the embodiment of the invention, the conversion from RGB color to HSV is carried out on the image shot by the motion digital camera, the converted HSV is edited according to the edited HSV table, the RGB color is further converted on the edited HSV, and the image is generated according to the converted RGB color, so that the monochromatic special effect image corresponding to the target color is obtained.
Fig. 4 is a schematic diagram illustrating a film special effect flow based on a motion digital camera according to an embodiment of the present invention. In the embodiment of the invention, the image can be shot into a nostalgic style and a film special effect with a chronological sense, and because the image of the film has low definition, strong haziness, low color saturation and dark lightness. As shown in fig. 4, the process includes:
step 401, acquiring a contrast curve of a shot image according to input brightness of the shot image;
in the embodiment of the invention, a contrast curve (GAMMA curve) is a key factor influencing the visual effect, the image is clearer and more striking and the color is brighter and more beautiful the larger the contrast is, and the gray and dull color of the whole picture can be caused to appear as the contrast is smaller.
In the embodiment of the invention, the brightness of the image collected from the sensor is divided into 128 segments, the x axis is the input brightness of the original image, the y axis is the output brightness of the output image after being processed by the contrast curve, if the x and y axes of the curve are in a relation of 1:1, the curve is a straight line forming an angle of 45 degrees with the coordinate axis and represents that the input and output densities are the same. If y is higher than 1, the output will be bright, and if the Gamma value of the y-axis is lower than 1, the output will be dark. In the embodiment of the invention, the motion DV can automatically acquire the contrast curve of the shot image according to the input brightness of the shot image.
Step 402, adjusting a contrast curve of a shot image;
in the embodiment of the invention, the Gamma curve can be adjusted according to the requirements of customers, and for the special effect of the film, the range of the output value from the darkest to the brightest can be reduced by reducing the contrast of the Gamma curve, namely, the contrast is reduced on the Gamma curve of a normal image according to the Gamma brightness reduction principle to obtain the Gamma curve of the film.
Step 403, performing contrast processing on the shot image again according to the adjusted contrast curve, and editing an HSV (hue, saturation and value) table of the image subjected to the contrast processing again;
in the embodiment of the invention, in order to show the effect of the old film more obviously, the saturation value and the brightness value of HSV24 can be respectively reduced according to the HSV color display principle, and the hue value is kept unchanged.
As above, the saturation table of the normal image is:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
the brightness table is as follows:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
in the embodiment of the invention, corresponding to the special effect of the old film, as an optional embodiment, the saturation value and the brightness value of the corresponding color are modified to-10, and the updated saturation table and brightness table are obtained.
The updated saturation table is:
{-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10}
the updated metrics are:
{-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10}
and step 404, performing regeneration processing on the image subjected to the contrast processing again according to the edited HSV list to obtain a film special effect image.
According to the embodiment of the invention, according to the original data collected from the sensor, the processing is carried out according to the set gamma curve, the re-correction of the saturation and the brightness is carried out, the brightness value of the film special effect image is obtained, the image is generated according to the obtained brightness value, and the image with the old film special effect is finally obtained.
Fig. 5 is a schematic flow chart illustrating a beauty effect based on a sports digital video camera according to an embodiment of the present invention. As shown in fig. 5, the process includes:
step 501, setting an image processing area and a beautifying target color in a shot image;
in the embodiment of the invention, a user more and more expects that the DV can be moved to instantly shoot a clean, fine and exquisite special beauty effect, and an image with the special beauty effect is bright, smooth and exquisite compared with a common image.
In the embodiment of the invention, the color of the beautifying target is red.
Step 502, adjusting the contrast curve of the image processing area, keeping the contrast curves of other areas unchanged to obtain a beauty contrast curve;
in the embodiment of the invention, the lower end of the normal gamma curve is pulled high relative to the gamma curve for beautifying the face so as to brighten the whole image.
Step 503, according to the beauty contrast curve, performing contrast processing on the shot image again, and editing the HSV table corresponding to the beauty target color in the image subjected to the contrast processing again;
in the embodiment of the invention, according to the HSV color space display principle, the Hue _ Table, the Saturration _ Table and the Brightness _ Table are edited so as to enhance the color vividness of the image.
As above, the hue table in the HSV table of the normal image is as follows:
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128},
the saturation table is as follows:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
the brightness is as follows:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
in the embodiment of the invention, the HSV value related to the red is adjusted, for example, for the hue, the hue value corresponding to the red is reduced to make the red become a bit pink, and for the saturation and the brightness, the saturation value and the brightness value corresponding to the red are increased to enhance the color and make the color bright.
The compiled HSV list for beauty is as follows:
hue table:
{112,112,120,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,120,112}
a saturation chart:
{16,16,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,16}
brightness table:
{4,4,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4}
step 504, according to the edited HSV table, carrying out regeneration processing on the image subjected to the contrast processing again to obtain a beautifying initial image, and carrying out skin grinding and noise reduction processing on the beautifying initial image;
in the embodiment of the invention, the buffing noise reduction is the key of beautifying, and as an optional embodiment, the buffing noise reduction is realized by adopting a bilateral filter, so that the denoising and smoothing effect is achieved. The bilateral filter is composed of two functions, one function is a filter coefficient determined by geometric space distance, the closer to the central point, the higher the weight, the other function is a filter coefficient determined by pixel difference, and the closer the pixel value, the higher the weight.
In the embodiment of the present invention, the pixel value weight is Gr, and the spatial distance weight is Gs. In the flat area, the Gr value of each pixel point in the bilateral filter is similar, so the spatial distance weight Gs dominates the filtering effect. In the edge area, the Gr value on the same side of the edge is close and far greater than the Gr value on the other side of the edge, so that the influence of the pixel value weight of the pixel point on the other side on the filtering effect can be ignored, and the edge information is protected. When the noise points appear in the flat area, Gr values of signals around the noise points are small, and the noise points are well filtered after normalization.
In the embodiment of the invention, according to the bilateral filtering principle of the bilateral filter, the proportion of bilateral filtering Bilat _ w is increased, and the threshold value (clamp _ Th) is set to be minimum, so that the filtering proportion and the peeling strength are changed, and the peeling effect is achieved.
In the embodiment of the present invention, the range of Bilat _ w is set to be 0 to 15, the larger the value is, the larger the filter specific gravity is, the range of clamp _ Th is 0 to 4095, and the smaller the value is, the larger the filter specific gravity is, as an optional embodiment, Bilat _ w is 15, and clamp _ Th is 0.
And 505, performing edge thinning processing on the image subjected to buffing and noise reduction to obtain a special-effect image for beautifying.
In the embodiment of the invention, the edge value in the data is extracted from the original data acquired by the sensor, and the specific gravity value of the edge to be strengthened is obtained according to the preset edge refinement mapping relation. Wherein 250 is the maximum value of the specific gravity value, and if the specific gravity value is 0, it means that the reinforcement is not performed.
In the embodiment of the invention, the original data obtained from the sensor is subjected to gamma curve reduction treatment and color reduction correction, and then is subjected to enhanced bilateral filtering and edge thinning treatment to finally obtain a bright, smooth and fine beauty photo.
Fig. 6 is a schematic structural diagram of an image processing apparatus based on a motion digital camera according to an embodiment of the present invention. As shown in fig. 6, the image processing apparatus includes:
an image special effect policy obtaining module 601, configured to query, according to a special effect request selected by a user, a mapping relationship between a preset special effect and an image special effect policy, and obtain an image special effect policy mapped by the special effect request;
in the embodiment of the present invention, the special effects included in the special effect request include, but are not limited to: a photographing special effect, a monochrome special effect, a film special effect and a beauty special effect.
A special effect image obtaining module 602, configured to control the motion digital camera to shoot or process a shot image according to the obtained image special effect policy, so as to obtain a special effect image.
In this embodiment of the present invention, as an optional embodiment, the special effect request is a long and short exposure request for a special effect of photographing, and the image special effect policy obtaining module 601 includes:
an exposure table obtaining unit (not shown in the figure) for receiving the long and short exposure requests, and inquiring and obtaining an exposure table corresponding to the sensor according to the sensor used by the motion digital camera;
in the embodiment of the invention, the exposure time is increased or reduced during photographing, so that the special effect of the motion track during long exposure and the special effect of the static motion during short exposure are achieved, and the special effect of long and short exposure is realized.
In the embodiment of the invention, different types of sensors correspond to different exposure tables.
An exposure value acquisition unit for acquiring ambient brightness and setting a target exposure value of the sensor according to the acquired ambient brightness;
in the embodiment of the invention, the ambient brightness is acquired by using the lens of the motion DV.
The strategy acquisition unit is used for inquiring an exposure table according to the target exposure value and acquiring a brightness adjustment strategy corresponding to the target exposure value;
a special effect image acquisition module 602, including:
the exposure parameter recalculation unit is used for calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, the preset normal exposure time and the preset normal exposure sensitivity;
in the embodiment of the present invention, the long and short exposure parameters include: long exposure parameters and short exposure parameters, wherein the long exposure parameters include: a long exposure time and a long exposure sensitivity, the short exposure parameters comprising: short exposure time and short exposure sensitivity.
And the exposure parameter issuing unit is used for issuing the calculated long and short exposure parameters to the sensor so that the sensor can shoot according to the long and short exposure parameters to obtain a shooting special effect image.
In the embodiment of the invention, the sensor determines and sets the opening time length and the photosensitive multiple of the shutter according to the received exposure time and exposure sensitivity.
In this embodiment of the present invention, as an optional embodiment, the brightness adjustment strategy is to change the exposure time, and the exposure parameter recalculation unit includes:
the first calculating subunit is used for calculating the ratio of the normal exposure time to the normal exposure sensitivity to obtain a conversion ratio;
in the embodiment of the present invention, the conversion ratio is calculated using the following formula:
RATIO=Cur_Expos_Time/Cur_ISO
the second calculating subunit is used for calculating the product of the normal exposure time and the conversion ratio to obtain the long exposure time;
in the embodiment of the invention, the long exposure time is calculated by using the following formula:
New_Long_Expos_Time=Cur_Expos_Time*RATIO
the third calculation subunit is used for calculating the ratio of the normal exposure time to the conversion ratio to obtain the short exposure time;
in the embodiment of the invention, the short exposure time is calculated by using the following formula:
New_Short_Expos_Time=Cur_Expos_Time/RATIO
and a fourth calculating subunit, configured to calculate a ratio of the normal exposure sensitivity to the conversion ratio to obtain a short exposure sensitivity and a long exposure sensitivity.
In the examples of the present invention, the short exposure sensitivity and the long exposure sensitivity were calculated using the following formulas:
New_Long_ISO=Cur_ISO/RATIO
New_Short_ISO=Cur_ISO/RATIO
in this embodiment of the present invention, as another optional embodiment, the special effect request is a monochrome special effect request, and the image special effect policy obtaining module 601 includes:
a target color setting unit for setting a target color for a monochrome special effect;
the query unit is used for querying a pre-constructed correspondence table of HSV color blocks of colors, hues, saturations and brightnesses to obtain the HSV color block corresponding to the target color;
in the embodiment of the invention, each color in the color table corresponding to the target color forms a corresponding relation table with the HSV color block.
The special effect image acquisition module 602 includes:
the first editing unit is used for editing the HSV table of the HSV color block corresponding to the target color;
in the embodiment of the present invention, taking an example that a target color is red, HSV color blocks corresponding to the red are 0, 1 and 24 HSV color blocks, and a hue table, a saturation table and a brightness table of the HSV color blocks of 0, 1 and 24 are edited. As an optional embodiment, the saturation and brightness of the HSV color block corresponding to the red color are enhanced, and the saturation and brightness of other HSV color blocks are weakened, so that the special effect of monochrome is realized. The saturation table corresponding to the edited target color is as follows:
{3,1,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,1}
the brightness table corresponding to the edited target color is as follows:
{3,1,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,-128,1}
and the monochrome special effect image generating unit is used for carrying out regeneration processing on the image shot by the motion digital camera according to the edited HSV table to obtain the monochrome special effect image corresponding to the target color.
In this embodiment of the present invention, as yet another optional embodiment, the special effect request is a film special effect request, and the image special effect policy obtaining module 601 includes:
a contrast acquisition unit for acquiring a contrast curve of a photographed image according to an input brightness of the photographed image;
an adjusting unit for adjusting a contrast curve of the photographed image;
the special effect image acquisition module 602 includes:
the second editing unit is used for carrying out contrast processing on the shot image again according to the adjusted contrast curve and editing the HSV table of the image subjected to the contrast processing again;
in the embodiment of the invention, the saturation value and the brightness value of the corresponding color are modified to-10 corresponding to the special effect of the old film, and the updated saturation table and brightness table are obtained.
The updated saturation table is:
{-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10}
the updated metrics are:
{-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10,-10}
and the film special effect image generating unit is used for carrying out regeneration processing on the image subjected to the contrast processing again according to the edited HSV list to obtain the film special effect image.
In this embodiment of the present invention, as yet another optional embodiment, the special effect request is a beauty special effect request, and the image special effect policy obtaining module 601 includes:
an area setting unit for setting an image processing area and a beauty target color in a photographed image;
the beauty contrast acquisition unit is used for adjusting the contrast curve of the image processing area, and the contrast curves of other areas are kept unchanged to obtain a beauty contrast curve;
the special effect image acquisition module 602 includes:
the third editing unit is used for carrying out contrast processing on the shot image again according to the beauty contrast curve and editing the HSV table corresponding to the beauty target color in the image subjected to the contrast processing again;
in the embodiment of the invention, the edited HSV table for beautifying is as follows:
hue table:
{112,112,120,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,120,112}
a saturation chart:
{16,16,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,16}
brightness table:
{4,4,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4}
the noise reduction unit is used for regenerating the image subjected to the contrast processing again according to the edited HSV table to obtain a beautifying initial image and carrying out skin grinding and noise reduction processing on the beautifying initial image;
in the embodiment of the invention, as an optional embodiment, the skin grinding and noise reduction are realized by adopting the bilateral filter, so that the denoising and smoothing effect is achieved.
And the beauty special effect image generating unit is used for carrying out edge thinning treatment on the skin-worn noise-reduced image to obtain the beauty special effect image.
As shown in fig. 7, an embodiment of the present application provides a computer device 700 for executing the image processing method based on the moving digital camera in fig. 1, the device includes a memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor 702, wherein the processor 702 implements the steps of the image processing method based on the moving digital camera when executing the computer program.
Specifically, the memory 701 and the processor 702 can be general-purpose memory and processor, which are not limited in particular, and the image processing method based on the motion digital camera can be executed when the processor 702 runs a computer program stored in the memory 701.
Corresponding to the image processing method based on the sports digital camera in fig. 1, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the image processing method based on the sports digital camera.
Specifically, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, or the like, and when the computer program on the storage medium is executed, the image processing method based on the motion digital camera can be executed.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An image processing method based on a motion digital camera is characterized by comprising the following steps:
inquiring a mapping relation between a preset special effect and an image special effect strategy according to a special effect request selected by a user, and acquiring the image special effect strategy mapped by the special effect request;
and controlling the motion digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image.
2. The image processing method according to claim 1, wherein the special effect request is a long-short exposure request for photographing a special effect, and the image special effect policy mapped by the special effect request is obtained by querying a mapping relationship between a preset special effect and an image special effect policy according to the special effect request selected by a user, including:
receiving a long and short exposure request, and inquiring and acquiring an exposure table corresponding to a sensor according to the sensor used by the motion digital camera;
acquiring ambient brightness, and setting a target exposure value of the sensor according to the acquired ambient brightness;
inquiring an exposure table according to the target exposure value to obtain a brightness adjustment strategy corresponding to the target exposure value;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, and preset normal exposure time and normal exposure sensitivity;
and sending the calculated long and short exposure parameters to a sensor so that the sensor shoots according to the long and short exposure parameters to obtain a shooting special effect image.
3. The method according to claim 2, wherein the brightness adjustment strategy is to change an exposure time, and calculating the long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy and a preset normal exposure time and a preset normal exposure sensitivity comprises:
calculating the ratio of the normal exposure time to the normal exposure sensitivity to obtain a conversion ratio;
calculating the product of the normal exposure time and the conversion ratio to obtain the long exposure time;
calculating the ratio of the normal exposure time to the conversion ratio to obtain the short exposure time;
the ratio of the normal exposure sensitivity to the conversion ratio is calculated to obtain the short exposure sensitivity and the long exposure sensitivity.
4. The image processing method according to claim 1, wherein the special effect request is a monochrome special effect request, and the image special effect policy mapped by the special effect request is obtained by querying a mapping relationship between a preset special effect and an image special effect policy according to the special effect request selected by the user, including:
setting a target color for a single-color special effect;
inquiring a pre-constructed correspondence table of HSV color blocks of colors, hues, saturation and brightness to obtain HSV color blocks corresponding to the target colors;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
editing an HSV table of the HSV color block corresponding to the target color;
and according to the edited HSV table, carrying out regeneration processing on the image shot by the motion digital camera to obtain a monochromatic special effect image corresponding to the target color.
5. The image processing method according to claim 1, wherein the special effect request is a film special effect request, and the image special effect policy mapped by the special effect request is obtained by querying a mapping relationship between a preset special effect and an image special effect policy according to the special effect request selected by the user, including:
acquiring a contrast curve of a shot image according to the input brightness of the shot image;
adjusting a contrast curve of the shot image;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
according to the adjusted contrast curve, carrying out contrast processing on the shot image again, and editing an HSV (hue, saturation and value) table of the image subjected to the contrast processing again;
and according to the edited HSV table, carrying out regeneration processing on the image subjected to the contrast processing again to obtain a film special effect image.
6. The image processing method according to claim 1, wherein the special effect request is a beauty special effect request, and the image special effect policy mapped by the special effect request is obtained by querying a mapping relationship between a preset special effect and an image special effect policy according to the special effect request selected by the user, including:
setting an image processing area and a beauty target color in a shot image;
adjusting the contrast curve of the image processing area, and keeping the contrast curves of other areas unchanged to obtain a beauty contrast curve;
the controlling the moving digital camera to shoot or process the shot image according to the obtained image special effect strategy to obtain a special effect image comprises the following steps:
according to the beauty contrast curve, performing contrast processing on the shot image again, and editing an HSV (hue, saturation and value) table corresponding to the beauty target color in the image subjected to the contrast processing again;
according to the edited HSV table, carrying out regeneration processing on the image subjected to the contrast processing again to obtain a beautifying initial image, and carrying out skin grinding and noise reduction processing on the beautifying initial image;
and performing edge thinning treatment on the image subjected to buffing and noise reduction to obtain a special-effect image for beautifying.
7. An image processing apparatus based on a motion digital camera, comprising:
the image special effect strategy obtaining module is used for inquiring the mapping relation between the preset special effect and the image special effect strategy according to the special effect request selected by the user and obtaining the image special effect strategy mapped by the special effect request;
and the special effect image acquisition module is used for controlling the motion digital camera to shoot or process the shot image according to the acquired image special effect strategy to obtain a special effect image.
8. The image processing apparatus according to claim 7, wherein the image special effect policy acquisition module includes:
the exposure table acquisition unit is used for receiving the long and short exposure requests, and inquiring and acquiring an exposure table corresponding to a sensor used by the motion digital camera according to the sensor;
an exposure value acquisition unit for acquiring ambient brightness and setting a target exposure value of the sensor according to the acquired ambient brightness;
the strategy acquisition unit is used for inquiring an exposure table according to the target exposure value and acquiring a brightness adjustment strategy corresponding to the target exposure value;
the special effect image acquisition module comprises:
the exposure parameter recalculation unit is used for calculating long and short exposure parameters corresponding to the long and short exposure requests according to the brightness adjustment strategy, the preset normal exposure time and the preset normal exposure sensitivity;
and the exposure parameter issuing unit is used for issuing the calculated long and short exposure parameters to the sensor so that the sensor can shoot according to the long and short exposure parameters to obtain a shooting special effect image.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the image processing method based on a motion digital camera according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program for executing the steps of the image processing method based on a sports digital camera according to any one of claims 1 to 6 when the computer program is executed by a processor.
CN202010750612.8A 2020-07-30 2020-07-30 Image processing method and device based on motion digital camera Pending CN111866407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010750612.8A CN111866407A (en) 2020-07-30 2020-07-30 Image processing method and device based on motion digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010750612.8A CN111866407A (en) 2020-07-30 2020-07-30 Image processing method and device based on motion digital camera

Publications (1)

Publication Number Publication Date
CN111866407A true CN111866407A (en) 2020-10-30

Family

ID=72945090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010750612.8A Pending CN111866407A (en) 2020-07-30 2020-07-30 Image processing method and device based on motion digital camera

Country Status (1)

Country Link
CN (1) CN111866407A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077378A (en) * 2021-03-31 2021-07-06 重庆长安汽车股份有限公司 Image processing and target identification method based on vehicle-mounted camera

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003125285A (en) * 2001-10-17 2003-04-25 Matsushita Electric Ind Co Ltd Image feedforward control method for camera and portable terminal with camera employing the method
US20070071424A1 (en) * 2005-09-29 2007-03-29 Eunice Poon Method and apparatus for limiting motion blur in a digital image
TW201101819A (en) * 2009-06-26 2011-01-01 Altek Corp Digital image special effect treatment method
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
US9554059B1 (en) * 2015-07-31 2017-01-24 Quanta Computer Inc. Exposure control system and associated exposure control method
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN108989700A (en) * 2018-08-13 2018-12-11 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium
CN111418201A (en) * 2018-03-27 2020-07-14 华为技术有限公司 Shooting method and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003125285A (en) * 2001-10-17 2003-04-25 Matsushita Electric Ind Co Ltd Image feedforward control method for camera and portable terminal with camera employing the method
US20070071424A1 (en) * 2005-09-29 2007-03-29 Eunice Poon Method and apparatus for limiting motion blur in a digital image
TW201101819A (en) * 2009-06-26 2011-01-01 Altek Corp Digital image special effect treatment method
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
US9554059B1 (en) * 2015-07-31 2017-01-24 Quanta Computer Inc. Exposure control system and associated exposure control method
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN111418201A (en) * 2018-03-27 2020-07-14 华为技术有限公司 Shooting method and equipment
CN108989700A (en) * 2018-08-13 2018-12-11 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077378A (en) * 2021-03-31 2021-07-06 重庆长安汽车股份有限公司 Image processing and target identification method based on vehicle-mounted camera
CN113077378B (en) * 2021-03-31 2024-02-09 重庆长安汽车股份有限公司 Image processing and target identification method based on vehicle-mounted camera

Similar Documents

Publication Publication Date Title
US9852499B2 (en) Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification
US6859565B2 (en) Method and apparatus for the removal of flash artifacts
TWI511559B (en) Image processing method
US6262778B1 (en) Image processing system
JP5392560B2 (en) Image processing apparatus and image processing method
KR20210118233A (en) Apparatus and method for shooting and blending multiple images for high-quality flash photography using a mobile electronic device
US20170154437A1 (en) Image processing apparatus for performing smoothing on human face area
CN109300101A (en) A kind of more exposure image fusion methods based on Retinex theory
Kao High dynamic range imaging by fusing multiple raw images and tone reproduction
JP6771977B2 (en) Image processing equipment and image processing methods, programs
CN110782400B (en) Self-adaptive illumination uniformity realization method and device
US20120250997A1 (en) Image processing apparatus, image processing method, and storage medium
US9092889B2 (en) Image processing apparatus, image processing method, and program storage medium
CN111866407A (en) Image processing method and device based on motion digital camera
JP2006114006A (en) Gradation conversion apparatus, program, electronic camera, and method therefor
JP5896204B2 (en) Image processing apparatus and program
KR101663042B1 (en) Photo fusing apparatus
Yun et al. A contrast enhancement method for HDR image using a modified image formation model
JP4984247B2 (en) Image processing apparatus, image processing method, and program
JP7318251B2 (en) Image processing device, image processing method and program
CN111047520B (en) Image processing apparatus, image processing method, and recording medium
TWI475512B (en) Noise processing method of dynamic range image and image capturing device thereof
Yamashita et al. Contrast-gain-based visual tone mapping for digital photo prints
JP2008147714A (en) Image processor and image processing method
JP2016170637A (en) Image processing device and image processing method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030

RJ01 Rejection of invention patent application after publication