YD_WeChatApplet/module-sport/components/human-detection.wxml

25 lines
1018 B
Plaintext
Raw Normal View History

2025-06-06 15:17:30 +08:00
<view class="human-detection">
<camera id="preview" class="preview" flash="off" style="{{videoStyle}}" device-position="{{deviceKey}}" resolution="medium" frame-size="small" bindinitdone="onCameraReady" binderror="onCameraError"></camera>
<!-- <canvas wx:if="{{poseDrawEnabled}}" class="preview graphs" type="2d" id="graphics" style="{{videoStyle}}"></canvas> -->
<view class="toggle-camera-wrapper" hover-class="toggle-camera-wrapper-hover" bindtap="toggleCamera" style="top:{{topp}}px;">
<iconfont name="camera-toggle" size="50rpx" />
</view>
<!-- <view class="human-indicate-wrapper {{isHumanBody ? 'active' : ''}}">
<iconfont name="human-body" size="32px" />
</view> -->
<view wx:if="{{extendInfo}}" class="info-box">
<view>
<label>采集FPS</label>
<text>{{fps || 0}}</text>
</view>
<view>
<label>识别FPS</label>
<text>{{poseFps || 0}}</text>
</view>
</view>
</view>