원시데이터 수집 시스템
선정목록으로

Detection of Customer Interested Garments in Surveillance Video using Computer Vision

관련 패션 · (24) 패션(코오롱FnC)

기본 정보

저자
  1. Ijjina Earnest Paul
  2. Joshi, Aniruddha Srinivas
  3. Kanahasabai, Goutham
DOI
10.48550/arxiv.2503.00442
저널
arXiv (Cornell University)
발행년도
2025
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2503.00442
토픽
Textile materials and evaluations
OpenAlex ID
W6929303460

평가 내용

관련도
관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

One of the basic requirements of humans is clothing and this approach aims to identify the garments selected by customer during shopping, from surveillance video. The existing approaches to detect garments were developed on western wear using datasets of western clothing. They do not address Indian garments due to the increased complexity. In this work, we propose a computer vision based framework to address this problem through video surveillance. The proposed framework uses the Mixture of Gaussians background subtraction algorithm to identify the foreground present in a video frame. The visual information present in this foreground is analysed using computer vision techniques such as image segmentation to detect the various garments, the customer is interested in. The framework was tested on a dataset, that comprises of CCTV videos from a garments store. When presented with raw surveillance footage, the proposed framework demonstrated its effectiveness in detecting the interest of customer in choosing their garments by achieving a high precision and recall.

본문 22,268자

본문 펼치기
# Detection of Customer Interested Garments in Surveillance Video using Computer Vision Dr. Earnest Paul Ijjina <sup>_∗_</sup> Assistant Professor, Department of Computer Science and Engineering, National Institute of Technology Warangal, Telangana, India-506004 Email : <sup>_∗_</sup> iep@nitw.ac.in Aniruddha Srinivas Joshi <sup>_†_</sup>, Goutham Kanahasabai <sup>_‡_</sup> B.Tech., Department of Computer Science and Engineering, National Institute of Technology Warangal, Telangana, India-506004 Email : <sup>_†_</sup> aniruddha980@gmail.com, <sup>_‡_</sup> gauthamkanags@gmail.com II. RELATED WORKS AND LITERATURE _Abstract_ —One of the basic requirements of humans is clothing and this approach aims to identify the garments selected by customer during shopping, from surveillance video. The existing approaches to detect garments were developed on western wear using datasets of western clothing. They do not address Indian garments due to the increased complexity. In this work, we propose a computer vision based framework to address this problem through video surveillance. The proposed framework uses the Mixture of Gaussians background subtraction algorithm to identify the foreground present in a video frame. The visual information present in this foreground is analysed using computer vision techniques such as image segmentation to detect the various garments, the customer is interested in. The framework was tested on a dataset, that comprises of CCTV videos from a garments store. When presented with raw surveillance footage, the proposed framework demonstrated its effectiveness in detecting the interest of customer in choosing their garments by achieving a high precision and recall. _Index_ _Terms_ —Surveillance Video, Garments detection, Computer Vision I. INTRODUCTION The task of recognition of garments the customers are interested in, is a prerequisite to computer vision applications like customer behaviour analysis and sales forecasting. This domain has attracted a lot of attention due to its application in attracting customers and for retail sales analytics. To develop a garments recognition system for real-world surveillance videos is a challenging task, due to the myriad of sub-tasks involved in analysing the video, which includes the segmentation of garments, face detection and tracking, etc. The automated identification of the garments and their categorization is a challenging task due to the wide range of garments material, colours and models; which is a difficult task even for human, when using a typical indoor single-view surveillance video. The major factors impacting the effectiveness of garments recognition system under real-world condition are a) the deformation and occlusion of clothes being recognized and b) the variation in fabric, colour, texture, shape, style, etc., of the garments, which tend to confuse existing models. One of the early attempts to fashion identification utilizing image segmentation was proposed by Yamaguchi _et al._ in garments [1], where Fashionista dataset was introduced, comprising of approximately 158,000 images of fashion apparel. This approach utilised a fusion of pose estimation and local features to perform semantic segmentation of the said fashion image. In Yamaguchi _et al._ [2], the earlier approach is extended to utilize a data drive learning model based on semantic segmentation. Along similar lines, Hasan _et al._ [3], proposed a segmentation approach to assign a unique label from classes _{_ Tie, Shirt, Pants _}_ to every individual pixel in the image. This method primarily focused on datasets that involved people wearing the garment. A deep learning based approach was proposed by Brian Lao _et_ _al._ that utilised a R-CNN caffe model to identify clothing [4], which was evaluated for identifying shirts. Due to the deformable nature of clothes, recognition algorithms often find it difficult to identify garments and clothes in their numerous deformities. Kota Hara _et_ _al._ proposed a deep CNN algorithm that amalgamated background information of human postures to address this task [5]. In this approach, the variability of the garments in terms of rigidity is considered, however the coordinates of the object to be detected is relatively close to the detected human posture. This approach relies on human posture detection algorithms for its accuracy, thereby increasing the average detection time, and in turn making it unsuitable for real-time detection systems. Cheng _et_ _al._ proposed a method which utilised a clothing search approach that requires the details of the region of the clothes, thereby generating a virtual assistant to navigate clothes in line with the end user’s input [6]. The user provides keywords such as formal, casual, etc., and the type of occasion such as date etc., to the model. The recognition module utilises a neural network to identifies appropriate clothes for a date, thereby acting as a personal fashion advisor. Yasuyo Kıta _et_ _al._ proposed a deformable model-driven approach [7] to identify fashion garments that are on clothes hangers. The 3D location and orientation of the clothes is ©© 2020 IEEE Personal use of this material is permitted Permission from IEEE must be obtained for all other uses in any current or future media including considered in the system to identify the discriminative regions of the clothes, to obtain the 3D details of the clothes using the deformable model. In [8], Yasuyo Kita _et_ _al._ proposed a methodology for automatic handling of clothing using visual recognition. Yao _et_ _al._ proposed a method that automatically segments and re-colour garments in an image sequence [9]. A Gaussian mixture model is used to identify the background and foreground, followed by a face detection approach to remove those regions in the segmented foreground. A histogram of the remaining pixels is used to model a probability distribution of the clothing chromaticity, which is then repeated for each frame, to obtain the precise region of the clothes using back projection. The approaches discussed so far require high resolution images of garments for effective detection and is therefore not effective for the majority of real-world clothes (or) garments store surveillance video, captured by low resolution cameras at different angles of view, numerous occlusions, etc., which affects the overall performance. In this work, we prioritise on a high-level classification of garments into three categories. First are the simple clothing items that are monochrome and are more or less deformable. These are easier to be picked up by existing models and hence we focus more on the succeeding two categories. Second is clothing goods that are composed of multiple colours, conventionally Indian apparel that does not have a large dataset with annotated data to train on. This poses challenges to current models as they are harder to be identified due to the seamless transition between multiple colours. Third is the garments that tend to have numerous colours. They are more complex in the sense that they possess numerous deformations that are not feasible to be displayed in its entirety. We aim to address such complex garments in this study. In our work, we have developed an approach to identify the garments the customers are interested in, from the surveillance footage of a small Indian garments store. This footage contains videos having a resolution of 944 _×_ 576 pixels and have issues such as noise, FPS drops and inconsistent lighting. This dataset makes our work more challenging, but also has an added merit that this approach which performs well under these conditions can be applied to retail garments stores which are present in large numbers in India. The reminder of the paper is organized to present the proposed approach in Section III, the experimental study with results & analysis in Section IV followed by conclusions & future work in Section V. III. PROPOSED APPROACH In this section, we elucidate our proposed framework, which is illustrated in Figure 1. The proposed approach aims to detect garments of interest to a customer from the video surveillance footage of a clothing store. In order to identify the garments of interest, a background subtraction algorithm can be used. The Mixture-of-Gaussian ( _MoG_ ) approach proposed by Zivkovic [10] is considered in this work due to its ability to cope with background noise. where _µ_ <sup>ˆ</sup> <sup>_⃗_</sup> 1,..., _µ_ <sup>ˆ</sup> <sup>_⃗_</sup> _M_ are the mean estimations and ˆ _σ_ 1,..., ˆ _σM_ are the variance estimates of the Gaussian components in Equation 1. The foreground mask obtained from the aforementioned background subtraction algorithm is applied on the given input Fig. 1: Block diagram of the proposed garments detection approach We now describe the background subtraction process mathematically. Let _⃗x_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> denote the value of a pixel in a colour space. Let _BG_ denote the background and _FG_ denote a foreground object. Let _p_ ( _⃗x|BG_ ) denote the background model. The background model is obtained as a result of estimation from a training set, say <sup>_χ_</sup> . Let _p_ ˆ( _⃗x|_ <sup>_χ_</sup> _, BG_ ) denote the estimated model which depends on _χ_ . The samples in the training set are updated periodically over a chosen time period _T_ to accommodate for the dynamical nature of the scene, such as a new object entering the scene or the exit of an existing object. At a given time _t_, the training set <sup>_χ_</sup> _T_ = _{x_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> _, ..., x_ <sup>(</sup> <sup>_t−T_</sup> <sup>)</sup> _}_ . For every new sample, <sup>_χ_</sup> _T_ is updated and _p_ ˆ( _⃗x|_ <sup>_χ_</sup> _T, BG_ ) is estimated. The estimate of foreground objects in the samples of recent history is denoted by _p_ ( _⃗x_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> _|_ <sup>_χ_</sup> T _, BG_ + _FG_ ). We use a Mixture of Gaussian with _M_ components: _p_ ( _⃗x_ <sup>(</sup> <sup>_t_</sup> <sup>)</sup> _|_ <sup>_χ_</sup> _T, BG_ + _FG_ ) = _M_ _m_ =1 _π_ ˆ _mN_ (ˆ _x_ ; _µ_ <sup>ˆ</sup> <sup>_⃗_</sup> _m, σm_ <sup>2</sup> <sup>I)</sup> (1) frame to compute the foreground image ( _F-frame_ ). This _F-_ _frame_ is used to compute colour masks corresponding to the major colours i.e., Red, Yellow, Blue, Green, etc. These masks are applied on the given _F-frame_ to compute the corresponding images for each colour. Each of these resulting images is converted to a gray-scale image ( _G-Frame_ ). The morphological _closing_ operation is performed on _G-_ _Frame_ to remove small holes in the image (due to noise in the video), thereby optimizing the results for this video data. Now, edge detection is used to identify the edges and contours present in the _G-Frame_ of each colour. The contours corresponding to small regions are ignored as they might represent patterns on garments with complex embroidery. Finally, clustering is applied to group nearby contours representing the same garments or region. As the customers and sales-person are also captured in the foreground image, further optimization of these clusters is needed. A person detection model such as YOLOv3 [11] can be used to identify customers in the frame of interest. Any region present within the bounding box of the detected persons is discarded as these are most likely to be the clothes worn by the customer. The resulting group or cluster of contours are treated as individual garments of interest. The visualization of the garments detected by the proposed approach is shown in Figure 2. Fig. 2: Garments of interest as detected by the proposed approach. (Best viewed in colour) From the figure, it can be observed that the proposed approach can detect multiple garments the customer is interested in. The object detection model can be further trained to detect only customers. The detected customers can then be mapped to the garments they are interested in using a suitable approach. The garments of interest and customer information can be further utilized to identify the type of garments preferred in a season or by an age-group, and to perform customer analytics for optimizing sales. IV. EXPERIMENTAL EVALUATION In this section, we describe the dataset created for conducting this study and the results that are obtained by the proposed approach. The experiments were conducted on Google Colab [12] with Intel(R) Xeon(R) 2.00 GHz CPU, NVIDIA Tesla T4 GPU, 16 GB GDDR6 VRAM and 13 GB RAM. The program programming environment is Python 3.6 and OpenCV 4.2. The video data used in this study is obtained from a retail sales shop with two surveillance cameras, Stat Vision KC-ID2040D [13] capturing the front-view and Keeper CCD Video Camera KC-D3142 [14] capturing the side view. _A._ _Dataset_ The dataset used in this work is a collection of surveillance videos of an Indian garments store, which mainly comprises of sales information. The videos capture the interactions between the salesmen and their numerous customers throughout the day. The videos are obtained from a total of 2 CCTV cameras (KC-ID2040D and KC-D3142) that are a part of the store’s infrastructure, thus enabling us to conduct this study on video captured at different angles of view and illumination conditions. The average resolution of the videos is 944 _×_ 576 pixels. Raw videos were used without any image enhancing techniques on a per frame basis to stress upon the challenges undertaken in dealing with footage with a considerable amount of background noise. Figure 3 illustrates a few sample images from the dataset used for this research. _B._ _Experimental_ _results_ _and_ _statistics_ The proposed approach has been evaluated using Intersection over Union ( _IoU_ ), a standard evaluation metric used in object detection benchmarks [15]. The _IoU_ has been used to describe the ground truth of the proposed approach. Consider _α_ to be the bounding box of the object in interest as obtained from our detection algorithm and let _β_ be the bounding box of the same object as annotated in the dataset. Then the _IoU_ is measured as: _IoU_ = <sup>_<u>α ∩</u>_</sup> <sup>_<u>β</u>_</sup> (2) _α ∪_ _β_ Consider _TP_ to denote the number of true-positive cases, _FP_ to denote the number of false-positive cases and _FN_ to denote the number of false-negative cases. Then, the _precision_ [16] which effectively describes the purity of the positive detection relative to the ground truth of the object detection algorithm can be measured as: _<u>TP</u>_ _Precision_ = (3) _TP_ + _FP_ The _recall_ [16] which effectively describes the completeness of the positive predictions relative to the ground truth of the object detection algorithm can be measured as: _<u>TP</u>_ _Recall_ = (4) _TP_ + _FN_ Fig. 3: Some of the sales videos in the dataset. An average _IoU_ of 70.81% was achieved by the proposed approach on the chosen dataset. The variation of _precision_ and _recall_ with the _IoU_ threshold is depicted in the graph shown in Figure 4. From Figure 4, it can be observed that an _IoU_ threshold of 0.55 i.e. 55% was chosen to distinguish true positive ( _TP_ ) cases from false positive ( _FP_ ) cases and the ratio is depicted in Figure 5. From this analysis, it can be concluded that the proposed approach has a precision of 0.82 and a recall of 0.82. _C._ _Analysis_ _of_ _the_ _proposed_ _approach_ From the earlier discussion, it can be observed that the effectiveness of the proposed approach depends on the effectiveness of the background subtraction algorithm and the colour mask. These factors, in turn, affect the _precision_ and _recall_ of the proposed approach. The _IoU_ dropped in instances when only a portion of the garment of interest was detected due to obstruction of the remaining portion by customers during crowded scenarios. The _IoU_ was high for garments with consistent colour and which were present in the clear Fig. 4: Variation of precision and recall with _IoU_ threshold. Fig. 5: The number of true positives, false positives and false negatives at _IoU_ threshold of 0.55. view of the surveillance camera without any obstructions. It is observed that the garments with small strips and chunks of various colours were partially detected and in some cases were not detected by the proposed approach. In some instances, garments were identified as background by the background subtraction algorithm, due to considerable noise in the video frame. These factors influenced the _precision_ and _recall_ of the proposed approach. V. CONCLUSIONS AND FUTURE WORK In this work, a new approach for detecting the garments of interest from surveillance camera video is proposed. The change in visual information during a customer’s interaction with the salesmen and the garments is analysed to design an approach for detecting the garments a customer is interested in, using computer vision techniques. The resulting approach is robust and is evaluated on a new dataset proposed in this work. The proposed approach can detect garments of interest with high _precision_ and _recall_ even in the presence of a considerable amount of background noise and is suitable for cameras having a resolution as low as 944 _×_ 576 pixels. The _precision_ and _recall_ are affected by the complexity of the garments being recognized and the density of customers in the shop, which could be the subject of future research in this direction. This work can also be extended to include the analysis of customer interest and to predict the demand for different garments. VI. ACKNOWLEDGEMENT This work was done by Mr. Aniruddha Srinivas Joshi and Mr. Goutham K. (B.Tech students) under the guidance of Dr. Earnest Paul Ijjina (Assistant Professor), in Department of Computer Science and Engineering, National Institute of Technology Warangal, as a part of their final year dissertation. The authors express their gratitude to the CSE department and the Institute, NIT Warangal for their efforts in developing the research environment, where this study was conducted. We also thank Google Colab for providing access to the computational resources used for this study. REFERENCES [1] K. Yamaguchi, M. H. Kiapour, L. E. Ortiz, and T. L. Berg, “Parsing clothing in fashion photographs,” in _Proc._ _of_ _IEEE_ _Conference_ _on_ _Computer Vision and Pattern Recognition (CVPR)_, June 2012, pp. 3570– 3577. [2] K. Yamaguchi, M. H. Kiapour, L. E. Ortiz, and T. L. Berg, “Retrieving similar styles to parse clothing,” _IEEE_ _Transactions_ _on_ _Pattern_ _Analysis_ _and_ _Machine_ _Intelligence_, vol. 37, no. 5, pp. 1028–1040, May 2015. [3] B. Hasan and D. Hogg, “Segmentation using deformable spatial priors with application to clothing,” in _Proc._ _of_ _British_ _Machine_ _Vision_ _Con-_ _ference_ _(BMVC)_, 01 2010, pp. 1–11. [4] K. J. Brian Lao, “Convolutional neural networks for fashion classification and object detection,” 2015, pp. 120–129. [Online]. Available: [http://cs231n.stanford.edu/reports/2015/pdfs/BLAO](http://cs231n.stanford.edu/reports/2015/pdfs/BLAO_KJAG_CS231N_FinalPaperFashionClassification.pdf) KJAG CS231N <u>[FinalPaperFashionClassification.pdf](http://cs231n.stanford.edu/reports/2015/pdfs/BLAO_KJAG_CS231N_FinalPaperFashionClassification.pdf)</u> [5] K. Hara, V. Jagadeesh, and R. Piramuthu, “Fashion apparel detection: The role of deep convolutional neural network and pose-dependent priors,” Mar 2016, pp. 1–9. [Online]. Available: [http://dx.doi.org/10.1109/WACV.2016.7477611](http://dx.doi.org/10.1109/WACV.2016.7477611) [6] C.-I. Cheng and D. S.-M. Liu, “An intelligent clothes search system based on fashion styles,” in _Proc._ _of_ _International_ _Conference_ _on_ _Machine_ _Learning_ _and_ _Cybernetics_, vol. 3, 2008, pp. 1592–1597. [7] Y. Kita, T. Ueshiba, E. S. Neo, and N. Kita, “Clothes state recognition using 3d observed data,” in _Proc._ _of_ _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_, 2009, pp. 1220–1225. [8] Y. Kita, E. S. Neo, T. Ueshiba, and N. Kita, “Clothes handling using visual recognition in cooperation with actions,” in _Proc._ _of_ _IEEE/RSJ_ _International_ _Conference_ _on_ _Intelligent_ _Robots_ _and_ _Systems_, 2010, pp. 2710–2715. [9] S. Yao, I. R. Khan, and F. Farbiz, “Clothing segmentation and recoloring using background subtraction and back projection method,” in _Proc._ _of_ _IEEE_ _International_ _Conference_ _on_ _Image_ _Processing_ _(ICIP)_, 2011, pp. 3137–3140. [10] Z. Zivkovic, “Improved adaptive gaussian mixture model for background subtraction,” in _Proc._ _of_ _IEEE_ _International_ _Conference_ _on_ _Pattern_ _Recognition_ _(ICPR)_, vol. 2, 2004, pp. 28–31. [11] J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You only look once: Unified, real-time object detection,” in _Proc._ _of_ _IEEE_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_, 2016, pp. 779– 788. [12] “Google colab,” [https://colab.research.google.com/.](https://colab.research.google.com/) [13] “Stat vision kc-id2040d,” [http://www.globalmarket.com/product-info/](http://www.globalmarket.com/product-info/420tvl-indoor-20m-ir-dome-camera-1598932.html) [420tvl-indoor-20m-ir-dome-camera-1598932.html.](http://www.globalmarket.com/product-info/420tvl-indoor-20m-ir-dome-camera-1598932.html) [14] “Keeper ccd video camera kc-d3142,” [http://www.globalmarket.com/](http://www.globalmarket.com/product-info/color-box-sony-cctv-camera-3951473.html) [product-info/color-box-sony-cctv-camera-3951473.html.](http://www.globalmarket.com/product-info/color-box-sony-cctv-camera-3951473.html) [15] H. Rezatofighi, N. Tsoi, J. Gwak, A. Sadeghian, I. Reid, and S. Savarese, “Generalized intersection over union: A metric and a loss for bounding box regression,” in _Proc._ _of_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_, 2019, pp. 658–666. [16] [“Evaluating image segmentation models,” https://www.jeremyjordan.me/](https://www.jeremyjordan.me/evaluating-image-segmentation-models/) [evaluating-image-segmentation-models/.](https://www.jeremyjordan.me/evaluating-image-segmentation-models/)

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.