codeSTACKr / Face-Detection

From YouTube Tutorial
45 stars 75 forks source link

Landmarks drawn too far apart #2

Open Hangmansraven opened 3 years ago

Hangmansraven commented 3 years ago

The landmarks seem to be drawn too far apart, they do not fit the face in the video properly. It was already noticed but not fixed in the YouTube tutorial. Any suggestions how to adjust the size properly?

tangmingsh commented 3 years ago

apply css

 <style>
    body {
      margin: 0;
      padding: 0;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column
    }

    canvas {
      position: absolute;
      top: 0;
      left: 0;
    }
  </style>