Class Info |
---|
com.huawei.hiai.vision.image.sr.TxtImageSuperResolution Upscales text in an image by three times and improves the definition of the text. |
Constructor Name |
---|
TxtImageSuperResolution(Context context) Constructs an object instance. |
Qualifier and Type |
Method Name |
---|---|
ImageResult |
doSuperResolution(Frame frame, IVisionCallback cb) Performs text super-resolution processing and returns ImageResult . |
Constructor |
---|
public TxtImageSuperResolution (Context context) Constructs an object instance. |
Name |
Description |
---|---|
context |
Activity or application instance. |
Method |
---|
public ImageResult doSuperResolution(Frame frame, IVisionCallback cb) Performs text super-resolution processing and returns ImageResult . |
Name |
Description |
---|---|
frame |
Image data. Frame supports encapsulation of bitmap image data only, and will subsequently support image data in the form of file path or ByteBuffer. The resolution of the input image cannot be greater than 13.4 MP, and the width and height cannot be less than 506 pixels. |
cb |
Callback function object. Currently, asynchronous processing is not supported.
|
Type |
Description |
---|---|
ImageResult |
Processed image information, where the Bitmap object can be obtained by using the getBitmap method of the class of the returned result. |