/** * Read the cascade from an OpenCV xml serialisation. Currently this only * supports the old-style cascade xml. * * @param is * the stream to read from * @return the cascade object * @throws IOException */ public static StageTreeClassifier read(InputStream is) throws IOException { final OCVHaarClassifierNode root = readXPP(is); return buildCascade(root); }
/** * Read the cascade from an OpenCV xml serialisation. Currently this only * supports the old-style cascade xml. * * @param is * the stream to read from * @return the cascade object * @throws IOException */ public static StageTreeClassifier read(InputStream is) throws IOException { final OCVHaarClassifierNode root = readXPP(is); return buildCascade(root); }