Command line tool for extracting classifications from images using Apple's Vision framework.
This tool requires Mac OS 10.15 or higher.
Documentation is incomplete.
All of the images in these examples are included in the fixtures directory.
$> swift build
$> ./.build/debug/image-classify fixtures/plane.jpg | jq
{
"searchTerms": {
"aircraft": 0.9907324314117432,
"stretcher": 0.001220703125,
"vehicle": 0.9907324314117432,
"airplane": 0.99072265625,
"drone_machine": 0.179443359375,
"machine": 0.9907324314117432
},
"categories": {
"vehicle": 0.9907324314117432,
"aircraft": 0.9907324314117432,
"airplane": 0.99072265625,
"machine": 0.9907324314117432
}
}