if not ALT_OVERLAY:
# Scale the image and belnd it with the framebuffer
fir.draw_ir(img,ir)
else:
# Create a secondary image and then blend into the frame buffer.
extra_fb.clear()
fir.draw_ir(extra_fb, ir, alpha=256)
img.blend(extra_fb, alpha=128)
什么意思?没看懂,你具体要做什么?