LACE

LACE is an image/video filter which is designed to optimally enhance the contrast in an intelligent manner.

How to perform LACE on a Video

Request LACE on a supplied video clip.

POST /enhance/lace
POST /enhance/lace/ HTTP/1.1
Host: api.videoai.net
Authorization: Basic XXXXX

Example request:

$ curl -L -H "Authorization: Basic XXXX" -F video=@dark.avi  http://api.videoai.net/enhance/lace

Example response:

HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 213
Server: Werkzeug/0.11.4 Python/2.7.10
Date: Tue, 19 Apr 2016 14:18:06 GMT
{
"status": "success",
"task": {
    "analytic": "enhance",
    "complete": false,
    "job_id": "rHNuWNixh4iuRJJohhomLQ",
    "message": "In progress.",
    "start_time": "Tue, 19 Apr 2016 14:18:06 GMT"
    }
}

Check Job Status

Get the status of a particular LACE task

GET /enhance/(string: job_id)
GET /enhance/(string:job_id) HTTP/1.1
Host: api.videoai.net
Authorization: Basic XXXXX

Example request:

$ curl -L -H "Authorization: Basic XXXX" http://api.videoai.net/enhance/rHNuWNixh4iuRJJohhomLQ

Example response:

HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 634
Server: Werkzeug/0.11.4 Python/2.7.10
Date: Tue, 19 Apr 2016 14:18:08 GMT
{
"status": "success",
"task": {
    "algorithm": "stabilisation",
    "analytic": "enhance",
    "complete": true,
    "finish_time": "Tue, 19 Apr 2016 14:18:08 GMT",
    "fps": 12.0,
    "frames": 669,
    "frames_processed": -1,
    "height": 200,
    "input_video": "vegetation.avi",
    "job_id": "rHNuWNixh4iuRJJohhomLQ",
    "message": "Lace video",
    "resolution": "352x200@12.0fps",
    "results_video": "http://192.168.90.53:5000/results/110/rHNuWNixh4iuRJJohhomLQ/enhance_rHNuWNixh4iuRJJohhomLQ.mp4",
    "start_frame": 0,
    "start_time": "Tue, 19 Apr 2016 14:18:06 GMT",
    "success": true,
    "width": 352
    }
}