July 2015
Intermediate to advanced
174 pages
3h 45m
English
In this section, we are going to describe how to process the received image in order to draw an image file on top of it. Now, a cascade classifier is run just as in the previous chapter. It is important to pay attention to the XML cascade file location. Throughout the code, we have used a helper function called getResourcePath, and we have used the convention of storing all the resources in the src/main/resources/ folder. This way, the helper function works in a manner similar to that of the following code:
private String getResourcePath(String path) {
String absoluteFileName = getClass().getResource(path).getPath();
absoluteFileName = absoluteFileName.replaceFirst("/", "");
return absoluteFileName;
}Using this function, one can ...
Read now
Unlock full access