bowenchen118's picture
Update
d2beadd
|
raw
history blame
1.3 kB

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.

    cd your_path/toolbox-agent/opentools
    
  2. Run the Text Detection Tool:

    cd toolbox-agent
    export PYTHONPATH=$(pwd)
    

    Execute the tool using the following command:

    python tools/text_detector/tool.py
    
    python tools/object_detector/tool.py
    

File Structure

The project is organized as follows:

β”œβ”€β”€ __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