Skip to main content
10 events
when toggle format what by license comment
May 17, 2018 at 16:43 comment added SquareOne @CJoe Yes, for the second simplification i thought that the inheritance would work and it did. My post here is not responding your question as it modifies the images but I will leave it just in case.
May 17, 2018 at 14:31 comment added CJoe thanks for points :) ; And your (first) simplification is great! No Transpositions, perfect. And its the way of writing code I have to learn. Thanks. The second simplification seems very interesting to me - does it meanthat the sub-images have inherited the Magnification property from the original Image, so TextRecognize did not have any influence? Then it starts to fit together to me. Thanks a lot.
May 17, 2018 at 13:17 comment added SquareOne @CJoe +1 you can vote now
May 17, 2018 at 12:39 comment added SquareOne @CJoe Actually there is even a more simple solutio, just after importing do : image = Image[image, Magnification -> 1] !
May 17, 2018 at 12:26 comment added SquareOne @CJoe You actually found the solution ! In Image the option Magnification is set to Automatic by default. You should self answer to your own post (it's OK to do so). A more simple way to do it : dsChars /. x_Image :> Image[x, Magnification -> 1]
May 17, 2018 at 10:57 comment added CJoe unfortunately I cannot mark your answer as usefull as it tells me that I dont have enough reputation point
May 17, 2018 at 10:50 comment added CJoe anyway thank you SquareOne
May 17, 2018 at 10:48 comment added CJoe In the meantime I have found following solution: Transpose[{Image[dsChars[[All, 1]], Magnification -> 1],dsChars[[All, 2]]}] // Dataset , but both your and mine solutions seem to me too complicated; there must be something to say directly to TextRecognize how the result should be presented or to say to the dataset table (printout) what properties should have the images in first row.
May 17, 2018 at 10:42 comment added CJoe yes, such appearance of sub-images I was searching for
May 17, 2018 at 10:39 history answered SquareOne CC BY-SA 4.0