Skip to content

Solve a quiz question by taking a picture of it, based on Google ML Kit and GPT-3.

License

Notifications You must be signed in to change notification settings

AndreFra96/quizsolver

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Quiz Solver

A quiz solver based on Google ML Kit and GPT-3.

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Quiz solver comes from the curiosity to test the capabilities of GPT-3 model facing a real world problem.

It uses the device camera to take a picture of a question with related possible answers. Then, it reads all the text in the image with Google ML Kit Text Recognition and sends it to Openai GPT-3 chat model which in turn extracts the question with the possible answers and finally tries to guess which one of them is the right one.

This is neither bad or good by itself, the use you make of it makes it so

Ready for execution on iOS (simulator and physical devices), configuration needed for Android.

(back to top)

Built With

  • Flutter
  • ML-Kit
  • OpenAI

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

To run the project you need flutter to be installed on your machine: follow the "Get started" manual on flutter.dev

Installation

  1. Clone the repo
    git clone https://github.com/AndreFra96/quizsolver.git
  2. Install required packages
    flutter pub get
  3. Get your OpenAI API Key at openai.com
  4. Update the 'openaiApiKey' in lib/config.dart with your OpenAI API Key
  5. Run flutter run

(back to top)

Usage

The usage in extremely simple, just point the camera to the quiz and click the photo button. In a few seconds a popup will show up with the recognized question and the correct answer.

Example

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Andrea Brioschi - [email protected]

Project Link: https://github.com/AndreFra96/quizsolver

(back to top)

Acknowledgments

(back to top)

About

Solve a quiz question by taking a picture of it, based on Google ML Kit and GPT-3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published