title: Can a perfect circle encompassing face be formed using euler angle in face detector
body: <p>I have following code:</p>
  
  <pre><code>protected void onDraw(Canvas canvas)
          {
              paint.setStyle(Paint.Style.STROKE);
              paint.setColor(Color.RED);
  
              xRatio = getWidth()*1.0f / picWidth;
              yRatio = getHeight()*1.0f / picHeight;                      
              canvas.drawBitmap( sourceImage, null , new Rect(0,0,getWidth(),getHeight()),paint);
  
              for (int i = 0; i &lt; eyesMidPts.length; i++)
              {
                  if (eyesMidPts[i] != null)
                  {
                      // where x and y are eyes mid point coordinates
  
                      float x = eyesMidPts[i].x*xRatio;
                      float y = eyesMidPts[i].y*yRatio;
                      float radius = (float) (eyesDistance[i]);
                      float left =  x - radius;
                      float right = x + radius;
                      float top = y - radius;
                      // we want to increase the bottom radius by double to get other half of the face.
                      float bottom = (float) (y + radius * 2);                    
  
                      paint.setStrokeWidth(eyesDistance[i] /20);                  
                      RectF ovalBounds = new RectF();
                      ovalBounds.set(left, top, right, bottom);                                                       
                      canvas.drawOval(ovalBounds, paint);                                     
                  }
              }           
          }   
  </code></pre>
  
  <p>Code encompass full face if face is straight. But does not get complete circle around if face is tilted. I am not sure how euler angels work but am hoping it is to get tilt on the face detection. Can someone please help me with this show me some example code so that circle encompasses whole face.</p>