![]() ![]() Then, for each pixel of the gray scale image, if the value of the pixel is lesser than the given threshold, it is set to zero. ![]() We are going to use the simplest thresholding algorithm: binary thresholding.Īs already explained on this tutorial, in the binary thresholding operation, we define a threshold value. GrayFrame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)Īfter this we can apply the thresholding operation with a call to the threshold function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |