OCR [英] 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屋!