草庐IT

boundingPoly

全部标签

json - 在 Golang 中解析 JSON 以绘制多边形

我正在用Go解析一个大型JSON文件,我只需要从JSON中提取特定的项目。它通常是一个非常大的文件,但最终,它变成了这样:"textAnnotations":[{"boundingPoly":{"vertices":[{"x":136,"y":119},{"x":5606,"y":119},{"x":5606,"y":3985},{"x":136,"y":3985}]},"description":"Description","locale":"en"},{"boundingPoly":{"vertices":[{"x":3420,"y":122},{"x":3439,"y":122}