Skip to content
Erik Smistad edited this page Jan 25, 2021 · 3 revisions

Currently, it is not possible to upload data through the webpage itself. The data must be located on the machine you are running annotation web on.

To import data, you must first create a dataset. This can be done from the dataset tab.

There are two ways to import data:

  1. By manually adding subjects from the dataset page, and then importing an image sequence, one at the time. Do this by pressing "Details" on the dataset, then "Add a new subject to this dataset", then "Add an image sequence".
  2. By creating a folder structure representing subjects and recordings, and then importing all of these subjects in one go. This is great if you have a lot of data. Do this by pressing "Import data" on your dataset. The folder structure required is:
<Subject 1 ID>/
    <Recording 1 ID>/
        frame_0.mhd or .png
        frame_1.mhd or .png
        ....
    <Recording 2 ID>/
        frame_0.mhd or .png
        frame_1.mhd or .png
        ....
<Subject 2 ID>/
    <Recording 1 ID>/
        frame_0.mhd or .png
        frame_1.mhd or .png
        ....
.....

Point the importer path to the root of this folder structure. This may then take a while, depending on how much data you are importing. Warning: If you run this on a server with apache, the webpage may timeout and show an error in the browser, but the importer may still be running. You can run this importer several times, it will then not delete existing data in the database, but instead only add subjects and recordings that doesn't already exist. Instead of metaimage (.mhd/.raw) you can have .png files as well.