recognize: Recognize Image (Human Face)

Description Usage Arguments Examples

Description

Function for recognizing the image using the model trained from the data.

Usage

1
recognize(x, y, rule = "simple f-share", display = TRUE)

Arguments

x

string input; image file input to be recognize.

y

model supervised on learning from the training dataset.

rule

string input; stopping rule for choosing number of principal components. Options are: 'simple f-share' for simple fair-share; 'broken stick'; and, 'rel-broken stick' for relative broken stick stopping rule.

display

displays the input image, and the corresponding output image – as recognized by the model.

Examples

1
2
3
4
5
6
7
library(fr)

# Import all images in the directory "data/jaffe/"
imgData <- importImges("~/Documents/Data/jaffe/", display = FALSE)

model <- learn(imgData)
a <- recognize("~/Documents/Data/jaffe/KA.FE3.47.tiff", criterion, display = TRUE, rule = "rel-broken stick")

alstat/face documentation built on May 11, 2019, 11:29 p.m.