Hi, i was wondering how can i convert an image into a string of characters in pd? Is there is an easy way of doing this?
cheers
R.
On 03/01/2013 05:46, ronni montoya wrote:
Hi, i was wondering how can i convert an image into a string of characters in pd? Is there is an easy way of doing this?
what does "convert an image into a string" mean?
you can load the image with mrpeach's [binfile] (or try loading it as a raw audio file into a table), and then use something like [string2any] to convert it into a string.
fgmadsr IOhannes
in case you mean to convert it to ascii art:
Here are hex values of common grey-scale ASCII Characters in order from
darkest to lightest:
# = 23
@ = 40
8 = 38
% = 25
O = 4F
o = 6F
" = 22
; = 3B
, = 2C
' = 27
. = 2E
= 20
and map the grey values of a 'low-res' version of your image to these characters somehow... gr, Tim
2013/3/1 IOhannes m zmölnig zmoelnig@iem.at
On 03/01/2013 05:46, ronni montoya wrote:
Hi, i was wondering how can i convert an image into a string of characters in pd? Is there is an easy way of doing this?
what does "convert an image into a string" mean?
you can load the image with mrpeach's [binfile] (or try loading it as a raw audio file into a table), and then use something like [string2any] to convert it into a string.
fgmadsr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list