Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

MomsFriendlyRobotCompany/numpy_camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numpy Camera

Python GitHub PyPI - Python Version PyPI PyPI - Wheel PyPI - Downloads

Look away! Still in dev

Simple threaded camera that doesn't need OpenCV. It is setup to use picamera interface on the Raspberry Pi to grab images. If you are not using a Raspberry Pi with the PiCamera, then you can't use this library.

Why?

Getting OpenCV on a Raspberry Pi historically is hard, but now there is a pip library, so it is easier. However, if there is some reason why you can't, don't, won't use that, this can be used.

Install

pip install -U numpy_camera

Usage

c = ThreadedCamera((640,480))
c.start()        # starts internal loop
frame = c.read() # numpy array
c.stop()         # stops internal loop
c.join()         # gathers back up the thread

MIT License

Copyright (c) 2020 Kevin J. Walchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages