Save the flowcharts for each of your tasks in
tp1_team_teamnumber.pdf You will also
need to include these flowcharts in your final report.
Write Python code that loads a user specified image and prepares it for
message extraction. Ensure that the image is in the correct format (RGB) and the pixel
values are properly scaled for processing. Name this program
tp1_team_1_teamnumber.py.
Ask the user for an image file name.
Load the specified image into memory (see the
docs).
Color images should have 3 channels (Red, Green, Blue), while grayscale images should
have only one channel.
Images are typically loaded in a format that represents each pixel’s values, either
as integers (0-255) or normalized floating-point values (0.0-1.0). However, for
message extraction, you need pixel values to be integers in the range [0, 255]. If
the values are in the range [0, 1], scale them to the correct range and set the data
type to unsigned 8-bit integers (np.uint8, see the
docs ).
You can read about some different numpy data types
here
Ensure your program’s output matches the provided samples exactly.
This includes all characters, white space, and punctuation. In the
samples, user input is highlighted like
this for clarity, but your program should not highlight user
input in this way.
Case 1 Sample Output
$ python3 tp1_team_1_teamnumber.pyEnter the path of the image you want to load: ref_col.png
Case 2 Sample Output
$ python3 tp1_team_1_teamnumber.pyEnter the path of the image you want to load: ref_gry.png