Reminder: We will be carrying out upgrades to AppGallery Connect from 16:00 UTC to 21:00 UTC on September 21, 2020. The development, distribution, operations, and analytics services may be temporarily unavailable during the process. We would like to apologize for any inconvenience this may cause you.
ImageSuperResolution superResolution = new ImageSuperResolution(mContext);
Frame frame = new Frame();
ImageResult result = superResolution.doSuperResolution(frame, null);
Bitmap resultBitmap = result.getBitmap();
The image after super resolution
Huawei super-resolution API encapsulates all additional resource management into the interface. Users do not need to manage any additional resources, and can rely on existing resources.
1. Refer to the Android error logs. This is the fastest and most direct way to find the source of the error. 2. Refer to the result code to determine the general error type. 3. In most cases, the main cause of a running error is an invalid input. Read the restrictions and constraints in the API document and check carefully whether the input parameters meet the requirements. 4. Check whether the app has the corresponding permission, for example, storage permission.
1. Super-distribution quality selection for the Huawei super-resolution API is planned to be made available in the future. Quality selection provides an optimal solution for users. A higher quality super-resolution means a larger computing workload, which results in higher power consumption and longer latency. 2. In some scenarios, the quality of the super-resolution is not very sensitive, or varies according to the user. For example, the difference between the highest quality and a substantially lower quality, is only noticeable to experts in the field, or when the image is magnified by 100%. However, the running time can vary greatly.