WO2019033615A1 - Method for displaying character string in virtual reality scene, and head-mounted display device - Google Patents

Method for displaying character string in virtual reality scene, and head-mounted display device Download PDF

Info

Publication number
WO2019033615A1
WO2019033615A1 PCT/CN2017/113974 CN2017113974W WO2019033615A1 WO 2019033615 A1 WO2019033615 A1 WO 2019033615A1 CN 2017113974 W CN2017113974 W CN 2017113974W WO 2019033615 A1 WO2019033615 A1 WO 2019033615A1
Authority
WO
WIPO (PCT)
Prior art keywords
displayed
character string
character
string
text label
Prior art date
Application number
PCT/CN2017/113974
Other languages
French (fr)
Chinese (zh)
Inventor
陈晨
Original Assignee
歌尔科技有限公司
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 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2019033615A1 publication Critical patent/WO2019033615A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Definitions

  • the present invention relates to the field of virtual reality technologies, and in particular, to a character string display method and a head mounted display device in a virtual display scene.
  • Unity is a fully integrated professional game engine that is powerful and easy to use. With the development of VR (virtual reality) technology, more and more VR resources use Unity as a development platform.
  • VR virtual reality
  • the file path name, folder name, application name, and picture name associated with the VR resource often have too long a string content.
  • a character string is displayed, if the character size is adjusted according to the human eye standard, a fixed-length text label can only display a limited number of characters, so that the character content beyond the length of the text label cannot be completely displayed; The length of the character is adjusted, and it is inevitable to reduce the size of the characters to display all the characters, resulting in a small character that cannot be seen clearly.
  • the invention provides a character string display method and a head-mounted display device in a virtual display scene, which realizes a scroll display effect of a character string in a fixed length text label.
  • the present invention provides a method for displaying a character string in a virtual display scene, including:
  • the target character string is displayed within the text label.
  • the method further includes: when the rightmost character of the character string to be displayed is displayed in the text label, re-following from left to right The starting characters are sequentially selected one by one from the string to be displayed.
  • the method further includes: determining a length of the character string to be displayed according to the number of characters, a font, and a font size of the character string to be displayed.
  • displaying the target character string in the text label comprises: displaying the target character string to the left in the text label.
  • displaying the target character string in the text label includes: displaying, after detecting that the focus of the virtual camera in the VR scene falls within an area where the text label is located, displaying in the text label The target string.
  • the present invention also provides a head mounted display device including a memory and a processor;
  • the memory is configured to: store one or more computer instructions
  • the processor is configured to execute the one or more computer instructions for: when the length of the character string to be displayed is greater than the length of the text label, select one by one from the left to right order a start character; a character string starting from the start character is selected as a target character string; and the target character string is displayed in the text tag.
  • the processor is further configured to: when the rightmost character of the to-be-displayed character string is displayed in the text label, re-send the character string to be displayed one by one from left to right Select the starting character.
  • the processor is further configured to: determine a length of the character string to be displayed according to the number of characters, a font, and a font size of the character string to be displayed.
  • the processor is configured to: display the target character string to the left in the text label.
  • the processor is further configured to: detect a virtual camera in the VR scene The focus falls on the area where the text label is located, and the target character string is displayed in the text label.
  • the character string display method and the head-mounted display device in the virtual reality scene provided by the present invention when the length of the character string to be displayed is greater than the length of the text label, is selected from the string to be displayed one by one from left to right.
  • the first character Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label.
  • FIG. 1 is a flowchart of a method for displaying a character string in a virtual reality scene according to an embodiment of the present invention
  • FIG. 2a is a flowchart of a method for displaying a character string in another virtual reality scenario according to an embodiment of the present invention
  • 2b is a schematic diagram showing target strings displayed one by one in a text label according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a head mounted display device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing the internal configuration of the head mounted display device 400 in some embodiments provided by the present invention.
  • FIG. 1 is a flowchart of a method for displaying a character string in a virtual reality scene according to an embodiment of the present invention. Referring to FIG. 1, the method includes:
  • Step 101 When the length of the character string to be displayed is greater than the length of the text label, the starting characters are selected one by one from the left to right sequence.
  • Step 102 In the character string to be displayed, select a character string starting from the start character as a target character string.
  • Step 103 Display the target character string in the text label.
  • the character string to be displayed includes letters, numbers, special symbols, and the like, and may be a file path name, a folder name, an application name, and a picture name that need to be displayed.
  • the length of the string to be displayed indicates the amount of display space occupied by the string to be displayed.
  • a text label which can be a display area for displaying a string.
  • the length of the text label indicating the fixed size of the text label within which a certain number of characters having a particular style and font size can be accommodated and displayed.
  • the start character is the character in the string to be displayed. When the character string displayed in the text label is selected from the string to be displayed, the start character determines from which character to start.
  • the start character when the start character is selected from the characters to be displayed, it can be selected one by one in order from left to right. For example, when the start character is first selected from a character string to be displayed, the first character from the left of the character string to be displayed may be selected; when the start character is selected the second time, the character string to be displayed may be considered as the left word. The first character has been read by the user and does not need to be displayed. In this case, the second character from the left of the character string to be displayed can be selected as the starting character. And so on, no longer repeat them.
  • the target string is a string for displaying directly on the text label, and the target string may be a string to be displayed or a part of the string to be displayed.
  • the character to be displayed on the left side of the start character in the character string to be displayed is discarded, and the character string starting from the start character in the character string to be displayed may be used as the target character string.
  • the target character string is the character string to be displayed.
  • the target string is a string consisting of characters other than the leftmost character in the string to be displayed.
  • the target string is a string consisting of characters other than the n-1 character to the left of the nth character in the string to be displayed.
  • the target string is displayed within the text label.
  • the display order of the target string is associated with the corresponding starting character in the order in which the strings to be displayed are arranged. It can be considered that when the target character string is displayed in the text label, the target character string corresponding to the start character is displayed one by one according to the order of the start characters from left to right, and the two target character strings are displayed with a certain time interval. .
  • the target string is always displayed to the left within the text label. Further, as the start character changes from left to right, the entire character string displayed in the text label is displayed to scroll left.
  • the character string display method when the length of the character string to be displayed is greater than the length of the text label, selects the start character from the string to be displayed one by one in order from left to right. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label.
  • FIG. 2a is a flowchart of a method for displaying a character string in another virtual reality scenario according to an embodiment of the present invention. Referring to FIG. 2a, the method includes:
  • Step 201 Determine a length of a character string to be displayed.
  • Step 202 Determine whether the length of the character string to be displayed is greater than the length of the text label. If yes, go to step 203; if no, display the character string to be displayed in the text label.
  • Step 203 In the string to be displayed, determine the word corresponding to the character in the order of increasing from left to right. Symbol number.
  • Step 205 Select an ith character in the string to be displayed as the start character.
  • Step 206 In the character string to be displayed, select a character string starting from the start character as the target character string.
  • Step 207 The target character string is always displayed to the left in the text label.
  • Step 208 Determine whether the rightmost character of the character string to be displayed is displayed in the text label. If yes, go to step 204; if no, go to step 209.
  • the length of the character string to be displayed may be determined according to the number of characters, the font, and the font size of the character string to be displayed.
  • the font may include the spacing between the characters in the string, the glyph of the character or whether the character has a bold attribute or the like.
  • the length of a single character can be determined, and the length of the character string to be displayed can be determined by combining the number of characters.
  • the length of the character to be displayed may be combined with the length of the text label to determine whether the length of the character to be displayed is greater than the length of the text label. If the length of the character to be displayed is less than or equal to the length of the text label, the text label can be considered as a complete display of the character string to be displayed. In this case, the character string to be displayed can be directly sent to the text label for display.
  • step 203 and subsequent steps may be performed to scroll the characters in the string to be displayed in the text label. Display to completely display the string to be displayed.
  • the character number corresponding to the character is determined in descending order from left to right, and the leftmost character in the character string to be displayed is numbered 1, and the leftmost character is numbered 2, 3, ... in order.
  • N is the total number of characters in the string to be displayed.
  • the start character and the character to the right of the start character can be used as the target string.
  • the character number of the start character is 2
  • the target character string is a character string consisting of characters numbered 2 ⁇ 10 in the string to be displayed. If the character number of the start character is 5, the target character string is 5 to 10 in the string to be displayed.
  • the character consists of a string.
  • the target string is always displayed to the left in the text label. It should be understood that as the starting characters change from left to right one by one, the target string also changes. If the target string is always displayed to the left, as the target string changes, the text label will render the string to be displayed continuously scrolling to the left.
  • FIG. 2b is a schematic diagram showing the target character strings displayed one by one in the text label according to the embodiment of the present invention; as shown in FIG. 2b, the character string to be displayed is: GaSfgw3E6wwGERE3WE6F.
  • the start character is selected one by one according to the order of characters from left to right
  • the first start character is G
  • the corresponding first target character string is: GaSfgw3E6wwGERE3WE6F.
  • the display effect of the first target string can be as shown in Fig. 2b.
  • the first target string cannot be completely displayed.
  • the second starting character is a
  • the corresponding second target string is: aSfgw3E6wwGERE3WE6F.
  • the start character is selected one by one according to the order of characters from left to right, and the third start character S, the fourth start character f, the fifth start character g, and the sixth start can be obtained.
  • the character w and its corresponding target string are not described here.
  • the start characters are selected one by one from left to right, and each time the operation of selecting the start character can be regarded as removing a character that has been displayed on the left side, thereby displaying a waiting in the text label. Displays undisplayed characters in the string. Therefore, this step can determine whether the character string to be displayed is completely displayed on the text label by determining whether the rightmost character of the character string to be displayed is displayed on the text label. If it is fully displayed, you do not need to remove the displayed characters.
  • the string to be displayed is considered to be completely displayed. At this time, the display of the string can be paused, the current display state can be maintained, or the left-to-right position can be restarted.
  • the starting characters are selected one by one in order.
  • step 204 may be performed to restart starting from left to right. The first character.
  • step 209 if the rightmost character of the character string to be displayed has not been displayed in the text label, the selection of the start character string may be continued to remove the displayed character. Character to be displayed in the string The numbering order is incremented from left to right, so the character number of the next starting character is obtained by adding 1 to the character number of the current starting character. After the character number of the next start character is obtained, step 205 can be performed to select the start character from the string to be displayed and perform the subsequent steps.
  • the character string display method when the length of the character string to be displayed is greater than the length of the text label, selects the start character from the string to be displayed one by one in order from left to right. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label.
  • the process of displaying the VR scene it is possible to continuously detect whether the focus of the virtual camera (VR Camera) in the VR scene falls within the area where the text label is located. If it is detected that the focus of the virtual camera falls in the area where the text label is located, the user's line of sight falls on the text label, and the display process of the target character string can be started in the text label.
  • VR Camera virtual camera
  • the implementation of the underlying technology may have the following feasible implementation manners: first, add a bounding box to the text label, and start with the location of the VRCamera. , create a ray along the direction of observation.
  • the observation direction may be acquired according to a gyroscope, an inertial sensor, and/or a triaxial acceleration sensor on the VR wearing device, and further, the ray may change as the viewing direction of the user changes.
  • FIG. 3 is a schematic structural diagram of a head mounted display device according to an embodiment of the present invention.
  • the device includes a memory 31 and a processor 32.
  • the memory 31 is configured to: store one or more computer instructions.
  • the processor 32 is configured to execute the one or more computer instructions for: when the length of the character string to be displayed is greater than the length of the text label, the character string to be displayed one by one in order from left to right Selecting a start character; selecting a character string starting from the start character as a target character string; displaying the target character string in the text label.
  • the processor 32 is further configured to: when the rightmost character of the to-be-displayed character string is displayed in the text label, re-display the character to be displayed one by one from left to right. Select the starting character in the string.
  • the processor 32 is further configured to: determine the length of the character string to be displayed according to the number, the font and the font size of the character string to be displayed.
  • the processor 32 is configured to: display the target character string to the left in the text label.
  • the processor 32 is further configured to display the target character string in the text label when detecting that a focus of the virtual camera in the VR scene falls within an area where the text label is located.
  • the head mounted display device comprises: a virtual reality head mounted display device or an augmented reality head mounted display device.
  • the head-mounted display device of the present invention selects a start character from the to-be-displayed character string one by one in order from left to right when the length of the character string to be displayed is greater than the length of the text label. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label.
  • the electronic device may be an external head mounted display device or an integrated head mounted display device, wherein the external head mounted display device needs to be used in conjunction with an external processing system (eg, a computer processing system).
  • an external processing system eg, a computer processing system
  • FIG. 4 shows a schematic diagram of the internal configuration of the head mounted display device 400 in some embodiments.
  • the display unit 401 may include a display panel disposed on a side surface of the head mounted display device 400 facing the user's face, and may be a one-piece panel or left and right panels respectively corresponding to the left and right eyes of the user.
  • the display panel may be an electroluminescence (EL) element, a liquid crystal display or a microdisplay having a similar structure, or a laser-scanned display in which the retina may be directly displayed or similar.
  • EL electroluminescence
  • the virtual image optical unit 402 photographs the image displayed by the display unit 401 in an enlarged manner and allows the user to observe the displayed image in the enlarged virtual image.
  • the display image outputted to the display unit 401 it may be an image of a virtual scene supplied from a content reproduction device (a Blu-ray disc or a DVD player) or a streaming server, or an image of a real scene photographed using an external camera 410.
  • virtual image optical unit 402 can include a lens unit, such as a spherical lens, an aspheric lens, a Fresnel lens, and the like.
  • the input operation unit 403 includes at least one operation member for performing an input operation, such as a button, a button, a switch, or other similarly functioned component, receives a user instruction through the operation member, and outputs an instruction to the control unit 407.
  • an input operation such as a button, a button, a switch, or other similarly functioned component
  • the status information acquisition unit 404 is configured to acquire status information of the user wearing the head mounted display device 400.
  • the status information acquisition unit 404 may include various types of sensors for detecting status information by itself, and may acquire status information from an external device such as a smartphone, a wristwatch, and other multi-function terminals worn by the user through the communication unit 405.
  • the status information acquisition unit 404 can acquire location information and/or posture information of the user's head.
  • the status information acquisition unit 404 may include one or more of a gyro sensor, an acceleration sensor, a global positioning system (GPS) sensor, a geomagnetic sensor, a Doppler effect sensor, an infrared sensor, and a radio frequency field intensity sensor.
  • GPS global positioning system
  • the state information acquisition unit 404 acquires state information of the user wearing the head-mounted display device 400, for example, acquires, for example, an operation state of the user (whether the user wears the head-mounted display device 400), an action state of the user (such as standing, walking, running) And the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
  • an operation state of the user whether the user wears the head-mounted display device 400
  • an action state of the user such as standing, walking, running
  • the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
  • the communication unit 405 performs communication processing, modulation and demodulation processing with an external device, and encoding and decoding processing of the communication signal.
  • the control unit 407 can transmit transmission data from the communication unit 405 to an external device.
  • Communication can be in wired or wireless form, such as Mobile High Definition Link (MHL) or Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Wireless Fidelity (Wi-Fi), Bluetooth communication or Bluetooth low energy communication, and mesh networks of the IEEE 802.11s standard.
  • communication unit 405 can be a cellular wireless transceiver that operates in accordance with Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and the like.
  • W-CDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • the head mounted display device 400 can also include a storage unit, which is a mass storage device configured to have a solid state drive (SSD) or the like.
  • storage unit 406 can store applications or various types of data. For example, content viewed by the user using the head mounted display device 400 may be stored in the storage unit 406.
  • the head mounted display device 400 can also include a control unit, and the control unit 407 can include a computer processing unit (CPU) or other device having similar functionality.
  • control unit 407 can be used to execute an application stored by storage unit 406, or control unit 407 can also be used to perform the methods, functions, and operations disclosed in some embodiments of the present application.
  • the image processing unit 408 is for performing signal processing such as image quality correction related to the image signal output from the control unit 407, and converting its resolution into a resolution according to the screen of the display unit 401. Then, the display driving unit 409 sequentially selects each row of pixels of the display unit 401, and sequentially scans each row of pixels of the display unit 401 line by line, thereby providing pixel signals based on the signal-processed image signals.
  • the head mounted display device 400 can also include an external camera.
  • the external camera 410 may be disposed on the front surface of the body of the head mounted display device 400, and the external camera 410 may be one or more.
  • the external camera 410 can acquire three-dimensional information and can also be used as a distance sensor.
  • a position sensitive detector (PSD) or other type of distance sensor that detects reflected signals from the object can be used with the external camera 410.
  • PSD position sensitive detector
  • the external camera 410 and the distance sensor can be used to detect the body position, posture, and shape of the user wearing the head mounted display device 400. In addition, under certain conditions, the user can directly view or preview the real scene through the external camera 410.
  • the head mounted display device 400 may further include a sound processing unit 411 that may perform sound quality correction or sound amplification of the sound signal output from the control unit 407, signal processing of the input sound signal, and the like. Then, the sound input/output unit 412 is after the sound processing Output sound to the outside and input sound from the microphone.
  • a sound processing unit 411 may perform sound quality correction or sound amplification of the sound signal output from the control unit 407, signal processing of the input sound signal, and the like. Then, the sound input/output unit 412 is after the sound processing Output sound to the outside and input sound from the microphone.
  • the structure or component illustrated by the dashed line in FIG. 4 may be independent of the head mounted display device 400, for example, may be disposed in an external processing system (eg, a computer system) for use with the head mounted display device 400; or The structure or components shown by the dashed box may be disposed inside or on the surface of the head mounted display device 400.
  • an external processing system eg, a computer system
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Optics & Photonics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided in the present invention are a method for displaying a character string in a virtual reality scene, and a head-mounted display device. The method comprises the following steps: when the length of a character string to be displayed is greater than the length of a text tag, selecting a starting character from the character string to be displayed one by one from left to right; in the character string to be displayed, selecting a character string starting from the starting character to be a target character string; and displaying the target character string in the text tag. The technical solution of the present invention implements the scrolling display of a character string in a text tag of a fixed length.

Description

虚拟现实场景中字符串显示方法及头戴显示设备Character string display method and head-mounted display device in virtual reality scene
交叉引用cross reference
本申请引用于2017年8月16日递交的名称为“虚拟显示场景中字符串显示方法及头戴显示设备”的第2017107024918号中国专利申请,其通过引用被全部并入本申请。The present application is hereby incorporated by reference in its entirety in its entirety in its entirety in its entirety in the the the the the the the the the the the the the
技术领域Technical field
本发明涉及虚拟现实技术领域,尤其涉及一种虚拟显示场景中字符串显示方法及头戴显示设备。The present invention relates to the field of virtual reality technologies, and in particular, to a character string display method and a head mounted display device in a virtual display scene.
背景技术Background technique
Unity作为一个全面整合的专业游戏引擎,功能强大且使用便捷。随着VR(virtual reality)技术的发展,越来越多的VR资源采用Unity作为开发平台。Unity is a fully integrated professional game engine that is powerful and easy to use. With the development of VR (virtual reality) technology, more and more VR resources use Unity as a development platform.
VR场景中,VR资源相关的文件路径名称、文件夹名称、应用名称以及图片名称等常出现字符串内容过长的现象。VR场景中,在显示字符串时,如果根据人眼视觉标准调整字符大小,则固定长度的文本标签只能显示有限数量的字符,导致超出文本标签长度的字符内容无法完整显示;如果根据文本标签的长度调整字符大小,则不可避免地需要缩小字符的大小以显示所有字符,导致字符很小无法看清。In a VR scenario, the file path name, folder name, application name, and picture name associated with the VR resource often have too long a string content. In a VR scene, when a character string is displayed, if the character size is adjusted according to the human eye standard, a fixed-length text label can only display a limited number of characters, so that the character content beyond the length of the text label cannot be completely displayed; The length of the character is adjusted, and it is inevitable to reduce the size of the characters to display all the characters, resulting in a small character that cannot be seen clearly.
因此,如何在固定长度的文本标签内显示符合人眼视觉标准的字符串成为亟待解决的问题。Therefore, how to display a string conforming to the human visual standard within a fixed-length text label has become an urgent problem to be solved.
发明内容Summary of the invention
本发明提供一种虚拟显示场景中字符串显示方法及头戴显示设备,实现了字符串在固定长度的文本标签中的滚动显示效果。The invention provides a character string display method and a head-mounted display device in a virtual display scene, which realizes a scroll display effect of a character string in a fixed length text label.
本发明提供一种虚拟显示场景中字符串显示方法,包括:The present invention provides a method for displaying a character string in a virtual display scene, including:
在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个 从所述待显示字符串中选取起始字符;When the length of the string to be displayed is greater than the length of the text label, one by one from left to right Selecting a starting character from the string to be displayed;
选取自所述起始字符开始的字符串作为目标字符串;Select a string starting from the start character as the target string;
在所述文本标签内显示所述目标字符串。The target character string is displayed within the text label.
进一步可选地,在所述文本标签内显示所述目标字符串之后,还包括:在所述待显示字符串的最右边的字符显示在所述文本标签内时,重新按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。Further optionally, after displaying the target character string in the text label, the method further includes: when the rightmost character of the character string to be displayed is displayed in the text label, re-following from left to right The starting characters are sequentially selected one by one from the string to be displayed.
进一步可选地,还包括:根据所述待显示字符串包含的字符的数量、字体和字号确定所述待显示字符串的长度。Further optionally, the method further includes: determining a length of the character string to be displayed according to the number of characters, a font, and a font size of the character string to be displayed.
进一步可选地,在所述文本标签内显示所述目标字符串,包括:在所述文本标签内始终靠左显示所述目标字符串。Further optionally, displaying the target character string in the text label comprises: displaying the target character string to the left in the text label.
进一步可选地,在所述文本标签内显示所述目标字符串,包括:在检测到所述VR场景中的虚拟摄像头的焦点落在所述文本标签所在区域时,在所述文本标签内显示所述目标字符串。Further optionally, displaying the target character string in the text label includes: displaying, after detecting that the focus of the virtual camera in the VR scene falls within an area where the text label is located, displaying in the text label The target string.
本发明还提供一种头戴显示设备,包括存储器以及处理器;The present invention also provides a head mounted display device including a memory and a processor;
所述存储器用于:存储一条或多条计算机指令;The memory is configured to: store one or more computer instructions;
所述处理器用于执行所述一条或多条计算机指令,以用于:在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符;选取自所述起始字符开始的字符串作为目标字符串;在所述文本标签内显示所述目标字符串。The processor is configured to execute the one or more computer instructions for: when the length of the character string to be displayed is greater than the length of the text label, select one by one from the left to right order a start character; a character string starting from the start character is selected as a target character string; and the target character string is displayed in the text tag.
进一步可选地,所述处理器还用于:在所述待显示字符串的最右边的字符显示在所述文本标签内时,重新按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。Further optionally, the processor is further configured to: when the rightmost character of the to-be-displayed character string is displayed in the text label, re-send the character string to be displayed one by one from left to right Select the starting character.
进一步可选地,所述处理器还用于:根据所述待显示字符串包含的字符的数量、字体和字号确定所述待显示字符串的长度。Further optionally, the processor is further configured to: determine a length of the character string to be displayed according to the number of characters, a font, and a font size of the character string to be displayed.
进一步可选地,所述处理器用于:在所述文本标签内始终靠左显示所述目标字符串。Further optionally, the processor is configured to: display the target character string to the left in the text label.
进一步可选地,所述处理器还用于:在检测到所述VR场景中的虚拟摄像头 的焦点落在所述文本标签所在区域时,在所述文本标签内显示所述目标字符串。Further optionally, the processor is further configured to: detect a virtual camera in the VR scene The focus falls on the area where the text label is located, and the target character string is displayed in the text label.
本发明提供的虚拟现实场景中字符串显示方法及头戴显示设备,在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。基于该起始字符,从待显示字符串中获取自该起始字符开始的字符串作为目标字符串并在文本标签显示该目标字符串。采用这样的技术方案,解决了现有技术中无法在固定长度的文本标签中显示符合人眼视觉标准的字符串的缺陷,实现了字符串在固定长度的文本标签中的滚动显示效果。The character string display method and the head-mounted display device in the virtual reality scene provided by the present invention, when the length of the character string to be displayed is greater than the length of the text label, is selected from the string to be displayed one by one from left to right. The first character. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label. With such a technical solution, the defect that the character string conforming to the human eye visual standard cannot be displayed in the fixed length text label in the prior art is solved, and the scroll display effect of the character string in the fixed length text label is realized.
附图说明DRAWINGS
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1是本发明实施例提供的一虚拟现实场景中字符串显示方法的方法流程图;1 is a flowchart of a method for displaying a character string in a virtual reality scene according to an embodiment of the present invention;
图2a是本发明实施例提供的另一虚拟现实场景中字符串显示方法的方法流程图;2a is a flowchart of a method for displaying a character string in another virtual reality scenario according to an embodiment of the present invention;
图2b是本发明实施例提供的目标字符串在文本标签中逐个显示的示意图;2b is a schematic diagram showing target strings displayed one by one in a text label according to an embodiment of the present invention;
图3是本发明实施例提供的头戴显示设备的结构示意图;3 is a schematic structural diagram of a head mounted display device according to an embodiment of the present invention;
图4是本发明提供的一些实施例中头戴显示设备400的内部配置结构示意图。FIG. 4 is a schematic diagram showing the internal configuration of the head mounted display device 400 in some embodiments provided by the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1是本发明实施例提供的一虚拟现实场景中字符串显示方法的方法流程图,结合图1,该方法包括:1 is a flowchart of a method for displaying a character string in a virtual reality scene according to an embodiment of the present invention. Referring to FIG. 1, the method includes:
步骤101、在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。Step 101: When the length of the character string to be displayed is greater than the length of the text label, the starting characters are selected one by one from the left to right sequence.
步骤102、在所述待显示字符串中,选取自所述起始字符开始的字符串作为目标字符串。Step 102: In the character string to be displayed, select a character string starting from the start character as a target character string.
步骤103、在所述文本标签内显示所述目标字符串。Step 103: Display the target character string in the text label.
针对步骤101,待显示字符串包括字母、数字以及特殊符号等,可以是需要被显示的文件路径名称、文件夹名称、应用名称以及图片名称。待显示字符串的长度,指示了待显示字符串所占的显示空间的多少。For step 101, the character string to be displayed includes letters, numbers, special symbols, and the like, and may be a file path name, a folder name, an application name, and a picture name that need to be displayed. The length of the string to be displayed indicates the amount of display space occupied by the string to be displayed.
文本标签,可以是用于显示字符串的显示区域。文本标签的长度,指示了该文本标签的固定尺寸,在该固定尺寸的文本标签内,能够容纳并显示一定数量的具有特定样式以及字号大小的字符。A text label, which can be a display area for displaying a string. The length of the text label indicating the fixed size of the text label within which a certain number of characters having a particular style and font size can be accommodated and displayed.
起始字符是待显示字符串中的字符,在从待显示字符串中选取在文本标签中显示的字符串时,该起始字符决定了从哪一个字符开始选取。The start character is the character in the string to be displayed. When the character string displayed in the text label is selected from the string to be displayed, the start character determines from which character to start.
由于用户在阅读字符时,通常按照从左到右的顺序进行阅读,因此可以认为,在一个字符串中,左边的字符比右边的字符优先完成信息传递使命。因此,从待显示字符中选取起始字符时,可以按照从左至右的顺序逐个选取。例如,从一个待显示字符串中第一次选取起始字符时,可以选取该待显示字符串左起第一个字符;第二次选取起始字符时,可以认为该待显示字符串左起第一个字符已被用户阅读,不需要再被显示,此时可以选取该待显示字符串左起第二个字符作为起始字符。以此类推,不再赘述。Since the user usually reads in the order from left to right when reading characters, it can be considered that in a character string, the character on the left performs the information transfer mission with priority over the character on the right. Therefore, when the start character is selected from the characters to be displayed, it can be selected one by one in order from left to right. For example, when the start character is first selected from a character string to be displayed, the first character from the left of the character string to be displayed may be selected; when the start character is selected the second time, the character string to be displayed may be considered as the left word. The first character has been read by the user and does not need to be displayed. In this case, the second character from the left of the character string to be displayed can be selected as the starting character. And so on, no longer repeat them.
针对步骤102,目标字符串是用于直接显示在文本标签的字符串,目标字符串可以是待显示字符串,也可以是待显示字符串的一部分。 For step 102, the target string is a string for displaying directly on the text label, and the target string may be a string to be displayed or a part of the string to be displayed.
在确定起始字符之后,可认为待显示字符串中位于该起始字符左侧的字符被舍弃,可将待显示字符串中自该起始字符开始的字符串作为目标字符串。例如,当待显示字符串中的第1个字符为起始字符时,目标字符串为待显示字符串。当待显示字符串中的第2个字符为起始字符时,目标字符串为待显示字符串中除最左侧字符之外的字符组成的字符串。同理,当待显示字符串中的第n个字符为起始字符时,目标字符串为待显示字符串中除第n个字符左侧的n-1字符之外的字符组成的字符串。After the start character is determined, the character to be displayed on the left side of the start character in the character string to be displayed is discarded, and the character string starting from the start character in the character string to be displayed may be used as the target character string. For example, when the first character in the string to be displayed is the start character, the target character string is the character string to be displayed. When the second character in the string to be displayed is the start character, the target string is a string consisting of characters other than the leftmost character in the string to be displayed. Similarly, when the nth character in the string to be displayed is the start character, the target string is a string consisting of characters other than the n-1 character to the left of the nth character in the string to be displayed.
针对步骤103,在确定目标字符串后,在文本标签内显示目标字符串。可选的,目标字符串的显示顺序与其对应的起始字符在待显示字符串的排列顺序相关联。可以认为,在文本标签内显示目标字符串时,按照起始字符从左到右的排列顺序,逐个显示起始字符对应的目标字符串,且两个目标字符串的显示时具有一定的时间间隔。可选的,在显示的过程中,目标字符串在文本标签内始终靠左显示。进而,随着起始字符从左至右逐个变化,文本标签内展示的字符串整体呈现向左滚动的显示效果。For step 103, after determining the target string, the target string is displayed within the text label. Optionally, the display order of the target string is associated with the corresponding starting character in the order in which the strings to be displayed are arranged. It can be considered that when the target character string is displayed in the text label, the target character string corresponding to the start character is displayed one by one according to the order of the start characters from left to right, and the two target character strings are displayed with a certain time interval. . Optionally, during the display process, the target string is always displayed to the left within the text label. Further, as the start character changes from left to right, the entire character string displayed in the text label is displayed to scroll left.
本实施例提供的字符串显示方法,在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。基于该起始字符,从待显示字符串中获取自该起始字符开始的字符串作为目标字符串并在文本标签显示该目标字符串。采用这样的技术方案,解决了现有技术中无法在固定长度的文本标签中显示符合人眼视觉标准的字符串的缺陷,实现了字符串在固定长度的文本标签中的滚动显示效果。The character string display method provided in this embodiment, when the length of the character string to be displayed is greater than the length of the text label, selects the start character from the string to be displayed one by one in order from left to right. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label. With such a technical solution, the defect that the character string conforming to the human eye visual standard cannot be displayed in the fixed length text label in the prior art is solved, and the scroll display effect of the character string in the fixed length text label is realized.
图2a是本发明实施例提供的另一虚拟现实场景中字符串显示方法的方法流程图,结合图2a,该方法包括:2a is a flowchart of a method for displaying a character string in another virtual reality scenario according to an embodiment of the present invention. Referring to FIG. 2a, the method includes:
步骤201、确定待显示字符串的长度。Step 201: Determine a length of a character string to be displayed.
步骤202、判断待显示字符串的长度是否大于文本标签的长度,若为是,执行步骤203;若为否,在文本标签内显示待显示字符串。Step 202: Determine whether the length of the character string to be displayed is greater than the length of the text label. If yes, go to step 203; if no, display the character string to be displayed in the text label.
步骤203、在待显示字符串中,按照从左到右递增的顺序确定字符对应的字 符编号。Step 203: In the string to be displayed, determine the word corresponding to the character in the order of increasing from left to right. Symbol number.
步骤204、初始化字符编号i=1。Step 204: Initialize the character number i=1.
步骤205、选取待显示字符串中第i个字符作为起始字符。Step 205: Select an ith character in the string to be displayed as the start character.
步骤206、在待显示字符串中,选取自所述起始字符开始的字符串作为目标字符串。Step 206: In the character string to be displayed, select a character string starting from the start character as the target character string.
步骤207、在文本标签内始终靠左显示所述目标字符串。Step 207: The target character string is always displayed to the left in the text label.
步骤208、判断待显示字符串最右边的字符是否显示在文本标签内,若为是,执行步骤204;若为否,执行步骤209。Step 208: Determine whether the rightmost character of the character string to be displayed is displayed in the text label. If yes, go to step 204; if no, go to step 209.
步骤209、i=i+1,并执行步骤205。 Step 209, i=i+1, and step 205 is performed.
针对步骤201,可选的,可根据待显示字符串包含的字符的数量、字体和字号确定待显示字符串的长度。其中,字体可以包括字符串中字符之间的间距、字符的字形或字符是否具有加粗属性等。根据字体以及字号,可确定单个字符的长度,结合字符的数量,可确定待显示字符串的长度。For step 201, optionally, the length of the character string to be displayed may be determined according to the number of characters, the font, and the font size of the character string to be displayed. Among them, the font may include the spacing between the characters in the string, the glyph of the character or whether the character has a bold attribute or the like. According to the font and the font size, the length of a single character can be determined, and the length of the character string to be displayed can be determined by combining the number of characters.
针对步骤202,在确定待显示字符串的长度后,可结合文本标签的长度,判断待显示字符的长度是否大于文本标签的长度。若待显示字符的长度小于或等于文本标签的长度,则可以认为文本标签能够完整地显示待显示字符串,此时可直接将待显示字符串发送至文本标签进行显示。For step 202, after determining the length of the character string to be displayed, the length of the character to be displayed may be combined with the length of the text label to determine whether the length of the character to be displayed is greater than the length of the text label. If the length of the character to be displayed is less than or equal to the length of the text label, the text label can be considered as a complete display of the character string to be displayed. In this case, the character string to be displayed can be directly sent to the text label for display.
若待显示字符的长度大于文本标签的长度,则可以认为文本标签不能够完整地显示待显示字符串,此时可执行步骤203以及后续步骤,使待显示字符串中的字符在文本标签中滚动显示,以完整地显示待显示字符串。If the length of the character to be displayed is greater than the length of the text label, the text label may not be able to completely display the character string to be displayed. In this case, step 203 and subsequent steps may be performed to scroll the characters in the string to be displayed in the text label. Display to completely display the string to be displayed.
针对步骤203,按照从左到右递增顺序确定字符对应的字符编号,可将待显示字符串中最左边的字符编号为1,最左边的字符往右依次为编号2、3……N。其中,N为待显示字符串中字符的总数。For step 203, the character number corresponding to the character is determined in descending order from left to right, and the leftmost character in the character string to be displayed is numbered 1, and the leftmost character is numbered 2, 3, ... in order. Where N is the total number of characters in the string to be displayed.
针对步骤206,在确定起始字符串之后,可将起始字符以及起始字符右侧的字符作为目标字符串。例如,针对包含10个字符的待显示字符串,起始字符的字符编号为2,则目标字符串为待显示字符串中编号为2ˉ10的字符组成的字符串。若起始字符的字符编号为5,则目标字符串为待显示字符串中编号为5ˉ10 的字符组成的字符串。For step 206, after determining the start string, the start character and the character to the right of the start character can be used as the target string. For example, for a character string to be displayed containing 10 characters, the character number of the start character is 2, and the target character string is a character string consisting of characters numbered 2ˉ10 in the string to be displayed. If the character number of the start character is 5, the target character string is 5 to 10 in the string to be displayed. The character consists of a string.
针对步骤207,在确定目标字符串之后,在文本标签中始终靠左显示目标字符串。应当理解,当起始字符逐个从左向右变化时,目标字符串也随之不断变化。若目标字符串始终靠左显示,则随着目标字符串的变化,文本标签将呈现待显示字符串持续向左滚动显示的效果。For step 207, after determining the target string, the target string is always displayed to the left in the text label. It should be understood that as the starting characters change from left to right one by one, the target string also changes. If the target string is always displayed to the left, as the target string changes, the text label will render the string to be displayed continuously scrolling to the left.
图2b是本发明实施例提供的目标字符串在文本标签中逐个显示的示意图;如图2b所示,待显示字符串为:GaSfgw3E6wwGERE3WE6F。按照字符从左到右的排列顺序逐个选取起始字符时,第1个起始字符为G,对应的第1个目标字符串为:GaSfgw3E6wwGERE3WE6F。第1个目标字符串的显示效果可如图2b所示,在文本标签长度有限时,第1个目标字符串不能完整地显示出来。第2个起始字符为a,对应的第2个目标字符串为:aSfgw3E6wwGERE3WE6F。同理,按照字符从左到右的排列顺序逐个选取起始字符,可得到以第3个起始字符S、第4个起始字符f、第5个起始字符g以及第6个起始字符w及其对应的目标字符串,不再赘述。FIG. 2b is a schematic diagram showing the target character strings displayed one by one in the text label according to the embodiment of the present invention; as shown in FIG. 2b, the character string to be displayed is: GaSfgw3E6wwGERE3WE6F. When the start character is selected one by one according to the order of characters from left to right, the first start character is G, and the corresponding first target character string is: GaSfgw3E6wwGERE3WE6F. The display effect of the first target string can be as shown in Fig. 2b. When the length of the text label is limited, the first target string cannot be completely displayed. The second starting character is a, and the corresponding second target string is: aSfgw3E6wwGERE3WE6F. Similarly, the start character is selected one by one according to the order of characters from left to right, and the third start character S, the fourth start character f, the fifth start character g, and the sixth start can be obtained. The character w and its corresponding target string are not described here.
针对步骤208,在本实施例,起始字符是自左向右逐个选取的,每一次选取起始字符的操作都可以视为去掉一个左边已显示的字符,进而可在文本标签内显示一个待显示字符串中的未显示过的字符。因此,本步骤可通过判断待显示字符串最右边的字符是否在文本标签进行显示,来判断待显示字符串是否完全显示在文本标签。若已完全显示,则不需再去掉已显示的字符。For the step 208, in the embodiment, the start characters are selected one by one from left to right, and each time the operation of selecting the start character can be regarded as removing a character that has been displayed on the left side, thereby displaying a waiting in the text label. Displays undisplayed characters in the string. Therefore, this step can determine whether the character string to be displayed is completely displayed on the text label by determining whether the rightmost character of the character string to be displayed is displayed on the text label. If it is fully displayed, you do not need to remove the displayed characters.
若待显示字符串最右边的字符已在文本标签进行显示,则可认为待显示字符串已完全显示,此时可以暂停字符串的显示、可保持当前显示状态或重新开始按照从左至右的顺序逐个选取起始字符。If the rightmost character of the string to be displayed is already displayed on the text label, the string to be displayed is considered to be completely displayed. At this time, the display of the string can be paused, the current display state can be maintained, or the left-to-right position can be restarted. The starting characters are selected one by one in order.
优选的,为形成一个连续的滚动效果并提升用户的阅读体验,本实施例中,在待显示字符串已完全显示之后,可执行步骤204,以重新开始按照从左至右的顺序逐个选取起始字符。Preferably, in order to form a continuous scrolling effect and improve the user's reading experience, in this embodiment, after the character string to be displayed has been completely displayed, step 204 may be performed to restart starting from left to right. The first character.
针对步骤209,若待显示字符串最右边的字符还未在文本标签内进行显示,则可继续进行起始字符串的选取以去除已显示的字符。待显示字符串中,字符 的编号顺序是按照从左到右递增的,因此,下一个起始字符的字符编号由当前起始字符的字符编号加1得到。在得到下一个起始字符的字符编号之后,可执行步骤205,从待显示字符串中选取起始字符并执行后续步骤。For step 209, if the rightmost character of the character string to be displayed has not been displayed in the text label, the selection of the start character string may be continued to remove the displayed character. Character to be displayed in the string The numbering order is incremented from left to right, so the character number of the next starting character is obtained by adding 1 to the character number of the current starting character. After the character number of the next start character is obtained, step 205 can be performed to select the start character from the string to be displayed and perform the subsequent steps.
本实施例提供的字符串显示方法,在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。基于该起始字符,从待显示字符串中获取自该起始字符开始的字符串作为目标字符串并在文本标签显示该目标字符串。采用这样的技术方案,解决了现有技术中无法在固定长度的文本标签中显示符合人眼视觉标准的字符串的缺陷,实现了字符串在固定长度的文本标签中的滚动显示效果。The character string display method provided in this embodiment, when the length of the character string to be displayed is greater than the length of the text label, selects the start character from the string to be displayed one by one in order from left to right. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label. With such a technical solution, the defect that the character string conforming to the human eye visual standard cannot be displayed in the fixed length text label in the prior art is solved, and the scroll display effect of the character string in the fixed length text label is realized.
在本发明的上述或下述实施例中,可选的,在展示VR场景的过程中,可不断检测VR场景中的虚拟摄像头(VR Camera)的焦点是否落在文本标签所在的区域。若检测到该虚拟摄像头的焦点落在文本标签所在区域,则可认用户的视线落在该文本标签上,此时可在文本标签内启动对目标字符串的逐个显示过程。In the above or below embodiments of the present invention, optionally, during the process of displaying the VR scene, it is possible to continuously detect whether the focus of the virtual camera (VR Camera) in the VR scene falls within the area where the text label is located. If it is detected that the focus of the virtual camera falls in the area where the text label is located, the user's line of sight falls on the text label, and the display process of the target character string can be started in the text label.
可选的,检测VR Camera的焦点是否落在文本标签所在的区域,在底层技术的实现上可有如下可行的实施方式:首先,为文本标签添加包围盒,并以VRCamera所在的位置为起始点,沿观察方向建立一条射线。所述观察方向,可以根据VR头戴设备上的陀螺仪、惯性传感器和/或三轴加速度传感器等获取,进而,该射线可随着用户的观察方向的改变而改变。其次,实时检测该射线是否与文本标签对应的包围盒产生碰撞,若检测到碰撞,则可认为VR Camera的焦点落在文本标签所在的区域。通过这种实施方式,在用户观看文本标签时开始滚动显示文本标签,实现了字符串的自适应展示,进一步提升了用户的观看体验。Optionally, if the focus of the VR camera is detected in the area where the text label is located, the implementation of the underlying technology may have the following feasible implementation manners: first, add a bounding box to the text label, and start with the location of the VRCamera. , create a ray along the direction of observation. The observation direction may be acquired according to a gyroscope, an inertial sensor, and/or a triaxial acceleration sensor on the VR wearing device, and further, the ray may change as the viewing direction of the user changes. Secondly, it is detected in real time whether the ray collides with the bounding box corresponding to the text label. If a collision is detected, the focus of the VR Camera can be considered to be in the area where the text label is located. Through this implementation manner, when the user views the text label, the scroll display text label is started, and the adaptive display of the character string is realized, thereby further improving the user's viewing experience.
图3是本发明实施例提供的头戴显示设备的结构示意图,结合图3,该设备包括存储器31以及处理器32。FIG. 3 is a schematic structural diagram of a head mounted display device according to an embodiment of the present invention. Referring to FIG. 3, the device includes a memory 31 and a processor 32.
其中,所述存储器31用于:存储一条或多条计算机指令。 The memory 31 is configured to: store one or more computer instructions.
所述处理器32用于执行所述一条或多条计算机指令,以用于:在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符;选取自所述起始字符开始的字符串作为目标字符串;在所述文本标签内显示所述目标字符串。The processor 32 is configured to execute the one or more computer instructions for: when the length of the character string to be displayed is greater than the length of the text label, the character string to be displayed one by one in order from left to right Selecting a start character; selecting a character string starting from the start character as a target character string; displaying the target character string in the text label.
进一步可选地,所述处理器32还用于:在所述待显示字符串的最右边的字符显示在所述文本标签内时,重新按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。Further, the processor 32 is further configured to: when the rightmost character of the to-be-displayed character string is displayed in the text label, re-display the character to be displayed one by one from left to right. Select the starting character in the string.
进一步可选地,所述处理器32还用于:根据所述待显示字符串包含的字符的数量、字体和字号确定所述待显示字符串的长度。Further optionally, the processor 32 is further configured to: determine the length of the character string to be displayed according to the number, the font and the font size of the character string to be displayed.
进一步可选地,所述处理器32用于:在所述文本标签内始终靠左显示所述目标字符串。Further optionally, the processor 32 is configured to: display the target character string to the left in the text label.
进一步可选地,所述处理器32还用于:在检测到所述VR场景中的虚拟摄像头的焦点落在所述文本标签所在区域时,在所述文本标签内显示所述目标字符串。Further optionally, the processor 32 is further configured to display the target character string in the text label when detecting that a focus of the virtual camera in the VR scene falls within an area where the text label is located.
进一步可选地,所述头戴显示设备包括:虚拟现实头戴显示设备或增强现实头戴显示设备。Further optionally, the head mounted display device comprises: a virtual reality head mounted display device or an augmented reality head mounted display device.
本发明提供的头戴显示设备,在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。基于该起始字符,从待显示字符串中获取自该起始字符开始的字符串作为目标字符串并在文本标签显示该目标字符串。采用这样的技术方案,解决了现有技术中无法在固定长度的文本标签中显示符合人眼视觉标准的字符串的缺陷,实现了字符串在固定长度的文本标签中的滚动显示效果。The head-mounted display device of the present invention selects a start character from the to-be-displayed character string one by one in order from left to right when the length of the character string to be displayed is greater than the length of the text label. Based on the start character, a character string starting from the start character is obtained as a target character string from the character string to be displayed and the target character string is displayed on the text label. With such a technical solution, the defect that the character string conforming to the human eye visual standard cannot be displayed in the fixed length text label in the prior art is solved, and the scroll display effect of the character string in the fixed length text label is realized.
本发明一些实施例提供的电子设备可以为外接式头戴显示设备或者一体式头戴显示设备,其中外接式头戴显示设备需要与外部处理系统(例如计算机处理系统)配合使用。The electronic device provided by some embodiments of the present invention may be an external head mounted display device or an integrated head mounted display device, wherein the external head mounted display device needs to be used in conjunction with an external processing system (eg, a computer processing system).
图4示出了一些实施例中头戴显示设备400的内部配置结构示意图。 FIG. 4 shows a schematic diagram of the internal configuration of the head mounted display device 400 in some embodiments.
显示单元401可以包括显示面板,显示面板设置在头戴显示设备400上面向用户面部的侧表面,可以为一整块面板、或者为分别对应用户左眼和右眼的左面板和右面板。显示面板可以为电致发光(EL)元件、液晶显示器或具有类似结构的微型显示器、或者视网膜可直接显示或类似的激光扫描式显示器。The display unit 401 may include a display panel disposed on a side surface of the head mounted display device 400 facing the user's face, and may be a one-piece panel or left and right panels respectively corresponding to the left and right eyes of the user. The display panel may be an electroluminescence (EL) element, a liquid crystal display or a microdisplay having a similar structure, or a laser-scanned display in which the retina may be directly displayed or similar.
虚拟图像光学单元402以放大方式拍摄显示单元401所显示的图像,并允许用户按放大的虚拟图像观察所显示的图像。作为输出到显示单元401上的显示图像,可以是从内容再现设备(蓝光光碟或DVD播放器)或流媒体服务器提供的虚拟场景的图像、或者使用外部相机410拍摄的现实场景的图像。一些实施例中,虚拟图像光学单元402可以包括透镜单元,例如球面透镜、非球面透镜、菲涅尔透镜等。The virtual image optical unit 402 photographs the image displayed by the display unit 401 in an enlarged manner and allows the user to observe the displayed image in the enlarged virtual image. As the display image outputted to the display unit 401, it may be an image of a virtual scene supplied from a content reproduction device (a Blu-ray disc or a DVD player) or a streaming server, or an image of a real scene photographed using an external camera 410. In some embodiments, virtual image optical unit 402 can include a lens unit, such as a spherical lens, an aspheric lens, a Fresnel lens, and the like.
输入操作单元403包括至少一个用来执行输入操作的操作部件,例如按键、按钮、开关或者其他具有类似功能的部件,通过操作部件接收用户指令,并且向控制单元407输出指令。The input operation unit 403 includes at least one operation member for performing an input operation, such as a button, a button, a switch, or other similarly functioned component, receives a user instruction through the operation member, and outputs an instruction to the control unit 407.
状态信息获取单元404用于获取穿戴头戴显示设备400的用户的状态信息。状态信息获取单元404可以包括各种类型的传感器,用于自身检测状态信息,并可以通过通信单元405从外部设备(例如智能手机、腕表和用户穿戴的其它多功能终端)获取状态信息。状态信息获取单元404可以获取用户的头部的位置信息和/或姿态信息。状态信息获取单元404可以包括陀螺仪传感器、加速度传感器、全球定位系统(GPS)传感器、地磁传感器、多普勒效应传感器、红外传感器、射频场强度传感器中的一个或者多个。此外,状态信息获取单元404获取穿戴头戴显示设备400的用户的状态信息,例如获取例如用户的操作状态(用户是否穿戴头戴显示设备400)、用户的动作状态(诸如静止、行走、跑动和诸如此类的移动状态,手或指尖的姿势、眼睛的开或闭状态、视线方向、瞳孔尺寸)、精神状态(用户是否沉浸在观察所显示的图像以及诸如此类的),甚至生理状态。The status information acquisition unit 404 is configured to acquire status information of the user wearing the head mounted display device 400. The status information acquisition unit 404 may include various types of sensors for detecting status information by itself, and may acquire status information from an external device such as a smartphone, a wristwatch, and other multi-function terminals worn by the user through the communication unit 405. The status information acquisition unit 404 can acquire location information and/or posture information of the user's head. The status information acquisition unit 404 may include one or more of a gyro sensor, an acceleration sensor, a global positioning system (GPS) sensor, a geomagnetic sensor, a Doppler effect sensor, an infrared sensor, and a radio frequency field intensity sensor. Further, the state information acquisition unit 404 acquires state information of the user wearing the head-mounted display device 400, for example, acquires, for example, an operation state of the user (whether the user wears the head-mounted display device 400), an action state of the user (such as standing, walking, running) And the state of movement such as the state of the hand or fingertip, the open or closed state of the eye, the direction of the line of sight, the size of the pupil, the mental state (whether the user is immersed in observing the displayed image, and the like), or even the physiological state.
通信单元405执行与外部装置的通信处理、调制和解调处理、以及通信信号的编码和解码处理。另外,控制单元407可以从通信单元405向外部装置发送传输数据。通信方式可以是有线或者无线形式,例如移动高清链接(MHL)或 通用串行总线(USB)、高清多媒体接口(HDMI)、无线保真(Wi-Fi)、蓝牙通信或低功耗蓝牙通信,以及IEEE802.11s标准的网状网络等。另外,通信单元405可以是根据宽带码分多址(W-CDMA)、长期演进(LTE)和类似标准操作的蜂窝无线收发器。The communication unit 405 performs communication processing, modulation and demodulation processing with an external device, and encoding and decoding processing of the communication signal. In addition, the control unit 407 can transmit transmission data from the communication unit 405 to an external device. Communication can be in wired or wireless form, such as Mobile High Definition Link (MHL) or Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), Wireless Fidelity (Wi-Fi), Bluetooth communication or Bluetooth low energy communication, and mesh networks of the IEEE 802.11s standard. Additionally, communication unit 405 can be a cellular wireless transceiver that operates in accordance with Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and the like.
一些实施例中,头戴显示设备400还可以包括存储单元,存储单元406是配置为具有固态驱动器(SSD)等的大容量存储设备。一些实施例中,存储单元406可以存储应用程序或各种类型的数据。例如,用户使用头戴显示设备400观看的内容可以存储在存储单元406中。In some embodiments, the head mounted display device 400 can also include a storage unit, which is a mass storage device configured to have a solid state drive (SSD) or the like. In some embodiments, storage unit 406 can store applications or various types of data. For example, content viewed by the user using the head mounted display device 400 may be stored in the storage unit 406.
一些实施例中,头戴显示设备400还可以包括控制单元,控制单元407可以包括计算机处理单元(CPU)或者其他具有类似功能的设备。一些实施例中,控制单元407可以用于执行存储单元406存储的应用程序,或者控制单元407还可以用于执行本申请一些实施例公开的方法、功能和操作的电路。In some embodiments, the head mounted display device 400 can also include a control unit, and the control unit 407 can include a computer processing unit (CPU) or other device having similar functionality. In some embodiments, control unit 407 can be used to execute an application stored by storage unit 406, or control unit 407 can also be used to perform the methods, functions, and operations disclosed in some embodiments of the present application.
图像处理单元408用于执行信号处理,比如与从控制单元407输出的图像信号相关的图像质量校正,以及将其分辨率转换为根据显示单元401的屏幕的分辨率。然后,显示驱动单元409依次选择显示单元401的每行像素,并逐行依次扫描显示单元401的每行像素,因而提供基于经信号处理的图像信号的像素信号。The image processing unit 408 is for performing signal processing such as image quality correction related to the image signal output from the control unit 407, and converting its resolution into a resolution according to the screen of the display unit 401. Then, the display driving unit 409 sequentially selects each row of pixels of the display unit 401, and sequentially scans each row of pixels of the display unit 401 line by line, thereby providing pixel signals based on the signal-processed image signals.
一些实施例中,头戴显示设备400还可以包括外部相机。外部相机410可以设置在头戴显示设备400主体前表面,外部相机410可以为一个或者多个。外部相机410可以获取三维信息,并且也可以用作距离传感器。另外,探测来自物体的反射信号的位置灵敏探测器(PSD)或者其他类型的距离传感器可以与外部相机410一起使用。外部相机410和距离传感器可以用于检测穿戴头戴显示设备400的用户的身体位置、姿态和形状。另外,一定条件下用户可以通过外部相机410直接观看或者预览现实场景。In some embodiments, the head mounted display device 400 can also include an external camera. The external camera 410 may be disposed on the front surface of the body of the head mounted display device 400, and the external camera 410 may be one or more. The external camera 410 can acquire three-dimensional information and can also be used as a distance sensor. Additionally, a position sensitive detector (PSD) or other type of distance sensor that detects reflected signals from the object can be used with the external camera 410. The external camera 410 and the distance sensor can be used to detect the body position, posture, and shape of the user wearing the head mounted display device 400. In addition, under certain conditions, the user can directly view or preview the real scene through the external camera 410.
一些实施例中,头戴显示设备400还可以包括声音处理单元,声音处理单元411可以执行从控制单元407输出的声音信号的声音质量校正或声音放大,以及输入声音信号的信号处理等。然后,声音输入/输出单元412在声音处理后 向外部输出声音以及输入来自麦克风的声音。In some embodiments, the head mounted display device 400 may further include a sound processing unit 411 that may perform sound quality correction or sound amplification of the sound signal output from the control unit 407, signal processing of the input sound signal, and the like. Then, the sound input/output unit 412 is after the sound processing Output sound to the outside and input sound from the microphone.
需要说明的是,图4中虚线框示出的结构或部件可以独立于头戴显示设备400之外,例如可以设置在外部处理系统(例如计算机系统)中与头戴显示设备400配合使用;或者,虚线框示出的结构或部件可以设置在头戴显示设备400内部或者表面上。It should be noted that the structure or component illustrated by the dashed line in FIG. 4 may be independent of the head mounted display device 400, for example, may be disposed in an external processing system (eg, a computer system) for use with the head mounted display device 400; or The structure or components shown by the dashed box may be disposed inside or on the surface of the head mounted display device 400.
以上所描述的设备实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

  1. 一种虚拟现实场景中字符串显示方法,其特征在于,包括:A character string display method in a virtual reality scene, comprising:
    在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符;When the length of the character string to be displayed is greater than the length of the text label, the starting characters are selected from the to-be-displayed character string one by one in order from left to right;
    选取自所述起始字符开始的字符串作为目标字符串;Select a string starting from the start character as the target string;
    在所述文本标签内显示所述目标字符串。The target character string is displayed within the text label.
  2. 根据权利要求1所述的方法,其特征在于,在所述文本标签内显示所述目标字符串之后,还包括:The method according to claim 1, wherein after displaying the target character string in the text label, the method further comprises:
    在所述待显示字符串的最右边的字符显示在所述文本标签内时,重新按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。When the rightmost character of the character string to be displayed is displayed in the text label, the start character is selected from the to-be-displayed character string one by one in order from left to right.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    根据所述待显示字符串包含的字符的数量、字体和字号确定所述待显示字符串的长度。Determining the length of the character string to be displayed according to the number of characters, the font, and the font size of the character string to be displayed.
  4. 根据权利要求1所述的方法,其特征在于,在所述文本标签内显示所述目标字符串,包括:The method of claim 1 wherein displaying the target string within the text label comprises:
    在所述文本标签内始终靠左显示所述目标字符串。The target character string is always displayed to the left within the text label.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述文本标签内显示所述目标字符串,包括:The method according to any one of claims 1 to 4, wherein displaying the target character string in the text label comprises:
    在检测到所述VR场景中的虚拟摄像头的焦点落在所述文本标签所在区域时,在所述文本标签内显示所述目标字符串。When it is detected that the focus of the virtual camera in the VR scene falls within the area where the text label is located, the target character string is displayed in the text label.
  6. 一种头戴显示设备,其特征在于,包括存储器以及处理器;A head mounted display device, comprising: a memory and a processor;
    所述存储器用于:存储一条或多条计算机指令;The memory is configured to: store one or more computer instructions;
    所述处理器用于执行所述一条或多条计算机指令,以用于:The processor is configured to execute the one or more computer instructions for:
    在待显示字符串的长度大于文本标签的长度时,按照从左至右的顺序逐个从所述待显示字符串中选取起始字符;When the length of the character string to be displayed is greater than the length of the text label, the starting characters are selected from the to-be-displayed character string one by one in order from left to right;
    选取自所述起始字符开始的字符串作为目标字符串;Select a string starting from the start character as the target string;
    在所述文本标签内显示所述目标字符串。 The target character string is displayed within the text label.
  7. 根据权利要求6所述的头戴显示设备,其特征在于,所述处理器还用于:The head-mounted display device according to claim 6, wherein the processor is further configured to:
    在所述待显示字符串的最右边的字符显示在所述文本标签内时,重新按照从左至右的顺序逐个从所述待显示字符串中选取起始字符。When the rightmost character of the character string to be displayed is displayed in the text label, the start character is selected from the to-be-displayed character string one by one in order from left to right.
  8. 根据权利要求6所述的头戴显示设备,其特征在于,所述处理器用于:The head mounted display device of claim 6, wherein the processor is configured to:
    在所述文本标签内始终靠左显示所述目标字符串。The target character string is always displayed to the left within the text label.
  9. 根据权利要求6-8中任一项所述的头戴显示设备,其特征在于,A head mounted display device according to any one of claims 6-8, wherein
    所述处理器还用于:在检测到所述VR场景中的虚拟摄像头的焦点落在所述文本标签所在区域时,在所述文本标签内显示所述目标字符串。The processor is further configured to display the target character string in the text label when detecting that a focus of the virtual camera in the VR scene falls within an area where the text label is located.
  10. 根据权利要求6-8中任一项所述的头戴显示设备,其特征在于,所述头戴显示设备包括:虚拟现实头戴显示设备或增强现实头戴显示设备。 The head mounted display device according to any one of claims 6-8, wherein the head mounted display device comprises: a virtual reality head mounted display device or an augmented reality head mounted display device.
PCT/CN2017/113974 2017-08-16 2017-11-30 Method for displaying character string in virtual reality scene, and head-mounted display device WO2019033615A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710702491.8A CN107479842A (en) 2017-08-16 2017-08-16 Character string display method and display device is worn in virtual reality scenario
CN201710702491.8 2017-08-16

Publications (1)

Publication Number Publication Date
WO2019033615A1 true WO2019033615A1 (en) 2019-02-21

Family

ID=60600463

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/113974 WO2019033615A1 (en) 2017-08-16 2017-11-30 Method for displaying character string in virtual reality scene, and head-mounted display device

Country Status (2)

Country Link
CN (1) CN107479842A (en)
WO (1) WO2019033615A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971847B (en) * 2018-09-28 2022-07-05 杭州海康威视数字技术股份有限公司 Screen display content superposition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662616A (en) * 2009-09-17 2010-03-03 北京中科智网传媒技术有限公司 Character rolling display method
CN104662492A (en) * 2012-10-01 2015-05-27 索尼公司 Information processing device, display control method, and program for modifying scrolling of automatically scrolled content
CN105955935A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Text control realization method and apparatus
CN106250479A (en) * 2016-07-29 2016-12-21 乐视控股(北京)有限公司 The display packing of page title content, device and electric terminal
CN106484237A (en) * 2016-10-14 2017-03-08 网易(杭州)网络有限公司 Method, device and the virtual reality device shown for virtual reality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662616A (en) * 2009-09-17 2010-03-03 北京中科智网传媒技术有限公司 Character rolling display method
CN104662492A (en) * 2012-10-01 2015-05-27 索尼公司 Information processing device, display control method, and program for modifying scrolling of automatically scrolled content
CN105955935A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Text control realization method and apparatus
CN106250479A (en) * 2016-07-29 2016-12-21 乐视控股(北京)有限公司 The display packing of page title content, device and electric terminal
CN106484237A (en) * 2016-10-14 2017-03-08 网易(杭州)网络有限公司 Method, device and the virtual reality device shown for virtual reality

Also Published As

Publication number Publication date
CN107479842A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US10484597B2 (en) Emotional/cognative state-triggered recording
US10984595B2 (en) Method and apparatus for providing guidance in a virtual environment
US20220046078A1 (en) Content collection navigation and autoforwarding
US10979752B1 (en) Generating media content items based on location information
US10762429B2 (en) Emotional/cognitive state presentation
US11722444B2 (en) Generating interactive messages with entity assets
US20230010905A1 (en) Content collection navigation queue
WO2018223663A1 (en) Vr image processing method, device, and apparatus
US20220358549A1 (en) Media collection navigation with opt-out interstitial
WO2019128251A1 (en) Method for renaming bluetooth module, and electronic device
WO2019061800A1 (en) Virtual scene switching method and head-mounted display device
CN108628985B (en) Photo album processing method and mobile terminal
WO2019019232A1 (en) Method for playing video based on vr head-mounted device, and vr head-mounted device
EP4268060A1 (en) Recentering ar/vr content on an eyewear device
US20190066325A1 (en) Information processing apparatus, information processing method, and computer-readable medium
CN107835404A (en) Method for displaying image, equipment and system based on wear-type virtual reality device
CN107065164B (en) Image presentation method and device
US20190096104A1 (en) Personalized game pieces
WO2019033615A1 (en) Method for displaying character string in virtual reality scene, and head-mounted display device
CN103353879B (en) Image processing method and apparatus
KR20170116663A (en) Image processing method and electronic device supporting the same
CN107958478B (en) Rendering method of object in virtual reality scene and virtual reality head-mounted equipment
WO2019085109A1 (en) Image writing control method and apparatus, and electronic device
US20210295049A1 (en) Information processing apparatus, information processing method, and program
US12056891B2 (en) Augmented reality image reproduction assistant

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17921613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17921613

Country of ref document: EP

Kind code of ref document: A1