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

CreateList failed to read jpg images #83

Closed
ghost opened this issue Feb 11, 2014 · 5 comments
Closed

CreateList failed to read jpg images #83

ghost opened this issue Feb 11, 2014 · 5 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 11, 2014

tyleeer@tyleeer-SVF14N13CXB:~/Desktop/openMVG/openMVG_build/software/SfM$ sudo ./openMVG_main_CreateList -i /home/tyleeer/Desktop/pantheon/ -d /home/tyleeer/Desktop/openMVG/src/software/SfM/cameraSensorWidth/cameraGenerated.txt  -o /home/tyleeer/Desktop/result/ -f -1
[sudo] password for tyleeer: 
 You called : 
./openMVG_main_CreateList
--imageDirectory /home/tyleeer/Desktop/pantheon/
--sensorWidthDatabase /home/tyleeer/Desktop/openMVG/src/software/SfM/cameraSensorWidth/cameraGenerated.txt
--outputDirectory /home/tyleeer/Desktop/result/
--focal -1
File can't be opened
Error: Couldn't open /home/tyleeer/Desktop/pantheon/.DS_Store Unknown file formatError: Couldn't open /home/tyleeer/Desktop/pantheon/.DS_Store Unknown file formatFile can't be opened
Error: Couldn't open /home/tyleeer/Desktop/pantheon/._.DS_Store Unknown file formatError: Couldn't open /home/tyleeer/Desktop/pantheon/._.DS_Store Unknown file formatFile can't be opened
Not a JPEG file: starts with 0x00 0x05
Not a JPEG file: starts with 0x00 0x05
File can't be opened
Not a JPEG file: starts with 0x00 0x05
Not a JPEG file: starts with 0x00 0x05
001.jpg;2592;1944;2614.54;Canon;Canon PowerShot A710 IS
002.jpg;3456;2592;2671.58;Panasonic;DMC-TZ5
@ghost
Copy link
Author

ghost commented Feb 11, 2014

001
002

These are the two images.
Notice: these images are from Flickr. Only for non-commercial usage. All rights reserved for the author.

@rperrot
Copy link
Contributor

rperrot commented Feb 11, 2014

Error seams to be on mac files (i.e. ._ds_store), just ignore them.

@Meekohi
Copy link
Contributor

Meekohi commented Feb 11, 2014

Yeah remove /home/tyleeer/Desktop/pantheon/.DS_Store it is an annoying file
OSX autogenerates for thumbnails.

Alternatively you could change main_CreateList.cpp to ignore files that
start with ".", somewhere before exifReader->open( sImageFilename );.

On Tue, Feb 11, 2014 at 12:47 PM, Romuald Perrot
notifications@github.comwrote:

Error seams to be on mac files (i.e. ._ds_store), just ignore them.

Reply to this email directly or view it on GitHubhttps://github.com//issues/83#issuecomment-34782944
.

@pmoulon pmoulon self-assigned this Feb 11, 2014
@pmoulon
Copy link
Member

pmoulon commented Feb 11, 2014

Hi,
thanks for the investigation.
Your two images load correctly, don't worry:
I get an output like yours:
unnamed.jpg;2592;1944;2614.54;Canon;Canon PowerShot A710 IS
unnamed2.jpg;3456;2592;2671.58;Panasonic;DMC-TZ5

So you can ignore those errors during the process.
The main_CreateList try to open each file that is in the input directory.
The usedimage reader will tell if the file is readable or not and so export only valuable information.
The fact you get error is because the log output is not perfect.
If you check your lists.txt file you will notice only the following fields:
unnamed.jpg;2592;1944;2614.54;Canon;Canon PowerShot A710 IS
unnamed2.jpg;3456;2592;2671.58;Panasonic;DMC-TZ5

@pmoulon pmoulon closed this as completed Feb 11, 2014
@ghost
Copy link
Author

ghost commented Feb 11, 2014

Thank you

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

No branches or pull requests

3 participants