Skip to content

Commit

Permalink
Added logger warning
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Sep 9, 2014
1 parent f325765 commit fcf3a4b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -28,6 +28,8 @@
import org.carcv.core.detect.NumberPlateDetector;
import org.carcv.core.model.AbstractCarImage;
import org.carcv.impl.core.util.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;

/**
Expand All @@ -39,6 +41,8 @@
*/
public class NumberPlateDetectorImpl extends NumberPlateDetector {

final private static Logger LOGGER = LoggerFactory.getLogger(NumberPlateDetectorImpl.class);

private static NumberPlateDetectorImpl detector;
private Intelligence intel;

Expand Down Expand Up @@ -76,6 +80,7 @@ public String detectPlateText(final List<? extends AbstractCarImage> images) {
String plate = intel.recognize(new CarSnapshot(image.getImage()));
if (plate == null) {
plate = "null";
LOGGER.warn("Plate on image ID {} wasn't detected, writing null.", image.getId());
}
numberPlates.add(plate);
}
Expand Down

0 comments on commit fcf3a4b

Please sign in to comment.