com.supermap.ai
Class AIDetectViewInfo
- java.lang.Object
-
- com.supermap.ai.AIDetectViewInfo
-
public class AIDetectViewInfo extends java.lang.ObjectAIDetectView initialization parameter class- Example:
- The following codes illustrate how to associate a model file. Copy and paste detect.tflite and labelmap.txt in the folder AidetectData of the folder SampelData to the folder assets.
aidetectViewInfo=new AidetectViewInfo(); aidetectViewInfo.assetManager=getAssets(); aidetectViewInfo.modeFile = "detect.tflite"; aidetectViewInfo.lableFile = "file:///android_asset/labelmap.txt"; aidetectViewInfo.inputSize = 300; aidetectViewInfo.isQUANTIZED = true;
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAIDetectViewInfo.FileTypeModel file types
-
Field Summary
Fields Modifier and Type Field and Description android.content.res.AssetManagerassetManagerassetManager to save model filesAIDetectViewInfo.FileTypefileTypeTypes of model filesintinputSizeInput sizebooleanisQUANTIZEDWhether to quantifyjava.lang.StringlableFilePaths of label filesjava.lang.StringmodeFilePaths of model files
-
Constructor Summary
Constructors Constructor and Description AIDetectViewInfo()
-
-
-
Field Detail
-
assetManager
public android.content.res.AssetManager assetManager
assetManager to save model files
-
modeFile
public java.lang.String modeFile
Paths of model files
-
lableFile
public java.lang.String lableFile
Paths of label files
-
inputSize
public int inputSize
Input size
-
isQUANTIZED
public boolean isQUANTIZED
Whether to quantify
-
fileType
public AIDetectViewInfo.FileType fileType
Types of model files
-
-