#include <DLLogoDetect.h>
Public Member Functions | |
DLLogoDetect (const char *fname, double threshold=MIN_SCORE) | |
DLLogoDetect (const DLImage &srcImage, const char *fname, double threshold=MIN_SCORE) | |
list< DLLogoCandidate > | dlGetDetectedLogos () |
bool | dlGotLogo () |
The idea of DLLogoDetect is to robustly classifies and precisely localizes logos using a boosting strategy across multiple image scales. At a coarse scale, a trained Fisher classifier performs an initial classification using features from document context and connected components. Each logo candidate region is further classified at successively finer image scales by a cascade of classifiers, which allows false alarms to be quickly discarded and the detected region to be refined.
We assume that the logo in each document appears on the top one third of the document. If more than one logos are present on a document, the one with highest computed score is selected.
DLLogoDetect::DLLogoDetect | ( | const char * | fname, | |
double | threshold = MIN_SCORE | |||
) |
Default DLLogoDetect Constructor. Initialize logo detector using the file name specified
fname | file name of the source image | |
threshold | detection threshold. A reasonable range of detection threshold is above 600. Higher detection threshold gives better precision, but may lower the recall. |
DLLogoDetect::DLLogoDetect | ( | const DLImage & | srcImage, | |
const char * | fname, | |||
double | threshold = MIN_SCORE | |||
) |
Default DLLogoDetect Constructorl Initialize logo detector using the supplied DLImage
srcImage | source image to process | |
fname | file name of the source image if available | |
threshold | detection threshold. A reasonable range of detection threshold is above 600. Higher detection threshold gives better precision, but may lower the recall. |
list<DLLogoCandidate> DLLogoDetect::dlGetDetectedLogos | ( | ) | [inline] |
Return the detected logo
bool DLLogoDetect::dlGotLogo | ( | ) | [inline] |
Check whether any logo is detected on the document page