Re: is it possible to adjust convex hull to draw blue line instead of green line?

2016-09-16 Thread meInvent bbird
guess** is that cv2.line() will take an argument to set the line > > colour. You should read the documentation for cv2.line(). > > > > > > Before asking any more questions, please read this: > > > > http://sscce.org/ > > > > > > > > >

Re: is it possible to adjust convex hull to draw blue line instead of green line?

2016-09-16 Thread meInvent bbird
On Saturday, September 17, 2016 at 9:35:35 AM UTC+8, Steve D'Aprano wrote: > On Sat, 17 Sep 2016 10:20 am, meInvent bbird wrote: > > > i succeed to use code to draw green line, but green line not draw the > > large area, expect second uploaded picture, the blue line connect > > the bottom of red l

Re: is it possible to adjust convex hull to draw blue line instead of green line?

2016-09-16 Thread MRAB
On 2016-09-17 01:20, meInvent bbird wrote: i succeed to use code to draw green line, but green line not draw the large area, expect second uploaded picture, the blue line connect the bottom of red line graph [snip] Here's the code with the commented code and print statements removed and the i

Re: is it possible to adjust convex hull to draw blue line instead of green line?

2016-09-16 Thread Steve D'Aprano
On Sat, 17 Sep 2016 10:20 am, meInvent bbird wrote: > i succeed to use code to draw green line, but green line not draw the > large area, expect second uploaded picture, the blue line connect > the bottom of red line graph Please don't waste our time with dead code that has been commented out or

is it possible to adjust convex hull to draw blue line instead of green line?

2016-09-16 Thread meInvent bbird
i succeed to use code to draw green line, but green line not draw the large area, expect second uploaded picture, the blue line connect the bottom of red line graph im = img.copy() cntcounter = 0 for cnt in contours: #epsilon = 0.1*cv2.arcLength(cnt,True) #approx = cv2.approxPolyD

Re: Image processing to auto adjust colors in python ?

2011-05-16 Thread Nobody
On Mon, 16 May 2011 10:11:43 -0700, goldtech wrote: > I'm processing thumbnails with python but one thing I need to do is to > auto-adjust an image for the "best" colors. I am using ffmpeg to get > thumbs three seconds into a video, sometimes the image is too dark

Image processing to auto adjust colors in python ?

2011-05-16 Thread goldtech
Hi, I'm processing thumbnails with python but one thing I need to do is to auto-adjust an image for the "best" colors. I am using ffmpeg to get thumbs three seconds into a video, sometimes the image is too dark. Normally I'd go into something like the windows program Irf

Re: Any way to adjust difflib algorithm?

2009-08-19 Thread Grant Edwards
On 2009-08-19, Aahz wrote: > In article , > Grant Edwards wrote: >>On 2009-08-14, Grant Edwards wrote: >>> >>> In my particular usage, no lines have ever been >>> inserted/deleted, so perhaps I should be running diffs on >>> individual lines instead? If I do that, I can't figure out >>> how to

Re: Any way to adjust difflib algorithm?

2009-08-19 Thread Aahz
In article , Grant Edwards wrote: >On 2009-08-14, Grant Edwards wrote: >> >> In my particular usage, no lines have ever been >> inserted/deleted, so perhaps I should be running diffs on >> individual lines instead? If I do that, I can't figure out >> how to generate HTML output. > >I ended up u

Re: Any way to adjust difflib algorithm?

2009-08-14 Thread Grant Edwards
On 2009-08-14, Grant Edwards wrote: > I'm trying to use difflib to compare two files, and it's not > producing very useful results. When comparing two lines where > only a few characters have changed, it usually seems to decide > that a line was deleted/inserted/replaced rather than changed. [.

Re: Any way to adjust difflib algorithm?

2009-08-14 Thread Chris Rebert
On Fri, Aug 14, 2009 at 2:38 PM, Grant Edwards wrote: > I'm trying to use difflib to compare two files, and it's not > producing very useful results.  When comparing two lines where > only a few characters have changed, it usually seems to decide > that a line was deleted/inserted/replaced rather t

Any way to adjust difflib algorithm?

2009-08-14 Thread Grant Edwards
I'm trying to use difflib to compare two files, and it's not producing very useful results. When comparing two lines where only a few characters have changed, it usually seems to decide that a line was deleted/inserted/replaced rather than changed. Here's how I'm using it: #!/usr/bin/python

Re: How do I adjust the font size on IDLE when running on Mac OS 10.5.4? TIA.

2008-09-02 Thread Chris Rebert
Same as on all the other platforms. 1. Open IDLE 2. Go Options -> Configure IDLE... 3. Choose the Fonts/Tabs section 4. Use the Size pulldown box - Chris On Tue, Sep 2, 2008 at 6:26 AM, Malcolm Lewis <[EMAIL PROTECTED]> wrote: > > > -- > http://mail.python.org/mailman/listinfo/python-list > -

How do I adjust the font size on IDLE when running on Mac OS 10.5.4? TIA.

2008-09-02 Thread Malcolm Lewis
-- http://mail.python.org/mailman/listinfo/python-list

SV: Adjust a canvas as the window is resized

2008-03-10 Thread K Viltersten
>> Do i need to set a callback to a canvas >> in order to "listen" to the root window >> being resized in order to make it adjust >> its contents? >> >> If so, how? If not, how do i make the >> canvas draw a line from one corner to >

Re: Adjust a canvas as the window is resized

2008-03-10 Thread Peter Otten
K Viltersten wrote: > Do i need to set a callback to a canvas > in order to "listen" to the root window > being resized in order to make it adjust > its contents? > > If so, how? If not, how do i make the > canvas draw a line from one corner to > an other?

Adjust a canvas as the window is resized

2008-03-08 Thread K Viltersten
Do i need to set a callback to a canvas in order to "listen" to the root window being resized in order to make it adjust its contents? If so, how? If not, how do i make the canvas draw a line from one corner to an other? from Tkinter import * class Demo(Frame): def __init__(se

Re: adjust

2007-04-24 Thread A.T.Hofkamp
On 2007-04-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > How do i right adjust my output using python.I need a output > something like this: > DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, > 0x51,0x52,0x53,0x55, > minlength= 3, 3,

Re: adjust

2007-04-24 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > How do i right adjust my output using python. http://docs.python.org/lib/typesseq-strings.html > minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4, 1, > 2, 2, 1, 2, 1, 6, 3, 17, 1, Something like: >>> def wr

Re: adjust

2007-04-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > How do i right adjust my output using python.I need a output > something like this: > DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, > 0x51,0x52,0x53,0x55, > minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4,

adjust

2007-04-24 Thread saif . shakeel
Hi, How do i right adjust my output using python.I need a output something like this: DID= 0x01,0x02,0x03,0x05,0x06,0x07,0x2B,0x30,0x31,0x4D,0x4E, 0x51,0x52,0x53,0x55, minlength= 3, 3, 4, 2, 10, 10, 40, 2, 150, 4, 1, 2, 2, 1, 2, 1, 6, 3, 17, 1, maxlength

Re: How to get ScrollRegion to adjust w/ window-size?

2005-08-06 Thread jepler
The ScrollRegion of the canvas gives the area that should be "available" for scrolling. If this is larger than the visible area of the canvas, then associated scrollbars will allow scrolling. If this is smaller than the visible area of the canvas, then the scrollbar will fill with the "thumb" and

How to get ScrollRegion to adjust w/ window-size?

2005-08-05 Thread syed_saqib_ali
Below is a simple code snippet showing a Tkinter Window bearing a canvas and 2 connected scrollbars (Vertical & Horizontal). Works fine. When you shrink/resize the window the scrollbars adjust accordingly. However, what I really want to happen is that the area of the canvas that the scroll