摘要 |
In accordance with an example embodiment a method and apparatus is provided. The method comprises detecting presence of an object portion in at least one sub-window in an image based on a first classifier. The first classifier is associated with a first set of weak classifiers. A set of sample sub-windows is generated corresponding to the at least one sub-window by performing at least one of a row shifting and column shifting of the at least one sub-window. A presence of the object portion in the set of sample sub-windows is detected based on a second classifier. The second classifier is associated with a second set of weak classifiers. The presence of the object portion is determined in the at least one sub-window based on the comparison of a number of sample sub-windows in the set of sample sub-windows comprising the object portion with a predetermined threshold number. |