fix name
This commit is contained in:
parent
090a523343
commit
de3bdfecb3
|
@ -49,7 +49,7 @@ export const DEFAULT_ML_SYNC_CONFIG: MLSyncConfig = {
|
||||||
minScore: 0.2,
|
minScore: 0.2,
|
||||||
},
|
},
|
||||||
sceneDetection: {
|
sceneDetection: {
|
||||||
method: 'Image-Scene',
|
method: 'ImageScene',
|
||||||
minScore: 0.1,
|
minScore: 0.1,
|
||||||
},
|
},
|
||||||
textDetection: {
|
textDetection: {
|
||||||
|
|
|
@ -14,7 +14,7 @@ class ImageScene implements SceneDetectionService {
|
||||||
|
|
||||||
public constructor() {
|
public constructor() {
|
||||||
this.method = {
|
this.method = {
|
||||||
value: 'Image-Scene',
|
value: 'ImageScene',
|
||||||
version: 1,
|
version: 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class ImageScene implements SceneDetectionService {
|
||||||
const model = await tfjsConverter.loadGraphModel(
|
const model = await tfjsConverter.loadGraphModel(
|
||||||
'/models/imagescene/model.json'
|
'/models/imagescene/model.json'
|
||||||
);
|
);
|
||||||
console.log('loaded image-scene model', model, tf.getBackend());
|
console.log('loaded ImageScene model', model, tf.getBackend());
|
||||||
this.model = model;
|
this.model = model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ export class MLFactory {
|
||||||
public static getSceneDetectionService(
|
public static getSceneDetectionService(
|
||||||
method: SceneDetectionMethod
|
method: SceneDetectionMethod
|
||||||
): SceneDetectionService {
|
): SceneDetectionService {
|
||||||
if (method === 'Image-Scene') {
|
if (method === 'ImageScene') {
|
||||||
return imageSceneService;
|
return imageSceneService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ export declare type FaceDetectionMethod = 'BlazeFace' | 'FaceApiSSD';
|
||||||
|
|
||||||
export declare type ObjectDetectionMethod = 'SSDMobileNetV2';
|
export declare type ObjectDetectionMethod = 'SSDMobileNetV2';
|
||||||
|
|
||||||
export declare type SceneDetectionMethod = 'Image-Scene';
|
export declare type SceneDetectionMethod = 'ImageScene';
|
||||||
|
|
||||||
export declare type TextDetectionMethod = 'Tesseract';
|
export declare type TextDetectionMethod = 'Tesseract';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue