← Back to team overview

phatch-dev team mailing list archive

Red eye removal

 

On Tue, Sep 29, 2009 at 6:53 PM, rohit arora <rohit.arora@xxxxxxx> wrote:
> Hey stani,
> I studied the plugin and the description provided, I could come to the
> following conclusion -
> The plugin first uses the eye classifier of the OpenCV library, the function
> to detect eyes is like this :  :
>
>     CvSeq *eyes = cvHaarDetectObjects(
>         img,            /* the source image, with the
>                            estimated location defined */
>         cascade_e,      /* the eye classifier */
>         storage,        /* memory buffer */
>         1.15, 3, 0,     /* tune for your app */
>         cvSize(25, 15)  /* minimum detection scale */
>     );
>
> Then he is using the Blob library to make blobs of the red color region on
> the eyes. After these blobs are made. Each blob is masked by some preset
> color (gray or blue.).
> What are your views on this?
It looks good as a start. Try it out on some examples so we can see
the results. Maybe from there we can see how to improve it if there
are issues.

> Though, I was not able to find the source code of the plugin.
Ha, google is your friend.

I downloaded kipi from the homepage:
http://sourceforge.net/projects/kipi/files/kipi-plugins/0.7.0/kipi-plugins-0.7.0.tar.bz2/download
It contains a folder 'removeredeyes' which has the source code as far
as I can see.

Also more info about the source code can be found here:
http://extragear.kde.org/apps/kipi/#svn

Is this what you needed?

Best regards,

Stani

PS please do "reply all"!

> Regards.
> On Tue, Sep 29, 2009 at 5:03 PM, Stani <spe.stani.be@xxxxxxxxx> wrote:
>>
>> Hi Rohit,
>> Do you think you can use the digikam code as a base?
>> Best regards,
>> Stani
>>
>> On Fri, Sep 25, 2009 at 11:01 AM, Stani <spe.stani.be@xxxxxxxxx> wrote:
>> > Indeed, we have already colouring algorythm for manual selection. That
>> > is not that hard to do. The challenge is to select the eyes or the
>> > upper part of the face. OpenCV has some examples of face recognition,
>> > so I guess this still remains a good starting point:
>> > http://www.digikam.org/drupal/node/384
>> >
>> > Stani
>> >
>> > On Fri, Sep 25, 2009 at 10:30 AM, rohit arora <rohit.arora@xxxxxxx>
>> > wrote:
>> >> HI Stan,
>> >> Sorry for the delay in the reply, actually I wasn't able to get access
>> >> to
>> >> net.
>> >> I am going through a couple of papers about red-eye removal.Mostly, it
>> >> is
>> >> semi-automatic, that is, the user selects the area around the red-eye
>> >> and
>> >> then the processing is done. But since in phatch it is about processing
>> >> a
>> >> large number of photos without human intervention i.e. fully automatic,
>> >> it
>> >> would take some brainstorming. Give me some time, I'll study about this
>> >> and
>> >> then I'll get back to you.
>> >> Regards.
>> >>
>> >> On Thu, Sep 24, 2009 at 8:50 PM, Stani <spe.stani.be@xxxxxxxxx> wrote:
>> >>>
>> >>> Hi Rohit,
>> >>> How is it going? Does the red eye removal sounds like a challenge to
>> >>> you? You may also propose other actions which are useful for batch
>> >>> image processing.
>> >>> Best regards,
>> >>> Stani
>> >>>
>> >>> On Tue, Sep 22, 2009 at 4:00 PM, Stani <spe.stani.be@xxxxxxxxx> wrote:
>> >>> > Hi,
>> >>> >
>> >>> > We need an automatic red eye removal tool. It should work fully
>> >>> > automatic, so the eyes need to be located without human
>> >>> > intervention.
>> >>> > https://blueprints.launchpad.net/phatch/+spec/red-eye-reduction
>> >>> >
>> >>> > Do you think you can handle that? For inspiration see, Digicams
>> >>> > implementation with opencv:
>> >>> > http://www.digikam.org/drupal/node/384
>> >>> >
>> >>> > Feel free to improve it. As it is open source, you can just start
>> >>> > working from their code but keep license and credits.
>> >>> >
>> >>> > We need it preferably so it can interact with PIL (python image
>> >>> > library) or otherwise as a command line tool. It should run on
>> >>> > linux,
>> >>> > windows and mac.
>> >>> >
>> >>> > Also please become member of phatch-dev subscribe to phatch-dev
>> >>> > mailing
>> >>> > list
>> >>> >
>> >>> > https://launchpad.net/~phatch-dev
>> >>> >
>> >>> > Best regards,
>> >>> >
>> >>> > Stani


-- 
Phatch Photo Batch Processor - http://photobatch.stani.be
SPE Python IDE - http://pythonide.stani.be