Rapid account: ObjectCut API

ObjectCut API / objectcut.api

Discussions

5
Title
Created at (Click to sort ascending)
A
5
Hey maracuja again, We investigated what was happening and we ended up with a solution that deals with the rotation problem, which is already deployed and tested with the example image. Feel free to test it yourself and let us know if the issue was solved! Thanks for the issue and hope it's fixed. Cheers, птн 10:13 9/4/21
A
5
Hey maracuja again, We investigated what was happening and we ended up with a solution that deals with the rotation problem, which is already deployed and tested with the example image. Feel free to test it yourself and let us know if the issue was solved! Thanks for the issue and hope it's fixed. Cheers, птн 10:13 9/4/21
A
5
Hey maracuja again, We investigated what was happening and we ended up with a solution that deals with the rotation problem, which is already deployed and tested with the example image. Feel free to test it yourself and let us know if the issue was solved! Thanks for the issue and hope it's fixed. Cheers, птн 10:13 9/4/21
A
5
Hi Dylan, Sorry for our late reply, we haven't get any notification from this discussion thread. I think the problem, based on the piece of code attached, that you are trying the send the image itself without any encoding (so, the image in bytes). Our API only supports, at least for now, the way of sending an image using a public URL or encoding it in base64 and sending over as a string. The process that you should follow in case you want to use ObjectCut is to get the file that you want to process, encode it in base64 and sending that using the `image_base64` form field as a string. If you send the image itself (in bytes) the API is gonna return you a 400 status code because it doesn't fit with the input requirements. I found this StackOverflow post that you could be useful for your integration: https://stackoverflow.com/questions/21325661/convert-an-image-selected-by-path-to-base64-string If you are still having problems, let us know and we are gonna try to help you. Thanks and sorry for the inconvenience. Keep in touch. Regards, ObjectCut team. чтв 8:05 18/2/21
A
5
Hi Dylan, Sorry for our late reply, we haven't get any notification from this discussion thread. I think the problem, based on the piece of code attached, that you are trying the send the image itself without any encoding (so, the image in bytes). Our API only supports, at least for now, the way of sending an image using a public URL or encoding it in base64 and sending over as a string. The process that you should follow in case you want to use ObjectCut is to get the file that you want to process, encode it in base64 and sending that using the `image_base64` form field as a string. If you send the image itself (in bytes) the API is gonna return you a 400 status code because it doesn't fit with the input requirements. I found this StackOverflow post that you could be useful for your integration: https://stackoverflow.com/questions/21325661/convert-an-image-selected-by-path-to-base64-string If you are still having problems, let us know and we are gonna try to help you. Thanks and sorry for the inconvenience. Keep in touch. Regards, ObjectCut team. чтв 8:05 18/2/21