Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

calculating how many times white pixels appear form frame difference

$
0
0
Hi I'm now working on this steps to detect blinks 1. calculate Frame difference = current frame - previous frame using (cv2.absdiff) 2. convert the result of Frame difference to binary image (threshold cv2.threshold) and cv2.countNonZero() ) . 3. Eroding and Dilating (cv2.morphologyEx (openmorphologyEx ) with these steps the result is when the eyes blinks there is white pixels like the image below : ![image description](/upfiles/1449401121157309.png) . when the eyes open there is not whote pixels only black output like image below ![image description](/upfiles/14494012067412224.png) Now I want to calculate rate of blinks based on white pixels when eyes blinks . for example a counter that counts how many these white pixels detected . thanks for help

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>