Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

software not importing photos #208

Closed
vettorazi opened this issue Aug 26, 2018 · 7 comments
Closed

software not importing photos #208

vettorazi opened this issue Aug 26, 2018 · 7 comments
Labels
ImageImport image import problems

Comments

@vettorazi
Copy link

Machine:
surface book 2

error:
in the startup of the software:

lugins loaded:  CameraCalibration, CameraConnection, CameraInit, CameraLocalization, CameraRigCalibration, CameraRigLocalization, ConvertAnimatedCamera, ConvertSfMFormat, DepthMap, DepthMapFilter, ExportAnimatedCamera, ExportMaya, ExportUndistortedImages, FeatureExtraction, FeatureMatching, ImageMatching, ImageMatchingMultiSfM, KeyframeSelection, MeshDecimate, MeshDenoising, MeshFiltering, MeshResampling, Meshing, PrepareDenseScene, Publish, SfMAlignment, SfMTransform, StructureFromMotion, Texturing
[QtOIIO] Plugin Initialized
[DepthMapEntity] DepthMapEntity
Failed to download scene at QUrl("")

on the import:```

ERROR:root:Error while building intrinsics : Traceback (most recent call last):
File "f:\tmp\meshroom\meshroom\ui\reconstruction.py", line 384, in buildIntrinsics
File "f:\tmp\meshroom\meshroom\nodes\aliceVision\CameraInit.py", line 129, in buildIntrinsics
RuntimeError: CameraInit failed with error code 3221225477. Command was: "aliceVision_cameraInit --sensorDatabase "C:......."

@rgoupil
Copy link

rgoupil commented Aug 27, 2018

I had the same problem here, on a workstation running Win10 with 16Go of RAM.
I was trying to import several images of 2988x5312.
When I downscaled them to 2656x1494 it could correctly imported them.
I assume this is related to the amount of RAM and the size of your image (5312x2988x3 != 45Go vs 2656x1494x3 ~= 11Go).

@vettorazi
Copy link
Author

vettorazi commented Aug 27, 2018 via email

@vettorazi
Copy link
Author

hey! thanks! worked great!

@yann-lty
Copy link
Member

yann-lty commented Sep 4, 2018

Image size should not be a problem to initialize the project. They are never all loaded simultaneously in memory (only 3 at the same time). Could you share a few images from your (original scale) dataset to see what goes wrong?

@McSmithe
Copy link

It did not import images for me as well, but if I just open them and resave them it did. Doesn't need to resize, something about the image format from the phone makes it break

@natowi
Copy link
Member

natowi commented Oct 13, 2018

I had the same problem, but figured it out:
The import module from AliceVision seems to be really sensitive to corrupted image files.
Some mobile phone cameras and small cameras like the CGO3+ from Yuneec produce images which are not valid. Most image viewers and editing software can handle minor inconsistencies.
Use tools like Bad Peggy to check for errors in your image files.
In my case it was "...extraneous bytes before marker 0xdb".
To fix this problem, you need to bulk convert your dataset (this is why downscaling worked too).
You can use IrfranView File->Batch Conversion or Imagemagick. Make sure you set the quality to 100%.
Now you can add the images to Meshroom (assuming the camera is in the sensor db).

Maybe the Meshroom image importer will be more tolerant with corrupted files in the future.

@rgoupil
Copy link

rgoupil commented Oct 15, 2018

Interesting, I will check my original pictures if I still have them.
The importer should probably be more exlicit when hitting this kind of issue: "could not parse image" would already be a much better error message than the current one IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ImageImport image import problems
Projects
None yet
Development

No branches or pull requests

5 participants