Skip to main content

Number crunching backend to extract edges from a provided image

Project description

Clear Cut

This package is intended to serve as a tool to sketch out the edges of any provided image. This is a personal project which I am - to use an appropriate term - channeling my number crunching desire into.

Refer to this repo if you would like to play around with the source code.

To run locally

  1. Pick a new folder location, e.g. ~/Desktop/mock
  2. In a terminal, go into this folder cd [absolute_path]/mock/
  3. Create a new Python3 virtual environment python3 -m venv venv
  4. Activate this virtual environment: source venv/bin/activate
  5. Install the latest (or specific) verion of the ClearCut python module: pip install clear-cut(==1.3.1)
  6. Run Python in shell: python
  7. Excecute the following Python script (tailoring the paths to your local set up):
from clear_cut.clear_cutter import ClearCut

image_filepath = '/Users/christopherharman/Desktop/mock/clear-cut-mock-logo.jpg'
results_path = '/Users/myusername/Desktop/mock/'

# All kwargs are optional
#   param debug: toggles on/off output to terminal
#   param results_path: sets results directory. Omitting this parameter will write results to current working directory
#   param image_filepath: location to image. Omitting this parameter will use a default Bob Ross image instead
clear_cut = ClearCut(debug=True, image_filepath=image_filepath, results_path=results_path)
clear_cut.run()

On completion, you should have a set of ClearCut processed images in a /results/ directory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clear-cut-1.4.2.tar.gz (19.8 kB view hashes)

Uploaded Source

Built Distribution

clear_cut-1.4.2-py3-none-any.whl (22.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page