Skip to content

ocr_chat_bot,based on pyautogui,CnOcr;基于大模型&OCR搭建的聊天机器人,圈定文本框、输入框、发送按钮,编写自定义llm接口即可激活聊天机器人

Notifications You must be signed in to change notification settings

Dramalf/ocr_chatbot

Repository files navigation

OCR Chatbot

 The OCR Chatbot is an application for building a chatbot using pyautogui and CnOcr. It is designed to be deployed on a local server without the need for external API integration. It utilizes OCR (Optical Character Recognition) techniques by taking scheduled screenshots, managing message queues, and providing custom replies.

demo.mp4

Features

  • Automate chat replies by leveraging OCR technology
  • Local server deployment without the need for external API integration
  • Message queue management for efficient chat handling
  • Customizable reply options
  • Easy configuration of chat message box, text input box, and send button positions

Installation

  • Clone the OCR Chatbot repository.
  • Install the required Python libraries.

Usage

  • Configure the positions of the chat message box, text input box, and send button in the script.

  • Run the OCR Chatbot script by executing the following command:

    python main.py

  • The chatbot will take scheduled screenshots, perform OCR recognition, and automatically reply to incoming messages based on the predefined logic.

Customization

  • Modify the reply options and logic in the script to customize the chatbot's responses.
  • Adjust the scheduled screenshot intervals according to your needs.

Notes

  • Make sure to have the necessary permissions and access to the chat application's user interface elements.
  • This application is intended for local server deployment and is not required for application message API access.
  • Optional llm-chat-api: https://www.secondstate.io/articles/wizardcoder-python-7b/

About

ocr_chat_bot,based on pyautogui,CnOcr;基于大模型&OCR搭建的聊天机器人,圈定文本框、输入框、发送按钮,编写自定义llm接口即可激活聊天机器人

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages