Giter Site home page Giter Site logo

nordic96 / infinite_challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 100.82 MB

Challenge is Infinite

License: Apache License 2.0

Python 97.41% Dockerfile 1.14% Shell 1.17% TSQL 0.27%
facial-recognition python object-detection docker-image docker sql-server azure-face-api

infinite_challenge's Issues

Connecting the pipelines

Phase1 and Phase 2 needs to be connected
in Phase 1:

  • video processing using skull detection
  • save screenshot if skull is detected & create a csv with skull info (skull location(s), timestamp)

in Phase 2:

  • facial recognition from saved screenshots
  • update the created csv file from Phase 1 (member who is detected)

Finalised csv file should be ready #12 for db creation

Remote Deployment

Things we probably need to look at

  • Ability to run code on a remote virtual machine(s)
  • Cloud storage for input video files and extracted images
    X Job scheduling and to prevent overlapping (processing same input file) if parallelization is implemented
    X Server-client model for updating csv if multiple processes are accessing the same file to prevent errors

Config file module

configurations and default parameters will be managed in strings.config

Inserting CSV data into SQL server

Suggesting the following implementation:

  • Bulk insert into RDS after job is complete
  • Check episode information before processing episode

[DOCKER] Useful Gists

  1. Install Docker Desktop (Windows/Mac)
  2. Try build docker image using our Dockerfile LOCALLY
    • Open CLI (iTerms/WSL)
    • cd your_path_to_project_dir/Infinite_Challenge
    • docker build --tag infinite_challenge:0.0.1 . Building the docker image
    • docker run --publish 8000:8080 --detach --name any_alias_youwant infinite_challenge:0.0.1 Running your docker image locally
  3. Pulling from Docker Hub docker pull nordic96/infinite_challenge:latest
  4. Pushing to new tag to docker hub docker push nordic96/infinite_challenge:tag_name
  5. Removing Docker image in LOCAL docker rmi [image id]
    • Docker image ids can be listed using this command docker images
    • Docker containers can be listed using the following command docker ps -l

[Reference]
Build and run your image: https://docs.docker.com/get-started/part2/

Remote deployment

Things we probably need to look at

  • Ability to run code on a remote virtual machine(s)
  • Cloud storage for input video files and extracted images (capacity may be an issue)
  • Job scheduling and to prevent overlapping (processing same input file) if parallelization is implemented
  • Server-client model for updating csv if multiple processes are accessing the same file to prevent errors

Log Frame info. in CSV

Video processing for each frame

util function
Log information of the frame in CSV for easier hand-over to Facial recognition model.
Logging includes:

  • Timestamp of the frame in video
  • Members detected in the frame
  • Episode no. (filename of the directory)

Better automation of parralel jobs

  • Job management for if parallel jobs are run (not as a AWS Batch Array Job)
  • Separating each phase of the pipeline so resources can be better distributed
  • Running a partially complete job (which failed midway during the pipeline)

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.