Is it free to convert OIDv4 TXT to COCO Run-Length Encoding (RLE)?
Yes! It is free to convert OIDv4 TXT data into the COCO Run-Length Encoding (RLE) format on the Roboflow platform.
Convert annotation formats
In this guide, we show you how to convert data between the OIDv4 and COCO RLE formats for free. You can use your converted data to train models and other models that support the COCO RLE format.
Yes! It is free to convert OIDv4 TXT data into the COCO Run-Length Encoding (RLE) format on the Roboflow platform.
The format returned by the OpenImages Dataset v4 ToolKit.
Below, learn the structure of OIDv4 TXT.
helmet 0.0 73.041386 355.2 463.235188
person 2.56 95.46632500000001 86.4 213.357589
helmet 123.52 26.9102 826.24 594.5815520000001A version of the COCO JSON format with segmentation masks encoded with run-length encoding.
Below, learn the structure of COCO Run-Length Encoding (RLE).
{
"info": {
"description": "Exported from Darwin",
"url": "n/a",
"version": "n/a",
"year": 2022,
"contributor": "n/a",
"date_created": "2022/07/03"
},
"licenses": [
{
"url": "n/a",
"id": 0,
"name": "placeholder license"
}
],
"images": [
{
"license": 0,
"file_name": "2020-02-09--20-26-30(GMT-0700)--18s.mkv-0005.png1920x1080.png",
"coco_url": "n/a",
"height": 1080,
"width": 1920,
"date_captured": "",
"flickr_url": "n/a",
"darwin_url": "https://darwin.v7labs.com/api/images/437470172/original",
"darwin_workview_url": "https://darwin.v7labs.com/workview?dataset=484903&image=86",
"id": 290,
"tag_ids": []
}
],
"annotations": [
{
"id": 8944,
"image_id": 290,
"category_id": 8,
"segmentation": [
[
1550.78,
748.65,
1548.38,
770.21,
1638.96,
779.7,
1640.35,
757.28,
1640.83,
726.62,
1557.96,
718.72
]
],
"area": 4641.607800000347,
"bbox": [
1548.38,
718.72,
92.44999999999982,
60.98000000000002
],
"iscrowd": 0,
"extra": {}
},
]
}Roboflow is a universal conversion tool for computer vision annotation formats. The Public plan is the best way for those exploring personal projects, class assignments, and other experiments to try Roboflow. To convert your dataset, start by creating a free workspace on the Public plan.
Once your account has been created, click Create New Project.

Upload your data to Roboflow by dragging and dropping your OIDv4 TXT images and annotations into the upload space.

Next, click "Generate New Version" to generate a new version of your dataset:

You can then apply any preprocessing or augmentation steps to your dataset:

After generating, you will be prompted to Export your dataset. You can choose to receive your dataset as a .zip file or a curl download link. Choose COCO Run-Length Encoding (RLE) when asked in what format you want to export your data. You will see a dropdown with various options like this:

Congratulations, you have successfully converted your dataset from OIDv4 TXT format to COCO Run-Length Encoding (RLE) format!
Yes! It is free to convert OIDv4 TXT data into the COCO Run-Length Encoding (RLE) format on the Roboflow platform.
If you have between a few and a few thousand images, converting data between these formats will be quick. But, the time it takes to convert between data formats increases with the more images you have.
Our team will help you start solving business problems on the first call.
Over 16,000 organizations build with Roboflow.