picture 2013-05-28

58
ピクチャ

Upload: kmiyako

Post on 19-Jun-2015

428 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Picture 2013-05-28

ピクチャ

Page 2: Picture 2013-05-28

ピクチャ

Page 3: Picture 2013-05-28

ピクチャ

メタデータの読み書き

Page 4: Picture 2013-05-28

ピクチャ

メタデータの読み書き

キーワード検索

Page 5: Picture 2013-05-28

ピクチャ

メタデータの読み書き

キーワード検索

ユーティリティ

Page 6: Picture 2013-05-28

メタデータ写真に関する情報

Page 7: Picture 2013-05-28

メタデータTIFF (Tagged Image File Format)

artist model

compression orientation

copyright photometric interpretation

date time resolution unit

document name software

host computer XResolution

image description YResolution

make

Page 8: Picture 2013-05-28

メタデータEXIF (Exchangeable Image File Format)

aperture pixel x dimension

brightness pixel y dimension

contrast saturation

date time digitized sharpness

date time original white balance

exposure time

flash

ISO speed ratings

Page 9: Picture 2013-05-28

メタデータGPS (Global Positioning System)

altitude longitude

dest latitude longitude deg

dest longitude status

differential version ID

DOP

img direction

latitude

latitude deg

Page 10: Picture 2013-05-28

メタデータIPTC (International Press

Telecommunications Council)

byline object name

category province state

city scene

contact special instructions

copyright notice star rating

credit subject reference

headline writer editor

keywords

Page 11: Picture 2013-05-28

メタデータIPTC (International Press

Telecommunications Council)

byline object name

category province state

city scene

contact special instructions

copyright notice star rating

credit subject reference

headline writer editor

keywords

Page 12: Picture 2013-05-28

ファイルタイプ

PICTURE CODEC LIST ($codecs;$names)

.pict .svg .jp2 .ico .tif.tga .gif .pdf .psd .sgi.4pct .bmp .icns .png .jpg.exr

Page 13: Picture 2013-05-28

ファイルタイプ

PICTURE CODEC LIST ($codecs;$names)

.pict .svg .jp2 .ico .tif.tga .gif .pdf .psd .sgi.4pct .bmp .icns .png .jpg.exr .emf .wdp

Page 14: Picture 2013-05-28

ファイルタイプ

PICTURE CODEC LIST ($codecs;$names)

.pict .svg .jp2 .ico .tif.tga .gif .pdf .psd .sgi.4pct .bmp .icns .png .jpg.exr .emf .wdp

メタデータの読み書き

Page 15: Picture 2013-05-28

メタデータの読み書き

GET PICTURE METADATA ($picture;TIFF Make;$make)

Canon

NIKON CORPORATION

CASIO COMPUTER CO.,LTD

Page 16: Picture 2013-05-28

メタデータの読み書き

GET PICTURE METADATA ($picture;TIFF Model;$model)

Canon

NIKON CORPORATION

CASIO COMPUTER CO.,LTDEX-Z57

Canon PowerShot S57

NIKON D59

Page 17: Picture 2013-05-28

メタデータの読み書き

GET PICTURE METADATA ($picture;EXIF Date Time Original;$taken)

Canon

NIKON CORPORATION

CASIO COMPUTER CO.,LTDEX-Z57

Canon PowerShot S57

NIKON D59

2003-12-14T12:01:44Z

2011-07-22T14:13:25Z

2008-01-21T05:24:02Z

Page 18: Picture 2013-05-28

メタデータの読み書きCanon

NIKON CORPORATION

CASIO COMPUTER CO.,LTDEX-Z57

Canon PowerShot S57

NIKON D59

03/12/14

11/07/22

08/01/21

C_DATE ($date)C_TIME ($time)GET PICTURE METADATA ($picture;\EXIF Date Time Original;$date;\EXIF Date Time Original;$time)

12:01:44

14:13:25

05:24:02

Page 19: Picture 2013-05-28

メタデータの読み書き

John Smith

Dave Jones

Billy Blathy

ARRAY TEXT ($contacts;0)GET PICTURE METADATA ($picture;IPTC Contact;$contacts)

Page 20: Picture 2013-05-28

メタデータの読み書き

$dom:=DOM Create XML Ref ("EXIF")GET PICTURE METADATA ($picture;"EXIF";$dom)

<EXIF ColorSpace="1" CompressedBitsPerPixel="1" Contrast="0" CustomRendered="0" DateTimeDigitized="2011-07-22T09:30:45Z" DateTimeOriginal="2011-07-22T09:30:45Z" DigitalZoomRatio="1" ExifVersion="0221" ExposureBiasValue="0" ExposureMode="0" ExposureProgram="0" ExposureTime="0.00625" FNumber="6.3" Flash="24" FlashPixVersion="0100" FocalLenIn35mmFilm="27" FocalLength="18" GainControl="0" ISOSpeedRatings="200" LightSource="0" MaxApertureValue="3.6" MeteringMode="5" PixelXDimension="1024" PixelYDimension="680" Saturation="0" SceneCaptureType="0" SensingMethod="2" Sharpness="0" SubjectDistRange="0" UserComment="" WhiteBalance="0"/>

Page 21: Picture 2013-05-28

メタデータの読み書き

$dom:=DOM Parse XML source ("exif.xml")SET PICTURE METADATA ($picture;"EXIF";$dom)

<EXIF ColorSpace="1" CompressedBitsPerPixel="1" Contrast="0" CustomRendered="0" DateTimeDigitized="2011-07-22T09:30:45Z" DateTimeOriginal="2011-07-22T09:30:45Z" DigitalZoomRatio="1" ExifVersion="0221" ExposureBiasValue="0" ExposureMode="0" ExposureProgram="0" ExposureTime="0.00625" FNumber="6.3" Flash="24" FlashPixVersion="0100" FocalLenIn35mmFilm="27" FocalLength="18" GainControl="0" ISOSpeedRatings="200" LightSource="0" MaxApertureValue="3.6" MeteringMode="5" PixelXDimension="1024" PixelYDimension="680" Saturation="0" SceneCaptureType="0" SensingMethod="2" Sharpness="0" SubjectDistRange="0" UserComment="" WhiteBalance="0"/>

Page 22: Picture 2013-05-28

メタデータIPTC (International Press

Telecommunications Council)

byline object name

category province state

city scene

contact special instructions

copyright notice star rating

credit subject reference

headline writer editor

keywords

Page 23: Picture 2013-05-28

メタデータIPTC (International Press

Telecommunications Council)

byline object name

category province state

city scene

contact special instructions

copyright notice star rating

credit subject reference

headline writer editor

keywords

Page 24: Picture 2013-05-28

キーワード検索演算子: キーワード %

QUERY ([商品];[商品]画像%"猫")QUERY SELECTION ([商品];[商品]画像%"猫")QUERY BY FORMULA ([商品];[商品]画像%"猫")QUERY SELECTION BY FORMULA ([商品];[商品]画像%"猫")

対象: IPTC Keywords

Page 25: Picture 2013-05-28

演算子: キーワード %対象: IPTC Keywords

キーワード検索

QUERY ([商品];[商品]画像%"猫")QUERY SELECTION ([商品];[商品]画像%"猫")QUERY BY FORMULA ([商品];[商品]画像%"猫")QUERY SELECTION BY FORMULA ([商品];[商品]画像%"猫")

Page 26: Picture 2013-05-28

演算子: キーワード %対象: IPTC Keywords

キーワード検索

QUERY ([商品];[商品]画像%"猫")QUERY SELECTION ([商品];[商品]画像%"猫")QUERY BY FORMULA ([商品];[商品]画像%"猫")QUERY SELECTION BY FORMULA ([商品];[商品]画像%"猫")

SET INDEX ([商品]画像;Keywords Index)

ARRAY POINTER ($fields;1)

$fields{1}:=->[商品]画像

CREATE INDEX ([商品]; $fields;Keywords Index;"商品画像キーワード")

DELETE INDEX ("商品画像キーワード")DELETE INDEX (->[商品]画像)

Page 27: Picture 2013-05-28

キーワード検索READ PICTURE FILE ("images.jpeg";$picture)

CREATE RECORD ([商品])

[商品]画像:=$picture

ARRAY TEXT ($keywords;2)$keywords{1}:="猫"$keywords{2}:="ねこ"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)

SAVE RECORD ([商品])

QUERY ([商品];[商品]画像%"猫")

Page 28: Picture 2013-05-28

キーワード検索

DESCRIBE QUERY EXECUTION (True)$path:=Get last query path (Description in Text Format)

キーワードインデックスは必須ではない

Page 29: Picture 2013-05-28

キーワード検索

DESCRIBE QUERY EXECUTION (True)$path:=Get last query path (Description in Text Format)

[index : FullText : 商品.画像 ] = ねこ (1 record found in 0 ms)

キーワードインデックスは必須ではない

Page 30: Picture 2013-05-28

キーワード検索

DESCRIBE QUERY EXECUTION (True)$path:=Get last query path (Description in Text Format)

商品.画像 contains ねこ (1 record found in 62 ms)

キーワードインデックスは必須ではない

Page 31: Picture 2013-05-28

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords)

# キーワード1 我が家の猫です2 名前はポチです

Page 32: Picture 2013-05-28

# キーワード1 我が家の猫です2 名前はポチです

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords)

Page 33: Picture 2013-05-28

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords)

# キーワード1 我2 が3 家4 の5 猫6 です7 名前8 は9 ポチ10 です

Page 34: Picture 2013-05-28

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords;*)

*

# キーワード1 我2 が3 家4 の5 猫6 です7 名前8 は9 ポチ10 です

Page 35: Picture 2013-05-28

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords;*)

*

# キーワード1 我2 が3 家4 の5 猫6 です7 名前8 は9 ポチ

Page 36: Picture 2013-05-28

キーワード

ARRAY TEXT ($keywords;1)$keywords{1}:="我が家の猫です。名前はポチです。"

SET PICTURE METADATA ([商品]画像;IPTC Keywords;$keywords)GET PICTURE KEYWORDS ([商品]画像;$keywords)

# キーワード1 我が家2 猫3 名前4 ポチ

Page 37: Picture 2013-05-28

ユーティリティ

Page 38: Picture 2013-05-28

$equal:=Equal pictures ($picA;$picB;$picDiff)

Page 39: Picture 2013-05-28

$digest:=Generate digest ($picData;MD5 Digest)

e2bfa9f5408cab9d2bb5387e0fdfde15

df1273d3911455c1c63ae65a1d3905ea

Page 40: Picture 2013-05-28

$digest:=Generate digest ($picData;SHA1 Digest)

26a8c59de084e48e9b822c24e18398cd3ebf3bad

5fc387fb5f9eed7f8147dde9dd6122bba8ab2eab

Page 41: Picture 2013-05-28

CONVERT PICTURE ($picture;{codec})

4D Picture 4PCT 3349 3349JPEG JPEG 1368 886PNG PNG 2266 2176BMP BMP 4490 4490GIF GIF 730 732TIFF TIFF 4493 2571

Mac Picture PICT 3397 3377PDF 3097

JPEG-2000 1348ICNS

Photoshop 6817ICOTGA 4475SGI

OpenEXR 3300EMF 5792WDP 1576

Page 42: Picture 2013-05-28

COMBINE PICTURES ($picA;$picB;Superimposition;$picC)

Page 43: Picture 2013-05-28

COMBINE PICTURES ($picA;$picB;Vertical concatenation;$picC)

Page 44: Picture 2013-05-28

COMBINE PICTURES ($picA;$picB;Horizontal concatenation;$picC)

Page 45: Picture 2013-05-28

TRANSFORM PICTURE ($picture;{operator})

Page 46: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Translate;100;$offsetV)

Page 47: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Translate;200;$offsetV)

Page 48: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Translate;300;$offsetV)

Page 49: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Reset)

Page 50: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Scale;0.8;$scaleV)

Page 51: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Scale;0.6;$scaleV)

Page 52: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Scale;0.6;$scaleV)

Page 53: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Reset)

Page 54: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Flip horizontally)

Page 55: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Flip vertically)

Page 56: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Fade to grey scale)

Page 57: Picture 2013-05-28

TRANSFORM PICTURE ($picture;Crop;100;100;300;300)

Page 58: Picture 2013-05-28

ピクチャ