CrazyEngineers
  • junior_james

    junior_james

    MemberNov 13, 2011

    how to extract data/information from a image?

    hi, i am doing my final year project(signature recognition),i planted to use image acquisition to capture the signature, and i am new to matlab,after i capture an image from image acquisition tool in matlab, how should i examine the image?i am taking the image in grays colour then i dont know what should i do next....


    anyone can help me with some useful info please..


    regards;
    james
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • PraveenKumar Purushothaman

    MemberDec 21, 2011

    If you are working on PHP, you can use the exif_read_data function. It reads the EXIF headers from JPEG or TIFF. For eg:
    <?php
    echo "test1.jpg:<br />\n";
    $exif exif_read_data('tests/test1.jpg''IFD0');
    echo 
    $exif===false "No header data found.<br />\n" "Image contains headers<br />\n";
     
    $exif exif_read_data('tests/test2.jpg'0true);
    echo 
    "test2.jpg:<br />\n";
    foreach (
    $exif as $key => $section) {
        foreach (
    $section as $name => $val) {
            echo 
    "$key.$name$val<br />\n";
        }
    }
    ?>
    The output will be:
    test1.jpg:
    No header data found.
    test2.jpg:
    FILE.FileName: test2.jpg
    FILE.FileDateTime: 1017666176
    FILE.FileSize: 1240
    FILE.FileType: 2
    FILE.SectionsFound: ANY_TAG, IFD0, THUMBNAIL, COMMENT
    COMPUTED.html: width="1" height="1"
    COMPUTED.Height: 1
    COMPUTED.Width: 1
    COMPUTED.IsColor: 1
    COMPUTED.ByteOrderMotorola: 1
    COMPUTED.UserComment: Exif test image.
    COMPUTED.UserCommentEncoding: ASCII
    COMPUTED.Copyright: Photo (c) M.Boerger, Edited by M.Boerger.
    COMPUTED.Copyright.Photographer: Photo (c) M.Boerger
    COMPUTED.Copyright.Editor: Edited by M.Boerger.
    IFD0.Copyright: Photo (c) M.Boerger
    IFD0.UserComment: ASCII
    THUMBNAIL.JPEGInterchangeFormat: 134
    THUMBNAIL.JPEGInterchangeFormatLength: 523
    COMMENT.0: Comment #1.
    COMMENT.1: Comment #2.
    COMMENT.2: Comment #3end
    THUMBNAIL.JPEGInterchangeFormat: 134
    THUMBNAIL.Thumbnail.Height: 1
    THUMBNAIL.Thumbnail.Height: 1
    Hope this helps! 😀
    Are you sure? This action cannot be undone.
    Cancel
  • macjone

    MemberFeb 27, 2014

    junior_james
    hi, i am doing my final year project(signature recognition),i planted to use image acquisition to capture the signature, and i am new to matlab,after i <a href="https://www.rasteredge.com/how-to/vb-net-imaging/twain-basic-acquisition/" target="_blank" rel="nofollow noopener noreferrer">VB.NET TWAIN: VB.NET Code to Create TWAIN Basic Image Acquisition Tool</a> tool in matlab, how should i examine the image?i am taking the image in grays colour then i dont know what should i do next....
    Have you thought of using OCR to extract text from image? It works great.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register