CN118155479A - Signboard display method, driving training device and storage medium - Google Patents

Signboard display method, driving training device and storage medium Download PDF

Info

Publication number
CN118155479A
CN118155479A CN202410578640.4A CN202410578640A CN118155479A CN 118155479 A CN118155479 A CN 118155479A CN 202410578640 A CN202410578640 A CN 202410578640A CN 118155479 A CN118155479 A CN 118155479A
Authority
CN
China
Prior art keywords
distance
signboard
viewpoint
color
vanishing
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
Application number
CN202410578640.4A
Other languages
Chinese (zh)
Inventor
田龙
唐林
宋红霞
罗宇
张鑫
唐中军
刘斌
王晓娟
李哲
郭德宏
卜显利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Yunda Technology Co Ltd
Original Assignee
Chengdu Yunda Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Yunda Technology Co Ltd filed Critical Chengdu Yunda Technology Co Ltd
Priority to CN202410578640.4A priority Critical patent/CN118155479A/en
Publication of CN118155479A publication Critical patent/CN118155479A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a signboard display method, a driving training device and a storage medium, and belongs to the technical field of rail transit. The method comprises the following steps: acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to increase along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance; when the viewpoint distance is smaller than or equal to the vanishing distance, the spatial position of the signboard is moved, and the spatial position movement value is increased along with the increase of the viewpoint distance; the color and the characters of the signboard are corrected. The identification plate is processed and amplified according to the distance from the current viewpoint, so that the identification plate which cannot be displayed or is too small to be recognized after being transmitted according to the real size can be correctly identified.

Description

Signboard display method, driving training device and storage medium
Technical Field
The invention relates to the technical field of rail transit, in particular to a signboard display method, a driving training device and a storage medium.
Background
In the virtual view of a railway training system, the correct display of objects with a longer distance is a key technology, and the method simulates a train driving environment with a real perspective distance sense in a training scene, so that students can correctly identify the states of track equipment such as a signal machine, a signboard and the like to make correct response. However, the images rendered by the computer are displayed on the screen with limited resolution, and as a result, the distant signboard cannot be correctly displayed, the size is too small or specific contents cannot be correctly distinguished, and the correct perception of the signboard by a learner is affected. A common optimization scheme involves simply zooming in to identify or otherwise indicate the content of the front sign (e.g., a pop-up window), and treating all types of signs with the same scheme. However, simple amplification can result in distortion of the sign rendering, which is not appropriate for real situations, such as being larger than a house or creating a penetration, and other forms of cues are not appropriate for real driving environments. The following problems exist in the prior art: 1. on a screen or projector with limited resolution, a signboard with a long distance cannot be displayed correctly, is too small or is not displayed at all; 2. the content of the identification plate in the complex scene cannot be recognized; 3. if no optimization is performed, the identifiable distance of the signboard cannot meet the technical specification requirement; 4. simple amplification causes rendering distortion, and different types of unified processing effects are poor. Therefore, a new scheme is urgently needed to improve the identifiable distance of the signboard in the railway virtual training system view.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a signboard display method, a driving training device and a storage medium.
The aim of the invention is realized by the following technical scheme: the first aspect of the present invention provides: a signboard displaying method comprising the steps of:
Acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to increase along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
When the viewpoint distance is smaller than or equal to the vanishing distance, the spatial position of the signboard is moved, and the spatial position movement value is increased along with the increase of the viewpoint distance;
Correcting the color of the signboard by using a color correction method; the character correction method is used for correcting the characters of the signboard.
Preferably, different identifiable distances, vanishing distances and spatial position movement values are set for different kinds of signboard.
Preferably, the color correction method includes the steps of:
Taking the geometric center point of the signboard as the geometric center point of the sampling picture, and intercepting the sampling picture by taking the preset radius as the sampling radius; and then obtaining the average color of the sampling picture, carrying out hue movement on the average color to obtain the background contrast color, and correcting the color of the signboard by using the background contrast color.
Preferably, the text correction method comprises the following steps:
Extracting text content and text color in the signboard; then, replacing the text content by using a vector font, and performing hue movement on the text color to obtain a text contrast color; the text contrasting color is then used as the sign background color.
Preferably, a luminous special effect with preset brightness is arranged on the outer outline of the signboard.
A second aspect of the invention provides: the driving training device is used for realizing any one of the display methods of the signboard, and comprises the following steps:
The viewpoint distance acquisition module is used for acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to be increased along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
The signboard moving module is used for moving the spatial position of the signboard when the viewpoint distance is smaller than or equal to the vanishing distance, and the spatial position moving value is increased along with the increase of the viewpoint distance;
the signboard correcting module is used for correcting the signboard color by using a color correcting method; the character correction method is used for correcting the characters of the signboard.
A third aspect of the invention provides: a computer readable storage medium having stored therein computer executable instructions that when loaded and executed by a processor implement any of the above-described methods of displaying a signboard.
The beneficial effects of the invention are as follows:
1) The identification plate is processed and amplified according to the distance from the current viewpoint, so that the identification plate which cannot be displayed or is too small to be recognized after being transmitted according to the real size can be correctly identified.
2) The color display and the text size adaptation of each signboard are processed, and the change process is smoothly processed, so that continuous change in the whole display period is ensured when the train view approaches.
3) The amplified penetration problem is solved, the specific signboard is highlighted, and the identifiability is improved; meanwhile, a plurality of means can be combined and flexibly used, and the identification problem of the signboard in the current simulation training scene can be basically processed.
4) Compared with the snapshot displayed in the modes of simple amplification, popup and the like, the scheme is more in line with the real scene, and the problems of rendering distortion and non-line with reality are avoided.
Drawings
FIG. 1 is a flow chart of a method for displaying a signboard.
Detailed Description
The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present invention, based on the embodiments of the present invention.
Referring to fig. 1, a first aspect of the present invention provides: a signboard displaying method comprising the steps of:
Acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to increase along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
When the viewpoint distance is smaller than or equal to the vanishing distance, the spatial position of the signboard is moved, and the spatial position movement value is increased along with the increase of the viewpoint distance;
Correcting the color of the signboard by using a color correction method; the character correction method is used for correcting the characters of the signboard.
In this embodiment, the viewpoint distance, that is, the actual distance between the current viewpoint and the target (signboard) is the distance between two points in the 3D space, which can be directly obtained by simply using a two-point distance calculation formula; the distance can be identified, namely, the distance can be directly and correctly identified without any treatment on the observed target, and the distance is generally very close; the vanishing distance, namely the farthest identifiable distance to the observed target, does not have any relation even if the target cannot be identified correctly after exceeding the distance, and does not affect the use. The viewpoint distance gradually increases from 0 to an identifiable distance, the optimization system starts to intervene, then increases to a vanishing distance, and the optimization system starts to exit. The range from the distance to the vanishing distance can be identified as the range in which the optimizing system works (optimizes the signboard).
The vanishing distance, the identifiable distance, the gradation coefficient and the spatial position movement value are values set according to an actual working environment, and are not fixed to a specific value. Firstly, configuring a threshold value of a recognizable distance on each signboard, and displaying that the original size is not matched when the distance between the threshold value and the viewpoint is smaller than the threshold value; the identification plate is amplified from exceeding the identifiable distance threshold value to reaching the disappearing distance range so as to keep the identification plate identifiable; after the vanishing distance is exceeded, the actual size of the signboard is gradually recovered from the amplification, and the effect achieved after the superposition perspective calculation is gradually vanished from the screen; starting scanning from the viewpoint, recording the most recent to the most distant identification plates, and sequentially processing the identification plates reaching the threshold range according to the distance sequence; putting the effective resolution of the screen or projector as a coefficient into an algorithm to cope with different situations; respectively processing different kinds of identification plates, and independently configuring parameters such as identifiable distance, vanishing distance and the like; the adaptation process is updated according to the real-time frame rate, so that the change process is smooth and unobtrusive, and the synchronism is maintained.
In some embodiments, different identifiable distance, vanishing distance, and spatial position movement values are set for different kinds of signs.
In this embodiment, appropriate displacement is designed due to possible penetration of surrounding objects after amplification, and the values are respectively arranged on specific identification plates; the center point of displacement is usually the junction with the ground and can be customized; the displacement direction may be downward or upward.
In some embodiments, the color correction method includes the steps of:
Taking the geometric center point of the signboard as the geometric center point of the sampling picture, and intercepting the sampling picture by taking the preset radius as the sampling radius; and then obtaining the average color of the sampling picture, carrying out hue movement on the average color to obtain the background contrast color, and correcting the color of the signboard by using the background contrast color.
In this embodiment, the preset radius is a value set according to the actual working environment, and is not fixed to a specific value. The color of the signboard is corrected to a certain extent due to the difference of different display devices, such as color reduction degree, brightness and the like (such as a projector), for example, the contrast is directly improved; the screen capture of the signboard area is in a certain range, the average color of the picture is sampled, the background contrast color is obtained after the hue is moved, and the background contrast color is used as a color correction parameter, so that the color of the signboard insensitive to the color can be greatly modified.
In some embodiments, the text correction method includes the steps of:
Extracting text content and text color in the signboard; then, replacing the text content by using a vector font, and performing hue movement on the text color to obtain a text contrast color; the text contrasting color is then used as the sign background color.
In this embodiment, after extracting text content, vector font substitution is used; the background of the signboard directly uses the contrast color of the text color.
In some embodiments, a luminous special effect with preset brightness is set on the outer outline of the signboard.
In this embodiment, the outline highlighting is added.
Examples of two specific applications are given below.
Embodiment 1 is directed to an embodiment of an on-board display screen for driving training of a vehicle. In this embodiment, the warning mark is 200m in front of the viewpoint. And configuring a distance parameter corresponding to the warning mark, wherein the vanishing distance threshold value is 400 meters, and the expected visual range threshold value is 200 meters.
According to the actual situation, when the current distance is smaller than 200 meters, displaying the actual size without any treatment; when the viewpoint distance is greater than 200 meters and less than 400 meters, the size of the warning mark is amplified along with the change of the distance so as to be visible, and the size of the pixel range of the warning mark on the screen is kept almost unchanged, namely the minimum 3 pixels in the embodiment. When the viewpoint distance exceeds 400 meters, the warning mark starts to gradually shrink back to the original size, and finally gradually disappears. The police mark is relative to the ground, and a part of the police mark falls into the ground after being amplified, so that the police mark is adapted to be displaced upwards after being amplified, and the change of the whole process is consistent and smooth.
Embodiment 2 is directed to an embodiment of an on-board display screen for driving training of a vehicle. In this embodiment, the stop sign is 200m in front of the viewpoint. And configuring distance parameters corresponding to the parking mark, wherein the vanishing distance threshold value is 300 meters, and the expected visual range threshold value is 100 meters.
According to the actual situation, when the current distance is smaller than 100 meters, displaying the actual size without any treatment; when the viewpoint distance is greater than 100 meters and less than 300 meters, the size of the warning mark is enlarged with the distance change to be visible, and the size of the pixel range of the stop mark on the screen is kept almost unchanged, namely the minimum 5 pixels in the embodiment. When the viewpoint distance exceeds 300 meters, the stop mark starts to gradually shrink back to the original size, and finally gradually disappears.
The parking mark characters (the parking position of the motor train unit) are extracted, and the vector characters are changed into pure white. The parking mark base color uses ambient color to enhance contrast, with blue highlighting.
A second aspect of the invention provides: the driving training device is used for realizing any one of the display methods of the signboard, and comprises the following steps:
The viewpoint distance acquisition module is used for acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to be increased along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
The signboard moving module is used for moving the spatial position of the signboard when the viewpoint distance is smaller than or equal to the vanishing distance, and the spatial position moving value is increased along with the increase of the viewpoint distance;
the signboard correcting module is used for correcting the signboard color by using a color correcting method; the character correction method is used for correcting the characters of the signboard.
A third aspect of the invention provides: a computer readable storage medium having stored therein computer executable instructions that when loaded and executed by a processor implement any of the above-described methods of displaying a signboard.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (7)

1. A method of displaying a sign, comprising the steps of:
Acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to increase along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
When the viewpoint distance is smaller than or equal to the vanishing distance, the spatial position of the signboard is moved, and the spatial position movement value is increased along with the increase of the viewpoint distance;
Correcting the color of the signboard by using a color correction method; the character correction method is used for correcting the characters of the signboard.
2. The signboard display method of claim 1 wherein different identifiable distances, vanishing distances and spatial position shift values are set for different kinds of signboard.
3. The signboard displaying method of claim 1 wherein the color correction method includes the steps of:
Taking the geometric center point of the signboard as the geometric center point of the sampling picture, and intercepting the sampling picture by taking the preset radius as the sampling radius; and then obtaining the average color of the sampling picture, carrying out hue movement on the average color to obtain the background contrast color, and correcting the color of the signboard by using the background contrast color.
4. The signboard displaying method of claim 1 wherein the character correcting method comprises the steps of:
Extracting text content and text color in the signboard; then, replacing the text content by using a vector font, and performing hue movement on the text color to obtain a text contrast color; the text contrasting color is then used as the sign background color.
5. The signboard display method of claim 1 wherein a luminous special effect of a preset brightness is set at an outer contour of the signboard.
6. A driving training device for implementing the signboard display method of any one of claims 1 to 5, comprising:
The viewpoint distance acquisition module is used for acquiring the viewpoint distance of the signboard, and setting a gradual change coefficient to control the display size of the display model of the signboard to be increased along with the reduction of the viewpoint distance when the viewpoint distance is smaller than or equal to the vanishing distance and larger than or equal to the identifiable distance; the larger the value of the gradient coefficient is, the larger the increment of the display size is when the viewpoint distance is reduced by a unit length, wherein the unit length is the viewpoint distance change length of the adjacent frame images; when the viewpoint distance is smaller than the identifiable distance, displaying the original size of the signboard; when the viewpoint distance is larger than the vanishing distance, the signboard is not displayed; the vanishing distance is greater than the identifiable distance;
The signboard moving module is used for moving the spatial position of the signboard when the viewpoint distance is smaller than or equal to the vanishing distance, and the spatial position moving value is increased along with the increase of the viewpoint distance;
the signboard correcting module is used for correcting the signboard color by using a color correcting method; the character correction method is used for correcting the characters of the signboard.
7. A computer readable storage medium having stored therein computer executable instructions which when loaded and executed by a processor implement the method of displaying a sign as claimed in any one of claims 1 to 5.
CN202410578640.4A 2024-05-11 2024-05-11 Signboard display method, driving training device and storage medium Pending CN118155479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410578640.4A CN118155479A (en) 2024-05-11 2024-05-11 Signboard display method, driving training device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410578640.4A CN118155479A (en) 2024-05-11 2024-05-11 Signboard display method, driving training device and storage medium

Publications (1)

Publication Number Publication Date
CN118155479A true CN118155479A (en) 2024-06-07

Family

ID=91293773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410578640.4A Pending CN118155479A (en) 2024-05-11 2024-05-11 Signboard display method, driving training device and storage medium

Country Status (1)

Country Link
CN (1) CN118155479A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020057280A1 (en) * 2000-11-24 2002-05-16 Mahoro Anabuki Mixed reality presentation apparatus and control method thereof
CN101819678A (en) * 2010-03-16 2010-09-01 昆明理工大学 Calibration method of three-dimensional virtual image of driving analog system
CN102164238A (en) * 2006-01-10 2011-08-24 松下电器产业株式会社 Color correction device, color correction method, dynamic camera color correction device, and video search device using the same
KR20160000472A (en) * 2014-06-24 2016-01-05 (주)이노시뮬레이션 Train driving simulation system and method of controlling the same
CN118135867A (en) * 2024-05-06 2024-06-04 成都运达科技股份有限公司 Signal equipment display method, driving training device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020057280A1 (en) * 2000-11-24 2002-05-16 Mahoro Anabuki Mixed reality presentation apparatus and control method thereof
CN102164238A (en) * 2006-01-10 2011-08-24 松下电器产业株式会社 Color correction device, color correction method, dynamic camera color correction device, and video search device using the same
CN102164287A (en) * 2006-01-10 2011-08-24 松下电器产业株式会社 Color correction device and color correction method
CN101819678A (en) * 2010-03-16 2010-09-01 昆明理工大学 Calibration method of three-dimensional virtual image of driving analog system
KR20160000472A (en) * 2014-06-24 2016-01-05 (주)이노시뮬레이션 Train driving simulation system and method of controlling the same
CN118135867A (en) * 2024-05-06 2024-06-04 成都运达科技股份有限公司 Signal equipment display method, driving training device and storage medium

Similar Documents

Publication Publication Date Title
CN110650368B (en) Video processing method and device and electronic equipment
US7339516B2 (en) Method to provide graphical representation of Sense Through The Wall (STTW) targets
US20140285523A1 (en) Method for Integrating Virtual Object into Vehicle Displays
CN116681870A (en) Overlay contrast control in augmented reality displays
DE112013002354T5 (en) A method for generating virtual display surfaces from video images of a road-based landscape
EP3571668B1 (en) Overlay emphasis modification in augmented reality displays
JP2010113335A (en) Marker recognition method using dynamic threshold, and learning system based on enhancement reality utilizing the same
JP2011217764A (en) Correction value computing device, correction value computing method, and correction value computing program
KR101539781B1 (en) Method for visualizing a change caused by scrolling in a scrolling direction of a section of a text and/or graphic displayed on an optical display means
GB2578510A (en) Environment map generation and hole filling
EP1355276A3 (en) System and method for distance adjusted rendering
CN102783131A (en) Data-generating device, data-generating method, data-generating program, and recording medium
CN113835703B (en) Method for drawing automatic driving monitoring visual map at WEB front end
EP1708141A3 (en) Character image generation
US11205405B2 (en) Content arrangements on mirrored displays
CN118155479A (en) Signboard display method, driving training device and storage medium
JP2013210793A (en) System, method, and program for optimizing ar display
Chatterjee et al. Vision improvement system using image processing technique for adverse weather condition of opencast mines
KR20100086128A (en) A situational training system based on the mixed reality
US20100053193A1 (en) Data creating apparatus and drawing apparatus
CN113792564B (en) Indoor positioning method based on invisible projection two-dimensional code
CN106445208B (en) A method of the mark figure based on serial ports follows display
CN111599011B (en) Power system scene rapid construction method and system based on WebGL technology
CN118135867B (en) Signal equipment display method, driving training device and storage medium
CN113902927A (en) Comprehensive information processing method fusing image and point cloud information

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination