Chicken scheme egg with bindings for ccv, a computer vision library.
Note that you will need to fetch the git submodules in this package. In addition this egg compiles ccv with options that require libjpeg, libpng, gsl, fftw3, and cblas. ccv takes a very long time to compile.
- (read-image image-filename)
- (read-greyscale-image image-filename)
- (write-image image filename)
- (imlib-image->ccv-image image)
- (imlib-image->ccv-greyscale-image image)
- (load-dpm-mixture-model filename)
- (make-dpm-detection x y w h confidence)
- (dpm-detection-x detection)
- (dpm-detection-y detection)
- (dpm-detection-w detection)
- (dpm-detection-h detection)
- (dpm-detection-confidence detection)
- (dpm-detect-object color-image model #!key (threshold 0.6) (interval 8))
- (make-sift x y octave level scale angle descriptor)
- (sift-x descriptor)
- (sift-y descriptor)
- (sift-octave descriptor)
- (sift-level descriptor)
- (sift-scale descriptor)
- (sift-angle descriptor)
- (sift-descriptor descriptor)
- (sift greyscale-image #!key (noctaves 3) (nlevels 6) (up2x 1) (edge-threshold 10) (norm-threshold 0) (peak-threshold 0))
- (sift-match image-sift object-sift #!key (threshold 0.36))
- (make-swt-detection x y width height)
- (swt-detection-x detection)
- (swt-detection-y detection)
- (swt-detection-width detection)
- (swt-detection-height detection)
- (swt-detect-words greyscale-image)
- (ccv-enable-default-cache)
- (ccv-disable-cache)
- (ccv-drain-cache)
(let img (image-load "/tmp/a.jpg")) (for-each (lambda (swt) (image-draw-rectangle img (color/rgba 255 0 0 255) (swt-detection-x swt) (swt-detection-y swt) (swt-detection-width swt) (swt-detection-height swt))) (swt-detect-words (read-greyscale-image "/tmp/a.jpg"))) (image-save img "/tmp/b.png")
Copyright 2012 Andrei Barbu. All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.