Re: [Shotwell] My post on face recognition in shotwell

2018-10-11 Thread Jens Georg




The only advice I could give is, if you are going to compile OpenCV
from https://github.com/opencv/opencv after clone the repository


Umpf, that is not something I am going to do. It seems the dnn module 
is

not compiled for Debian or Ubuntu.


To my information, this is because of the old libprotobuf shipped in 
Debian.


But:

https://gitlab.gnome.org/GNOME/shotwell/tree/wip/phako/enhanced-faces

- Get that branch
- run flatpak-builder --install build-dir 
flatpak/org.gnome.Shotwell.Faces1.json - this will also download the 
required neural network data
- Configure shotwell itself with -Dface-detection=true 
-Dface-detection-helper=false


At least that's the plan. There are still some minor issues due to 
sandboxing of the DBus daemon.

___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-09-15 Thread Narendra Acharya via shotwell-list
 I pushed a change to add ifdef protection around the dnn 
code.https://gitlab.gnome.org/nma83/shotwell/commit/41da9cc11c4344a3ac317013fd4450d1df1673fa

On Wednesday, 22 August, 2018, 12:42:31 AM IST, Jens Georg 
 wrote:  
 
 
> > Any idea why debian does not include the dnn module in the opencv
> > package?
> 
> Not really. I am downloading the build infra for the Debian opencv
> and
> see what I can do. It seems that the opencv-contrib package only
> contains the shared libs, but there is no development package for the
> respective header files.
> 
> I will see what is possible.

I wanted to contact the debian maintainer/uloader of the OpenCV
package. it was disabled in debian git without any reason given.

You can use the flatpak, it has dnn enabled, but it currently doesn't
find the helper, I'm still looking into that.


___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list
  ___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Narendra Acharya via shotwell-list
Thanks for the feedback Jens. I will push the change in a day or two.   On 
Wednesday, 22 August, 2018, 2:14:34 AM IST, Jens Georg  wrote: 
 
 
 On Tue, 2018-08-21 at 21:12 +0200, Jens Georg wrote:
> > > Any idea why debian does not include the dnn module in the opencv
> > > package?
> > 
> > Not really. I am downloading the build infra for the Debian opencv
> > and
> > see what I can do. It seems that the opencv-contrib package only
> > contains the shared libs, but there is no development package for
> > the
> > respective header files.
> > 
> > I will see what is possible.
> 
> I wanted to contact the debian maintainer/uloader of the OpenCV
> package. it was disabled in debian git without any reason given.
> 
> You can use the flatpak, it has dnn enabled, but it currently doesn't
> find the helper, I'm still looking into that.

Narendra, the binary is owning the "wrong" name pattern for the
flatpak, it should own "org.gnome.Shotwell.Faces" - or even better
"org.gnome.Shotwell.Faces1" otherwise the sandbox will not allow it
without further configuration


___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list
  ___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Jens Georg
On Tue, 2018-08-21 at 21:12 +0200, Jens Georg wrote:
> > > Any idea why debian does not include the dnn module in the opencv
> > > package?
> > 
> > Not really. I am downloading the build infra for the Debian opencv
> > and
> > see what I can do. It seems that the opencv-contrib package only
> > contains the shared libs, but there is no development package for
> > the
> > respective header files.
> > 
> > I will see what is possible.
> 
> I wanted to contact the debian maintainer/uloader of the OpenCV
> package. it was disabled in debian git without any reason given.
> 
> You can use the flatpak, it has dnn enabled, but it currently doesn't
> find the helper, I'm still looking into that.

Narendra, the binary is owning the "wrong" name pattern for the
flatpak, it should own "org.gnome.Shotwell.Faces" - or even better
"org.gnome.Shotwell.Faces1" otherwise the sandbox will not allow it
without further configuration


___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Jens Georg


> > Any idea why debian does not include the dnn module in the opencv
> > package?
> 
> Not really. I am downloading the build infra for the Debian opencv
> and
> see what I can do. It seems that the opencv-contrib package only
> contains the shared libs, but there is no development package for the
> respective header files.
> 
> I will see what is possible.

I wanted to contact the debian maintainer/uloader of the OpenCV
package. it was disabled in debian git without any reason given.

You can use the flatpak, it has dnn enabled, but it currently doesn't
find the helper, I'm still looking into that.


___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Narendra Acharya via shotwell-list
 Looks like the dnn module is shipped in OpenCV3 but current dependency is 
defined as >= 2.3.0. We could update the version to be > 3.0. Any idea why 
debian does not include the dnn module in the opencv package?My archlinux 
install does have it as part of the standard opencv 
install.https://www.archlinux.org/packages/extra/x86_64/opencv/On Tuesday, 
21 August, 2018, 6:38:48 PM IST, Norbert Preining  wrote:  
 
 Hi Narendra,

> OpenCV uses the folder opencv2 to include the object oriented
> definitions even in the version 3.0 . Apparently the dnn.hpp should be
> in the package libopencv-contrib
> (https://packages.debian.org/buster/libopencv-contrib3.2) , but I'm
> using right now Ubuntu 16.04 and it doesn't ship the dnn.hpp file.

Indeed, also Debian does not ship it. One can check here for existence
of this file in Debian/unstable:
    
https://packages.debian.org/search?searchon=contents=dnn.hpp=exactfilename=unstable=any

> The only advice I could give is, if you are going to compile OpenCV
> from https://github.com/opencv/opencv after clone the repository

Umpf, that is not something I am going to do. It seems the dnn module is
not compiled for Debian or Ubuntu.

This is a pain.

Thanks for checking.

Norbert

--
PREINING Norbert                              http://www.preining.info
Accelia Inc.    +    JAIST    +    TeX Live    +    Debian Developer
GPG: 0x860CDC13  fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
  ___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Norbert Preining via shotwell-list
Hi Narendra,

> OpenCV uses the folder opencv2 to include the object oriented
> definitions even in the version 3.0 . Apparently the dnn.hpp should be
> in the package libopencv-contrib
> (https://packages.debian.org/buster/libopencv-contrib3.2) , but I'm
> using right now Ubuntu 16.04 and it doesn't ship the dnn.hpp file.

Indeed, also Debian does not ship it. One can check here for existence
of this file in Debian/unstable:

https://packages.debian.org/search?searchon=contents=dnn.hpp=exactfilename=unstable=any

> The only advice I could give is, if you are going to compile OpenCV
> from https://github.com/opencv/opencv after clone the repository

Umpf, that is not something I am going to do. It seems the dnn module is
not compiled for Debian or Ubuntu.

This is a pain.

Thanks for checking.

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. +JAIST +TeX Live +Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list


Re: [Shotwell] My post on face recognition in shotwell

2018-08-21 Thread Norbert Preining via shotwell-list
Hi Narendra,

> I have written about my recent changes to shotwell face detection code and 
> adding face recognition to it.Face detection and recognition in shotwell · 
> Narendra Acharya

I tried to build your branch, but it somehow not really is easily
buildable.

What are the actual requirements? On Debian I have libopencv-dev
installed, but that does not suffice, because
../facedetect/shotwell-facedetect.hpp:14:10: fatal error: 
opencv2/dnn.hpp: No such file or directory
 #include 
  ^
searching all Debian packages I couldn't find it.

My version of libopencv-dev is 3.2.0+dfsg-4.1+b1, does that mean I need
a version 2 of opencv? I guess opencv 2.4.13 as released back in
February?

Is there any chance of porting it to opencv 3?

Thanks

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. +JAIST +TeX Live +Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
___
shotwell-list mailing list
shotwell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/shotwell-list