Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vance

Pages: [1]
1
General / Re: Best practices for handling 30,000 + images
« on: February 24, 2017, 08:49:50 PM »
Alexey gave me this piece of advice a few minutes ago, and it seems like it would apply to your project as well. I had a chunk that contained roughly 600 photos. I duplicated it 16 or so times to aid in processing. When I merged it back together, the resulting chunk had 10000 photos (with obviously around 16 duplicates of each photo, and became hard for my machine to handle.

Quote
Hello Vance,

The better way to get rid of the duplicate-cameras when you are duplicating the chunks is to group all cameras in every chunk (or in original chunk before duplicating) to the folder and then in the merged chunk you can just remove all but one folders with the duplicates.

2
Python and Java API / Re: Delete duplicate photos?
« on: February 24, 2017, 08:33:57 PM »
Thank you very much, I will try that.

3
Python and Java API / Re: Delete duplicate photos?
« on: February 24, 2017, 08:29:34 PM »
You are probably exactly right. The chunk was originally 600 photos, but was duplicated (and bounding boxes adjusted) about 16 times to aid in processing, then merged back together. The resulting merged chunk has nearly 10,000 photos.

This is my first foray into processing this way, I may not have done it correctly!

Thank you for your quick response.

4
Python and Java API / Re: Delete duplicate photos?
« on: February 24, 2017, 08:03:59 PM »
I realize this is an old topic, but I have virtually the same question. I am attempting to use that code (in version 1.3), but it causes photoscan to lockup. Here is the exact code I am attempting to use. I am sure I am doing something wrong!
Code: [Select]
import PhotoScan

chunk = PhotoScan.app.document.chunk
photos = set()
for camera in list(chunk.cameras):
      if camera.photo.path in photos:
             chunk.remove(camera)
      else:
             photos.add(camera.photo.path)

print("Script finished")

Pages: [1]