[Xiaomi Yi] Get exif information directly in camera

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Likes
106
Country
China
#1
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

Last edited:

reaper7

New Member
Joined
Nov 26, 2015
Messages
18
Likes
6
Country
Poland
Dash Cam
XiaomiYi(23L)
#2
very nice!

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

luckylz

Active Member
Joined
Apr 8, 2015
Messages
414
Likes
106
Country
China
#5
There are 2 kinds of exif definition --- motorola & intel format --- xiaoyi camera exif is motorola format.
 

AirKite

New Member
Joined
Oct 21, 2015
Messages
14
Likes
11
Country
Russian Federation
#6
@luckylz , thanks! You can say more about this??? You use any libs or you can show how you get exif info from clear C# ???
 

AirKite

New Member
Joined
Oct 21, 2015
Messages
14
Likes
11
Country
Russian Federation
#8
@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:

Similar threads