disable text detection
This commit is contained in:
parent
5db40129b1
commit
3b8c80a22c
1 changed files with 7 additions and 6 deletions
|
@ -29,7 +29,7 @@ import { MAX_ML_SYNC_ERROR_COUNT } from 'constants/machineLearning/config';
|
||||||
import FaceService from './faceService';
|
import FaceService from './faceService';
|
||||||
import PeopleService from './peopleService';
|
import PeopleService from './peopleService';
|
||||||
import ObjectService from './objectService';
|
import ObjectService from './objectService';
|
||||||
import TextService from './textService';
|
// import TextService from './textService';
|
||||||
class MachineLearningService {
|
class MachineLearningService {
|
||||||
private initialized = false;
|
private initialized = false;
|
||||||
// private faceDetectionService: FaceDetectionService;
|
// private faceDetectionService: FaceDetectionService;
|
||||||
|
@ -384,6 +384,7 @@ class MachineLearningService {
|
||||||
syncContext: MLSyncContext,
|
syncContext: MLSyncContext,
|
||||||
enteFile: EnteFile,
|
enteFile: EnteFile,
|
||||||
localFile?: globalThis.File,
|
localFile?: globalThis.File,
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
textDetectionTimeoutIndex?: number
|
textDetectionTimeoutIndex?: number
|
||||||
) {
|
) {
|
||||||
const fileContext: MLSyncFileContext = { enteFile, localFile };
|
const fileContext: MLSyncFileContext = { enteFile, localFile };
|
||||||
|
@ -430,11 +431,11 @@ class MachineLearningService {
|
||||||
syncContext,
|
syncContext,
|
||||||
fileContext
|
fileContext
|
||||||
),
|
),
|
||||||
TextService.syncFileTextDetections(
|
// TextService.syncFileTextDetections(
|
||||||
syncContext,
|
// syncContext,
|
||||||
fileContext,
|
// fileContext,
|
||||||
textDetectionTimeoutIndex
|
// textDetectionTimeoutIndex
|
||||||
),
|
// ),
|
||||||
]);
|
]);
|
||||||
newMlFile.errorCount = 0;
|
newMlFile.errorCount = 0;
|
||||||
newMlFile.lastErrorMessage = undefined;
|
newMlFile.lastErrorMessage = undefined;
|
||||||
|
|
Loading…
Add table
Reference in a new issue