Hello people,
Some people have asked this before
https://www.agisoft.com/forum/index.php?topic=8587.0;prev_next=prev#new, but I am still interested how to deal with duplicated cameras and chunks in an automated manner.
I have created one chunk with approximately 700 cameras, aligned them and then split into chunks with 20% overlap.
After Dense Point Clouds were created in invidual chunks I merged them back and received a really nice result except that together with my dense point cloud I received an extra portion of cameras and markers.
As I understand I will not loose any tie points if I will delete duplicated cameras and/or markers as my cameras alignment was made in a single chunk, am I right?
I suggest that it is possible to use a script that would do the job, something similar to this:
import PhotoScan
chunk = PhotoScan.app.document.chunk #active chunk
photos_list = set()
for camera in chunk.cameras:
if camera.enabled:
if camera.photo.path in photos_list:
camera.enabled = False
else:
photos_list.add(camera.photo.path)
print("Script finished.")
But together with enabling undesirable cameras it would also remove them.
As I am a Agisoft and Python newbie I would like to ask for a script that could do the job if someone is able to make one.
Thank you and have a nice day