Coder Social home page Coder Social logo

imageprocessesing's Introduction

Image Processing Package

This package provides functionality for image processing and generate a normal map texture.

Package: ImageIO

The ImageIO package is responsible for reading and saving images.

Methods

  • read_image(image_path: str) -> numpy.ndarray: Reads an image from the specified path and returns it as a NumPy array.

  • save_image(image: numpy.ndarray, path: str) -> None: Saves an image to the specified path.

Package: ImageProcessing

The ImageProcessing package is responsible for image processing and generating a normal map.

Methods

  • generate_normal_map(image: numpy.ndarray) -> PIL.Image.Image: Generates a normal map from an input image and returns it as a PIL Image object.

Package: imagePlot

The imagePlot package is responsible for displaying and saving images.

Methods

  • plot(image: numpy.ndarray) -> None: Displays an image and saves it to the current directory.

Usage

Here's an example of how to use the Image Processing Package:

from ImageIO import ImageIO
from ImageProcessing import ImageProcessing
from imagePlot import Plot

# Read an image
image = ImageIO.read_image('path/to/image.jpg')

# Generate a normal map
normal_map = ImageProcessing.generate_normal_map(image)

# Save the normal map
ImageIO.save_image(normal_map, 'path/to/normal_map.png')

# Display and save the image
plotter = Plot()
plotter.plot(image)

Requirements

The Image Processing Package has the following requirements:

numpy
opencv_python
Pillow
scikit-image

https://pypi.org/project/image-processing-package-dio-challenge/

imageprocessesing's People

Contributors

mathlimam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.