<artifactId>tika-core</artifactId>
<version>1.18</version>
</dependency>
+ <dependency>
+ <groupId>org.openimaj</groupId>
+ <artifactId>core-image</artifactId>
+ <version>1.3.5</version>
+ </dependency>
</dependencies>
<build>
import java.util.HashSet;
import java.util.zip.CRC32;
-import static javax.imageio.ImageIO.read;
+import static org.openimaj.image.ImageUtilities.createBufferedImage;
+import static org.openimaj.image.ImageUtilities.readMBF;
public class Utils {
private static File lastLoadedFile;
if (file.equals(lastLoadedFile))
return lastLoadedBufferedImage;
- System.out.println("Loading image: " + file.getPath());
- lastLoadedBufferedImage = read(file);
+ lastLoadedBufferedImage = createBufferedImage(readMBF(file));
lastLoadedFile = file;
if (lastLoadedBufferedImage == null) {