37 lines
566 B
Java
37 lines
566 B
Java
package ocr;
|
|
|
|
import java.awt.image.BufferedImage;
|
|
import java.util.Map;
|
|
|
|
public class ImagesCopie {
|
|
|
|
private Map<String,Img> hMapImgs;
|
|
|
|
|
|
public ImagesCopie(BufferedImage imgOriginale) {
|
|
|
|
|
|
hMapImgs = Rogneur.createHMapImgs(imgOriginale);
|
|
}
|
|
|
|
public void applyOcrForEach() {
|
|
|
|
for(Img s : hMapImgs.values())
|
|
{
|
|
s.applyOcrImg();
|
|
System.out.println("Desc : "+s.getDescription());
|
|
}
|
|
|
|
}
|
|
|
|
public Map<String, Img> gethMapImgs() {
|
|
return hMapImgs;
|
|
}
|
|
|
|
public void sethMapImgs(Map<String, Img> hMapImgs) {
|
|
this.hMapImgs = hMapImgs;
|
|
}
|
|
|
|
|
|
}
|