Virtual tactile texture rendering method and apparatus, display apparatus, and storage medium
By converting the visual image into a grayscale image and performing multi-valued processing, combined with the correlation between the visual and tactile coordinate systems, a tactile vibration signal is generated, which solves the tactile feedback problem of object texture and surface roughness in virtual reality and achieves high realism. A virtual tactile experience.
Patent Information
- Application Number
- PCT/CN2023/080764
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-19
AI Technical Summary
Existing technology is difficult to achieve high-realism tactile reproduction, especially in the fields of virtual reality and human-computer interaction, lacking tactile feedback that can effectively simulate object texture and surface roughness.
By converting the visual image into a grayscale image and performing multi-valued processing on it, it is divided into different grayscale intervals. Each interval corresponds to a specific tactile parameter. Combined with the correlation between the visual and tactile coordinate systems, a tactile vibration signal is generated to achieve Virtual tactile feedback.
It is realized that when the user touches a virtual object, the corresponding tactile parameters are determined according to the coordinates of the touch point, providing highly realistic tactile feedback and enhancing the sensory experience of human-computer interaction.
Smart Images

Figure CN2023080764_19092024_PF_FP_ABST
Abstract
Description
Virtual tactile texture rendering method, device, display device and storage medium Technical Field
[0001] Embodiments of the present invention relate to the field of virtual tactile technology, and in particular to a virtual tactile texture rendering method, device, display device, and storage medium. Background Art
[0002] Haptic reproduction is a cutting-edge technology in virtual reality and human-computer interaction. It allows users to perceive the shape, texture, and other characteristics of displayed objects through touch, pushing communication between humans and the virtual world to a new stage where hearing, vision, and touch are integrated. Multimedia terminals with tactile reproduction have broad application prospects in fields such as education, entertainment, and healthcare. Highly realistic tactile reproduction technology has always been a challenging issue in the field of human-computer interaction.
[0003] Summary of the Invention
[0004] Embodiments of the present invention provide a virtual tactile texture rendering method, device, display device, and storage medium, which are used to solve the problem of how to achieve a highly realistic tactile reproduction technology.
[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a virtual tactile texture rendering method, comprising:
[0007] Acquiring a visual image to be displayed;
[0008] converting the visual image into a grayscale image;
[0009] performing multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters;
[0010] The first coordinate system of the visual image and the second coordinate system of the tactile response image are associated to obtain an association relationship between the first coordinate system and the second coordinate system. The association relationship is used to determine the tactile parameters corresponding to the pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters.
[0011] Optionally, the method further includes:
[0012] When detecting that a user touches the visual image displayed on the display screen, determining a first coordinate of a first touch point of the user in the first coordinate system;
[0013] determining a second coordinate of the first touch point in the second coordinate system according to an association relationship between the first coordinate system and the second coordinate system and the first coordinate;
[0014] Determine a target grayscale interval in which the pixel corresponding to the second coordinate lies;
[0015] calling a target tactile parameter corresponding to the target grayscale interval, and generating a tactile vibration signal according to the target tactile parameter;
[0016] The position where the first coordinate is located on the display screen is driven to vibrate according to the tactile vibration signal.
[0017] Optionally, performing multi-value processing on the grayscale image to obtain a tactile response image includes:
[0018] Performing multi-value processing on the grayscale image to obtain a multi-valued image;
[0019] Performing image segmentation on the multi-valued image to obtain a plurality of pixel regions;
[0020] The tactile response image is obtained by filtering out a target pixel area, where the side length of the target pixel area is less than or equal to a first threshold and / or the area of the target pixel area is less than or equal to a second threshold.
[0021] Optionally, the first threshold is 1 mm;
[0022] and / or
[0023] The second threshold is 1 mm 2 .
[0024] Optionally, performing multi-value processing on the grayscale image to obtain a tactile response image includes:
[0025] The grayscale image is binarized to obtain a tactile response image, where pixels of the tactile response image are divided into two grayscale intervals of 0 and 255.
[0026] Optionally, the associating the first coordinate system of the visual image with the second coordinate system of the tactile response image further includes: displaying a correction image on a display screen, wherein the correction image displays a touch reference point; and when detecting that a user touches the correction image, determining a coordinate difference between a second touch point of the user and the touch reference point;
[0027] The associating the first coordinate system of the visual image with the second coordinate system of the tactile response image includes associating the first coordinate system of the visual image with the second coordinate system of the tactile response image according to the coordinate difference.
[0028] Optionally, there are multiple touch reference points, including at least one of the following: the lower left corner coordinate point, the upper left corner coordinate point, the lower right corner coordinate point, and the upper right corner coordinate point of the corrected image.
[0029] In a second aspect, an embodiment of the present invention provides a virtual tactile texture rendering device, comprising:
[0030] A first acquisition module, configured to acquire a visual image to be displayed;
[0031] An image conversion module, configured to convert the visual image into a grayscale image;
[0032] a multi-value processing module, configured to perform multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters;
[0033] A coordinate system association module is used to associate the first coordinate system of the visual image and the second coordinate system of the tactile response image to obtain an association relationship between the first coordinate system and the second coordinate system. The association relationship is used to determine the tactile parameters corresponding to the pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters.
[0034] In a third aspect, an embodiment of the present invention provides a display device comprising: a processor, a memory, and a program stored on the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the virtual tactile texture rendering method described in the first aspect above are implemented.
[0035] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the virtual tactile texture rendering method as described in the first aspect above are implemented.
[0036] In an embodiment of the present invention, a visual image is converted into a grayscale image, and the grayscale image is multi-valued. All pixels in the obtained tactile response image are divided into at least two grayscale intervals. Different grayscale intervals correspond to different tactile parameters. When a user touches the visual image displayed on the display screen, the grayscale interval to which the pixel at the touch point position belongs can be determined based on the coordinates of the touch point, and tactile feedback can be performed based on the tactile parameters corresponding to the grayscale interval to achieve virtual touch. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0038] FIG1 is a schematic diagram showing the relationship between an optical reflection image and an object surface;
[0039] FIG2 is a schematic diagram of a flow chart of a virtual tactile texture rendering method according to an embodiment of the present invention;
[0040] FIG3 is a second flow chart of a virtual tactile texture rendering method according to an embodiment of the present invention;
[0041] FIG4 is a schematic diagram of a grayscale interval division method according to an embodiment of the present invention;
[0042] FIG5 is a schematic diagram of processing a visual image according to an embodiment of the present invention;
[0043] FIG6 is a schematic diagram of a method for associating coordinate systems according to an embodiment of the present invention;
[0044] FIG7 is a schematic diagram of a virtual tactile texture rendering method according to an embodiment of the present invention;
[0045] FIG8 is a schematic diagram of a virtual tactile texture rendering method according to another embodiment of the present invention;
[0046] FIG9 is a schematic diagram of a structure of a virtual tactile texture rendering device according to an embodiment of the present invention;
[0047] FIG10 is a second structural diagram of a virtual tactile texture rendering device according to an embodiment of the present invention;
[0048] FIG. 11 is a schematic structural diagram of a display device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0050] Please refer to Figure 1. The texture or roughness of the object's surface is different, and the reflection or refraction of light is also different. For example, if the object's surface is smooth, the smooth surface will reflect the light back to the camera, forming a bright area in the optical reflection image. If the object has a rough texture or surface, the texture or rough surface will scatter the light away from the camera, forming a dark area in the optical reflection image. In other words, the brightness and darkness information in the image can reflect the texture or roughness of the object's surface.
[0051] Based on the correspondence between the brightness and darkness information in the image and the texture or roughness of the object surface, in an embodiment of the present invention, the displayed visual image can be converted into a grayscale image (grayscale can be used to describe the brightness and darkness of the object in the image. By converting the visual image into a grayscale image, the texture or roughness information of the object surface in the visual image can be extracted), and the grayscale image is multi-valued. All pixels in the obtained tactile response image are divided into at least two grayscale intervals, and the tactile parameters corresponding to different grayscale intervals are different. Therefore, when the user touches the visual image displayed on the display screen, the grayscale interval to which the pixel at the touch point position belongs can be determined according to the coordinates of the touch point, and tactile feedback can be performed according to the tactile parameters corresponding to the grayscale interval to achieve virtual touch.
[0052] Referring to FIG. 2 , an embodiment of the present invention provides a virtual tactile texture rendering method, including:
[0053] Step 21: Acquire a visual image to be displayed;
[0054] The visual image may be an RGB image or other types of color images.
[0055] Step 22: converting the visual image into a grayscale image;
[0056] The purpose of converting a visual image into a grayscale image is to extract the texture or roughness information of the object surface in the visual image.
[0057] In the embodiment of the present invention, each pixel of the grayscale image can be identified by 8 bits (255 grayscale levels) or represented by 16 bits (65536 grayscale levels).
[0058] In an embodiment of the present invention, a visual image can be converted into a grayscale image through a variety of conversion methods, for example, an averaging method, that is, averaging the brightness values of the RGB channels of the same pixel; or a maximum-minimum average method, that is, averaging the maximum and minimum brightness values in the RGB of the same pixel; or a weighted average method, determining the weighting coefficient of the RGB brightness value based on the human brightness perception system.
[0059] Step 23: performing multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters;
[0060] Multi-value processing, also known as Gaussian brightness processing of grayscale images, involves dividing all pixels in a grayscale image into at least two grayscale intervals, with different grayscale intervals corresponding to different degrees of brightness (i.e., different textures or roughness). The purpose of grayscale partitioning is to define the number of tactile vibration signals required. In this embodiment of the present invention, defining several grayscale intervals also defines several tactile parameters (one tactile parameter corresponds to one tactile vibration signal).
[0061] The number of grayscale intervals can be set as needed, based on user requirements and the hardware complexity of the display device (such as the computing power and response speed of the CPU (central processing unit)). The more grayscale intervals there are, the higher the computing power required.
[0062] For example, please refer to Figure 4. All pixels in the grayscale image are divided into four grayscale intervals (A, B, C, D). In Figure 4, the horizontal axis represents the grayscale value of the pixel, and the vertical axis represents the number of pixels. It can be seen from Figure 4 that grayscale interval A represents pixels with grayscale values between 130 and 150, grayscale interval B represents pixels with grayscale values between 150 and 170, grayscale interval C represents pixels with grayscale values between 170 and 190, and grayscale interval D represents pixels with grayscale values between 190 and 210.
[0063] The process of tactile feedback includes: visually seeing an image; touching the image with the hand, and then feeling a force stimulus, and this stimulus must be exactly at the touch location (the coordinates must match the image), and the tactile sensation must be consistent with psychological experience. Therefore, in an embodiment of the present invention, the method further includes:
[0064] Step 24: Associating the first coordinate system of the visual image with the second coordinate system of the tactile response image to obtain an association relationship between the first coordinate system and the second coordinate system, wherein the association relationship is used to determine tactile parameters corresponding to pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters;
[0065] For example, the first coordinate system of the visual image can use the lower left corner of the image as the coordinate origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis. Similarly, the second coordinate system of the tactile response image also uses the lower left corner of the image as the coordinate origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis. The coordinate points of each pixel in the first coordinate system are associated with the coordinate points of the corresponding pixels in the second coordinate system.
[0066] In an embodiment of the present invention, a visual image is converted into a grayscale image, and the grayscale image is multi-valued. All pixels in the obtained tactile response image are divided into at least two grayscale intervals. Different grayscale intervals correspond to different tactile parameters. When a user touches the visual image displayed on the display screen, the tactile parameters corresponding to the touch point pixels can be determined based on the association relationship, and a tactile vibration signal can be generated based on the tactile parameters, thereby generating tactile feedback and realizing virtual touch.
[0067] Referring to FIG3 , in an embodiment of the present invention, in addition to steps 21 to 24 above, the method further includes:
[0068] Step 25: When detecting that a user touches the visual image displayed on the display screen, determining a first coordinate of a first touch point of the user in the first coordinate system;
[0069] Step 26: determining a second coordinate of the first touch point in the second coordinate system according to the association relationship between the first coordinate system and the second coordinate system and the first coordinate;
[0070] Step 27: Determine the target grayscale interval of the pixel corresponding to the second coordinate;
[0071] Step 28: calling the target tactile parameter corresponding to the target grayscale interval, and generating a tactile vibration signal according to the target tactile parameter;
[0072] Step 29: driving the position of the first coordinate on the display screen to vibrate according to the tactile vibration signal.
[0073] In an embodiment of the present invention, when a user touches a visual image displayed on a display screen, the pixel coordinates corresponding to the touch point in the tactile response image can be determined based on the coordinates of the touch point in the visual image, and the corresponding tactile parameters can be determined based on the grayscale interval to which the corresponding pixel point on the touch response image belongs. A tactile vibration signal is generated based on the determined tactile parameters to drive the display screen to vibrate, so that when the user touches different grayscale intervals on the visual image, he can sense different tactile sensations and thus feel the texture and surface roughness of the object.
[0074] In the embodiment of the present invention, optionally, the duration of the tactile vibration signal may be less than 30 ms (milliseconds).
[0075] In the embodiment of the present invention, optionally, tactile feedback of a touch point on the display screen may be achieved by means of electrostatic force, piezoelectric actuator, or mechanical vibration.
[0076] In order to reduce the amount of computation, in an embodiment of the present invention, optionally, performing multi-value processing on the grayscale image to obtain a tactile response image includes: performing binarization processing on the grayscale image to obtain a tactile response image, where pixels of the tactile response image are divided into two grayscale intervals of 0 and 255.
[0077] Since the width of a human finger is about 15 mm (millimeters), for a very small area (such as an area less than 1 mm 2 Therefore, in the embodiment of the present invention, after the grayscale image is binarized, the smaller area can be filtered out.
[0078] In the embodiment of the present invention, optionally, performing multi-value processing on the grayscale image to obtain the tactile response image includes:
[0079] Step 231: performing multi-value processing on the grayscale image to obtain a multi-valued image;
[0080] Step 232: performing image segmentation on the multi-valued image to obtain a plurality of pixel regions;
[0081] Step 233: Filter out the target pixel area to obtain the tactile response image, where the side length of the target pixel area is less than or equal to the first threshold and / or the area is less than or equal to the second threshold.
[0082] Optionally, the first threshold is 1 mm.
[0083] Optionally, the second threshold is 1 mm 2 .
[0084] Please refer to FIG5 . As can be seen from the figure, the original visual image (i.e., the original image in FIG5 ) is first converted into a grayscale image (i.e., grayscale conversion in FIG5 ). The grayscale image is then binarized to obtain a binary image. The binary image is then segmented to obtain multiple pixel regions. Target pixel regions are filtered out, where the side length of the target pixel region is less than or equal to a first threshold and / or the area is less than or equal to a second threshold (i.e., scattered point filtering in FIG5 ), to obtain a tactile response image. The tactile response image includes two grayscale intervals (i.e., grayscale interval (Recipe) A and grayscale interval (Recipe) B in FIG5 ). The grayscale value of pixels in grayscale interval (Recipe) A is 0, and the grayscale value of pixels in grayscale interval (Recipe) B is 255.
[0085] In the embodiment of the present invention, in the above step 24, when associating the first coordinate system of the visual image and the second coordinate system of the tactile response image, please refer to Figure 6, the coordinate origin of the first coordinate system of the visual image and the coordinate origin of the second coordinate system of the tactile response image can be made to coincide with each other, and x1=x2, y1=y2.
[0086] However, when a user touches the display screen, the user's vision and sense of touch may not be in the same position due to reasons such as touch posture or user visual deviation. In order to avoid deviations in vision and sense of touch caused by reasons such as touch posture or user visual deviation, in an embodiment of the present invention, optionally, associating the first coordinate system of the visual image with the second coordinate system of the tactile response image also includes: displaying a correction image on the display screen, wherein the correction image has a touch reference point displayed thereon; when detecting that the user touches the correction image, determining the coordinate difference between the second touch point of the user and the touch reference point; wherein associating the first coordinate system of the visual image with the second coordinate system of the tactile response image includes: associating the first coordinate system of the visual image with the second coordinate system of the tactile response image according to the coordinate difference.
[0087] In an embodiment of the present invention, optionally, there are multiple touch reference points, and the touch reference points include at least one of the following: the coordinates of the lower left corner, the lower right corner, the upper right corner, and the upper left corner of the corrected image.
[0088] In the embodiment of the present invention, optionally, the coordinate difference includes an x-axis difference and a y-axis difference.
[0089] In an embodiment of the present invention, optionally, the corrected image is the visual image, and further optionally, the touch reference point includes at least one of the following: the coordinates of the lower left corner (coordinate origin), the lower right corner, the upper right corner, and the upper left corner of the visual image. For example, (0, 0) (x1, 0), (0, y1), and (x1, y1) in Figure 6 . The association relationship between the second touch point (x1, y1) and the touch reference point (x2, y2) is: x1 = x2 + a, y1 = y2 + b.
[0090] In an embodiment of the present invention, the selection of the tactile vibration signal can be determined according to the content of the visual image. For example, if the image displays tree bark, the tactile parameters that can be selected are: frequency > 20kHz, amplitude > 1um, and modulation < 10Hz. If the image displays glass, a waveform without modulation is selected.
[0091] In an embodiment of the present invention, optionally, after determining the target grayscale interval in which the pixel corresponding to the second coordinate is located, the method further includes: calling a sound control signal corresponding to the target grayscale interval; and controlling the display device to make sound according to the sound control signal, so that the display device integrates vision, hearing, and touch.
[0092] The virtual tactile texture rendering method is described below with an example.
[0093] 7 and 8 , the virtual tactile texture rendering method according to an embodiment of the present invention includes:
[0094] Step 1: Obtain the visual image to be displayed;
[0095] The visual image may be an RGB image.
[0096] Step 2: Convert the visual image into a grayscale image;
[0097] Step 3: Binarize the grayscale image and segment the binary image to obtain multiple pixel regions; filter out the target pixel region to obtain the tactile response image, where the side length of the target pixel region is less than or equal to a first threshold and / or the area is less than or equal to a second threshold. All pixels of the tactile response image are divided into two grayscale intervals, and different grayscale intervals correspond to different tactile parameters;
[0098] Step 4: Associating the first coordinate system of the visual image with the second coordinate system of the tactile response image to obtain an association relationship between the first coordinate system and the second coordinate system, wherein the association relationship is used to determine tactile parameters corresponding to pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters;
[0099] Step 5: When detecting that a user touches the visual image displayed on the display screen, determining a first coordinate of a first touch point of the user in the first coordinate system;
[0100] Step 6: Determine the second coordinate of the first touch point in the second coordinate system according to the association relationship between the first coordinate system and the second coordinate system and the first coordinate;
[0101] Step 7: Determine the target grayscale interval of the pixel corresponding to the second coordinate;
[0102] Step 8: calling the target tactile parameters corresponding to the target grayscale interval, and generating a tactile vibration signal according to the target tactile parameters;
[0103] Step 9: driving the position of the first coordinate on the display screen to vibrate according to the tactile vibration signal.
[0104] In an embodiment of the present invention, when a user touches a visual image displayed on a display screen, the pixel coordinates corresponding to the touch point in the tactile response image can be determined based on the coordinates of the touch point in the visual image, and the corresponding tactile parameters can be determined based on the grayscale interval to which the corresponding pixel point on the touch response image belongs. A tactile vibration signal is generated based on the determined tactile parameters to drive the display screen to vibrate, so that when the user touches different grayscale intervals on the visual image, the user can sense different tactile sensations, thereby feeling the texture of the object and the roughness of the surface.
[0105] Referring to FIG. 9 , an embodiment of the present invention further provides a virtual tactile texture rendering device 80, comprising:
[0106] A first acquisition module 81 is used to acquire a visual image to be displayed;
[0107] An image conversion module 82, configured to convert the visual image into a grayscale image;
[0108] a multi-value processing module 83 for performing multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters;
[0109] The coordinate system association module 84 is used to associate the first coordinate system of the visual image with the second coordinate system of the tactile response image to obtain an association relationship between the first coordinate system and the second coordinate system. The association relationship is used to determine the tactile parameters corresponding to the pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters.
[0110] Optionally, referring to FIG10 , the virtual tactile texture rendering device 80 according to the embodiment of the present invention may further include:
[0111] a touch detection module 85 for determining a first coordinate of a first touch point of the user in the first coordinate system when detecting that the user touches the visual image displayed on the display screen;
[0112] A first determining module 86, configured to determine a second coordinate of the first touch point in the second coordinate system according to the association between the first coordinate system and the second coordinate system and the first coordinate;
[0113] A second determining module 87 is configured to determine a target grayscale interval in which the pixel corresponding to the second coordinate is located;
[0114] a tactile signal generating module 88 for calling a target tactile parameter corresponding to the target grayscale interval and generating a tactile vibration signal according to the target tactile parameter;
[0115] The driving module 89 is configured to drive the position of the first coordinate on the display screen to vibrate according to the tactile vibration signal.
[0116] Optionally, the multi-valued processing module 83 is used to perform multi-valued processing on the grayscale image to obtain a multi-valued image; perform image segmentation on the multi-valued image to obtain multiple pixel areas; filter out the target pixel area to obtain the tactile response image, and the side length of the target pixel area is less than or equal to the first threshold and / or the area is less than or equal to the second threshold.
[0117] Optionally, the first threshold is 1 mm;
[0118] and / or
[0119] The second threshold is 1 mm 2 .
[0120] Optionally, the multi-value processing module 83 is configured to perform binarization processing on the grayscale image to obtain a tactile response image, where pixels of the tactile response image are divided into two grayscale intervals of 0 and 255.
[0121] Optionally, the virtual tactile texture rendering device 80 further includes:
[0122] a correction module, configured to display a correction image on a display screen, wherein the correction image displays a touch reference point; and upon detecting that a user touches the correction image, determine a coordinate difference between a second touch point of the user and the touch reference point;
[0123] The coordinate system associating module 84 is configured to associate the first coordinate system of the visual image with the second coordinate system of the tactile response image according to the coordinate difference.
[0124] Optionally, the corrected image is the visual image.
[0125] Optionally, there are multiple touch reference points, including at least one of the following: the lower left corner coordinate point, the upper left corner coordinate point, the lower right corner coordinate point, and the upper right corner coordinate point of the corrected image.
[0126] Optionally, the coordinate difference includes an x-axis difference and a y-axis difference.
[0127] Please refer to Figure 11. An embodiment of the present invention further provides a display device 90, including a processor 91, a memory 92, and a computer program stored in the memory 92 and executable on the processor 91. When the computer program is executed by the processor 91, the various processes of the above-mentioned virtual tactile texture rendering method embodiment are implemented, and the same technical effects can be achieved. To avoid repetition, they will not be described here.
[0128] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the aforementioned virtual tactile texture rendering method embodiment and achieves the same technical effects. To avoid repetition, the details are not described here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0129] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0130] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0131] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A virtual tactile texture rendering method, characterized in that: include: Acquiring a visual image to be displayed; converting the visual image into a grayscale image; Performing multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters; The first coordinate system of the visual image and the second coordinate system of the tactile response image are associated to obtain an association relationship between the first coordinate system and the second coordinate system. The association relationship is used to determine the tactile parameters corresponding to the pixels of the user's touch point when the visual image is displayed and touched by the user, and generate a tactile vibration signal based on the tactile parameters.
2. The method according to claim 1, characterized in that The method further comprises: When detecting that a user touches the visual image displayed on the display screen, determining a first coordinate of a first touch point of the user in the first coordinate system; Determine a second coordinate of the first touch point in the second coordinate system according to an association relationship between the first coordinate system and the second coordinate system and the first coordinate; Determine a target grayscale interval where the pixel corresponding to the second coordinate is located; Calling a target tactile parameter corresponding to the target grayscale interval, and generating a tactile vibration signal according to the target tactile parameter; The position where the first coordinate is located on the display screen is driven to vibrate according to the tactile vibration signal.
3. The method according to claim 1, characterized in that: The step of performing multi-value processing on the grayscale image to obtain a tactile response image includes: Performing multi-value processing on the grayscale image to obtain a multi-valued image; Performing image segmentation on the multi-valued image to obtain a plurality of pixel regions; The tactile response image is obtained by filtering out a target pixel region, wherein the side length of the target pixel region is less than or equal to a first threshold and / or the area of the target pixel region is less than or equal to a second threshold.
4. The method according to claim 3, characterized in that The first threshold is 1 mm; and / or The second threshold is 1 mm 2 .
5. The method according to claim 1, characterized in that The step of performing multi-value processing on the grayscale image to obtain a tactile response image includes: The grayscale image is binarized to obtain a tactile response image, and pixels of the tactile response image are divided into two grayscale intervals of 0 and 255.
6. The method according to claim 1, characterized in that The associating the first coordinate system of the visual image with the second coordinate system of the tactile response image also includes: displaying a calibration image on a display screen, wherein the calibration image displays a touch reference point; when detecting that a user touches the calibration image, determining a coordinate difference between a second touch point of the user and the touch reference point; The associating the first coordinate system of the visual image with the second coordinate system of the tactile response image comprises: associating the first coordinate system of the visual image with the second coordinate system of the tactile response image according to the coordinate difference.
7. The method according to claim 6, characterized in that The corrected image is the visual image.
8. The method according to claim 6 or 7, characterized in that: The number of the touch reference points is multiple, including at least one of the following: a lower left corner coordinate point, an upper left corner coordinate point, a lower right corner coordinate point, and an upper right corner coordinate point of the corrected image.
9. A virtual tactile texture rendering device, characterized in that: include: A first acquisition module, used to acquire a visual image to be displayed; An image conversion module, used for converting the visual image into a grayscale image; A multi-value processing module, used for performing multi-value processing on the grayscale image to obtain a tactile response image, wherein all pixels of the tactile response image are divided into at least two grayscale intervals, and different grayscale intervals correspond to different tactile parameters; A coordinate system association module is used to associate the first coordinate system of the visual image with the second coordinate system of the tactile response image to obtain an association relationship between the first coordinate system and the second coordinate system, wherein the association relationship is used to determine the user touch when the visual image is displayed and touched by the user. The method further comprises: obtaining a tactile parameter corresponding to a pixel of a touch point of a user, and generating a tactile vibration signal based on the tactile parameter.
10. A display device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the virtual tactile texture rendering method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the virtual tactile texture rendering method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
A method and apparatus for display images on a compute readable storage medium
CN109343716A
Tactile reproduction method, terminal device and computer readable storage medium
CN109491502A
Haptic representation method for high-definition image texture based on electrostatic force haptic feedback device
CN111258432A
Method and electronic device for tactile feedback
US20120327100A1
Haptic feedback method, electronic device and storage medium
WO2020232738A1
