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

Making it smarter #33

Closed
Charuru opened this issue Feb 13, 2016 · 12 comments
Closed

Making it smarter #33

Charuru opened this issue Feb 13, 2016 · 12 comments
Labels

Comments

@Charuru
Copy link

Charuru commented Feb 13, 2016

Whereto from here? Are there any efforts to make it smarter and get more accurate? It's already pretty good so far for 80% of the cases, but I would like it to reach a higher level of accuracy.

@jwagner
Copy link
Owner

jwagner commented Feb 13, 2016

Tweaking the coefficients based on machine learning and a big dataset (http://saliency.mit.edu/ for instance) would be one way ahead.

I also have plans to integrate it with face detection in the future (for usage on the server/with node).

Another thing worth trying is different windowing functions for scoring the image based on the salience/interestingness. I highly doubt the current rule of thirds functions is optimal. ;)

@shinebay
Copy link

@jwagner To integrate face detection in smartcrop.js, you can refer to this js lib:https://trackingjs.com/ ,maybe it can help you

@jwagner
Copy link
Owner

jwagner commented Mar 2, 2016

Hey @shinebay tracking.js looks pretty cool. My current plan is to make smartcrop.js expandable and then create a face detection plugin.

@ajbogh
Copy link

ajbogh commented May 2, 2016

I'd also like to suggest intelligent zooming similar to the effects that Cloudinary offers.

@jwagner
Copy link
Owner

jwagner commented May 3, 2016

@ajbogh it can already do that by setting minScale.

@ajbogh
Copy link

ajbogh commented May 3, 2016

@jwagner thanks! I'll check it out.

@jwagner
Copy link
Owner

jwagner commented Jun 25, 2016

I have integrated support for facedetection (via 'boosting areas in the image) into the 1.0 branch. The testbed currently includes trackingjs and jquery.facedetection for face detection. smartcrop-cli supports using opencv via node-opencv for facedetection. I plan to release soon all of these soon. :)

@jwagner
Copy link
Owner

jwagner commented Jun 25, 2016

I merged 1.0 so I close this issue.

@jwagner jwagner closed this as completed Jun 25, 2016
@Charuru
Copy link
Author

Charuru commented Jun 25, 2016

Is the demo up with this yet?

@jwagner
Copy link
Owner

jwagner commented Jun 25, 2016

Yes the demo has been updated: https://29a.ch/sandbox/2014/smartcrop/examples/testbed.html

@ajbogh
Copy link

ajbogh commented Jun 25, 2016

You might want to change the image to a person. I found jquery.facedetection was pretty bad with animal faces. The best type of picture for this would be one where the person's face is not normally the area of interest when selecting a certain image dimension. With the jquery.facedetection it should ignore that area and highlight the face instead. I just think it would be nice to see the difference in a more complex image.

@jwagner
Copy link
Owner

jwagner commented Jun 25, 2016

@ajbogh I might change that image if I find something fitting with a permissive license. Most of my people photography is personal and constantly using pictures of myself gets old too. :)

In a way I even find it good to start with an example that displays the weakness of these face detection libraries. It seems that they have been trained on mugshots rather than actual photographs of people. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants