Skip to content
This repository was archived by the owner on Dec 7, 2020. It is now read-only.

Commit 6ae63c3

Browse files
authored
Merge pull request #4 from szprutamich/master
Logging error output from akaze command
2 parents 3d3fc8f + 3bd1bba commit 6ae63c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

library/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.testdroid</groupId>
66
<artifactId>mobile-opencv-image-recognition-library</artifactId>
7-
<version>0.3.1</version>
7+
<version>0.3.2</version>
88
<packaging>jar</packaging>
99
<name>OpenCV Mobile Image Recognition Library</name>
1010
<description>Library for image recognition that can be used in mobile testing with for example Appium</description>

library/src/main/java/imagerecognition/AkazeImageFinder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ private String runAkazeMatch(String object_filename, String scene_filename) thro
355355
InputStreamReader isr = new InputStreamReader(stdin);
356356
BufferedReader br = new BufferedReader(isr);
357357
String line;
358+
while ((line = br.readLine()) != null)
359+
logger.info(line);
360+
stdin = proc.getErrorStream();
361+
isr = new InputStreamReader(stdin);
362+
br = new BufferedReader(isr);
358363
while ((line = br.readLine()) != null)
359364
logger.info(line);
360365
int exitVal = proc.waitFor();

0 commit comments

Comments
 (0)