I am trying to use hugging face inference API to get speed from the speedometer image. The curl command is:
Can someone convert the above to b4x post command?
Also is the following code to convert image to binary valid?
Thank you
curl command:
curl https://api-inference.huggingface.co/models/jinhybr/OCR-Donut-CORD \
-X POST \
--data-binary '@speed.png' \
-H "Authorization: Bearer xxxxxJkTBOAKfDiyopHNNeRQPMyqxxxv"
Also is the following code to convert image to binary valid?
image to binary:
Dim img () As Byte
img = File.ReadBytes(File.DirAssets, "speed.png")