Open main menu

Gramps β

Changes

Addon:Photo Tagging Gramplet

6,034 bytes added, 22 January
m
See also
[[Image:Photo_Tagging_view.jpg|500px|thumb|right]]{{Third-party plugin}}
== What is [[File:Photo -Tagging -example-51.png|500px|thumb|right|The Gramplet ==window consists of the toolbar, the selection area (center-left) and the list of tagged people (center-right).]]
'''The {{man label|Photo Tagging Gramplet''' }} facilitates tagging people in photographs, i.e. associating regions of images with Gramps persons.
== Features ==
* List of persons tagged in the current photograph
* Adding and modifying regions and associations
* Detecting Supports showing XMP Region Name if there are no regions already defined in Gramps for an image.* Optionally detect faces in photo automatically.[[Addon:Photo_Tagging_Gramplet#Installation_Prerequisites|*]]
== Installation Usage ==
The Photo Tagging gramplet can be installed from within Gramps. Go to Select the {{man menulabel|Edit -> PreferencesMedia}} Category View and click from the Sidebar add the {{man buttonlabel|Check nowPhoto Tagging Gramplet}} button to see a list of plugins which are not installed on your computer. Automatic detection The Gramplet window consists of faces requires :* the following to be installed[[Addon:Photo_Tagging_Gramplet#Toolbar|toolbar]]* the [[Addon:Photo_Tagging_Gramplet#Selection_area|selection area]]* OpenCV, its dependencies the [[Addon:Photo_Tagging_Gramplet#List_of_tagged_people|list of tagged people]] in the image === Selection area === The selection area displays the image and Python bindingshighlights the regions that have been associated with person in the Gramps database. This library should  The mouse wheel can be available used to zoom in common Linux distributions. For example, Debian package python-opencv provides and out of the Python bindings for the libraryimage. It will require the core library packages (libopencv-*)Alternatively, as well as python-numpy package, to be installed. If OpenCV is not found, the automatic detection feature will be unavailable, but you can use the gramplet should otherwise function correctlycorresponding toolbar buttons.
== Usage ==Left click inside of one the regions makes this region active. Right-click causes the context menu to be displayed.
The gramplet window consists To tag a person, select a region of:* the toolbar* image by pressing the left mouse button in one of its corners and dragging the pointer across the selection desired area* . A rectangular frame will mark the list of people tagged in selected region. Use the toolbar to select an existing person or add a new person to be associated with the imageregion.
{{man tip|Drag'n'Drop as an alternative to the Person Selection dialog|The most obvious option for selecting a Person for a tag is the Person Selection Dialog. But you can use [https://wikipedia.org/wiki/Drag_and_drop Drag'n'Drop] as an alternative and more efficient method.<br />Drag a Person from the Clipboard to drop on the selected row in the Gramplet to complete a Tag. Or, detach ([File:toolbar[Gramps_{{man version}}_Wiki_Manual_-_Gramplets#The_split-screen_Sidebar_.gif26_Bottombar|undock]]) the Photo Tagging Gramplet and use the Relationship View to tag multiple members from a Family group. Or use filtering in the People View to select from a subset of the family tree.<br /><br />It is important to select the target row '''''before''''' beginning any drag.}}
To tag modify a personregion, select a first make it active by clicking inside the region of the image by pressing . Move the left mouse button in pointer to one of its the borders or corners and dragging the pointer across of the desired areaselection box. A rectangular frame grabbing handle will mark appear that you can drag to modify the selected area. Use the toolbar to select an existing person or add a new person to be associated with shape of the regionbox.
To modify a change the person associated with the region, press use the left mouse button over one of toolbar buttons or the corners and drag it to its new positioncontext menu.
To associate a region with a different person, click within the region and use the toolbar buttons to select or add a person. In this case, the previous association is discarded.
== To do =Toolbar === The toolbar contains ten buttons that are made active in accordance with the current state of selection.* Good manual [[Image:Photo-Tagging-Toolbar-51.png|The Gramplet toolbar (the exact appearance can depend on the operating system and the version of the GTK library used).]] Use the toolbar to modify the associations of the current image. [[File:Photo-Tagging-Select-icon.gif]] Displays the Gramps 'Select Person' dialog. Once selection is made, the person is tagged in the current box. [[File:Photo-Tagging-New-icon.gif]] Creates a new person and displays the Gramps 'Person' dialog. [[File:Photo-Tagging-Clear-icon.gif]] Removes the tag from the current box. [[File:Photo-Tagging-Remove-icon.gif]] Removes the current box together with the tag. [[File:Photo-Tagging-Edit-icon.gif]] Displays the Gramps 'Person' dialog for the person tagged in the current box. [[File:Photo-Tagging-Zoomin-icon.gif]] Zooms the image in. [[File:Photo-Tagging-Zoomout-icon.gif]] Zooms the image out. [[File:Photo-Tagging-Detect-icon.gif]] Runs the face detection algorithm. (Only if the [[Addon:Photo_Tagging_Gramplet#Installation_Prerequisites|optional prerequisites]] have been installed) [[File:Photo-Tagging-Settings-icon.gif]] Displays the Gramplet [[Addon:Photo_Tagging_Gramplet#Settings|settings]] dialog. [[File:Photo-Tagging-help-icon.png]] Goes to this help page. === List of tagged people === The list contains the people tagged in the current image, as well as the selection boxes that have not yet been associated with a particular person. A thumbnail image of the corresponding region of the image is displayed in every row. By default, the view displays the {{man label|Row Number}}(not labeled), {{man label|Preview}}, {{man label|Person}}, {{man label|Age}}, and {{man label|XMP Region Name}}[https://gramps.discourse.group/t/suggested-update-to-phototagginggramplet-to-support-xmp-face-regions/1209/1] columns for each tagged image. Left-clicking on a row in the list selects the corresponding region in the image. The context menu allows you to {{man label|Set as active}}, {{man label|Select}}, {{man label|Add}}, {{man label|Clear}} or {{man label|Remove}} the image. Double-click on a row with a person opens the Gramps 'Person' dialog for this person. This is equivalent to pressing the 'Edit' button in the Gramplet toolbar. ===Settings===[[File:Photo-Tagging-Settings-Selection-tab-51.png|500px|thumb|right|]]* {{man label|Selection}} tab** {{checkbox|0}} {{man label|Replace existing references to the person being assigned without asking}} (checkbox unchecked by default){{-}}[[File:Photo-Tagging-Settings-Face detection-tab-51.png|500px|thumb|right|]]* {{man label|Face detection}} tab** {{man label|Minimum face width (px):}} (<code>50</code> default) Size in pixels** {{man label|Minimum face width (px):}} (<code>50</code> default) Size in pixels** {{man label|Sensitivity (1 min .. 20 max):}} (<code>50</code> default) Size in pixels*** {{checkbox|0}} {{man label|Detect faces inside existing boxes}} (checkbox unchecked by default) {{-}} == Installation Prerequisites == {{man menu|If the OpenCV is not found, the automatic face detection feature will be unavailable}}, but the Gramplet should otherwise function correctly. Automatic detection of faces requires the following to be installed:* [https://opencv.org/releases/ OpenCV], its dependencies and Python bindings. This library should be available in common Linux distributions. For example, Debian package python-opencv provides the Python bindings for the library. It will require the core library packages (libopencv-*) and the* [https://numpy.org/ python-numpy] package. ==Issues==* {{bug|10913}} Face detection does NOT work in the[Microsoft Windows] AIO bundle(s). As near as I can tell, the required cv2 (OpenCV) and numpy prerequisites would approximately triple the size of the AIO download and installation. So they are not included.  === Feature request ===Some of the ideas to be implemented in future versions of the Gramplet:* Detection of faces across multiple images{{bug|???}}* Integrate with Picasa{{bug|5674#c31715}} ([https://picasa.google.com.au/ Moving on from Picasa - Google has decided to retire Picasa in order to focus on a single photo service in Google Photos]) Initial announcement:* [https://sourceforge.net/p/gramps/mailman/message/27752124/ Face-Detection-Gramplet] - 2011** The Face-Detection-Gramplet [https://github.com/gramps-project/addons-source/tree/master/FaceDetection] was redeveloped into this Gramplet. <!-- Pixbuf has no render_pixmap_and_mask method. ([http://code.opencv.org/issues/2811 No python3 bindings for opencv till opencv version3.0] / ([http://opencv.org/opencv-3-0-alpha.html|For testing OpenCV 3.0 beta(2014-11-11)has python 3 bindings] --> === See also ===* [[Addon:MediaReport|Media Report]] text report addon (a labeled tag region report)
[[Category:Addons]]
[[Category:Plugins]]
[[Category:Developers/General]]
[[Category:Gramplets]]
[[Category:Media]]
4,610
edits