Coder Social home page Coder Social logo

baesic / efficientdet-webcam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gaodechen/efficientdet-webcam

0.0 0.0 0.0 60 KB

Object Detection for Multiple IP Cameras. EfficientDet implemented on Jetson TX2 (ARM architecture) platform and HikiVision webcam devices.

Python 86.32% Jupyter Notebook 13.68%

efficientdet-webcam's Introduction

EfficientDet on Multiple Webcams

Usage

Same usage as gaodechen/webcam_yolov3_jetson_tx_hikvision.

Multiple Webcams Streaming & Object Detection

  • model.py: post-packaging for Yet-Another-EfficientDet-Pytorch, no need to change
  • settings.py: IP list & image shape could be modified here, view the zylo117/Yet-Another-EfficientDet-Pytorch repo for other configurations

Running:

python run.py --single_window=True (or False) --num_cameras=4

single_window: argument used when multiple images should be merged and displayed into one single window.

num_cameras: number of cameras to be processed.

Streaming Only

Delete model processing part in predict() as below.

def predict(raw_q, pred_q):
    # model = Model()
    while True:
        raw_img = raw_q.get()
        # pred_img = model.run(raw_img)
        pred_q.put(raw_img)

Preparation on Jetson Platform

PyTorch 1.4.0 and torchvision 0.5.0 are required for EfficientDet. Now the ARM sources for pip are still not supporting those versions, so we need installing packages or sources to build.

PyTorch 1.4.0 Installation

No need to build from scratch, installation package of PyTorch for ARM is available.

torchvision 0.5.0 Installation

Here you need to clone torchvision sources and build. git clone may take a while so I add the --depth argument to download the latest commit only.

$ git clone --branch v0.5.0 https://github.com/pytorch/vision torchvision --depth=1
$ cd torchvision
$ sudo python setup.py install

efficientdet-webcam's People

Contributors

gaodechen 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.