Keep the same structure as the currently way of labeling videos. We need another page to label 16 images. On top of each image, we need to draw a bounding box. You can assume that the images are square. Below are the suggested steps. Please feel free to deviate from the steps based on your judgement.
Create a new labeling HTML page "bbox.html", using label.html as a template.
Create a new JavaScript file "bbox.js" to write necessary functions to support bounding box labeling in the "bbox.html" page. Use label.js as a template.
Create a new file "BboxLabelingTool.js" using VideoLabelingTool.js as the template. This file contains code for handling communications between the front-end and back-end (e.g., getting batches from the back-end and sending labels to the back-end)
Avoid duplicating functions. Try reusing existing functions if possible.
You can assume that the batch (using 4 images as an example) returned from the server will have the format below. Please create some fake bounding boxes and images for testing. Keep in mind that the bounding box location and size is based on the original image size (NOT the size of the image container on the HTML). You need to compute the correct location and size of the bounding box on the image container based on the "bbox" data returned from the server.
After labeling, we need to send the labels back to the back-end using the following format (using 4 images as an example). Label 0 means the bounding box has no smoke, and label 1 means the bounding box contains smoke.
Keep the same structure as the currently way of labeling videos. We need another page to label 16 images. On top of each image, we need to draw a bounding box. You can assume that the images are square. Below are the suggested steps. Please feel free to deviate from the steps based on your judgement.
Avoid duplicating functions. Try reusing existing functions if possible.
You can assume that the batch (using 4 images as an example) returned from the server will have the format below. Please create some fake bounding boxes and images for testing. Keep in mind that the bounding box location and size is based on the original image size (NOT the size of the image container on the HTML). You need to compute the correct location and size of the bounding box on the image container based on the "bbox" data returned from the server.
After labeling, we need to send the labels back to the back-end using the following format (using 4 images as an example). Label 0 means the bounding box has no smoke, and label 1 means the bounding box contains smoke.