API Changes

The sections below list APIs that were added, changed, or removed.

Added

  • We have added the ability to configure the minimum confidence of each individual class separately for AI/ML models. void addClassMinConfidence(String detectionClass, float classMinConfidence) method - Passing classname and confidence to this method will configure the minimum confidence for detectionClass. This will supersede the confidence set for the parent model.

  • Added a utility method to convert byte[]/int[] received from camera source to Bitmap which is required as an input for the detection library. The logic used for conversion in this method is simple and basic. This method is optional. Check usage

      //Populate a pre-allocated Bitmap from an ARGB byte array.
      static Bitmap argb8888ToBitmap(byte[] argb, Bitmap output)
    
      // Populate a pre-allocated Bitmap from ARGB pixel values.
      static Bitmap argb8888ToBitmap(int[] argb, int width, int height, Bitmap output)
    
  • Added List<Recognition> classifyRecognitions(List<Recognition> recognitions, Bitmap bitmap, int sensorOrientation, float minimumConfidence) method to RoadAlertsCVModel, TrafficLightCVModel which takes input from Road Basics model and classifies the status of brake light and traffic light respectively.

Updated

  • The name of the keys used to authenticate Live Sense SDK have been changed. This has been done to be able to provide separate keys for Live Sense SDK and other HERE services like HERE Maps. Before this update, the keys to be provided in AndroidManifest.xml were the following:

    Before:

        <meta-data android:name="com.here.android.maps.appid"
        android:value="{YOUR_APP_ID}"/>
        <meta-data android:name="com.here.android.maps.apptoken"
        android:value="{YOUR_APP_CODE}"/>
        <meta-data android:name="com.here.android.maps.license.key"
        android:value="{YOUR_LICENSE_KEY}"/>
    

    The keys that will have to be provided/updated in AndroidManifest.xml are the following:

    After:

        <meta-data android:name="com.here.see.livesense.appid"
        android:value="{YOUR_APP_ID}"/>
        <meta-data android:name="com.here.see.livesense.apptoken"
        android:value="{YOUR_APP_CODE}"/>
        <meta-data android:name="com.here.see.livesense.license.key"
        android:value="{YOUR_LICENSE_KEY}"/>
    

    For more details, see authenticating applications.

  • Live Sense model classes now implement new interfaces Recognizer (RoadBasicsModel, RoadSignsModel, RoadHazardsModel) and Classifier (RoadAlertsCVModel, TrafficLightCVModel)

Removed

  • List<Recognition> recognizeImage(Bitmap bitmap, int sensorOrientation, float minimumConfidence) method from RoadAlertsCVModel, TrafficLightCVModel has been replaced by classifyRecognitions() method

  • Bundled OpenCV library

results matching ""

    No results matching ""