Skip to content

<[Discontinued after being absorbed into the Merry]> A Flask web application that recognizes One Piece card game cards from images using NLP algorithms and Google's Gemini API.

Notifications You must be signed in to change notification settings

GomuGomuu/ope-ope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ope-ope

This project is a simple web application built with Flask that allows users to upload images of One Piece card game cards and get information about them. It uses Google's Gemini API to extract text from the images and then searches through a database of card information to find the matching card.

Installation

  1. Install Poetry:
    pip install poetry
  2. Install Dependencies:
    poetry install
  3. Create a .env file:
    cp .env.example .env
  4. Set your Gemini API key in the .env file:
    GEMINI_API_KEY=YOUR_API_KEY

Usage

  1. Run the application:
    poetry run python app.py
  2. Access the application in your browser:
    http://127.0.0.1:5000/
  3. Upload an image:
    • The application will redirect you to the /images page, where you can see a list of uploaded images.
    • Click the "Upload Image" button and select the image you want to upload.
    • The image will be uploaded and displayed on the page.
  4. Recognize a card:
    • The application will automatically try to recognize the card in the uploaded image and will display the results as a JSON object.
    • You can also access the extracted data and search results as a JSON file in the /data/processing_output directory.

Features

  • Image upload functionality.
  • Card recognition using Google's Gemini API.
  • Search for matching cards in a database.
  • Display of card information in a JSON format.

Running with Docker

  1. Build the Docker image:
    docker-compose build
  2. Start the application:
    docker-compose up -d
  3. Access the application in your browser:
    http://127.0.0.1:5000/

About

<[Discontinued after being absorbed into the Merry]> A Flask web application that recognizes One Piece card game cards from images using NLP algorithms and Google's Gemini API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published