A spark ignition internal combustion engine performs ignition within a fixed ignition crank angle range. The method and system include receiving a digital image of the mask, and automatically detecting edges of the mask in the image using pattern recognition. The present invention avoids the re-request process of the base station when the handover request fails, and can improve the handover success ratio.