Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:22 AM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > > > > > I am sorry but your code snippet was less efficient then what i posted > > initially. moreover, I was having black and white image. > > >

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 10:19 AM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > > I am sorry but your code snippet was less efficient then what i posted > initially. moreover, I was having black and white image. > I thought you needed BW image. (I should read properly!!) Also, can yo

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 10:14 AM, Venkatraman S wrote: > On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya < > naren...@narendrasisodiya.com> wrote: > > > http://mail.python.org/pipermail/image-sig/2011-January/006639.html > > > > > So i tried my code snippet and it worked. I am sorry but your c

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Sat, Jan 8, 2011 at 9:23 AM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > http://mail.python.org/pipermail/image-sig/2011-January/006639.html > > So i tried my code snippet and it worked. The above thread asks you to convert to greyscale and then do a pixel check. For a sufficien

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Sat, Jan 8, 2011 at 6:55 AM, Kenneth Gonsalves wrote: > On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: > > What is the general mailing list to ask question on python ? > > you are not satisfied with this list? > -- > regards > Kenneth Gonsalves > This is not a question of satisfa

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 23:07 +0530, Venkatraman S wrote: > > > What is the general mailing list to ask question on python ? > > > > > This is one. > > There is also: http://mail.python.org/mailman/listinfo/baypiggies > > And http://mail.python.org/mailman/listinfo/python-list > > > > > I dont think

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Kenneth Gonsalves
On Fri, 2011-01-07 at 22:04 +0530, Narendra Sisodiya wrote: > What is the general mailing list to ask question on python ? you are not satisfied with this list? -- regards Kenneth Gonsalves ___ BangPypers mailing list BangPypers@python.org http://mail.

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 11:00 PM, Roshan Mathews wrote: > > What is the general mailing list to ask question on python ? > > > This is one. > There is also: http://mail.python.org/mailman/listinfo/baypiggies > And http://mail.python.org/mailman/listinfo/python-list > > I dont think baypiggies is t

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Roshan Mathews
On Fri, Jan 7, 2011 at 22:04, Narendra Sisodiya wrote: > Can somebody give an easy way to convert a image into black and white using > a given threshold.. > > Currently I am doing like this > >    image=ImageOps.grayscale(image) >    for i in range(0,width): >        for j in range(0,height): >  

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Venkatraman S
On Fri, Jan 7, 2011 at 10:04 PM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > Currently I am doing like this > >image=ImageOps.grayscale(image) >for i in range(0,width): >for j in range(0,height): >if image.getpixel((i,j)) <= 200: >image.p

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 10:27 PM, kunal wrote: > On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: > >> Can somebody give an easy way to convert a image into black and white >> using >> a given threshold.. >> >> Currently I am doing like this >> >> image=ImageOps.grayscale(image) >> for i i

Re: [BangPypers] Convert to Black and White to an image

2011-01-07 Thread kunal
On 01/07/2011 10:04 PM, Narendra Sisodiya wrote: Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if i

[BangPypers] Convert to Black and White to an image

2011-01-07 Thread Narendra Sisodiya
Can somebody give an easy way to convert a image into black and white using a given threshold.. Currently I am doing like this image=ImageOps.grayscale(image) for i in range(0,width): for j in range(0,height): if image.getpixel((i,j)) <= 200: image.putp

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 5:08 PM, Noufal Ibrahim wrote: > On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: > > > You should be using ncurses for applications like this which need mouse > > positions (x,y) on the console. > > > > http://pyncurses.sourceforge.net/ > > Isn't ncurses used for CUI

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: > You should be using ncurses for applications like this which need mouse > positions (x,y) on the console. > > http://pyncurses.sourceforge.net/ Isn't ncurses used for CUI applications? I wasn't aware that you can control your graphical curso

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Narendra Sisodiya wrote: > In my application, I need to move mouse-pointer and generate click > event. I am not making any GUI application. mouse and click event will > be trigger on dekstop. Is this for some kind of testing? If so, the Linux Desktop Testing Project might off

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 4:54 PM, Narendra Sisodiya < naren...@narendrasisodiya.com> wrote: > On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai > wrote: > > You should be using ncurses for applications like this which need mouse > > positions (x,y) on the console. > > > > http://pyncurses.s

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai wrote: > You should be using ncurses for applications like this which need mouse > positions (x,y) on the console. > > http://pyncurses.sourceforge.net/ What will be the difference ? can I use pyncurses to generate global mousemovement ? l

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ Please don't use X like the way you did in the 2nd approach, *nix really can do better than that. This ain't 1999 you know. --Anand On Fri, Jan 7, 2011 at 4:

[BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
In my application, I need to move mouse-pointer and generate click event. I am not making any GUI application. mouse and click event will be trigger on dekstop. Quick and dirty way to do this import os def move_mouse(x,y): os.system('xdotool mousemove ' + str(x) + ' ' + str(y)) def leftclick(

[BangPypers] [X-Post] [JOB] Fwd: WebApp requirement @ GSLabs, Pune

2011-01-07 Thread steve
Sorry about the cross-post but I assume that might be people outside Pune who may be interested. I'm forwarding this mail on behalf of someone I know. People interested in this may please contact Mr. Harsh Vardhan (consultdadoo at gmail.com) directly. The job is based in Pune AFAIK. cheers,