Skip to content

Commit

Permalink
Merge pull request #6 from KobayashiYoh/bugfix/painter
Browse files Browse the repository at this point in the history
Bugfix painter
  • Loading branch information
KobayashiYoh authored Dec 17, 2023
2 parents df34664 + 94fed7c commit 2672598
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class _FocusedAreaOCRViewState extends State<FocusedAreaOCRView> {
}
_isLoading = true;
final recognizedText = await _textRecognizer.processImage(inputImage);
final bool isEmptyImageMetadata = inputImage.metadata?.size != null &&
inputImage.metadata?.rotation != null;
final bool isEmptyImageMetadata = inputImage.metadata?.size == null ||
inputImage.metadata?.rotation == null;
if (isEmptyImageMetadata) {
_customPaint = null;
} else {
Expand Down

0 comments on commit 2672598

Please sign in to comment.