I am using tessnet2 to extract the sentence in this img file. When i call the tessnet2 func using bmp it fails (it returns "~" as my sentence) and when i use bmp2 instead it works. WTF, why?
The reason why i am am doing FromFile is because i am grabbing the image from my server and using Image.FromStream to directly load instead of saving to a file. Why are these two different and what can i do to get the tessnet2 func to work as bmp2 does?
img = System.Drawing.Image.FromFile(imgUrl);
var bmp = new System.Drawing.Bitmap(img);
var bmp2 = new System.Drawing.Bitmap(imgUrl);