Lightweight GPT-4 Vision processing over the Webcam
WebcamGPT-Vision is a lightweight web application that enables users to process images from their webcam using OpenAI's GPT-4 Vision API. The application captures images from the user's webcam, sends them to the GPT-4 Vision API, and displays the descriptive results.
There are three versions of this project: PHP, Node.js, and Python / Flask.
https://github.com/bdekraker/WebcamGPT-Vision/assets/81277770/9e5ed14b-bb8e-4475-9921-471b9d42d009
Before you begin, ensure you have met the following requirements:
To install WebcamGPT-Vision, follow these steps for the correct version (all are included):
git clone https://github.com/bdekraker/webcamgpt-vision.git
php-version
directory.YOUR_DEFAULT_API_KEY
in the process_image.php
file with your actual OpenAI API key.index.html
in your web browser to start using the application.git clone https://github.com/bdekraker/webcamgpt-vision.git
js-version
directory.npm install
to install the dependencies..env
file in the root of js-version
directory and add your OpenAI API key:
OPENAI_API_KEY=YOUR_DEFAULT_API_KEY
node server.js
.http://localhost:3000
(or the port you configured).git clone https://github.com/bdekraker/webcamgpt-vision.git
python-version
directory.pip install -r requirements.txt
to install the dependencies.export YOUR_DEFAULT_API_KEY='your_actual_api_key_here'
python process_image.py
.http://localhost:5000
.For both versions, the usage is as follows:
index.html
page in your web browser.Contributions to WebcamGPT-Vision are welcome. Please adhere to the following guidelines:
If you have any questions or feedback, please open an issue in the repository, and a maintainer will get back to you.
This project is licensed under the MIT License - see the LICENSE.md
file for details.
If you need to contact the maintainer of this project, please reach out to Benjamin De Kraker.
This application is not affiliated with OpenAI, and the GPT-4 Vision API usage is subject to OpenAI's terms and conditions. Ensure that you follow OpenAI's usage guidelines and have appropriate permissions to use the API.