Skip to content

Using small sections for crops #21

@sharpner

Description

@sharpner

Hey there!

I have a question and not sure how to solve this. I'm trying to detect a face and only cut out a rectangle with 200x200 size.

Currently I am always getting crops like this:
`smartcrop.Crop{X:0, Y:20, Width:598, Height:450, Score:smartcrop.Score{Detail:10.490105771557365, Saturation:55.443967954895136, Skin:271.62173185696514, Total:0.0029439244310097267}}``

I searched the code a bit and found a minScale setting and a prescale setting that's always true.

My first idea was to make them configurable and change prescaleMin to about 100. But that does not improve results.

I am not to sure what's going on here. Can you give me a hint on how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions