资源介绍
轮廓识别As before,the PIL method convert() does convection to gray-scale.An image histogram is a plot showing the distribution of pixel values.A number of bins is specified for the span of values and each bin gets a count of how many pixels have values in the bin's range.The visualization of the image histogram is done using the hist() function.The second argument specifies the number of bins to use.
Noe that the image needs to be flattened first,because hist() takes a 1-D array as input.The method flatten() converts any array to a 1-D array with values taken row-wise.figure shows the contour and histogram plot
- 上一篇: Python-opencv
- 下一篇: Python2.x OpenCV模块包