pexea12

FaceDetectionConfig

Aug 13th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.84 KB | None | 0 0
  1. {
  2.     // Location of data file which contains array of frames
  3.     // Or from memory
  4.     "input": {
  5.         "mode": 0, // 0 to load from memory, 1 to load from files
  6.         "path": "/path/to/data/file", // Only work with mode = 1
  7.     },
  8.     "output": {
  9.         "mode": 0,
  10.         // 0: Return list of bounding boxes for each frame only (2 points: top-left and bottom-right points)
  11.         // 1: Return list of frames rendered with bounding boxes
  12.         //    and a list of bounding boxes for each frame
  13.     },
  14.     "algorithms": {
  15.         "mode": 0,
  16.         // 0: haar_cascade
  17.         // 1: mtcnn
  18.         // 2: dlib
  19.         // 3:
  20.         "haar": {
  21.             "path": "/path/to/haar/model",
  22.             "scaleFactor": 1.4, // how much the image size is reduced at each image scale.
  23.             "minNeightbors": 3, // how many neighbors each rectangle should have
  24.             "minSize": [3, 4], // smaller are ignored. Default: []
  25.             "maxSize": [10, 11] // larger are ignored. Default: []
  26.         },
  27.         "mtcnn": {
  28.             "gpu": true, // whether to use GPU
  29.             "paths": [
  30.                 "path/to/p_net",
  31.                 "path/to/r_net",
  32.                 "path/to/o_net"
  33.             ], // path to models
  34.             "min_face_size": [10, 10],
  35.             "stride": 2,
  36.             "threshold": 0.4,
  37.             "slide_window": false
  38.         },
  39.         "fhog": { // Dlib
  40.             "layers": 1, // number of layers
  41.         },
  42.         "lbp": {
  43.             "path": "/path/to/lbp/model",
  44.             "scaleFactor": 1.4, // how much the image size is reduced at each image scale.
  45.             "minNeightbors": 3, // how many neighbors each rectangle should have
  46.             "minSize": [3, 4], // smaller are ignored. Default: []
  47.             "maxSize": [10, 11] // larger are ignored. Default: []
  48.         }
  49.     }
  50. }
Add Comment
Please, Sign In to add comment