Detect Values of RGB from CameraFrame using OpenCV in Android

前端 未结 2 1429
广开言路
广开言路 2021-01-25 11:00

I want to detect which value is maximum from RGB. how can I detect that? I want to display which colour has highest occurrence with their RGB value. For example, In a image the

2条回答
  •  野性不改
    2021-01-25 11:40

    For such tasks you should use AsyncTask as it does not run on MainThread thus your UI wont freeze.

    https://developer.android.com/reference/android/os/AsyncTask.html

    I assume that this will be faster compared to your current solution.

提交回复
热议问题