jQuery r.getClientRects is not a function


Processing: face.png…Processing: jquery.facedetection.min.js…
jquery-3.2.1.min.js (84.6 KB)

<!DOCTYPE html>
<html>
<head>
  <script src="jquery-3.2.1.min.js"></script>
  <script src="jquery.facedetection.min.js"></script>
  <script src="index.js"></script>      
</head>
<style>
  body {
    color: white;
    padding: 0 16px;
  }
  li:before {
    content: '• ';
    width: 3em;
  }

  #layers {
    border: 1px solid #808080;
    border-radius: 4px;
    padding: 16px;
  }
</style>
<body>
  <img id="picture" src="face.png">
</body>
<script>
  $('#picture').faceDetection({
      complete: function (faces) {
          console.log(faces);
      }
  });   
</script>
</html>