Better HN
topnewbestaskshowjobs
Log inSign up

chony

60 karma · joined Feb 6, 2020 (6y ago) · 47 submissions

Submissions

1.

Show HN: AI Basketball Analysis Web App and API(github.com ↗)

1 points · by chony · 5y ago · discuss

comment 5y ago · link · parent

I built an app to visualize and analyze basketball shots and shooting pose with machine learning.

https://github.com/chonyy/AI-basketball-analysis

The result is pretty nice. However, the only problem is the slow inference speed. I'm now refactoring the project structure and changing the model to a much faster YOLO model.

comment 5y ago · link · parent

I built this project to automatically overlay baseball pitch motion and trajectory.

https://github.com/chonyy/ML-auto-baseball-pitching-overlay

It's ready for a quick demo. However, there are stiil some little improvements have to make. And I'll build an web app on top of it for people to use it online.

comment 5y ago · link · parent

Thanks, will definitely check it out!

comment 5y ago · link · parent

Thanks for asking! The only model I used in this project is the YOLOv4 object detection model to detect the ball in each frame. I collected about 200 images to train it.

For the other parts like the tracking and the overlay timing, I programmed it by myself.

I implemented SORT algorithm for tracking the ball and some programming logic to capture the overlay timing from each clip.

comment 5y ago · link · parent

I'm glad that you like it! Thanks a lot!

comment 5y ago · link · parent

Thanks for asking! This is not a noob question.

I would say that the similar workflow could be applied to any ball-related sports. The object detection and the tracking algorithm is basically the same. Then, you could add any sport-specific feature!

For example, I have used a similar method to build AI Basketball Analysis.

https://github.com/chonyy/AI-basketball-analysis

comment 5y ago · link · parent

I love the idea so much! Any idea how could you make it work on the videos with subtitles turned off?

Also, may I ask for a simple workflow of this project? Here are some of my questions.

1. What method did you use to get the summary out of all the subtitles?

2. How to get the subtitles of the video (Youtube API)?

3. How to get the timestamp of the specific word in the subtitle?

I would really like to build somthing similar! Thanks a lot!

comment 5y ago · link · parent

This project takes your baseball pitching clips and automatically generates the overlay. A fine-tuned Yolov4 model is used to get the location of the ball. Then, I implemented SORT tracking algorithm to keep track of each individual ball. Lastly, I will apply some image registration techniques to deal with slight camera shift on each clip.

I'm still trying to improve it! Feel free to follow this project, also check out the Todo list.

BTW, I just want to point out that did anyone notice that the pitcher throw the ball with the exact same posture but it turned out to fly on a completely different path. It's just amazing!

10.

Show HN: Automatic Baseball Pitching Motion and Trajectory Overlay in Realtime(github.com ↗)

4 points · by chony · 5y ago · 1 comment

comment 5y ago · link · parent

BTW, I just want to point out that did anyone notice that the pitcher throw the ball with the exact same posture but it turned out to fly on a completely different path. It's just amazing!

comment 5y ago · link · parent

Hi guys,

This project takes your baseball pitching clips and automatically generates the overlay. A fine-tuned Yolov4 model is used to get the location of the ball. Then, I implemented SORT tracking algorithm to keep track of each individual ball. Lastly, I will apply some image registration techniques to deal with slight camera shift on each clip.

I'm still trying to improve it! Feel free to follow this project, also checkout the Todo list.

The idea came from this incredible overlay: https://www.youtube.com/watch?v=jUbAAurrnwU&ab_channel=YuTub...

13.

Show HN: Automatically Overlaying Baseball Pitch Motion and Trajectory with ML(github.com ↗)

7 points · by chony · 5y ago · 2 comments

comment 6y ago · link · parent

Hi, the link provided is the pure ML part of the project, without any Flask thing.

Unfortunately, I don't have written a notebook for it. Maybe you could try to figure it out through the source code? The code itself is actually prettly simple and short.

https://github.com/chonyy/basketball-shot-detection

comment 6y ago · link · parent

Hi, do you mean the pure Python ML part wihtout the web app and any Flask thing?

comment 6y ago · link · parent

I'm glad you like it!

As an alternative, feel free to play around with it and get familiar with the setup process in the Google colab notebook.

https://colab.research.google.com/github/hardik0/AI-basketba...

comment 6y ago · link · parent

Hi guys, I have also written a post to explain the high level concept of OpenPose, the pose estimation framework I implemented in this project.

Feel free to check out:

https://github.com/chonyy/AI-basketball-analysis

https://towardsdatascience.com/openpose-research-paper-summa...

18.

Show HN: ML Basketball – Understanding Basketball Shots with Pose Estimation(github.com ↗)

11 points · by chony · 6y ago · 7 comments

comment 6y ago · link · parent

Hi guys, I have also wrotten a post to provide an in-depth explanation and a walkthrough of the code.

Please check out: https://towardsdatascience.com/fp-growth-frequent-pattern-ge...

20.

Show HN: FP Growth – Powerful algo in data mining with Python Implementation(github.com ↗)

5 points · by chony · 6y ago · 1 comment

comment 6y ago · link · parent

Hi guys, I have also wrotten a post to provide an in-depth explanation and a walkthrough of the code,

Please check out: https://towardsdatascience.com/apriori-association-rule-mini...

22.

Show HN: Intro to data mining – Python implementation of Apriori algorithm(github.com ↗)

3 points · by chony · 6y ago · 1 comment

comment 6y ago · link · parent

Hi guys, I have also wrotten a post to provide an in-depth explanation and a walkthrough of the code,

Please check out: https://towardsdatascience.com/fp-growth-frequent-pattern-ge...

24.

Show HN: Python implementation of FP Growth algorithm in data mining(github.com ↗)

1 points · by chony · 6y ago · 1 comment

25.

Show HN: Apriori – Frequent Pattern in Data Mining with Python Implementation(github.com ↗)

3 points · by chony · 6y ago · discuss

12