It is a method of how to start automatic focusing. Automatic focus when digital image adopt setting is starting. Then every M frame carries through approaches as follows. Obtain the statistical value of current frame: AF_datachange[i]; Bases on AF_datachange of every window of current frame, count the number of AF_datachange that threshold above 1 of the windows which weight is not 0: win_count; If win_count above 2, make need_focus=need_focus+1; If need_focus above 3, start automatic focusing, obtain statistical value of corresponding frame AF_data2[i], make: AF_data1[i]=AF_data2[i]. Or don't start the operation of automatic focusing. |