Detection of infection in crops using Whatsapp images for farmers
![](http://www.weebly.com/weebly/images/file_icons/rtf.png)
crop_infection_sysnosis_.docx | |
File Size: | 507 kb |
File Type: | docx |
Code
clc
close all
clear all
%I=imread('C:\Phone storage\WhatsApp\Media\WhatsApp Images\IMG-20151101-WA0007.jpg')
%number of images in the folder
%for 1:1:n
I=imread('IMG-20151101-WA0007.jpg')
figure()
imshow(I);
[m,n,z]=size(I);
I1=zeros(m,n,z);
I1(:,:,2)=I(:,:,2);
R=I(:,:,1);
figure()
imshow(R);
figure()
imshow(uint8(I1));
R=uint8(R);
I=imcrop(R,[150,150,150,150]);
figure()
imshow(I);
for J=0.2:0.01:0.4
I1=im2bw(I,J);
figure()
imshow(I1);
end
close all
clear all
%I=imread('C:\Phone storage\WhatsApp\Media\WhatsApp Images\IMG-20151101-WA0007.jpg')
%number of images in the folder
%for 1:1:n
I=imread('IMG-20151101-WA0007.jpg')
figure()
imshow(I);
[m,n,z]=size(I);
I1=zeros(m,n,z);
I1(:,:,2)=I(:,:,2);
R=I(:,:,1);
figure()
imshow(R);
figure()
imshow(uint8(I1));
R=uint8(R);
I=imcrop(R,[150,150,150,150]);
figure()
imshow(I);
for J=0.2:0.01:0.4
I1=im2bw(I,J);
figure()
imshow(I1);
end