1. A flame detection method based on image processing comprising following steps: (a) capturing images of a predetermined area; (b) detecting number of flame pixels of each image; (c) generating a value according to the number of flame pixels of each image; and (d) comparing values generated from images captured within a predetermined time interval to generate a comparison result.