Deployment using Predict API
Hi,
I’m new to Landing.AI, thank you for having me….
I’m trying to pass my web-cam image to the API.
I can save the image to my hard-drive and use Postman to run the Predict API https://predict.app.landing.ai/inference/v1/predict?endpoint_id=######.
However, I would like to Automate this using Node-RED/javascript.
When I run the API call, I get he response:
"Error loading image. Please make sure image is not truncated and is a valid image."
I am passing my image (I have tried binary a binary buffer and base64. but I simply get the repsonse.
I am sure I need to pass additional context to the body of the REST call, but I am not sure what I am missing?
Currently, my body consists of a single object:
{file: [base64 or binary buffer]}
can anyone help?
Andy