// Run Face Detection on current image
else if (incomingEvent instanceof EventDetectFacesOnCurrentImage) {
DetectionDialog dialog = mainFrame.browserTab.getDetectionDialog();
dialog.performDetection(this.currentImage);
}
// Run Face Recognition on selected region
else if (incomingEvent instanceof EventRecognizeFace) {
EventRecognizeFace event = (EventRecognizeFace) incomingEvent;