Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions P2Pro/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def open(self, cam_cmd: P2Pro_CMD.P2Pro, camera_id: Union[int, str] = -1):

self.video_running = True

# On Windows, with RGB conversion turned off, OpenCV returns the image as a 2D array with size [1][<imageLen>]. Turn into 1D array.
if platform.system() == 'Windows':
# On Windows and Linux, with RGB conversion turned off, OpenCV returns the image as a 2D array with size [1][<imageLen>]. Turn into 1D array.
if platform.system() in ('Windows', 'Linux'):
frame = frame[0]

# split video frame (top is pseudo color, bottom is temperature data)
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["P2Pro"]

[project]
name = "P2Pro"
version = "0.1.0"
authors = [
]
description = ""
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Python :: 3",
"License :: LZH License",
"Operating System :: OS Independent",
]
dependencies = [
"ffmpeg",
"keyboard",
"opencv-python",
# pyaudio # needs compilation, so using system package is easier, e.g. python3-pyaudio for debian
"pyudev",
"pyusb",
]

[project.urls]
"Homepage" = "http://github.com/hoba87/P2Pro-Viewer.git"
"Bug Tracker" = "http://github.com/hoba87/P2Pro-Viewer/-/issues"

[tool.black]
line-length=100
target-version=['py37','py38','py39','py310','py311']