While you are doing your shopping, you scan your products. At the exit, you scan a QR code to end the shopping, you pay, and off you go.
The huge advantage, apart from no queues, is that you don't have to remove stuff from your cart, making it way, way quicker.
You can have a “random” check where everything will be scanned again by a real cashier.