ESP32Cam BarCode Scanner

If someone know how to get the camera snapshot and convert the image into a 2d array, maybe I can try to develop a library and post it later.(Since I can get only black and white colors from the barcode).