ESP32 Google Vision Face Detection request fail

Hi, let me understand: You are suggesting a PHP script that would be run against the image file and transfer the image to Google Vision?
Then Google vision would respond to the PHP script with json and then I, somehow, return this information to my ESP32? Thanks