Welcome to the Virtual Dressing Room Example project! This repository demonstrates the usage of a Texel.Moda virtual dressing room system that allows users to try on different outfits using images of clothing items and avatars. The project utilizes the RapidAPI platform to make the virtual try-on process seamless.
Before you begin, make sure you have the following prerequisites:
- RapidAPI Account: To access the virtual dressing room API, you need a RapidAPI account. Visit RapidAPI website to sign up and obtain an API key.
- Clone this repository to your local machine:
git clone https://github.com/TexelModa/virtual-try-on-typescript.git
- Navigate to the project directory:
cd virtual-try-on-typescript
- Install any necessary dependencies:
yarn install
-
Obtain your RapidAPI key by signing up on the RapidAPI website.
-
Open the
src/config.ts
file and replace'RAPID_API_KEY'
with your actual RapidAPI key. -
Prepare the clothing item image and avatar image that you want to use for the virtual try-on. Make sure the images are in a compatible format (e.g., JPG, PNG).
-
Run the virtual dressing room script:
yarn start
- The script will generate an output image (
result.jpg
) showing the avatar wearing the chosen clothing item.
Here are the example images used in the demo:
Avatar Image (original, e.g., it can be your photo):
Look Image (clothes you want to try on in your photo):
Result Image:
Contributions are welcome! If you find any issues or want to add improvements to the project, feel free to submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy virtual dressing! If you have any questions or need assistance, feel free to open an issue or contact us.