File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import handleArguments from "../utils/handleArguments";
13
13
import callCallback from "../utils/callcallback" ;
14
14
import { mediaReady } from "../utils/imageUtilities" ;
15
15
16
- const MODEL_OPTIONS = [ "cocossd" , "yolo" ] ; // Expandable for other models like YOLO
16
+ const MODEL_OPTIONS = [ "cocossd" ] ; // Expandable for other models like YOLO
17
17
18
18
class ObjectDetector {
19
19
/**
@@ -24,7 +24,7 @@ class ObjectDetector {
24
24
*/
25
25
/**
26
26
* Create ObjectDetector model. Works on video and images.
27
- * @param {string } modelNameOrUrl - The name or the URL of the model to use. Current model name options are: 'YOLO' and 'CocoSsd'.
27
+ * @param {string } modelNameOrUrl - The name or the URL of the model to use.
28
28
* @param {Object } options - Optional. A set of options.
29
29
* @param {function } callback - Optional. A callback function that is called once the model has loaded.
30
30
*/
@@ -49,9 +49,6 @@ class ObjectDetector {
49
49
case "cocossd" :
50
50
this . modelToUse = cocoSsd ;
51
51
break ;
52
- case "yolo" :
53
- this . modelToUse = yolo ;
54
- break ;
55
52
// more models... currently only cocossd is supported
56
53
default :
57
54
console . warn ( `Unknown model: ${ this . modelName } , defaulting to CocoSsd` ) ;
You can’t perform that action at this time.
0 commit comments