我目前正在使用带有Kinect的visual python来跟踪一个人右手的移动数据。通过我现在的程序,一个人的身体被跟踪屏幕上显示的骨架。我希望根据一个人在该区域更频繁地移动手的情况来绘制实时更新和增长的球体。基本上这些球体将代表运动密度。我没有运气让球体更新。任何/所有帮助将不胜感激,谢谢!
以下是我对球体的代码。我没有包含骨架代码,因为它正常工作。我是VPython /编码的业余爱好者,所以它可能不是最有效或最有组织的代码
<ion-view hide-back-button="true" view-title="{{vm.title}}">
<ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-ios-close-empty" ng-click="vm.cancelDeposit()"></button>
</ion-nav-buttons>
<ion-content>
<form name="captureCheckForm" ng-submit="vm.submitCheck(captureCheckForm)">
<!-- ERRORS -->
<div ng-show="captureCheckForm.account.$invalid && captureCheckFrom.$submited">
<div class="instruction-toast">Select Your Account</div>
</div>
<div ng-show="captureCheckForm.depositAmount.$invalid && captureCheckFrom.$submited">
<div class="instruction-toast">Enter Deposit Amount</div>
</div>
<div ng-show="captureCheckForm.checkAmount.$invalid && captureCheckFrom.$submited">
<div class="instruction-toast">Enter Check Amount</div>
</div>
<div ng-show="vm.checkFrontImage === undefined && captureCheckFrom.$submited">
<div class="instruction-toast">Capture Check Front</div>
</div>
<div ng-show="vm.checkBackImage === undefined && captureCheckFrom.$submited">
<div class="instruction-toast">Capture Check Back</div>
</div>
<!-- End ERRORS -->
<div class="list">
<!-- Account Select -->
<label class="item item-input item-select">
<div class="input-label">
Select Account
</div>
<select name="account" required ng-model="vm.selectedAccount" ng-change="vm.accountChange()">
<option ng-repeat="account in vm.accounts">{{account.accountNumber}}</option>
</select>
</label>
<!-- Deposit Amount -->
<label class="item item-input">
<span class="input-label">Deposit Amount:</span>
<input ng-currency class="currency" type="text" ng-required="true" name="depositAmount" ng-model="vm.amount" ng-change="vm.depositAmountChange()">
</label>
<!-- Check Amount -->
<label class="item item-input">
<span class="input-label">Check Amount:</span>
<input ng-currency class="currency" type="text" ng-required="true" name="checkAmount" ng-model="vm.checkAmount" ng-change="vm.checkAmountChange()">
</label>
<!-- Scan Check Front Button -->
<div class="card" ng-click="vm.miSnapCheckFront()">
<div class="item item-text-wrap">
<div class="item item-icon-right">
<h2 ng-hide="vm.checkFrontImage !== '' && vm.checkFrontImage !== undefined">Capture Check Front</h2>
<h2 ng-show="vm.checkFrontImage !== '' && vm.checkFrontImage !== undefined">Rake Check Front</h2>
<img class="capture-check-thumbnail" ng-show="vm.checkFrontImage !== '' && vm.checkFrontImage !== undefined" ng-src="{{vm.checkFrontImage}}"><!-- data:image/png;base64, -->
<i class="icon ion-camera" ng-hide="vm.checkFrontImage !== '' && vm.checkFrontImage !== undefined"></i>
<i class="icon ion-arrow-return-left" ng-show="vm.checkFrontImage !== '' && vm.checkFrontImage !== undefined"></i>
</div>
</div>
</div>
<!-- Scan Check Back Button -->
<div class="card" ng-click="vm.miSnapCheckBack()">
<div class="item item-text-wrap">
<div class="item item-icon-right">
<h2 ng-hide="vm.checkBackImage !== '' && vm.checkBackImage !== undefined">Capture Check Back</h2>
<h2 ng-show="vm.checkBackImage !== '' && vm.checkBackImage !== undefined">Rake Check Back</h2>
<img class="capture-check-thumbnail" ng-show="vm.checkBackImage !== '' && vm.checkBackImage !== undefined" ng-src="{{vm.checkBackImage}}">
<i class="icon ion-camera" ng-hide="vm.checkBackImage !== '' && vm.checkBackImage !== undefined"></i>
<i class="icon ion-arrow-return-left" ng-show="vm.checkBackImage !== '' && vm.checkBackImage !== undefined"></i>
</div>
</div>
</div>
<!-- Submit Check Button -->
<button type="submit" ng-disabled="captureCheckForm.$invalid || vm.checkFrontImage === undefined || vm.checkBackImage === undefined" class="button button-full button-positive">
Submit Check
</button>
</div>
</form>
</ion-content>
</ion-view>