image - Computer Vision and Image Recognition algorithms for R users

August 3, 2020 ยท View on GitHub

This repository contains a suite of R packages which perform image algorithms currently not available in other R packages like magick, imager or EBImage.

These algorithms are put into different packages because of license differences. Currently the following R packages are available:

PackageFunctionalityLicenseDetails
image.CornerDetectionF9FAST-9 corner detection for imagesBSD-2Details
image.CornerDetectionHarrisHarris corner detection for imagesBSD-2Details
image.LineSegmentDetectorLine Segment Detector (LSD) for imagesAGPL-3Details
image.ContourDetectorUnsupervised Smooth Contour Line Detection for imagesAGPL-3Details
image.CannyEdgesCanny Edge Detector for ImagesGPL-3Details
image.OtsuOtsu's Image Segmentation MethodMITDetails
image.dlibSpeeded up robust features (SURF) and histogram of oriented gradients (HOG) featuresAGPL-3Details
image.libfacedetectionCNN for Face DetectionBSD-3Details
image.darknetImage classification using darknet with deep learning models AlexNet, Darknet, VGG-16, Extraction (GoogleNet) and Darknet19. As well object detection using the state-of-the art YOLO detection systemMITDetails
image.OpenPanoImage Stitchingsee file LICENSEDetails
image.DenoiseNLMeansNon-local means denoisingsee file LICENSEDetails

More packages and extensions are under development.

A presentation given at the useR-2017 conference is available in file presentation-user2017.pdf

Installation

  • Some packages are on CRAN
install.packages("image.CannyEdges")
install.packages("image.ContourDetector")
install.packages("image.CornerDetectionF9")
install.packages("image.CornerDetectionHarris")
install.packages("image.dlib")
install.packages("image.libfacedetection")
install.packages("image.LineSegmentDetector")
install.packages("image.Otsu")
install.packages("image.binarization")
  • You can see if the binary packages for your operating system are on the BNOSAC drat repo at https://github.com/bnosac/drat
  • If they are, you can just install them as follows, where you replace thepackagename with one of the packages you are interested in
install.packages("thepackagename", repos = "https://bnosac.github.io/drat")

Development packages

Install the development version of packages as follows:

install.packages("remotes")
remotes::install_github("bnosac/image", subdir = "image.CornerDetectionF9")
remotes::install_github("bnosac/image", subdir = "image.CornerDetectionHarris")
remotes::install_github("bnosac/image", subdir = "image.LineSegmentDetector")
remotes::install_github("bnosac/image", subdir = "image.ContourDetector")
remotes::install_github("bnosac/image", subdir = "image.CannyEdges")
remotes::install_github("bnosac/image", subdir = "image.Otsu")
remotes::install_github("bnosac/image", subdir = "image.dlib")
remotes::install_github("bnosac/image", subdir = "image.darknet")
remotes::install_github("bnosac/image", subdir = "image.DenoiseNLMeans")
remotes::install_github("bnosac/image", subdir = "image.libfacedetection")
remotes::install_github("bnosac/image", subdir = "image.OpenPano")

CI builds

Support in image recognition

Need support in image recognition? Contact BNOSAC: http://www.bnosac.be