Skip to content

Commit

Permalink
adjusted examples to version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Jan 26, 2021
1 parent f7793fc commit c3091c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/FaceDetectorCNNWebcam/FaceDetectorCNNWebcam.pde
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ public void draw() {
rect(detection.getX(), detection.getY(), detection.getWidth(), detection.getHeight());
}

surface.setTitle("Face Recognition Test - FPS: " + Math.round(frameRate));
surface.setTitle("Face Detector Test - FPS: " + Math.round(frameRate));
}
3 changes: 1 addition & 2 deletions examples/RealSensePoseCapture/RealSensePoseCapture.pde
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ch.bildspur.vision.DeepVision;
import ch.bildspur.vision.SingleHumanPoseNetwork;
import ch.bildspur.vision.result.HumanPoseResult;
import ch.bildspur.vision.result.KeyPointResult;
import ch.bildspur.vision.result.*;

import ch.bildspur.realsense.*;

Expand Down
6 changes: 3 additions & 3 deletions examples/RealSenseYoloDetector/RealSenseYoloDetector.pde
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ch.bildspur.vision.DeepVision;
import ch.bildspur.vision.YOLONetwork;
import ch.bildspur.vision.result.ObjectDetectionResult;
import ch.bildspur.vision.result.*;

import ch.bildspur.realsense.*;

Expand All @@ -16,7 +16,7 @@ void setup()
colorMode(HSB, 360, 100, 100);

println("creating network...");
net = vision.createYOLOv3Tiny();
net = vision.createYOLOv4Tiny();

println("loading model...");
net.setup();
Expand Down Expand Up @@ -51,7 +51,7 @@ void draw()
strokeWeight(2f);

for (ObjectDetectionResult detection : result) {
stroke(round(360.0f * (float) detection.getClassId() / net.getClassNames().size()), 75, 100);
stroke(round(360.0f * (float) detection.getClassId() / net.getLabels().size()), 75, 100);
rect(detection.getX(), detection.getY(), detection.getWidth(), detection.getHeight());

textSize(15);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ch.bildspur.vision.DeepVision;
import ch.bildspur.vision.SingleHumanPoseNetwork;
import ch.bildspur.vision.result.HumanPoseResult;
import ch.bildspur.vision.result.KeyPointResult;
import ch.bildspur.vision.result.*;

PImage testImage;

Expand Down
2 changes: 1 addition & 1 deletion examples/YOLODetectObjects/YOLODetectObjects.pde
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void setup() {
image = loadImage("hk.jpg");

println("creating model...");
yolo = deepVision.createYOLOv3();
yolo = deepVision.createYOLOv4();

println("loading yolo model...");
yolo.setup();
Expand Down

0 comments on commit c3091c3

Please sign in to comment.