SLICING:
example:
cropped_image = img[0:1000, 200:1200]
A parameter:
- First specify the initial index (the pixel to start from)
- Then specify the ending index (the pixel to end from)
In the first parameter in our example:
- It starts at the pixel 0 (the start)
- It ends at the pixel 1000
- This first parameter is the rows, or Y-Axis.
In the second parameter in our example:
- It starts at the pixel 200
- It ends at the pixel 1200
- This second parameter is the columns, or X-Axis.
EXIT CODES:
0 - script went successfully
1 - read the main part of the readme. 👺