Recognizes
This CLI allows you to upload files to the ML Pipeline and query results.
First Steps
You first need to make sure that you have the requirements needed to install the CLI as well as install the CLI itself.
Make sure that you have python and pip installed. It is recommended that you use a virtual environment although not
a requirement.
Then to install the CLI run the following command in your shell:
pip install recognize
Usage
After installing the CLI run the following command:
recognize --help
This should show you a list of all the available commands with a short description of what they do. You can append
the --help option to each command for more details about the command. For example:
recognize upload --help
This should give you a list of all the subcommands for this command, the options, and the order in which to write them.
Examples
To upload a directory of videos, accepted file types are mp4 and mov:
recognize upload directory path/to/directory/of/videos --tag some_custom_tag
The tag is useful for if you want to organise the uploads. You can search for labels associated with the tag and you can upload files using this tag at a later stage, and they will be automatically grouped.
After uploading videos it will take a few minutes to process them all. After which you can start querying.
recognize search keywords --output results.csv some interesting words
The --output argument is optional, if ommited you will be asked what to name the output interactively instead.
You can also search for specific entry types returned by AWS Rekognition. For example to which resources might have potentially harmful, violent, or offensive content run the following command:
recognize search entries --output results.csv moderation
Finally, to search for a particular face run the following command, accepted file types are png and jpeg:
recognize search faces --output results.csv file/path/to/image/of/face
Results
For keyword and entry search the columns in the csv (or keys in the records for the json output) will be:
| Column | Description |
|---|---|
| id | The unique identifier for the entry. |
| average_confidence | The average confidence score. |
| confidences | The list of confidence scores. |
| entry_type | The type of entry. Either label, alias, category, parent, moderation. |
| name | The value associated with the entry. |
| timestamps | The timestamps related to the entry. |
| url | The S3 bucket URL of the associated video. |
| tag | The tag related to the entry. |
The faces search will have the following columns (or keys):
| Column | Description |
|---|---|
| faceId | The unique identifier for the face. |
| imageId | The unique identifier for the image. |
| externalImageId | The path to the resource in the S3 bucket with metadata. |
| similarity | The similarity of the face to the input image. |
| searchedFaceConfidence | Confidence in whether a face was detected in the input. |
| timestamp | The timestamp of the face. In milliseconds. |
Metadata
Release files for recognize 0.1.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| recognize-0.1.25.tar.gz | 7.6 kB | Without provenance | Details for recognize-0.1.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recognize-0.1.25-py3-none-any.whl | Python 3 | none | any | Details for recognize-0.1.25-py3-none-any.whl |
Total release size: 16.9 kB
Release files / recognize-0.1.25.tar.gz
| Download URL | recognize-0.1.25.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb0a9b76c1113e7011a715d45af99837d0ff31a26528da5c0d1327abc4dddf1f
|
|
BLAKE2b-256 checksum How to use checksums |
2a336764a6688a570efa5bb6ec603516af5597778e0994275ac48415656549de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.6 Darwin/23.1.0
|
Release files / recognize-0.1.25-py3-none-any.whl
| Download URL | recognize-0.1.25-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddd6a633ab95e17a26ea49ee3f4563e0ba85e6d4ccc6ad826a9aa8778ffc930a
|
|
BLAKE2b-256 checksum How to use checksums |
b88f722881d1c1cffa2fdab7069b90d38a9e5d6fe317237c881e0a71711c0c8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.6 Darwin/23.1.0
|
Security for recognize 0.1.25
Provenance
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.