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

is it possible to input raw data & get raw data as output? #118

Open
chr4ss12 opened this issue Aug 19, 2022 · 1 comment
Open

is it possible to input raw data & get raw data as output? #118

chr4ss12 opened this issue Aug 19, 2022 · 1 comment

Comments

@chr4ss12
Copy link

I was wondering if this library supports a case of:

I want to input containerWidth, containerHeight, as well imageWidth, imageHeight, and imageFacesOnScreen, and I would like to get back:

imageScale, imageX, imageY (basically these 3 parameters help me to scale/reposition the image in the container) thus giving me the best "crop", in essence I am not sure how to create this algorithm, but I dont need any face detection algorithms as I already have them, and I dont need any bitmap manipulation as its all handled. I would essentially need "description" of how to position the face in a container the best way.

@jwagner
Copy link
Owner

jwagner commented Aug 19, 2022

Smartcrop always works with image data as input. You could feed it a 'blank' image and supply the faces in the boost parameter (as it's done in smartcrop-cli). But at that point smartcrop is just a fairly inefficient way of fitting a rectangle to a bunch of rectangles. As for the output, the format is different but you do get back rectangles, smartcrop doesn't perform image manipulation.

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

2 participants