# `mix detect_image`
[🔗](https://github.com/cocoa-xu/tflite_elixir/blob/main/lib/tasks/detect_image.ex#L1)

Image detection mix task: `mix help detect_image`

Command line arguments:

- `-m`, `--model`: *Required*. File path of .tflite file.
- `-i`, `--input`: *Required*. Image to process.
- `-l`, `--labels`: File path of labels file.
- `-t`, `--threshold`: Default to `0.4`. Score threshold for detected objects.
- `-c`, `--count`: Default to `1`. Number of times to run inference.
- `-j`, `--jobs`: Number of threads for the interpreter (only valid for CPU).
- `--use-tpu`: Default to false. Add this option to use Coral device.
- `--tpu`: Default to `""`. Coral device name.

Code based on [detect_image.py](https://github.com/google-coral/pycoral/blob/master/examples/detect_image.py)

# `run`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
