Skip to content

Commit

Permalink
updated dependencies to support python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed May 8, 2024
1 parent b8776e2 commit a9305d8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Send RGB-D images over spout / syphon with visiongraph.
*Source: Intel® RealSense™ [Sample Data](https://github.com/IntelRealSense/librealsense/blob/master/doc/sample-data.md)*

### Installation
It is recommended to use `Python 3.8`, `Python 3.9` or `Python 3.10` and should run on any OS. First create a new [virtualenv](https://docs.python.org/3/library/venv.html) and activate it.
It is recommended to use `Python 11` (`Python 3.8`, `Python 3.9` or `Python 3.10` should work too) and should run on any OS. First create a new [virtualenv](https://docs.python.org/3/library/venv.html) and activate it.
After that install all dependencies:

```bash
Expand Down Expand Up @@ -238,4 +238,4 @@ config file values which override defaults.
```

### About
Copyright (c) 2023 Florian Bruggisser
Copyright (c) 2024 Florian Bruggisser
13 changes: 3 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ configargparse
pyopengl

# visiongraph
visiongraph[realsense, azure, mediapipe, numba, onnx, media]~=0.1.52.0
visiongraph[realsense, azure, mediapipe, numba, onnx, media, fbs]~=0.1.57.2
protobuf~=3.20.0
numpy~=1.24.4

# gui related
visiongraph-ui~=0.2.1
open3d~=0.17.0
duit[all]~=0.1.9.0

# macos
syphonpy; platform_system == "Darwin"
glfw; platform_system == "Darwin"

# windows
SpoutGL~=0.0.4; platform_system == "Windows"
open3d~=0.18.0
duit[all]~=0.1.12
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def finalize_options(self) -> None:

setup(
name=NAME,
version='0.2.0',
version='0.2.1',
packages=required_packages,
entry_points={
'console_scripts': [
Expand Down
12 changes: 6 additions & 6 deletions spacestream/io/StreamInformation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dataclasses import dataclass
from dataclasses import dataclass, field


@dataclass
Expand All @@ -21,13 +21,13 @@ class RangeValue:

@dataclass
class Intrinsics:
principle: Vector2 = Vector2()
focal: Vector2 = Vector2()
principle: Vector2 = field(default_factory=Vector2)
focal: Vector2 = field(default_factory=Vector2)


@dataclass
class StreamInformation:
serial: str = ""
resolution: StreamSize = StreamSize()
intrinsics: Intrinsics = Intrinsics()
distance: RangeValue = RangeValue()
resolution: StreamSize = field(default_factory=StreamSize)
intrinsics: Intrinsics = field(default_factory=Intrinsics)
distance: RangeValue = field(default_factory=RangeValue)

0 comments on commit a9305d8

Please sign in to comment.