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
Comments
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. ;) |
@jwagner To integrate face detection in smartcrop.js, you can refer to this js lib:https://trackingjs.com/ ,maybe it can help you |
Hey @shinebay tracking.js looks pretty cool. My current plan is to make smartcrop.js expandable and then create a face detection plugin. |
I'd also like to suggest intelligent zooming similar to the effects that Cloudinary offers. |
@ajbogh it can already do that by setting minScale. |
@jwagner thanks! I'll check it out. |
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. :) |
I merged 1.0 so I close this issue. |
Is the demo up with this yet? |
Yes the demo has been updated: https://29a.ch/sandbox/2014/smartcrop/examples/testbed.html |
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. |
@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. :) |
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.
The text was updated successfully, but these errors were encountered: