- Home /
Camera lagging and flipped
Hi I have a code that will activate the camera and aswell decoding a qr code. But they camera is really laggy and also flipped 270* . Haven't find any good solutions, please help. Don't know if it has something about the decoding rate, but not sure how to slow it down.
The code is :
private void OnGUI() { GUI.DrawTexture(screenRect, camTexture, ScaleMode.ScaleToFit); // drawing the camera on screen try { IBarcodeReader barcodeReader = new BarcodeReader();
var result = barcodeReader.Decode(camTexture.GetPixels32(),
camTexture.width, camTexture.height);
Best regards, Philip
Comment