Home / Videos / Lerne OpenCV in Android Studio Teil 1 (Integration)

Lerne OpenCV in Android Studio Teil 1 (Integration)



Dies ist der erste Teil meiner neuen Videoserie zur Entwicklung von Android-Apps. In diesem Video werden wir das OpenCV SDK in unser Android Studio-Projekt integrieren. Wenn Sie das Video mögen, teilen Sie es bitte und abonnieren Sie es.

Laden Sie alle Android-Codes herunter:

Folgen Sie auf dem Instagram:

About AndroidWeltEditor

Check Also

Top 15 der besten Smartphones des Jahres 2019 (unter 500 US-Dollar).

Sie haben von Redmi K20 Pro, ASUS Zenfone 6, OnePlus 7, Samsung A70, Xiaomi Mi …

48 comments

  1. nice tutorial, also you should add that android.useDeprecatedNdk is no longer working so remove that and add android.deprecatedNdkCompileLease=(a future timestamp)

  2. thank you for your video!!!! i did it successfully

  3. Good job, brother. Allah bless you. I just will follow you, because it's needed for a submarine project. But My programming skill in Java and C++ is very low so that, I will improve me.

  4. im getting error at last where i have written "if(OpenCVLoader.initDebug())"….. ERROR: cannot find symbol variable OpenCVLoader

  5. Thanks a lot, you practically saved me)

  6. could you please give a link for OpenCV download ? Because the one's we get isn't working the way you show in the video. Please help!

  7. I need to do a bubble sheet answer corrector, can anyone give me some tips on how to start? I was checking some opencv4android content but it didn't help me …

  8. how to compare upload image with database images?give me answer fast as possible as.

  9. I am getting this error after i add dependency:

    ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :OpenCVLibrary41.

    Android Studio version 3.3.2

    kindly help.

  10. all i hear is ok ok ok ok ok ok ok ok ok ok ok ok ok… 🙂
    anyway nice tutorial

  11. Thank you brother! Nice video to the point and simply followable. 🙂

  12. Omg, ok. So here are some key points that worked for me using Android Studio 3.2.1:

    * Build new project with C++ support.
    * Before you can add the Module Dependency, do the 'ndk.dir=<…>' step in local.properties.

    * Do not add the line 'android.useDeprecatedNdk=true'.
    * Install CMake if the compiler allows you.
    * Allow Android Studio to fix compiler errors if it can.
    * import the following:

    import android.support.v7.app.AppCompatActivity;

    import android.os.Bundle;

    import android.widget.Toast;

    import org.opencv.android.OpenCVLoader;

  13. OpenCVLoader.initDebug() return false so please give solution

  14. Thank you! nice tutorial ,please make a video about histogram?

  15. Error showing "could not load OpenCV" Plz help

  16. error: cannot find symbol variable OpenCVLoader

    How to solve it?

  17. I hope you can help. I followed up to 6:47 in the video but I received an error and a warning. They are;

    ERROR: The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.
    and
    WARNING: The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file

    Is there a solution to this?

    Thanks

  18. Hi. I caught error when I put "android.deprecatedNdkCompileLease=(a future timestamp)". What do I need to put in?

  19. First i was using android.useDeprecated.Ndk = true then i was getting error about this and then i have installed ndk build now i am getting this error.

    Error:Execution failed for task ':app:compileDebugNdk'.
    > Error: Your project contains C++ files but it is not using a supported native build system.
    Consider using CMake or ndk-build integration. For more information, go to:
    https://d.android.com/r/studio-ui/add-native-code.html
    Alternatively, you can use the experimental plugin:
    https://developer.android.com/r/tools/experimental-plugin.html

  20. Your project contains C++ files but it is not using a supported native build system.

    Consider using CMake or ndk-build integration Sir I am getting this error

  21. Thanks you sooooooo muchhhhhhh <3

  22. there is no buildToolsVersion in the app gradle..What to do??

  23. MashaAllah good work pakistanis

  24. ek dam mst tha bhai
    ek mic lelo accha sa 😉 [sry, plz]

  25. can you help me ?? the app showed me the message "could not load OpenCV"

  26. hi. great tutorials. can i use opencv for image comparison. i was planning on making an app to compare images from databsae. could you make that on your next videos?

  27. hi ..have you covered any video on face recognition using opencv?

  28. Hey, This tutorial is quite helpful. But it would have been more awesome if you would have tell the reason for each steps or explain why you are doing that, what you are trying to achieve by following each steps..Anyways thanks.

  29. sir which version of SDK should I download ?? 3.4.2 or 2.4.13

  30. please give your source code , thnx

  31. I am getting an "Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system.
    Consider using CMake or ndk-build integration." how to resolve it?

  32. When I run the app on my emulator, it returns FALSE ("Could not load OpenCV"). What does it mean?

  33. can we have a driver license / national id detector tutorial?

  34. awesome , if the rest of yr videos are that clear i will most probably donate , God bless you

  35. Is it okay to use the latest version of opencv and ndk?

  36. Face detection and Authentication using OpenCV and android….. do you have and tutorial ??

  37. after completing all these steps one by one I am facing these errors now please help me

    Error: Flag android.useDeprecatedNdk is no longer supported and will be removed in the next version of Android Studio. Please switch to a supported build system.
    Consider using CMake or ndk-build integration. For more information, go to:
    https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile
    To get started, you can use the sample ndk-build script the Android
    plugin generated for you at:
    /root/AndroidStudioProjects/FaceDetect/app/build/intermediates/ndk/debug/Android.mk
    Alternatively, you can use the experimental plugin:
    https://developer.android.com/r/tools/experimental-plugin.html
    To continue using the deprecated NDK compile for another 60 days, set
    android.deprecatedNdkCompileLease=1523378846707 in gradle.properties

  38. Nice work.. Just a tip if you guys are having problems:
    1) make sure you download lastest version of opencv-android
    2)while writing name of project select C++ support
    3)use the exact name 'jniLibs', if you do not find folder then manually go to your computer's directory and copy-paste files
    4)also copy ALL the files from your native/libs folder and paste to jniLibs

  39. This is the error that I am getting can you please help –
    Error:Execution failed for task ':app:compileDebugNdk'.
    > Error: Your project contains C++ files but it is not using a supported native build system.
    Consider using CMake or ndk-build integration. For more information, go to:
    https://d.android.com/r/studio-ui/add-native-code.html
    Alternatively, you can use the experimental plugin:
    https://developer.android.com/r/tools/experimental-plugin.html

    I followed the links given in that error message that didnt help either.

  40. when i just typed android.useDeprecatedNdk = true i found out i have error at gradle properties help me plz !

  41. Please send sir github link…

  42. I am using opencv in java code with your instructions. But i need to use opencv in .cpp code native side. I am trying to use
    #include <opencv2/core.hpp>
    line in native-lib.cpp but getting error
    Error:(3, 10) fatal error: 'opencv2/core.hpp' file not found
    In java side i am using without problem
    import org.opencv.android.OpenCVLoader;
    What can i do to use opencv in native code in android?
    Thank you for your contributions.

Leave a Reply

Your email address will not be published. Required fields are marked *