README.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. IPFML
  2. =====
  3. Image Processing For Machine Learning package.
  4. How to use ?
  5. ------------
  6. To use, simply do::
  7. >>> from PIL import Image
  8. >>> import ipfml as iml
  9. >>> img = Image.open('path/to/image.png')
  10. >>> s = iml.metrics.get_SVD_s(img)
  11. Modules
  12. -------
  13. This project contains modules.
  14. - **img_processing** : *PIL image processing part*
  15. - fig2data(fig): *Convert a Matplotlib figure to a 3D numpy array with RGB channels and return it*
  16. - fig2img(fig): *Convert a Matplotlib figure to a PIL Image in RGB format and return it*
  17. - **metrics** : *Metrics computation of PIL image*
  18. - get_SVD(image): *Transforms PIL Image into SVD*
  19. - get_SVD_s(image): *Transforms PIL Image into SVD and returns only 's' part*
  20. - get_SVD_U(image): *Transforms PIL Image into SVD and returns only 'U' part*
  21. - get_SVD_V(image): *Transforms PIL Image into SVD and returns only 'V' part*
  22. - get_LAB(image): *Transforms PIL Image into LAB*
  23. - get_LAB_L(image): *Transforms PIL Image into LAB and returns only 'L' part*
  24. - get_LAB_A(image): *Transforms PIL Image into LAB and returns only 'A' part*
  25. - get_LAB_B(image): *Transforms PIL Image into LAB and returns only 'B' part*
  26. - get_XYZ(image): *Transforms PIL Image into XYZ*
  27. - get_XYZ_X(image): *Transforms PIL Image into XYZ and returns only 'X' part*
  28. - get_XYZ_Y(image): *Transforms PIL Image into XYZ and returns only 'Y' part*
  29. - get_XYZ_Z(image): *Transforms PIL Image into XYZ and returns only 'Z' part*
  30. - **ts_model_helper** : *contains helpful function to save or display model information and performance of tensorflow model*
  31. - save(history, filename): *Function which saves data from neural network model*
  32. - show(history, filename): *Function which shows data from neural network model*
  33. All these modules will be enhanced during development of the project
  34. How to contribute
  35. -----------------
  36. This git project uses git-flow_ implementation. You are free to contribute to it.
  37. .. _git-flow : https://danielkummer.github.io/git-flow-cheatsheet/