detecting edges in individual frames