try {
grabber.start();
IplImage frame = grabber.grab();
canvasFrame = new CanvasFrame("Camera Detecção");
canvasFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
canvasFrame.setCanvasSize(frame.width(), frame.height());
CvMemStorage storage = CvMemStorage.create();
while(detectionXmlFile==null || detectionXmlFile.isEmpty()) {
chooseXmlDetectionFile();