microsoft/AI-For-Beginners

Public

mirrored from https://github.com/microsoft/AI-For-BeginnersAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
update-translations

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

lessons/4-ComputerVision/06-IntroCV/lab/README.md

21lines · modecode

1# Detecting Movements using Optical Flow
2
3Lab Assignment from [AI for Beginners Curriculum](https://aka.ms/ai-beginners).
4
5## Task
6
7Consider [this video](palm-movement.mp4), in which a person's palm moves left/right/up/down on the stable background.
8
9<img src="../images/palm-movement.png" width="30%" alt="Palm Movement Frame"/>
10
11**Your goal** would be able to use Optical Flow to determine, which parts of video contain up/down/left/right movements.
12
13**Stretch goal** would be to actually track the palm/finger movement using skin tone, as described [in this blog post](https://dev.to/amarlearning/finger-detection-and-tracking-using-opencv-and-python-586m) or [here](http://www.benmeline.com/finger-tracking-with-opencv-and-python/).
14
15## Starting Notebook
16
17Start the lab by opening [MovementDetection.ipynb](MovementDetection.ipynb)
18
19## Takeaway
20
21Sometimes, relatively complex tasks such as movement detection or fingertip detection can be solved purely by computer vision. Thus, it is very helpful to know what libraries like OpenCV can do.