Cardiotocography (CTG) is generally provided on printed traces, and digitization of CTG signal is important for forthcoming assessments. In this paper, a new algorithm relies on the box-counting method is offered for the digitization of the CTG signals from CTG printed traces. The introduced algorithm inputs the CTG printed traces and outputs the digital fetal heart rate (FHR) and uterine contraction (UC) signals. The proposed method initially extracts the CTG signal image and gridded background image. Retrieving of the FHR and UC signals on the gridded background disrupts the background grids. So, we employ an algorithm to fix the degraded lines in the gridded background. After the line fixing operation, the boxes in the horizontal and vertical axes are counted for determining the calibration parameters. A set of specific equations are used to determine the calibration parameters. The signal extraction is performed on by red channel thresholding of input CTG printing images. An open-access CTG intrapartum database comprises 552 samples is used in the experiment. As a result, the average correlation coefficients of FHR and UC signals are 0.9811 +/- 0.0251 and 0.9905 +/- 0.0126, respectively. (C) 2019 Elsevier B.V. All rights reserved.