프로젝트

일반

사용자정보

개정판 3b938959

ID3b9389598593358f5f751e2d612ec6bb3960a522
상위 a8aec13a
하위 5639752b

김태성이(가) 11달 전에 추가함

issue #000000 검색 수정

Change-Id: I7ac25e17a0b62f753c52f52b8a77b73bb3bbe2bf

차이점 보기:

KCOM/Controls/SearchPanel.xaml.cs
174 174
                extractor.OCRMode = Bytescout.PDFExtractor.OCRMode.Off;
175 175
                //extractor.OCRLanguage = "eng";
176 176
                //extractor.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata");
177

  
178
                extractor.OCRResolution = 300;
177
                
178
                extractor.OCRResolution = 100;
179 179

  
180 180
                //ocrAnalyzer.OCRLanguage = "eng";
181 181
                //ocrAnalyzer.OCRLanguageDataFolder = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "tessdata");
......
431 431

  
432 432
                var width = Convert.ToDouble(Common.ViewerDataModel.Instance.Document_Info[item.PageNo - 1].PAGE_WIDTH);
433 433
                var height = Convert.ToDouble(Common.ViewerDataModel.Instance.Document_Info[item.PageNo - 1].PAGE_HEIGHT);
434
                
434 435
                var widthScale = width / Convert.ToDouble(extractor.GetPageRect_Width(item.PageNo - 1));
435 436
                var heightScale = height / Convert.ToDouble(extractor.GetPageRect_Height(item.PageNo - 1));
436 437

  
......
449 450
                    Width = ( item.searchResult.Width * widthScale *7),
450 451
                    Height = (item.searchResult.Height * heightScale *7)
451 452
                });
453

  
454
                //extractor.SavePageTextToFile(item.PageNo - 1, @"C:\Users\kts\AppData\Local\Temp\MARKUS\savepageText\text.txt");
455
                //extractor.SavePreprocessedPagePreview(item.PageNo - 1, $"C:\\Users\\kts\\AppData\\Local\\Temp\\MARKUS\\savepageText\\{(item.PageNo - 1).ToString()}.png");
452 456
            });
453 457
        }
454 458
    }

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)