Analysis in R: “exifr” package to obtain EXIF data of photos

RAnalytics
スポンサーリンク

This is an introduction to a package for collecting EXIF data for photos. It is useful for photo management because it can capture the camera model and the conditions under which the photo was taken.

Perl installation is required for use on Windows. Please download and install “Strawberry Perl” from the link below before installing the package.

Strawberry Perl:http://strawberryperl.com/

Package version is 0.3.2. Checked with R version 4.2.2.

スポンサーリンク

Install Package

Run the following command.

#Install Package
install.packages("exifr")

Example

See the command and package help for details.

#Loading the library
library("exifr")

#Seleceimage file 
library("tcltk")
OpenFile <- paste0(as.character(tkgetOpenFile(title = "image file ",
                                              filetypes = '{"image file " {".*"}}',
                                              initialfile = c("*.*"))))

#Get EXIF of image file:exifr command
#Information to be obtained:exiftoolargs option;
#Get camera model as an example
ExifData <- as.data.frame(t(exifr(OpenFile, exiftoolargs = NULL)))
V1
SourceFile /test.JPG
Model                              E-M5MarkII

#CSV output of acquired data to a working directory
write.csv(ExifData, "ExifData.csv")

I hope this makes your analysis a little easier !!

Amazon audibleの登録の紹介

プライム会員限定で2024年7月22日まで3か月無料体験キャンペーン開催中です。無料体験後は月額1,500円で聞き放題です。なお、聞き放題対象外の本はAudible会員であれば非会員価格の30%引きで購入することが可能です。

Amazon audibleはプロのナレーターが朗読した本をアプリで聞くことができるサービスで、オフライン再生も可能です。通勤や作業のお供にAmazon audibleのご登録はいかがでしょうか。

・AmazonのAudible

https://amzn.to/3L4FI5o

Copied title and URL