A Method For Trialing A Virtual Sari Before Physical Manufacturing

DOI : 10.17577/IJERTV2IS3400

Download Full-Text PDF Cite this Publication

Text Only Version

A Method For Trialing A Virtual Sari Before Physical Manufacturing

Soma Datta

Department of computer Science and Engineering West Bengal University of Technology

Kolkata, West Bengal

Dr. Samir Kumar Bandyopadhyay

Vice Chancellor

West Bengal University of Technology Kolkata, West Bengal

Abstract- The objective of this work is to introduce image processing technique to promote handloom sector in all over the world. The main difference between handloom sari and meal sari is that individual handloom sari can be customized according to the users choice but incase of meal sari, it is not possible to customize each individual sari. These customization properties have been focused in this work. The objective of this work is to design a virtual sari, so that user can see herself how she looks with that sari. If she satisfied with that sari trial then she gives the order with the specification and weaver will produce the specified sari.

Index TermsComponent, formatting, style, styling, insert.

(key words)

  1. INTRODUCTION

    India has a rich cultural heritage of handloom industry and world famous workmanship of hand-woven textiles. The processing and manufacturing of textiles was the second largest occupation of India after agriculture [1]. India has the largest handlooms industry in the world. The handloom sector, with a long tradition of excellence in craftsmanship, not only plays an important role in preserving the country's heritage and culture, it also makes a major contribution to the economy. As per studies, it has been found out that the weaving industry of India provides employment to approximately 12.5 million people. There are 32,88,556 household looms, and 1,97,752 non- household looms in India. Over 38, 00,000 weaving industries have been built throughout India. It is estimated that the weaving industry in India will grow by 25% to over 35 million tons by the year 2010 [2]. Basically this work will be focused on the socio economic development in handloom sector in rural India. The goal of this work will be to increase the demand of Sari and create huge employment, so that poor weaver can earn more. To facilitate the weaver a survey is required. Survey on retail sari-shop reveals that lack of design is one of the cause of poor demand of sari. Here one GUI based application will be developed, where input is selection of a sari. Dealer will show the sari to the customer through this application. Then if customer satisfies with that sari then they give order for the sari. With this application if customer is not satisfied with that sari then they can change the color, create some new design on the sari and then place the order. Sometimes weaver make very costly sari and they give very hard labor on it.

    Instead of this hard work sari would not sale for the customer satisfaction. It results misuse of money and labor. To reduce this kind of misuse virtual sari trailing may be very helpful before placing the order to the weaver. That means before making a high cost sari weaver took the confirmed permission from the dealer of sari so that from weavers perspective no wastage of labor and he/she would get the money. From dealers perspective they would sure profit form the customer.

  2. DETAIL DESIGN

    The entire work is divided into several steps like image Acquisition, Extract the color component, Find the hue enhancement of the image, conversion from color image to binary image and finally find the region of interest. It is shown in Figure 1.

    Image Acquisition

    Image Acquisition

    Extract the color component

    Extract the color component

    Find the region of Interest (ROI)

    Find the region of Interest (ROI)

    Find the Hue of that region of interest

    Find the Hue of that region of interest

    Find the Binary image of the previous Image

    Find the Binary image of the previous Image

    Replace the sari color and design as per customer requirement.

    Replace the sari color and design as per customer requirement.

    Fig 1: Block diagram of Entire Design a.IMAGE ACQUISITION

    Image acquisition is the first step. Here some image of full sari has been collected to store in the computer for further use in BMP format.

    1. IMAGE ENHANCEMENT

      The images obtained from the camera are not in good quality. Edge detection plays a major role in sari area

      detection and segmentation so Laplacian Filter is used to sharpen the edges of the objects in the image.

      The Laplacian gradient at a pixel position (x,y) is denoted

      by 2 f(x, y) and it is defined as.

      2

      2

      2

      f(x, y)= x2 f (x, y)

      2

      y2 f (x, y)

      (1)

      This equation is applied on all points (x,y) of the image through convolution. The Laplacian filter is applied separately on Red, Green and Blue components of the colour images. After that the sari region is segmented from the sharpened colour image. The detection of sari area is discussed next.

    2. SEGMENTATION OF SARI REGION FROM BACKGROUND IMAGE

      The row and column positions of small block in sari region have been supplied by the mouse pointer, to the main operational block. System analysis the value of red, green and blue components of that region and also determine the logic to highlight the sari region. The logic is to sort the values of average red, green and blue components of the selected block. Subtracted logic is equivalent to the difference between highest value component and the lowest value component.

      Figure2 shows the input image. The sari region is bluish so blue component is the highest value. So it is extracted from the input image. It is shown in the figure3. Red component has the lowest value and it is also extracted from the input image. It is shown in the figure4. After extracting the blue and red component from the input image, the subtracted image has been calculated which highlights the exact sari region. It is shown in the figureu5.

      Fig2: Input Image

      Fig3: Blue Component

      Fig4: Red Component

      Fig5: Extracted sari region.

      Using threshold algorithm this subtracted image will be converted into binary image to obtain the sari region mask.

      Algorithm1: Threshold calculation Technique

      Step1: Select an initial estimate for T (A suggested initial estimate is the mid point between the minimum and maximum and maximum intensity value in the input image)

      Step2: Segment the image using T. This will produce two groups of pixels: G1 consisting of all pixels with intensity values >=T

      And G2 consisting of pixels with values < T.

      Step3: Compute the average intensity values µ1 and µ2 for the pixels in regions G1 and G2

      Step4: Compute a new threshold value

      Algorithm2: Is used to change the sari color.

      Step1: Find the maximum, minimum and mean of the hue value from colour_vector and store them into maximum_colour, minimum_colour and average_colour

      T = (µ1

      + µ2) / 2

      respectively.

      Step2: convert the entire RGB colour image into HIS colour

      Step5: Repeat steps2 through 4 until the difference in T successive iterations is the smaller than a predefined parameter T0.

      After that only sari region is extracted by multiplying to obtain mask and original colour image. This is shown in figure6.

      image and store them in sari_HSI 3D matrix.

      Step3: Determine the hue value of new sari. And store it into new_hue.

      Step4: value _to_be_added = average_colour-new_hue Step5: For i=1 to row_no_sari – HIS

      For j=1 to col_no_sari HIS

      If (sari HIS[1][j][1] <=maximum_colour AND

      Sari HIS[i][j][1] >= minimum_colour) then

      New_SariHIS[i][j][1]=sari-HIS[i][j][1]+value_to_be_added New_SariHIS[i][j][2]=sari-HIS[i][j][2]+value_to_be_added New_SariHIS[i][j][3]=sari-HIS[i][j][3]+value_to_be_added

      Else New_SariHIS[i][j][1]=sari-HIS[i][j][1]

      New_SariHIS[i][j][2]=sari-HIS[i][j][2]

      New_SariHIS[i][j][3]=sari-HIS[i][j][3] End If

      Fig6: Binary Image (Used as a mask)

    3. CHANGE THE SARI COLOUR ACCORDING TO USER CHOICE.

      Sari shaded colour changes for folding and light direction so it is not so easy to detect and change a sari colour form RGB colour format. HIS colour format is used to resolve the un-uniform light intensity problem. Where H stands for Hue

      i.e. Pure colour, S for saturation, i.e. the degree by which the pure colour is diluted using white light and I for intensity i.e. Gray level. Calculate hue value of all pixel of the sari regions by applying Eq2 and store that values into a vector namely colour_vector. Algo2 is used to change the sari colour.

      End For End For

      Step6: Stop

    4. RECONSTRUCT THE RGB IMAGE FROM HIS

      IMAGE

      RGB image reconstruction is requited to show the image and calculate thread coloring process.

      Eq 5 to

      Algorithm3: Converting colors from HSI to RGB

      Step1 Consider the values of HSI in the interval [0; 1]

      H should be multiplied by 360 (or 2Pi) to recover the angle; further computation is based on the value of H

      RG sector 0o H < 120o (5)

      H

      if B G

      (2)

      B = I(1 S )

      S cos H

      360

      otherwise

      Where,

      R I 1

      cos(60 H )

      1 [(R G) (R B)]

      G = 3I (R + B)

      cos1 2 .

      [(R G)(R G) (R B)(G B)]

      GB sector 120o H < 240o (6) H = H 120o

      S 1 3 [min( R, G, B)] (R G B)

      (3)

      R = I(1 S )

      G I 1

      S cos H '

      I 1 (R G B)

      (4)

      cos(60 H ' )

      3

      Where RGB stands for red, green and blue and makes up onscreen colour. RGB code has 24 bits format (bits 0..23).

      B = 3I (R + G)

      BR sector 240o H < 360o (7) H = H 240o

      G = I(1 S )

      B I 1

      S cos H '

      cos(60 H ' )

      R = 3I (G + B)

  3. SIMULATION AND RESULTS

    For simulation MatLab is used. For the particular sensed image shown in fig 2 the result is correct. And it is shown in fig 7 to figure 11

    Fig7

    Fig8

    Fig9 (Another Example)

    Fig10 (Another Example)

    Fig11

    .

  4. CONCLUSIONS

India has the largest handlooms industry in the world. The handloom sector, with a long tradition of excellence in craftsmanship, not only plays an important role in preserving the country's heritage and culture, it also makes a major contribution to the economy. The objective of this work is to design a virtual sari through image processing method.

4. REFERENCES

  1. Singh, A., &Naik, S.,(2009),Paper on Status of Banaras weavers: A profile,

    Karnataka J. Agric. Sci., 22(2): 408-411

  2. http://business.mapsofindia.com/india-industry/weaving.html

  3. Television Viewing as a Cause of Increasing Obesity Among Children in the United States, 1986-1990 Steven L. Gortmaker, PhD; Aviva Must, PhD; Arthur M. Sobol, AM; Karen Peterson, RD, ScD; Graham A. Colditz, MD, DrPH; William H. Dietz, MD, PhD Arch Pediatr Adolesc Med. 1996;150(4):356-362. Vol. 150 No. 4, April 1996 [Online] http://archpedi.ama-assn.org/cgi/content/abstract/150/4/356

  4. http://www.seattlerobotics.org/Encoder/mar98/fuz/flindex.html

  5. P. Ghosh, D. Bhattacharjee, M. Nasipuri ,D.K. Basu, Round-The-Clock Urine Sugar Monitoring System for Diabetic Patients, in International Conference on Systems in Medicine and Biology, lIT Kharagpur, 2010, pp. 326330.

  6. R.C. Gonzalez, R. E. Woods, Digital Image Processing. Second Edition, Pearson Education.

Leave a Reply