Forum

Author Topic: matchPhotos - Not enough cameras  (Read 2781 times)

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
matchPhotos - Not enough cameras
« on: February 01, 2016, 03:07:58 PM »
Help!!

I am trying to align photos in python, and I used the following code (copied from the API):

chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.GenericPreselection)
chunk.alignCameras()

But it keeps saying "Error: Not enough cameras"
The weird thing is that it works if I do it in the GUI with the same parameters, and it keeps giving the error even with 410 images.

Hope someone can help me!!!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: matchPhotos - Not enough cameras
« Reply #1 on: February 01, 2016, 03:33:12 PM »
Hello MMNN,

Is it possible that "chunk" variable is related to the empty chunk?
Best regards,
Alexey Pasumansky,
Agisoft LLC

IanManning

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: matchPhotos - Not enough cameras
« Reply #2 on: February 24, 2016, 04:19:02 PM »
Can you post the rest of your script?

MMNN

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: matchPhotos - Not enough cameras
« Reply #3 on: February 26, 2016, 01:11:46 PM »
Thanks,

It seems like I got my chunks mixed up...