How to realize the function of identifying QR code by small program long press

how does Mini Program add the function of long press to identify the QR code? long press the picture and pop up the following operation menu
clipboard.png
is it necessary to open any settings? ask for advice

.
Mar.07,2021

if that's right, this is the option that Wechat automatically displays when he recognizes that the QR code is included in the picture. There is no need to turn on


in my understanding, only the QR code or Mini Program code in this picture has the recognition option in the pop-up menu, but the ordinary picture does not. This is Wechat's own function.
just like sending a picture with a QR code in the chat interface can also be recognized.


I have encountered this problem before. Do you have a QR code in your picture? As long as you take it, you will use the Mini Program wx.previewImage preview. If you press the button for a long time, it will appear


Mini Program can only recognize the Mini Program code, can you recognize the QR code?


can only recognize Mini Program's QR code

Menu