Apply effects to your photo. Select person on a photo, blur or grayscale background
Parameter’s name | Parameter’s type | Description |
---|---|---|
raw_input | boolean | False - Use Tensorflow protobuf record format fot feeding data to model, True - Use numpy arrays. |
out_mime_type | string | Optional. Used on a client side to identify content nature. |
out_filters | string | Optional. Comma separated list of model outputs to return. |
inputs | image | Input image |
object_class | string | Object to find |
effect | string | Effect to apply |
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: multipart/form-data' \ -F "out_filters=output" \ -F "raw_input=true" \ -F "out_mime_type=image/png" \ -F "image_inputs=inputs_value" \ -F "string_object_class=object_class_value" \ -F "string_effect=effect_value" \ https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/photo-robot/tfproxy/9000/any
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: application/json' \ -d ' { "inputs": { "effect": { "data": "base64_encoded_effect_value", "dtype": 7 }, "inputs": { "data": "base64_encoded_inputs_contents", "dtype": 7 }, "object_class": { "data": "base64_encoded_object_class_value", "dtype": 7 } }, "out_filters": "output", "raw_input": true } ' https://cloud.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/photo-robot/tfproxy/9000/any
{ "output": [ [ "bytes" ] ] }