question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera not running in Live mode using Tkinter canvas window.

See original GitHub issue

I’m building a simple tkinter window and working on running camera in single image capture and in live mode. I have been able to capture image snapshot but the live mode doesn’t seem to be working. The tkinter window freezes and I have to kill the window every-time.

However, when using the OnebyOne Grab strategy without tkinter canvas, the live stream works just fine.

Is the grab strategy used for live mode correct or should I used a different grab strategy? The max buffer value is left at default setting? Have tried out with 10000 and 5000 as timeout value during RetrieveResult but nothing changes in output.

I have used 2 cameras - acA1600-60gm and acA1920-40gc, both giving similar results. I have attached my code files for reference.

Both are python files. Extension changed for uploading camTest.txt camTestWindow.txt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
pmdbpccommented, Nov 10, 2020

@thiesmoeller - the application works much smoother now. Thanks.

0reactions
Lucrezia-Cestercommented, Dec 6, 2022

Is there a code for this live script now?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Live video feed from camera to tkinter window with opencv
I don't know how to go about implementing the live video into tkinter and opencv. I added both files needed to run this...
Read more >
Python Tkinter - Canvas Widget - GeeksforGeeks
root = root window. height = height of the canvas widget. width = width of the canvas widget. bg = background colour for...
Read more >
How To Access Front and Rear Cameras with JavaScript's ...
With this API's help, developers can access audio and video devices to stream and display live video feeds in the browser. In this...
Read more >
Python GUI Guide: Introduction to Tkinter - Digikey
Click on the widget name to view its reference documentation from effbot.org. Table 1. Button · Canvas · Checkbutton · Entry · Frame...
Read more >
How to show webcam in TkInter Window? - Tutorialspoint
In this example, we will build an application using OpenCV and Tkinter library. OpenCV is a Python library that is used to work...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found