Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Function to process a Thermal Image and update UI
- */
- private final Camera.Consumer<ThermalImage> handleIncomingImage = new Camera.Consumer<ThermalImage>() {
- @Override
- public void accept(ThermalImage thermalImage) {
- Log.d(TAG, "accept() called with: thermalImage = [" + thermalImage.getDescription() + "]");
- //Will be called on a non-ui thread,
- // extract information on the background thread and send the specific information to the UI thread
- // Everything above is code that was already there in the sample app, below is my code:
- GpsInformation gpsInfo = thermalImage.getGpsInformation();
- CompassInformation compassInfo = thermalImage.getCompassInformation();
- // … (The rest of the code is from the sample app)
Add Comment
Please, Sign In to add comment