function toDlibPts(boxEl){
    var data = "version: 1\n"
            +"n_points:  "+boxEl.children().length+"\n"
            +"{\n";
    var l = boxEl.position().left, t = boxEl.position().top;
    boxEl.children().each(function(){
        data += ($(this).position().left + l ) + " " + ($(this).position().top + t) + "\n";
    });

    data += "}";

    return data;
}
/*PTS file contains landmark points location without label and of single label box only  */
PTS file contains landmark points location without label and of single label box only
PTS file contains landmark points location without label and of single label box only
function toDlibPts(boxEl){
    var data = "version: 1\n"
            +"n_points:  "+boxEl.children().length+"\n"
            +"{\n";
    var l = boxEl.position().left, t = boxEl.position().top;
    boxEl.children().each(function(){
        data += ($(this).position().left + l ) + " " + ($(this).position().top + t) + "\n";
    });
    data += "}";
    return data;
}
function toDlibPts ( boxEl ) { var data = "version: 1\n" + "n_points:  " + boxEl . children ( ) . length + "\n" + "{\n" ; var l = boxEl . position ( ) . left , t = boxEl . position ( ) . top ; boxEl . children ( ) . each ( function ( ) { data += ( $ ( this ) . position ( ) . left + l ) + " " + ( $ ( this ) . position ( ) . top + t ) + "\n" ; } ) ; data += "}" ; return data ; }
PTS file contains landmark points location without label and of single label box only
PTS file contains landmark points location without label and of single label box only