Skip to content

add optional aspect ratio keeping for replacement image#75

Open
chillinger wants to merge 3 commits intoORB-HD:masterfrom
chillinger:feat/replace-aspect-ratio
Open

add optional aspect ratio keeping for replacement image#75
chillinger wants to merge 3 commits intoORB-HD:masterfrom
chillinger:feat/replace-aspect-ratio

Conversation

@chillinger
Copy link
Copy Markdown

@chillinger chillinger commented Apr 9, 2026

in the original version, the replacement image (given by --replaceimg) would always be rescaled to the face detection box.

This allows to keep the aspect ratio of the supplied replacement. In this case, the replacement will overflow the originally detected face box, as the shorter side is matched, the longer side overflows.

In examples/ there are two new example images showcasing this behaviour.

While updating the README I realized, that there are multiple new switches in the application which are not yet documented in the README - I updated everything together.

For full transparency: I used claude code for some of the edits, but I'm experienced with OpenCV and checked all edits manually and fully understand their working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant