Giter VIP home page Giter VIP logo

Comments (2)

Sharanranjit avatar Sharanranjit commented on June 12, 2024

Hey!
I'm willing to take up this issue.
I just wanted to point out some things after I went through the code briefly :

  1. Based on #4 and #5, it looks like the we need a function for loading dataset(images/videos), which is currently done by just inputting the image path directly.
  2. Using opencv would make it easier for preprocessing and reading videos/images. I understand we have used pillow for preprocessing using torchvision.transforms. Opencv is just a suggestion from my side.

You can suggest your changes in the appropriate file, I will try implementing them.

from playground.

ashwinvaswani avatar ashwinvaswani commented on June 12, 2024

Sure. In that case, let's keep it standard process to use OpenCV from now on. In the file Badminton/Badminton.py do the following:
Currently, only path is taken as input, Add an additional parameter taking input as loaded image array so that the user has option of using ANY ONE form of input. Put appropriate checks in place such that if two parameters are passed, an error is shown as loaded image, and image from the input image path might be different in an exceptional case leading to bugs.

Create another method with the name detect_players_video() which takes in the video / video path as parameter similar to above, parser through the video, and runs detections on it.

Best of luck!

from playground.

Related Issues (20)

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.