Hi community…
I would like to import some datasets from google colab to edge impulse…
I am not able to find how to generate the API KEY …
Can you please give me support ?
is this code from colab correct to upload images to edge impulse
api_key = 'ei_3dd616840519ea63f6a1e5c4ebf95aeeeb8ec63748be950daa7ded6c'
labels.append('unknown')
for label in labels:
label = label.replace(" ", "_")
sample_dir = out_path + '/' + label + '/*.jpg'
file_list = []
for filename in os.listdir( out_path + '/' + label + '/'):
_, ext = os.path.splitext(filename)
if (ext.lower() == '.jpg'):
file_list.append(filename)
print("Uploading files from ", sample_dir)
print("N. Samples ", len(file_list))
cmd = 'edge-impulse-uploader --api-key ' + api_key + ' --label ' + label + ' ' + sample_dir
os.system(cmd)
print("Done!");
Thanks