Getting RGB Value Live Camera, Error NullPointerException
问题 [UPDATE]: Screenshot has been added. I was following basic tutorial tutorial-1-camerapreview from opencv-3.4.1-android-sdk_4. I want to click on screen and get RGB Color of that x y position. I got help from HERE (Retrieve exact RGB value from touch event in camera preview) : Getting x y coordinates: @SuppressWarnings("deprecation") @Override public boolean onTouchEvent(MotionEvent event) { x = (int)event.getX(); y = (int)event.getY(); return super.onTouchEvent(event); } onCameraFrame as: