Object detection to identify an object in an image

I want to determine the contents of the image, what I need to do is find if the image is a shirt or pants.

Img 1  enter image description here

Img 2  enter image description here

If I provided an image of a T-shirt, then based on a comparison of the form, I need a result so that this image has a T-shirt.

What I tried was a cascade of Harr, but it did not give the correct conclusion. and this size size is too tall

+4
source share
4 answers

The thing you are looking for is this. this will help you solve the problem.

https://github.com/bikz05/bag-of-words

+2
source

, , , , BOW ( ), , SVM .

+ + (, SURF + SVM). ...

, ( ). : - Codeproject

, , +, , - , , , .

+1

, , , .

, , , . , , , 2 . , .

, , , .

EDIT: matlab:

function ratio=TwoRunFeature(I)
    g=rgb2gray(I);
    b=imdilate(g<255,ones(5));
    d=abs(imfilter(b,[-1 1]));
    runs=sum(d,2);
    ratio=sum(runs==2) / sum(runs==1);
end

function TestImage(name)
    I=imread(name);
    fprintf('%s: %f\n',name,TwoRunFeature(I));
end

TestImage('pants.jpg');
TestImage('shirt.jpg');

pants.jpg: 1.947977
shirt.jpg: 0.068627

. , .

+1

, . , ( ) - uni-. , , . . . : 1. , . 2. , , . 3. : - , . 4. . = IBinary - IBinary 5. : 4x4 6. Shape: . 7. , . 8. , . 9- SVM

+1
source

All Articles