ivycamlink 0.1.0__tar.gz
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.
- ivycamlink-0.1.0/LICENCE +21 -0
- ivycamlink-0.1.0/PKG-INFO +40 -0
- ivycamlink-0.1.0/README.md +16 -0
- ivycamlink-0.1.0/ivycamlink.egg-info/PKG-INFO +40 -0
- ivycamlink-0.1.0/ivycamlink.egg-info/SOURCES.txt +9 -0
- ivycamlink-0.1.0/ivycamlink.egg-info/dependency_links.txt +1 -0
- ivycamlink-0.1.0/ivycamlink.egg-info/requires.txt +2 -0
- ivycamlink-0.1.0/ivycamlink.egg-info/top_level.txt +1 -0
- ivycamlink-0.1.0/setup.cfg +4 -0
- ivycamlink-0.1.0/setup.py +23 -0
- ivycamlink-0.1.0/tests/test_opencv.py +40 -0
ivycamlink-0.1.0/LICENCE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Logan Brown
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ivycamlink
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight ADB link bridge connecting headless Android cameras straight to OpenCV pipelines.
|
|
5
|
+
Home-page: https://github.com/Swifts-32/IvyCamLink
|
|
6
|
+
Author: Logan Brown
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENCE
|
|
13
|
+
Requires-Dist: opencv-python>=4.0.0
|
|
14
|
+
Requires-Dist: numpy>=1.20.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
24
|
+
|
|
25
|
+
# IvyCamLink
|
|
26
|
+
|
|
27
|
+
A lightweight Python module that automates ADB bridging and connects straight to headless Android hosts to ingest high-speed camera frame arrays natively inside OpenCV.
|
|
28
|
+
|
|
29
|
+
## 📦 Features
|
|
30
|
+
|
|
31
|
+
* **Zero Terminal Overhead**: Automatically flushes, registers, and establishes your local `adb forward` port routing entirely from code.
|
|
32
|
+
* **Remote Hardware Control**: Sends instant upstream control triggers (`0x01` to START / `0x02` to STOP) to manage remote phone camera deployment lifetimes efficiently.
|
|
33
|
+
* **OpenCV Drop-In Compatible**: Implements a standard class architecture matching the familiar `cv2.VideoCapture` layout structure (`open()`, `read()`, `release()`).
|
|
34
|
+
|
|
35
|
+
## 📥 Installation
|
|
36
|
+
|
|
37
|
+
Ensure you have your core vision dependencies configured before importing the module wrapper:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install opencv-python numpy
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# IvyCamLink
|
|
2
|
+
|
|
3
|
+
A lightweight Python module that automates ADB bridging and connects straight to headless Android hosts to ingest high-speed camera frame arrays natively inside OpenCV.
|
|
4
|
+
|
|
5
|
+
## 📦 Features
|
|
6
|
+
|
|
7
|
+
* **Zero Terminal Overhead**: Automatically flushes, registers, and establishes your local `adb forward` port routing entirely from code.
|
|
8
|
+
* **Remote Hardware Control**: Sends instant upstream control triggers (`0x01` to START / `0x02` to STOP) to manage remote phone camera deployment lifetimes efficiently.
|
|
9
|
+
* **OpenCV Drop-In Compatible**: Implements a standard class architecture matching the familiar `cv2.VideoCapture` layout structure (`open()`, `read()`, `release()`).
|
|
10
|
+
|
|
11
|
+
## 📥 Installation
|
|
12
|
+
|
|
13
|
+
Ensure you have your core vision dependencies configured before importing the module wrapper:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install opencv-python numpy
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ivycamlink
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A lightweight ADB link bridge connecting headless Android cameras straight to OpenCV pipelines.
|
|
5
|
+
Home-page: https://github.com/Swifts-32/IvyCamLink
|
|
6
|
+
Author: Logan Brown
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.7
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENCE
|
|
13
|
+
Requires-Dist: opencv-python>=4.0.0
|
|
14
|
+
Requires-Dist: numpy>=1.20.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
24
|
+
|
|
25
|
+
# IvyCamLink
|
|
26
|
+
|
|
27
|
+
A lightweight Python module that automates ADB bridging and connects straight to headless Android hosts to ingest high-speed camera frame arrays natively inside OpenCV.
|
|
28
|
+
|
|
29
|
+
## 📦 Features
|
|
30
|
+
|
|
31
|
+
* **Zero Terminal Overhead**: Automatically flushes, registers, and establishes your local `adb forward` port routing entirely from code.
|
|
32
|
+
* **Remote Hardware Control**: Sends instant upstream control triggers (`0x01` to START / `0x02` to STOP) to manage remote phone camera deployment lifetimes efficiently.
|
|
33
|
+
* **OpenCV Drop-In Compatible**: Implements a standard class architecture matching the familiar `cv2.VideoCapture` layout structure (`open()`, `read()`, `release()`).
|
|
34
|
+
|
|
35
|
+
## 📥 Installation
|
|
36
|
+
|
|
37
|
+
Ensure you have your core vision dependencies configured before importing the module wrapper:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install opencv-python numpy
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="ivycamlink",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
author="Logan Brown",
|
|
7
|
+
author_init="lgnbrown@outlook.com",
|
|
8
|
+
description="A lightweight ADB link bridge connecting headless Android cameras straight to OpenCV pipelines.",
|
|
9
|
+
long_description=open("README.md").read(),
|
|
10
|
+
long_description_content_type="text/markdown",
|
|
11
|
+
url="https://github.com/Swifts-32/IvyCamLink",
|
|
12
|
+
packages=find_packages(),
|
|
13
|
+
classifiers=[
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
],
|
|
18
|
+
python_requires=">=3.7",
|
|
19
|
+
install_requires=[
|
|
20
|
+
"opencv-python>=4.0.0",
|
|
21
|
+
"numpy>=1.20.0",
|
|
22
|
+
],
|
|
23
|
+
)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import cv2
|
|
2
|
+
from src.ivycamlink import IvyCamCapture
|
|
3
|
+
|
|
4
|
+
def on_focus_changed(val, cap_instance):
|
|
5
|
+
# Callback trigger when trackbar moves
|
|
6
|
+
cap_instance.set_focus(val)
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
cap = IvyCamCapture(port=5001)
|
|
10
|
+
|
|
11
|
+
if not cap.open():
|
|
12
|
+
print("Failed to launch IvyCam link pipeline.")
|
|
13
|
+
return
|
|
14
|
+
|
|
15
|
+
window_name = "IvyCam Stream Processing"
|
|
16
|
+
cv2.namedWindow(window_name, cv2.WINDOW_NORMAL)
|
|
17
|
+
|
|
18
|
+
cv2.createTrackbar("Focus", window_name, 0, 100, lambda val: on_focus_changed(val, cap))
|
|
19
|
+
|
|
20
|
+
print("Pipeline running. Move the 'Focus' slider bar to adjust camera lens...")
|
|
21
|
+
while True:
|
|
22
|
+
success, frame = cap.read()
|
|
23
|
+
|
|
24
|
+
if not success:
|
|
25
|
+
print("Dropped stream sync.")
|
|
26
|
+
break
|
|
27
|
+
|
|
28
|
+
# Display the frame matrix inside the window
|
|
29
|
+
cv2.imshow(window_name, frame)
|
|
30
|
+
|
|
31
|
+
# Handle keyboard exits safely
|
|
32
|
+
if cv2.waitKey(1) & 0xFF == ord('q'):
|
|
33
|
+
break
|
|
34
|
+
|
|
35
|
+
# Safely release the background stream resources
|
|
36
|
+
cap.release()
|
|
37
|
+
cv2.destroyAllWindows()
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
main()
|