khulnasoft commited on
Commit
a9cc494
1 Parent(s): 287e861

Create license_plates.json

Browse files
Files changed (1) hide show
  1. configs/license_plates.json +59 -0
configs/license_plates.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "specification":{
3
+ "version":"1.0",
4
+ "inputs":[
5
+ {
6
+ "type":"InferenceImage",
7
+ "name":"image"
8
+ }
9
+ ],
10
+ "steps":[
11
+ {
12
+ "type":"ObjectDetectionModel",
13
+ "name":"plates_detector",
14
+ "image":"$inputs.image",
15
+ "model_id":"vehicle-registration-plates-trudk/2"
16
+ },
17
+ {
18
+ "type":"DetectionOffset",
19
+ "name":"offset",
20
+ "predictions":"$steps.plates_detector.predictions",
21
+ "offset_x":200,
22
+ "offset_y":40
23
+ },
24
+ {
25
+ "type":"Crop",
26
+ "name":"cropping",
27
+ "image":"$inputs.image",
28
+ "detections":"$steps.offset.predictions"
29
+ },
30
+ {
31
+ "type":"OCRModel",
32
+ "name":"step_ocr",
33
+ "image":"$steps.cropping.crops"
34
+ }
35
+ ],
36
+ "outputs":[
37
+ {
38
+ "type":"JsonField",
39
+ "name":"predictions",
40
+ "selector":"$steps.plates_detector.predictions"
41
+ },
42
+ {
43
+ "type":"JsonField",
44
+ "name":"image",
45
+ "selector":"$steps.plates_detector.image"
46
+ },
47
+ {
48
+ "type":"JsonField",
49
+ "name":"recognised_plates",
50
+ "selector":"$steps.step_ocr.result"
51
+ },
52
+ {
53
+ "type":"JsonField",
54
+ "name":"crops",
55
+ "selector":"$steps.cropping.crops"
56
+ }
57
+ ]
58
+ }
59
+ }