Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // Location of data file which contains array of frames
- // Or from memory
- "input": {
- "mode": 0, // 0 to load from memory, 1 to load from files
- "path": "/path/to/data/file", // Only work with mode = 1
- },
- "output": {
- "mode": 0,
- // 0: Return list of bounding boxes for each frame only (2 points: top-left and bottom-right points)
- // 1: Return list of frames rendered with bounding boxes
- // and a list of bounding boxes for each frame
- },
- "algorithms": {
- "mode": 0,
- // 0: haar_cascade
- // 1: mtcnn
- // 2: dlib
- // 3:
- "haar": {
- "path": "/path/to/haar/model",
- "scaleFactor": 1.4, // how much the image size is reduced at each image scale.
- "minNeightbors": 3, // how many neighbors each rectangle should have
- "minSize": [3, 4], // smaller are ignored. Default: []
- "maxSize": [10, 11] // larger are ignored. Default: []
- },
- "mtcnn": {
- "gpu": true, // whether to use GPU
- "paths": [
- "path/to/p_net",
- "path/to/r_net",
- "path/to/o_net"
- ], // path to models
- "min_face_size": [10, 10],
- "stride": 2,
- "threshold": 0.4,
- "slide_window": false
- },
- "fhog": { // Dlib
- "layers": 1, // number of layers
- },
- "lbp": {
- "path": "/path/to/lbp/model",
- "scaleFactor": 1.4, // how much the image size is reduced at each image scale.
- "minNeightbors": 3, // how many neighbors each rectangle should have
- "minSize": [3, 4], // smaller are ignored. Default: []
- "maxSize": [10, 11] // larger are ignored. Default: []
- }
- }
- }
Add Comment
Please, Sign In to add comment