Skip to content
PetalEdgeDocs

Data Acquisition

Collecting image data

Add photos to an Image project, with or without existing labels.

Try it in Studio
On this page

Goal

By the end of this page your project will have images in its training and testing sets, ready to label.

Upload images

  1. Open Data acquisition in Studio.
  2. Choose an Upload category (see the table below).
  3. Drag files onto the page, or select Choose files or Upload folder.
  4. Select Upload (the button shows how many files are waiting, for example Upload 40 files).

Supported image files are JPG, JPEG and PNG.

Upload categoryWhat it does
Training dataEvery file goes to the training set.
Testing dataEvery file goes to the testing set.
Automatically split between training and testing (default)About 80 % to training and 20 % to testing. The same file always lands in the same set.
Post-processingVideos (MP4, MOV, AVI) for the Post-processing preview. They are not used for training.

Upload images that already have boxes

If you labelled your images in another tool, select the images and their label files in the same upload. Studio reads these formats:

FormatLabel files
Pascal VOCOne .xml file per image
YOLO (Darknet)One .txt file per image, plus classes.txt, obj.names or data.yaml for the class names
COCOOne .json file for the whole dataset
Open ImagesA .csv file of boxes
PetalEdgeA .labels JSON file with boundingBoxes

After the upload, open Data labeling to check that the boxes are in the right place.

Collect from a connected device

The Collect from device panel on the same page records data from a device that is connected to your project. Choose the Device, Sensor, Label, Length (ms) and Category, then select Start sampling. The list of sensors comes from the device itself.

Generate synthetic images (optional)

If you have only a few photos, Studio can create extra ones with OpenAI image generation.

  1. Open Data labeling and select Synthetic Data.
  2. Paste your own OpenAI API Key. It is sent with the request and is never stored; the cost goes to your OpenAI account.
  3. Write a Prompt, for example A photo of a factory worker wearing a hard hat.
  4. Enter the Label, the Number of images (1 to 25 per job), Image size, Quality, Background and Dataset split.
  5. Select Generate Synthetic Data.

Result

Your images appear in Data labeling, split into Training and Testing.

What next?