rodgomesc / vision-camera-face-detector

VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector
MIT License
89 stars 65 forks source link

How should bounds correspond to the screen? #51

Open ShaoGongBra opened 1 month ago

ShaoGongBra commented 1 month ago
{
  "boundingCenterX": 261,
  "boundingCenterY": 364,
  "boundingExactCenterX": 261.5,
  "boundingExactCenterY": 364.5,
  "height": 275,
  "width": 275,
  "x": 129.75,
  "y": 271.75
}
<Column
    key={index}
    className='absolute'
    style={{
      width: item.bounds.width,
      height: item.bounds.height,
      left: item.bounds.boundingCenterX - item.bounds.width / 2,
      top: item.bounds.boundingCenterY - item.bounds.height / 2,
      // left: item.bounds.x,
      // top: item.bounds.y,
      borderWidth: px(4),
      borderColor: '#999'
    }}
  />

This writing style doesn't seem to correspond to anything