facebook / ThreatExchange

Trust & Safety tools for working together to fight digital harms.
https://developers.facebook.com/docs/threat-exchange
Other
1.17k stars 316 forks source link

[hma] Implement Photo <=> Photo comparison on the match debug screen #1633

Open Dcallies opened 3 days ago

Dcallies commented 3 days ago

We have a partial Photo match debugging screen, living at https://github.com/facebook/ThreatExchange/blob/main/hasher-matcher-actioner/src/OpenMediaMatch/templates/pages/match_dbg.html.j2 and /ui/match.

Let's fill out the rest of the functionality.

  1. Minimum Viable Product:
    1. You can upload two photos
    2. HMA will generate signatures for all configured signal types that are applicable
    3. It will list distances for all the signal types it could generate signals for
    4. It will display which of those signal types are within their default match distance
  2. Compare against banked content
    1. When uploading 1 photo
    2. HMA will generate signatures for all configured signal types that are applicable
    3. It will display a limited number of matches grouped by bank (e.g. 9) as well as the method matched and the distance
    4. A user can compare different distances for different matches
  3. Stretch - include metadata
    1. For banked content, if that content is also from an exchange, display the exchange metadata (exchange type, net opinion, potentially the raw json)

Image