Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Argument 'value' must be double, not bool in line 61 (?) #5

Open
sunrise1873 opened this issue Jul 25, 2023 · 4 comments
Open

Comments

@sunrise1873
Copy link

unfortunately it doesn't work under Debian stable.

command:

tc001v4.2.py --device 0

says:

Traceback (most recent call last):
File "/home/norman/Downloads/PyThermalCamera-main/src/tc001v4.2.py", line 61, in
cap.set(cv2.CAP_PROP_CONVERT_RGB, False)
TypeError: Argument 'value' must be double, not bool

What is wrong?

@sunrise1873
Copy link
Author

under Debian 12, line 61 need to be changed:

cap.set(cv2.CAP_PROP_CONVERT_RGB, 0)

@u4y0u
Copy link

u4y0u commented Oct 20, 2023

This version 4.2 with the modification of line 61 works perfectly with an OS ubuntu desktop 23.04.
THANKS.
Capture d’écran du 2023-10-20 17-02-45
#ubuntu #Topdon #TC001

  v4l2-ctl --list-devices
  USB Camera: USB Camera (usb-0000:03:00.3-2.3):
	/dev/video0
	/dev/video1
	/dev/media0
python3 tc001v4.2a.py --device 0
Les Wright 21 June 2023
https://youtube.com/leslaboratory
A Python program to read, parse and display thermal data from the Topdon TC001 Thermal camera!

Tested on Debian all features are working correctly
This will work on the Pi However a number of workarounds are implemented!
Seemingly there are bugs in the compiled version of cv2 that ships with the Pi!

Key Bindings:

a z: Increase/Decrease Blur
s x: Floating High and Low Temp Label Threshold
d c: Change Interpolated scale Note: This will not change the window size on the Pi
f v: Contrast
q w: Fullscreen Windowed (note going back to windowed does not seem to work on the Pi!)
r t: Record and Stop
p : Snapshot
m : Cycle through ColorMaps
h : Toggle HUD
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

@arjayW
Copy link

arjayW commented Dec 8, 2024

I can confirm this with SteamOS Linux 6.5.0-valve22-1-neptune-65

@sofakng
Copy link

sofakng commented Jan 21, 2025

I can confirm this with SteamOS Linux 6.5.0-valve22-1-neptune-65

Hah! I'm trying to do the same thing with my Steam Deck.

Did you install python3-cv on the main system or did you use Distrobox (or similar)?

I'm using Distrobox (with a Debian base) but it fails with some errors:
qt.qpa.xcb: could not connect to display :0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants