OpenAI has a nice automatic image captioning service, you can get this up and running by
-
Create a virtual environment:
python3 -m venv venv
-
Activate the environment:
source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Running the demo program
caption_this.py
:python3 caption_this.py
-
You can upload your own image and update the code that loads the image.