Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: identify not white pixels in bmp
Post: RE: identify not white pixels in bmp
Hi,
Line 10: you seem to write the first element i[0] with a different format than the other elements.
line 10: if pixels are white, their RGB sum is = 765, it's ieasier to find the sum, no need for "... |
|
DPaul |
General Coding Help |
5 |
198 |
Sep-24-2023, 12:50 PM |
|
|
Thread: Reading in of line not working?
Post: RE: Reading in of line not working?
(Sep-19-2023, 08:01 AM)garynewport Wrote: Which now means I cannot read in the older files.Hi, I once had that problem, and I remember that there is a module called "chardet"
which tells you the typ... |
|
DPaul |
General Coding Help |
2 |
273 |
Sep-19-2023, 02:04 PM |
|
|
Thread: more pdf questions
Post: more pdf questions
Hi,
in my efforts to save server space, I have a "how to" problem.
Using Fitz (pyMuPdf), I can : open a pdf and find the page I need (page_nr)
file_handle = fitz.open(pdf_path)
page = file_handle[p... |
|
DPaul |
Bar |
0 |
188 |
Sep-15-2023, 07:31 AM |
|
|
Thread: pdf question
Post: RE: pdf question
(Sep-14-2023, 04:34 PM)Larz60+ Wrote: You can get the entire Acrobat SDK here.How can a simple thing like a pdf, have a reference guide of 756 pages ? **confused**
Paul |
|
DPaul |
Bar |
7 |
419 |
Sep-15-2023, 05:39 AM |
|
|
Thread: pdf question
Post: RE: pdf question
(Sep-13-2023, 11:15 AM)Larz60+ Wrote: I think you can be comfortable that the format will remain for a long time to come.That is what I wanted to hear **smile**
In fact, you could say that about t... |
|
DPaul |
Bar |
7 |
419 |
Sep-14-2023, 05:45 AM |
|
|
Thread: pdf question
Post: RE: pdf question
(Sep-12-2023, 08:54 PM)Larz60+ Wrote: pdf's are a pain in the butt, mainly because of all the formats that may be contained inside,Every day I deal with pdfs, indeed with many different things insid... |
|
DPaul |
Bar |
7 |
419 |
Sep-13-2023, 05:59 AM |
|
|
Thread: pdf question
Post: pdf question
Hi,
When documents are scanned, using a "bulk" scanner,
the result is either a bunch of tifs or pngs.
Those image formats are percieved as being "future developments safe".
But, for some types of doc... |
|
DPaul |
Bar |
7 |
419 |
Sep-12-2023, 08:46 AM |
|
|
Thread: Using pyodbc&pandas to load a Table data to df
Post: RE: Using pyodbc&pandas to load a Table data to df
To what type of database are you trying to connect with pyodbc?
(name + extension) - version
Paul |
|
DPaul |
General Coding Help |
3 |
330 |
Sep-09-2023, 09:28 AM |
|
|
Thread: Program to check whether a number is palindrome or not
Post: RE: Program to check whether a number is palindrom...
(Sep-07-2023, 01:43 PM)PythonBoy Wrote: I am interested in this method also. Could you please explain why did we write y = x[::-1]?
Look here:
https://www.guru99.com/1-in-python.html
Paul |
|
DPaul |
Homework |
18 |
918 |
Sep-07-2023, 02:47 PM |
|
|
Thread: Program to check whether a number is palindrome or not
Post: RE: Program to check whether a number is palindrom...
Hi, No loops allowed ? then try:
x = '1234321'
y = x[::-1]
Is y == x ?
Paul |
|
DPaul |
Homework |
18 |
918 |
Sep-07-2023, 01:33 PM |
|
|
Thread: sqlite3 Conn Insert Value Error
Post: RE: sqlite3 Conn Insert Value Error
Without having executed the code, I would look into line 4 (conn.execute(...))
You are using double quotes for both string and value info.
When I do that, python does not like it.
Test it : Use single... |
|
DPaul |
General Coding Help |
3 |
292 |
Sep-04-2023, 04:57 PM |
|
|
Thread: Unidecode issue
Post: RE: Unidecode issue
(Sep-03-2023, 06:20 PM)Gribouillis Wrote: Use re.sub() for exampleI thought I had to fiddle around with unidecode parameters,
but this is nice and concise.
Thanks again,
Paul |
|
DPaul |
Bar |
5 |
530 |
Sep-04-2023, 06:23 AM |
|
|
Thread: Unidecode issue
Post: RE: Unidecode issue
(Sep-02-2023, 08:45 AM)Gribouillis Wrote: Which translation do you want insteadOK, there is a hidden meaning , only known to genealogists I suppose.
148 is the folio nr.
r° is recto , and...
v° mean... |
|
DPaul |
Bar |
5 |
530 |
Sep-03-2023, 04:55 PM |
|
|
Thread: Unidecode issue
Post: RE: Unidecode issue
(Sep-02-2023, 08:45 AM)Gribouillis Wrote: Which translation do you want insteadFair question.
Let me do some research, because I have to find out if the 'degrees' symbol
was meant to be there and ha... |
|
DPaul |
Bar |
5 |
530 |
Sep-03-2023, 06:07 AM |
|
|
Thread: Unidecode issue
Post: Unidecode issue
Hi,
In some pdfs I encounter references to the original parish register, like so: ref = ' RP 477; p. 148 r° '
I perform unidecode on all strings in the document : fieldUni = unidecode.unidecode(field)... |
|
DPaul |
Bar |
5 |
530 |
Sep-02-2023, 06:42 AM |
|
|
Thread: txt to image
Post: RE: txt to image
(Aug-25-2023, 09:02 AM)Gribouillis Wrote: This should workYes , it does work !
The records are actually official wedding records, with 98 fields ! (people, places, parrish, dates, witness, occupatio... |
|
DPaul |
Bar |
2 |
523 |
Aug-26-2023, 06:03 AM |
|
|
Thread: txt to image
Post: txt to image
Hi,
Sometimes I am handed old files that I cannot OCR, but I can read them via a backdoor.
Simplified, I end up with a few 100.000 very small txt files, each describing a person, with dates, places et... |
|
DPaul |
Bar |
2 |
523 |
Aug-25-2023, 08:11 AM |
|
|
Thread: executable for mac
Post: RE: executable for mac
(Aug-14-2023, 08:19 AM)snippsat Wrote: So you run same code with Pyinstaller,just that need to run code on a Mac OS.
Then will generate an stand alone executable for Mac.
Oh, I see ...!
I'll ask one... |
|
DPaul |
Bar |
2 |
491 |
Aug-14-2023, 08:46 AM |
|
|
Thread: executable for mac
Post: executable for mac
Hi,
An app that has been developed for windows,
has attracted the interest of some mac users (yes they exist!)
Instead of doing pyinstaller ... etc, to create an .exe file, what
module would be reco... |
|
DPaul |
Bar |
2 |
491 |
Aug-14-2023, 05:58 AM |
|
|
Thread: doing string split with 2 or more split characters
Post: RE: doing string split with 2 or more split charac...
How to Disable or Enable Grayscale Mode in Windows 10/11 ?
Many tuts on youtube...
Paul |
|
DPaul |
General Coding Help |
22 |
1,192 |
Aug-10-2023, 03:40 PM |