GUI tool for human validation of AI-powered animal re-identification
pip install matchypatchy==0.2.1 Copy PIP instructions
MatchyPatchy is an open-source GUI tool for human validation of AI-powered animal re-identification. It was developed by the San Diego Zoo Wildlife Alliance Conservation Technology Lab. Author: Kyra Swanson, (c) 2025
Matchypatchy is a stand-alone executable built in Python. Download it here. Github Repository
In order to calculate potential matches, MatchyPatchy requires an animal object detector such as MegaDetector and an embedding extractor such as MiewID. Both models and more can be obtained from the SDZWA server by selecting 'Download Models' and checking the box associated with which models you want to download.
In order to add media to the database, you must first specify a Survey using the dropdown of available surveys. To add a new survey,
Images can be imported via spreadsheet or by manually selecting a directory of images.
Run images through a sequence of AI models to obtain predicted matches. Note: Models must be accessible in MatchyPatchy's "Models" folder - see Configuration for more.
After processing, this pageview allows you to review the imported media for errors, make changes, delete images, etc. It can be accessed at any time after image import.
Double-clicking on a cell will allow you to edit it. Double-clicking on a single row will pull up a screen to edit multiple fields for an image. Selecting one or more row (either by clicking on the row number or checking the select box) will enable the ability to mass edit particular fields, duplicate entries, or delete entries.
The "Show" Option allows you view the full images or detected ROIS. The "Save" Option saves all edits to the database. The "Undo" Option undoes the last edit made.
Filters Images can be filtered by Region, Survey, Station, Species, and Individual. You can also choose to show only "Unidentified" ROIs. You can also display all images marked as "Favorite"
After processing, potential matches can be validated at this pageview. The left side contains a Query image and the right side contains potential Matches. If "Calculate Sequence" was selected during the processing stage, the entire Sequence will be viewable on the Query side. The pageview will display the images and associated metadata.
View Options Adjustments can be made to the Maximum Number of Matches shown for each image (within a sequence) and to the maximum distance threshold between the two images to qualify as a match. The Cosine or L2 distance of the Match from the Query is displayed above the match image. Select which distance metric to use in the dropdown. You must select "Recalculate Matches" if changes are made to either option in order to display those changes. After matches are validated, you can "Query by Individual" to do quality control and ensure all images associated with an individual are indeed valid. Images can be Filtered by Region, Survey, or Station to narrow the available matches shown. If "Viewpoint" was calculated at the processing step, you can filter both the Query and the Match images by Viewpoint. The "View Data" Button at the bottom brings you to the Media Validation pageview.
Image Options You can adjust the Brightness, Contrast and Sharpness of each image, as well as Zoom using the mouse scroll wheel. The "Reset" button returns the image to its original form. The "Edit Image" option allows you to make changes to the metadata. The "Open Image" option opens the image in your default image viewer. The "♥" option marks the image with the "Favorite" tag.
To confirm a match between the Query and the Match image, select the "Match" button in the middle, or press the 'M' or 'Space Key'. Pressing Match again will undo the match, asking you to confirm first. You can navigate between Query Sequences and Matches by using the " >" buttons, or by using the arrow keys. You can also toggle the Viewpoint by pressing 'V'.
The database can be exported as a .csv file. Simply select '5. Export' and specify the file name and location.
Survey, Station, and Species tables can be managed independently.
Models currently available and compatible with MatchyPatchy: Detector Models:
Database files can be shared across multiple users of MatchyPatchy. To link to a new .db file,
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.




