Forum

Author Topic: reduceOverlap() Null model error  (Read 2015 times)

bbbares

  • Newbie
  • *
  • Posts: 21
    • View Profile
reduceOverlap() Null model error
« on: April 17, 2020, 06:48:39 PM »
I am trying to add reduceOverlap() functionality to my script but I am getting this error:
Code: [Select]
ReduceOverlap: overlap = Medium, max_cameras = 5, use_selection = 0
Traceback (most recent call last):
  File "/home/ubuntu/A3M/cron_sweep_s3.py", line 89, in <module>
    main()
  File "/home/ubuntu/A3M/cron_sweep_s3.py", line 82, in main
    run_metashape.main(project_name=runnable_project.name, project_suffix=runnable_project.suffix)
  File "/home/ubuntu/A3M/run_metashape.py", line 286, in main
    chunk.reduceOverlap(overlap=reduce_overlap.overlap, max_cameras=reduce_overlap.max_cameras)
Exception: Null model
Does reduceOverlap() need to be run after buildModel()?

Paulo

  • Hero Member
  • *****
  • Posts: 1320
    • View Profile
Re: reduceOverlap() Null model error
« Reply #1 on: April 17, 2020, 07:38:03 PM »
Hi,

yes as stated in page 14 of User manual https://www.agisoft.com/pdf/metashape-pro_1_6_en.pdf:
Quote
Reduce overlap feature is made for analyzing excessive image sets to understand which images are useful
and which are redundant and may be disabled or removed.
1. Align photos using entire dataset and build rough mesh model from the sparse cloud.
2. Select Reduce Overlap dialog available from the Tools menu...
you must build a rough model using sparse cloud before using Reduce Overlap....
« Last Edit: April 18, 2020, 01:16:37 AM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor