Detector detects regions of interest in a raw pixel buffer. Implementations are free to perform any kind of detection (faces, objects, text boxes, etc.) — the only contract is the coordinate space. imagePath identifies the source image (e.g. URL path) and is used as a cache key by implementations t
| 24 | // Returned regions must use normalised coordinates in [0.0, 1.0] relative to |
| 25 | // the image width / height stored in blob. |
| 26 | type Detector interface { |
| 27 | Startup(ctx context.Context) error |
| 28 | Detect(ctx context.Context, imagePath string, blob *Blob) ([]DetectorRegion, error) |
| 29 | Shutdown(ctx context.Context) error |
| 30 | } |
| 31 | |
| 32 | // DetectorAdder is implemented by processors that accept one or more Detectors. |
| 33 | // imagorface and other detector plugins use this interface to wire a detector |
no outgoing calls
no test coverage detected