Skip to main content

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)
  • Grayscale Coloring
    • Function Name: gray(image)
  • Thermal Coloring
    • Function Name: thermal(image)

Miles's Tasks

  • Create Package Structure

  • main.py file

    1. Takes user input (image file, tool to apply)
    2. Displays output of applied tool
    3. 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:

      toucan toucan 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:

      toucan blur toucan blur

  • 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

      pi_100

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Toucan_Tools-0.1-py3-none-any.whl (9.3 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