2 posts on OpenCV.
Both live on my GitHub as a monument to how many 'I'll come back to this' folders never got a second commit. One is eight OpenCV mouse-callback scripts from October 2022, the other is four CSES Introductory Problems from June 2025.
Generate the foreground and background separately, use Segment Anything to cut out the subject, and pick the sharpest mask by Laplacian variance. A one-commit pipeline of a couple thousand lines.