Given the provided URLs to images of vehicles and the API documentation please construct a request to submit the images to the API using the credentials given, poll for job completion and get the results from the finished job. The Image API classifies images, provides coordinates of a box that surrounds the primary vehicle in the image and enhances the image by blurring the background to highlight the primary vehicle.
Use PHP, Python or Java to implement your solution. Basic error handling should be implemented, but no heroics necessary. The URLs for images to be processed should be inputs to the program, as arguments, stdin or read from a file. API responses should be logged Provide a ZIP/archive of the program code, logged output and resulting images downloaded from the API results. Submitted program should require no modification before running.
- Python3.6