Click here to Skip to main content
16,004,782 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Azure or Microsoft Sync Framework Pin
Richard MacCutchan5-Sep-13 23:44
mveRichard MacCutchan5-Sep-13 23:44 
AnswerRe: Windows Azure or Microsoft Sync Framework Pin
Jason Gleim6-Sep-13 5:06
professionalJason Gleim6-Sep-13 5:06 
Questionhow can i discover winodws server model manufacturer and serial number details using SNMP Pin
superselector5-Sep-13 18:20
superselector5-Sep-13 18:20 
AnswerRe: how can i discover winodws server model manufacturer and serial number details using SNMP Pin
jschell6-Sep-13 8:42
jschell6-Sep-13 8:42 
AnswerRe: how can i discover winodws server model manufacturer and serial number details using SNMP Pin
Dave Kreskowiak6-Sep-13 14:34
mveDave Kreskowiak6-Sep-13 14:34 
QuestionI cant make this ocr of microsoft to work in c# why ? please help me Pin
chocolade5-Sep-13 13:48
chocolade5-Sep-13 13:48 
AnswerRe: I cant make this ocr of microsoft to work in c# why ? please help me Pin
Brisingr Aerowing5-Sep-13 15:18
professionalBrisingr Aerowing5-Sep-13 15:18 
GeneralRe: I cant make this ocr of microsoft to work in c# why ? please help me Pin
chocolade5-Sep-13 16:48
chocolade5-Sep-13 16:48 
Brisingr Thank you.

Im trying to use now the Tessnet2 code but it's not working.
I have cdownloaded the lib dll file of the 64bit added as referenced to my project changed my project platform target to x64.

Then i added this code to my program:

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace SearchLiveCameras
{
    public partial class Form1 : Form
    {
        StreamWriter w;

        public Form1()
        {
            InitializeComponent();

            w = new StreamWriter(@"d:\ocrErrors.txt");

            Bitmap image = new Bitmap(@"d:\timessquaretif.tif");
            tessnet2.Tesseract ocr = new tessnet2.Tesseract();
            ocr.SetVariable("tessedit_char_whitelist", "0123456789"); // If digit only
            ocr.Init(@"c:\temp", "fra", false); // To use correct tessdata
            List<tessnet2.Word> result = ocr.DoOCR(image, Rectangle.Empty);
            foreach (tessnet2.Word word in result)
                Console.WriteLine("{0} : {1}", word.Confidence, word.Text);
        }

       

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}



But for some reason it never pass the line:

ocr.Init(@"c:\temp", "fra", false);

I use a breakpoint i see its getting to this line when i click continue the program just exit and does nothing.
It never get to the last three lines. It never get to the List.

Maybe there is an exception somewhere but i dont see it its just quit/exit the program when its doing the line:

ocr.Init(@"c:\temp", "fra", false);

What is wrong ?
GeneralRe: I cant make this ocr of microsoft to work in c# why ? please help me Pin
Mycroft Holmes5-Sep-13 17:57
professionalMycroft Holmes5-Sep-13 17:57 
GeneralRe: I cant make this ocr of microsoft to work in c# why ? please help me Pin
Bernhard Hiller5-Sep-13 21:27
Bernhard Hiller5-Sep-13 21:27 
QuestionEFCaching Provider error "The provider did not return a DbSpatialServices instance." Pin
rafaelcn5-Sep-13 13:41
rafaelcn5-Sep-13 13:41 
SuggestionPeekyPokey - a USB board for h/w programming in .NET Pin
hanzibal25-Sep-13 6:54
hanzibal25-Sep-13 6:54 
GeneralRe: PeekyPokey - a USB board for h/w programming in .NET Pin
Thomas Daniels5-Sep-13 7:12
mentorThomas Daniels5-Sep-13 7:12 
GeneralRe: PeekyPokey - a USB board for h/w programming in .NET Pin
hanzibal25-Sep-13 7:29
hanzibal25-Sep-13 7:29 
Questionupdate a formview that allows paging (dynamic data website)‏ Pin
marounmm5-Sep-13 3:25
marounmm5-Sep-13 3:25 
Questionhow can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
superselector5-Sep-13 1:23
superselector5-Sep-13 1:23 
AnswerRe: how can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
Dave Kreskowiak5-Sep-13 3:05
mveDave Kreskowiak5-Sep-13 3:05 
AnswerRe: how can i start a shell and execute a command and capture output using ganymed-ssh2 c# library Pin
TnTinMn5-Sep-13 3:33
TnTinMn5-Sep-13 3:33 
Questionc# - Windows Services: accessing a network resource Pin
Jeffrey Jefferson4-Sep-13 20:28
Jeffrey Jefferson4-Sep-13 20:28 
AnswerRe: c# - Windows Services: accessing a network resource Pin
Bernhard Hiller4-Sep-13 20:50
Bernhard Hiller4-Sep-13 20:50 
AnswerRe: c# - Windows Services: accessing a network resource Pin
AmitGajjar4-Sep-13 20:56
professionalAmitGajjar4-Sep-13 20:56 
AnswerRe: c# - Windows Services: accessing a network resource Pin
jschell5-Sep-13 9:27
jschell5-Sep-13 9:27 
AnswerRe: c# - Windows Services: accessing a network resource Pin
Jason Gleim6-Sep-13 5:19
professionalJason Gleim6-Sep-13 5:19 
AnswerRe: c# - Windows Services: accessing a network resource Pin
Jeffrey Jefferson7-Sep-13 0:46
Jeffrey Jefferson7-Sep-13 0:46 
QuestionOne form control displayed in other Pin
Rohini Shirke4-Sep-13 19:05
Rohini Shirke4-Sep-13 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.