Open bw4sz opened 1 year ago
This is a problem happens at reading the raw image but could not find it using the metashape project recorded image path.
In the metashape project files, project.files/0/0/frames.zip/docs.xml
There is a path to parse the relative path between the raw image and metashape project. Take the previous ForestBirds() dataset as example:
<camera camera_id="17">
<photo path="../../../../../Inspire Raw Data/Hidden_Little/Hidden_Little_03_24_2022/DJI_0126.JPG">
<meta>
<property name="DJI/AbsoluteAltitude" value="+42.43"/>
<property name="DJI/FlightPitchDegree" value="-4.50"/>
<property name="DJI/FlightRollDegree" value="+2.70"/>
So, did you change the path of raw image folder after finishing the reconstruction?
(PS: I also need to modify the ForestBirds dataset due to the same reason)
Got it. The original workflow had no intention of backwards projection, we didn't keep the projects together with the raw imagery. We are changing this now.
Provide a folder changing function:
# how to change the demo detaset
ms = idp.Metashape(
fb.metashape.project, chunk_id=0,
raw_img_folder=fb.data_dir / "Hidden_Little_03_24_2022")
# the string like 'c:/path/to/new/folder/' should also work
Apologies no time for detailed documentation currently
I am working on a jupyter notebook that hopefully can serve to help others understand the workflow and provide some wording familiar to drone users for environmental surveys. I'll be making small issues, mostly related to docs that could help the next users access this great tool.
Which is fine, i can easily go and put the images there, but how was the location determined? Moving the photos to that location works great. Not obvious from the doc string. https://easyidp.readthedocs.io/en/latest/python_api/manualdoc/easyidp.roi.ROI.html#easyidp.roi.ROI.back2raw