gcp_cloud_vision_lines
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "gcp_cloud_vision_lines", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "This utility breaks down a full text annotation response from the Google cloud vision API into a neatly parsed Array with each element representing a single line of text, with coords and height and width dimensions.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -76,3 +76,3 @@ const arrayFlatten = require("array-flatten"); | ||
return elem.symbols.map(symbol => { | ||
if (symbol.property.detectedBreak) { | ||
if (symbol && symbol.property && symbol.property.detectedBreak) { | ||
const word = isWord(symbol.property.detectedBreak.type); | ||
@@ -79,0 +79,0 @@ |
6948