How to merge/split filestorage?

asked 2020-05-12 06:55:53 -0600

Zana Zakaryaie Nejad gravatar image

Hi

I want to split a large json file into multiple files and vice-versa. How can I do this using opencv's FileStorage class?

edit retag flag offensive close merge delete

Comments

did you write it using opencv ? are you able to read it ?

opencv's FileStorage is basically a key-value store, you cannot process arbitrary json with it.

also, what is in it ? please explain.

berak gravatar imageberak ( 2020-05-12 07:05:26 -0600 )edit
1

No. the file has been written outside opencv. I want to split it into multiple json files. I also want to get multiple json files and merge them into one single file.

The json file contains several sections with strings, numbers, and arrays inside

Zana Zakaryaie Nejad gravatar imageZana Zakaryaie Nejad ( 2020-05-12 07:59:27 -0600 )edit

the file has been written outside opencv

unlikely then, that opencv can read it. could give us some info about the structure ?

berak gravatar imageberak ( 2020-05-12 08:48:11 -0600 )edit

@Zana Zakaryaie Nejad. Yes, you can write outside of Opencv

supra56 gravatar imagesupra56 ( 2020-05-13 20:34:07 -0600 )edit