[Xiaomi Yi] Get exif information directly in camera

Discussion in 'Yi Action Camera' started by luckylz, Jan 21, 2016.

  1. luckylz

    luckylz Active Member

    Messages:
    414
    Likes Received:
    106
    Country:
    China
    I'd like to share my program (written in C) can get some exif information from Xiaomi Yi photo(jpg) / thumbnail(thm), directly run in camera.

    Limitations:
    1.Only works for jpg & thm on Xiaomi Yi camera, others camera jpg format is not same;
    2.As I only need the ISO & ShutterSpeed, there are only 2 values read from photos.

    If you know how make bash script, that can be easily adapter to your own script.

    Installations:
    1. download & unzip the file getexif to your micro sd card;
    2. enabled camera's telnet mode.

    How to use:
    1. connect to telnet;
    2. just type the command getexif.
    Code:
    USAGE: getexif <JPEGFILE>
    Code:
    Example 1:
    /tmp/fuse_d/getexif /tmp/fuse_d/DCIM/100MEDIA/YDXJ0032.jpg
    
    result:
    <ISO>142</ISO><EXP>1/480</EXP>
    
    Example 2:
    cd /tmp/fuse_d/
    ./getexif /tmp/fuse_d/DCIM/100MEDIA/YDXJ0033.THM
    
    result:
    <ISO>393</ISO><EXP>1/60</EXP>
    getexif.png

    Have fun !
     

    Attached Files:

    Last edited: Jan 21, 2016
    reaper7 likes this.
  2. reaper7

    reaper7 New Member

    Messages:
    18
    Likes Received:
    6
    Country:
    Poland
    Dash Cam:
    XiaomiYi(23L)
    very nice!

    btw - can You tell me which sdk You are using for compilation xiaomi yi programs?
    any links?
     
  3. luckylz

    luckylz Active Member

    Messages:
    414
    Likes Received:
    106
    Country:
    China
    this one? arm-linux-gcc
     
  4. AirKite

    AirKite New Member

    Messages:
    14
    Likes Received:
    11
    Country:
    Russian Federation
    Hm... what difference beetwen jpg other camera and yi???
     
  5. luckylz

    luckylz Active Member

    Messages:
    414
    Likes Received:
    106
    Country:
    China
    There are 2 kinds of exif definition --- motorola & intel format --- xiaoyi camera exif is motorola format.
     
  6. AirKite

    AirKite New Member

    Messages:
    14
    Likes Received:
    11
    Country:
    Russian Federation
    @luckylz , thanks! You can say more about this??? You use any libs or you can show how you get exif info from clear C# ???
     
  7. luckylz

    luckylz Active Member

    Messages:
    414
    Likes Received:
    106
    Country:
    China
  8. AirKite

    AirKite New Member

    Messages:
    14
    Likes Received:
    11
    Country:
    Russian Federation
    @luckylz , thank's for answer... But i don't know what i need way... I mean, my skill in C very low for that... And i need see example, step how read anything metadata from files, without .NET etc...

    I need it for my project...
     
    Last edited: Feb 14, 2016
Loading...

Share This Page