A method for correcting a bad pixel in an image sensor, comprising: a first step of creating and storing a plurality of image frames of an object, the frames being divided into a plurality of blocks; a second step of scanning pixels in the image frames and detecting a bad pixel in the image frames; and a third step of storing, when the bad pixel is detected in the image frames, a bad block location including the bad pixel in a memory; characterized in that the method comprises a fourth step of correcting the luminance value of a bad block by calling the bad block location stored in the memory in an image capture operation, wherein the fourth step comprises a th step of dividing the bad block located in the image frame into a plurality of sub-blocks by calling the bad block according to the bad block location stored in the memory, each one of the sub-blocks is constituted by one pixel in the bad block; a th step of detecting the luminance value of a first sub-block; a th step of calculating the difference ratio of the current sub-block, wherein the difference ratio of the sub-block is calculated by {The absolute value of the difference between the luminance value of the previous sub-block sub_B(x-1) and the luminance value of the current sub-block sub_Bx}/{The maximum luminance value of the previous sub-block sub_B(x-1) and the current sub-block sub_B x}, wherein the previous sub-block (sub_B(x-1))is the sub-block located on the left of the current sub-block (sub_Bx) and wherein at the first iteration of the th step, the current sub-block is the first sub-block (sub_B1) of said plurality of sub-blocks, the previous sub-block (sub_B(x-1)) is a sub-block of another block located on the left of the first sub-block (sub_B1) and the luminance value of the previous sub-block is detected; a th step of comparing the difference ratio of the current sub-block with a predetermined threshold ratio and substituting the luminance value of the current sub-block by the luminance value of the previous sub-block if the difference ratio of the current sub-block is greater than a predetermined threshold ratio; and a th step of setting the next sub-block located on the right of the current sub-block as the current sub-block, detecting the luminance value of the current sub-block and repeating the th step and the th step until the th step is performed with the last sub-block of said plurality of sub-blocks set as the current sub-block. a first step of creating and storing a plurality of image frames of an object, the frames being divided into a plurality of blocks; a second step of scanning pixels in the image frames and detecting a bad pixel in the image frames; and a third step of storing, when the bad pixel is detected in the image frames, a bad block location including the bad pixel in a memory; characterized in that the method comprises a fourth step of correcting the luminance value of a bad block by calling the bad block location stored in the memory in an image capture operation, wherein the fourth step comprises a th step of dividing the bad block located in the image frame into a plurality of sub-blocks by calling the bad block according to the bad block location stored in the memory, each one of the sub-blocks is constituted by one pixel in the bad block; a th step of detecting the luminance value of a first sub-block; a th step of calculating the difference ratio of the current sub-block, wherein the difference ratio of the sub-block is calculated by {The absolute value of the difference between the luminance value of the previous sub-block sub_B(x-1) and the luminance value of the current sub-block sub_Bx}/{The maximum luminance value of the previous sub-block sub_B(x-1) and the current sub-block sub_B x}, wherein the previous sub-block (sub_B(x-1))is the sub-block located on the left of the current sub-block (sub_Bx) and wherein at the first iteration of the th step, the current sub-block is the first sub-block (sub_B1) of said plurality of sub-blocks, the previous sub-block (sub_B(x-1)) is a sub-block of another block located on the left of the first sub-block (sub_B1) and the luminance value of the previous sub-block is detected; a th step of comparing the difference ratio of the current sub-block with a predetermined threshold ratio and substituting the luminance value of the current sub-block by the luminance value of the previous sub-block if the difference ratio of the current sub-block is greater than a predetermined threshold ratio; and a th step of setting the next sub-block located on the right of the current sub-block as the current sub-block, detecting the luminance value of the current sub-block and repeating the th step and the th step until the th step is performed with the last sub-block of said plurality of sub-blocks set as the current sub-block.