mapeAAU / underwater_camera_calibration

Underwater Camera Calibration and 3D Reconstruction Based on Ray Tracing using Snell's Law
Other
8 stars 0 forks source link

Regarding the retrieval of JSON files #1

Open Wjhao7010 opened 3 weeks ago

Wjhao7010 commented 3 weeks ago

Hello author, I would like to know how to obtain the JSON files for cam1 and cam2 perspectives? Which points should be marked as coordinates for these two perspectives

mapeAAU commented 3 weeks ago

Hi, you can find examples of the reference files here. In the given example we used the corners of an aquarium, where cam1 is located in front of the aquarium and cam2 is located above the aquarium. See our paper for more information on the setup (illustrated in figure 4) in the paper. The points are simply the corners of the aquarium, as described in the comments of the JSON reference files. A practical use case of the method is given in our 3D zebrafish tracking paper with links to the source code and dataset. Hope that helps!

Wjhao7010 commented 3 weeks ago

Thank you very much for your reply! Your paper is really excellent, but I found that the comments in the JSON files of cam1 and cam2 in the examples are/ world<->camera correspondences for top view camera /, and I cannot determine which point of the water tank cam1 and cam2 are annotated with based on world coordinates and camera coordinates, which makes it difficult for me to operate correctly when processing my own dataset. I hope you can help me explain. Thank you very much!

mapeAAU commented 3 weeks ago

Aha, thank you for pointing out that error. And I can see that it is in fact the opposite of figure 4 of the paper; cam1 is the top camera and cam2 is the front camera in the example provided here on github. I fixed the typo and added a small note in the readme file to clarify.

Wjhao7010 commented 3 weeks ago

It's okay, I have a small question. As shown in the picture, the dataset I shot myself is a front view taken from direction 1 and a top view taken from direction 2. If we annotate the water tank in this way, can we correctly obtain the final 3D coordinates 0d348994b92c897c42b0e29d1522b2b

mapeAAU commented 3 weeks ago

Yes, it doesn't really matter where cameras are placed if you have calibrated your cameras properly, know the dimensions of the aquarium, and have updated the cam1 and cam2 reference files to fit your setup.