Re: [Tutor] Help with OCR

2011-02-07 Thread Alan Gauld
Sriram Jaju ramjaju.m...@gmail.com wrote I'm new to python. I'm doing a project on OCR (Optical Character Recognition), I've heard a lot about Python so i want to know whether i can use python for OCR. That depends a lot on the environment. What OS will you be using? What are you doing

Re: [Tutor] Help with OCR

2011-02-07 Thread Alan Gauld
Shashwat Anand anand.shash...@gmail.com wrote My another doubt is that, can i use python for programming microcontrollers You bet. Really? How would he go about that? I've not seen (or even heard of) Python used in that role before. Alan G

Re: [Tutor] Help with OCR

2011-02-07 Thread Sriram Jaju
I'm using windows7. I'm doing a robotic project in which a robot has to take instruction from images which are taken by camera. image consists of characters like 'START', 'STOP' etc. On Mon, Feb 7, 2011 at 2:25 PM, Alan Gauld alan.ga...@btinternet.comwrote: Sriram Jaju ramjaju.m...@gmail.com

[Tutor] function help

2011-02-07 Thread Ashley F
ok...here's the function I've written so far.   def padWithGaps(seq):     for letter in seq:    letter=-    line=len(seq)    dashline=line*letter     return dashline   def replace(someString,position,letter):     first=someString[0:position]     second=letter    

Re: [Tutor] nested loops

2011-02-07 Thread Michael M Mason
Alan Gauld wrote:- Wayne Werner waynejwer...@gmail.com wrote found = False highscore = 0 alignment = somealignment for x in something and not found: for y in somethingelse and not found: for z in evenmoresomething: if x+y+z highscore:

Re: [Tutor] function help

2011-02-07 Thread James Reynolds
I'm not sure of the answer to your question, because i'm not sure I understand it. Perhaps you could rephrase it? But, there is some other stuff I noticed though: def padWithGaps(seq): for letter in seq: letter=- line=len(seq) dashline=line*letter return

[Tutor] JES Jython

2011-02-07 Thread Eun Koo
Hi I have a problem in JES getting a solution to a function. Is there a way you guys can help? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] JES Jython

2011-02-07 Thread bob gailer
On 2/7/2011 2:45 PM, Eun Koo wrote: Hi I have a problem in JES getting a solution to a function. Is there a way you guys can help? Maybe. You might say more about the problem. What is JES and how does it relate to Python? -- Bob Gailer 919-636-4239 Chapel Hill NC

Re: [Tutor] JES Jython

2011-02-07 Thread Stefan Behnel
Eun Koo, 07.02.2011 20:45: Hi I have a problem in JES getting a solution to a function. Is there a way you guys can help? If you can provide enough information for us to understand what your problem is, we may be able to help you. It's a matter of politeness to help us help you. The more

Re: [Tutor] nested loops

2011-02-07 Thread Steven D'Aprano
Alan Gauld wrote: Wayne Werner waynejwer...@gmail.com wrote You probably want to add a sentinel to break out of the outer loops too: I don't think you want to break out of *any* of the loops. Otherwise you will skip testing combinations. In your example, the first time you set highscore and

Re: [Tutor] JES Jython

2011-02-07 Thread Steven D'Aprano
Eun Koo wrote: Hi I have a problem in JES getting a solution to a function. Is there a way you guys can help? Probably not. This is a mailing list about learning the language Python, not specific to JES (whatever that is!) under Jython. If JES has a support forum dedicated to it, you should

Re: [Tutor] function help

2011-02-07 Thread Steven D'Aprano
Ashley F wrote: ok...here's the function I've written so far. def padWithGaps(seq): for letter in seq: letter=- line=len(seq) dashline=line*letter return dashline I don't think that's a useful function. It seems to do a HUGE amount of work that just keeps

Re: [Tutor] nested loops

2011-02-07 Thread Alan Gauld
Steven D'Aprano st...@pearwood.info wrote I don't think you want to break out of *any* of the loops. Otherwise you will skip testing combinations. In that case I misread the OP. I thought he specifically wanted to avoid testing all the options and exit when he reached his target. In your

Re: [Tutor] Converting From Unicode to ASCII!!

2011-02-07 Thread David Hutto
On Mon, Feb 7, 2011 at 10:15 PM, Nevins Duret dur...@bellsouth.net wrote: Hello all,     Don’t know if I’ll be bashed on this forum for doing this, but I will assure you I have the best intentions and simply want to apply a real world problem and how to go about solving it

Re: [Tutor] Converting From Unicode to ASCII!!

2011-02-07 Thread David Hutto
And I forgot, that you don't have to install another version, but just boot from the live disk, and mount the partition. But from looking, you should be able to recover with linux utilities. Look here: