fr.onload = function()

in src/js/app.js [63:78]


  fr.onload = function (e) {

    // Save submitted inference image into a local var to be sent for inference in original state 
    // before scaling and drawing of bounding boxes. 
    originalImage.src = this.result;

    // Display the submitted image in the UI
    imgTarget.src = originalImage.src;

    // Update the HTML labels with new image
    imageFileLabel.innerHTML = imageFileSelect.files[0].name;
    inferenceText.innerHTML = `Image Selected: ${imageFileSelect.files[0].name}`;

    // Reset any previous predictions
    predictions = [];
  };