Rare colored capsule (RCC) is the capsule which is mixed in the normal product but with different color. To detect this kind of capsules online, a method based on RGB color space and using HSV color difference formula is proposed in this paper. Considering HSV color space with more balanced color-difference perception, the original RGB formatted capsule image is transformed to HSV color space for accurate detection. To guarantee the on-line detection efficiency, the color space transformation and the color difference calculation are not on pixel level. A set of R, G, B component values are acquired to represent the color of the capsule by a novel average gray calculation method based on histogram. Thus the RGB to HSV transformation is only need to process the set of R, G and B component values. The transformed H, S and V component values are then applied to calculate the color difference. By comparing the color difference with the given threshold, the final detection result for RCC is achieved. Compared with the usual color recognition method based on HSV, which transform color space in the whole image, the presented method is time saving. Online test results show that the proposed method has high accuracy and efficiency.
[1]
Guangzhao Tian,et al.
A Simplified Pulse-Coupled Neural Network for Cucumber Image Segmentation
,
2010,
2010 International Conference on Computational and Information Sciences.
[2]
Rui Seara,et al.
Image segmentation by histogram thresholding using fuzzy sets
,
2002,
IEEE Trans. Image Process..
[3]
Song Yan.
Spatial correlation iterative channel estimation algorithm for MIMO-OFDM system
,
2010
.
[4]
Sheng Huan-ye.
An Approach of Grad-based Image Segmentation
,
2004
.
[5]
Du Gen-yuan.
Remote sensing image segmentation based on evolving clustering and fuzzy C-means
,
2009
.
[6]
Jun Tang,et al.
A color image segmentation algorithm based on region growing
,
2010,
2010 2nd International Conference on Computer Engineering and Technology.
[7]
Wang Cheng-dao.
Vector-Angular distance color difference formula in RGB color space
,
2010
.