Git Product home page Git Product logo

ishanjainofficial / knoparking Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

A program with complex architecture that detects motion via a ESP8266 with a HCSR04 Motion Detector. Once motion is detected, buffered images are sent to a Web Server where a packet is sent back to the Rasberry Pi. The Rasberry Pi captures a photo using the Camera Module. Finally, it is sent back to the server. The server the buffered images to a Node JS server that is being ran on a third program. Via sockets, the website could be wrapped with a Java program, however, it is not preferable because the client machine would need to run programs in two separate IDEs. Using a raw socket server implementation, the website can be populated with images of a security breach!

CSS 8.41% HTML 8.40% JavaScript 3.03% Java 80.16%
java javascript html css rasberrypi vim

knoparking's Introduction

KnoParking

A program with complex architecture that detects motion via a ESP8266 with a HCSR04 Motion Detector. Once motion is detected, buffered images are sent to a Web Server where a packet is sent back to the Rasberry Pi. The Rasberry Pi captures a photo using the Camera Module. Finally, it is sent back to the server. The server the buffered images to a Node JS server that is being ran on a third program. Via sockets, the website could be wrapped with a Java program, however, it is not preferable because the client machine would need to run programs in two separate IDEs. Using a raw socket server implementation, the website can be populated with images of a security breach!

Prerequisites

The Raspberry Pi program will not run unless the terminal command vcgencmd get_camera returns supported=1 detected=1. If the return is supported=0 detected=0, the Raspberry Pi cannot use a Camera Module. If the return is supported=1 detected=0, follow the following steps:

Check to make sure ribbon of the camera is facing the right way, and is all the way in the connector slot. Check to make sure ribbon is in proper connector slot: the one between the ethernet port and the HDMI port. Try enabling the camera interface in the config settings. Run sudo apt-get update and sudo apt-get upgrade. Then run sudo raspi-config. If the camera option doesn't appear, select the Update option, restart the raspberry pi, and then go back and select the Interfacing Options, select Camera, and enable it. If it does appear, select camera and enable it, run vcgencmd get_camera again, and the camera should be detected. For the ESP8266 Motion Detector, to be added.

For the website, to be added.

Deployment

Point the camera of the Raspberry Pi in a direction so it can see the liscence plate. Download the contents of the Raspberry Pi folder on the Raspberry Pi. ls to the folder and do java -cp ":jrpicam-1.1.1.jar:" CameraSender to run the CameraSender.class file.

Further Expansion

This program can be expanded to maintain a running memory of cars and their license plates in a parking lot. We plan on adding this as an extension to the project.

Built With

JRPiCam, the Java version of the RPi Camera Modu API. Info This program was used for PioneerHacks II 2019.

Authors

  • Akshay Trivedi
  • Ishan Jain
  • Aditya Prerepa

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.