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
- Pick a new folder location, e.g.
~/Desktop/mock
- In a terminal, go into this folder
cd [absolute_path]/mock/
- Create a new Python3 virtual environment
python3 -m venv venv
- Activate this virtual environment:
source venv/bin/activate
- Install the latest (or specific) verion of the ClearCut python module:
pip install clear-cut(==1.3.1)
- Run Python in shell:
python
- 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
Release history Release notifications | RSS feed
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.0.tar.gz
(19.8 kB
view hashes)
Built Distribution
clear_cut-1.4.0-py3-none-any.whl
(22.4 kB
view hashes)
Close
Hashes for clear_cut-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c216c27c92616268a37c41cc3163c5592252c21c6ddd2facd1321d776b2c08f |
|
MD5 | a8ea8d9f6e1fa1235da19d00ef834d6d |
|
BLAKE2b-256 | 364d14103b6c25024d775c40e28ea7f715a2c8ff79dfe8c6312bf7259691de0d |