'How can I scan only the rectangle area with Camerax?

I am making a barcode reader with Jetpack compose and zxing library. I just want to have the rectangle area analyzed. Anyone have an idea about this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source