摘要 |
An image area detection method and device. The method comprises: calculating color features and gradient features of pixels in an image to be processed, and constructing mixed feature vectors of the image to be processed (S1); clustering the mixed feature vectors to obtain a cluster after clustering (S2); calculating a clustering probability of the cluster according to predetermined rules, and calculating a pixel probability of pixels in the cluster according to the clustering probability (S3); and detecting the image to be processed according to the pixel probability to acquire a target area (S4). The method and the device can effectively cope with various complex situations in an actual image scene, realize accurate and effective separation of the main area in a commodity image, and improve extraction accuracy. |