When I use kapture_import_image_folder.py, It feels bit uncomfortable that I can't assign a specific camera model and the following parameters. So I modify this code a little. It allows user assign specific sensor information about images.
I think people will store images in same folder if those are taken from same sensor. So, If user write sensors.txt about their image data, this will make kapture data with specified sensor info. sensors.txt should locate at images_path and sensors.txt's sensor_id should be each image folder's name.
if user doesn't know sensor type and param about images, it's okay. If image folder doesn't have sensors.txt, it works in the old way. If sensors.txt only have partitial info(ex. only have cam0 in case1), it gives that params only for those images.
I send pr about this issue, so I'd be happy if you give any feedback.
When I use kapture_import_image_folder.py, It feels bit uncomfortable that I can't assign a specific camera model and the following parameters. So I modify this code a little. It allows user assign specific sensor information about images.
I think people will store images in same folder if those are taken from same sensor. So, If user write sensors.txt about their image data, this will make kapture data with specified sensor info. sensors.txt should locate at images_path and sensors.txt's sensor_id should be each image folder's name.
For example:
in this case, sensos.txt should be look like this:
or
in this case, sensors.txt should be look like this:
if user doesn't know sensor type and param about images, it's okay. If image folder doesn't have sensors.txt, it works in the old way. If sensors.txt only have partitial info(ex. only have cam0 in case1), it gives that params only for those images.
I send pr about this issue, so I'd be happy if you give any feedback.