I exported some matrices and double arrays in C++ using cv::Filestorage. I can load the matrices just fine, but nowhere can I find any documentation about cv2.Filestorage. I have no idea how to read the arrays. I have tried reading them elementwise with
for i in range(node.size()):
print(node.at(i).float())
but FileNode has no attribute float(). I can’t find any way to get the number out of the filenode. node.type() does return FLOAT, so it is read correctly I assume.