Due to automation business requirements, the project reset time is not fixed. Therefore, a delay calculation function needs to be written in TypeScript to compute the delay between the current time and a specified date. This function can be used in scenarios such as alarms/timers.
The Otsu's method was proposed in 1979, which segmented images by maximizing variance between classes. In other words, the Otsu's method is a nonparametric segmentation method that divides an image into different regions based on the intensity of the pixels. This article will introduce the Otsu's method in two sections. First, we will understand the principles of the Otsu's method by reviewing the mathematical formulas in the literature. Finally, we will implement the details using Matlab/Python.