blue-sandbox 5.334.1__py3-none-any.whl → 5.342.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- blue_sandbox/README.py +31 -6
- blue_sandbox/__init__.py +1 -1
- blue_sandbox/virtualcam/__init__.py +0 -0
- blue_sandbox/virtualcam/__main__.py +21 -0
- {blue_sandbox-5.334.1.dist-info → blue_sandbox-5.342.1.dist-info}/METADATA +7 -2
- {blue_sandbox-5.334.1.dist-info → blue_sandbox-5.342.1.dist-info}/RECORD +9 -7
- {blue_sandbox-5.334.1.dist-info → blue_sandbox-5.342.1.dist-info}/LICENSE +0 -0
- {blue_sandbox-5.334.1.dist-info → blue_sandbox-5.342.1.dist-info}/WHEEL +0 -0
- {blue_sandbox-5.334.1.dist-info → blue_sandbox-5.342.1.dist-info}/top_level.txt +0 -0
blue_sandbox/README.py
CHANGED
@@ -5,11 +5,36 @@ from blue_objects import file, README
|
|
5
5
|
from blue_sandbox import NAME, VERSION, ICON, REPO_NAME
|
6
6
|
|
7
7
|
|
8
|
+
items = README.Items(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
"name": "virtualcam",
|
12
|
+
"url": "./blue_sandbox/virtualcam",
|
13
|
+
"marquee": "https://github.com/kamangir/assets/raw/main/blue-sandbox/virtualcam.png?raw=true",
|
14
|
+
"description": "Python + [OBS Studio](https://obsproject.com/) ⏸️",
|
15
|
+
},
|
16
|
+
{},
|
17
|
+
{},
|
18
|
+
]
|
19
|
+
)
|
20
|
+
|
21
|
+
|
8
22
|
def build():
|
9
|
-
return
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
23
|
+
return all(
|
24
|
+
README.build(
|
25
|
+
items=readme.get("items", []),
|
26
|
+
cols=3,
|
27
|
+
path=os.path.join(file.path(__file__), readme["path"]),
|
28
|
+
ICON=ICON,
|
29
|
+
NAME=NAME,
|
30
|
+
VERSION=VERSION,
|
31
|
+
REPO_NAME=REPO_NAME,
|
32
|
+
)
|
33
|
+
for readme in [
|
34
|
+
{
|
35
|
+
"path": "..",
|
36
|
+
"items": items,
|
37
|
+
},
|
38
|
+
{"path": "./virtualcam"},
|
39
|
+
]
|
15
40
|
)
|
blue_sandbox/__init__.py
CHANGED
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# https://chatgpt.com/c/67d8a46a-69dc-8005-9176-e1ec3528afdf
|
2
|
+
|
3
|
+
import cv2
|
4
|
+
import pyvirtualcam
|
5
|
+
from pyvirtualcam import PixelFormat
|
6
|
+
|
7
|
+
cap = cv2.VideoCapture(0) # Capture video from the first webcam
|
8
|
+
|
9
|
+
with pyvirtualcam.Camera(width=640, height=480, fps=20, fmt=PixelFormat.BGR) as cam:
|
10
|
+
while True:
|
11
|
+
ret, frame = cap.read()
|
12
|
+
if not ret:
|
13
|
+
break
|
14
|
+
|
15
|
+
# Process frame (apply your functions here)
|
16
|
+
processed_frame = cv2.cvtColor(
|
17
|
+
frame, cv2.COLOR_BGR2GRAY
|
18
|
+
) # Example: convert to grayscale
|
19
|
+
|
20
|
+
cam.send(processed_frame)
|
21
|
+
cam.sleep_until_next_frame()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_sandbox
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.342.1
|
4
4
|
Summary: 🌀 A sandbox for ideas and experiments.
|
5
5
|
Home-page: https://github.com/kamangir/blue-sandbox
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -50,10 +50,15 @@ Dynamic: summary
|
|
50
50
|
pip install blue-sandbox
|
51
51
|
```
|
52
52
|
|
53
|
+
| | | |
|
54
|
+
| --- | --- | --- |
|
55
|
+
| [`virtualcam`](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/virtualcam) [](https://github.com/kamangir/blue-sandbox/blob/main/blue_sandbox/virtualcam) Python + [OBS Studio](https://obsproject.com/) ⏸️ | | |
|
53
56
|
|
54
57
|
---
|
55
58
|
|
56
59
|
|
57
60
|
[](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-sandbox/) [](https://pypistats.org/packages/blue-sandbox)
|
58
61
|
|
59
|
-
built by 🌀 [`blue_options-4.
|
62
|
+
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.342.1`](https://github.com/kamangir/blue-sandbox).
|
63
|
+
|
64
|
+
built by 🌀 [`blueness-3.96.1`](https://github.com/kamangir/blueness).
|
@@ -1,5 +1,5 @@
|
|
1
|
-
blue_sandbox/README.py,sha256=
|
2
|
-
blue_sandbox/__init__.py,sha256=
|
1
|
+
blue_sandbox/README.py,sha256=M-jR3Q1d-yMdYbxUeNPlab1fLQgUWh_OAWcQ9qk8D7k,933
|
2
|
+
blue_sandbox/__init__.py,sha256=7-N3ebDrJiu16u-crLYp33Ez4bZLnjnN-5r359yoKUE,323
|
3
3
|
blue_sandbox/__main__.py,sha256=aPRHSpGpk-bDbzhHpfLNsd3y1gGEHpnhoTF-RBweNwc,361
|
4
4
|
blue_sandbox/config.env,sha256=TMUch2y2XZcLEonfpb-VXFFCuFdyD_6TTgtOrBAqqs0,329
|
5
5
|
blue_sandbox/env.py,sha256=jXFVGqvLPXeapU6ziawXYfvtsT4ervHnUq2MhPtLsuU,626
|
@@ -26,8 +26,10 @@ blue_sandbox/assets/functions.py,sha256=2qMOPAL_49WfdP-NZ-g7dYsfempMOIOL8gDvKQkT
|
|
26
26
|
blue_sandbox/help/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
27
27
|
blue_sandbox/help/__main__.py,sha256=3Cqp5oISrZCOUApmwoQoCj_0sQgtkiEkm_ob3LFKzRE,234
|
28
28
|
blue_sandbox/help/functions.py,sha256=6pqjFj4iQYWuRyhmEKe-ErPCZW963n-Q1AdfNbfeQos,165
|
29
|
-
blue_sandbox
|
30
|
-
blue_sandbox
|
31
|
-
blue_sandbox-5.
|
32
|
-
blue_sandbox-5.
|
33
|
-
blue_sandbox-5.
|
29
|
+
blue_sandbox/virtualcam/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
+
blue_sandbox/virtualcam/__main__.py,sha256=CZohAg_6NcAxK7RC3EiD0s9kr0X3LIbH2f-qgIymcQc,614
|
31
|
+
blue_sandbox-5.342.1.dist-info/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
32
|
+
blue_sandbox-5.342.1.dist-info/METADATA,sha256=xUojpAL5Ln7M2F8_yWcmy3XB-RBRScBuNFwg1aCziaM,2594
|
33
|
+
blue_sandbox-5.342.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
34
|
+
blue_sandbox-5.342.1.dist-info/top_level.txt,sha256=4D9Cb9QUCaqdYAmBiCwvtlaYBtUYVVxv0Sxcr_pzgS8,13
|
35
|
+
blue_sandbox-5.342.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|