1 | initial version |
Threading is root of the problem. All OpenCV Java samples uses separate thread for camera handling and frames processing. Toast is a GUI element and can be constructed and shown in UI thread only. See StackOverflow discussion for more details.