A simple image processing library written in python.
Project description
1-4 Performace Task
Client 4: Developer
Goal
A main script (run from terminal) processes an image with a library of image tools. Run would look something like $ toucan imagefile.jpg -t blur
which would display a window showing the applied image.
Tools to start out with
- Grayscale Coloring
- Circle/polygon Packing
- Thermal Coloring
- Number Visualization (colored mosaic)
Conventions
All transformation tools are located somewhere in the tools package, and can all be called on from the root of the package. To follow the zen of python package structure: the less dots the better.
Egan's Tasks
- Polygon Packing
- Function Name:
poly(image)
- Function Name:
- Grayscale Coloring
- Function Name:
gray(image)
- Function Name:
- Thermal Coloring
- Function Name:
thermal(image)
- Function Name:
Miles's Tasks
-
Create Package Structure
-
main.py file
- Takes user input (image file, tool to apply)
- Displays output of applied tool
- If user wants to overwrite the image file to be transformed, overwrite the file.
-
Blur
-
Function name:
blur(image)
-
Usage:
$ toucan tools/bin/toucan.jpg -t blur
-
Original vs Blur:
-
-
Color Shifting
-
Function name:
shift(image)
-
Shift RGB values one to the left (Red values become Blue, Green becomes Red, Blue becomes Green), or right.
-
Usage:
$ toucan tools/bin/toucan.jpg -t shift
-
Original vs Shift vs LShift:
-
-
Number Mosaic
-
Function name:
color_vis(digits)
-
Read digits from a text file, and return a mosaic of each number represented by a rectangle with an assigned color.
-
Usage:
$ toucan tools/bin/pi_100.txt
-
Example: first 100 digits of pi
-
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for Toucan_Tools-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc385ddb14992f547a32e379533fa70236c2a7001be802cd34464d0a0ff40ebe |
|
MD5 | 050f126b36ade4e3b7ea015c1241b7cc |
|
BLAKE2b-256 | 7cca33ed91f5dc0a0ba872599bdc0acf9a27abe34ab9dd9d05bba07fb3d41682 |