
<view class="buttons">
    <button class="{{pos_class}}" bind:tap="set_pos">Pos</button>
    <button class="{{neg_class}}" bind:tap="set_neg">Neg</button>
    <button class="{{stop_class}}" bind:tap="stop">Stop</button>
    <button bind:tap="zoom_1x">1x</button>
    <button bind:tap="zoom_2x">2x</button>
    <button bind:tap="zoom_4x">4x</button>
    <view>
        uploaded: {{ uploaded }}
        failed: {{ failed }}
    </view>
</view>
<camera class="camera" flash="{{ camera_flash }}"
        mode="normal"
        frame-size="large"
        resolution="high"
        bindinitdone="setup_camera"></camera>