arnaucube
arnaucube/objectImageIdentifierAIPublic Self-hosted repository
objectImageIdentifierAI/other/cropObjects/README.md
other/cropObjects/README.mdRaw
 1# imagesToDataset
 2Gets all the images from the directories 'object' and 'noobject', and puts in a dataset file.
 3The dataset file is a dataset.data file that contains 2 columns:
 4- images arrays of pixels
 5- 0 or 1, depending if is from the 'noobject' or 'object' directory
 6
 7
 8First, install the libraries.
 9
10### install scikit-learn
11http://scikit-learn.org/stable/install.html
12pip install -U scikit-learn
13
14### install scikit-image
15http://scikit-image.org/download
16pip install -U scikit-image
17
18### install numpy
19https://www.scipy.org/install.html
20python -m pip install --upgrade pip
21pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
22
23### install Pillow
24http://pillow.readthedocs.io/en/3.0.x/installation.html
25(sudo) pip install Pillow
26
27### install matplotlib
28https://matplotlib.org/users/installing.html
29python -mpip install -U pip
30python -mpip install -U matplotlib
31
32may need to install python-tk:
33sudo apt-get install python-tk
34
35
36## to run
37python readDataset.py