Better example
Some checks failed
lint / ruff (push) Failing after 1m56s

This commit is contained in:
Andras Schmelczer 2026-05-06 23:12:21 +01:00
parent e4320e1f29
commit fd17cf2540
7 changed files with 52 additions and 154 deletions

View file

@ -35,7 +35,7 @@ The important guardrail is `heads_fit_in_crop`: before the picker accepts a down
See the following examples from [crop_compare.ipynb](./notebooks/crop_compare.ipynb) that show how the head bounding boxes affect the final crop and which candidates would be accepted or rejected.
<p align="center">
<img src="photos/crop_compare_portrait.png" alt="Crop comparison showing original photos with face boxes, naive centre crops, and accepted face-aware crops for a portrait frame target" width="760">
<img src="photos/crop_compare_portrait.png" alt="Crop comparison showing original photos with face boxes, naive centre crops, and face-aware crops for a portrait frame target, with one candidate rejected for cutting into a head" width="760">
</p>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Before After
Before After

View file

@ -10,14 +10,38 @@
"boundingBoxY2": 510
}
],
"man_with_dog.jpg": [
"friends_in_field.jpg": [
{
"imageWidth": 1600,
"imageHeight": 1067,
"boundingBoxX1": 1080,
"boundingBoxY1": 200,
"boundingBoxX2": 1320,
"boundingBoxY2": 450
"boundingBoxX1": 290,
"boundingBoxY1": 390,
"boundingBoxX2": 440,
"boundingBoxY2": 560
},
{
"imageWidth": 1600,
"imageHeight": 1067,
"boundingBoxX1": 520,
"boundingBoxY1": 370,
"boundingBoxX2": 680,
"boundingBoxY2": 530
},
{
"imageWidth": 1600,
"imageHeight": 1067,
"boundingBoxX1": 720,
"boundingBoxY1": 470,
"boundingBoxX2": 850,
"boundingBoxY2": 620
},
{
"imageWidth": 1600,
"imageHeight": 1067,
"boundingBoxX1": 920,
"boundingBoxY1": 420,
"boundingBoxX2": 1090,
"boundingBoxY2": 590
}
],
"mother_and_daughter.jpg": [

BIN
photos/friends_in_field.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB