public async void TestWithoutDispiose () { ITesseractApi api = new TesseractApi (); await api.Init ("eng"); for (int i = 0; i < 20; i++) { using (var stream = TesseractApiRecogniseTest.LoadSample ("sample2.png")) { var result = await api.SetImage (stream); Assert.IsTrue (result); Assert.AreEqual ("ABCDE FGHI\nJKLHN OPQR\nSTUVVJXYZ\n\n", api.Text); } } api.Dispose (); }
public async void TestWithoutDispiose () { ITesseractApi api = new TesseractApi (Android.App.Application.Context, AssetsDeployment.OncePerInitialization); await api.Init ("eng"); for (int i = 0; i < 20; i++) { using (var stream = TesseractApiRecogniseTest.LoadSample ("sample2.png")) { var result = await api.SetImage (stream); Assert.IsTrue (result); Assert.AreEqual ("ABCDE FGHI\nJKLHN OPQR\nSTUVVJXYZ", api.Text); } } api.Dispose (); }
public async void TestWithoutDispiose() { ITesseractApi api = new TesseractApi(); await api.Init("eng"); for (int i = 0; i < 20; i++) { using (var stream = TesseractApiRecogniseTest.LoadSample("sample2.png")) { var result = await api.SetImage(stream); Assert.IsTrue(result); Assert.AreEqual("ABCDE FGHI\nJKLHN OPQR\nSTUVVJXYZ\n\n", api.Text); } } api.Dispose(); }
public async void TestWithoutDispiose() { ITesseractApi api = new TesseractApi(Android.App.Application.Context, AssetsDeployment.OncePerInitialization); await api.Init("eng"); for (int i = 0; i < 20; i++) { using (var stream = TesseractApiRecogniseTest.LoadSample("sample2.png")) { var result = await api.SetImage(stream); Assert.IsTrue(result); Assert.AreEqual("ABCDE FGHI\nJKLHN OPQR\nSTUVVJXYZ", api.Text); } } api.Dispose(); }
public void Tear() { _api.Dispose(); _api = null; }