mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-04 21:11:22 +12:00
Use PNG for OCR
This commit is contained in:
parent
4e05c6748b
commit
88022f576a
1 changed files with 2 additions and 2 deletions
|
@ -675,11 +675,11 @@ public static void OpenOCR()
|
|||
{
|
||||
if (img != null)
|
||||
{
|
||||
using (Stream stream = SaveImage(img, EImageFormat.JPEG, 95))
|
||||
using (Stream stream = SaveImage(img, EImageFormat.PNG))
|
||||
{
|
||||
if (stream != null)
|
||||
{
|
||||
using (OCRSpaceForm form = new OCRSpaceForm(stream, "ShareX.jpg"))
|
||||
using (OCRSpaceForm form = new OCRSpaceForm(stream, "ShareX.png"))
|
||||
{
|
||||
form.Language = Program.Settings.OCRLanguage;
|
||||
form.ShowDialog();
|
||||
|
|
Loading…
Reference in a new issue