Method and device for automatically receiving text messages
A message and text technology, applied in the field of optical character recognition, can solve problems such as energy-consuming and difficult to receive messages, and achieve the effect of saving time and energy costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 As shown, a method for automatically receiving text messages in a preferred embodiment of the embodiments of the present invention includes the following steps:
[0045] Step 101, acquire the position information of each message display frame that needs to be monitored on the display interface, wherein there are several numbered message display frames on the display interface, and the message display frames that need to be monitored do not block each other.
[0046] In this embodiment, the display interface may include various screens of a certain size such as a computer, a TV, a tablet, etc., and this screen may accommodate multiple message display frames, and the message display frames may be message display frames of various chat software , such as chat software, including WeChat, Enterprise WeChat, QQ, DingTalk, etc., or it can also be a message display box such as a command execution program, or a message display box of a monitoring device, etc. ...
Embodiment 2
[0064] On the basis of embodiment 1, with reference to the attached figure 2 , in order to avoid repeatedly storing some messages in the message sequence list, a method for automatically receiving text messages disclosed by the present invention further includes:
[0065] Step 105, obtain a second screenshot of the display interface at a second time, and cut it according to the position information of the message display frame to obtain a number of second message pictures with numbers; wherein, the second screenshot is obtained at a second time After the first time of taking the first screenshot;
[0066] In implementation 2, the first time is an initialization time for obtaining the first message. After the first message is obtained, the second message is obtained at the second time for comparison with the first message. And repeatedly execute steps 105 to 108. The second time can be a time series, such as an arithmetic sequence, and the tolerance of the arithmetic sequenc...
Embodiment 3
[0076] On the basis of embodiment 1 or implementation 2, obtain the position information on the display interface of each message display box that needs to be monitored, specifically:
[0077] Obtain the coordinates of the four vertices of each message display box that needs to be monitored on the display interface.
[0078] Record the coordinate points of the four vertices of the message display box on the desktop, which can be recorded as {P1: (p1, p2, p3, p4), P2: (p1, p2, p3, p4), ..., Pn: ( p1, p2, p3, p4)}. Here you can use the position() function of the python third-party library pyautogui to obtain the real-time position of the mouse, and move the mouse to the four vertices of the message display box to obtain the position information of a message display box.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


