Abstract: Disclosed in embodiments of the present application are a QR code generation method and apparatus for a terminal device. The terminal device comprises a camera. A specific implementation mode of the method comprises: receiving a QR code generation instruction input by a user, wherein the QR code generation instruction comprises a QR code information; starting a camera, and generating a camera real-time photographing picture; and generating a real-time picture displaying the QR code based on the QR code information and the generated camera real-time photographing picture. The implementation mode enables the user to clearly distinguish whether the QR code is an originally generated QR code, thereby improving the security of the QR code.