Google Vision OCR - 从图像文件中读取莫尔斯电码

时间:2018-05-28 18:21:42

标签: image-processing ocr vision google-vision morse-code

我正在尝试使用Google Vision OCR读取摩尔斯电码(点和短划线)的图像,但它并没有很好地拾取符号。有没有办法让Google Vision更好地获取点数和破折号,还是有一种不同的OCR产品可以更好地识别符号?

目前,我正在使用Google Cloud提供的nodejs示例:

const vision = require('@google-cloud/vision');

// Creates a client
const client = new vision.ImageAnnotatorClient();

// Read a remote image as a text document
client
  .documentTextDetection('./resources/morse.png')
  .then(results => {
    const fullTextAnnotation = results[0].fullTextAnnotation;
    console.log(fullTextAnnotation.text);
  })
  .catch(err => {
    console.error('ERROR:', err);
  });

0 个答案:

没有答案