image_input_bytes.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export environment variables
4
Authenticate with Google Cloud
Sign in with Application Default Credentials:
5
Add the sample image
Place a JPEG named
sample.jpg in the same directory as the saved Python file.6
Run the example
Save the code above as
image_input_bytes.py, then run: