I have images to be uploaded for training.
I can see a mechanism to either add a label manually - presumably for batches of same label images
and I can see that I can label by virtue of the filename.
My question is: is there a mechanism to define the bounding box of the item in the image?
I already have this bounding box of the item in each image - how is it uploaded?
I’m hoping that I do not have to manually apply the bounding box after upload when I already have this information.
Is it possible - for instance to upload via filename, e.g.
label_boundx_boundy_widthx_widthy.instance.png
or similar
Or is the perferred method to use the edge impulse API? I notice there is a ‘bounding-boxes’ call.
Loop over all the images and bounding boxes to convert it to Edge Impulse format
Copy the pictures I needed to ei_dataset folder and update the bounding_boxes.labels file
Install Edge Impulse CLI
Upload everything in the ei_dataset folder to Edge Impulse
With this base Jupyter notebook, you can easily modify / adapt it and extract the bounding boxes from the image name (like you suggested label_boundx_boundy_widthx_widthy.instance.png) or convert other format of datasets with images & bounding boxes to EI format.
Hi, I recently tried the uploader and the upload data button from the Dashboard… uploading works but the bounding_boxes.labels.json does not work.
I get the same old errors when I try to use * alone (instead of *.jpg).
Error #1: If you named the label file “bounding_boxes.labels” as described in the documentation, the uploader does not recognize the extension and thus will not upload the label file.
[1/1] Failed to process bounding_boxes.labels: extension not supported (only .wav, .cbor, .json, .jpg, .jpeg, .png, .mp4 and .csv supported)
Error #2: If you play smart and add JSON extension “bounding_boxes.labels.json”, you will get a different error.
[1/1] Failed to upload bounding_boxes.labels.json Missing protected header
In the uploader I get a new Error too. 404 I’m probably locked out now for uploading too much?
Also, the uploader is getting smarter…thankyou EdgeImpulse for keeping us out of trouble.
There could be another button on this popup, "Goto Dashboard". Clicking the button would open the Dashboard and scroll to the area that shows Labeling Method.
@sanjay, so – just trying to change the name did not work – I made a whole new file and made sure it ended with .labels not .json – hovering over the file will show extensions