Services

Edit pageLast modified: 28 January 2025

To define a service, create a new .proto file in the proto folder next to your source sets:

Inside the .proto file define your service:

This will generate the necessary code, including the most important interfaces: ImageRecognizer, Image, RecogniseResult:

You can implement the ImageRecognizer:

Here you can also see the usage of the RecogniseResult interface. To create an instance, use its .invoke() extension function: