Giter Site home page Giter Site logo

cuttercn / gcu_wifisensing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jyoonlee/gcu_wifisensing

0.0 0.0 0.0 182.27 MB

Counting the number of people in an indoor space using Wi-Fi sensing

Shell 0.56% Python 81.41% C 13.67% MATLAB 3.46% Makefile 0.15% Dockerfile 0.76%

gcu_wifisensing's Introduction

GCU_WifiSensing

Project name: GCU WiFiSensing (2020.07 ~ 2021.06)
Team members: 이재윤(Jaeyoon Lee), 정은서(Eunseo Jeong), 여찬영(Chanyeong Yeo)

System architecture

struct

In our project, Fair MOT and Linux 802.11n CSI tool library were used. Each library was used when recognizing and tracking objects from the video data received from the initial camera and when collecting and quantifying Wi-Fi CSI data from the AP.

CSI

  1. our File:

     git clone https://github.com/jyoonlee/GCU_WifiSensing.git
    
  2. In matlab:

     cd CSI
     cd matlab
     run read_bf_socket using Matlab
    
  3. In terminal:

    sudo stop network-manager
    sudo modprobe -r iwlwifi mac80211
    sudo modprobe iwlwifi connector_log=0x1
    
  4. In other terminal(connect Wifi):

     iw dev
     sudo ip link show wlan0
     sudo ip link set wlan0 up
     iw wlan0 link
     sudo iw dev wlan0 connect [WiFi name]
     iw wlan0 link
     sudo dhclient wlan0
    
  5. connet csi:

     cd CSI
     cd linux-80211n-csitool-supplementary-master/netlink
     gcc log_to_server.c -o log_to_server
     sudo ./log_to_server 127.0.0.1 8090
    
  6. ping test

     ping -i 0.2 192.168.1.1
    

FairMOT

  • We used FairMOT model and changed the code according to us.

  • We referred to this link for FairMOT code.

  • installation

      conda create -n FairMOT
      conda activate FairMOT
      conda install pytorch==1.7.0 torchvision==0.8.0 cudatoolkit=10.2 -c pytorch
      cd ${FAIRMOT_ROOT}
      pip install -r requirements.txt
    
  • baseline model pretrain model fairmot_dla34.pth Google Reference this link Model save structure

        ${FAIRMOT_ROOT}
         └——————models
                 └——————fairmot_dla34.pth
                 └——————...
         └——————src
                 └——————...
         └——————video
                 └——————video
         └——————demo
                 └——————result.txt
                 └——————frame image
                 └——————output.mp4
                 └——————...
    
  • Use FairMOT Object Detection

      cd ${FAIRMOT_ROOT(Object Detection)}
      cd src
      python demo.py mot --load_model ../models/fairmot_dla34.pth --conf_thres 0.4
    
  • result.txt output

      YY-MM-DD hh:mm:ss       object label
    
  • Use FairMOT position

      cd ${FAIRMOT_ROOT(Position)}
      cd src
      python demo.py mot --load_model ../models/fairmot_dla34.pth --conf_thres 0.4
    
  • result.txt output

      frame_number    Object id       position x      position y
    

Experiment

  • Use TrainModel.py

      python TrainModel.py
    
  • input

  1. CSI Data
  2. Object Detection Result.txt
  • Progress
  1. synchronize csi label and Result.txt
  2. Use Randomforest

Result

CSI Demo Video

csi_output

MOT Demo Video

MOT_output

Experiment

gcu_wifisensing's People

Contributors

eunseo-jeong avatar jyoonlee avatar yeocy 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.