api-for-iot-module

API for IoT Module contains functions to be used for implementing a API for a camera module


Keywords
api_for_iot_module
License
MIT
Install
pip install api-for-iot-module==1.0.0

Documentation

API for IoT Module

Documentation Status

API for IoT Module contains functions to be used for implementing a API for a camera module

Run

Start virtual environment python3 -m venv venv . venv/bin/activate export FLASK_APP=app.py

Features

The API has features to capture both video and still images from the raspberry pi camera and makes use of picamera methods to do so. The way that this API formats its data is by sending non-image data in the form of JSON objects, while image and video frames are send as JPEG binary objects.

The API has methods to change various camera settings, which include the following:
  • Frame rate
  • Brightness
  • Contrast
  • Saturatioin
  • Sharpness
  • Exposure mode
  • Image effect (such as denoise, negative, cartoon and many other effects)

The API also have a motion detection function, where it compares the data of successive frames in the form of a numpy array and gives a alert when there are signficant changes between frames.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.