ECG-I2S: a method for extracting heartbeat cycle and numerical signals from ECG captured images