Closed KallynGowdy closed 2 years ago
os.openImageClassifier(options)
os.closeImageClassifier()
@onClick
MY_MODEL_URL
await os.openImageClassifier({ modelUrl: 'MY_MODEL_URL', });
options
modelUrl
modelJsonUrl
modelMetadataUrl
cameraType
:rocket: Improvements
os.openImageClassifier(options)
andos.closeImageClassifier()
functions.@onClick
tag and put the following code in it (replacingMY_MODEL_URL
with the shareable link):options
is an object with the following properties:modelUrl
- The sharable link that was generated from Teachable Machine.modelJsonUrl
- Is optional and can be used in advanced scenarios where you want to control where the model is stored.modelMetadataUrl
- Is optional and can be used in advanced scenarios where you want to control where the model is stored.cameraType
- Is optional and is the type of camera that should be preferred. Can be "front" or "rear".