OCR [英] ocr

查看:80
本文介绍了OCR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将数组结果存储在数据库中...使用c#


使用System;

使用System.Collections.Generic;

使用System.Linq;

使用System.Text;

使用System.Threading.Tasks;

使用Tesseract;

使用System.Drawing;



命名空间ConsoleApp1

{

   课程计划

    {

        static void Main(string [] args)

        {

    string [] strarr = new string [1000];

    if(args == null)抛出新的ArgumentNullException(" args");

           位图img =新位图(" ty.jpg");

            TesseractEngine engine = new TesseractEngine(" ./ tessdata"," eng",EngineMode.Default);

            Page page = engine.Process(img,PageSegMode.Auto);

            strarr [0] =(page.GetText());



            Console.WriteLine(strarr [0]);



            Console.Read();



代码是这个


数据库中的ARRAY内容存储



解决方案


什么样的数据库? SQL,MongoDB ...


您想要存储哪个数组? strarr?


how to store the array result in database.. using c#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tesseract;
using System.Drawing;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
   string[] strarr= new string[1000];
    if (args == null) throw new ArgumentNullException("args");
            Bitmap img = new Bitmap("ty.jpg");
            TesseractEngine engine = new TesseractEngine("./tessdata", "eng", EngineMode.Default);
            Page page = engine.Process(img, PageSegMode.Auto);
            strarr[0] = (page.GetText());

            Console.WriteLine(strarr[0]);

            Console.Read();

CODE IS THIS

ARRAY CONTENT STORE IN DATABASE

解决方案

Hi,

what kind of database? SQL, MongoDB ...

Which array do you want to store? strarr?


这篇关于OCR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆