项目作者: RohitMidha23

项目描述 :
Convert Images to Binary Art!
高级语言: Python
项目地址: git://github.com/RohitMidha23/Binarify.git
创建时间: 2019-01-19T12:13:58Z
项目社区:https://github.com/RohitMidha23/Binarify

开源协议:Apache License 2.0

下载


Binarify Tweet

Binarify is a python package that lets you convert any image to binary.

Let’s take a picture of the spidercat.

Let’s Binarify it.

  1. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  2. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  3. 000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
  4. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  5. 000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
  6. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  7. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  8. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  9. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  10. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  11. 000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000
  12. 000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000
  13. 000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000
  14. 000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000
  15. 000000000000000000000000000000000000000000001001000000000000000000000000000000000000000000
  16. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  17. 000000000000000000000000000000010000000000101000000000000000000000000000000000000000000000
  18. 000000000000000000000000000000101010100000001000000000000000000000000000000000000000000000
  19. 000000000000000000000000000000100010000000000101000000000000000000000000000000000000000000
  20. 000000000000000000000000000000000001010000001000000000000000000000000000000000000000000000
  21. 000000000000000000000000000000110000101000001000000000000000000000000000000000000000000000
  22. 000000000000000000000000000000001000000101100010000101000000000000000000000000000000000000
  23. 000000000000000000000000000000100100010000001001010010111000000000000000000000000000000000
  24. 000000000000000000000000000000000100000000000100000000000110000000000000000000000000000000
  25. 000000000000000000000000000000000011011101101001000000000011000000000000000000000000000000
  26. 000000000000000000000000000000000000000000000100000000000000100000000000000000000000000000
  27. 000000000000000000000000000000000000000000000001010000000000100000000000000000000000000000
  28. 000000000000000000000000000000000000000000010100100000000100000000000000000000000000000000
  29. 000000000000000000000000000000000000000000100010001000001010100000000000000000000000000000
  30. 000000000000000000000000000000000000000010000000100000000100000000000000000000000000000000
  31. 000000000000000000000000000000000000000100100010001000001010000000000000000000000000000000
  32. 000000000000000000000000000000000000000001000000100100000000100000000000000000000000000000
  33. 000000000000000000000000000000000000101000000000000010000000000000000000000000000000000000
  34. 000000000000000000000000000000000000000100000000001000100000000000000000000000000000000000
  35. 000000000000000000000000000000000001001000000000000010001000000000000000000000000000000000
  36. 000000000000000000000000000000000000100010000000001000100000000000000000000000000000000000
  37. 000000000000000000000000000000000000010000000000000010000000000000000000000000000000000000
  38. 000000000000000000000000000000000000001010000000000100010000000000000000000000000000000000
  39. 000000000000000000000000000000000000100000000000000001000000000000000000000000000000000000
  40. 000000000000000000000000000000000000010100100000001010000101000000000000000000000000000000
  41. 000000000000000000000000000000000000001000000000000000010000000000000000000000000000000000
  42. 000000000000000000000000000000000000100101010101010101001010101000000000000000000000000000
  43. 000000000000000000000000000000000000001000000000001000000000000000000000000000000000000000
  44. 000000000000000000000000000000000000000101001001010010000000101000000000000000000000000000
  45. 000000000000000000000000000000000000010000100100000100000000000000000000000000000000000000
  46. 000000000000000000000000000000000000000100000001010000000000000100000000000000000000000000
  47. 000000000000000000000000000000000001001001010100000101000000000010000000000000000000000000
  48. 000000000000000000000000000000000100100010010010101000100100000100100000000000000000000000
  49. 000000000000000000000000000000010000010100100100010010010001000000000000000000000000000000
  50. 000000000000000000000000000000001010100010001001000100100100000000000000000000000000000000
  51. 000000000000000000000000000001010000010001010000101001001001010000000000000000000000000000
  52. 000000000000000000000000000000100101001010000101000100010010000000000000000000000000000000
  53. 000000000000000000000000000010001001000100101000100010100100101000000000000000000000000000
  54. 000000000000000000000000000010100100101001000010010100010001000100000000000000000000000000
  55. 000000000000000000000000000100010010000100010001001000100100101000000010000000000000000000
  56. 000000000000000000000000000010001000111001001010010111000010000000000000000000000000000000
  57. 000000000000000000000000001001010011111100100001001111110100101000000000000000000000000000
  58. 000000000000000000000000000100000111110110010100111101111001001010000000000000000000000000
  59. 000000000000000000000000000010101111011110000010010111011100010000000000000000000000000000
  60. 000000000000000000000000001000001111111011010100011111110101001010000000000000000000000000
  61. 000000000000000000000000000101011101101111000010111011011110010000000000000000000000000000
  62. 000000000000000000000000000000011111111111001000111111111111000100000000000000000000000000
  63. 000000000000000000000000001010111011011000010010000101101011010010000000000000000000000000
  64. 000000000000000000000000000100111110000001001001000000011111001000000000000000000000000000
  65. 000000000000000000000000000010000001001000100100101010000000000100000000000000000000000000
  66. 000000000000000000000000000100100100100101001001000001010001010000000000000000000000000000
  67. 000000000000000000000000000001001000010000100010010100001010001000000000000000000000000000
  68. 000000000000000000000000000000100010100101001000100010100100100000000000000000000000000000
  69. 000000000000000000000000000010001001001000100101001001010001000000000000000000000000000000
  70. 000000000000000000000000000000100100010010010000100100001010010000000000000000000000000000
  71. 000000000000000000000000000000010010100100100101001001010001000000000000000000000000000000
  72. 000000000000000000000000000000000100010001001000100100100100100000000000000000000000000000
  73. 000000000000000000000000000001010010001010010010010010000010010000000000000000000000000000
  74. 000000000000000000000000000000010001010001000100100001010100000000000000000000000000000000
  75. 000000000000000000000000000001001010000000101001000000000010100000000000000000000000000000
  76. 000000000000000000000000000000100100000000000000000000010100100000000000000000000000000000
  77. 000000000000000000000000000000010000000000000000000000000010010000000000000000000000000000
  78. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  79. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  80. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  81. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  82. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  83. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  84. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  85. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  86. 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  87. 000000000000000000000000000001111111111111111111111111111111000000000000000000000000000000
  88. 000000000000000000000000001111111111111111111111111111111111111100000000000000000000000000
  89. 000000000000000000000000000111011010110110110110110110110110111000000000000000000000000000
  90. 000000000000000000000000000000000111111111111111111111110000000000000000000000000000000000

Contents

What is Binarify

Binarify is a python script that lets you convert any image to a binary image resembling the input image.

In other words, it replicates an image with 1’s and 0’s.

Setup

Make sure you have the following packages installed before usage:

  • Pillows >= 3.4.0
  • urllib
  • argparse

Use Binarify

  1. Clone this repository.
  2. Typical usage often looks like :
    1. python binarify.py -input path/to/image.jpg -output path/to/output/text/file -mode black -width 120
  3. Check the output.txt file for the text version of the same.

Support Me

If you :heart: it, :star: this repo.

Help me translate this README into other languages. :smile:

Check out my other work too either on Github or on my website.

Enjoy!