Skip to content

Use opencv-python to detect the water area in each frame of the wicking video

Notifications You must be signed in to change notification settings

bk1021/wicking_video_area_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Water Area Measurement for Wicking Video

Main.py calculate the area of water in each frame of the wicking video, an excel file storing the area data and a output video with drawn contour of water is saved in ./output.

Output Video Demo

400

How it works?

  1. Change all the frames to grayscale.
  2. Compute the absolute difference of the first frame and each frame after the first frame.
  3. Binary frame are produced from the result of 2. by applying threshold of 10 (default).
  4. Draw the largest external contour.

Requirements

  • opencv-python
  • numpy
  • pandas

Reference

  • ChatGPT

About

Use opencv-python to detect the water area in each frame of the wicking video

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages