tencent cloud

Feedback

Performance Issue Troubleshooting

Last updated: 2024-07-05 14:16:07
    If you find that the beauty filter processing takes a considerable amount of time, you can troubleshoot using the following methods.

    Step 1: Check the resolution of the image being processed by the beauty filter.

    Reason: Resolution refers to the number of pixels in an image or video, typically represented by width and height. Beauty filter processing involves complex algorithmic computations and treatments on the image, such as skin smoothing, whitening, and removing blemishes. Therefore, the size of the resolution directly affects the duration of beauty filter processing.
    A higher resolution means more pixels in the image, requiring more computations and processing. This results in a longer duration needed for beauty filter processing. Conversely, a lower resolution means fewer pixels in the image, needing less computational effort and therefore, a shorter duration for beauty filter processing.
    Additionally, beauty filter processing often involves treating multiple areas of the image, such as face detection and facial feature point localization. In images with a higher resolution, more pixels and more complex image details need to be processed, which may require more time to complete.
    Therefore, it is necessary to balance the resolution and beauty effects to achieve satisfactory processing speed and image quality.

    Step 2: Check the log switch.

    When the log is set to Log.DEBUG, the beauty filter will print a large amount of log information during processing, thus affecting performance. So, it is advised to set it to LOG.WARN when releasing the application package.

    Step 3: 3D/GAN stickers are resource-intensive and may cause lag on low-end devices. Whether to enable them can be determined based on the actual situation.

    Step 4: If experiencing screen lag, check if the push stream frame rate is set too low. It is recommended to adjust it to above 24 fps.

    If your application is not smooth even without the Beauty Filter, it is necessary to check the camera frame rate in the RTC module. You may improve the smoothness of the video by appropriately increasing the camera frame rate.
    If you are using TRTC, you can refer to this document for frame rate adjustment.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support