Skip to content

sitrucp/flutter_openai_image_description

Repository files navigation

Flutter OpenAI Image Description App

This is a simple Flutter Android app that uses OpenAI ChatGPT-4-Vision API to get descriptions of images on mobile device. Use cases include:

  • Get a description of a photo
  • Get insights from a screenshot of a chart eg line chart of real vs nominal hourly wages
  • Get explanation from a screenshot of a meme visualization eg you've seen elf on a shelf, have you seen ... (vader on a tater)

See YouTube video walk through: https://youtu.be/l9hNuY1DAU4

The app stores the following data in the app's device folder in a JSON file:

  • Encrypted API key
  • Image file name
  • Device folder path
  • Prompt text
  • Response text
  • Response datetime string
  • Tokens used value
  • Estimated cost value

You need to provide your own OpenAI API key which is entered in the app's Settings page.

App screenshots (click to zoom in)

Allow Permissions - allow app to access device folders

enter_api_key

Enter API Key - saved in JSON file in Android app folder

enter_api_key

Select folder - select any accessible folder that contains images

thumbnails

thumbnails

Selected folder images - blue bordered images have at least one response

thumbnails

Selected image prompt - modify text prompt as desired, default to low resolution (good enough for most) but can optionally send higher resolution image then tap Get Response button

image prompt

Selected image prompt response - view response

image prompt response 1

Selected image prompt response - copy, share or delete response

image prompt response 2

Acknowledgments

ChatGPT-4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published