Git Product home page Git Product logo

mingdengeason / fatigue_detecting-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fatiguedetecting/fatigue_detecting

0.0 0.0 0.0 102.06 MB

Obtaining facial feature points and judging fatigue by taking up less resources through neural network

CMake 0.16% C++ 22.99% C 0.09% Makefile 2.39% Cuda 0.10% Shell 0.01% Java 0.01% MATLAB 0.01% Batchfile 0.01% HTML 73.89% CSS 0.04% JavaScript 0.15% XSLT 0.03% Python 0.16% Perl 0.01%

fatigue_detecting-1's Introduction

Fatigue_detecting

contributors license standard-readme compliant Issues Twitter

Table of Contents

Background

The increasing number of traffic accidents and the casualties and property losses caused by them have gradually become a common concern of the society.
How to detect the fatigue state of drivers efficiently and accurately is of great social significance to effectively protect the life and property safety of drivers and other related personnel.

Hardware

OV5647 RaspberryPi 4B

Software

Install

This module depends upon a knowledge of Markdown.

Any optional sections

Usage

  • 1.HOG Finish
  • 2.NCNN Finish
  • 3.PFLD-NCNN openvino
  • 4.hyper thread Finish

Build Raspberry Pi 4b

  • environment

    1. After testing, the fulleye version cannot detect the camera well when using opencv, so the bluster version is used.
    2. opencv4.5.1 can be installed smoothly
    3. Need to install dependencies before installing opencv
    4. Need update python to python3
  • dependencies

    1. $ sudo apt-get install cmake gfortran python3-dev python3-numpy libjpeg-dev libtiff-dev libgif-dev libgstreamer1.0-dev gstreamer1.0-gtk3 libgstreamer-plugins-base1.0-dev gstreamer1.0-gl libavcodec-dev libavformat-dev libswscale-dev libgtk2.0-dev libcanberra-gtk* libxvidcore-dev libx264-dev libgtk-3-dev libtbb2 libtbb-dev libdc1394-22-dev libv4l-dev libopenblas-dev libatlas-base-dev libblas-dev libjasper-dev liblapack-dev libhdf5-dev protobuf-compiler python-dev python-numpy -y

    2. Raspberry Pi update failure handling method

      $ sudo apt-get -y update --allow-releaseinfo-change

  • install opencv

  1. step1

    $sudo rpi-eeprom-update 
    $sudo rpi-eeprom-update -a 
    $sudo reboot 
    
  2. step2

    The next step is to increase your swap space. OpenCV needs a lot of memory to compile. The latest versions want to see a minimum of 6.5 GB of memory before building. Your swap space is limited to 2048 MByte by default. To exceed this 2048 MByte limit, you will need to increase this maximum in the /sbin/dphys-swapfile. Everything is demonstrated in the slideshow below.

    $ sudo nano /sbin/dphys-swapfile
    $ sudo nano /etc/dphys-swapfile
    $ sudo reboot
    
  3. step3

    $ wget https://github.com/Qengineering/    Install-OpenCV-Raspberry-Pi-32-bits/raw/main/    OpenCV-4-5-1.sh
    $ sudo chmod 755 ./OpenCV-4-5-1.sh
    $ ./OpenCV-4-5-1.sh
    
  • prepare camera hw

    1. $sudo raspi-config

    2. $sudo vi /etc/modules-load.d/modules.conf

    3. Add 'bcm2835-v4l2' after 'I2C'
  • How to Drive an LCD Display https://github.com/goodtft/LCD-show

    1. git clone https://github.com/goodtft/LCD-show.git

    2. chmod -R 755 LCD-show

    3. cd LCD-show/

Note: The license badge image link at the top of this file should be updated with the correct :user and :repo.

Any optional sections

API

Any optional sections

More optional sections

Contributors

License

MIT © Richard McRichface.

fatigue_detecting-1's People

Contributors

mingdengeason avatar smallssnow avatar pateral 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.