Photoshot Retouch Part 2 · First masked PNG Exercise version 1.0 You will generate a synthetic RGB image, mark one rectangle, and write three PNGs. The exercise was verified on Windows x64 with CPython 3.13.13. Open PowerShell in the extracted exercise folder and run these setup commands. py -3.13 -m venv .venv .\.venv\Scripts\python.exe -m pip install --require-hashes --only-binary=:all: -r requirements-windows-py313.txt Start by generating the original image. .\.venv\Scripts\python.exe make_input.py Run the complete exercise with one command. .\.venv\Scripts\python.exe first_retouch.py Open out\input.png, out\mask.png, and out\output.png. All three are 448 × 288. White pixels in the mask mark the rectangle. The default lift is +40 in each RGB channel inside it. The expected folder contains the verified output for the default settings. Predict how the value at x=160, y=112 will change and try these runs. .\.venv\Scripts\python.exe first_retouch.py --strength 0.5 --out half .\.venv\Scripts\python.exe first_retouch.py --strength 0 --out zero .\.venv\Scripts\python.exe first_retouch.py --roi 170 90 132 104 --out shifted The default input value is [133, 118, 102]. Half strength produces [153, 138, 122], full strength produces [173, 158, 142], and the zero and shifted cases preserve [133, 118, 102]. The coordinate is written as (x, y). NumPy indexes the same pixel as rgb[y, x]. The rectangle arguments are x, y, width, and height. Use --lift to choose an addition from 0 to 255 and --strength to choose a value from 0 to 1. Run the automated check and write a local report. .\.venv\Scripts\python.exe verify.py --report verification.json The check reopens the PNGs, verifies the rectangle and expected RGB values, and checks repeatability. Setup targets the pinned Windows x64 wheels. The generated image and sample files come from make_input.py. Part 1 · https://slohero.com/blog/photoshot-retouch-development-01#read-the-code