Monitoring cell shortening allows studying contractile activity in cardiac myocytes. This article proposes an application for this purpose based on Canny algorithm. Cell edge is tracked with little noise even from videos with low resolution. Myocyte spontaneous activity (SA) was monitored after defibrillator-like shocks. SA was greater after stronger shocks and may be an index of cell damage.