https://bugs.kde.org/show_bug.cgi?id=499170

Michael Miller <michael_mil...@msn.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael_mil...@msn.com

--- Comment #1 from Michael Miller <michael_mil...@msn.com> ---
(In reply to fuerallesg from comment #0)
> SUMMARY
> While going through the DebugView for another issue, I noticed the following
> aspects. It may be necessary for the internal workflow, but it seems to me
> that the face recognition workflow could have a potential for optimization
> the runtime. 
> 
> 1) It seems that for new images, the image is read in, then the image is
> read in again for face search/recognition, and then finally read in again to
> create thumbnails of the recognised image. It seems to me that this leads to
> unnecessary reads and that the image could be held in memory so that the
> three options can be run in turn when new images are to be searched for
> faces. Otherwise, you could at least combine recognition and thumbnail
> creation.
> 
> 2) When assigning names to identified faces, the image seems to be reloaded
> completely, even if nothing is written to the metadata or sidecars are used.
> This loading process could be omitted if necessary.
> 
> 3) Thumbnail creation should also be categorised as an active process, so
> you can see that digiKam is doing something in the background.
> 
> 4) When assigning keywords, processes of varying complexity seem to
> interfere with each other. However, I need to delve a little deeper into the
> matter to be able to make a meaningful suggestion. Commands to the SQLite
> database with a duration of 10-20 (without unit, I assume it is seconds, as
> the milliseconds are mentioned as ms) seem to be far too long.
> 
> ADDITIONAL INFORMATION

Hi fuerallesg,
The face pipeline reads the image only once and does face detection,
recognition, thumbnail creation all with the same image from memory.  We have
seen there are occasions where the face thumbnail process does recreate the
thumbnail, and in doing so, re-reads the image.  We're looking into it.

When doing a recognition-only scan, the main image isn't read into memory. 
Only the unknown thumbnails are re-read from the thumbnail DB.

Can you share your logs or traces so we can look at this more?

Cheers,
Mike

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to