gsoc19

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

gsoc19

Igor Antropov
Hello everyone,

My name is Igor Antropov and I am first-year master in ITMO university.
I know, that I am late for this, but project with face recognition sounds 
very interesting to me. I have experience with OpenCV and CNN (mostly with Tensorflow)
and I have been working with Qt in a company for last 1.5 years.

I have already built and installed digiKam from development/dplugins branch.
Could you give me some tasks to proceed?

Sincerely,
Igor Antropov
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4
Hi Igor,

You are late. For the faces recognition project we have alreay a good candidate.

I propose to work on another subject. There is one about the faces workflow for ex.

Best

Gilles Caulier


Le lun. 1 avr. 2019 à 09:01, Igor Antropov <[hidden email]> a écrit :
Hello everyone,

My name is Igor Antropov and I am first-year master in ITMO university.
I know, that I am late for this, but project with face recognition sounds 
very interesting to me. I have experience with OpenCV and CNN (mostly with Tensorflow)
and I have been working with Qt in a company for last 1.5 years.

I have already built and installed digiKam from development/dplugins branch.
Could you give me some tasks to proceed?

Sincerely,
Igor Antropov
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Igor Antropov
That is ok. Project "Faces Management workflow improvements" is interesting too.
Should I start by fixing something from bug list?

Sincerely,
Igor Antropov


> 1 апр. 2019 г., в 11:15, Gilles Caulier <[hidden email]> написал(а):
>
> Hi Igor,
>
> You are late. For the faces recognition project we have alreay a good candidate.
>
> I propose to work on another subject. There is one about the faces workflow for ex.
>
> Best
>
> Gilles Caulier
>

Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4
yes, 

Please use git/master now. We merge dplugins branches few weeks ago.

For the bugs to fix, i tag entries with "junior-jobs"

Why not to work on this entry :


It's about to write a small plugin to setup a selected image from digiKam as desktop background.

Technical details provided by Plasma team can be found here :


Typically, this kind of command line must do the job :

dbus-send --session --dest=org.kde.desktop.Background.xml --type=method_call / Background.xml org.kde.Background.xml.evaluateScript 'string: var Desktops = desktops(); for (i=0;i<Desktops.length;i++) { d = Desktops[i]; d.wallpaperPlugin = "org.kde.image"; d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); d.writeConfig("Image", "{image address}"); }'

Best

Gilles Caulier

Le lun. 1 avr. 2019 à 11:03, Igor Antropov <[hidden email]> a écrit :
That is ok. Project "Faces Management workflow improvements" is interesting too.
Should I start by fixing something from bug list?

Sincerely,
Igor Antropov


> 1 апр. 2019 г., в 11:15, Gilles Caulier <[hidden email]> написал(а):
>
> Hi Igor,
>
> You are late. For the faces recognition project we have alreay a good candidate.
>
> I propose to work on another subject. There is one about the faces workflow for ex.
>
> Best
>
> Gilles Caulier
>

Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Igor Antropov
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?
What should I do next?

Sincerely,
Igor Antropov 


1 апр. 2019 г., в 12:17, Gilles Caulier <[hidden email]> написал(а):

yes, 

Please use git/master now. We merge dplugins branches few weeks ago.

For the bugs to fix, i tag entries with "junior-jobs"

Why not to work on this entry :


It's about to write a small plugin to setup a selected image from digiKam as desktop background.

Technical details provided by Plasma team can be found here :


Typically, this kind of command line must do the job :

dbus-send --session --dest=org.kde.desktop.Background.xml --type=method_call / Background.xml org.kde.Background.xml.evaluateScript 'string: var Desktops = desktops(); for (i=0;i<Desktops.length;i++) { d = Desktops[i]; d.wallpaperPlugin = "org.kde.image"; d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); d.writeConfig("Image", "{image address}"); }'

Best

Gilles Caulier

Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4


Le mar. 2 avr. 2019 à 22:58, Igor Antropov <[hidden email]> a écrit :
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.

I review your patch... please wait...
 
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?

I will take a look...

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4


Le mar. 2 avr. 2019 à 23:14, Gilles Caulier <[hidden email]> a écrit :


Le mar. 2 avr. 2019 à 22:58, Igor Antropov <[hidden email]> a écrit :
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.

I review your patch... please wait...
 
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?


It's not yet possible to assign easily a plugin entry to context menu. 

In fact, yes, it a little bit possible, as it's done with album context menu and import/export plugin actions.

But we cannot do it for item context menu, else gui will be bloat.

Also, i think than action must be moved from Tools to Items main menu.

Did you try to setup the desktop wall paper with Gnome, LXDE, or another desktop under Linux through Dbus ?

Best

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Igor Antropov
I tried with Gnome, but have no luck so far. 
Seems like it’s easy to change wallpaper via gsettings set command, but i can’t find any docs about gnome dbus api.

Sincerely,
Igor Antropov

3 апр. 2019 г., в 0:35, Gilles Caulier <[hidden email]> написал(а):



Le mar. 2 avr. 2019 à 23:14, Gilles Caulier <[hidden email]> a écrit :


Le mar. 2 avr. 2019 à 22:58, Igor Antropov <[hidden email]> a écrit :
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.

I review your patch... please wait...
 
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?


It's not yet possible to assign easily a plugin entry to context menu. 

In fact, yes, it a little bit possible, as it's done with album context menu and import/export plugin actions.

But we cannot do it for item context menu, else gui will be bloat.

Also, i think than action must be moved from Tools to Items main menu.

Did you try to setup the desktop wall paper with Gnome, LXDE, or another desktop under Linux through Dbus ?

Best

Gilles Caulier

Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4

Le mer. 3 avr. 2019 à 18:06, Igor Antropov <[hidden email]> a écrit :
I tried with Gnome, but have no luck so far. 
Seems like it’s easy to change wallpaper via gsettings set command, but i can’t find any docs about gnome dbus api.

Sincerely,
Igor Antropov

3 апр. 2019 г., в 0:35, Gilles Caulier <[hidden email]> написал(а):



Le mar. 2 avr. 2019 à 23:14, Gilles Caulier <[hidden email]> a écrit :


Le mar. 2 avr. 2019 à 22:58, Igor Antropov <[hidden email]> a écrit :
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.

I review your patch... please wait...
 
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?


It's not yet possible to assign easily a plugin entry to context menu. 

In fact, yes, it a little bit possible, as it's done with album context menu and import/export plugin actions.

But we cannot do it for item context menu, else gui will be bloat.

Also, i think than action must be moved from Tools to Items main menu.

Did you try to setup the desktop wall paper with Gnome, LXDE, or another desktop under Linux through Dbus ?

Best

Gilles Caulier

Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Igor Antropov
I just tried to make it with QDBus. I queried all dbus methods, but there wasn’t any for wallpaper.

Are you talking about X11 way or about gconf?

Gconf is obsolete, but it is possible to make it with GLib.
«set org.gnome.desktop.background picture-uri file:///path/to/file.jpg» as args for example.

At the same time, I think, it is possible to change background with X11 everywhere. But it can work with X11 Pixmap only.

Which way is better?

Sincerely,
Igor Antropov

3 апр. 2019 г., в 23:04, Gilles Caulier <[hidden email]> написал(а):


Le mer. 3 avr. 2019 à 18:06, Igor Antropov <[hidden email]> a écrit :
I tried with Gnome, but have no luck so far. 
Seems like it’s easy to change wallpaper via gsettings set command, but i can’t find any docs about gnome dbus api.

Sincerely,
Igor Antropov

3 апр. 2019 г., в 0:35, Gilles Caulier <[hidden email]> написал(а):



Le mar. 2 avr. 2019 à 23:14, Gilles Caulier <[hidden email]> a écrit :


Le mar. 2 avr. 2019 à 22:58, Igor Antropov <[hidden email]> a écrit :
Hello,
I made a simple plugin to export image as wallpaper. It is located in Tools->Export as wallpaper.

I review your patch... please wait...
 
I thought about putting that in context menu. Is there a way to input actions into context menu from DPlugins?


It's not yet possible to assign easily a plugin entry to context menu. 

In fact, yes, it a little bit possible, as it's done with album context menu and import/export plugin actions.

But we cannot do it for item context menu, else gui will be bloat.

Also, i think than action must be moved from Tools to Items main menu.

Did you try to setup the desktop wall paper with Gnome, LXDE, or another desktop under Linux through Dbus ?

Best

Gilles Caulier


Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4


Le jeu. 4 avr. 2019 à 00:14, Igor Antropov <[hidden email]> a écrit :
I just tried to make it with QDBus. I queried all dbus methods, but there wasn’t any for wallpaper.

Are you talking about X11 way or about gconf?

Gconf is obsolete, but it is possible to make it with GLib.
«set org.gnome.desktop.background picture-uri file:///path/to/file.jpg» as args for example.

If we can set Gnome wallpaper without ot be relevant of any GTk libraries, it will be safe so far. Using dbus is the right way. 

At the same time, I think, it is possible to change background with X11 everywhere. But it can work with X11 Pixmap only.


This can be a solution for all other linux desktop which do not support dbus interface.
 
For info, this is the GThumb wallapaper tool code :


As i can see, GThumb is able to set wallpaper properties as centered, tiled, adapted, etc. This can be a plus for the digiKam plugin. 

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Gilles Caulier-4
Igor, 

I found also 2 sample of code to set wallpaper under Windows and MacOS :


For Windows, we cross compile with MXE (based on Mingw)
For MacOS, we use Macports.

For both non Linux, i'm able to test on my computers.

Gilles Caulier

Le jeu. 4 avr. 2019 à 04:52, Gilles Caulier <[hidden email]> a écrit :


Le jeu. 4 avr. 2019 à 00:14, Igor Antropov <[hidden email]> a écrit :
I just tried to make it with QDBus. I queried all dbus methods, but there wasn’t any for wallpaper.

Are you talking about X11 way or about gconf?

Gconf is obsolete, but it is possible to make it with GLib.
«set org.gnome.desktop.background picture-uri file:///path/to/file.jpg» as args for example.

If we can set Gnome wallpaper without ot be relevant of any GTk libraries, it will be safe so far. Using dbus is the right way. 

At the same time, I think, it is possible to change background with X11 everywhere. But it can work with X11 Pixmap only.


This can be a solution for all other linux desktop which do not support dbus interface.
 
For info, this is the GThumb wallapaper tool code :


As i can see, GThumb is able to set wallpaper properties as centered, tiled, adapted, etc. This can be a plus for the digiKam plugin. 

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: gsoc19

Igor Antropov
Thank you for the examples.

I have tested windows version with test app. It works with MSVC. 
My mingw thinks, that I am on windows server 2003 and sets corresponding NTDDI_VERSION.
shobjidl don't work with that NTDDI_VERSION.
I think, this needs testing with digikam.

I have mac, but dont have any experience with it, so it can take some time.

4 апр. 2019 г., в 5:55, Gilles Caulier <[hidden email]> написал(а):

Igor, 

I found also 2 sample of code to set wallpaper under Windows and MacOS :


For Windows, we cross compile with MXE (based on Mingw)
For MacOS, we use Macports.

For both non Linux, i'm able to test on my computers.

Gilles Caulier