2025-06-06 15:17:30 +08:00

84 lines
2.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
* 首页
*
* @ndchs520
* 20250221 created.
-->
<view class="container">
<view class="title">
<image src="../../static/logo.png" />
<text>跃动「小程序」演示</text>
</view>
<view class="box">
<label>插件版本:</label>
<view class="row">
<view class="button-item active">v{{version}}</view>
</view>
<label>识别引擎:</label>
<view class="row">
<view
class="button-item {{ve === null ? 'active' : ''}}"
bindtap="onSelectVe"
data-v="null"
>自动</view>
<view
class="button-item {{ve === 1 ? 'active' : ''}}"
bindtap="onSelectVe"
data-v="1"
>ve1</view>
<view
class="button-item {{ve === 2 ? 'active' : ''}}"
bindtap="onSelectVe"
data-v="2"
>ve2</view>
<iconfont
name="about"
bindtap="onShowTips"
data-msg="ve1识别率及精度高识别帧率及兼容性稍差ve2识别帧率及兼容性更好精度稍差。推荐使用自动模式。"
/>
</view>
<view class="row">
<view
class="button-item {{enhanced ? 'active' : ''}}"
bindtap="onToggleEnhanced"
>增强模式</view>
<iconfont
name="about"
bindtap="onShowTips"
data-msg="是否启用ve1的增强识别模式针对MTK天玑系列芯片GPU性能精度不足问题优化需要升级最新版微信。"
/>
</view>
<label>参数设定:</label>
<view class="row">
<input
type="number"
value="{{threshold}}"
placeholder="人体检测阈值0-1之间"
bindblur="onThresholdChanged"
/>
<iconfont
name="about"
bindtap="onShowTips"
data-msg="人体置信度要求值越大精度越高通过率越差推荐0.3-0.35之间。"
/>
</view>
<label>运动选择:</label>
<view class="row">
<view
wx:for="{{sports}}"
wx:key="key"
class="button-item {{item.key === sportKey ? 'active' : ''}}"
bindtap="onSelectSport"
data-key="{{item.key}}"
>{{item.name}}</view>
</view>
<button class="button primary" bindtap="onNavSport">运动锻炼</button>
<button class="button success" bindtap="onNavHuman">人体检测</button>
</view>
</view>