Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Peter J. Holzer
On 2021-06-16 15:51:49 -0700, Arak Rachael wrote: > On Wednesday, 16 June 2021 at 23:44:02 UTC+2, Chris Angelico wrote: > > On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > > > > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > > > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Racha

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 4:43 PM Dan Stromberg wrote: > > > > On Wed, Jun 16, 2021 at 2:44 PM Chris Angelico wrote: >> >> On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: >> > > >> How well can you define the things you're looking for? >> > > >> >> > > >> https://xkcd.com/1425/ >> > > >> >> >

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Dan Stromberg
On Wed, Jun 16, 2021 at 2:44 PM Chris Angelico wrote: > On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > > >> How well can you define the things you're looking for? > > > >> > > > >> https://xkcd.com/1425/ > > > >> > > > > He means that image processing is a hard problem that requires >

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Cameron Simpson
On 16Jun2021 15:51, Arak Rachael wrote: >I understand your concerns. Actually I am doing image processing of >satellite pictures for smart cars. I have been given the option to use >InfranView and do it manually or create a Python script. If you need to slice images into 100x100 pixels squares,

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
On Wednesday, 16 June 2021 at 23:44:02 UTC+2, Chris Angelico wrote: > On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > > > wrote: > > > >>> > > > >>> Hi guys, > > > >>> >

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
On Wed, 16 Jun 2021, Alan Gauld via Python-list wrote: But there is nothing I know of for Tkinter that provides views of database tables in the way that Delphi or VB or C# do, for example. Alan, These are all Microsoft tools. I run linux only. You have to extract the data using SQL and popu

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
On Thu, 17 Jun 2021, dn via Python-list wrote: Use the DBMS by retrieving the data in the desired sequence? dn, Yep. That's what I thought would be the best approach. Thanks, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
On Wed, 16 Jun 2021, Dennis Lee Bieber wrote: Scroll further down to "bindings"... rc_insert_row -- a menu binding Dennis, Yes, I saw that one, too. As for sorting, I don't see anything that allows one to add custom events to the bindings... best I can come up with is that

Re: tkinter: tksheet

2021-06-16 Thread Alan Gauld via Python-list
On 16/06/2021 21:45, Rich Shepard wrote: > The two applications I'm building are both database applications. If > tksheet() is not the most appropriate widget to display database tables what > alternative would be better? I've not used tksheet but it sounds like it might be worth investigating.

Re: tkinter: tksheet

2021-06-16 Thread dn via Python-list
On 17/06/2021 08.45, Rich Shepard wrote: > On Wed, 16 Jun 2021, Terry Reedy wrote: > >> Somewhat sparse doc at >> https://github.com/ragardner/tksheet/blob/master/DOCUMENTATION.md#5-modifying-table-data >> >> insert_row() > > Terry, > > I'm reading this now and saw that. > >> and change the col

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 7:35 AM Dan Stromberg wrote: > > On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > > > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > > wrote: > > >>> > > >>> Hi guys, > > >>> > > >>> I have an image from google maps to say and I need to check if it has > > road markings

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Dan Stromberg
On Wed, Jun 16, 2021 at 2:04 PM Barry wrote: > >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael > wrote: > >>> > >>> Hi guys, > >>> > >>> I have an image from google maps to say and I need to check if it has > road markings, in order to do that, I believe I need to change the effects > on the im

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 7:25 AM Dennis Lee Bieber wrote: > > On Thu, 17 Jun 2021 06:07:59 +1000, Chris Angelico > declaimed the following: > > > >How well can you define the things you're looking for? > > > >https://xkcd.com/1425/ > > Non sequitur comment -- Sounds like a potential usage

Re: Why the list creates in two different ways? Does it cause by the mutability of its elements? Where the Python document explains it?

2021-06-16 Thread Peter J. Holzer
On 2021-06-16 18:32:46 +0200, Dieter Maurer wrote: > Chris Angelico wrote at 2021-6-16 02:20 +1000: > >On Wed, Jun 16, 2021 at 2:18 AM Dieter Maurer wrote: > >> As far as I know, there are no guarantees are the language level. > >> There are some (partially documented) implementation details > >>

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Barry
> On 16 Jun 2021, at 21:46, Arak Rachael wrote: > > On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: >>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: >>> >>> Hi guys, >>> >>> I have an image from google maps to say and I need to check if it has road >>> markings

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 6:44 AM Arak Rachael wrote: > > On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: > > On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > > > > > Hi guys, > > > > > > I have an image from google maps to say and I need to check if it has > > > road ma

Re: tkinter: tksheet

2021-06-16 Thread Rich Shepard
On Wed, 16 Jun 2021, Terry Reedy wrote: Somewhat sparse doc at https://github.com/ragardner/tksheet/blob/master/DOCUMENTATION.md#5-modifying-table-data insert_row() Terry, I'm reading this now and saw that. and change the column used for sorting (e.g., sorting by company number or company

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote: > On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > > > Hi guys, > > > > I have an image from google maps to say and I need to check if it has road > > markings, in order to do that, I believe I need to change the effec

Re: Why the list creates in two different ways? Does it cause by the mutability of its elements? Where the Python document explains it?

2021-06-16 Thread Roel Schroeven
Dieter Maurer schreef op 16/06/2021 om 18:32: Chris Angelico wrote at 2021-6-16 02:20 +1000: On Wed, Jun 16, 2021 at 2:18 AM Dieter Maurer wrote: As far as I know, there are no guarantees are the language level. There are some (partially documented) implementation details for CPython (which is

Re: How to check if an image contains an element I am searchig for

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote: > > Hi guys, > > I have an image from google maps to say and I need to check if it has road > markings, in order to do that, I believe I need to change the effects on the > image so the markings and road can be white or something and the things

Re: tkinter: tksheet

2021-06-16 Thread Terry Reedy
On 6/16/2021 12:31 PM, Rich Shepard wrote: Reading the doc for tksheet tells me that it allows me to modify cells (or entire rows) as well as display them. What I don't see is whether I can add a new row using tksheet Somewhat sparse doc at https://github.com/ragardner/tksheet/blob/master/DOCUM

Re: optimization of rule-based model on discrete variables

2021-06-16 Thread Greg Ewing
On 16/06/21 10:51 pm, Elena wrote: sorry I wrote it wrongly, my bad, I will use f just to predict yi from new coming Xi. Then what do you do with the new yi? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

How to check if an image contains an element I am searchig for

2021-06-16 Thread Arak Rachael
Hi guys, I have an image from google maps to say and I need to check if it has road markings, in order to do that, I believe I need to change the effects on the image so the markings and road can be white or something and the things I don't need like cars, trees and so on to be black. images s

Re: Why the list creates in two different ways? Does it cause by the mutability of its elements? Where the Python document explains it?

2021-06-16 Thread Chris Angelico
On Thu, Jun 17, 2021 at 2:32 AM Dieter Maurer wrote: > > Chris Angelico wrote at 2021-6-16 02:20 +1000: > >On Wed, Jun 16, 2021 at 2:18 AM Dieter Maurer wrote: > >> As far as I know, there are no guarantees are the language level. > >> There are some (partially documented) implementation details

Re: Why the list creates in two different ways? Does it cause by the mutability of its elements? Where the Python document explains it?

2021-06-16 Thread Dieter Maurer
Chris Angelico wrote at 2021-6-16 02:20 +1000: >On Wed, Jun 16, 2021 at 2:18 AM Dieter Maurer wrote: >> As far as I know, there are no guarantees are the language level. >> There are some (partially documented) implementation details >> for CPython (which is just one possible implementation). > >Y

tkinter: tksheet

2021-06-16 Thread Rich Shepard
Reading the doc for tksheet tells me that it allows me to modify cells (or entire rows) as well as display them. What I don't see is whether I can add a new row using tksheet and change the column used for sorting (e.g., sorting by company number or company name). If you have experience with tksh

Re: optimization of rule-based model on discrete variables

2021-06-16 Thread Elena via Python-list
Il Wed, 16 Jun 2021 11:37:42 +1200, Greg Ewing ha scritto: > On 15/06/21 10:07 pm, Elena wrote: >> After the optimization, I will use f just to predict new Xi. > > So you're going to use f backwards? > > I don't see how that will work. Where are you going to find a new yi to > feed into the inve

Re: Help with Python circular error

2021-06-16 Thread Arak Rachael
On Tuesday, 15 June 2021 at 19:30:28 UTC+2, Chris Angelico wrote: > On Wed, Jun 16, 2021 at 3:17 AM MRAB wrote: > > > > On 2021-06-15 17:49, Chris Angelico wrote: > > > On Wed, Jun 16, 2021 at 2:45 AM Arak Rachael > > > wrote: > > >> > > >> Hi to everyone, > > >> > > >> I am having a probl

SettingWithCopyWarning despite df.loc

2021-06-16 Thread Loris Bennett
Hi, I have read a CSV file into a pandas DataFrame. The data contain a column for disk-space usage in KB. To plot the data, I would like to scale the date to, say, GB. What I have is the following: size_unit = "GB" factor = {"GB": 1/(1024*1024)} usage.loc[:, size_unit] = usage.loc[:, 'K

Re: Why the list creates in two different ways? Does it cause by the mutability of its elements? Where the Python document explains it?

2021-06-16 Thread Jach Feng
Greg Ewing 在 2021年6月16日 星期三上午7:11:35 [UTC+8] 的信中寫道: > On 15/06/21 7:32 pm, Jach Feng wrote: > > But usually the list creation is not in simple way:-) for example: > a = [1,2] > m = [a for i in range(3)] > m > > [[1, 2], [1, 2], [1, 2]] > id(m[0]) == id(m[1]) == id(m[2]) >

Re: Help with Python circular error

2021-06-16 Thread Arak Rachael
On Wednesday, 16 June 2021 at 10:32:50 UTC+2, Arak Rachael wrote: > On Tuesday, 15 June 2021 at 19:30:28 UTC+2, Chris Angelico wrote: > > On Wed, Jun 16, 2021 at 3:17 AM MRAB wrote: > > > > > > On 2021-06-15 17:49, Chris Angelico wrote: > > > > On Wed, Jun 16, 2021 at 2:45 AM Arak Rachael >

Re: Where did the message go?

2021-06-16 Thread Greg Ewing
On 16/06/21 4:47 am, Chris Angelico wrote: On Wed, Jun 16, 2021 at 2:41 AM Grimble wrote: > was bouncing because haydn.. was not a registered subdomain with my ISP, whereas bach.. was registered. > > I like your naming convention :) Weirdly, the first association "haydn" trig