Code Monkey home page Code Monkey logo

txt-visual-seperator's Introduction

Txt-Visual-Seperator

A program that separates text and visual elements from image.
The program uses Google Cloud Vision API for OCR and YOLOv8 for image segmentation.

Working

  • The program takes a command line argument, which is the path to the image.
  • It then makes an html file with the output in the output directory.
  • It also creates a runs directory which stores all the past segmentation results.

Note: There are two sample output files namely person.html and winter.html in the output directory. To view the demos correctly please run the demos using make person and make winter

How to run

  • Make a python virtual environment (python3 -m venv venv)
  • Install poetry (pip3 install poetry)
  • Install all the dependencies using poetry (poetry install --no-root)
  • Create a new google cloud project and download json_credentials
  • Enable Cloud_Vision_API and Billing in the Google Project
  • Copy the .env.example to .env and edit it accordingly
  • Run the application by running python3 main.py <path_to_image> in the src directory
  • You can also run the demos by running make person or make winter in the project root directory

txt-visual-seperator's People

Contributors

pranshu314 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.