diff options
author | captin411 <captindave@gmail.com> | 2022-10-19 10:18:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 10:18:26 +0000 |
commit | abeec4b63029c2c4151a78fc395d312113881845 (patch) | |
tree | ff7343dbf1ba75093067c088b7b695a0454ff3ed /javascript/imageviewer.js | |
parent | f894dd552f68bea27476f1f360ab8e79f3a65b4f (diff) | |
download | stable-diffusion-webui-gfx803-abeec4b63029c2c4151a78fc395d312113881845.tar.gz stable-diffusion-webui-gfx803-abeec4b63029c2c4151a78fc395d312113881845.tar.bz2 stable-diffusion-webui-gfx803-abeec4b63029c2c4151a78fc395d312113881845.zip |
Add auto focal point cropping to Preprocess images
This algorithm plots a bunch of points of interest on the source
image and averages their locations to find a center.
Most points come from OpenCV. One point comes from an
entropy model. OpenCV points account for 50% of the weight and the
entropy based point is the other 50%.
The center of all weighted points is calculated and a bounding box
is drawn as close to centered over that point as possible.
Diffstat (limited to 'javascript/imageviewer.js')
0 files changed, 0 insertions, 0 deletions