Guest User

Untitled

a guest
Jun 11th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. /**
  2.  * Function to process a Thermal Image and update UI
  3.  */
  4. private final Camera.Consumer<ThermalImage> handleIncomingImage = new Camera.Consumer<ThermalImage>() {
  5.     @Override
  6.     public void accept(ThermalImage thermalImage) {
  7.         Log.d(TAG, "accept() called with: thermalImage = [" + thermalImage.getDescription() + "]");
  8.         //Will be called on a non-ui thread,
  9.         // extract information on the background thread and send the specific information to the UI thread
  10.  
  11.         // Everything above is code that was already there in the sample app, below is my code:
  12.         GpsInformation gpsInfo = thermalImage.getGpsInformation();
  13.         CompassInformation compassInfo = thermalImage.getCompassInformation();
  14.  
  15.         // … (The rest of the code is from the sample app)
Add Comment
Please, Sign In to add comment