PNG数据块到image dimensions

robinrobin MemberPosts:100Guru
I am trying to get RM to determine the size of images it is looking at when applying machine learning. All of the images we deal with are PNG and the PNG specifications are located here:https://www.w3.org/TR/PNG/#4Concepts.PNGImage

Looking at the ASCI character for the RapidMiner logo located atrapidminer-logo-retina.pngthe first 24 ASCII characters are
âPNG IHDRôí
The image size is contained in the first chunk after IHDR

I use this process to extract the ASCII characters for the image size:

         https://1xltkxylmzx3z8gd647akcdvov-wpengine.netdna-ssl.com/wp-content/uploads/2016/06/rapidminer-logo-retina.png"/>                        
上述过程的结果
ôí
How would you recommend converting this into image height and width?

Tagged:

Best Answer

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3387年RM Data Scientist
    Solution Accepted
    Hi@robin,
    honestly - i would use groovy here.. It's so straight forward. See attached example.

    BR,
    Martin



































    - Head of Data Science Services at RapidMiner -
    Dortmund, Germany
    yyhuang robin

Answers

  • yyhuangyyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:363RM Data Scientist
    edited March 2019
    Hi@robin,

    Thanks for sharing the use case with the community. I suggest you use the IMMI image mining extension.
    To install IMMI, first download from herehttp://www.burgsys.com/image-analysis-software.php

    Here is my result for extracting metadata about image info using IMMI 7.0 under RapidMiner 9.2







                    https://1xltkxylmzx3z8gd647akcdvov-wpengine.netdna-ssl.com/wp-content/uploads/2016/06/rapidminer-logo-retina.png"/>                                                             
    YY
    MartinLiebig
  • yyhuangyyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:363RM Data Scientist
    Bravo Dr@mschmitz, how neat and smart your solution is!
  • robinrobin MemberPosts:100Guru
    Thank you@mschmitz! That is a perfect and simple solution.
    sgenzer
Sign InorRegisterto comment.