Your inputs are simply bad quality the first was a dummy so undetectable your second is so poor even a human is always going to be better than OCR.
As a Human I see the numbers easily. as 0000003531 but OCR simply is not that good at numbers without higher pixel contrast and density, the bar code is corrupted by scanning with anti-alias greyscale.
However with a good system the combination should function ?