Dear all
I am new to this arena so pardon me if my question is too naive. I looked online but could not find answer to this problem. I am sharing with you the header of one of the 400 files I have in a directory which I am trying to process using odm. I am getting an Invalid multi-camera images Also pasted the EXIF info at the bottom.
The error
Multi-camera setup detected, but band “Blue” (identified from “IMG_0226_1.jpeg”) has only 99 images (instead of 93), perhaps images are missing or are corrupted. Please include all necessary files to process all bands and try again.
Any help is apprecaited. Many thanks in advance!
Here is my command
docker run -it --rm -v /home/ubuntu/NDVI/ndvi_400:/code/images -v /home/ubuntu/NDVI/odm_orthophoto:/code/odm_orthophoto -v /home/ubuntu/NDVI/odm_georeferencing:/code/odm_georeferencing opendronemap/odm --skip-3dmodel --use-opensfm-dense --orthophoto-resolution 1
Here is the full output
[INFO] Initializing ODM - Thu Jul 16 15:43:04 2020
[INFO] ==============
[INFO] build_overviews: False
[INFO] camera_lens: auto
[INFO] cameras: {}
[INFO] crop: 3
[INFO] debug: False
[INFO] dem_decimation: 1
[INFO] dem_euclidean_map: False
[INFO] dem_gapfill_steps: 3
[INFO] dem_resolution: 5
[INFO] depthmap_resolution: 640
[INFO] dsm: False
[INFO] dtm: False
[INFO] end_with: odm_report
[INFO] fast_orthophoto: False
[INFO] feature_type: sift
[INFO] force_gps: False
[INFO] gcp: None
[INFO] gps_accuracy: 15
[INFO] ignore_gsd: False
[INFO] matcher_distance: 0
[INFO] matcher_neighbors: 8
[INFO] max_concurrency: 8
[INFO] merge: all
[INFO] mesh_octree_depth: 10
[INFO] mesh_point_weight: 4
[INFO] mesh_samples: 1.0
[INFO] mesh_size: 200000
[INFO] min_num_features: 8000
[INFO] mve_confidence: 0.6
[INFO] name: code
[INFO] opensfm_depthmap_method: PATCH_MATCH
[INFO] opensfm_depthmap_min_consistent_views: 3
[INFO] opensfm_depthmap_min_patch_sd: 1
[INFO] optimize_disk_space: False
[INFO] orthophoto_compression: DEFLATE
[INFO] orthophoto_cutline: False
[INFO] orthophoto_no_tiled: False
[INFO] orthophoto_png: False
[INFO] orthophoto_resolution: 1.0
[INFO] pc_classify: False
[INFO] pc_csv: False
[INFO] pc_ept: False
[INFO] pc_filter: 2.5
[INFO] pc_las: False
[INFO] pc_rectify: False
[INFO] pc_sample: 0
[INFO] project_path: /
[INFO] radiometric_calibration: none
[INFO] rerun: None
[INFO] rerun_all: False
[INFO] rerun_from: None
[INFO] resize_to: 2048
[INFO] skip_3dmodel: True
[INFO] sm_cluster: None
[INFO] smrf_scalar: 1.25
[INFO] smrf_slope: 0.15
[INFO] smrf_threshold: 0.5
[INFO] smrf_window: 18.0
[INFO] split: 999999
[INFO] split_multitracks: False
[INFO] split_overlap: 150
[INFO] texturing_data_term: gmi
[INFO] texturing_keep_unseen_faces: False
[INFO] texturing_nadir_weight: 16
[INFO] texturing_outlier_removal_type: gauss_clamping
[INFO] texturing_skip_global_seam_leveling: False
[INFO] texturing_skip_hole_filling: False
[INFO] texturing_skip_local_seam_leveling: False
[INFO] texturing_skip_visibility_test: False
[INFO] texturing_tone_mapping: none
[INFO] time: False
[INFO] use_3dmesh: False
[INFO] use_exif: False
[INFO] use_fixed_camera_params: False
[INFO] use_hybrid_bundle_adjustment: False
[INFO] use_opensfm_dense: True
[INFO] verbose: False
[INFO] ==============
[INFO] Running dataset stage
[INFO] Loading dataset from: /code/images
[INFO] Loading 380 images
[INFO] Wrote images database: /code/images.json
[INFO] Found 380 usable images
[ERROR] Multi-camera setup detected, but band “Blue” (identified from “IMG_0226_1.jpeg”) has only 99 images (instead of 93), perhaps images are missing or are corrupted. Please include all necessary files to process all bands and try again.
Traceback (most recent call last):
File “/code/run.py”, line 62, in
app.execute()
File “/code/stages/odm_app.py”, line 95, in execute
self.first_stage.run()
File “/code/opendm/types.py”, line 331, in run
self.process(self.args, outputs)
File “/code/stages/dataset.py”, line 104, in process
reconstruction = types.ODM_Reconstruction(photos)
File “/code/opendm/types.py”, line 25, in init
self.multi_camera = self.detect_multi_camera()
File “/code/opendm/types.py”, line 51, in detect_multi_camera
raise RuntimeError(“Invalid multi-camera images”)
RuntimeError: Invalid multi-camera images
Here is the output from gdalinfo for the same file as in error log
IMG_0226_1.jpeg
Driver: JPEG/JPEG JFIF
Files: IMG_0226_1.jpeg
Size is 1785, 1332
Coordinate System is `’
Metadata:
EXIF_BitsPerSample=16
EXIF_Compression=1
EXIF_DateTime=2020:01:06 07:30:38
EXIF_DateTimeDigitized=2020:01:06 07:30:38
EXIF_DateTimeOriginal=2020:01:06 07:30:38
EXIF_ExifVersion=0230
EXIF_ExposureProgram=2
EXIF_ExposureTime=(0.001755)
EXIF_FNumber=(2.8)
EXIF_FocalLength=(5.5)
EXIF_FocalPlaneResolutionUnit=4
EXIF_FocalPlaneXResolution=(266.667)
EXIF_FocalPlaneYResolution=(266.667)
EXIF_GPSAltitude=(347.464)
EXIF_GPSAltitudeRef=00
EXIF_GPSDOP=(0)
EXIF_GPSLatitude=(15) (1) (47.9309)
EXIF_GPSLatitudeRef=N
EXIF_GPSLongitude=(101) (34) (42.0596)
EXIF_GPSLongitudeRef=E
EXIF_GPSVersionID=0x2 0x2 00 00
EXIF_Make=MicaSense
EXIF_MeteringMode=1
EXIF_Model=RedEdge-M
EXIF_Orientation=1
EXIF_PhotometricInterpretation=1
EXIF_PlanarConfiguration=1
EXIF_RowsPerStrip=100
EXIF_SamplesPerPixel=1
EXIF_Software=v5.1.12
EXIF_StripByteCounts=256000 256000 256000 256000 256000 256000 256000 256000 256000 153600
EXIF_StripOffsets=8 256008 512008 768008 1024008 1280008 1536008 1792008 2048008 2304008
EXIF_SubSecTime=0
Image Structure Metadata:
COMPRESSION=JPEG
INTERLEAVE=PIXEL
SOURCE_COLOR_SPACE=YCbCr
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1332.0)
Upper Right ( 1785.0, 0.0)
Lower Right ( 1785.0, 1332.0)
Center ( 892.5, 666.0)
Band 1 Block=1785x1 Type=Byte, ColorInterp=Red
Overviews: 893x666, 447x333, 224x167
Image Structure Metadata:
COMPRESSION=JPEG
Band 2 Block=1785x1 Type=Byte, ColorInterp=Green
Overviews: 893x666, 447x333, 224x167
Image Structure Metadata:
COMPRESSION=JPEG
Band 3 Block=1785x1 Type=Byte, ColorInterp=Blue
Overviews: 893x666, 447x333, 224x167
Image Structure Metadata:
COMPRESSION=JPEG
EXIF information
Exif Info: IMG_0226_1.jpeg
File
Filename
IMG_0226_1.jpeg
File Size
743 kB
File Type
JPEG
File Type Extension
jpg
MIME Type
image/jpeg
Exif Byte Order
Big-endian (Motorola, MM)
Image Width
1785
Image Height
1332
Encoding Process
Baseline DCT, Huffman coding
Bits Per Sample
8
Color Components
3
Y Cb Cr Sub Sampling
YCbCr4:2:0 (2 2)
JFIF
JFIF Version
1.01
Resolution Unit
None
X Resolution
1
Y Resolution
1
EXIF
Subfile Type
Full-resolution Image
Image Width
1280
Image Height
960
Bits Per Sample
16
Compression
Uncompressed
Photometric Interpretation
BlackIsZero
Make
MicaSense
Camera Model Name
RedEdge-M
Strip Offsets
38 256038 512038 768038 1024038 1280038 1536038 1792038 2048038 2304038
Orientation
Horizontal (normal)
Samples Per Pixel
1
Rows Per Strip
100
Strip Byte Counts
256000 256000 256000 256000 256000 256000 256000 256000 256000 153600
Planar Configuration
Chunky
Software
v5.1.12
Modify Date
2020:01:06 07:30:38
Black Level Repeat Dim
2 2
Opcode List 3
[opcode 48739], [opcode 41327]
Exposure Time
1/570
F Number
2.8
Exposure Program
Program AE
ISO Speed
100
Exif Version
0230
Date/Time Original
2020:01:06 07:30:38
Create Date
2020:01:06 07:30:38
Metering Mode
Average
Focal Length
5.5 mm
Sub Sec Time
0
Focal Plane X Resolution
266.666667
Focal Plane Y Resolution
266.666667
Focal Plane Resolution Unit
mm
Serial Number
RX01-1838128-SC
GPS Version ID
2.2.0.0
GPS Latitude Ref
North
GPS Latitude
15 deg 1’ 47.93"
GPS Longitude Ref
East
GPS Longitude
101 deg 34’ 42.06"
GPS Altitude Ref
Above Sea Level
GPS Altitude
347.464 m
GPS Dilution Of Precision
0
XMP
XMP Toolkit
XMP Core 4.4.0
About
Pix4D Camera Information
Rig Name
RedEdge-M
Band Name
Blue
Central Wavelength
475
Wavelength FWHM
20
Model Type
perspective
Principal Point
2.44301,1.72591
Perspective Focal Length
5.443902562499999
Perspective Focal Length Units
mm
Perspective Distortion
[-0.1031598,“0.20760290000000001”,"-0.20048969999999999",“0.00064611859999999998”,0.0004736583]
Vignetting Center
[524.17729999999995,477.64359999999999]
Vignetting Polynomial
[-0.0002125889,2.278097e-06,-1.3888370000000001e-08,3.5640499999999997e-11,-4.2217919999999998e-14,1.8529540000000002e-17]
Band Sensitivity
0.27044808648819257
Rig Relatives
0.425265, 0.056991, -0.110456
Rig Camera Index
0
Yaw
108.13899420128037
Pitch
0.40245337015413052
Roll
-2.108529134294761
Irradiance
97.181512011292483
Irradiance Yaw
126.57243950367501
Irradiance Pitch
-22.527084652215432
Irradiance Roll
-30.760329210837089
Boot Timestamp
969
Radiometric Calibration
[0.0001407999,1.0460260000000001e-07,-1.7511660000000001e-05]
Flight Id
l7HWRB2dqkfc8Yx5WfDa
Capture Id
cF8fZ3NXNGqqFa125RMn
Trigger Method
4
Pressure Alt
338.76153564453125
Dark Row Value
[5033,5041,4997,4987]
Serial
DA01-1834117-SC
Sw Version
v0.4.3
Center Wavelength
475
Bandwidth
20
Time Stamp
977
Spectral Irradiance
97.181512011292483
Horizontal Irradiance
111.85613629833938
Direct Irradiance
146.40295994383061
Scattered Irradiance
16.675932353474817
Solar Elevation
0.70774875293923079
Solar Azimuth
3.8613992774390682
Estimated Direct Light Vector
["-0.35218244075325644",“0.74334760369824482”,"-0.56868433115495343"]
Composite
Aperture
2.8
Image Size
1785x1332
Megapixels
2.4
Scale Factor To 35 mm Equivalent
5.2
Shutter Speed
1/570
Modify Date
2020:01:06 07:30:38.0
GPS Altitude
347.4 m Above Sea Level
GPS Latitude
15 deg 1’ 47.93" N
GPS Longitude
101 deg 34’ 42.06" E
Circle Of Confusion
0.006 mm
Field Of View
64.6 deg
Focal Length
5.5 mm (35 mm equivalent: 28.5 mm)
GPS Position
15 deg 1’ 47.93" N, 101 deg 34’ 42.06" E
Hyperfocal Distance
1.86 m