Skip to content

[pytx] New "Classifier" Core Interface #1864

@Dcallies

Description

@Dcallies

Ref: https://github.com/facebook/ThreatExchange/blob/main/python-threatexchange/ROADMAP.md

pytx was built with hashing and matching first, but many companies need help adopting services that don't share embeddings directly, such as Google's content safety API, or Amazon Rekognition, or even a self-trained image or video classifier.

We can support these with a new core interface alonside SignalType, ContentType, and ExchangeAPI: Classifier / ClassifierType (to your preference).

The entirety of the core pytx offering, taking an image -> hashing it -> comparing it to known indexed hashes -> returning "Match" or "No Match" is actually itself a type of classifier, so the first implementation might just be bunding that service. Considering use the the matching core interface from HMA as inspiration.

Interfaces tend to be the hardest thing to get right, and tend to be hard to change, so this will involve a lot of discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    python-threatexchangeItems related to the threatexchange python tool / library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions