PB Unity
commited on
Upload RunBlazePalm.cs
Browse files- RunBlazePalm.cs +3 -3
RunBlazePalm.cs
CHANGED
@@ -11,7 +11,7 @@ using Lays = Unity.Sentis.Layers;
|
|
11 |
* Basic inference script for blaze palm
|
12 |
*
|
13 |
* Put this script on the Main Camera
|
14 |
-
* Put
|
15 |
* Create a RawImage of in the scene
|
16 |
* Put a link to that image in previewUI
|
17 |
* Put a video in Assets/StreamingAssets folder and put the name of it int videoName
|
@@ -241,7 +241,7 @@ public class RunBlazePalm : MonoBehaviour
|
|
241 |
{
|
242 |
for (int n = 0; n < NMAX; n++)
|
243 |
{
|
244 |
-
//Draw bounding box of
|
245 |
var box = new BoundingBox
|
246 |
{
|
247 |
centerX = index3[0, n, 0] * scale.x,
|
@@ -279,7 +279,7 @@ public class RunBlazePalm : MonoBehaviour
|
|
279 |
|
280 |
worker.Execute(image0);
|
281 |
|
282 |
-
using var boxCoords = worker.PeekOutput("boxCoords") as TensorFloat; //
|
283 |
using var regressors = worker.PeekOutput(regressorsOutput) as TensorFloat; //contains markers
|
284 |
|
285 |
var NMS = worker.PeekOutput("NMS") as TensorInt;
|
|
|
11 |
* Basic inference script for blaze palm
|
12 |
*
|
13 |
* Put this script on the Main Camera
|
14 |
+
* Put palm_detection_lite.sentis in the Assets/StreamingAssets folder
|
15 |
* Create a RawImage of in the scene
|
16 |
* Put a link to that image in previewUI
|
17 |
* Put a video in Assets/StreamingAssets folder and put the name of it int videoName
|
|
|
241 |
{
|
242 |
for (int n = 0; n < NMAX; n++)
|
243 |
{
|
244 |
+
//Draw bounding box of the palm
|
245 |
var box = new BoundingBox
|
246 |
{
|
247 |
centerX = index3[0, n, 0] * scale.x,
|
|
|
279 |
|
280 |
worker.Execute(image0);
|
281 |
|
282 |
+
using var boxCoords = worker.PeekOutput("boxCoords") as TensorFloat; //palm coords
|
283 |
using var regressors = worker.PeekOutput(regressorsOutput) as TensorFloat; //contains markers
|
284 |
|
285 |
var NMS = worker.PeekOutput("NMS") as TensorInt;
|