1. A method for generating a barcode, the method comprising: obtaining an operation identification corresponding to a specific operation; obtaining an image characteristic of a surrounding image of an area of a barcode to be generated; and generating the barcode based on a plurality of items including the operation identification and the image characteristic.