i made a code to store height and weight of a person from two images and stored it in excel sheet showing Serial number, height and weight columns. i want to store the data for x persons. please help me with the code.
1 次查看(过去 30 天)
显示 更早的评论
clc
clear all
close all
a=imread('height.jpg');
i=rgb2gray(a);
imshow(i);
ht=ocr(i);
h=[ht.Text];
b=imread('weight.jpg');
j=rgb2gray(b);
imshow(j);
wt=ocr(j);
w=[wt.Text];
for n=1:1
Name = n;
end
p=[{'Subject' ,'WEIGHT(in kg)' ,'HEIGHT(in cm)'};];
T=[p;{Name,h,w,}];
filename=('heightweight.xlsx');
xlswrite(filename,T);
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!