openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

InterfaceVisualSFM - unknown image format .jpeg

Open nibab opened this issue 7 years ago • 6 comments

Specifications like the version of the project, operating system, and hardware

Project version 0.7 OS Ubuntu 14.04

Steps to reproduce the problem

  1. build openMVS
  2. run from command line: ../workspace/openMVS_build/bin/InterfaceVisualSFM -i model.nvm

../workspace/openMVS_build/bin/InterfaceVisualSFM -i model.nvm 18:33:22 [App ] Build date: Oct 12 2017, 01:16:50 18:33:22 [App ] CPU: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz 18:33:22 [App ] RAM: 14.69GB Physical Memory 0B Virtual Memory 18:33:22 [App ] OS: Linux 3.13.0-132-generic (x86_64) 18:33:22 [App ] SSE & AVX compatible CPU & OS detected 18:33:22 [App ] Command line: -i model.nvm 18:33:22 [App ] Loading cameras/points: model.nvm 18:33:22 [App ] 29 cameras; 14885 3D points; 101319 projections 18:33:23 [App ] CUDA device 0 initialized: GRID K520 (compute capability 3.0; memory 3.94GB) 18:33:23 [IO ] error: unknown image format '/home/ubuntu/w2/027.jpeg' 18:33:23 [App ] error: failed loading image header 18:33:23 [App ] error: failed reloading image '/home/ubuntu/w2/027.jpeg' 18:33:23 [App ] error: can not read image /home/ubuntu/w2/027.jpeg

nibab avatar Oct 12 '17 18:10 nibab

pls make sure you compiled openCV and openMVS with the same JPEG library dependency (same version at least)

cdcseacave avatar Oct 12 '17 18:10 cdcseacave

openCV and openMVS have been both compiled with jpeg8

nibab avatar Oct 12 '17 19:10 nibab

Have you solved the problem? I just met the same one.

945540968 avatar Nov 21 '17 11:11 945540968

Even if you solve the error, I advise everyone to try to avoid using VisualSFM, the accuracy of the reconstruction is low. Please use OpenMVG.

cdcseacave avatar Nov 21 '17 14:11 cdcseacave

I have the same problem. Has anyone found a solution to this?

fabiopoiesi avatar Mar 21 '18 18:03 fabiopoiesi

This may be the cause of the issue raised my the OP (the other related issues mentioning jpeg are possibly due to the other issues with library compatibility). There is a problem with the code only recognising .jpg and not.jpeg extensions which was the reason i was getting a bunch of errors.

libs/IO/Image.cpp just needs a small change to recognise both file extensions.

antonyscerri avatar Nov 23 '21 03:11 antonyscerri