P340_AI is an intelligent answering robot system that combines computer vision, AI, and robotic control. It can automatically recognize test paper content, generate answers using large language models, and write the answers onto the answer area using a robotic arm - ultraArm P340.
- Image capture and processing
- OCR text recognition
- AI-powered answer generation
- precise robotic arm writing control
- 4K camera with stand
- UltraArm P340 robotic arm with pen holder module
- Soft board and pins for paper fixation
- Python 3.8+
- Dependencies:
Hershey_Fonts==2.1.0 numpy==2.3.2 openai==1.98.0 opencv_python==4.11.0.86 Pillow==11.3.0 pymycobot==3.9.9 PyYAML==6.0.2
- Clone the repository:
git clone https://github.com/elephantrobotics/p340_ai.git cd p340_ai
- Install dependencies:
pip install -r requirements.txt
- Configure the system:
- Edit
config/config.yaml
with your API keys and hardware settings. - Place Chinese font files in
assets/
directory.
- Edit
- Set up hardware:
- Mount the camera above the writing area.
- Position the robotic arm at the bottom center.
- Secure answer paper on the soft board.
- Run the system:
python main.py
- Follow on-screen instructions:
- Position the test paper when prompted.
- Press spacebar to capture image.
- The system will automatically process and write answers.
Key configuration options in config/config.yaml
:
- API keys for DeepSeek and Qwen services
- Camera ID
- Robotic arm parameters (COM port, speed, writing height)
- File paths for input/output