Classification of Clothes from Two Dimensional Optical Images

Similar documents
Content Based Image Retrieval Using Color Histogram

SCIENCE & TECHNOLOGY

Extraction and Recognition of Text From Digital English Comic Image Using Median Filter

Wheeler-Classified Vehicle Detection System using CCTV Cameras

Colored Rubber Stamp Removal from Document Images

Detection of License Plate using Sliding Window, Histogram of Oriented Gradient, and Support Vector Machines Method

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Image Extraction using Image Mining Technique

Study Impact of Architectural Style and Partial View on Landmark Recognition

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Augmented Reality using Hand Gesture Recognition System and its use in Virtual Dressing Room

Vision Review: Image Processing. Course web page:

A VIDEO CAMERA ROAD SIGN SYSTEM OF THE EARLY WARNING FROM COLLISION WITH THE WILD ANIMALS

Colour Profiling Using Multiple Colour Spaces

Classification of Digital Photos Taken by Photographers or Home Users

An Efficient Method for Landscape Image Classification and Matching Based on MPEG-7 Descriptors

Real-Time Face Detection and Tracking for High Resolution Smart Camera System

Sabanci-Okan System at ImageClef 2013 Plant Identification Competition

IMAGE PROCESSING TECHNIQUE TO COUNT THE NUMBER OF LOGS IN A TIMBER TRUCK

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

Linear Gaussian Method to Detect Blurry Digital Images using SIFT

Student Attendance Monitoring System Via Face Detection and Recognition System

Malaysian Car Number Plate Detection System Based on Template Matching and Colour Information

Wavelet-based Image Splicing Forgery Detection

Spatial Color Indexing using ACC Algorithm

Chapter 17. Shape-Based Operations

Scrabble Board Automatic Detector for Third Party Applications

Automatic Electricity Meter Reading Based on Image Processing

Image Forgery Detection Using Svm Classifier

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

Impulse noise features for automatic selection of noise cleaning filter

Differentiation of Malignant and Benign Masses on Mammograms Using Radial Local Ternary Pattern

Mandeep Singh Associate Professor, Chandigarh University,Gharuan, Punjab, India

MICA at ImageClef 2013 Plant Identification Task

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Evaluation of Image Segmentation Based on Histograms

Face Detection System on Ada boost Algorithm Using Haar Classifiers

Vehicle Detection using Images from Traffic Security Camera

An Efficient Method for Vehicle License Plate Detection in Complex Scenes

Colour Based People Search in Surveillance

Biometrics Final Project Report

Liangliang Cao *, Jiebo Luo +, Thomas S. Huang *

A SURVEY ON HAND GESTURE RECOGNITION

Real-Time Tracking via On-line Boosting Helmut Grabner, Michael Grabner, Horst Bischof

Real Time Word to Picture Translation for Chinese Restaurant Menus

QUALITY CHECKING AND INSPECTION BASED ON MACHINE VISION TECHNIQUE TO DETERMINE TOLERANCEVALUE USING SINGLE CERAMIC CUP

Method for Real Time Text Extraction of Digital Manga Comic

Making PHP See. Confoo Michael Maclean

Robust Hand Gesture Recognition for Robotic Hand Control

Authenticated Automated Teller Machine Using Raspberry Pi

Multiple Kernels for Object Detection. Andrea Vedaldi Varun Gulshan Manik Varma Andrew Zisserman

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

EFFICIENT ATTENDANCE MANAGEMENT SYSTEM USING FACE DETECTION AND RECOGNITION

Portable Facial Recognition Jukebox Using Fisherfaces (Frj)

Iris Recognition using Histogram Analysis

Computer Vision. Howie Choset Introduction to Robotics

A Comparison of Histogram and Template Matching for Face Verification

Modified Skin Tone Image Hiding Algorithm for Steganographic Applications

COMP 776 Computer Vision Project Final Report Distinguishing cartoon image and paintings from photographs

Eyes n Ears: A System for Attentive Teleconferencing

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

Imaging Process (review)

Integrated Digital System for Yarn Surface Quality Evaluation using Computer Vision and Artificial Intelligence

Implementation of License Plate Recognition System in ARM Cortex A8 Board

Automatic Car License Plate Detection System for Odd and Even Series

Automatics Vehicle License Plate Recognition using MATLAB

Hand Gesture Recognition System Using Camera

Face Recognition Based Attendance System with Student Monitoring Using RFID Technology

Geometric Feature Extraction of Selected Rice Grains using Image Processing Techniques

arxiv: v1 [cs.cv] 13 Aug 2017

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

Speed and Accuracy Improvements in Visual Pattern Recognition Tasks by Employing Human Assistance

Urban Feature Classification Technique from RGB Data using Sequential Methods

Text Extraction from Images

A Training Based Approach for Vehicle Plate Recognition (VPR)

Area Extraction of beads in Membrane filter using Image Segmentation Techniques

Multi-Image Deblurring For Real-Time Face Recognition System

Research on Hand Gesture Recognition Using Convolutional Neural Network

Comparison of Two Pixel based Segmentation Algorithms of Color Images by Histogram

Bogdan Smolka. Polish-Japanese Institute of Information Technology Koszykowa 86, , Warsaw

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

CS231A Final Project: Who Drew It? Style Analysis on DeviantART

Face detection, face alignment, and face image parsing

Quality Control of PCB using Image Processing

EFFICIENT COLOR IMAGE INDEXING AND RETRIEVAL USING A VECTOR-BASED SCHEME

Performance Evaluation of Edge Detection Techniques for Square Pixel and Hexagon Pixel images

A New Framework for Color Image Segmentation Using Watershed Algorithm

Segmentation Plate and Number Vehicle using Integral Projection

Follower Robot Using Android Programming

OPEN CV BASED AUTONOMOUS RC-CAR

License Plate Localisation based on Morphological Operations

RECOGNITION OF RECAPTURED IMAGES USING PHYSICAL BASED FEATURES

Research on Pupil Segmentation and Localization in Micro Operation Hu BinLiang1, a, Chen GuoLiang2, b, Ma Hui2, c

A NOVEL APPROACH FOR CHARACTER RECOGNITION OF VEHICLE NUMBER PLATES USING CLASSIFICATION

A Review : Fast Image Retrieval Based on Dominant Color Feature

Face Detector using Network-based Services for a Remote Robot Application

Manuscript Investigation in the Sinai II Project

Transcription:

Human Journals Research Article June 2017 Vol.:6, Issue:4 All rights are reserved by Sayali S. Junawane et al. Classification of Clothes from Two Dimensional Optical Images Keywords: Dominant Colour; Image Feature Extraction; HSV; Scale Invariant Feature Transform (SIFT); Radial Basis Function (RBF). N. D. Kulkarni 1, A. M. Mete 2, Sayali S. Junawane* 3 1 Professor, Computer Department, VIT, Pune. 2 Professor, Computer Department VIT, Pune. 3 Student, Computer Engg. Department, VIT, Pune. Submission: 7 June 2017 Accepted: 12 June 2017 Published: 25 June 2017 www.ijsrm.humanjournals.com ABSTRACT In modern society, people usually dress according to the occasion and purpose to look and feel good. Clothing is also means of communication to reflect social status, lifestyle and membership of a particular culture. In today s world, people prefer to shop online from the comfort of their couch. To effectively search for the clothes in the online world, you need to apply various filters according to your need. To make use of these filters, cloths must be classified into various classes beforehand which is a very tedious manual process. In this paper, we propose a means to automate the classification process of the clothes. The broad classification of the clothes will be based on their dominant color, pattern printed/stitched on the cloth, neck type and sleeve type. Dominant color is a compact and efficient descriptor which employs representative colors to characterize the color information of an image. A method for extracting dominant color of an image is proposed in this paper. Determining the texture pattern of an image is a task performed by many. Different features are extracted for pattern recognition using algorithms like Scale Invariant Feature Transform (SIFT), pattern matching etc. The existing method of pattern classification uses support vector machine with RBF kernel in weka for classification. A geometric method for determining the pattern on the cloth is proposed in this paper. This method provides more flexibility as the same extracted feature set can be reused for various patterns. To determine the neck or collar type and the sleeve type Viola-Jones object detection framework is used. In this paper, we have discussed the performance of the trained the viola-jones cascade classifier to identify the neck and collar type as well as sleeve type.

INTRODUCTION Clothing is very important in our daily life as it represents the lifestyle, culture and social status. Many contexts can be inferred from the type of clothes. However, recognizing the category of clothes is a challenging problem in computer vision. The main aim of this paper is to facilitate the ease of shopping to customer and to automate the administrator s work. Various researcher has developed methods to classify various parameters of the clothes into different category. Wisarut Surakarin [1] implemented classification of clothing with weighted surf and local binary pattern. Our focus here is to classify the clothes on the above 4 parameters which are most useful while shopping clothes online. The disadvantage with the existing system is that performance of SURF based algorithm is not good when illumination/light changes. We use the histogram method to find the Dominant color of an image. Geometric Method is used to determine the pattern of the cloth. The proposed method provides more flexibility. Object Detection is used to identify the sleeves and collar from an image. Object detection is a method which is responsible for identifying the existence of an object of a certain class. An existence of this object can be considered as a method of image processing to identify the object from the digital image. Viola-jones HAAR like features can be used to detect the sleeves and collar from an image. Cascade Classifier: The cascade classifier consists of list stages, and each stage consists of list of weak learners. The system detects objects by moving a window over the image. Each stage of the classifier labels the specific region defined by the current location of the window as either positive or negative if the classifier labels the specific region as, positive meaning that an object was found or negative means that the specified object was not found in the image. If the labeling gives a negative result, then the classification of this region is complete and the window moved to the next location. If the labeling gives a positive result then the region moves to the next stage of classification. The classifier yields a final verdict of positive, when all the stages, including the last one, yield a result, saying that the object is found in the image. If the actual object is classified as a non-object, then the classification of that branch stops, with no way to correct the mistake made, therefore each stage of the cascade must have a low false positive rate. However, if the n th stage classifies the non-object as actually 93

being the object, then this mistake can be fixed in n+1-th and subsequent stages of the classifier, thus each can have a high false positive rate [8]. Fig.1 Stages of the cascade classifier Training Cascade: In the training of the cascade, the first necessary bit was to gather the images, then create samples based on them and finally start the training process. The OpenCV train cascades utility is an improvement over its predecessor in several aspects, one of them being that train cascades allows the training process to be multithreaded, which in turns reduces the time it takes to finish the training of the classifier. This multithreaded approach is only applied during the precalculation step, however, so the overall time to train is still quite significant, resulting in hours, days and weeks of training time. Since the training process needs a lot of positive and negative input images, which may not always be present, then a way to circumvent this is to use a tool for the creation of such positive images. OpenCV has a built in mode which allows creating more positive images with distorting the original positive image and applying a background image. However, it does not allow to do this for multiple images. Another important aspect to consider is the number of positives and negatives. When executing the command to start training, it is required to enter the number of positive and negative images that will be used. Special care should be taken with these variables, since the number of positive images here denotes the number of positive images to be used in each step of the classifier training, which means that if one were to specify to use all images on every step, then at one point the training process would end in an error. This is due to the 94

way the training process is set up. The process needs to use many different images on every stage of the classification and if one were to give all to the first stage, then there would be no images left over for the second stage, thus resulting in an error message. The training can result in many types of unwanted behavior Most common of these is either overtraining or undertraining of the classifier.an undertrained classifier will most likely output too many false positive since the training process has not had time to properly determine which actually positive and which is not. An output may look similar to image shown below. Fig.2 Result of undertrained classifier. The opposite effect is observed if too many stages are trained, which means that the classification process may determine that even positive in picture are negative ones, resulting in empty result set. The best result obtained in this work is depicted on image below Fig.3 Best solution obtained 95

Related Work: Many researchers have proposed techniques for cloth search and retrieval A. Nodari et al. [3] and Cushen and Nixon [4] proposed content-based image retrieval to query image from online shopping in mobile application. There is less work on clothing recognition and classification. S. Miura et al. [5] proposed dividing clothing image into five areas which include shoes, bottom, top inner, top outer and search clothing image by same area detection. X. Yuan et al. [6] present integration of SIFT-LBP based on Bag of Features to achieve the superior performance of accuracy score. S. Banerji et al. [7] In this work, we do not focus on clothing image retrieval. We are improving classification performance of clothing by being more selective in the subarea of the clothes, determining the Dominant color, recognizing the patterns, Determining the Sleeves and collar type. Proposed Methodology: The paper is about to classify the clothes based on the Dominant color, to recognize the pattern of the cloth., to determine the sleeves type and collar type, we are also trying to automate the administrator s process. Block diagram of proposed method is shown. Fig.4 Framework of Proposed System Dominant Color algorithm: Classifying the clothes based on the Dominant color can be done in following way: Get the image from user then convert the RGB image into HSV format we need to convert the RGB image to HSV because R, G, B components of an objects color in a digital image are all correlated with the amount of light hitting the object. Image description in terms of those 96

components makes object discrimination difficult. Description in terms of hue/lightness/saturation are often more relevant. Then you need to detect the foreground of an image. You need to use this foreground as a mask while drawing the histogram. You need to check the bin content to determine the perfect Dominant color. Table 1-Color check Algorithm: Initialize the Low hue= {0, 20 160} Upper hue= {19, 39...179} Step 1: Read the image. Step 2: Convert the RGB image to HSV. Step 3: Apply the inrange function to HSV image. inrange(hsv,cv::scalar(hmin.smin,vmin),cv::scalar(hmax,smax,vmax),outimg) output of this function is a 8bit grayscale image which is black and white in color (i.e. binary image). Step 4: Apply threshold to the output of inrange function and then use this as a mask while drawing the histogram. Step 5: Compute and Draw the Histogram for Hue, Saturation, Value. For Hue, For Saturtion For value 97

Hist size= {9} Hist size= {16} Hist size= {10} Ranges= {0,179} Ranges= {0,255} Ranges= {0,255} Bool uniform=true; Bool accumulate =False; Mat h_hist; calchist(&hsv_planes[0],1,0,mask,h_hist,1,&histsize,&ranges,uniform,accumulate) Step 6: Iterate over bins and find the bin having highest bin count and then find the lower and upper hue of that max bin. Step 7: Again apply the inrange function to the highest hue identified from above. Step 8: Perform BITWISE_AND operation. Bitwise and (mask, output_of inrage, final output); Step 9: Repeat step 5 to 8 for saturation and value. Step 10: Finally you get Dominant color for the given image. Pattern recognition algorithm: In proposed method, we are recognizing the pattern using the geometric method. The patterns we are detecting are Lines, Checks, Plain or any Irregular patterns. We apply the canny edge detection algorithm on the image then we apply the HoughLinesP on the detected edges. The HoughLinesP Finds line segments in a binary image using the probabilistic Hough transform. Then we apply the simple geometric method to detect the lines and then determine the pattern. Algorithm: Step 1: Read the image Step 2: Apply the canny edge detection algorithm. 98

Step 3: Apply HoughLinesP. Step 4: Iterate over the lines. Read the four points of the line(x1, y1,x2,y2) Step 5: compute the following values. Tempx = abs(x2-x1) Tempy = abs (y2-y1) Step 6: If tempx is equal to zero or if it is less than tempy then the line is vertical If tempy is equal to zero or if it is less than tempx then the line is horizontal Step 7: Iterate over the horizontal and vertical line and check weather lines are intersecting Viola-Jones cascade algorithm for sleeves and Collar Detection: The viola-jones cascade classifier is used to detect the Sleeves and collar from an image. Steps followed: Step 1: Collect the database (positive/negative images). Step 2: Crop and mark positive images Step 3: Create a vector of positive images. Step 4: Perform HAAR training. Step 5: Create a XML file. Experimental Result: Performance analysis of classifier: 99

Table 2-Performance of classifier No. of Accuracy(Dominant Accuracy(Pattern) Samples Color) 30 90% 86% 60 91.66% 90% 90 92.22% 91% 120 93.33% 91.66% 150 94% 92.66% Fig.5 Classifier Analysis (Dominant Color) Fig.6 Classifier Analysis (Pattern) 100

Table 3-Evaluation of classifier No. of trained Images No. of tested Images Correctly classified Misclassified Accuracy 100 50 46 4 92.00% CONCLUSION Classification of clothes from two dimensional optical images is used in online shopping to provide user the ease of shopping. We also automate the administrator s process. In this paper, we proposed a method to determine the dominant color, pattern of the image and to detect the sleeve type and collar (neck) type from an image. In proposed method, dominant color is detected on the basis of Histogram. Pattern is detected using the geometric method and the sleeves and collar can be detected using viola-jones haar cascade object detection. REFERENCES 1. Wisarut Surakarin and Prabhas Chongstitvatana Classification of Clothing with Weighted SURF and Local Binary Patterns. 2. Aiguo LI, Xiyi BAO Extracting Image Dominant Color Features Based on Region Growing, 2010 International Conference on Web Information Systems and Mining 3. [A. Nodari, M. Ghiringhelli, A. Zamberletti, M. Vanetti, S. Albertini, and I. Gallo, "A mobile visual search application for content based image retrieval in the fashion domain," in Content-Based Multimedia Indexing (CBMI), 2012 10th International Workshop on, 2012, pp. 1-6. 4. G. A. Cushen and M. S. Nixon, "Mobile visual clothing search," in Multimedia and Expo Workshops (ICMEW), 2013 IEEE International Conference on, 2013, pp. 1-6. 5. S. Miura, T. Yamasaki, and K. Aizawa, "SNAPPER: Fashion Coordinate Image Retrieval System," in Signal-Image Technology & Internet-Based Systems (SITIS), 2013 International Conference on, 2013, pp. 784-789. 6. X. Yuan; J. Yu; Z. Qin; and T. Wan, "A SIFT-LBP IMAGE RETRIEVAL MODEL BASED ON BAG-OF- FEATURES," Proceedings of the International Conference on Image Processing (ICIP 2011), pp. 1061-1064, 2011. 7. S. Banerji, A. Sinha, and C. Liu, "A New Bag of Words LBP (BoWL) Descriptor for Scene Image Classification," in Computer Analysis of Images and Patterns. vol. 8047, R. Wilson, E. Hancock, A. Bors, and W. Smith, Eds., ed: Springer Berlin Heidelberg, 2013, pp. 490-497. 8. T. M. Inc., Train a Cascade Object Detector, [Online]. Available: http://www.mathworks.se/help/ vision/ug/train-a-cascadeobject-detector.html#btugex8. [Accessed Nov 2014]. 9. C. Robin, Train your own OpenCV HAAR classifier, [Online]. Available: http://codingrobin.de/2013/07/22/trainyour-own-opencv-haarclassifier.html. [Accessed December 2014]. 101