An easy and efficient way to connect to one or more cameras and record synchronized videos ππΈ
Connecting to cameras on multiple platforms in a way that is not slow is a difficult challenge, especially for new developers.
There are a bunch of tools out there (e.g. OpenCV) and other open source libraries that give just enough to support hardware manipulation, but they need to be use in concert in order to be useful.
This library attempts to string those things together, and provide an interface for everyone to use in python with a simple pip install
.
The primary focus is to provide an easy method to connect to one or more cameras and provide methods for streaming/recordig synchronized frames from the connected cameras.
NOTE - The SkellyCam package is the primary camera backend for the
freemocap
markeless motion capture software πβ¨
python
virtual environment activate)Enter the command below and press 'Enter'
pip install skellycam
Enter the command below and press 'Enter'
skellycam
Hopefully a bunch of text scrolled by and a GUI popped up!
If not, please open an issue on the github repo and we'll try to help you out :)
opencv
to connect to cameras, so it won't recognize hardware that can't be connected with cv2.VideoCapture
- Support for other camera hardware (e.g. FLIR) coming soon1) Install Python 3.10
2) Create Virtual Environment
3) Install skellycam
Windows Python3 Installation Guide
MacOSX Python3 Installation Guide
Linux Python3 Installation Guide
Launch the GUI by running skellycam
in a terminal.
This is currently the most tested method for interacting with the cameras.
In this example, we connect a camera at index 0. Calling show
allows us to view the cameras frames allowing us
to see video.
NOTE - Work in progress, no clean way to kill this window yet
from skellycam import CameraConfig, Camera
if __name__ == "__main__":
cam1 = Camera(CameraConfig(cam_id=0))
cam1.connect()
cam1.show()
NOTE - Experimental and under development, might be unstable
from skellycam.experiments import MultiCameraVideoRecorder
if __name__ == "__main__":
synchronized_video_recorder = MultiCameraVideoRecorder()
synchronized_video_recorder.run()
Please read our contribution doc: CONTRIBUTING.md
This project is licensed under the APGL License - see the LICENSE file for details.
If the AGPL does not work for your needs, we are happy to discuss terms to license this software to you with a different agreement at a price point that increases exponentially as you move spiritually away from the AGPL