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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00cab667e4ef55393c7dad0613f1c019915296d6327e5d54538d21ef9068dcdb
|
|
| MD5 |
49f4ecca9f97316423bddd3fc8b73c99
|
|
| BLAKE2b-256 |
e6c461778e997f7614d3bdda309778d49d3fcce1a0bd094dc26de82cb6c16cde
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c055fb98ab33103da8c78bd22207b8f044e38d6ab2891211da8db369cb9b604
|
|
| MD5 |
5cfe326886bb8e24270a3c087ec1d8ef
|
|
| BLAKE2b-256 |
d506f6757cedcab3b649bbdb1ae47c8e6b2d8271d16d70aa7a6d47c74a4cf918
|