How to Upload Pre-Labeled Data to EdgeImpulse

Photo by Viktor Forgacs on Unsplash
EdgeImpulse UI

The Official Story

Select all files to upload
[1/1] Failed to process bounding_boxes.labels: extension not supported (only .wav, .cbor, .json, .jpg, .jpeg, .png, .mp4 and .csv supported)
[1/1] Failed to upload bounding_boxes.labels.json Missing protected header

How to Upload Using edge-impulse-uploader

$npm install -g edge-impulse-cli
set PATH=%PATH%;C:\Users\MyAlias\AppData\Local\Programs\Python\Python39
set PYTHON=%PATH%;C:\Users\MyAlias\AppData\Local\Programs\Python\Python39\python.exe
C:\Users\MyAlias>more edge-impulse-config.json
{
"host": "edgeimpulse.com",
"jwtToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5Mzk2LCJpYXQiOjE2MzExNzYzODYsImV4cCI6MTYzMzc2ODM4Nn0.bm_KnecxClb0zysItdC81z6vsFxwp3rKlLjSEOhsZhw",
"lastVersionCheck": 1631776837836,
"dataForwarderDevices": {},
"daemonDevices": {},
"uploaderProjectId": 48274
}
The project ID is on the Dashboard
edge-impulse-uploader --category split ".\dataset\*.jpg"
Images displayed with pre-labeled annotations
Feature explorer
{
"version": 1,
"type": "bounding-box-labels",
"boundingBoxes": {
"Cars0.png": [
{
"label": "license",
"x": 226,
"y": 125,
"width": 193,
"height": 48
}
]
}
}
{
"version": 1,
"type": "bounding-box-labels",
"boundingBoxes": {
"Cars0.png": [
{
"label": "license",
"x": 0,
"y": 226,
"width": 125,
"height": 193
}
]
}
}
json.dumps(labels, separators=(',', ':'))
{"version":1,"type":"bounding-box-labels","boundingBoxes":{"Cars0.png":[{"label":"license","x":226,"y":125,"width":193,"height":48}]}}

Conclusion

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store