How to Handle Image Processing in Pure Python?

0
0
Asked By CuriousCat47 On

I'm working on a college project where I need to transform the color space of an image (like converting RGB to grayscale) using only 'pure Python'. I've tried researching this but I'm feeling a bit lost on how to start. The project is supposed to be simple, and it doesn't require creating a full app with a user interface. I want to avoid using any libraries with C-based components, as that would violate the project requirements. I've heard about the PPM format but I'm not sure how to manipulate it. Any tips or advice would be greatly appreciated!

2 Answers

Answered By ImageHunter23 On

What about the format of your image? If it's BMP, it's pretty straightforward, but JPEG or PNG can be a bit trickier. You might want to dig into the PPM format since it's simple and might meet your project's requirements without too much complexity.

CuriousCat47 -

Yeah, they just said we need to focus on color transformations, so I guess the specific format isn’t crucial.

Answered By PixelPioneer92 On

Have you checked in with your teacher or TA? The term 'pure Python' can be pretty vague. If it means no libraries with C components, that's going to be a tough rule since many standard libraries are built on C.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.