Giter Site home page Giter Site logo

d-bhatta / opencv-masker-django Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 445 KB

Django app that utilizes the OpenCV-Masker algorithm to mask colors in a video

Home Page: https://dymmy1forgames.pythonanywhere.com/masker/home

License: GNU General Public License v3.0

Python 1.65% CSS 3.20% HTML 95.15%
opencv-masker-algorithm mask-colors django video

opencv-masker-django's Introduction

opencv-masker-django's People

Contributors

d-bhatta avatar dependabot[bot] avatar

Watchers

 avatar

opencv-masker-django's Issues

A homepage where people upload their videos through an upload form

A homepage where people upload their videos through an upload form

  • Create a homepage with a heading and instructions and example videos
  • Add a form with upload button and a check list with blue and red on it
  • Link the form destination to it

Main tasks

  • Create a view
  • Create a homepage
  • Add a form element with a dummy link
  • Add the videos
  • Link the form
  • Research how to upload files and use checklists

Create a class that will mask colors in a video

Create a class that will mask colors in a video

  • Turn the existing code into a class
  • Create input, output functions
  • Create a mask and replace with background

Main Tasks

  • Create a class Masker
  • Add an input function that gets the video
  • Add an output function that returns a video url
  • Add mask related functions
  • Add a function to apply mask
  • Add video writing functions
  • Add docstrings
  • Refactor and run

Create an API that will take the input video, and return an output video url

Create an API that will take the input video, and return an output video url

  • Create a view at an url that takes a request
  • It extracts the video from the request and stores it
  • It calls the class function with the input video
  • It returns the video url

Main tasks

  • Create a view that takes a form request URL, and a source variable
  • Get video from the request and store it if necessary
  • Pass it to class Masker function apply_mask
  • Get output url
  • Return according to source

Add a form check list with `blue` and `red` on it

Add a form check list with blue and red on it

Add a form check list with blue and red on it

Additional context

Files

  • homepage.html

Tasks

  • Research how to dropdown list to a django form
  • Add RED and BLUE to it
  • Run and refactor

Has the feature been requested before?

No

If the feature request is approved, would there be a need for further development in this area?
Yes, further color options should be added.

Write tests for `masker.py` functions

Write tests for masker.py functions

Is your feature request related to a problem? Please describe.
Write tests for masker.py functions.

An overview of the suggested solution

Describe the solution you'd like
Write tests for masker.py functions and increase code coverage.

Create a view that returns the video in a page

Create a view that returns the video in a page

  • Create a video page that displays the video

Main tasks

  • Create a view and url to display the video with context
  • Create a template to display the video
  • Show warning to download or video will disappear

Refactor `views.video` to call `Masker.apply_mask` with color in form

Refactor views.video to call Masker.apply_mask with color in form

Is your feature request related to a problem? Please describe.
Refactor views.video to call Masker.apply_mask with color value sent in form from a dropdown checklist.

Additional context

Files

  • views.py

Tasks

  • - Research how to get the color value from the form
  • Get the color value from the form
  • Turn it into a list and pass it to Masker.apply_mask
  • Run and refactor

Has the feature been requested before?

No.

If the feature request is approved, would there be a need for further development in this area?

No.

Create project and deploy

Create project and deploy

  • Create a django project
  • Deploy to python anywhere

Main tasks

  • Create a django project django_apps
  • Create a django app called opencv_masker
  • Deploy to pythonanywhere

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.