Browse Source

Updated image classifer unit test to darknet19

TC 3 years ago
parent
commit
7b18804690
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/UnitTest/backend/image.classify.js

+ 2 - 2
web/UnitTest/backend/image.classify.js

@@ -7,7 +7,7 @@ function main(){
     http.download("https://cdn.pixabay.com/photo/2017/03/28/12/10/chairs-2181947_960_720.jpg", "tmp:/", "classify.jpg");
     http.download("https://cdn.pixabay.com/photo/2017/03/28/12/10/chairs-2181947_960_720.jpg", "tmp:/", "classify.jpg");
 
 
     //Get image classification, will take a bit time
     //Get image classification, will take a bit time
-    var results = imagelib.classify("tmp:/classify.jpg", "yolo3"); 
+    var results = imagelib.classify("tmp:/classify.jpg", "darknet19"); 
     var responses = [];
     var responses = [];
     for (var i = 0; i < results.length; i++){
     for (var i = 0; i < results.length; i++){
         responses.push({
         responses.push({
@@ -23,4 +23,4 @@ function main(){
     sendJSONResp(JSON.stringify(responses));
     sendJSONResp(JSON.stringify(responses));
 }
 }
 
 
-main();
+main();