CN106412450A - Image processing method and apparatus of red-eye reduction - Google Patents
Image processing method and apparatus of red-eye reduction Download PDFInfo
- Publication number
- CN106412450A CN106412450A CN201610363311.3A CN201610363311A CN106412450A CN 106412450 A CN106412450 A CN 106412450A CN 201610363311 A CN201610363311 A CN 201610363311A CN 106412450 A CN106412450 A CN 106412450A
- Authority
- CN
- China
- Prior art keywords
- flash lamp
- image
- eye
- image data
- state
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/81—Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
- Stroboscope Apparatuses (AREA)
Abstract
The disclosure relates to an image processing method and apparatus of red-eye reduction. The method comprises steps of receiving a shooting instruction which is generated when a photography shutter is pressed down; generating an anti-red-eye starting instruction in a condition that a flash lamp is determined to be turned on; responding to the anti-red-eye starting instruction, and carrying out shooting in a state that the flash lamp is not turned on to obtain first eye image data of a shooting object; in a state that the flash lamp is turned on, carrying out shooting to obtain a first image of the shooting object, and obtaining second eye image data in the first image; and replacing the second eye image data in the first image with the first eye image data. The disclosure solves the problem of correlation techniques that red eyes occur when a flash lamp is turned on in a dark environment, the red-eye problem of a picture is solved, and the shooting effect is improved.
Description
Technical field
It relates to image taking technology, more particularly, to eliminate image processing method and the device of blood-shot eye illness.
Background technology
With the development of mobile terminal, its camera function is stronger and stronger, can under circumstances can
Take high-quality photos.But because the scaling that the pupil of human eye changes to fast light linear speed leads in dark
In the environment of when driving flash lamp, take the photo coming and have obvious blood-shot eye illness.
Content of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of image processing method eliminating blood-shot eye illness
Method and device.
According to the embodiment of the present disclosure in a first aspect, provide a kind of eliminate blood-shot eye illness image processing method, bag
Include:
In the case that determination needs to open flash lamp, generate IGBT open command;
In response to described IGBT open command, in the state of not driving described flash lamp, shoot to obtain and clap
Take the photograph the first eye view data of object;
In the state of opening described flash lamp, shoot the first image obtaining described reference object, and obtain
Take the second eyes image data in described first image;
The second eyes image data in described first image is substituted for described first eye view data.
Optionally, described in the case that determination needs to open described flash lamp, generate IGBT open refer to
Order includes:
Receive photography shutter be pressed generation shooting instruction;
Shoot instruction in response to described, by optical sensor monitors environment light, and sentenced according to described ambient light
Disconnected the need of opening flash lamp;
In the case that determination needs to open described flash lamp, generate IGBT open command.
Optionally, described in the state of not driving described flash lamp, shoot obtain reference object First view
Portion's view data includes:
The eye position of described reference object in the state of not driving described flash lamp, is determined by recognition of face
Put;
Carry out shooting according to described eye locations and obtain described first eye view data.
Optionally, described in the state of not driving described flash lamp, shoot obtain reference object First view
Portion's view data includes:
In the state of not driving described flash lamp, shoot the second image obtaining described reference object;
Obtain the described First view in described second image by described second image is carried out with recognition of face
Portion's view data.
Optionally, described the second eyes image data obtaining in described first image includes:
Obtain described second eyes image data by described first image is carried out with recognition of face.
Optionally, described by optical sensor monitors environment light, and need are judged whether according to described ambient light
Flash lamp to be opened includes:
Obtain the brightness of ambient light by optical sensor;
Judge whether the brightness of described ambient light is less than default luminance threshold;
When the brightness of described ambient light is less than described default luminance threshold, determining needs to open described sudden strain of a muscle
Light lamp.
Optionally, described first eye view data and described second eyes image data are that described shooting is right
The pupil image data of elephant.
According to the second aspect of the embodiment of the present disclosure, provide a kind of image processing apparatus eliminating blood-shot eye illness, bag
Include:
Directive generation module, is configured to, in the case that determination needs to open flash lamp, generate IGBT
Open command;
First taking module, is configured to respond to described IGBT open command, is not opening described flash of light
In the state of lamp, shoot the first eye view data obtaining reference object;
Second taking module, is configured to, in the state of opening described flash lamp, shoot and obtain described bat
Take the photograph the first image of object, and obtain the second eyes image data in described first image;
Red-eye removal module, is configured for the second eyes image data in described first image to be substituted for institute
State the first eye view data.
Optionally, described device also includes:Command reception module and light monitoring module;
Described command reception module, be configured to receive photography shutter be pressed generation shooting instruction;
Described light monitoring module, is configured to respond to described shooting and instructs, monitored by optical sensor
Ambient light, and judge whether to need to open flash lamp according to described ambient light
Described directive generation module, is configured in the case that determination needs to open described flash lamp, raw
Become IGBT open command.
Optionally, described first taking module, is configured to:
The eye position of described reference object in the state of not driving described flash lamp, is determined by recognition of face
Put;
Carry out shooting according to described eye locations and obtain described first eye view data.
Optionally, described first taking module, is configured to:
In the state of not driving described flash lamp, shoot the second image obtaining described reference object;
Obtain the described First view in described second image by described second image is carried out with recognition of face
Portion's view data.
Optionally, described second taking module, is configured to carry out face knowledge to described first image
Do not obtain described second eyes image data.
Optionally, described light monitoring module, is configured to:
Obtain the brightness of ambient light by optical sensor;
Judge whether the brightness of described ambient light is less than default luminance threshold;
When the brightness of described ambient light is less than described default luminance threshold, determining needs to open described sudden strain of a muscle
Light lamp.
Optionally, described first eye view data and described second eyes image data are that described shooting is right
The pupil image data of elephant.
According to the third aspect of the embodiment of the present disclosure, provide a kind of terminal, including:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
In the case that determination needs to open flash lamp, generate IGBT open command;
In response to described IGBT open command, in the state of not driving described flash lamp, shoot to obtain and clap
Take the photograph the first eye view data of object;
In the state of opening described flash lamp, shoot the first image obtaining described reference object, and obtain
Take the second eyes image data in described first image;
The second eyes image data in described first image is substituted for described first eye view data.
According to the fourth aspect of the embodiment of the present disclosure, provide a kind of non-transitory computer-readable storage medium
Matter, when the instruction in described storage medium is by the computing device of mobile terminal so that mobile terminal energy
Enough execute a kind of image processing method eliminating blood-shot eye illness, methods described includes:Open flash of light in determination needs
In the case of lamp, generate IGBT open command;In response to described IGBT open command, not opening
In the state of stating flash lamp, shoot the first eye view data obtaining reference object;Opening described sudden strain of a muscle
In the state of light lamp, shoot the first image obtaining described reference object, and obtain in described first image
The second eyes image data;The second eyes image data in described first image is substituted for described
One eye view data.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:By needing in determination
In the case of flash lamp to be opened, first in the state of not driving described flash lamp, shoot acquisition shooting right
The first eye view data of elephant, then in the state of opening described flash lamp, shoot and obtain described shooting
First image of object, and obtain the second eyes image data in described first image, finally will be described
The second eyes image data in first image is substituted for described first eye view data.It can be seen that the disclosure
Can solve the problem that the problem occurring when opening flash lamp in compared with dark situation seeing red in correlation technique, can disappear
Except the blood-shot eye illness in photo.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory
, the disclosure can not be limited.
Brief description
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets this public affairs
The embodiment opened, and be used for explaining the principle of the disclosure together with specification.
Fig. 1 is a kind of flow process of the image processing method of elimination blood-shot eye illness according to an exemplary embodiment
Figure;
Fig. 2 is the stream of another kind of image processing method eliminating blood-shot eye illness according to an exemplary embodiment
Cheng Tu;
Fig. 3 is a kind of image processing apparatus block diagram of the elimination blood-shot eye illness according to an exemplary embodiment;
Fig. 4 is another kind of image processing apparatus frame eliminating blood-shot eye illness according to an exemplary embodiment
Figure;
Fig. 5 is a kind of block diagram of the terminal according to an exemplary embodiment.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Following
When description is related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosure
There is embodiment.On the contrary, they be only with such as appended claims in described in detail, the disclosure one
The example of a little consistent apparatus and method of aspect.
Fig. 1 is a kind of flow process of the image processing method of elimination blood-shot eye illness according to an exemplary embodiment
Figure, the image processing method eliminating blood-shot eye illness is used in the terminal possess camera function, and this terminal can be moved
Mobile phone, tablet device, personal digital assistant etc..As shown in figure 1, eliminating the image processing method of blood-shot eye illness
Method comprises the following steps.
In step 103, in the case that determination needs to open flash lamp, generate IGBT open command.
At step 104, in response to IGBT open command, in the state of not driving flash lamp, shoot
Obtain the first eye view data of reference object.
In step 105, in the state of opening flash lamp, shoot the first image obtaining reference object,
And obtain the second eyes image data in the first image.
In step 106, the second eyes image data in the first image is substituted for the first eyes image
Data.
The image processing method eliminating blood-shot eye illness that the disclosure provides, by needing to open flash lamp in determination
In the case of, first in the state of not driving flash lamp, shoot the first eye picture number obtaining reference object
According to, then in the state of opening flash lamp, shoot the first image obtaining reference object, and obtain first
The second eyes image data in first image is finally substituted for by the second eyes image data in image
First eye view data.It can be seen that the disclosure can solve the problem that in correlation technique compared with opening sudden strain of a muscle in dark situation
The problem occurring during light lamp seeing red, can eliminate the blood-shot eye illness in photo, improve shooting effect.
Fig. 2 is the stream of another kind of image processing method eliminating blood-shot eye illness according to an exemplary embodiment
Cheng Tu, the image processing method eliminating blood-shot eye illness is used in the terminal possess camera function, and this terminal can be
Mobile phone, tablet device, personal digital assistant etc..As shown in Fig. 2 the method shown in Fig. 1
Before step 103, the image processing method of this elimination blood-shot eye illness is further comprising the steps of.
In a step 101, receive photography shutter be pressed generation shooting instruction.
User, when using terminal is taken pictures, needs to press photography shutter, the camera button of such as terminal, or
Person is the button on the touch screen of terminal for taking pictures, and this operation creates the instruction taken pictures, and by end
Termination receives.
In a step 102, in response to this instruction, by optical sensor monitors environment light, and according to environment
Light judges whether to need to open flash lamp.
After terminal receives the instruction pressing photography shutter, can be by the optical sensor monitoring in terminal
Around ambient light, and determine take pictures instantly the need of opening flash lamp.Produce blood-shot eye illness due to taking pictures
It is just meeting when the pupil scaling that fast light linear speed is changed of human eye leads to drive flash lamp in the interior of dark
Occur, therefore needing in the disclosure first to determine whether light when taking pictures secretly arrives needs to open flash lamp, such as
Fruit does not need to open flash lamp, then will not produce blood-shot eye illness, also avoid the need for the image taken pictures is eliminated
The process of blood-shot eye illness.
Optionally, what a luminance threshold can be pre-set in terminal, this luminance threshold can be fixing
It is arranged in the camera parameters of terminal, the firmware parameters as this camera are it is also possible to by user oneself hand
Dynamic setting.When the brightness of terminal judges ambient light is less than this luminance threshold, determines and be currently needed for opening sudden strain of a muscle
Light lamp.By this comparison procedure, so that terminal clearly opens flash lamp the need of this.
Further, described in step 104 in response to IGBT open command, do not driving flash lamp
Under state, the first eye view data shooting acquisition reference object can include:
In a kind of mode, in the state of not driving described flash lamp, determine that shooting is right by recognition of face
The eye locations of elephant;Carry out shooting further according to described eye locations and obtain the first eye view data.?
First, before opening flash lamp, to determine the position of face by face recognition technology, and to further determine that
The position of eye, then shoots and obtains optical data.
Or, in a further mode of operation, in the state of not driving flash lamp, shoot and obtain reference object
Second image, obtains the first eye picture number in the second image by the second image is carried out with recognition of face
According to.Can shoot, first before opening flash lamp, the second image obtaining reference object, due to this
Two images are to shoot in the state of not having flash lamp, thus without the phenomenon producing blood-shot eye illness.Then eventually
After the second image is taken at end, the can be obtained in this second image by the second image is carried out with recognition of face
One eye view data.
Wherein it is desired to explanation, the first eye view data in the present embodiment and the second eyes image
Data is the pupil image data of reference object.In addition, " first ", " second " in the present embodiment is only
It is for distinguishing different images (or eyes image data), be not the restriction to order.
The second eyes image data in acquisition first image described in step 105 can include:Logical
Cross and the first image is carried out with recognition of face acquisition the second eyes image data.
I.e. terminal, after shutter is pressed, is successively taken pictures to same reference object twice, is once to close
Shoot in the state of closing flash lamp, be once to shoot in the state of opening flash lamp, and terminal is respectively
Obtain the eyes image data in the image that this takes twice, in such two images, close the figure of flash lamp
Seem not see red, and the image opening flash lamp is likely to be to have blood-shot eye illness.Therefore execute step again
Described in rapid 106, the second eyes image data in first image is substituted for the first eye view data
After step, the eyes image data that there may be blood-shot eye illness in the second image is just replaced in order to not red
The eyes image data of eye, this makes it possible to the blood-shot eye illness in the image shooting under opening flash state.
Optionally, after above-mentioned steps 102, terminal can also first pass through recognition of face and determine camera mirror
Whether head captures face.If terminal recognition to the reference object that camera lens catches be not personage or animal,
E.g. shoot and do not comprise night scene, cuisines of personage etc., now because reference object does not have generation blood-shot eye illness
Condition, i.e. eye, such terminal is also without executing subsequent step 103~106 again.
In sum, the image processing method eliminating blood-shot eye illness that the disclosure provides, by needing to beat in determination
In the case of driving flash lamp, first in the state of not driving flash lamp, shoot and obtain the first of reference object
Eyes image data, then in the state of opening flash lamp, shoot the first image obtaining reference object,
And obtain the second eyes image data in the first image, finally by the second eyes image in the first image
Data is substituted for the first eye view data.It can be seen that the disclosure can solve the problem that in correlation technique compared with Crape ring
The problem occurring when opening flash lamp in border seeing red, can eliminate the blood-shot eye illness in photo, improve shooting effect.
Following for disclosure device embodiment, can be used for executing method of disclosure embodiment.For this public affairs
The details not disclosed in opening apparatus embodiment, refer to method of disclosure embodiment.
Fig. 3 is a kind of image processing apparatus block diagram of the elimination blood-shot eye illness according to an exemplary embodiment.
The image processing apparatus 300 of this elimination blood-shot eye illness can be by software, hardware or both be implemented in combination with
Terminal some or all of, this terminal can be mobile phone, tablet device, personal digital assistant etc..
With reference to Fig. 3, this device 300 includes directive generation module 310, the first taking module 320, second shoots
Module 330, red-eye removal module 340.
Directive generation module 310, is configured to, in the case that determination needs to open flash lamp, generate anti-
Blood-shot eye illness open command;
First taking module 320, is configured to respond to IGBT open command, is not driving flash lamp
Under state, shoot the first eye view data obtaining reference object;
Second taking module 330, is configured to, in the state of opening flash lamp, shoot acquisition shooting right
First image of elephant, and obtain the second eyes image data in the first image;
Red-eye removal module 340, is configured for the second eyes image data in the first image to be substituted for
One eye view data.
Optionally, Fig. 4 is another kind of image procossing eliminating blood-shot eye illness according to an exemplary embodiment
Device block diagram, referring to Fig. 4, on the basis of Fig. 3, device 300 also includes:Command reception module 350
With light monitoring module 360;
Command reception module 350, be configured to receive photography shutter be pressed generation shooting instruction;
Light monitoring module 360, is configured to respond to shoot instruction, by optical sensor monitors environment
Light, and judge whether to need to open flash lamp according to ambient light
Directive generation module 310, is configured to, in the case that determination needs to open flash lamp, generate anti-
Blood-shot eye illness open command.
Optionally, the first taking module 320, is configured to:
The eye locations of reference object in the state of not driving flash lamp, are determined by recognition of face;
Carry out shooting according to eye locations and obtain the first eye view data.
Optionally, the first taking module 320, is configured to:
In the state of not driving flash lamp, shoot the second image obtaining reference object;
Obtain the first eye view data in the second image by the second image is carried out with recognition of face.
Optionally, the second taking module 330, is configured to carry out recognition of face to the first image obtain
Take the second eyes image data.
Optionally, light monitoring module 360, is configured to:
Obtain the brightness of ambient light by optical sensor;
Judge whether the brightness of ambient light is less than default luminance threshold;
When the brightness of ambient light is less than default luminance threshold, determining needs to open flash lamp.
Optionally, described first eye view data and described second eyes image data are that described shooting is right
The pupil image data of elephant.
In sum, the image processing apparatus eliminating blood-shot eye illness that the disclosure provides, by needing to beat in determination
In the case of driving flash lamp, first in the state of not driving flash lamp, shoot and obtain the first of reference object
Eyes image data, then in the state of opening flash lamp, shoot the first image obtaining reference object,
And obtain the second eyes image data in the first image, finally by the second eyes image in the first image
Data is substituted for the first eye view data.It can be seen that the disclosure can solve the problem that in correlation technique compared with Crape ring
The problem occurring when opening flash lamp in border seeing red, can eliminate the blood-shot eye illness in photo, improve shooting effect.
With regard to the device in above-described embodiment, the concrete mode of wherein modules execution operation is having
It has been described in detail in the embodiment closing the method, explanation will be not set forth in detail herein.
Fig. 5 is a kind of block diagram of the terminal according to an exemplary embodiment.For example, terminal 500 can
To be mobile phone, tablet device, personal digital assistant etc..
With reference to Fig. 5, terminal 500 can include following one or more assemblies:Process assembly 502, deposits
Reservoir 504, electric power assembly 506, multimedia groupware 508, audio-frequency assembly 510, input/output
(input/output, referred to as:I/O interface 512), sensor cluster 514, and communication component 516.
The integrated operation of the usual control terminal 500 of process assembly 502, such as with display, call,
The associated operation of data communication, camera operation and record operation.Process assembly 502 can include one
Or multiple processor 520 carrys out execute instruction, to complete the complete of the above-mentioned image processing method eliminating blood-shot eye illness
Portion or part steps.Additionally, process assembly 502 can include one or more modules, it is easy to treatment group
Interaction between part 502 and other assemblies.For example, process assembly 502 can include multi-media module,
To facilitate the interaction between multimedia groupware 508 and process assembly 502.
Memory 504 is configured to store various types of data to support the operation in terminal 500.This
The example of a little data includes the instruction for any application program of operation or method in terminal 500, connection
It is personal data, telephone book data, message, picture, video etc..Memory 504 can be by any types
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM
(Static Random Access Memory, referred to as:SRAM), the read-only storage of electrically erasable
Device (Electrically Erasable Programmable Read-Only Memory, referred to as:EEPROM),
Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read Only Memory, referred to as:
EPROM), programmable read only memory (Programmable Red-Only Memory, referred to as:
PROM), read-only storage (Read-Only Memory, referred to as:ROM), magnetic memory, quick flashing
Memory, disk or CD.
Electric power assembly 506 provides electric power for the various assemblies of terminal 500.Electric power assembly 506 can include
Power-supply management system, one or more power supplys, and other with generate for terminal 500, manage and distribute electricity
The assembly that power is associated.
Multimedia groupware 508 includes one output interface of offer between described terminal 500 and user
Screen.In certain embodiments, screen can include liquid crystal display (Liquid Crystal Display,
Referred to as:LCD) and touch panel (TouchPanel, referred to as:TP).If screen includes touch surface
Plate, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes
One or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch passes
Sensor can not only sensing touch or sliding action border, but also detection and the described behaviour that touches or slide
Make related duration and pressure.In certain embodiments, multimedia groupware 508 include one preposition
Camera and/or post-positioned pick-up head.When terminal 500 is in operator scheme, such as screening-mode or video mode
When, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition shooting
Head and post-positioned pick-up head can be the optical lens system of a fixation or have focal length and optical zoom energy
Power.
Audio-frequency assembly 510 is configured to output and/or input audio signal.For example, audio-frequency assembly 510
Including a microphone (Microphone, referred to as:MIC), when terminal 500 is in operator scheme, such as
When call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.
The audio signal being received can be further stored in memory 504 or via communication component 516
Send.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interface 512 is for providing interface, above-mentioned periphery between process assembly 502 and peripheral interface module
Interface module can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Homepage is pressed
Button, volume button, start button and locking press button.
Sensor cluster 514 includes one or more sensors, for providing various aspects for terminal 500
State estimation.For example, what sensor cluster 514 can detect terminal 500 opens/closed mode,
The relative positioning of assembly, for example described assembly is display and the keypad of terminal 500, sensor cluster
514 can be with position change, user and the terminal 500 of detection terminal 500 or 500 1 assemblies of terminal
Presence or absence of, the temperature change of terminal 500 orientation or acceleration/deceleration and terminal 500 of contact.Pass
Sensor assembly 514 can include proximity transducer, is configured to the inspection when not having any physical contact
Survey the presence of object nearby.Sensor cluster 514 can also include optical sensor, such as complementary metal oxidation
Thing semiconductor (Complementary Metal Oxide Semiconductor, referred to as:CMOS) or electric
Lotus coupling element (Charge-coupled Device, referred to as:CCD) imageing sensor, for becoming
Use as in application.In certain embodiments, this sensor cluster 514 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate wired or wireless way between terminal 500 and other equipment
Communication.Terminal 500 can access the wireless network based on communication standard, such as Wireless Fidelity
(WIreless-Fidelity, referred to as:WiFi), 2G or 3G, or combinations thereof.In an example
Property embodiment in, communication component 516 via broadcast channel receive from external broadcasting management system broadcast
Signal or broadcast related information.In one exemplary embodiment, described communication component 516 also includes closely
Field communication (Near Field Communication, referred to as:NFC) module, to promote junction service.
For example, NFC module can based on RF identification (Radio Frequency Identification, referred to as:
RFID) technology, and Infrared Data Association (Infrared Data Association, referred to as:IrDA) technology,
Ultra broadband (Ultra Wideband, referred to as:UWB) technology, and bluetooth (Bluetooth, referred to as:BT)
Technology and other technologies are realizing.
In the exemplary embodiment, terminal 500 can be by one or more application specific integrated circuits
(Application Specific Integrated Circuit, referred to as:ASIC), digital signal processor
(Ddigital Signal Processor, referred to as:DSP), digital signal processing appts (Digital Signal
Processing Device, referred to as:DSPD), PLD (Programmable Logic
Device, referred to as:PLD), field programmable gate array (Field Programmable Gate Array,
Referred to as:FPGA), controller, microcontroller, microprocessor or other electronic components are realized, and are used for holding
The above-mentioned image processing method eliminating blood-shot eye illness of row.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable storage including instruction
Medium, for example, include the memory 504 instructing, and above-mentioned instruction can be held by the processor 520 of terminal 500
Row is to complete the above-mentioned image processing method eliminating blood-shot eye illness.For example, described non-transitory computer-readable
Storage medium can be ROM, random access memory (Random Access Memory, referred to as:
RAM), read-only optical disc (Compact Disc Read-Only Memory, referred to as:CD-ROM)、
Tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering specification and putting into practice the disclosure, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, this
A little modifications, purposes or adaptations are followed the general principle of the disclosure and are included the disclosure and be not disclosed
Common knowledge in the art or conventional techniques.Description and embodiments are considered only as example
Property, the true scope of the disclosure is pointed out by claim below with spirit.
It should be appreciated that the disclosure is not limited to be described above and illustrated in the accompanying drawings accurate
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim is limiting.
Claims (15)
1. a kind of image processing method eliminating blood-shot eye illness is it is characterised in that include:
In the case that determination needs to open flash lamp, generate IGBT open command;
In response to described IGBT open command, in the state of not driving described flash lamp, shoot to obtain and clap
Take the photograph the first eye view data of object;
In the state of opening described flash lamp, shoot the first image obtaining described reference object, and obtain
Take the second eyes image data in described first image;
The second eyes image data in described first image is substituted for described first eye view data.
2. method according to claim 1 is it is characterised in that described need to open institute in determination
In the case of stating flash lamp, generate IGBT open command and include:
Receive photography shutter be pressed generation shooting instruction;
Shoot instruction in response to described, by optical sensor monitors environment light, and sentenced according to described ambient light
Disconnected the need of opening flash lamp;
In the case that determination needs to open described flash lamp, generate described IGBT open command.
3. method according to claim 1 is not it is characterised in that described driving described flash lamp
In the state of, the first eye view data shooting acquisition reference object includes:
The eye position of described reference object in the state of not driving described flash lamp, is determined by recognition of face
Put;
Carry out shooting according to described eye locations and obtain described first eye view data.
4. method according to claim 1 is not it is characterised in that described driving described flash lamp
In the state of, the first eye view data shooting acquisition reference object includes:
In the state of not driving described flash lamp, shoot the second image obtaining described reference object;
Obtain the described First view in described second image by described second image is carried out with recognition of face
Portion's view data.
5. method according to claim 1 is it is characterised in that described acquisition described first image
In the second eyes image data include:
Obtain described second eyes image data by described first image is carried out with recognition of face.
6. method according to claim 2 is it is characterised in that described monitored by optical sensor
Ambient light, and judge whether to need to open flash lamp according to described ambient light and include:
Obtain the brightness of ambient light by optical sensor;
Judge whether the brightness of described ambient light is less than default luminance threshold;
When the brightness of described ambient light is less than described default luminance threshold, determining needs to open described sudden strain of a muscle
Light lamp.
7. the method according to any one of claim 1-6 is it is characterised in that described first eye figure
As data and pupil image data that described second eyes image data is described reference object.
8. a kind of image processing apparatus eliminating blood-shot eye illness are it is characterised in that include:
Directive generation module, is configured to, in the case that determination needs to open flash lamp, generate IGBT
Open command;
First taking module, is configured to respond to described IGBT open command, is not opening described flash of light
In the state of lamp, shoot the first eye view data obtaining reference object;
Second taking module, is configured to, in the state of opening described flash lamp, shoot and obtain described bat
Take the photograph the first image of object, and obtain the second eyes image data in described first image;
Red-eye removal module, is configured for the second eyes image data in described first image to be substituted for institute
State the first eye view data.
9. device according to claim 8 is it is characterised in that described device also includes:Instruction
Receiver module and light monitoring module;
Described command reception module, be configured to receive photography shutter be pressed generation shooting instruction;
Described light monitoring module, is configured to respond to described shooting and instructs, monitored by optical sensor
Ambient light, and judge whether to need to open flash lamp according to described ambient light;
Described directive generation module, is configured in the case that determination needs to open described flash lamp, raw
Become IGBT open command.
10. device according to claim 8 is it is characterised in that described first taking module, quilt
It is configured to:
The eye position of described reference object in the state of not driving described flash lamp, is determined by recognition of face
Put;
Carry out shooting according to described eye locations and obtain described first eye view data.
11. devices according to claim 8 are it is characterised in that described first taking module, quilt
It is configured to:
In the state of not driving described flash lamp, shoot the second image obtaining described reference object;
Obtain the described First view in described second image by described second image is carried out with recognition of face
Portion's view data.
12. devices according to claim 8 are it is characterised in that described second taking module, quilt
It is configured to pass and described first image is carried out with the recognition of face described second eyes image data of acquisition.
13. devices according to claim 9 are it is characterised in that described light monitoring module, quilt
It is configured to:
Obtain the brightness of ambient light by optical sensor;
Judge whether the brightness of described ambient light is less than default luminance threshold;
When the brightness of described ambient light is less than described default luminance threshold, determining needs to open described sudden strain of a muscle
Light lamp.
14. according to Claim 8 the device described in -13 any one it is characterised in that described first eye
View data and the pupil image data that described second eyes image data is described reference object.
A kind of 15. image processing apparatus eliminating blood-shot eye illness are it is characterised in that include:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
In the case that determination needs to open flash lamp, generate IGBT open command;
In response to described IGBT open command, in the state of not driving described flash lamp, shoot to obtain and clap
Take the photograph the first eye view data of object;
In the state of opening described flash lamp, shoot the first image obtaining described reference object, and obtain
Take the second eyes image data in described first image;
The second eyes image data in described first image is substituted for described first eye view data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610363311.3A CN106412450A (en) | 2016-05-26 | 2016-05-26 | Image processing method and apparatus of red-eye reduction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610363311.3A CN106412450A (en) | 2016-05-26 | 2016-05-26 | Image processing method and apparatus of red-eye reduction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106412450A true CN106412450A (en) | 2017-02-15 |
Family
ID=58005815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610363311.3A Pending CN106412450A (en) | 2016-05-26 | 2016-05-26 | Image processing method and apparatus of red-eye reduction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412450A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1750017A (en) * | 2005-09-29 | 2006-03-22 | 上海交通大学 | Red eye moving method based on human face detection |
CN101018297A (en) * | 2006-02-10 | 2007-08-15 | 富士胶片株式会社 | Digital camera |
CN101169573A (en) * | 2006-10-25 | 2008-04-30 | 索尼株式会社 | Imaging device, imaging device controlling method, and computer program |
CN101213828A (en) * | 2005-04-28 | 2008-07-02 | 惠普开发有限公司 | Method and apparatus for incorporating iris color in red-eye correction |
CN102970482A (en) * | 2012-11-19 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method for automatically starting pinkeye preventing model in photographing and photographing equipment thereof |
CN104867112A (en) * | 2015-03-31 | 2015-08-26 | 小米科技有限责任公司 | Photo processing method and apparatus |
-
2016
- 2016-05-26 CN CN201610363311.3A patent/CN106412450A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101213828A (en) * | 2005-04-28 | 2008-07-02 | 惠普开发有限公司 | Method and apparatus for incorporating iris color in red-eye correction |
CN1750017A (en) * | 2005-09-29 | 2006-03-22 | 上海交通大学 | Red eye moving method based on human face detection |
CN101018297A (en) * | 2006-02-10 | 2007-08-15 | 富士胶片株式会社 | Digital camera |
CN101169573A (en) * | 2006-10-25 | 2008-04-30 | 索尼株式会社 | Imaging device, imaging device controlling method, and computer program |
CN102970482A (en) * | 2012-11-19 | 2013-03-13 | 广东欧珀移动通信有限公司 | Method for automatically starting pinkeye preventing model in photographing and photographing equipment thereof |
CN104867112A (en) * | 2015-03-31 | 2015-08-26 | 小米科技有限责任公司 | Photo processing method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017561A1 (en) | Face recognition method and apparatus, electronic device, and storage medium | |
CN110035141B (en) | Shooting method and equipment | |
JP6328345B2 (en) | Image photographing method and apparatus | |
JP6405470B2 (en) | Movie recording method and apparatus, program, and storage medium | |
WO2021031609A1 (en) | Living body detection method and device, electronic apparatus and storage medium | |
WO2016029641A1 (en) | Photograph acquisition method and apparatus | |
CN106454336B (en) | The method and device and terminal that detection terminal camera is blocked | |
CN105635567A (en) | Shooting method and device | |
CN107122679A (en) | Image processing method and device | |
CN106131416B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
CN104038704A (en) | Backlight portrait scene photographing processing method and device | |
WO2017000491A1 (en) | Iris image acquisition method and apparatus, and iris recognition device | |
US10230891B2 (en) | Method, device and medium of photography prompts | |
CN103914150A (en) | Camera control method and device | |
CN104967788A (en) | Shooting method and shooting device | |
CN106600530B (en) | Picture synthesis method and device | |
CN104460185A (en) | Automatic focusing method and device | |
CN104869314A (en) | Photographing method and device | |
CN104580886A (en) | Photographing control method and device | |
CN104243829A (en) | Self-shooting method and self-shooting device | |
CN105631804A (en) | Image processing method and device | |
CN105516588A (en) | Photographic processing method and device | |
CN104020628A (en) | Flash lamp prompting method and device thereof | |
CN105357449A (en) | Shooting method and device, and image processing method and apparatus | |
US20170244891A1 (en) | Method for automatically capturing photograph, electronic device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |