ScanQuery is a tool that captures images from your webcam, detects text within the images, extracts questions, and searches the web for answers.
-
Clone the repository:
git clone https://github.com/m-gopichand/ScanQuery.git cd ScanQuery -
Install required packages:
pip install -r requirements.txt
-
Setup the API Keys:
Create a file named
.envin the root directory of the project and add the following lines to it:GOOGLE_APPLICATION_CREDENTIALS="path/to/yourcredentialsjson" OPENAI_API_KEY="yourapikey"
-
Run the application:
python main.py
-
Capture images:
- Press
Spaceto capture an image. - Press
Escto exit the application.
- Press
- The application captures images from the webcam.
- The text is detected from the images using the Google Cloud Vision API.
- The questions are extracted from the detected text using the OpenAI API.
- The questions are searched on the web using the gpt-4o-search-preview API.