# Line Art Data Format

## 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&#x26;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&#x26;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&#x26;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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yayapipi.gitbook.io/hypnotic-streamlines-animation/getting-started/program-usage/untitled-1/line-art-data-format.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
