CN118132023B - Dynamic message reminding method and system based on rolling captions - Google Patents
Dynamic message reminding method and system based on rolling captions Download PDFInfo
- Publication number
- CN118132023B CN118132023B CN202410552078.8A CN202410552078A CN118132023B CN 118132023 B CN118132023 B CN 118132023B CN 202410552078 A CN202410552078 A CN 202410552078A CN 118132023 B CN118132023 B CN 118132023B
- Authority
- CN
- China
- Prior art keywords
- text box
- message
- caption
- subtitles
- controlling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000005096 rolling process Methods 0.000 title claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000007781 pre-processing Methods 0.000 claims abstract description 22
- 238000002372 labelling Methods 0.000 claims description 13
- 238000003860 storage Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012163 sequencing technique Methods 0.000 claims description 6
- 239000003086 colorant Substances 0.000 claims description 4
- 230000001351 cycling effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000003491 array Methods 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 210000005252 bulbus oculi Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000003064 k means clustering Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides a dynamic message reminding method and a system based on rolling captions, wherein the method comprises the steps of obtaining a message prompting instruction, determining the priority of a message according to the message prompting instruction, and preprocessing corresponding messages according to the priority to obtain a plurality of captions; the method comprises the steps of controlling subtitles to circularly roll in a preset area of a display interface of a computer display screen, and continuously obtaining the rest time of a message corresponding to the subtitles; judging whether the rest time is longer than a first preset time; if yes, acquiring a user attention area, controlling the corresponding subtitle to circularly scroll in the user attention area, and controlling the font to be enlarged; judging whether the rest time is longer than a second preset time; if yes, the message corresponding to the caption with the shelf time longer than the second preset time is subjected to alarm processing, so that the problem that the prompt information is easy to ignore is effectively solved, and the timeliness of critical value processing is improved.
Description
Technical Field
The invention belongs to the technical field of dynamic message reminding, and particularly relates to a dynamic message reminding method and a system based on a rolling caption.
Background
Critical Values refer to a test anomaly result or a type of test anomaly result that, when present, indicates that the patient may be in a dangerous condition; when critical value information is received by the clinician, the patient should be promptly given effective intervention or treatment, otherwise serious consequences may occur.
In actual production, critical value information is generally pushed to a client of a clinical department through a platform message, and when the client receives the message, a popup window prompts a clinician. The doctor receives a very large number of messages every day: medical record quality control messages, consultation messages, critical value messages, various audit messages, prompt messages (successful preservation, successful deletion, failed preservation) for interaction with the system, and the like. Because of too much information, the message popup window is also big or small, and the doctor is busy every day, the doctor has habitually clicked the button to determine the popup message or directly closes the window, so that some important information is ignored or forgotten to be processed, and if the critical value message is forgotten to be processed, serious consequences can be caused.
Disclosure of Invention
Based on the above, the embodiment of the invention provides a dynamic message reminding method and a system based on a rolling caption, which are used for solving the problem that the reminding information is easy to ignore in the prior art.
A first aspect of an embodiment of the present invention provides a dynamic message reminding method based on a rolling caption, where a dynamic message is displayed through a computer display screen, the method includes:
acquiring a message prompt instruction, determining the priority of a message according to the message prompt instruction, and preprocessing the corresponding message according to the priority to obtain a plurality of subtitles, wherein the preprocessing comprises sequencing and labeling;
The method comprises the steps of controlling subtitles to circularly roll in a preset area of a display interface of a computer display screen, and continuously obtaining the rest time of a message corresponding to the subtitles;
Judging whether the rest time is longer than a first preset time;
If yes, acquiring a user attention area, controlling the corresponding subtitle to circularly scroll in the user attention area, and controlling the font to be enlarged;
judging whether the rest time is longer than a second preset time;
If yes, carrying out alarm processing on the message corresponding to the caption with the shelf time longer than the second preset time;
The step of preprocessing the corresponding message according to the priority to obtain a plurality of subtitles comprises the following steps:
acquiring the number of messages, and determining text boxes with corresponding numbers according to the number of the messages;
acquiring the content of each message, converting the content into matched subtitles, determining the length of the subtitles, and generating a text box matched with the length of the subtitles;
placing each caption in a corresponding text box, and sorting the text boxes with the captions according to the priorities to obtain a text box group, wherein the text box group is formed by connecting all the text boxes end to end;
and labeling the subtitles in each text box to obtain labeled subtitles.
Further, the step of sorting the text boxes with the subtitles according to the priority to obtain the text box group includes:
acquiring the display length of a computer display screen and the length of a current text box group, and judging whether the display length of the computer display screen is smaller than the length of the current text box group;
if yes, the current text box group is split in sequence to obtain a plurality of sub text box groups, so that the plurality of sub text box groups can be completely presented on a computer display screen;
and acquiring the priority of the message corresponding to the caption in the first text box in each sub-text box group, longitudinally sorting according to the priority of the message corresponding to the caption in the first text box in each sub-text box group, and meanwhile, presetting the dislocation distance between the first text boxes in each sub-text box group to form stepped arrangement.
Further, the step of splitting the current text box group sequentially to obtain a plurality of sub text box groups includes:
step one, acquiring the length of a text box in a current text box group, and acquiring the display length of a computer display screen;
Sequentially summing the lengths of the text boxes according to the arrangement sequence of the text boxes in the current text box group, and judging whether the length value after each summation is larger than the display length of a computer display screen or not;
Step three, if yes, determining a text box currently subjected to summation operation, and removing the text box at the tail to obtain a sub text box group;
Determining the text box at the tail as the beginning of the split text box group;
and fifthly, cycling the first step to the fourth step until a plurality of sub-text box groups are obtained through splitting.
Further, the step of obtaining the user attention area, controlling the corresponding subtitle to circularly scroll in the user attention area, and controlling the font to be enlarged includes:
Establishing a plane coordinate system of a display interface of a computer display screen, acquiring the position of a cursor in the plane coordinate system in real time, and judging whether the cursor stays for more than a preset time;
if yes, determining a central area of a display interface of a computer display screen as a user attention area, controlling corresponding subtitles to circularly scroll in the user attention area, and controlling fonts to be enlarged;
if not, the position of the cursor in the plane coordinate system is obtained in real time, and a moving track is drawn;
Determining the positions of the intersection points on the moving track, and carrying out clustering treatment on the positions of the intersection points to obtain a preset number of target intersection point positions, wherein the target intersection point positions are clustering center points;
drawing a circular area according to the position of the target intersection point, and determining the circle center of the circular area;
And determining the circular area as a user attention area, controlling the corresponding caption to circularly scroll by taking the circle center as a reference, and controlling the font to be enlarged when the caption enters the circular area.
Further, in the step of placing each caption in a corresponding text box, and sorting the text boxes with the captions according to the priorities to obtain the text box group, the captions in the adjacent text boxes are set to be different colors.
A second aspect of an embodiment of the present invention provides a dynamic message reminding system based on a rolling caption, for implementing the dynamic message reminding method based on the rolling caption provided in the first aspect, where the dynamic message is displayed through a computer display screen, and the system includes:
The preprocessing module is used for acquiring a message prompt instruction, determining the priority of a message according to the message prompt instruction, and preprocessing the corresponding message according to the priority to obtain a plurality of subtitles, wherein the preprocessing comprises sequencing processing and labeling processing;
the first control module is used for controlling the caption to circularly roll in a preset area of a display interface of the computer display screen and continuously acquiring the rest time of the message corresponding to the caption;
the first judging module is used for judging whether the rest time is longer than a first preset time or not;
The second control module is used for acquiring a user attention area when judging that the rest time is longer than the first preset time, controlling the corresponding subtitle to circularly roll in the user attention area and controlling the font to be enlarged;
The second judging module is used for judging whether the rest time is longer than a second preset time or not;
And the alarm module is used for carrying out alarm processing on the message corresponding to the caption with the rest time being longer than the second preset time when judging that the rest time is longer than the second preset time.
A third aspect of an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the dynamic message alert method based on the rolling caption provided in the first aspect.
A fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the dynamic message alert method based on the rolling caption provided in the first aspect when the program is executed.
According to the dynamic message reminding method, the system, the storage medium and the electronic equipment based on the rolling captions, the message prompt instruction is obtained, the priority of the message is determined according to the message prompt instruction, and the corresponding message is preprocessed according to the priority to obtain a plurality of captions, wherein the preprocessing comprises sequencing processing and labeling processing; the method comprises the steps of controlling subtitles to circularly roll in a preset area of a display interface of a computer display screen, and continuously obtaining the rest time of a message corresponding to the subtitles; judging whether the rest time is longer than a first preset time; if yes, the user is not responded for a long time for message prompt, a user attention area is acquired, corresponding subtitles are controlled to circularly roll in the user attention area, fonts are controlled to be enlarged, eyeballs of the user are rapidly grasped, and compared with the traditional method for displaying the subtitles in a fixed area, the prompt is obvious; judging whether the rest time is longer than a second preset time; if yes, the message corresponding to the caption with the shelf time longer than the second preset time is subjected to alarm processing, so that the problem that the prompt information is easy to ignore is effectively solved, and the timeliness of critical value processing is improved.
Drawings
Fig. 1 is a flowchart of an implementation of a dynamic message reminding method based on a rolling caption according to a first embodiment of the present invention;
fig. 2 is a block diagram of a dynamic message reminding system based on a rolling caption according to a second embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Several embodiments of the invention are presented in the figures. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "mounted" on another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Example 1
Referring to fig. 1, fig. 1 shows a dynamic message reminding method based on a rolling caption according to an embodiment of the present invention, wherein a dynamic message is displayed through a computer display screen, and the dynamic message reminding method based on the rolling caption specifically includes steps S01 to S06.
Step S01, a message prompt instruction is obtained, the priority of a message is determined according to the message prompt instruction, and corresponding messages are preprocessed according to the priority to obtain a plurality of subtitles, wherein the preprocessing comprises sequencing processing and labeling processing.
Specifically, when a message prompt instruction is obtained, the computer terminal reacts to output corresponding subtitles, and first determines the priority of the message, wherein the priority can be set according to the past practical experience, and the priority is divided according to the importance and the emergency degree. More specifically, the step of preprocessing the corresponding message according to the priority to obtain a plurality of subtitles includes:
Acquiring the number of the messages, and determining a text box with the corresponding number according to the number of the messages, namely, one text box corresponding to one message; acquiring the content of each message, converting the content into matched subtitles, determining the length of the subtitles, and generating a text box matched with the length of the subtitles; placing each caption in a corresponding text box, and sorting the text boxes with the captions according to the priorities to obtain a text box group, wherein the text box group is formed by connecting the text boxes end to end, and the captions in adjacent text boxes are set to be different colors in order to embody the differences of the priorities; and labeling the subtitles in each text box to obtain labeled subtitles.
It should be noted that, in a general subtitle scrolling manner, the subtitle enters from the right side of the screen and moves to the left side of the screen at a constant speed, when the text moves out of the screen completely, the text content enters from the right side of the screen again, so the text is circularly reminded, but when the subtitle is longer, some content is missed and can only be seen when waiting for the next circulation, which may miss key information, resulting in poor user experience, therefore, according to the priority, the text boxes with the subtitle are subjected to sorting processing, and the text box group obtaining step includes:
Acquiring the display length of a computer display screen and the length of a current text box group, and judging whether the display length of the computer display screen is smaller than the length of the current text box group; if the display length of the computer display screen is less than the length of the current text box group, sequentially splitting the current text box group to obtain a plurality of sub text box groups, so that the plurality of sub text box groups can be completely presented on the computer display screen; step two, according to the arrangement sequence of the text boxes in the current text box group, step three, sequentially summing the lengths of the text boxes, and judging whether the length value after each summation is larger than the display length of the computer display screen; if the length value after each summation is judged to be larger than the display length of the computer display screen, determining a text box currently subjected to the summation operation, and eliminating the text box at the tail to obtain a sub text box group; determining the text box at the tail as the beginning of the split text box group; step five, the steps one to four are circulated until a plurality of sub text box groups are obtained through splitting; and finally, acquiring the priority of the message corresponding to the caption in the first text box in each sub-text box group, and carrying out longitudinal sorting according to the priority of the message corresponding to the caption in the first text box in each sub-text box group, and meanwhile, presetting the dislocation distance between the first text boxes in each sub-text box group to form stepped arrangement.
Step S02, controlling the caption to circularly scroll in a preset area of a display interface of the computer display screen, and continuously acquiring the rest time of the message corresponding to the caption.
The method comprises the steps of controlling the caption to circularly scroll in the top area of a display interface of a computer display screen, and counting the rest time of a message corresponding to the caption when the caption appears, wherein the rest time is understood to be the time between the caption and the message being processed.
Step S03, judging whether the rest time is longer than a first preset time, if so, executing step S04.
Step S04, a user attention area is acquired, corresponding subtitles are controlled to circularly scroll in the user attention area, and fonts are controlled to be enlarged.
When the message is not processed for a long time, the corresponding caption needs to be controlled to make a change so as to further remind a user, specifically, a plane coordinate system of a display interface of a computer display screen is established, the position of a cursor in the plane coordinate system is acquired in real time, wherein the cursor can be understood as a mouse pointer, and whether the cursor stays for more than a preset time is judged; if the cursor is judged to stay for more than the preset time, if the situation that the user is reading data and does not operate the mouse possibly exists, determining the central area of the display interface of the computer display screen as a user attention area, controlling the corresponding caption to circularly roll in the user attention area, and controlling the font to be enlarged; if the cursor stay does not exceed the preset time, the position of the cursor in the plane coordinate system is obtained in real time, and a moving track, namely the moving track of the mouse pointer on the display interface, is drawn; determining the positions of the intersection points on the moving track, and carrying out clustering processing on the positions of the intersection points to obtain a preset number of target intersection point positions, wherein the target intersection point positions are clustering center points, and it is understood that the positions of the intersection points on the moving track refer to positions where one coordinate point repeatedly appears, and k-means clustering can be carried out on the positions, and 3 target intersection point positions are determined.
Further, drawing a circular area according to the position of the target intersection point, and determining the circle center of the circular area; the circular area is determined as a user attention area, the corresponding caption is controlled to take the circle center as a reference for circular scrolling, namely, when the caption is circularly scrolled, the caption passes through the circle center, and when the caption enters the circular area, the control font is enlarged, so that after the clustering center point is determined, the rough area which is frequently operated by the user at present can be known, and the rough area is avoided to a certain extent, and the user is effectively prompted while the current operation of the user is not influenced.
Step S05, judging whether the rest time is longer than a second preset time, if so, executing step S06.
And step S06, carrying out alarm processing on the message corresponding to the caption with the rest time longer than the second preset time.
It will be appreciated that if the user does not process the message for a long period of time, the system may upgrade the message, e.g., forward the message to a superior management.
In summary, in the dynamic message reminding method based on the rolling captions in the above embodiment of the present invention, by acquiring a message prompt instruction, determining the priority of a message according to the message prompt instruction, and preprocessing the corresponding message according to the priority to obtain a plurality of captions, where the preprocessing includes sorting processing and labeling processing; the method comprises the steps of controlling subtitles to circularly roll in a preset area of a display interface of a computer display screen, and continuously obtaining the rest time of a message corresponding to the subtitles; judging whether the rest time is longer than a first preset time; if yes, acquiring a user attention area, controlling the corresponding subtitle to circularly scroll in the user attention area, and controlling the font to be enlarged; judging whether the rest time is longer than a second preset time; if yes, the message corresponding to the caption with the shelf time longer than the second preset time is subjected to alarm processing, so that the problem that the prompt information is easy to ignore is effectively solved, and the timeliness of critical value processing is improved.
Example two
Referring to fig. 2, fig. 2 is a block diagram of a dynamic message reminding system 200 based on a rolling caption according to a second embodiment of the present invention, wherein a dynamic message is displayed through a computer display screen, and the dynamic message reminding system 200 based on the rolling caption includes: the device comprises a preprocessing module 21, a first control module 22, a first judging module 23, a second control module 24, a second judging module 25 and an alarm module 26, wherein:
the preprocessing module 21 is configured to obtain a message prompt instruction, determine a priority of a message according to the message prompt instruction, and preprocess a corresponding message according to the priority to obtain a plurality of subtitles, where preprocessing includes sorting processing and labeling processing;
the first control module 22 is configured to control the subtitle to circularly scroll in a preset area of a display interface of the computer display screen, and continuously obtain a rest time of a message corresponding to the subtitle;
a first judging module 23, configured to judge whether the rest time is greater than a first preset time;
The second control module 24 is configured to acquire a user attention area when the rest time is determined to be greater than the first preset time, control the corresponding subtitle to circularly scroll in the user attention area, and control the font to become larger;
a second judging module 25, configured to judge whether the rest time is greater than a second preset time;
And the alarm module 26 is configured to, when the rest time is determined to be greater than the second preset time, perform alarm processing on a message corresponding to the subtitle with the rest time greater than the second preset time.
Further, in some alternative embodiments of the present invention, the preprocessing module 21 includes:
the first acquisition unit is used for acquiring the number of the messages and determining text boxes with corresponding number according to the number of the messages;
The second acquisition unit is used for acquiring the content of each message, converting the content into matched subtitles, determining the length of the subtitles and generating a text box matched with the length of the subtitles;
The ordering unit is used for placing each caption in a corresponding text box, and ordering the text boxes with the captions according to the priority to obtain a text box group, wherein the text box group is formed by connecting the text boxes end to end, and in addition, captions in adjacent text boxes are set to be different colors;
And the labeling unit is used for labeling the subtitles in each text box to obtain labeled subtitles.
Further, in some optional embodiments of the present invention, the dynamic message alert system 200 based on the rolling caption further comprises:
The third judging module is used for acquiring the display length of the computer display screen and the length of the current text box group and judging whether the display length of the computer display screen is smaller than the length of the current text box group or not;
The splitting module is used for splitting the current text box group in sequence to obtain a plurality of sub text box groups when the display length of the computer display screen is smaller than the length of the current text box group, so that the plurality of sub text box groups can be completely presented on the computer display screen;
The sorting module is used for obtaining the priority of the message corresponding to the caption in the first text box in each sub-text box group, carrying out longitudinal sorting according to the priority of the message corresponding to the caption in the first text box in each sub-text box group, and meanwhile, presetting the dislocation distance between the first text boxes in each sub-text box group to form stepped arrangement.
Further, in some optional embodiments of the present invention, the splitting module includes:
the third acquisition unit is used for acquiring the length of the text box in the current text box group and acquiring the display length of the computer display screen;
the first judging unit is used for sequentially summing the lengths of the text boxes according to the arrangement sequence of the text boxes in the current text box group and judging whether the length value after each summation is larger than the display length of the computer display screen or not;
The eliminating unit is used for determining a text box currently subjected to summation operation when judging that the length value after summation is larger than the display length of the computer display screen each time, and eliminating the text box positioned at the tail to obtain a sub text box group;
A start determining unit configured to determine a text box located at the end as the start of the split text box group;
And the circulating unit is used for circulating the third obtaining unit to the beginning determining unit until a plurality of sub text box groups are obtained through splitting.
Further, in some alternative embodiments of the present invention, the second control module 24 includes:
The second judging unit is used for establishing a plane coordinate system of a display interface of the computer display screen, acquiring the position of the cursor in the plane coordinate system in real time, and judging whether the cursor stays for more than a preset time;
The first control unit is used for determining the central area of the display interface of the computer display screen as a user attention area when judging that the cursor stays for more than the preset time, controlling the corresponding caption to circularly scroll in the user attention area and controlling the font to be large;
The first drawing unit is used for drawing a moving track according to the position of the cursor in the plane coordinate system obtained in real time when the cursor is judged to stay for not more than the preset time;
the clustering unit is used for determining the intersection point positions on the moving track, and carrying out clustering processing on the intersection point positions to obtain a preset number of target intersection point positions, wherein the target intersection point positions are clustering center points;
The second drawing unit is used for drawing a circular area according to the position of the target intersection point and determining the circle center of the circular area;
And the second control unit is used for determining the circular area as a user attention area and controlling the corresponding caption to circularly scroll by taking the circle center as a reference, and when the caption enters the circular area, the control font is enlarged.
Example III
An electronic device according to an embodiment of the present invention is also provided, referring to fig. 3, and the electronic device in the third embodiment of the present invention includes a memory 20, a processor 10, and a computer program 30 stored in the memory and capable of running on the processor, where the processor 10 implements the above-mentioned dynamic message reminding method based on the rolling caption when executing the computer program 30.
The processor 10 may be, among other things, a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments for running program code or processing data stored in the memory 20, e.g. executing an access restriction program or the like.
The memory 20 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 20 may in some embodiments be an internal storage unit of the electronic device, such as a hard disk of the electronic device. The memory 20 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk provided on the electronic device, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc. Further, the memory 20 may also include both internal storage units and external storage devices of the electronic device. The memory 20 may be used not only for storing application software of an electronic device and various types of data, but also for temporarily storing data that has been output or is to be output.
It should be noted that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and in other embodiments the electronic device may comprise fewer or more components than shown, or may combine certain components, or may have a different arrangement of components.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, realizes the dynamic message reminding method based on the rolling caption.
Those of skill in the art will appreciate that the logic and/or steps represented in the flow diagrams or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
Claims (8)
1. A dynamic message alert method based on a rolling caption, characterized in that the dynamic message is displayed through a computer display screen, the method comprising:
acquiring a message prompt instruction, determining the priority of a message according to the message prompt instruction, and preprocessing the corresponding message according to the priority to obtain a plurality of subtitles, wherein the preprocessing comprises sequencing and labeling;
The method comprises the steps of controlling subtitles to circularly roll in a preset area of a display interface of a computer display screen, and continuously obtaining the rest time of a message corresponding to the subtitles;
Judging whether the rest time is longer than a first preset time;
If yes, acquiring a user attention area, controlling the corresponding subtitle to circularly scroll in the user attention area, and controlling the font to be enlarged;
judging whether the rest time is longer than a second preset time;
If yes, carrying out alarm processing on the message corresponding to the caption with the shelf time longer than the second preset time;
The step of preprocessing the corresponding message according to the priority to obtain a plurality of subtitles comprises the following steps:
acquiring the number of messages, and determining text boxes with corresponding numbers according to the number of the messages;
acquiring the content of each message, converting the content into matched subtitles, determining the length of the subtitles, and generating a text box matched with the length of the subtitles;
placing each caption in a corresponding text box, and sorting the text boxes with the captions according to the priorities to obtain a text box group, wherein the text box group is formed by connecting all the text boxes end to end;
and labeling the subtitles in each text box to obtain labeled subtitles.
2. The method for dynamic message alert based on rolling captions as recited in claim 1, wherein the step of sorting text boxes with captions according to the priority to obtain a text box group includes:
acquiring the display length of a computer display screen and the length of a current text box group, and judging whether the display length of the computer display screen is smaller than the length of the current text box group;
if yes, the current text box group is split in sequence to obtain a plurality of sub text box groups, so that the plurality of sub text box groups can be completely presented on a computer display screen;
and acquiring the priority of the message corresponding to the caption in the first text box in each sub-text box group, longitudinally sorting according to the priority of the message corresponding to the caption in the first text box in each sub-text box group, and meanwhile, presetting the dislocation distance between the first text boxes in each sub-text box group to form stepped arrangement.
3. The method for dynamic message alert based on rolling captions as recited in claim 2, wherein the step of splitting the current text box group sequentially to obtain a plurality of sub text box groups includes:
step one, acquiring the length of a text box in a current text box group, and acquiring the display length of a computer display screen;
Sequentially summing the lengths of the text boxes according to the arrangement sequence of the text boxes in the current text box group, and judging whether the length value after each summation is larger than the display length of a computer display screen or not;
Step three, if yes, determining a text box currently subjected to summation operation, and removing the text box at the tail to obtain a sub text box group;
Determining the text box at the tail as the beginning of the split text box group;
and fifthly, cycling the first step to the fourth step until a plurality of sub-text box groups are obtained through splitting.
4. The method for dynamic message alert based on rolling subtitles of claim 3, wherein the steps of obtaining a user attention area, controlling the corresponding subtitles to roll circularly in the user attention area, and controlling fonts to become larger comprise:
Establishing a plane coordinate system of a display interface of a computer display screen, acquiring the position of a cursor in the plane coordinate system in real time, and judging whether the cursor stays for more than a preset time;
if yes, determining a central area of a display interface of a computer display screen as a user attention area, controlling corresponding subtitles to circularly scroll in the user attention area, and controlling fonts to be enlarged;
if not, the position of the cursor in the plane coordinate system is obtained in real time, and a moving track is drawn;
Determining the positions of the intersection points on the moving track, and carrying out clustering treatment on the positions of the intersection points to obtain a preset number of target intersection point positions, wherein the target intersection point positions are clustering center points;
drawing a circular area according to the position of the target intersection point, and determining the circle center of the circular area;
And determining the circular area as a user attention area, controlling the corresponding caption to circularly scroll by taking the circle center as a reference, and controlling the font to be enlarged when the caption enters the circular area.
5. The method according to claim 4, wherein each caption is placed in a corresponding text box, and the text boxes with the captions are sorted according to the priorities, and in the step of obtaining a text box group, the captions in adjacent text boxes are set to be different colors.
6. A system for dynamic message alert based on a closed caption for implementing the method for dynamic message alert based on a closed caption according to any one of claims 1 to 5, the dynamic message being displayed through a computer display screen, the system comprising:
The preprocessing module is used for acquiring a message prompt instruction, determining the priority of a message according to the message prompt instruction, and preprocessing the corresponding message according to the priority to obtain a plurality of subtitles, wherein the preprocessing comprises sequencing processing and labeling processing;
the first control module is used for controlling the caption to circularly roll in a preset area of a display interface of the computer display screen and continuously acquiring the rest time of the message corresponding to the caption;
the first judging module is used for judging whether the rest time is longer than a first preset time or not;
The second control module is used for acquiring a user attention area when judging that the rest time is longer than the first preset time, controlling the corresponding subtitle to circularly roll in the user attention area and controlling the font to be enlarged;
The second judging module is used for judging whether the rest time is longer than a second preset time or not;
And the alarm module is used for carrying out alarm processing on the message corresponding to the caption with the rest time being longer than the second preset time when judging that the rest time is longer than the second preset time.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a dynamic message alert method based on a closed caption according to any of claims 1-5.
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the rolling-captioning based dynamic message alert method as claimed in any one of claims 1 to 5 when the program is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410552078.8A CN118132023B (en) | 2024-05-07 | 2024-05-07 | Dynamic message reminding method and system based on rolling captions |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410552078.8A CN118132023B (en) | 2024-05-07 | 2024-05-07 | Dynamic message reminding method and system based on rolling captions |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118132023A CN118132023A (en) | 2024-06-04 |
CN118132023B true CN118132023B (en) | 2024-07-05 |
Family
ID=91234030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410552078.8A Active CN118132023B (en) | 2024-05-07 | 2024-05-07 | Dynamic message reminding method and system based on rolling captions |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118132023B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035690A (en) * | 2014-06-25 | 2014-09-10 | 联想(北京)有限公司 | Subtitle display position adjusting method and electronic equipment |
CN106371789A (en) * | 2016-09-30 | 2017-02-01 | 维沃移动通信有限公司 | Method for displaying prompt message in application program, and mobile terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102333201B (en) * | 2010-07-13 | 2013-11-06 | 华为终端有限公司 | Telepresence caption transmission method, terminal and system |
CN108965370B (en) * | 2017-12-05 | 2020-05-08 | 视联动力信息技术股份有限公司 | Method for inserting text message, video network server and system |
CN111225288A (en) * | 2020-01-21 | 2020-06-02 | 北京字节跳动网络技术有限公司 | Method, device and electronic device for displaying subtitle information |
CN114844984B (en) * | 2022-07-04 | 2022-10-04 | 荣耀终端有限公司 | Notification message reminding method and electronic equipment |
CN117056008B (en) * | 2023-10-10 | 2024-02-02 | 深圳安天网络安全技术有限公司 | Popup window interception method and device, equipment and medium |
CN117666780A (en) * | 2023-11-17 | 2024-03-08 | 中国华能集团清洁能源技术研究院有限公司 | Enhanced interaction methods, devices, equipment and storage media based on eye tracking |
-
2024
- 2024-05-07 CN CN202410552078.8A patent/CN118132023B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035690A (en) * | 2014-06-25 | 2014-09-10 | 联想(北京)有限公司 | Subtitle display position adjusting method and electronic equipment |
CN106371789A (en) * | 2016-09-30 | 2017-02-01 | 维沃移动通信有限公司 | Method for displaying prompt message in application program, and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN118132023A (en) | 2024-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11615635B2 (en) | Heuristic method for analyzing content of an electronic document | |
CN105144239B (en) | Image processing apparatus, image processing method | |
US11087163B2 (en) | Neural network-based optical character recognition | |
CN108460098B (en) | Information recommendation method and device and computer equipment | |
US20130326341A1 (en) | Digital comic editor, method and non-transitorycomputer-readable medium | |
CN109508189B (en) | Layout template processing method and device and computer readable storage medium | |
CN109035256B (en) | User interface image cutting method, device, server and storage medium | |
CN118132023B (en) | Dynamic message reminding method and system based on rolling captions | |
CN109684394B (en) | Text generation method, device, equipment and storage medium | |
US20200349381A1 (en) | Frame Level And Video Level Text Detection In Video | |
Doi et al. | Task-irrelevant direct gaze facilitates visual search for deviant facial expression | |
CN115587925A (en) | Image processing method, image recognition method, electronic device, and readable storage medium | |
CN118474273A (en) | Commodity display video generation method, device, equipment and readable storage medium | |
CN117764051A (en) | Method and system for intelligently extracting key knowledge points of document based on docx format | |
GB2504966A (en) | Data plot processing | |
CN118012328A (en) | Information storage method, device, electronic equipment and storage medium | |
CN109787887B (en) | Alarm information management method, device, computer device and readable storage medium | |
US20210012478A1 (en) | System and method for assessing quality of media files | |
CN113010012A (en) | Method for configuring virtual character in vehicle-mounted entertainment system and computer storage medium | |
Hauck et al. | Does superior visual working memory capacity enable greater distractor suppression? | |
CN112613510A (en) | Picture preprocessing method, character recognition model training method and character recognition method | |
CN112312205A (en) | Video processing method and device, electronic equipment and computer storage medium | |
CN111710437A (en) | Intelligent inquiry method, system and storage medium based on image processing | |
US20210390250A1 (en) | Information processing apparatus | |
CN113497899B (en) | Text and picture matching method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |