[Xiaomi Yi] Get exif information directly in camera

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Reaction score
107
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 !
 

Attachments

  • getexif.zip
    6.5 KB · Views: 12
Last edited:
very nice!

btw - can You tell me which sdk You are using for compilation xiaomi yi programs?
any links?
 
this one? arm-linux-gcc
 
There are 2 kinds of exif definition --- motorola & intel format --- xiaoyi camera exif is motorola format.
 
@luckylz , thanks! You can say more about this??? You use any libs or you can show how you get exif info from clear C# ???
 
@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:
Back
Top