Python Forum
tkinter camera threads
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter camera threads
#4
You will only get a return of -1 when it first travels through the function and the following evaluates to true
if(not cap.isOpened() ):
        return -1
otherwise, it travels right through the function and will return None.
Directly calling the GUI from inside another thread will cause problems.
Depending on how fast it travels through the function and starts another thread looping back on itself, it might be overwhelming the GUI with changes.
Reply


Messages In This Thread
tkinter camera threads - by Nick_tkinter - Apr-15-2021, 05:36 PM
RE: tkinter camera threads - by Yoriz - Apr-15-2021, 05:41 PM
RE: tkinter camera threads - by Nick_tkinter - Apr-15-2021, 06:37 PM
RE: tkinter camera threads - by Yoriz - Apr-15-2021, 07:18 PM
RE: tkinter camera threads - by Nick_tkinter - Apr-15-2021, 07:44 PM
RE: tkinter camera threads - by Yoriz - Apr-15-2021, 08:10 PM
RE: tkinter camera threads - by Nick_tkinter - Apr-16-2021, 12:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter frame camera opencv Nick_tkinter 9 5,521 Mar-21-2021, 06:41 PM
Last Post: Nick_tkinter
  Raspberry Pi camera live feed in tkinter robgar2001 6 12,382 Sep-30-2018, 10:49 PM
Last Post: woooee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020