cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.18k stars 890 forks source link

InterfaceVisualSFM - unknown image format .jpeg #258

Open nibab opened 6 years ago

nibab commented 6 years ago

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

cdcseacave commented 6 years ago

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

nibab commented 6 years ago

openCV and openMVS have been both compiled with jpeg8

945540968 commented 6 years ago

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

cdcseacave commented 6 years ago

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.

fabiopoiesi commented 6 years ago

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

antonyscerri commented 2 years ago

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.