Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using small sections for crops #21

Open
sharpner opened this issue Nov 16, 2015 · 1 comment
Open

Using small sections for crops #21

sharpner opened this issue Nov 16, 2015 · 1 comment

Comments

@sharpner
Copy link
Contributor

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?

@sharpner
Copy link
Contributor Author

It would be also interesting on how to keep ratio's from the original image to the crops...

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

No branches or pull requests

1 participant