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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file clear-cut-1.4.2.tar.gz.

File metadata

  • Download URL: clear-cut-1.4.2.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for clear-cut-1.4.2.tar.gz
Algorithm Hash digest
SHA256 00cab667e4ef55393c7dad0613f1c019915296d6327e5d54538d21ef9068dcdb
MD5 49f4ecca9f97316423bddd3fc8b73c99
BLAKE2b-256 e6c461778e997f7614d3bdda309778d49d3fcce1a0bd094dc26de82cb6c16cde

See more details on using hashes here.

File details

Details for the file clear_cut-1.4.2-py3-none-any.whl.

File metadata

  • Download URL: clear_cut-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for clear_cut-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c055fb98ab33103da8c78bd22207b8f044e38d6ab2891211da8db369cb9b604
MD5 5cfe326886bb8e24270a3c087ec1d8ef
BLAKE2b-256 d506f6757cedcab3b649bbdb1ae47c8e6b2d8271d16d70aa7a6d47c74a4cf918

See more details on using hashes here.

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