Contributions
How can I use OpenCV 3.4.1 with Java-Bridge to load a pictures with imread()?
I allways get errors when using OpenCV 3.4.1 with Java-Bridge to load a pictures with imread(). Therefore I use the Java-Bridge C:\Program Files\Java\jre1.8.0_171\bin\server\jvm.dll (This Java-Bridge works fine with other *.jar-Files like ..\..\..\..\..\Java\pdfbox-app-2.0.9.jar) I use the following Java Classes in TestComplete: - org.opencv.imgcodecs.Imgcodecs - org.opencv.core.Core - org.opencv.core.CvType - org.opencv.core.Mat and Add Drectory ..\..\..\..\..\opencv\build\java\x64 and Add Jar-Files ..\..\..\..\..\opencv\build\java\opencv-331.jar There are two methodsin class org.opencv.imgcodecs.Imgcodecs "imread()" that are also shown in the object inspector of TestComplete - imread() with one Parameter for the PNG-Filename - imread_2() with two Parameters Example 1 leads to an error: function abc1() { aFullFileName = 'C:\\Testing\\TC.png'; aObj = JavaClasses.org_opencv_imgcodecs.Imgcodecs.newInstance(); aMat = aObj.imread(aFullFileName); } leads to java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_1(LJava/lang/String; )J:smileyfrustrated: Example2 leads also to an error: function abc2() { aFullFileName = 'C:\\Testing\\TC.png'; aObj = JavaClasses.org_opencv_imgcodecs.Imgcodecs.newInstance(); aMat = aObj.imread_2(aFullFileName, 1); } leads to java.lang.UnsatisfiedLinkError: org.opencv.imgcodecs.Imgcodecs.imread_0(Ljava/lang/String;I)J:smileyfrustrated: If I look at these methods fromOpenCVdirectlywith Java in Eclipse it works fine but how can I fix this within TestComplete?After Windows 10 of Creator Update, the text in dialog-windows can not be recognised
It is a general windows problem in creator Version 1703 for recognising the text in standard dialog-windows (#32770). In other windows version there's no problem. For example, in object: Sys.Process("notepad").Window("#32770", "Editor", 1).UIAObject("Editor").UIAObject("Möchten_Sie_die_Änderungen_an_Unbenannt_speichern_").NativeUIAObject.Name The last part: UIAObject("Möchten_Sie_die_Änderungen_an_Unbenannt_speichern_").NativeUIAObject.Name can not be recognised.943Views0likes1CommentIn Windows 10 Creators Update, the text (NativeUIAObject.Name) in dialogs can not be recognised
Thereis a general problem with the Windows creator Version 1703 and TestComplete for recognising the text in all of standard dialog-windows:Window("#32770", ...). In other windows version there's no problem with this. It's not possible to pick the inner UIAObjectwith TestCompleteto get access to theNativeUIAObject.Name property any more. Therefore it is impossible to read the text of any standard windows dialog box any more. For example, in object: Sys.Process("notepad").Window("#32770", "Editor", 1).UIAObject("Editor").UIAObject("Möchten_Sie_die_Änderungen_an_Unbenannt_speichern_").NativeUIAObject.Name The last part can not be recognised: UIAObject("Möchten_Sie_die_Änderungen_an_Unbenannt_speichern_").NativeUIAObject.Name Is there any idea of a solution or workaround for this problem? Our testcases work interactively with the test objects and have to be able to read all of the standard windows dialogs.636Views0likes0Comments