question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[1.1.4] CvException when using find() in a project upgraded from 1.1.3 due to not supported png-image-type

See original GitHub issue

Being eager to make use of the both the improved OCR and the transparent masking, this week I upgraded an existing, in-progress project from 1.1.3 to 1.1.4 to attempt to make use of the new features. Noticing that everything required is now bundled into one .jar file, I removed my old Sikuli 1.1.3 install directory & jar file, and imported the nightly build via maven. However, I can no longer run any of my tests using sikuli, because any attempt to find an image results in this error:

CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2)  

C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1102: error:  
(-215:Assertion failed) (depth == 0 || depth == 5) && type == _templ.type() && _img.dims() <= 2 in  
function 'cv::matchTemplate'
]

I’m unclear what could be causing this issue, as I’m not very clued up on the underlying opencv libraries, but I was previously able to make use of this exact image before so I don’t believe that it is the issue unless a significant requirement for saved images has changed.

Eager to get to the bottom of this as, like I said, I’m excited to make use of the new stuff.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RaiMancommented, Sep 12, 2018

Uuups, sorry. Did not realize, that I left the OSSRH upload switched off after some testing. Today’s build should it bring back again.

0reactions
FlamingGearcommented, Sep 11, 2018

Hi Again RaiMan, just dropping in to ask when the Maven clone will be updated with this fix? I’m using Maven to simplify the build process on CI machines but the version found via Maven is from August. Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · openpnp/opencv - GitHub
OpenCV Java bindings packaged with native libraries, seamlessly delivered as a turn-key Maven dependency. - Issues · openpnp/opencv.
Read more >
Download And Installation - Emgu CV: OpenCV in .NET (C# ...
The project will be upgraded to use "package reference". Once that is done, the error for installing Emgu.CV.runtime.windows nuget package ...
Read more >
Unrecognized or unsupported array type in function cvGetMat ...
The relevant snippet of the error message is Unrecognized or unsupported array type in function cvGetMat . The cvGetMat() function converts arrays into...
Read more >
Project configuration - Axway Documentation Portal
API Builder uses the configuration files in the project's conf directory to initialize the application and its connectors.
Read more >
[RELEASED] OpenCV for Unity | Page 58
EnoxSoftware can you include Apple Silicon support for the OpenCV dylibs? Currently the one included are only x86_64: % file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found