Skip to main content

A python wrapper of CAM2 database API

Project description

CAM2 database API python client

image

What is this repository for?

This repository stores the source code for the CAM2 camera API's python client.

This is part of Purdue's CAM2 (Continuous Analysis of Many Cameras) project. The project's web site is https://www.cam2project.net/

Please read the terms of use https://www.cam2project.net/terms/

In particular, "You agree not to use the Platform to determine the identity of any specific individuals contained in any video or video stream."

The lead investigator is Dr. Yung-Hsiang Lu, yunglu@purdue.edu. Please send your questions, comments, or suggestions to him.

Motivation

We have a centralized repository of cameras which can be accessed using the CameraDatabase API. We also have numerous image processing teams in CAM2 (continuous Analysis of Many Cameras). But we have a problem. A basic client is to be made which can interact with our server to automate the process of retrieving data from the database. If every team creates a new client it will lead to maintenance issues and the API development team will be under a restriction of not be able to change API in a swift manner (as all the users of the api will have to be notified of every change).

To Overcome this problem the Developers of the API have created this client which allows successful transactions with the API. This allows the API developers to be flexible and are held responsible for maintaining this client.

Documentation

Full documentation and examples can be found at https://purduecam2project.github.io/CameraDatabaseClient.

Location

The CAM2 client is available for pip install in https://pypi.org/

Registration

In order to access the API, you must make an account through the CAM2 project website, and register a new application. The website can be found here: https://www.cam2project.net/.

Usage

Step 1) Please use the following command to install the package: 'pip install CAM2CameraDatabaseAPIClient'.

Step 2) On the Class import the CAM2CameraDatabaseAPIClient's client and camera classes.

Step 3) Create an object of client and pass the clientID and clientSecret as parameters.

Step 4) Use the routes of the API, for description of all the methods please view the documentation (https://purduecam2project.github.io/CameraDatabaseClient)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CAM2CameraDatabaseClient-1.0.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

CAM2CameraDatabaseClient-1.0.1-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file CAM2CameraDatabaseClient-1.0.1.tar.gz.

File metadata

  • Download URL: CAM2CameraDatabaseClient-1.0.1.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for CAM2CameraDatabaseClient-1.0.1.tar.gz
Algorithm Hash digest
SHA256 67615cccc152b1bddb36607dffbd2861e708841f07632585836af2af63d8ed05
MD5 08a76c76eaccd61ba3e7d5eef7d0499b
BLAKE2b-256 c4359d8fed5cd33763066d16b71619e8bc6b2d05f5f8735ca577d1634fee25ef

See more details on using hashes here.

File details

Details for the file CAM2CameraDatabaseClient-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: CAM2CameraDatabaseClient-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for CAM2CameraDatabaseClient-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bd76b73b6b8fa6778836918abf0447c6b70d596ee39d9c960218e73ab0b48629
MD5 a1762c25311038f151699227d5ba5898
BLAKE2b-256 1afb10a09fec04c3f98fa70da661fa3188281eae2f8f5e5767a2435adbf24c41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page