0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android OpenCVでエラー

Last updated at Posted at 2020-11-30

bitmapToMatを利用したら、
エラーcannot access class 'Bitmap'. Check your module classpath for missing or conflicting dependenciesとのこと。

該当のソース
opencv/java/src/org/opencv/android/Utils
を見てみると、インポートエラーを発見。なるほど。
image.png

解決法

このサイトを参考にして、opencvのbuild.gradleでバージョンをいじったらエラーが消えました。
めでたしめでたし。
image.png

よくわからないけど、動いたからヨシ!

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?