Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Isolate all images from a pdf document
Post: RE: Isolate all images from a pdf document
(Oct-07-2023, 02:48 PM)Pedroski55 Wrote: I would say, your source pdf file only contains 2 images, because this also only gives me 2 images.
path2pdf = '/home/pedro/pdfs/pdfs/doc3.pdf'
savepath = '... |
|
cybertooth |
General Coding Help |
7 |
858 |
Oct-08-2023, 07:14 AM |
|
|
Thread: Isolate all images from a pdf document
Post: Isolate all images from a pdf document
Hi everyone. I am trying to isolate images from a pdf file. The problem I am facing is that all the images are not isolated, out of the 3 images the code isolates them as 2 images . 1&2 as one ima... |
|
cybertooth |
General Coding Help |
7 |
858 |
Oct-07-2023, 07:46 AM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
yes that's a simpler . thanks. any ideas about how to reduce the noise in displayed DICOM images |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Mar-11-2023, 07:33 AM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
Thanks. I have added a DICOM option to the code but I am getting a lot of noise in the images. When I tried the code with matpoltlip and plt.show the images were quite sharp but when I add the functio... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Mar-10-2023, 04:38 PM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
Thanks a lot for explaining things . I was not sure of saving the images in a list would work hence created a temporary folder to save the extracted images but i see that creating a list is better as ... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Mar-06-2023, 06:49 AM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
Thanks deanhystad . I rewrote the whole script and its working. However I have a few issues.
1) There seems to be lag in loading of the first image.
2) I would like to have the exit button to stop the... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Mar-03-2023, 06:37 PM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
Thanks deanhystad,
I got this sample code and modified it . It works fine extracts the images and saves them in a temp folder and then displays them in the tkinter window.import fitz # PyMuPDF
import... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Feb-28-2023, 07:24 AM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: RE: tuple indices must be integers or slices, not ...
Yes 'img' is a dictionary object. So why am I getting a tuple error. I went through the documentation but am unable to completely understand it so as to implement it in my code. using the documentatio... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Feb-23-2023, 04:41 PM |
|
|
Thread: tuple indices must be integers or slices, not str
Post: tuple indices must be integers or slices, not str
I am trying to make a Tkinter GUI with PyMuPDF. however I am geting the errorError:Traceback (most recent call last):
File "C:\Users\INDIAN\Desktop\python exercises\pygametooth\pdf2jpg2.py", line 2... |
|
cybertooth |
General Coding Help |
16 |
11,589 |
Feb-22-2023, 06:18 PM |
|
|
Thread: tkinter.TclError: can't invoke "canvas" command
Post: RE: tkinter.TclError: can't invoke "canvas" comman...
Can you please post a sample code for it.
(Feb-21-2023, 12:41 PM)deanhystad Wrote: I don't think pygame helps at all. Use "after" to periodically call a method that spins the image a small amount.... |
|
cybertooth |
GUI |
8 |
6,040 |
Feb-22-2023, 06:20 AM |
|
|
Thread: tkinter.TclError: can't invoke "canvas" command
Post: RE: tkinter.TclError: can't invoke "canvas" comman...
Thanks deanhystad
I am trying to make a GUI in tkinter where all the image files from a folder run in a continuous loop controlled by the arrow keys. I have a few sets of images of objects from multip... |
|
cybertooth |
GUI |
8 |
6,040 |
Feb-21-2023, 06:07 AM |
|
|
Thread: tkinter.TclError: can't invoke "canvas" command
Post: RE: tkinter.TclError: can't invoke "canvas" comman...
the double mainloop() was an oversight sorry . i have tried creating the canvas before the select function but am still getting the same exception can some one help resolve the issue. the exception oc... |
|
cybertooth |
GUI |
8 |
6,040 |
Feb-16-2023, 07:31 AM |
|
|
Thread: tkinter.TclError: can't invoke "canvas" command
Post: tkinter.TclError: can't invoke "canvas" command
I am getting this tcl error and unable to solve it. Here is the full exception. This happens when I exit the program
Error:Exception in Tkinter callback
Traceback (most recent call last):
File "C:\U... |
|
cybertooth |
GUI |
8 |
6,040 |
Feb-15-2023, 10:16 AM |
|
|
Thread: button enabled only when all the inputs are filled
Post: RE: button enabled only when all the inputs are fi...
(Oct-20-2021, 04:17 PM)deanhystad Wrote: 1) I did not use %P after the validation command, I used %S just like you. I don't know how your validation worked because %S passes the text string being i... |
|
cybertooth |
GUI |
5 |
5,580 |
Oct-21-2021, 08:16 AM |
|
|
Thread: button enabled only when all the inputs are filled
Post: RE: button enabled only when all the inputs are fi...
(Oct-18-2021, 10:07 AM)deanhystad Wrote: In your validator "new_value" is not the value in the entry box, it is the key you pressed. If you want to test for length you need to test the length of cl... |
|
cybertooth |
GUI |
5 |
5,580 |
Oct-20-2021, 03:41 PM |
|
|
Thread: button enabled only when all the inputs are filled
Post: button enabled only when all the inputs are filled
Hi all. I am making a Tkinter form for registration. I want the register button to be disabled until all fields are filled. secondly I am having an issue with validation command. The validation condi... |
|
cybertooth |
GUI |
5 |
5,580 |
Oct-18-2021, 08:26 AM |
|
|
Thread: Mysql. Not all parameters were used in the SQL statement
Post: RE: Mysql. Not all parameters were used in the SQL...
(Oct-12-2021, 02:24 PM)deanhystad Wrote: ibreeden did not catch all the s% %s errors.
VALUES(%s,%s,%s,%s,%s,%s,s%,s%)
# oops! ^With so many %s it is easy to miss the s%. Like tryin... |
|
cybertooth |
General Coding Help |
5 |
18,828 |
Oct-14-2021, 05:01 AM |
|
|
Thread: Mysql. Not all parameters were used in the SQL statement
Post: RE: Mysql. Not all parameters were used in the SQL...
Still the same error. I cam unable to understand it. the same sql command works fine in my other scripts where i am making 2 entries in one case and 13 entries in second case. i have checked for the n... |
|
cybertooth |
General Coding Help |
5 |
18,828 |
Oct-09-2021, 03:20 PM |
|
|
Thread: Mysql. Not all parameters were used in the SQL statement
Post: Mysql. Not all parameters were used in the SQL sta...
Hi all I am getting this error" Not all parameters were used in the SQL statement" when I try to insert values in mysql database through a Tkinter GUI. Can somebody help. here is my code
import tkinte... |
|
cybertooth |
General Coding Help |
5 |
18,828 |
Oct-09-2021, 07:35 AM |
|
|
Thread: Radio butto to enable/disable combo box in Tkinter
Post: RE: Radio butto to enable/disable combo box in Tki...
will definitely look into it. Thanks |
|
cybertooth |
GUI |
5 |
5,558 |
Oct-09-2021, 07:30 AM |