Re: Dove sbaglio, ed un Editor per iniziare, Grazie
Von: David Paleino (ddotpaleino@gmail.c-o-m) [Profil]
Datum: 16.06.2008 09:45
Message-ID: <20080616094551.743749e8@gmail.c-o-m>
Newsgroup: it.comp.lang.python
Datum: 16.06.2008 09:45
Message-ID: <20080616094551.743749e8@gmail.c-o-m>
Newsgroup: it.comp.lang.python
On Mon, 16 Jun 2008 00:40:49 -0700 (PDT), Roberto wrote: > On 13 Giu, 10:23, Simone <etipiace...@nevvero.it> wrote: > > > Non l'ho provato, però secondo me dovresti fare: > > > > a = ImageStat.Stat(image) > > > > print a.count > > > > Visto che ImageStat.Stat(image) fa nascere l'istanza e count è un > > attributo di dell'istanza. Così a leggere la doc, almeno. > > > Ho provato, così: > > import ImageStat > a = ImageStat.Stat("C:\quadrato.gif") > print a.count Credo che Simone intendesse: import Image import ImageStat im = Image.open("C:\quadrato.gif") a = ImageStat.Stat(im) print a.count -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174[ Auf dieses Posting antworten ]
Antworten
- Roberto (16.06.2008 13:44)
