Spaces:
Running
on
T4
Running
on
T4
File size: 1,297 Bytes
d2beadd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
## Testing the Tools
To test the text detection tool, follow these steps:
1. **Navigate to the Project Directory:**
Change your current directory to where the tools are located. Replace `your_path` with the actual path to your project directory.
```sh
cd your_path/toolbox-agent/opentools
```
2. **Run the Text Detection Tool:**
```sh
cd toolbox-agent
export PYTHONPATH=$(pwd)
```
Execute the tool using the following command:
```sh
python tools/text_detector/tool.py
python tools/object_detector/tool.py
```
## File Structure
The project is organized as follows:
```sh
βββ __init__.py # Initializes the tools package and possibly exposes submodules
βββ base.py # Base class for tools, providing common functionality
βββ text_detector/ # Directory for the text detection tool
β βββ readme.md # Documentation for the text detection tool
β βββ tool.py # Implementation of the text detection tool
βββ object_detector/ # Directory for the object detection tool
β βββ readme.md # Documentation for the object detection tool
β βββ tool.py # Implementation of the object detection tool
```
|