public static final class SEEngine.SERecognition
extends com.neurotec.lang.NAbstractObjectPart
| Modifier and Type | Class and Description |
|---|---|
static class |
SEEngine.SERecognition.RecognitionDetailsCollection
Provides detailed information about recognition (recognize method) results.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
PARAMETER_FEATURE_TYPE
Selects between blob type features which are more appropriate for texture
rich objects and shape like features which are more appropriate for
textureless but having distinguish shapes (like cup of coffe) for scene
image during recognition.
|
static int |
PARAMETER_IMAGE_RESCALE_FACTOR
Sets to rescale image before processing in recognition.
|
static int |
PARAMETER_SHAPE_SCALING_LEVEL
Identifier specifying how many times to reduce image size to capture
difference appearance of the shape duo to visual differences on smaller
scales.
|
static int |
PARAMETER_SPEED
Sets SentiSight recognition speed.
|
static int |
PARAMETER_TRANSFORM_TYPE
Sets transform type to be used in recognition to align shape.
|
static int |
PARAMETER_TRESHOLD
Specifies recognition threshold.
|
static int |
PARAMETER_USE_COLOR_INFORMATION |
static int |
PARAMETER_USE_TRACKING
Specifies whether to track the object during object recognition or not.
|
| Modifier and Type | Method and Description |
|---|---|
SEStatus |
addModel(SEModel model,
Object modelId)
Adds a learnt model of the object.
|
SEFeatureType |
getFeatureType()
Gets objects and shapes feature type for recognition.
|
double |
getImageRescaleFactor()
Gets image rescale value.
|
Object[] |
getModelIds()
Returns all ids for the model being recognized.
|
SEEngine.SERecognition.RecognitionDetailsCollection |
getRecognitionDetails()
Gets the RecognitionDetailsCollection.
|
int |
getShapeScalingLevel()
Gets shape scaling level (identifier specifying how many times to reduce
image size to capture different appearance of the shape due to visual
differences on smaller scales).
|
SERecSpeed |
getSpeed()
Gets SentiSight engine's recognition speed.
|
double |
getThreshold()
Gets recognition threshold.
|
float |
getTrackingImageHorizontalResolution()
Gets images horizontal resolution used by tracking.
|
Dimension |
getTrackingImageSize()
Gets an image size used by tracking.
Tracking of the object in a sequence of test images is enabled/disabled through setUseTracking method. |
float |
getTrackingImageVerticalResolution()
Gets images vertical resolution used by tracking.
|
int |
getTrackingRecognitionPeriod()
Gets tracking recognition period.
|
SERecTransformType |
getTransformType()
Gets the transform type for SentiSight recognition.
|
boolean |
getUseColorInformation()
Gets recognition color information value.
|
boolean |
getUseTracking()
Checks if object tracking is enabled during object recognition.
This identifier is used during object recognition with test images (recognize method). |
boolean |
isTrackingImageResolutionIsAspectRatio()
Gets images aspect ratio toggle used by tracking.
|
boolean |
recognize(com.neurotec.images.NImage image)
Compares a test image with models which were set to the recognition
module.
If image has different horizontal and vertical resolution, the lowest side will be increased (image should have equal horizontal and vertical resolution). |
void |
removeAllModels()
Removes all models added to the recognition engine.
|
void |
removeModel(Object modelId)
Removes the model and it will not be used in recognize method.
|
void |
setFeatureType(SEFeatureType value)
Sets objects and shapes feature type for recognition.
|
void |
setImageRescaleFactor(double value)
Sets image rescale value.
|
void |
setShapeScalingLevel(int value)
Sets shape scaling level (identifier specifying how many times to reduce
image size to capture different appearance of the shape due to visual
differences on smaller scales).
|
void |
setSpeed(SERecSpeed value)
Sets SentiSight engine's recognition speed.
|
void |
setThreshold(double value)
Sets recognition threshold.
|
void |
setTrackingImageSize(Dimension value)
Sets an image size used by tracking.
Tracking of the object in a sequence of test images is enabled/disabled through setUseTracking method. |
void |
setTrackingImageSize(Dimension size,
float horizontalResolution,
float verticalResolution,
boolean resolutionIsAspectRatio)
Sets the size and resolution parameters of images used for tracking.
|
void |
setTrackingRecognitionPeriod(int value)
Sets tracking recognition period.
|
void |
setTransformType(SERecTransformType value)
Sets the transform type for SentiSight recognition.
|
void |
setUseColorInformation(boolean value)
Sets recognition color information value.
|
void |
setUseTracking(boolean value)
Enables / disables object tracking during object recognition.
This identifier is used during object recognition with test images (recognize method). |
public static final int PARAMETER_USE_TRACKING
public static final int PARAMETER_SPEED
public static final int PARAMETER_TRANSFORM_TYPE
public static final int PARAMETER_TRESHOLD
public static final int PARAMETER_FEATURE_TYPE
public static final int PARAMETER_SHAPE_SCALING_LEVEL
public static final int PARAMETER_IMAGE_RESCALE_FACTOR
public static final int PARAMETER_USE_COLOR_INFORMATION
public SEStatus addModel(SEModel model, Object modelId)
model - Object model to add.modelId - A specified model identifier. Later it will be referred in
recognition functions as returned value of best recognized model id. Its
value may be numeric, literal or any other type. It must be unique for
all models added to recognition module.public void removeModel(Object modelId)
modelId - A model Id. It should be the same as provided to addModel
method.public void removeAllModels()
public Object[] getModelIds()
public boolean recognize(com.neurotec.images.NImage image)
image - A test image to be recognized. It should be 3 channels RGB
image. If tracking is used, the image size must be the same as set to the
SERecognition object.public Dimension getTrackingImageSize()
public void setTrackingImageSize(Dimension value)
value - Image size used by tracking.public void setTrackingImageSize(Dimension size, float horizontalResolution, float verticalResolution, boolean resolutionIsAspectRatio)
size - The size of the images that will be passed to Recognize calls when tracking is enabled.horizontalResolution - The horizontal resolution of the images that will be passed to Recognize calls when tracking is enabled.verticalResolution - The vertical resolution of the images that will be passed to Recognize calls when tracking is enabled.resolutionIsAspectRatio - Specifies whether the vertical and horizontal resolution parameters constitute the images aspect ratio.
Tracking of the object in a sequence of test images is enabled/disabled through UseTracking property.
Actual tracking is performed by sequentially calling Recognize method.public float getTrackingImageVerticalResolution()
public float getTrackingImageHorizontalResolution()
public boolean isTrackingImageResolutionIsAspectRatio()
public SEEngine.SERecognition.RecognitionDetailsCollection getRecognitionDetails()
public boolean getUseTracking()
public void setUseTracking(boolean value)
public SERecSpeed getSpeed()
public void setSpeed(SERecSpeed value)
value - SentiSight engine's recognition speed.public SERecTransformType getTransformType()
public void setTransformType(SERecTransformType value)
value - A transform type.public double getThreshold()
public void setThreshold(double value)
value - Recognition threshold value.public SEFeatureType getFeatureType()
public void setFeatureType(SEFeatureType value)
value - One of SEFeatureType values.public int getShapeScalingLevel()
public void setShapeScalingLevel(int value)
value - Shape scaling level.public double getImageRescaleFactor()
public void setImageRescaleFactor(double value)
value - Image rescale factor value (double type).public int getTrackingRecognitionPeriod()
public void setTrackingRecognitionPeriod(int value)
value - The number of frames that have to pass before recognition is executed.public boolean getUseColorInformation()
public void setUseColorInformation(boolean value)
value - Boolean value indicating recognition color information.Copyright © 2016 Neurotechnology. All rights reserved.