InceptionRecognize Method |
https://www.emgu.com
Load the file, ran it through the mobile net graph and return the recognition results
Namespace:
Emgu.TF.Lite.Models
Assembly:
Emgu.TF.Lite.Models (in Emgu.TF.Lite.Models.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntaxpublic InceptionRecognitionResult[] Recognize(
string imageFile,
int width = 299,
int height = 299,
float mean = 0f,
float scale = 0.003921569f,
bool flipUpsideDown = false,
bool swapBR = true
)
Public Function Recognize (
imageFile As String,
Optional width As Integer = 299,
Optional height As Integer = 299,
Optional mean As Single = 0F,
Optional scale As Single = 0.003921569F,
Optional flipUpsideDown As Boolean = false,
Optional swapBR As Boolean = true
) As InceptionRecognitionResult()
public:
array<InceptionRecognitionResult^>^ Recognize(
String^ imageFile,
int width = 299,
int height = 299,
float mean = 0f,
float scale = 0.003921569f,
bool flipUpsideDown = false,
bool swapBR = true
)
member Recognize :
imageFile : string *
?width : int *
?height : int *
?mean : float32 *
?scale : float32 *
?flipUpsideDown : bool *
?swapBR : bool
(* Defaults:
let _width = defaultArg width 299
let _height = defaultArg height 299
let _mean = defaultArg mean 0f
let _scale = defaultArg scale 0.003921569f
let _flipUpsideDown = defaultArg flipUpsideDown false
let _swapBR = defaultArg swapBR true
*)
-> InceptionRecognitionResult[]
Parameters
- imageFile
- Type: SystemString
The image to be loaded - width (Optional)
- Type: SystemInt32
The width of the input tensor - height (Optional)
- Type: SystemInt32
The height of the input tensor - mean (Optional)
- Type: SystemSingle
The mean to be subtracted when converting the image to input tensor - scale (Optional)
- Type: SystemSingle
The scale to be multiplied when converting the image to input tensor - flipUpsideDown (Optional)
- Type: SystemBoolean
If true, the image will be flipped upside down when it is converted to input tensor - swapBR (Optional)
- Type: SystemBoolean
If true, the blue and red channel will be swapped when converting the image to input tensor
Return Value
Type:
InceptionRecognitionResultThe recognition result sorted by probability
See Also