Object Capture Errors

Im testing the object capture api and with the data provided it works like a charm.

However when i take my own photos i keep getting the below error code -

RealityFoundation.PhotogrammetrySession.Request.Detail.reduced, geometry: nil) = 1.0 2021-06-21 13:22:50.674266+1000 HelloPhotogrammetry[55028:754841] ERROR cv3dapi.pg: Internal codes (1): 4004 2021-06-21 13:22:50.675276+1000 HelloPhotogrammetry[55028:754841] [Photogrammetry] No SfM map found in native output! 2021-06-21 13:22:50.675995+1000 HelloPhotogrammetry[55028:754841] [Photogrammetry] Got error in completion: reconstructionFailed(RealityFoundation.PhotogrammetrySession.Request.modelFile(url: file:///Users/xx/Desktop/Rock.usdz, detail: RealityFoundation.PhotogrammetrySession.Request.Detail.reduced, geometry: nil), "Reconstruction failed!") Request modelFile(url: file:///Users/xx/Desktop/Rock.usdz, detail: RealityFoundation.PhotogrammetrySession.Request.Detail.reduced, geometry: nil) had an error: reconstructionFailed("Reconstruction failed!")

I got the same error and found a possible reason, although the message is too generic to be sure it cannot result from any number of problems.

In my case, I was using .heic files that I had cropped using imagemagick's convert tool. Something must have been wong with those files, because reconstruction worked (rather well, see attachment) once I had cropped the images using the system's built-in support for the image format. I used a Hammerspoon script, but you can also use Preview or Photos or automate either one with Shortcuts etc..

Object Capture Errors
 
 
Q