Here, we analyzed magnetic elements of the solar active regions (ARs) observed in the line-of-sight magnetograms (the 6173 Å Fe I line) recorded with the Solar Dynamics Observatory (SDO)/Helioseismic and Magnetic Imager (HMI). The Yet Another Feature Tracking Algorithm (YAFTA) was employed to extract the statistical properties of these features (e.g. filling factor, magnetic flux, and lifetime) within the areas of 180 ′′ × 180 ′′ inside the flaring AR (NOAA 12443) and the non-flaring AR (NOAA 12446) for 3 to 5 November 2015 and for 4 to 6 November 2015, respectively. The mean filling factor of polarities was obtained to be about 0.49 for the flaring AR; this value was 0.08 for the non-flaring AR. Time series of the filling factors of the negative and positive polarities for the flaring AR showed anti-correlation (with the Pearson value of -0.80); while for the non-flaring AR, there was the strong positive correlation (with the Pearson value of 0.95). A power-law function was fitted to the frequency distributions of flux (F), size (S), and lifetime (T). Power exponents of the distributions of flux, size, and lifetime for the flaring AR were obtained to be about -2.36, -3.11, and -1.70, respectively; these values of exponents for the non-flaring AR were found to be about -2.53, -3.42, and -1.61, respectively. The code detected a magnetic element with the maximum flux of 23.54 × 10 20 Mx, and the maximum value of the size was found to be about 300 Mm 2 . The most long-lived patch in the flaring AR was belonged to an element with the lifetime of 2208 minutes. It was revealed that S, T, and F for patches in the flaring AR follow empirical scaling relations as S ∝ F 0.66 , S ∝ T 0.32 , and F ∝ T 0.48 , respectively; For appeared patches in the non-flaring AR, these relations were obtained as S ∝ F 0.64 , S ∝ T 0.23 and F ∝ T 0.37 , respectively. The comparisons indicated that values of correlations between parameters of F and T, and also, S and T for the flaring AR, are more than those of the non-flaring AR, and the quite-Sun (QS). The scaling law relation between the flux growth rate of positive polarities and their size revealed a strong correlation of more than 0.7 in both ARs. Sun: flares -Sun: photosphere -Sun: magnetic fields -methods: data analysis -methods: statistical -techniques: miscellaneous