Open mohsin123321 opened 3 years ago
You can use base64 library of python to convert numpy matrix of image into base64. Also, you will have to add the shape of the matrix also while passing so that you can get to the same shape of image by reshaping the decoded vector.
On Wed, 25 Aug, 2021, 2:58 pm Mohsin Mushtaq, @.***> wrote:
Hi, In my use case, in the inference.py file I am supposed to receive image in base 64 string which I have to decode and pass it to the matting server. Could you please tell me how do I pass the decoded base 64 image to the matting server since it is different from reading image from its path. Thank you
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/harsh2912/Background-removal/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENHXFZNMFGLXT5RBF5VYETT6SZTRANCNFSM5CYUQG2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Hi, In my use case, in the
inference.py
file I am supposed to receive image in base 64 string which I have to decode and pass it to the matting server. Could you please tell me how do I pass the decoded base 64 image to the matting server since it is different from reading image from its path. Thank you