Merge Vision Recognition Database

Gepostet fast 3 Jahre her von George Apergis

Ein Thema veröffentlichen
Gelöst
G
George Apergis

Is there a way to merge two vision recognition databases? More specifically, the .vrd files.

0 Stimmen


2 Kommentare

Sortiert nach
G

George Apergis gepostet fast 3 Jahre her

After some .png and .yaml renaming and  .yaml editing, the merging was successful. 
Thanks for the tips.

0 Stimmen

C

Clement Portales gepostet fast 3 Jahre her Administrator

Hello George, 


So I've asked around and this isn't something that has been done before in SBRE and the experts/creators of this format have now left the company. However, someone over at SBRE was kind enough to give some insights on how it could be done, by having a look at the code of the .vrd file. Be aware that the method indicated isn't guaranteed to work ! It is merely a theory formulated after the code was looked at. 


Here's a retranscription of the info I could gather : 


For each objects database, this format is made of a file with all the required information : 

  • A file .yaml containing meta-data and objects models (named ${UUID}.yaml)
  • Images ${UUID}.${n}.png which define the objects models


This file is compressed into a tar.gz format by Choregraphe, the resulting file gets the extension .vrd, therefore a .vrd is a .tar.gz.


Schematically, in order to merge 2 .vrd files, you'd need to : 

  • unzip the .vrd files with tar -xzf ${files}.vrd
  • Merge together the .yaml files and the images within the different files and coordinating the index between .yaml files and images
  • Reconstitute the database by zipping again the merged files into a .tar.gz, rename it a .vrd with tar -czf.


Hope this could give you a few leads on how to solve your issue ! 

0 Stimmen

Anmelden oder Registrieren um einen Kommentar zu veröffentlichen