https://bugs.kde.org/show_bug.cgi?id=376681
Bug ID: 376681 Summary: Region Coordinates Are Sometimes inf / Large Numbers Product: digikam Version: 5.5.0 Platform: MS Windows OS: MS Windows Status: UNCONFIRMED Severity: normal Priority: NOR Component: Preview Assignee: [hidden email] Reporter: [hidden email] Target Milestone: --- Created attachment 104115 --> https://bugs.kde.org/attachment.cgi?id=104115&action=edit Screenshot About 30% of the time, after I draw the first face box (Jane) on an image, the metadata region coordinates written to the image are infinity. Then when I draw a second box (Jim), Jane 1 is corrected but Jane is then repeated twice. Jane 2 and 3 coordinates are massive negative numbers. Verification by another tool confirms it the metadata as inf. See attached screenshots. -- You are receiving this mail because: You are the assignee for the bug. |
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #1 from [hidden email] --- Created attachment 104116 --> https://bugs.kde.org/attachment.cgi?id=104116&action=edit After Box 2 is drawn. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #104115|Screenshot |After Box 1 is drawn description| | -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #2 from [hidden email] --- If I clear the faces and try again, everything is normal. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] Component|Preview |Faces-Management -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #3 from [hidden email] --- This happens with 5.4.0 too. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
Yingjie Liu <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #4 from Yingjie Liu <[hidden email]> --- Created attachment 104531 --> https://bugs.kde.org/attachment.cgi?id=104531&action=edit The metadata did not show Hi, Could you please tell me how to open the metadata region in the last two attachment which shows the parameters about the region? After draw a face region, I clicked metadata action in the right-side bar, but I did not find the parameters about name and other parameters, show in this attachment. (Tracking the code is a good way, I tracked it but the code is a bit huge......) -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #5 from [hidden email] --- On top of metadata viewer, you have a button to setup tags filters. turn on all. Face tags are typically on XMP view. Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #6 from [hidden email] --- FaceTags are managed in database here : https://cgit.kde.org/digikam.git/tree/libs/database/tags and stored in metadata by this method : https://cgit.kde.org/digikam.git/tree/libs/dmetadata/dmetadata.cpp#n1659 Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #7 from [hidden email] --- The problem was first reported on the 15th Feb pre-release version of 5.5.0 and then confirmed in 5.4.0. I was using the 11-March build of 5.5.0 pre-release yesterday and the problem did not happen. Maybe something was fixed by accident in this area in the March build. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #8 from Yingjie Liu <[hidden email]> --- Hi Gilles, I set the filter as you said, click the tags filters, and turn on all in the Views and Behavior, as shown in the Attachment "filter1" and "filter2". Then I installed mysql for the db reading and writing. But I met three problems. The first is some pictures have XMP metadata (see attachment "has metadata", I closed some filters in it, just left the useful ones), and some pictures have no XMP and other metadata (see attachment "has no metadata"). The second problem is that the XMP metadata about face tags is unavaliable, as shown in attachment "has metadata". The third problem is that I installed 5.5.0 in windows, the "Last Keyword XMP" will show the face tag's name after I draw the box and click "Album->Write Metadata to Images", as shown in attachment "windows5.5.0 version". However, in ubuntu, I compiled the latest code and installed the software, draw the box, click "Album->Write Metadata to Images", the face tag's name still not shows in "Last Keyword XMP" view, the attachment "has metadata" shows the result. I read the method storing the metadata that you posted two days ago: https://cgit.kde.org/digikam.git/tree/libs/dmetadata/dmetadata.cpp#n1659 This method add the metadata of "Area","Regions" and "Region List" to XMP view. I found that the method is invoked by: https://cgit.kde.org/digikam.git/tree/libs/fileactionmanager/metadatahub.cpp#n271 Then I debuged the program, and I found that the operations like create/modify face tags, write/read metadata from database or write/read tags from database, they all did not invoke the write method, therefore the setImageFacesMap can't be executed, so the XMP view has no data. I don't know whether I missed some configurations of the software, if so, please indicate it for me. If there are some mistakes in my operations or I did not see the right code, please indicate it too. Thanks. Yingjie Liu -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #9 from Yingjie Liu <[hidden email]> --- Created attachment 104577 --> https://bugs.kde.org/attachment.cgi?id=104577&action=edit filter1 -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #10 from Yingjie Liu <[hidden email]> --- Created attachment 104578 --> https://bugs.kde.org/attachment.cgi?id=104578&action=edit filter2 -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #11 from Yingjie Liu <[hidden email]> --- Created attachment 104579 --> https://bugs.kde.org/attachment.cgi?id=104579&action=edit has metadata -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #12 from Yingjie Liu <[hidden email]> --- Created attachment 104580 --> https://bugs.kde.org/attachment.cgi?id=104580&action=edit has no metadata -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #13 from Yingjie Liu <[hidden email]> --- Created attachment 104581 --> https://bugs.kde.org/attachment.cgi?id=104581&action=edit windows5.5.0 version -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #14 from Maik Qualmann <[hidden email]> --- Git commit 76060c16c14dabfb4aa7a5ac956c5292aff810bf by Maik Qualmann. Committed on 15/03/2017 at 19:55. Pushed by mqualmann into branch 'master'. fix MetadataSynchronizer and non working lazy sync in digiKam-5.5.0 M +1 -1 utilities/maintenance/maintenancedata.cpp https://commits.kde.org/digikam/76060c16c14dabfb4aa7a5ac956c5292aff810bf -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #15 from [hidden email] --- Lui, Under Linux, with last Maik patch applied to git master, this fix your problem to write metadata in image after to apply face tag ? Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #16 from Yingjie Liu <[hidden email]> --- Hi Gilles, I tested Maik's patch under Ubuntu 16.04(x64). It solves the problem of writing metadata in image after applying face tag. The metadata shows in the right sidebar after I clicked "Album->Write Metadata to Images". These days, I am looking at the "Unavailable" problem: The parameters in "Metadata Working Group Regions" such as "Area", "Name", "Region List" shows "Unavailable" even after drawing a tag box. I think, metadata part in digikam is a bigger part than the last two bugs(372342 and 351866). So far, I have read the code of how to show the metadata in XMP view, includes the class MetadataWidget, MetadataListView which showing the metadata, class SetUp, SetupMetadata, and MetadataPanel which is created after user click the button to setup tags filters, and these classes decide which item of metadata to show in the MetadataWidget. Next step, I think I have to look at the code which set the concrete parameters of "Area", "Name" and "Region List", and how they worked. I think this will find the reason why they shows "Unavailable". -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=376681
--- Comment #17 from [hidden email] --- Exiv2 library is used in background to handle XMP tags. Exiv2 has a CLI tool to show metadata from the console. "exiv2 -px file.jpg" show any XMP tags ? Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
Free forum by Nabble | Edit this page |