CN114564130A - Text self-adaption method, display terminal, system and medium based on public transport - Google Patents
Text self-adaption method, display terminal, system and medium based on public transport Download PDFInfo
- Publication number
- CN114564130A CN114564130A CN202210169415.6A CN202210169415A CN114564130A CN 114564130 A CN114564130 A CN 114564130A CN 202210169415 A CN202210169415 A CN 202210169415A CN 114564130 A CN114564130 A CN 114564130A
- Authority
- CN
- China
- Prior art keywords
- displayed
- size
- page
- screen
- display terminal
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012545 processing Methods 0.000 claims abstract description 6
- 230000006978 adaptation Effects 0.000 claims description 31
- 230000003044 adaptive effect Effects 0.000 claims description 19
- 238000004891 communication Methods 0.000 claims description 10
- 230000003993 interaction Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004422 calculation algorithm Methods 0.000 abstract description 3
- 238000005265 energy consumption Methods 0.000 abstract description 2
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/28—Constructional details of speech recognition systems
- G10L15/30—Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
Abstract
The invention discloses a text self-adaptive method, a display terminal, a system and a medium based on public transport, which specifically comprise the following steps: s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence; s2, acquiring the screen size of the display terminal; s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal; and S4, displaying according to the font size. According to the invention, the text self-adaptive algorithm is integrated on the equipment, the background only needs to manage the receiving and sending of the text content, and the self-adaptive processing is carried out on the text display through the display terminal equipment, so that the energy consumption of the system is greatly reduced, meanwhile, the equipment is enabled, the equipment is not only used for voice broadcasting, but also has the function of self-adaptive text display, and the equipment value is improved.
Description
Technical Field
The invention relates to the field of rail transit, in particular to a text self-adaption method, a display terminal, a system and a medium based on public transit.
Background
The existing broadcasting system mostly adopts a live broadcasting mode, a broadcaster opens a microphone to speak contents to be broadcasted facing a sound pick-up of a main control end, the main control end receives audio information containing the broadcasted contents and sends the audio information to a station port loudspeaker of a station for broadcasting, however, when the station faces a peak in the morning and at night or an emergency, the people flow at the station is crowded and the sound is noisy, so that passengers can not clearly and accurately obtain station information or safety information of emergency broadcasting, therefore, aiming at the existing display terminal equipment of the website, the invention provides a scheme for converting the broadcast content of the voice loudspeaker of the display terminal into text display, thereby realizing the display function, solving the problems that a plurality of display terminal devices such as a standing door lintel, a standing guide and an intelligent display terminal have various screens and different sizes, therefore, the problem of how to adapt the text on the display terminal device needs to be solved for the display terminal of the website.
Disclosure of Invention
The invention aims to provide a text self-adaptive method, a display terminal, a system and a medium based on public transportation.
The text self-adaptive method based on public transport is applied to a display terminal of a website, the display terminal and a main control terminal realize communication interaction, and the method specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, acquiring the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
Further, the text information carries a preset size, and the font size adapted to the page to be displayed is determined according to the screen size, which specifically includes the following steps:
if the screen size is larger than a preset size, determining a size adjustment amount according to the screen size and the preset size;
and calculating the font size adaptive to the page to be displayed according to the size adjustment quantity and a preset adjustment coefficient.
Further, the text information also carries a preset font size, and the font size adapted to the page to be displayed is calculated by the following formula:
c=b×(w-p)×a;
wherein w-p is the size adjustment amount, w is the screen size, p is the preset size, a is the preset adjustment coefficient, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
Further, the text information also carries a preset font size, and the font size adapted to the page to be displayed is calculated by the following formula:
c=b×w/p;
wherein w/p is the size adjustment amount, w is the screen size, p is the preset size, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
Further, the text information carries position information of the page to be displayed, an average size of the page to be displayed, and a relative size of the page to be displayed, and determining a font size adapted to the page to be displayed according to the screen size specifically includes:
acquiring the font size attribute of the root node of the screen;
judging whether an adaptation error exists according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen, acquiring an error ratio according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen when the adaptation error exists, and determining the font size adapted to the page to be displayed according to the error ratio.
Further, the determining whether there is an adaptation error according to the average size of the page to be displayed, the relative size of the page to be displayed, and the font size attribute of the root node of the screen specifically includes:
judging whether the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen is the same as the average size of the page to be displayed or not, and if so, confirming that no adaptation error exists; otherwise, confirming that the adaptation error exists;
the error proportion is obtained according to the average size of the pages to be displayed, the relative size of the pages to be displayed and the font size attribute of the root node of the screen, and specifically comprises the following steps:
and calculating the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen, and taking the ratio of the product to the average size of the page to be displayed as an error proportion.
Further, the determining the font size adapted to the page to be displayed according to the error ratio specifically includes:
and obtaining the product of the font size attribute of the root node of the screen and the error proportion, and taking the product as the font size which is matched with the page to be displayed.
Further, the text information further includes a confidence level, and the step S1 further includes inserting the text information into a queue to be determined according to the confidence level, so as to sequentially read the text messages in the queue to be determined according to the order of the confidence level.
A public transportation-based text adaptive display terminal, comprising:
a display screen;
one or more processors;
a storage unit to store one or more programs that, when executed by the one or more processors, enable the one or more processors to implement the public transportation-based text adaptation method, the one or more programs including:
the receiving module is used for receiving text information and related information sent by the main control terminal, wherein the related information comprises an interrupt instruction or confidence;
the calling module is used for obtaining the screen size of the display terminal;
the adaptation module is used for determining the font size adapted to the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and the display module is used for interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
A public transportation based text adaptation system, comprising:
the display terminal and the main control terminal realize communication interaction through a local area network, and/or
The main control end is provided with a voice acquisition display terminal and is used for:
constructing a three-dimensional model map of the site, wherein the three-dimensional model comprises a label of each display terminal of the site, a screen size corresponding to the display terminal and preset text information in an emergency scene;
acquiring a selected display terminal in the three-dimensional model map;
sending text information generated by carrying out voice-to-word processing on preset text information or audio information acquired by a voice acquisition module after triggering to the display terminal;
the display terminal is used for:
receiving text information and related information sent by a main control end, wherein the related information comprises an interrupt instruction or confidence;
acquiring the screen size of a display terminal;
determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
A computer-readable storage medium having stored thereon a computer program,
the computer program, when executed by a processor, is capable of implementing the public transportation based text adaptation method.
The voice conversion system comprises a display terminal, a voice acquisition module, a voice conversion module and a main control terminal, wherein the display terminal can be applied to a website, the display terminal is in communication interaction with the main control terminal with the voice acquisition module, the voice acquisition module acquires audio information after being triggered, and voice conversion processing is carried out according to the audio information to generate text information.
The invention has the following beneficial effects:
by integrating the text adaptive algorithm on the equipment, the background only needs to manage the receiving and sending of text contents, and the self-adaptive processing is carried out on the text by the display terminal equipment for how the text is displayed, so that the energy consumption of the system is greatly reduced, and meanwhile, the equipment is enabled to play, so that the equipment is not only used for voice broadcasting, but also has the function of self-adaptive text display, and the equipment value is improved.
The user selects the equipment needing to send the content from the main control end, the sending function (such as preset broadcast table sending, voice real-time sending and the like) is called in a long-time pressing mode, the user selects voice real-time sending, the voice collecting module is called to pick up voice, after the picking up is completed, the user can select whether to convert the voice into characters to send, after the conversion into the characters is confirmed to send, the set text content is sent to the display terminal equipment to be displayed.
And the display terminal receives the text information, performs self-adaptive calculation on the text information according to the size of the issued equipment through a text self-adaptive algorithm embedded in the equipment, and plays and displays the text information.
Drawings
FIG. 1 is a flow chart of a text adaptive method based on public transportation according to the present invention;
FIG. 2 is a schematic structural diagram of a display terminal according to the present invention;
FIG. 3 is a schematic diagram of a text adaptive system based on public transportation according to the present invention;
FIG. 4 is a prior art schematic of the present invention;
FIG. 5 is a schematic diagram of a three-dimensional model in a master control end according to the present invention;
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited to these examples.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "longitudinal", "lateral", "horizontal", "inner", "outer", "front", "rear", "top", "bottom", and the like indicate orientations or positional relationships that are based on the orientations or positional relationships shown in the drawings, or that are conventionally placed when the product of the present invention is used, and are used only for convenience in describing and simplifying the description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be construed as limiting the invention.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "open," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Example 1
The electronic device may be a display terminal with a display function, and application scenarios of embodiments of the present invention may include but are not limited to: the present embodiment and each of the following embodiments will be described with a station lintel as an example. The following describes implementation details of the page adaptation method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary for implementing the present embodiment.
The text self-adaptive method based on public transport is applied to a display terminal of a website, the display terminal and a main control terminal realize communication interaction, and the method specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, acquiring the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
Determining the font size adaptive to the page to be displayed according to the screen size, and specifically comprising the following steps:
if the screen size is larger than a preset size, determining a size adjustment amount according to the screen size and the preset size;
and calculating the font size adaptive to the page to be displayed according to the size adjustment quantity and a preset adjustment coefficient.
Calculating the font size adaptive to the page to be displayed by the following formula:
c=b×(w-p)×a;
wherein w-p is the size adjustment amount, w is the screen size, p is the preset size, a is the preset adjustment coefficient, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
The set size may be set by a person skilled in the art according to actual needs, and this embodiment is not particularly limited to this. For example, the display terminal is a mobile phone, and the screen width of the mobile phone is between 320px and 480px, and 500px can be selected as the preset size.
Specifically, when the display terminal determines that the screen size is larger than the preset size, the display terminal may determine that the screen is a large screen, determine a size adjustment amount according to the screen size and the preset size, and determine an adaptation size adapted to the page to be displayed by combining a preset adjustment coefficient, where the sub-step may be obtained by a formula c ═ b × (w-p) × a, where w-p is the size adjustment amount, w is the screen size, p is the preset size, a is the preset adjustment coefficient, b is a preset font size matching the preset size, and c is the font size adapted to the page to be displayed.
The preset size p and the preset adjustment coefficient a may be set by a person skilled in the art according to actual needs, for example, a developer sets the size according to development requirements, which is not specifically limited in this embodiment.
The screen width of a door lintel of a general station is 3200px to 4800px, 5000px can be selected as a preset size, and if the width of a display terminal of a user is greater than 5000px, the screen of the display terminal is judged to be a large screen. For example, when the screen width of the display terminal is 6400px, the display terminal determines that its screen is a large screen. The screen width is greater than 500px, i.e. the resizing amount to be adjusted, and the resizing amount can be adjusted by multiplying a preset adjustment coefficient (where the preset adjustment coefficient is set by a developer and can be selected to be in a range of 0.089 to 0.12). Multiple experiments show that when the preset adjusting coefficient is 0.1, a friendly adaptive effect can be obtained. b is a preset font size matched with the preset size, when p is 5000px, b is 50px, and under the condition that the preset adjustment coefficient is 0.1, the font size of the display terminal with the screen width of 6400px is as follows: 50 × (6400-.
Example 2
The text self-adaptive method based on public transport is applied to a display terminal of a website, the display terminal and a main control terminal realize communication interaction, and the method specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, obtaining the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
Calculating the font size adaptive to the page to be displayed by the following formula:
c=b×w/p;
wherein w/p is the size adjustment amount, w is the screen size, p is the preset size, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
The preset size p may be set by a person skilled in the art according to actual needs, for example, a developer sets the preset size according to development requirements, which is not specifically limited in this embodiment.
The screen width of a door lintel of a general station is 3200px to 4800px, 5000px can be selected as a preset size, and if the width of a display terminal of a user is greater than 5000px, the screen of the display terminal is judged to be a large screen. For example, when the screen width of the display terminal is 6400px, the display terminal determines that the screen is a large screen, and the font size of the display terminal with the screen width of 6400px is: 50 × (6400/5000), i.e. 64 px.
Example 3
The text self-adaptive method based on public transport is applied to a display terminal of a website, the display terminal and a main control terminal realize communication interaction, and the method specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, acquiring the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
Determining the font size adaptive to the page to be displayed according to the screen size, and specifically comprising the following steps:
acquiring a current screen width value, and dividing the current screen width value by a preset basic screen width value to calculate to obtain a multiplying power;
and determining the font size of the page to be displayed according to the multiplying power and a preset adjusting coefficient a.
The preset size p and the preset adjustment coefficient a may be set by a person skilled in the art according to actual needs, for example, a developer sets the size according to development requirements, which is not specifically limited in this embodiment.
The screen width of a door lintel of a general website is 3200px to 4800px, 5000px can be selected as a preset size, and if the width of a display terminal of a user is larger than 5000px, the screen of the display terminal is judged to be a large screen. For example, when the screen width of the display terminal is 6400px, the display terminal determines that its screen is a large screen. The preset adjustment coefficient is set by a developer, and can be selected to be in a range of 0.89 to 1.12. Through multiple experiments, it is found that when the preset adjustment coefficient is 1.1, a friendly adaptation effect can be obtained. In the case that the preset adjustment coefficient is 0.1, the font size of the display terminal with the screen width of 6400px is: 50 × (6400/5000) × 0.001px, i.e., 70 px.
Example 4
The text self-adaptive method based on public transport is applied to a display terminal of a website, the display terminal and a main control terminal realize communication interaction, and the method specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, acquiring the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
The screen size of the display terminal may be a screen width of the display terminal.
The text information carries position information of the page to be displayed, the average size of the page to be displayed and the relative size of the page to be displayed, and the determination of the font size matched with the page to be displayed according to the screen size specifically comprises the following steps:
acquiring the font size attribute of the root node of the screen;
judging whether an adaptation error exists according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen, acquiring an error ratio according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen when the adaptation error exists, and determining the font size adapted to the page to be displayed according to the error ratio.
And judging whether an adaptation error exists according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen, wherein the judgment specifically comprises the following steps:
judging whether the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen is the same as the average size of the page to be displayed or not, and if so, confirming that no adaptation error exists; otherwise, confirming that the adaptation error exists;
the error proportion is obtained according to the average size of the pages to be displayed, the relative size of the pages to be displayed and the font size attribute of the root node of the screen, and the error proportion is specifically as follows:
and calculating the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen, and taking the ratio of the product to the average size of the page to be displayed as an error proportion.
The font size adaptive to the page to be displayed is determined according to the error proportion, and specifically:
and obtaining the product of the font size attribute of the root node of the screen and the error proportion, and taking the product as the font size which is matched with the page to be displayed.
For example, the screen size of the display terminal is 320px, and the size of the page module of the display terminal is 640 px.
If the preset attribute value is 100px, the relative size of the screen is 640px/100px to 6.4rem, and the font size attribute of the root node of the screen is set to 320px/6.4rem to 50 px.
For example, if the font size attribute of the root node of the screen is 50px, the relative size of the page to be displayed is 1rem, and the size of the page to be displayed is 40px, the product of the relative size of the page to be displayed and the font size attribute of the root node of the region to be displayed is 50px × 1rem, which is different from the size 40px of the page to be displayed, and it is determined that there is an adaptation error.
For example, the font size attribute of the root node of the screen is 50px, the relative size of the page to be displayed is 1rem, and the average size of the page to be displayed is 40px, the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen is 50px × 1rem — 50px, and the ratio 50px/40px of the product 50px to the average size of the page to be displayed 40px is 1.25 as an error ratio.
Example 4
A public transportation based text adaptive display terminal comprising:
a display screen;
one or more processors;
a storage unit to store one or more programs that, when executed by the one or more processors, enable the one or more processors to implement the public transportation-based text adaptation method, the one or more programs including:
the receiving module is used for receiving text information and related information sent by the main control terminal, wherein the related information comprises an interrupt instruction or confidence;
the calling module is used for acquiring the screen size of the display terminal;
the adaptation module is used for determining the font size adapted to the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and the display module is used for interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
A computer-readable storage medium having stored thereon a computer program,
the computer program, when executed by a processor, is capable of implementing the public transportation-based text adaptation method.
Example 5
A public transportation based text adaptation system, comprising:
the display terminal and the main control terminal realize communication interaction through a local area network, and/or
The main control end is provided with a voice acquisition display terminal and is used for:
constructing a three-dimensional model map of the site, wherein the three-dimensional model comprises a label of each display terminal of the site, a screen size corresponding to the display terminal and preset text information in an emergency scene;
acquiring a selected display terminal in the three-dimensional model map;
sending text information generated by carrying out voice-to-word processing on preset text information or audio information acquired by a voice acquisition module after triggering to the display terminal;
the display terminal is used for:
receiving text information and related information sent by a main control end, wherein the related information comprises an interrupt instruction or confidence;
acquiring the screen size of a display terminal;
determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
The foregoing is only a preferred embodiment of the present invention, and the present invention is not limited thereto in any way, and any simple modification, equivalent replacement and improvement made to the above embodiment within the spirit and principle of the present invention still fall within the protection scope of the present invention.
Claims (10)
1. The text self-adaption method based on public transport is characterized by being applied to a display terminal of a station, wherein the display terminal and a main control terminal realize communication interaction, and specifically comprises the following steps:
s1, receiving text information and related information sent by a main control terminal, wherein the related information comprises an interrupt instruction or confidence;
s2, acquiring the screen size of the display terminal;
s3, determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and S4, interrupting the currently displayed page and displaying the page to be displayed according to the font size and the interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for reading the pages in the queue to be displayed in sequence according to the confidence coefficient.
2. The public transportation-based text adaptive method according to claim 1, wherein the text information carries a preset size, and the font size adapted to the page to be displayed is determined according to the screen size, specifically comprising the following steps:
if the screen size is larger than a preset size, determining a size adjustment amount according to the screen size and the preset size;
and calculating the font size adaptive to the page to be displayed according to the size adjustment quantity and a preset adjustment coefficient.
3. The method of claim 2, wherein the text information further carries a preset font size, and the font size adapted to the page to be displayed is calculated by the following formula:
c=b×(w-p)×a;
wherein w-p is the size adjustment amount, w is the screen size, p is the preset size, a is the preset adjustment coefficient, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
4. The method of claim 2, wherein the text information further carries a preset font size, and the font size adapted to the page to be displayed is calculated by the following formula:
c=b×w/p;
wherein w/p is the size adjustment amount, w is the screen size, p is the preset size, b is a preset font size matched with the preset size, and c is the font size matched with the page to be displayed.
5. The public transportation-based text adaptive method according to claim 1, wherein the text information carries position information of the page to be displayed, an average size of the page to be displayed, and a relative size of the page to be displayed, and the determining of the font size adapted to the page to be displayed according to the screen size specifically comprises:
acquiring the font size attribute of the root node of the screen;
judging whether an adaptation error exists according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen, acquiring an error ratio according to the average size of the page to be displayed, the relative size of the page to be displayed and the font size attribute of the root node of the screen when the adaptation error exists, and determining the font size adapted to the page to be displayed according to the error ratio.
6. The public transportation-based text adaptive method according to claim 5, wherein the determining whether there is an adaptation error according to the average size of the pages to be displayed, the relative size of the pages to be displayed, and the font size attribute of the root node of the screen is specifically:
judging whether the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen is the same as the average size of the page to be displayed or not, and if so, confirming that no adaptation error exists; otherwise, confirming that the adaptation error exists;
the error proportion is obtained according to the average size of the pages to be displayed, the relative size of the pages to be displayed and the font size attribute of the root node of the screen, and the error proportion is specifically as follows:
and calculating the product of the relative size of the page to be displayed and the font size attribute of the root node of the screen, and taking the ratio of the product to the average size of the page to be displayed as an error proportion.
7. The public transportation-based text adaptive method according to claim 6, wherein the determining of the font size adapted to the page to be displayed according to the error ratio is specifically:
and obtaining the product of the font size attribute of the root node of the screen and the error proportion, and taking the product as the font size which is matched with the page to be displayed.
8. A text adaptive display terminal based on public transportation is characterized by comprising:
a display screen;
one or more processors;
a storage unit to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the public transportation-based text adaptation method according to any one of claims 1 to 7, the one or more programs comprising:
the receiving module is used for receiving text information and related information sent by the main control terminal, wherein the related information comprises an interrupt instruction or confidence;
the calling module is used for obtaining the screen size of the display terminal;
the adaptation module is used for determining the font size adapted to the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and the display module is used for interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
9. A public transportation based text adaptation system, comprising:
the display terminal and the main control terminal realize communication interaction through a local area network,
the main control end is provided with a voice acquisition display terminal and is used for:
constructing a three-dimensional model map of the site, wherein the three-dimensional model comprises a label of each display terminal of the site, a screen size corresponding to the display terminal and preset text information in an emergency scene;
acquiring a selected display terminal in the three-dimensional model map;
sending text information generated by carrying out voice-to-word processing on preset text information or audio information acquired by a voice acquisition module after triggering to the display terminal;
the display terminal is used for:
receiving text information and related information sent by a main control end, wherein the related information comprises an interrupt instruction or confidence;
acquiring the screen size of a display terminal;
determining the font size matched with the page to be displayed according to the screen size; the page to be displayed is text information to be displayed on a screen of the display terminal;
and interrupting the currently displayed page and displaying the page to be displayed according to the font size and an interrupt instruction, or inserting the page to be displayed into a queue to be displayed according to the confidence coefficient, wherein the queue to be displayed is used for sequentially reading the pages in the queue to be displayed according to the order of the confidence coefficient.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that,
the computer program is capable of implementing a public transportation based text adaptation method according to any one of claims 1 to 8 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210169415.6A CN114564130A (en) | 2022-02-23 | 2022-02-23 | Text self-adaption method, display terminal, system and medium based on public transport |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210169415.6A CN114564130A (en) | 2022-02-23 | 2022-02-23 | Text self-adaption method, display terminal, system and medium based on public transport |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114564130A true CN114564130A (en) | 2022-05-31 |
Family
ID=81713394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210169415.6A Pending CN114564130A (en) | 2022-02-23 | 2022-02-23 | Text self-adaption method, display terminal, system and medium based on public transport |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114564130A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106557501A (en) * | 2015-09-28 | 2017-04-05 | 腾讯科技(深圳)有限公司 | A kind of screen adaptation method of page module and device |
CN106776969A (en) * | 2016-12-05 | 2017-05-31 | 乐视控股(北京)有限公司 | Page adaptation method, device and electronic equipment |
CN111984351A (en) * | 2020-08-07 | 2020-11-24 | 中移(杭州)信息技术有限公司 | Page adaptation method, electronic device and computer-readable storage medium |
CN112102828A (en) * | 2020-09-04 | 2020-12-18 | 杭州中软安人网络通信股份有限公司 | Voice control method and system for automatically broadcasting content on large screen |
CN112383806A (en) * | 2020-11-11 | 2021-02-19 | 青岛海信网络科技股份有限公司 | Public transport station information playing device, method, device and storage medium |
-
2022
- 2022-02-23 CN CN202210169415.6A patent/CN114564130A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106557501A (en) * | 2015-09-28 | 2017-04-05 | 腾讯科技(深圳)有限公司 | A kind of screen adaptation method of page module and device |
CN106776969A (en) * | 2016-12-05 | 2017-05-31 | 乐视控股(北京)有限公司 | Page adaptation method, device and electronic equipment |
CN111984351A (en) * | 2020-08-07 | 2020-11-24 | 中移(杭州)信息技术有限公司 | Page adaptation method, electronic device and computer-readable storage medium |
CN112102828A (en) * | 2020-09-04 | 2020-12-18 | 杭州中软安人网络通信股份有限公司 | Voice control method and system for automatically broadcasting content on large screen |
CN112383806A (en) * | 2020-11-11 | 2021-02-19 | 青岛海信网络科技股份有限公司 | Public transport station information playing device, method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7522182B2 (en) | Method and apparatus for image capture and transmission in a mobile communication device | |
CN108903521B (en) | Man-machine interaction method applied to intelligent picture frame and intelligent picture frame | |
CN110335590B (en) | Voice recognition test method, device and system | |
CN105049917A (en) | Method and device for recording an audio and video synchronization timestamp | |
EP4351152A2 (en) | Video splitting method and electronic device | |
CN107845363B (en) | A kind of display control method and mobile terminal | |
CN107155133A (en) | Volume adjusting method, audio-frequency playing terminal and computer-readable recording medium | |
EP2755395A2 (en) | Method for compressing image data collected by camera and electronic device for supporting the method | |
CN103873919A (en) | Information processing method and electronic equipment | |
CN102437825A (en) | Control apparatus and control method | |
CN111448587A (en) | Display method, uploading method and device of advertisement pictures | |
WO2022262416A1 (en) | Audio processing method and electronic device | |
CN114564130A (en) | Text self-adaption method, display terminal, system and medium based on public transport | |
JP2019149785A (en) | Video conversion device and program | |
CN105450970A (en) | Information processing method and electronic equipment | |
CN114564165A (en) | Text and audio self-adaption method, display terminal and system based on public transport | |
EP2530893A1 (en) | Method and apparatus for obtaining size of emails of terminal | |
CN101494752B (en) | Method and apparatus for adjusting sound volume | |
CN110708590A (en) | Method for improving screen projection resolution | |
KR101672214B1 (en) | Mobile Terminal and Operation method thereof | |
CN110996159A (en) | Volume adjusting method and system, display terminal and readable storage medium | |
CN113438533B (en) | Video display method and device, electronic equipment and storage medium | |
CN218830512U (en) | Human body induction sound system based on 4G network | |
CN109040360A (en) | A kind of acquisition methods and mobile terminal of geography information | |
CN213987510U (en) | Translation machine |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220531 |