2009年8月23日日曜日

iPhoneで撮影した写真のExifデータについて

PHPの関数を利用し、iPhoneで撮影した写真のExifデータについて調査した。

"カメラ"は現在の位置情報を利用しますよろしいですか?→許可しない


[0] => FileName
[1] => FileDateTime
[2] => FileSize
[3] => FileType
[4] => MimeType
[5] => SectionsFound
[6] => COMPUTED
[7] => Make
[8] => Model
[9] => Orientation
[10] => XResolution
[11] => YResolution
[12] => ResolutionUnit
[13] => DateTime
[14] => YCbCrPositioning
[15] => Exif_IFD_Pointer
[16] => THUMBNAIL
[17] => ExposureTime
[18] => FNumber
[19] => ISOSpeedRatings
[20] => ExifVersion
[21] => DateTimeOriginal
[22] => DateTimeDigitized
[23] => ComponentsConfiguration
[24] => FocalLength
[25] => UserComment
[26] => FlashPixVersion
[27] => ColorSpace
[28] => ExifImageWidth
[29] => ExifImageLength
[30] => Sharpness

[FileName] => IMG_0019.jpg
[FileDateTime] => 1250958039
[FileSize] => 1033692
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF
[COMPUTED] => Array
(
[html] => width="2048" height="1536"
[Height] => 1536
[Width] => 2048
[IsColor] => 1
[ByteOrderMotorola] => 1
[ApertureFNumber] => f/2.8
[UserComment] => {
AEAverage = 194;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 1;
AGC = 257;
AWBBGain = 157;
AWBGGain = 64;
AWBRGain = 175;
AWBStable = 1;
AccelerometerDeltas = "(0.0328 0.0460 0.0375) @ 0.0200";
ApertureValue = 3;
BrightnessValue = 3.62343664588204;
CurrentFocusPosition = 1;
ExposureBias = 0;
ExposureTime = 0.03333328695652174;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "22.69 in [0.00, 0.00]";
FocusMode = 1;
FocusPeakSumArray = (
52971,
53927,
54679,
55485,
133586
);
FocusScan = "(0,41.03) (29,44.86) (56,38.76) (81,32.17) 40.7s ago";
FocusScoresArray = (
1027972,
1064337,
1091574,
1125079,
3958325
);
FocusWindow = "350/300 300x400";
FullyExposed = 1;
ISOSpeedRating = 70;
NoiseReduction = "S:4 C:8 Y:0";
OneFrameAEMode = 0;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "27.67 in [0.00, 0.00]";
PreviousFocusScan = "(0,19.72) (29,22.01) (56,19.61) (81,26.14) (105,19.83) (127,20.71) (149,13.58) (169,13.23) 42.3s ago";
SNR = 36;
SensorID = 13904;
Sharpness = 9;
ShutterSpeedValue = 4.906892602837797;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:07:01 17:42:54";
DateTimeOriginal = "2009:07:01 17:42:54";
ExposureTime = 0.03333333333333333;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
70
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 1;
};
"{TIFF}" = {
DateTime = "2009:07:01 17:42:54";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[UserCommentEncoding] => ASCII
[Thumbnail.FileType] => 2
[Thumbnail.MimeType] => image/jpeg
)

[Make] => Apple
[Model] => iPhone
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[DateTime] => 2009:07:01 17:42:54
[YCbCrPositioning] => 1
[Exif_IFD_Pointer] => 172
[THUMBNAIL] => Array
(
[Compression] => 6
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 2422
[JPEGInterchangeFormatLength] => 7565
)

[ExposureTime] => 1/30
[FNumber] => 14/5
[ISOSpeedRatings] => 70
[ExifVersion] => 0221
[DateTimeOriginal] => 2009:07:01 17:42:54
[DateTimeDigitized] => 2009:07:01 17:42:54
[ComponentsConfiguration] => ?
[FocalLength] => 77/20
[UserComment] => ASCII???{
AEAverage = 194;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 1;
AGC = 257;
AWBBGain = 157;
AWBGGain = 64;
AWBRGain = 175;
AWBStable = 1;
AccelerometerDeltas = "(0.0328 0.0460 0.0375) @ 0.0200";
ApertureValue = 3;
BrightnessValue = 3.62343664588204;
CurrentFocusPosition = 1;
ExposureBias = 0;
ExposureTime = 0.03333328695652174;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "22.69 in [0.00, 0.00]";
FocusMode = 1;
FocusPeakSumArray = (
52971,
53927,
54679,
55485,
133586
);
FocusScan = "(0,41.03) (29,44.86) (56,38.76) (81,32.17) 40.7s ago";
FocusScoresArray = (
1027972,
1064337,
1091574,
1125079,
3958325
);
FocusWindow = "350/300 300x400";
FullyExposed = 1;
ISOSpeedRating = 70;
NoiseReduction = "S:4 C:8 Y:0";
OneFrameAEMode = 0;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "27.67 in [0.00, 0.00]";
PreviousFocusScan = "(0,19.72) (29,22.01) (56,19.61) (81,26.14) (105,19.83) (127,20.71) (149,13.58) (169,13.23) 42.3s ago";
SNR = 36;
SensorID = 13904;
Sharpness = 9;
ShutterSpeedValue = 4.906892602837797;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:07:01 17:42:54";
DateTimeOriginal = "2009:07:01 17:42:54";
ExposureTime = 0.03333333333333333;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
70
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 1;
};
"{TIFF}" = {
DateTime = "2009:07:01 17:42:54";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[FlashPixVersion] => 0100
[ColorSpace] => 1
[ExifImageWidth] => 2048
[ExifImageLength] => 1536
[Sharpness] => 1

"カメラ"は現在の位置情報を利用しますよろしいですか?→許可する


[0] => FileName
[1] => FileDateTime
[2] => FileSize
[3] => FileType
[4] => MimeType
[5] => SectionsFound
[6] => COMPUTED
[7] => Make
[8] => Model
[9] => Orientation
[10] => XResolution
[11] => YResolution
[12] => ResolutionUnit
[13] => DateTime
[14] => YCbCrPositioning
[15] => Exif_IFD_Pointer
[16] => GPS_IFD_Pointer
[17] => THUMBNAIL
[18] => ExposureTime
[19] => FNumber
[20] => ISOSpeedRatings
[21] => ExifVersion
[22] => DateTimeOriginal
[23] => DateTimeDigitized
[24] => ComponentsConfiguration
[25] => FocalLength
[26] => UserComment
[27] => FlashPixVersion
[28] => ColorSpace
[29] => ExifImageWidth
[30] => ExifImageLength
[31] => Sharpness
[32] => GPSLatitudeRef
[33] => GPSLatitude
[34] => GPSLongitudeRef
[35] => GPSLongitude
[36] => GPSTimeStamp
[37] => GPSImgDirectionRef
[38] => GPSImgDirection

[FileName] => IMG_0071.jpg
[FileDateTime] => 1250957731
[FileSize] => 1359931
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, GPS
[COMPUTED] => Array
(
[html] => width="2048" height="1536"
[Height] => 1536
[Width] => 2048
[IsColor] => 1
[ByteOrderMotorola] => 1
[ApertureFNumber] => f/2.8
[UserComment] => {
AEAverage = 203;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 4;
AGC = 2108;
AWBBGain = 208;
AWBGGain = 64;
AWBRGain = 123;
AWBStable = 1;
AccelerometerDeltas = "(0.0045 0.0106 0.0044) @ 0.0200";
ApertureValue = 3;
BrightnessValue = -0.929769668175927;
CurrentFocusPosition = 236;
ExposureBias = 0;
ExposureTime = 0.09983587826086956;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "7.69 in [7.19, 8.64]";
FocusMode = 0;
FocusPeakSumArray = (
15806,
16159,
16533,
16952,
68071
);
FocusScan = "(0,6.79) (34,6.67) (66,6.78) (95,6.61) (123,6.73) (149,6.78) (173,7.19) (195,7.65) (216,7.57) (236,7.71) (255,7.31) 2.2s ago";
FocusScoresArray = (
214043,
223806,
233388,
248338,
2862029
);
FocusWindow = "401/571 188x250";
FullyExposed = 0;
ISOSpeedRating = 605;
NoiseReduction = "S:22 C:12 Y:4";
OneFrameAEMode = 1;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "13.54 in [15.11, 18.04]";
PreviousFocusScan = "(0,13.82) (29,13.96) (56,13.91) (81,13.97) (105,13.90) (127,13.43) (149,14.08) (169,15.40) (188,15.84) (206,15.80) (223,16.17) (239,15.52) (255,14.33) 4.2s ago";
SNR = 23.27476625931243;
SensorID = 13904;
Sharpness = 7;
ShutterSpeedValue = 3.324297816225114;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:08:23 00:47:17";
DateTimeOriginal = "2009:08:23 00:47:17";
ExposureTime = 0.1;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
605
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 0;
};
"{TIFF}" = {
DateTime = "2009:08:23 00:47:17";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[UserCommentEncoding] => ASCII
[Thumbnail.FileType] => 2
[Thumbnail.MimeType] => image/jpeg
)

[Make] => Apple
[Model] => iPhone
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[DateTime] => 2009:08:23 00:47:17
[YCbCrPositioning] => 1
[Exif_IFD_Pointer] => 184
[GPS_IFD_Pointer] => 2462
[THUMBNAIL] => Array
(
[Compression] => 6
[Orientation] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 2738
[JPEGInterchangeFormatLength] => 6306
)

[ExposureTime] => 1/10
[FNumber] => 14/5
[ISOSpeedRatings] => 605
[ExifVersion] => 0221
[DateTimeOriginal] => 2009:08:23 00:47:17
[DateTimeDigitized] => 2009:08:23 00:47:17
[ComponentsConfiguration] => ?
[FocalLength] => 77/20
[UserComment] => ASCII???{
AEAverage = 203;
AELimitsReached = 0;
AEStable = 1;
AFStable = 1;
AFStatus = 4;
AGC = 2108;
AWBBGain = 208;
AWBGGain = 64;
AWBRGain = 123;
AWBStable = 1;
AccelerometerDeltas = "(0.0045 0.0106 0.0044) @ 0.0200";
ApertureValue = 3;
BrightnessValue = -0.929769668175927;
CurrentFocusPosition = 236;
ExposureBias = 0;
ExposureTime = 0.09983587826086956;
Fnumber = 2.8;
FocalLength = 3.85;
FocusBand = "7.69 in [7.19, 8.64]";
FocusMode = 0;
FocusPeakSumArray = (
15806,
16159,
16533,
16952,
68071
);
FocusScan = "(0,6.79) (34,6.67) (66,6.78) (95,6.61) (123,6.73) (149,6.78) (173,7.19) (195,7.65) (216,7.57) (236,7.71) (255,7.31) 2.2s ago";
FocusScoresArray = (
214043,
223806,
233388,
248338,
2862029
);
FocusWindow = "401/571 188x250";
FullyExposed = 0;
ISOSpeedRating = 605;
NoiseReduction = "S:22 C:12 Y:4";
OneFrameAEMode = 1;
Orientation = 6;
OverflowOccurred = 0;
PreviousFocusBand = "13.54 in [15.11, 18.04]";
PreviousFocusScan = "(0,13.82) (29,13.96) (56,13.91) (81,13.97) (105,13.90) (127,13.43) (149,14.08) (169,15.40) (188,15.84) (206,15.80) (223,16.17) (239,15.52) (255,14.33) 4.2s ago";
SNR = 23.27476625931243;
SensorID = 13904;
Sharpness = 7;
ShutterSpeedValue = 3.324297816225114;
ispDGain = 256;
sensorDGain = 256;
"{Exif}" = {
ColorSpace = 65535;
DateTimeDigitized = "2009:08:23 00:47:17";
DateTimeOriginal = "2009:08:23 00:47:17";
ExposureTime = 0.1;
FNumber = 2.8;
FocalLength = 3.85;
ISOSpeedRatings = (
605
);
PixelXDimension = 2048;
PixelYDimension = 1536;
Sharpness = 0;
};
"{TIFF}" = {
DateTime = "2009:08:23 00:47:17";
Make = Apple;
Model = iPhone;
XResolution = 72;
YResolution = 72;
};
}
[FlashPixVersion] => 0100
[ColorSpace] => 1
[ExifImageWidth] => 2048
[ExifImageLength] => 1536
[Sharpness] => 0
[GPSLatitudeRef] => N
[GPSLatitude] => Array
(
[0] => 35/1
[1] => 1829/100
[2] => 0/1
)

[GPSLongitudeRef] => E
[GPSLongitude] => Array
(
[0] => 136/1
[1] => 4693/100
[2] => 0/1
)

[GPSTimeStamp] => Array
(
[0] => 0/1
[1] => 46/1
[2] => 5030/100
)

[GPSImgDirectionRef] => T
[GPSImgDirection] => 3391/581

愛知県 名古屋市 35°11′N 136°54′E らしいのでそこから推測するに、
このデータから緯度35 18.29 0 経度136 46.93 0となった。果たして計算は合っているのか。

緯度経度を取得
こちらに入力してみたがずれている。

今回の目的はiPhoneで撮影した画像に位置情報が付与されているか確認する為であり、目的が果たせた。以前(5年前)はPHPでExif関数を用いて全ての要素を出力する事が出来なかったので大きな収穫であった。

2009年8月14日金曜日

バッテリー充電時間について

iPhone 3GSは電池容量が残り1%になると自動でシャットダウンします。
そこからFull充電まで何分かかるかを目視で調査しました。

※電源アダプタ及び、ケーブルはiPod 4Gのものを流用しています。条件は電源を入れたまま充電です。

Appleによると連続通話時間は3Gで最大5時間。300分です。

結果、100%になるまで約2時間15分かかりました。135分です。

300分÷135分は2.222…分です。1分間充電すれば約2分通話が可能です。
135分÷300分は0.45分です。1分通話したければ約0.45分(約27秒)充電すればよい。

ざっくり言うと、1分間はなすと、後で30秒充電する必要がある。

実際問題、充電時間と充電量は完全に正比例しないと思う。例えば10分通話したいので、5分充電すればいいとは言い切れない。

バッテリーの特性を知る必要があるが、私は専門ではないです。

まとめ
iPhone 3GSのFull充電には2時間15分ぐらいかかる。

2009年8月11日火曜日

SMSについて 情報整理

7月2日のブログの記事は、SMS/MMSの送信についてまとめました。前回も今回も全てホワイトプラン(i)についての説明です。
SMS MMSの扱われかた

受信についてはどうかというと、SMSは無料です。MMSについてはソフトバンク携帯・ディズニー・モバイル携帯については無料です。それ以外は有料です。
ホワイトプラン(i)

腑に落ちない記述がありますが下記も紹介しております。パケット定額フルが適用されるが、MMSはすべて有料であると読み取れます。
SMS/MMS

MMSの送受信可能な最大容量は300KBだそうです。
[メール]S!メール(MMS)とは何ですか?

※料金に関わる情報は一切責任を負えません。ご不明な点はソフトバンクへ直接お問い合わせお願いします。

2009年8月9日日曜日

iPhone のパケット料金について

この情報は正確でないかもしれませんのでご注意ください。一切責任を負えません。
日本でSoftBankのパケット定額フルを利用した場合です。海外でご利用になった場合は料金が異なります(定額対象外)ので、十分ご注意ください。


1パケット0.084円です。
1パケットは128バイトです。

例えば、100MBのデータの通信を行った場合は、
100MB×1024×1024=104857600バイトです。
定額を考慮しない料金は、

1、まず何パケットか計算
104857600バイト÷128バイト=819200パケット

2、パケット数に単価をかけます
819200×0.084円=68,812.8(約7万円)です。

計算間違いしているのではないかと、恐ろしくなる金額です。

1MBでも約700円です。少し重たいページ開いただけで700円。

でも、安心してください。パケット定額フルに加入していれば、上限を超える事はありません。
逆に、最低限の料金、例えば1,029円に抑えたい方は3Gの電波配下でWebページを開いては駄目です(笑)。添付を含まないメールぐらいにしないと、軽く超えます。Wi-Fiで接続可能であれば、もちろんその制限はありません。

--------------------
MySoftbankで確定前の料金の目安が見れますが、ドキッとすると思います。表示されるパケット料金は、パケット定額フルを考慮しない金額です。しかも、1パケット0.2円で計算してあります。

1:x=0.2:0.084
x=0.42

つまりパケット料金の表示目安の金額に0.42かけてください。そうすれば、請求されるおよその料金が分かります。

5,000円と表示されていれば0.42かけて、2,100円ということが分かります。プランにもよると思いますが、まだ定額の上限に達していませんね。


何でこんな事調べたのかといいますと、1,029円で抑えたいのです。3Gを生かしたまま、パケット通信だけを遮断する事は、メーカー標準の機能ではできません。裏技的な方法が2chなどで書いてありますが、サポート対象外になる恐れがあり、お勧めできません。

つまり、我慢大会なのです(涙)。私はこまめに機内モードにし、それからWi-FiをONにしてインターネットを利用しています。この間SMS/MMS・電話を受けたり掛けたりは出来ません。

パケット単価が高すぎでは?と思いつつ、SoftBankもぎりぎりの価格設定かもと思ったりしています。

繰り返しになりますが、この情報については一切責任を負えません。しかし、色々調べた結果なので参考になれば幸いです。

2009年8月1日土曜日

iPhone OS 3.0.1リリース

iPhone OS 3.0.1がリリースされました。SMSの脆弱性が修正されるようです。10分ほど時間を要しますので、時間があるときに行うと良いでしょう。アップデート時にケーブルを抜いたり、PCやiPhoneの電源を切った場合、最悪Apple社に送らないと直らない不具合が起きる可能性があります。これはファームウェアアップデート全般について言えることです。雷が多い季節ですので、停電に気をつけましょう。