Class ImageObject
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
- API Level:
- 4
- Feature:
- http://tizen.org/feature/vision.image_recognition
Represents an image object.
C#Copypublic class ImageObject : IDisposable
- Inheritance
-
System.ObjectImageObject
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic ImageObject()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The feature is not supported. |
API Level: 4
ImageObject(String)
Initializes a new instance of the ImageObject class from the specified file.
Declaration
C#Copypublic ImageObject(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to the image object to load. |
Remarks
ImageObject has been saved by Save(String) can be loaded.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.IO.FileNotFoundException |
|
System.NotSupportedException | The feature is not supported. |
UnauthorizedAccessException | No permission to access the specified file. |
See Also
API Level: 4
Properties
RecognitionRate
Gets a value that determines how well an image object can be recognized.
Declaration
C#Copypublic double RecognitionRate { get; }
Property Value
Type | Description |
---|---|
System.Double | Recognition rate determines how well an image object can be recognized. This value can be from 0 to 1. If the recognition rate is 0 object can not be recognized and the bigger it is the more likely to recognize the object. |
Remarks
If recognition rate is too low, try to use another image or change some configuration parameters and fill the image object again.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The ImageObject has already been disposed of. |
See Also
API Level: 4
Methods
Declaration
C#Copypublic void Dispose()
API Level: 4
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; otherwise false to release only unmanaged resources. |
API Level: 4
Fill(MediaVisionSource)
Fills the image object.
Extracts data from source image which will be needed for recognition of depicted object.
Declaration
C#Copypublic void Fill(MediaVisionSource source)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The source image where image object is depicted. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException | The ImageObject has already been disposed of. |
API Level: 4
Fill(MediaVisionSource, Rectangle)
Fills the image object.
Extracts data from source image which will be needed for recognition of depicted object
in location.
Declaration
C#Copypublic void Fill(MediaVisionSource source, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The source image where image object is depicted. |
Rectangle | rect | Rectangular bound of the image object on the source image. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException | The ImageObject has already been disposed of. |
API Level: 4
Fill(MediaVisionSource, ImageFillConfiguration)
Fills the image object.
Extracts data from source image which will be needed for recognition of depicted object.
Declaration
C#Copypublic void Fill(MediaVisionSource source, ImageFillConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The source image where image object is depicted. |
ImageFillConfiguration | config | The configuration used for extract recognition data from source. This value can be null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException | The ImageObject has already been disposed of. |
API Level: 4
Fill(MediaVisionSource, ImageFillConfiguration, Rectangle)
Fills the image object.
Extracts data from source image which will be needed for recognition of depicted object
in location.
Declaration
C#Copypublic void Fill(MediaVisionSource source, ImageFillConfiguration config, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
MediaVisionSource | source | The source image where image object is depicted. |
ImageFillConfiguration | config | The configuration used for extract recognition data from source. This value can be null. |
Rectangle | rect | Rectangular bound of the image object on the source image. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException | The ImageObject has already been disposed of. |
API Level: 4
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic int? GetLabel()
Returns
Type | Description |
---|---|
System.Nullable<Int32> | The label value if the ImageObject has label, otherwise null. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The ImageObject has already been disposed of. |
See Also
API Level: 4
Declaration
C#Copypublic void Save(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | Path to the file to save the model. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
UnauthorizedAccessException | No permission to write to the specified path. |
ObjectDisposedException | The ImageObject has already been disposed of. |
DirectoryNotFoundException | The directory for |
API Level: 4
Declaration
C#Copypublic void SetLabel(int label)
Parameters
Type | Name | Description |
---|---|---|
Int32 | label | The label which will be assigned to the image object. |