Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Oct 29, 2024
1 parent 21d6e99 commit 0343612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion asanai.js
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,7 @@ class asanAI {
return this.#layer_states_saved;
}

async show_and_predict_webcam_in_div(divname=this.#show_and_predict_webcam_in_div_div, resultdiv=None, _w, _h) {
async show_and_predict_webcam_in_div(divname=this.#show_and_predict_webcam_in_div_div, resultdiv=None, _w=300, _h=300) {
var $divname = $("#" + divname);

this.assert(divname.length != 1, `[show_and_predict_webcam_in_div] div by id ${divname} could not be found`);
Expand Down
3 changes: 2 additions & 1 deletion class_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<br>

<div id="webcam_prediction"></div>
<div id="webcam_prediction_result"></div>

<br>

Expand Down Expand Up @@ -226,7 +227,7 @@
// Shows the output of model.summary in a div.
asanai.write_model_summary("summary")

asanai.show_and_predict_webcam_in_div("webcam_prediction");
asanai.show_and_predict_webcam_in_div("webcam_prediction", "webcam_prediction_result");

await asanai.predict_image("test_image", "test_image_prediction", true, true);
await asanai.predict_image("test_image_two", "test_image_two_prediction", true, true);
Expand Down

0 comments on commit 0343612

Please sign in to comment.