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

Load Trainning set #1

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 2 comments
Open

Load Trainning set #1

GoogleCodeExporter opened this issue Jun 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

i have download and run project in flash builder 4.6 and xampp but it just show 
"Received list of 65 images and theirs clasificators." when i click load 
training set, can u help me?, thank you so much :)

Original issue reported on code.google.com by [email protected] on 3 Jan 2012 at 3:07

@GoogleCodeExporter
Copy link
Author

Current source in SVN repository works correctly in version 4.6. 

Original comment by [email protected] on 26 Jan 2012 at 1:16

  • Changed state: Solved

@GoogleCodeExporter
Copy link
Author

Had to fiddle with this problem, too.

The source of the problem is: On my Mac, it tries to get the .DS_Store file 
(automatically created by the system).
Then the PHP tries to fetch it without being careful to check if it is an image 
or not, then it crashes.

Solved it by changing line 22 on getTrainingSetData.php from (it adds a check 
of extension):

if ( is_file($path_to_image_dir.'/'.$file) )

to

if ( is_file($path_to_image_dir.'/'.$file) &&  
exif_imagetype($path_to_image_dir.'/'.$file) == IMAGETYPE_JPEG )


Just be careful since you will need to use JPEG files, it will ignore other 
filetypes.

Original comment by [email protected] on 10 Jun 2013 at 6:59

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

No branches or pull requests

1 participant