Code Monkey home page Code Monkey logo

navinkumarmnk / anomaly-crime-activity-detection Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 2.0 363 KB

Real Time Detection of Anomalous Activity From Videos (mainly crime actvity). Images of the video is trained using AutoEncoder to get the imtermediate feature representation of image & applied svm model for the bag of such features to detect the anomaly & LSTM to detect the type of Anomaly.

Python 97.95% Dockerfile 0.39% Shell 1.65%
anomaly-detection crime-detection face-recognition lstm lrcn deep-learning docker machine-learning pytorch video-detection

anomaly-crime-activity-detection's Introduction

Anomaly Detection & Recognition System

  • Completed : Training & Bugs Pending

Pytorch video recognition API with TensorRT support in a Docker container

Building the image

  • To build the image, navigate to the directory where the Dockerfile is located, and run the following command:
docker build -t pytorch-video-recognition-flask-tensorrt

This will build the image and tag it with the name "pytorch-video-recognition-flask-tensorrt".

Running the container

  • Once the image is built, you can use it to run the container by using the following command:
docker run -p 5000:5000 pytorch-video-recognition-flask-tensorrt

This command will start the container and run the video recognition script on it, the container will listen on port 5000, and you can access the API through http://localhost:5000

Pushing the image to DockerHub

  • To share the image with others, you can push it to a container registry like DockerHub. First, you will need to create an account on DockerHub and then you can use the following commands to log in and push the image:
docker login
docker push pytorch-video-recognition-flask-tensorrt

Pulling the image and running it

  • Once the image is pushed to DockerHub, others can use the following command to pull the image and run the container:
docker pull pytorch-video-recognition-flask-tensorrt
docker run -p 5000:5000 pytorch-video-recognition-flask-tensorrt

Note: Make sure that the host machine has the required dependencies, such as NVIDIA drivers and CUDA, to run the container properly.

Using the API

  • The API has two endpoints, one for uploading a video file and the other for getting the results of the video recognition process.
  • To upload a video file, you can use the following command:
curl -F "file=@/path/to/video/file" http://localhost:5000/predict
  • Returns images of persons, with prediction of crime-activity

anomaly-crime-activity-detection's People

Contributors

navinkumarmnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

anomaly-crime-activity-detection's Issues

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.