-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdemoInfo.ts
More file actions
63 lines (58 loc) · 1.78 KB
/
Copy pathdemoInfo.ts
File metadata and controls
63 lines (58 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { Platform } from "react-native"
import { AppStackParamList } from "../../navigators"
export interface DemoInfo {
title: string
description: string
screen: keyof AppStackParamList
image?: number
}
const FACE_DETECTION = require("../../../assets/images/face-detection.jpg")
const FACE_HOLDER = require("../../../assets/images/welcome-face.png")
const DOCUMENT_SCANNER = require("../../../assets/images/doc-scanner.png")
const TEXT_RECOGNITION = require("../../../assets/images/text-recognition.png")
const ANDROID_ONLY_DEMOS: DemoInfo[] = [
{
title: "Document Scanner",
description: "Quickly and easily digitize paper documents on Android",
screen: "DocumentScanner",
image: DOCUMENT_SCANNER,
},
]
const PLATFORM_SPECIFIC_DEMOS: DemoInfo[] = Platform.select({
android: ANDROID_ONLY_DEMOS,
default: [],
})
// List of available demos as a typescript object
export const DEMO_LIST: DemoInfo[] = [
{
title: "Object Detection",
description: "Detect objects or license plates in a photo using RNMLKitObjectDetection",
screen: "ObjectDetection",
image: FACE_HOLDER,
},
{
title: "Face Detection",
description: "Detect faces in a photo, using RNMLKitFaceDetection",
screen: "FaceDetection",
image: FACE_DETECTION,
},
{
title: "Image Labeling with NSFWjs",
description: "Classify Images as SFW or NSFW using RNMLKit and the NSFWJS TFLite Model",
screen: "ImageLabeling",
image: FACE_HOLDER,
},
{
title: "Text recognition",
description: "Recognize text in an image",
screen: "TextRecognition",
image: TEXT_RECOGNITION,
},
{
title: "Barcode Scanning",
description: "Scan barcodes and QR codes from images",
screen: "BarcodeScanning",
image: FACE_HOLDER,
},
...PLATFORM_SPECIFIC_DEMOS,
]