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
```