Why are the labels rotated?
I am working on code in which the program must detect whether the spring is inserted correctly in the handle or not. I labeled all the pictures. when I run the code, I see that the label is rotated and not like the original picture. I also noticed that it doesn’t pull the Spring_incorrect label into the image I’m also interested in the classNames part. if I write something completely different inside, it still pulls the label.
PS: how can i see all the pictures? it jsut pulls the first one.
dataDir = fullfile(‘C:UsersandraDesktopslike vrc’);
imDir = fullfile(dataDir,’nepravilno’);
pxDir = fullfile(‘C:UsersandraDesktoptestLabelingProjectGroundTruthProjectPixelLabelData’);
imds = imageDatastore(imDir);
classNames = ["Correct" "Spring" "incorrect" "Spring_incorrect"];
pixelLabelID = [1 2 3 4];
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
I = read(imds);
C = read(pxds);
categories(C{1})
B = labeloverlay(I,C{1});
figure
imshow(B)I am working on code in which the program must detect whether the spring is inserted correctly in the handle or not. I labeled all the pictures. when I run the code, I see that the label is rotated and not like the original picture. I also noticed that it doesn’t pull the Spring_incorrect label into the image I’m also interested in the classNames part. if I write something completely different inside, it still pulls the label.
PS: how can i see all the pictures? it jsut pulls the first one.
dataDir = fullfile(‘C:UsersandraDesktopslike vrc’);
imDir = fullfile(dataDir,’nepravilno’);
pxDir = fullfile(‘C:UsersandraDesktoptestLabelingProjectGroundTruthProjectPixelLabelData’);
imds = imageDatastore(imDir);
classNames = ["Correct" "Spring" "incorrect" "Spring_incorrect"];
pixelLabelID = [1 2 3 4];
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
I = read(imds);
C = read(pxds);
categories(C{1})
B = labeloverlay(I,C{1});
figure
imshow(B) I am working on code in which the program must detect whether the spring is inserted correctly in the handle or not. I labeled all the pictures. when I run the code, I see that the label is rotated and not like the original picture. I also noticed that it doesn’t pull the Spring_incorrect label into the image I’m also interested in the classNames part. if I write something completely different inside, it still pulls the label.
PS: how can i see all the pictures? it jsut pulls the first one.
dataDir = fullfile(‘C:UsersandraDesktopslike vrc’);
imDir = fullfile(dataDir,’nepravilno’);
pxDir = fullfile(‘C:UsersandraDesktoptestLabelingProjectGroundTruthProjectPixelLabelData’);
imds = imageDatastore(imDir);
classNames = ["Correct" "Spring" "incorrect" "Spring_incorrect"];
pixelLabelID = [1 2 3 4];
pxds = pixelLabelDatastore(pxDir,classNames,pixelLabelID);
I = read(imds);
C = read(pxds);
categories(C{1})
B = labeloverlay(I,C{1});
figure
imshow(B) image processing, matlab MATLAB Answers — New Questions