|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.util.plugins.PluginBase
org.neuroph.contrib.imgrec.ImageRecognitionPlugin
public class ImageRecognitionPlugin
Provides image recognition specific properties like sampling resolution, and easy to use image recognition interface for neural network.
Field Summary | |
---|---|
static java.lang.String |
IMG_REC_PLUGIN_NAME
|
Constructor Summary | |
---|---|
ImageRecognitionPlugin(java.awt.Dimension samplingResolution)
Constructor |
|
ImageRecognitionPlugin(java.awt.Dimension samplingResolution,
ColorMode colorMode)
Constructor |
Method Summary | |
---|---|
ColorMode |
getColorMode()
Returns color mode used for image recognition |
java.util.HashMap<java.lang.String,Neuron> |
getMaxOutput()
Returns one or more image labels with the maximum output - recognized images |
java.util.HashMap<java.lang.String,java.lang.Double> |
getOutput()
Returns image recognition result as map with image labels as keys and recogition result as value |
java.awt.Dimension |
getSamplingResolution()
Returns image sampling resolution (dimensions) |
void |
processInput()
|
java.util.HashMap<java.lang.String,java.lang.Double> |
recognizeImage(java.awt.image.BufferedImage img)
This method performs the image recognition for specified image. |
java.util.HashMap<java.lang.String,java.lang.Double> |
recognizeImage(java.io.File imgFile)
This method performs the image recognition for specified image file. |
java.util.HashMap<java.lang.String,java.lang.Double> |
recognizeImage(java.net.URL imgURL)
This method performs the image recognition for specified image URL. |
void |
setInput(java.awt.image.BufferedImage img)
Sets network input (image to recognize) from the specified BufferedImage object |
void |
setInput(java.io.File imgFile)
Sets network input (image to recognize) from the specified File object |
void |
setInput(java.net.URL imgURL)
Sets network input (image to recognize) from the specified URL object |
Methods inherited from class org.neuroph.util.plugins.PluginBase |
---|
getName, getParentNetwork, setParentNetwork |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IMG_REC_PLUGIN_NAME
Constructor Detail |
---|
public ImageRecognitionPlugin(java.awt.Dimension samplingResolution)
samplingResolution
- image sampling resolution (dimensions)public ImageRecognitionPlugin(java.awt.Dimension samplingResolution, ColorMode colorMode)
samplingResolution
- image sampling resolution (dimensions)colorMode
- recognition color modeMethod Detail |
---|
public java.awt.Dimension getSamplingResolution()
public ColorMode getColorMode()
public void setInput(java.awt.image.BufferedImage img)
img
- image to recognizepublic void setInput(java.io.File imgFile) throws java.io.IOException
imgFile
- file of the image to recognize
java.io.IOException
public void setInput(java.net.URL imgURL) throws java.io.IOException
imgURL
- url of the image
java.io.IOException
public void processInput()
public java.util.HashMap<java.lang.String,java.lang.Double> getOutput()
public java.util.HashMap<java.lang.String,java.lang.Double> recognizeImage(java.awt.image.BufferedImage img)
public java.util.HashMap<java.lang.String,java.lang.Double> recognizeImage(java.io.File imgFile) throws java.io.IOException
java.io.IOException
public java.util.HashMap<java.lang.String,java.lang.Double> recognizeImage(java.net.URL imgURL) throws java.io.IOException
java.io.IOException
public java.util.HashMap<java.lang.String,Neuron> getMaxOutput()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |