Reading JSON files with the RapidJSON library

Some datasets come with structured annotations and can contain multiple files and folders. An example of such a complex dataset is the Common Objects in Context (COCO) dataset. This dataset contains a text file with annotations for describing relations between objects and their structural parts. This widely-known dataset is used to train models for segmentation, object detection, and classification tasks. Annotations in this dataset are defined in the JSON file format. JSON is a widely used file format for objects' (entities') representations. It is just a text file with special notations for describing relations between objects and their parts. In the following code samples, we show how to work ...

Get Hands-On Machine Learning with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.