Friday, 15 February 2013

csv - Storing keypoints and descriptors (Python/OpenCV) -


I'm new to OpenCV and Python. I have the main points of thousands of images in CSV and Descriptor was trying to store me like this if I can store just like every line: [ kps , descs , < Code> image_name , metadata ].

In this way I could just go from line to for loop , and kps and descs in the array to run in my search function.

Basically I tried to write it directly in the CSV file:

  data = [[Kps, descs, "some string", "some metadata"]] Author.writerows (data)  

But I'm sure it was preserving the numpy arrays properly or, am I doing it wrong? Tuple of (kps, descs) to wrap and save in any way?

Any help appreciated. Thanks


No comments:

Post a Comment