iPhoneアプリの作成方法について

18 views (last 30 days)
竣 齊藤
竣 齊藤 on 8 Oct 2021
Commented: 竣 齊藤 on 10 Oct 2021
はじめに、PCのカメラを用いて成分表示が英語で記載されているものを撮影を行います。撮影した成分表示の画像の中に、添付した画像のwordの列の英単語があったとき、日本語訳とその日本語訳のイラストの画像を表示するプログラムを作成しました。
cam = webcam();
videoFrame = snapshot(cam);
frameSize = size(videoFrame);
videoPlayer = vision.VideoPlayer('Position', [100 100 [frameSize(2), frameSize(1)]+30]);
runLoop = true;
while runLoop
videoFrame = snapshot(cam);
results = ocr(videoFrame);
Ninshikimoji = lower(results.Words);
Ninshikiwaku = results.WordBoundingBoxes;
Jisho = readtable('allergy.xlsx','ReadRowNames',true);
word = categorical(Jisho.word);
Mininshiki = blanks(0);
for n = 1:size(Ninshikimoji,1)
if any(word == Ninshikimoji{n})
Shoukai = Jisho{Ninshikimoji{n},:};
videoFrame = insertObjectAnnotation(videoFrame,'rectangle',Ninshikiwaku(n,:),Shoukai{:},'font','Yu Gothic Bold');
x = Ninshikiwaku(n,1); y = Ninshikiwaku(n,2); w = Ninshikiwaku(n,3); h = Ninshikiwaku(n,4);
logo = imresize(imread([Shoukai{:} '.png']),0.3);
VideoFrame(y:(y+size(logo,1)-1),(x+w):(x+w+size(logo,2)-1),:) = logo;
else
Mininshiki = [Mininshiki ' ' Ninshikimoji{n}];
end
end
step(videoPlayer, videoFrame);
runLoop = isOpen(videoPlayer);
end
clear cam;
release(videoPlayer);
今回ご教授して頂きたい点は、上記プログラムのiPhoneアプリの作成方法です。
もし、iPhoneアプリの作成が厳しい場合は、Androidアプリの作成方法を教えていただきたいです。
ご教授の程よろしくお願い致します。

Accepted Answer

Kenta
Kenta on 8 Oct 2021
こちらなどいかがでしょうか。
こちらの作成の経験はないですが、ひとまず最も簡単な例からはじめて少しずつレベルアップさせていくのがよいのではないでしょうか。
  1 Comment
竣 齊藤
竣 齊藤 on 10 Oct 2021
回答して頂きありがとうございます。
URLの内容を参考にさせて頂きます。

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Mobile in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!