Hello Guys, i'm using PhotoScan Pro version and i need to create more chunks.
But the problem is, i need to create a chunk with just two photos in each chunk.
for Example, i have 40 photos in the path that i choose, and i need 20 chunks with 2 photos in each chunk.
I wrote some codes, but doesn't work.
this is my base code.
Thanks!
import os, PhotoScan
doc = PhotoScan.app.document
chunk = doc.addChunk()
chunk.label = "Nova Chunk"
path_photos = PhotoScan.app.getExistingDirectory("C:\\Users\lma\Documents\Fotos.jpg")
image_list = os.listdir(path_photos)
photo_list = list()
for photo in image_list:
if photo.rsplit(".",1)[1].lower() in ["jpg", "jpeg", "tif", "tiff"]:
photo_list.append("/".join([path_photos, photo]))
chunk.addPhotos(photo_list)
chunk.detectMarkers(type=PhotoScan.CircularTarget12bit)
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy)
chunk.alignCameras(adaptive_fitting=True)
chunk.buildDepthMaps(quality=PhotoScan.UltraQuality, filter=PhotoScan.AggressiveFiltering)
chunk.buildDenseCloud(point_colors=True)