Tanisha Banik
1 min readFeb 26, 2021

--

This is my required format:

{

"annotations": [

{

"area": 2665.0,

"bbox": [

251.0,

154.0,

52.0,

82.0

],

"category_id": 5,

"extra": {},

"id": 1,

"image_id": 0,

"iscrowd": 0,

"segmentation": [

[

292,

154,

285,

154,

283,

155,

283,

156,

279,

159,

276,

165,

276,

171,

275,

172,

275,

174,

273,

175,

271,

177,

271,

178,

264,

185,

264,

186.0,

262,

188,

261,

188,

259,

193.0,

257,

195,

256,

198,

251.0,

205,

251.0,

212,

252,

213,

252,

215.0,

253,

217,

258,

222.0,

258,

223,

266,

230,

268,

230,

271,

232,

273,

232,

278,

235.0,

284,

235.0,

289,

232,

291,

232,

295,

229.0,

296,

229.0,

300,

224,

301,

222.0,

301,

218.0,

302,

217,

302,

213,

301,

212,

301,

206,

300,

205,

300,

202,

298,

199,

298,

194,

297,

193.0,

297,

191,

299,

189.0,

298,

188,

299,

186.0,

299,

179,

296,

175,

295,

167,

294,

166,

294,

159,

293,

158,

293,

155

]

]

},

{

"area": 4441.0,

"bbox": [

297.0,

183.0,

56.0,

100.0

],

"category_id": 4,

"extra": {},

"id": 2,

"image_id": 0,

"iscrowd": 0,

"segmentation": [

[

298,

188,

297,

192,

298,

193,

298,

195,

300,

196,

300,

198,

301,

199,

301,

205,

302,

206,

302,

210,

303,

211,

303,

217,

302,

218,

302,.........

--

--