for photo_name in photos_list: #add all images from the folder
camera = PhotoScan.Camera()
camera.open(os.path.join(root, name) + "/" + photo_name)
if (photo_name.rsplit(".",1)[1] =="jpg") :
camera.label = camera.path.rsplit("/",1)[1]
camera.sensor = sensor
chunk.sensors.add(sensor)
chunk.photos.add(camera)
Hi Alexey and osima,
I have many sets of photos in folder1,2,3,… and I want a python file to help me to add all the photos into a photoscan file automatically.That is,let the photos in folder1 all added to chunk1 ,photos in folder2 all added to chunk2,…
I know little about python script, I searched this forum and found this topic.How fortunate I am! You are brilliant ! However, the code couldn't do well in version1.1.6. So I write this to ask if you mind to help me “translate” the code attached above into version1.1.6?Thank you very much and I'm looking forward to your reply.