> For the complete documentation index, see [llms.txt](https://yayapipi.gitbook.io/hypnotic-streamlines-animation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yayapipi.gitbook.io/hypnotic-streamlines-animation/getting-started/program-usage/untitled-1/line-art-data-format.md).

# Line Art Data Format

You need to manually set-up the initial data format before start generate the streamlines

## Manually Set Up

### 1. Root Directory

<div align="left"><img src="https://2623269614-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfkqTPfO1tvFPgDTJLX%2F-MflT8Ojja6mMJYsOOYt%2F-MflVoZPYF2_n_vD9WdC%2Fimage.png?alt=media&amp;token=e32d8f78-16c8-4a08-87e0-1a0754d7ca77" alt="Example Root Directory Files"></div>

1. Folder : "\_tenso&#x72;*\_*"
2. PatchInfo.txt
3. SepInfo.txt
4. \<Imgname>\_00\*.png ( The image frame want to set as keyframe )

### 2. Inside \_Tensor\_ Directory

<div align="left"><img src="https://2623269614-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfkqTPfO1tvFPgDTJLX%2F-MflT8Ojja6mMJYsOOYt%2F-MflW43p8ErfVTS4gqEU%2Fimage.png?alt=media&amp;token=da621feb-f259-4706-bf61-a91caf762e60" alt="Example _tensor_ Directory Files"></div>

1. Folder : "img" \[Input of Segmentation Frame Image]
   1. Naming Format：\<Imgname>\_00\*.png
2. Folder : "contour\_img" \[Input of Contour Frame Image]
   1. Naming Format：contour\_\<Imgname>\_00\*.png

### Related Tools

* **Quick-Duplicate.bat**&#x20;

For the single image simulation, you can use this windows bat program to quickly duplicate the static single frame input.

```
@echo off

set /p source_id="Enter Source Name: "
set /p copy_id="Enter Copy Mask Name: "
set /p range="Enter Maximum Range (<99): "

for /l %%i in (0, 1, 9) do (
   copy %source_id% %copy_id%_000%%i.png
)

for /l %%i in (10, 1, %range%) do (
   copy %source_id% %copy_id%_00%%i.png
)

pause
```

* **PatchText.py (Inside Streamlines Corresponding Folder)**

You can use the PatchText.py python code to quickly generate PatchInfo.txt and SepInfo.txt

<div align="left"><img src="https://2623269614-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfkqTPfO1tvFPgDTJLX%2F-MflT8Ojja6mMJYsOOYt%2F-MflXMzWZAooNrTY31LU%2Fimage.png?alt=media&amp;token=39dce374-5575-4885-a44a-3a77271f430c" alt="PatchText.py Image View"></div>

#### PatchText.py Usage:

1. Put The Image Patch Inside the folder TextImage
2. Change the input patch\_path filename in the main code
3. Run the program
4. Use Mouse Left Click to select the Patch order (click the image patch color)
5. Press 'q' to exit -> system will auto generate the PatchInfo and SepInfo Information.

## System Generated

After Segment and Render Streamlines on each patch, system will auto generate the following files

* **\_data\_ :** The Generated Tensor Data
* **Frame info :** .obj .seg .txt .xml
