<commit_before><commit_msg>add detect_face_local.js<commit_after>var AWS = require("aws-sdk");
var rekognition = new AWS.Rekognition({region: 'us-west-2'});
var fs = require('fs');

var file = fs.readFile('./outan_confused04.JPG', function (err, data) {
  if (err) { console.log("error happend while read the file");}
  else {
    console.log("file read succuss");
    var params = {
      Attributes: [
          "ALL"
      ],
      Image: {
          Bytes: data
      }
    }

    rekognition.detectFaces(params, function(err, data) {
      if (err) console.log(err, err.stack); // an error occurred
      else {
        console.log(JSON.stringify(data, null, 5));
      }
    });
  }
});


{'fraction_non_alphanumeric': 0.1585014409221902, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 2.6578947368421053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2055984', 'n_tokens_mistral': 240, 'n_tokens_neox': 229, 'n_words': 51}