-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import JSON format annotations #65
Comments
Could you tell us which neural network tools are using the JSON format? |
We're trying to use RectLabel so that it can input/output files that are compatible with tator -- a program that external colleagues are using for image and video annotation. |
At first, though you can label with Tator, why do you use RectLabel with Tator? Let us ask some questions about the JSON format.
|
Hi Ryo, First, we have been using RectLabel for a while now, we know how to use it, and we are all MacOS users so it makes more sense to continue using it. It has a more intuitive feel. We have a colleague that is using tator so interoperability is helpful. I thought adding JSON capability would be straightforward and beneficial to others, if not, maybe we should not pursue this. #1. Yes, Tator assumes annotations are inside the image folder. Thank you, |
Thanks for answering the questions. To label video frames, you might need the Tator. For the first implementation, if we could ignore the "global_state" and convert the lines and points to the polygons, importing the Tator JSON files into XML files would be possible. Let us read the document for a while. Now we are working on the super pixel and brush tools so that it would take time. |
Hey guys, |
Currently If you need our support to implement this feature, please let us know. |
I would like to have the ability to import JSON annotation files. See attached file for format type.
Here's an example of the JSON:
{
"detections": [
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "1",
"x": "0",
"y": "0",
"w": "85",
"h": "85",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "2",
"x": "0",
"y": "0",
"w": "85",
"h": "85",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "3",
"x": "0",
"y": "0",
"w": "85",
"h": "85",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "4",
"x": "0",
"y": "0",
"w": "85",
"h": "85",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "5",
"x": "145",
"y": "573",
"w": "231",
"h": "114",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "6",
"x": "483",
"y": "479",
"w": "218",
"h": "150",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "7",
"x": "562",
"y": "308",
"w": "110",
"h": "120",
"type": "box"
},
{
"image_file": "Osedax_lonnyi.jpeg",
"species": "round",
"subspecies": "red hake",
"id": "8",
"x": "994",
"y": "314",
"w": "143",
"h": "225",
"type": "box"
}
],
"global_state": [
{
"state": "ad",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "anemone",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "bhydra",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "brittlestar",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "clams",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "cobble",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "comments",
"value": "",
"header": "Info",
"type": "string"
},
{
"state": "coral",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "ctenophores",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "detritus",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "echinodermother",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "euphausids",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "filo",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "gravel",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "holes",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "imagehasbeenchecked",
"value": "false",
"header": "Info",
"type": "bool"
},
{
"state": "imagehasbeenmeasured",
"value": "false",
"header": "Info",
"type": "bool"
},
{
"state": "jellyfish",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "mussels",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "othercrustaceans",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "othermolluscs",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "rock",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "sand",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "sanddollars",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "sandlance",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "sandripple",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "seaweed",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "seed",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "shelldebris",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "silt",
"value": "false",
"header": "Substrates",
"type": "bool"
},
{
"state": "sponges",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "tunicate",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "urchin",
"value": "false",
"header": "Organisms",
"type": "bool"
},
{
"state": "wasvisible",
"value": "false",
"header": "Info",
"type": "bool"
}
]
}
The text was updated successfully, but these errors were encountered: