|
|
|
|
|
Often all the images in a Dataset will have some data in common. Rather than inputing the same information over and over again, there is script to automate this.
|
|
|
Often all the images in a Dataset will have some data in common. Rather than inputing the same information over and over again. There is a script to automate this.
|
|
|
|
|
|
## Adding the key-value pairs to the Description
|
|
|
|
|
|
![key-value pairs to be applied globally ](./media/global_kv_1.png)
|
|
|
|
|
|
|
|
|
To add the same key-value pairs to all the image in a Dataset:
|
|
|
To add the same key-value pairs to all the images in a Dataset:
|
|
|
|
|
|
1. Select the dataset
|
|
|
2. Fold down the `Dataset Details` tab and click the edit icon ![](./media/edit_icon.png). You can resize this window to make it easier to see.
|
|
|
3. In the description add the following line (if is not already there) `# global key-value`
|
|
|
4. Below this add key-values separated by colons:
|
|
|
5. After the key value pairs end with `# end key-value`
|
|
|
6. **CLICK SAVE**, don't forget this - it's easy to loose what you've just typed in by clicking on something else.
|
|
|
6. **CLICK SAVE**, don't forget this - it is easy to lose what you have just typed in by clicking on something else.
|
|
|
|
|
|
Here is an example you can cut and paste in to the `Description Details`. Modify the keys and values for your data.
|
|
|
|
... | ... | @@ -37,6 +37,6 @@ Temperature : 25 |
|
|
|
|
|
**2.** The ID of the Dataset will already be filled in for you, just click `Run Script`.
|
|
|
|
|
|
If the script is successful there will be green tick and a message with the number of key-value pairs added and the number images. If you click on one on the images and fold down the `Key-Value Pairs` tab you can see the metadata added.
|
|
|
If the script is successful there will be a green tick and a message with the number of key-value pairs added and the number of images. If you click on one on the images and fold down the `Key-Value Pairs` tab you can see the metadata added.
|
|
|
|
|
|
![](./media/global_kv_3.png) |
|
|
\ No newline at end of file |