GithubHelp home page GithubHelp logo

mich23697 / glimpse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jinbean/glimpse

0.0 2.0 0.0 26.18 MB

Android App that redefines effective and convenient usage of public space

Java 97.05% Python 2.95%

glimpse's Introduction

Glimpse

Motivation

Singapore has a large number of recreational spaces in every neighbourhood that are free for everyone to use. These spaces include basketball courts, badminton courts, street soccer courts, and even playgrounds. However, the want to use these public spaces can be hindered by the lack of knowledge as to whether the space is occupied at any given time. This problem has yet to been solved even till today. Our project aims at solving this problem in an effective and convenient way.

Our Solution

Our solution includes adding a small camera that overlooks each space. This camera, with the help of computer vision, will help identify the total number people using the facility at every given period of time. This information is then sent to a central database. The data is pulled by a phone application which can then be accessed by everyone with that application installed. Only the numerical capacity will be displayed on the app and not the pictures taken as to provide as much information as possible while still maintaining privacy.

Implementation

As a proof of concept, we will be applying our solution on a smaller scale within our school campus.

We will be using a small web camera to monitor two pool tables. A LattePanda will be used to simulate a back-end to carry out the people detection scripts and to push the final data to a common database. The camera will take a photo of the tables every 30 seconds. Once the detection is done on these photos, the detected number of people as well as the date and time is pushed to firebase.

The app consists of two main components:

  • HomePage
  • Public Space Page

HomePage

This page is a tabbed activity, which consists of three tabs:

  • Categories
  • Available
  • Favourites

Categories

This tab sorts all listed public spaces based on the intended type of usage. Examples include basketball courts or badminton courts.

Available

This tab lists all public spaces that are not at maximum capacity to serve as an easy method of filtering out spaces that are full.

Favourites

This tab lists the public spaces that have been favourited by the user before.


Public Space Page

There is a different public space page for every public space, and provides information about the specific space such as the current capacity, the opening hours, the address, and the booking link if relevant.

Current list of spaces:

  • Indoor Sports Hall 1
  • Indoor Sports Hall 2
  • Swimming Pool
  • Fitness Centre
  • Rock Climbing Wall
  • Street Soccer Court
  • Building 57 Level 1 Pantry
  • Building 59 Level 4 Meeting Room


OpenCV

Running build on LattePanda:
  1. Run cmd and cd to "C:Users\LatttePanda"
  2. Run command "venv\Scripts\activate"
  3. Cd to "C:\Users\LattePanda\Desktop\opencv"
  4. Run cnn_detection.py

To change the location update of the camera, edit ref = db.reference(location) in cnn_detection.py

glimpse's People

Contributors

jinbean avatar the313 avatar

Watchers

James Cloos avatar Michael Junaprasetya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.