Как создать массив из 0 и 1 из jpg-файла [закрыто] ⇐ Python
-
Anonymous
Как создать массив из 0 и 1 из jpg-файла [закрыто]
How to create 2D-array of "0"s for white pixels "1"s for black pixels out of "9" such as for example
[ [0, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 0, 0, 1, 1], [0, 0, 1, 1, 1], [0, 1, 1, 1, 1] ] Would be great, if somebody could tell me how to achieve.
thx Markus
I did a lot of reading and trying with numpy and scikit-image, but as being poorly experienced i am lost with all this stuff. There is a lot i do not understand and i was not successful until now.
Источник: https://stackoverflow.com/questions/780 ... a-jpg-file
How to create 2D-array of "0"s for white pixels "1"s for black pixels out of "9" such as for example
[ [0, 0, 0, 0, 0], [0, 0, 0, 0, 1], [0, 0, 0, 1, 1], [0, 0, 1, 1, 1], [0, 1, 1, 1, 1] ] Would be great, if somebody could tell me how to achieve.
thx Markus
I did a lot of reading and trying with numpy and scikit-image, but as being poorly experienced i am lost with all this stuff. There is a lot i do not understand and i was not successful until now.
Источник: https://stackoverflow.com/questions/780 ... a-jpg-file