Activity for vijayalangaram

  • vijayalangaram vijayalangaram posted a comment on discussion Open Discussion

    Hi i was followed your url but the same error repeated. I was added my ocr command in get image part . https://sourceforge.net/p/tess4j/discussion/1202293/thread/92bce588bf/ url : https://howtodoinjava.com/mongodb/java-mongodb-getsave-image-using-gridfs-apis/ private static void getSingleImageExample(DB db) { String newFileName = "C:\\Users\\Administrator\\Desktop\\eurotext"; GridFS gfsPhoto = new GridFS(db, "photo"); GridFSDBFile imageForOutput = gfsPhoto.findOne(newFileName); System.out.println(imageForOutput);...

  • vijayalangaram vijayalangaram posted a comment on discussion Open Discussion

    I was stored image in Mongodb as binary data and unable to perform ocr on that. Is anyone knew how to do ? public class User { @Id private String id; private String name; private Binary image;}} getters & setters , constructors CONTROLLER [worked perfectly for upload image and retrieved image as binary data] @PostMapping("/upload") User createUser(@RequestParam String name, @RequestParam MultipartFile file) throws IOException { User user = new User(); user.setName(name); user.setImage(new Binary(file.getBytes()));...

  • vijayalangaram vijayalangaram posted a comment on discussion Open Discussion

    Hi I have JAI Image I/O error while perform a doocr for stored image from mongodb. I was added Image I/O,tess4j and further jar file in source also as a dependency and i have that all jar in my jre installed location. Normally we set datapath for local image file location or direct image file but in my case i was stored image in mongodb and looking doocr for that. Is base 64 decode required for that to do doocr because i have doubt regarding where the image looking jar file issue or stored binary...

  • vijayalangaram vijayalangaram modified a comment on discussion Help

    @Rahul @bugfoot Dubey hi i have same error and unable to solve . I was added jar,depedency. It's Perfectly working for local image file and Is it possible for stored image in mongodb ? public static void main(String[] args) { SpringApplication.run(JavalocaldoocrApplication.class, args); Mongo mongodb = new MongoClient("localhost", 27017); DB db = mongodb.getDB("test-db"); DBCollection collection = db.getCollection("user"); **File image = new File("mongodb://localhost:27017//test-db//user");** Tesseract...

  • vijayalangaram vijayalangaram posted a comment on discussion Help

    @Rahul Dubey hi i have same error and unable to solve . I was added jar,depedency. It's Perfectly working for local image file and Is it possible for stored image in mongodb ? public static void main(String[] args) { SpringApplication.run(JavalocaldoocrApplication.class, args); Mongo mongodb = new MongoClient("localhost", 27017); DB db = mongodb.getDB("test-db"); DBCollection collection = db.getCollection("user"); **File image = new File("mongodb://localhost:27017//test-db//user");** Tesseract tessInst...

1