Answer the question
In order to leave comments, you need to log in
How to integrate mail.ru computer vision into code?
For the sake of experiment, I tried to introduce computer vision from mylaru into my code
. I found out that it loads a photo using the method below:
Here is what it transmits in the payload:
Tried in different ways, but always returned
{"validation":"Images upload expected!"}
headers = {
"Referer": "https://9may.mail.ru/restoration/"
}
data = {
'image[]' : open("test.jpg", "rb")
}
resp = r.post('https://9may.mail.ru/photo',headers=headers,data=data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question