vision-camera-face-detector icon indicating copy to clipboard operation
vision-camera-face-detector copied to clipboard

How should bounds correspond to the screen?

Open ShaoGongBra opened this issue 9 months ago • 0 comments

{
  "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

ShaoGongBra avatar May 12 '24 09:05 ShaoGongBra