A method of guiding the blind

By converting the RGB color space into HSV and mapping it to a sine wave signal, the image-to-sound technology solves the problem of blind people perceiving obstacles when walking outdoors, and designs a low-cost blind guide device to achieve low-cost and effective blind guide effects. , suitable for low-income blind groups.

CN115154216BActive Publication Date: 2024-10-29BEIJING UNIV OF TECH
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202210840158.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-10-29
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

It is difficult for blind people to perceive obstacles in front of them when walking outdoors. Existing guide equipment is expensive and difficult to popularize. The number of traditional guide dogs is limited and cannot effectively solve the problem of outdoor safety for blind people.

Method used

By converting RGB color space into HSV color space and mapping image features into sine wave signals, using the human ear to judge the situation ahead, a low-cost guide device is designed, using a camera to collect images and convert them into sound output every 5 seconds. , transmitting sound information through headphones to guide the blind.

Benefits of technology

It has realized low-cost and effective image-to-sound guide technology, which improves the safety of blind people walking outdoors. It can judge whether there are obstacles ahead through hearing, reduces equipment costs, and is suitable for low-income blind groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115154216B_ABST
    Figure CN115154216B_ABST
Patent Text Reader

Abstract

A blind guide method relates to the field of electronic information. A camera is used to collect a scene about 3 meters in front of the camera, and the scene is sent to an image-to-sound module for image-to-sound conversion. First, the image RGB space is converted to the HSV space, and then the H, S, and V values ​​of each pixel are obtained. The H, S, and V values ​​are mapped to the sine wave of the sound. The specific mapping method is: the H value is assigned to the initial phase of the sine wave, the S value is assigned to the amplitude value of the sine wave, and the V value is assigned to the frequency of the sine wave. Then, the sound of the image pixels in the same column is superimposed, and finally the final sound clip is spliced ​​in the order from left to right in the image. After the sound is obtained, the sound is sent to the human ear through headphones. The human ear listens to the sound and judges whether there is an obstacle in front of it, so as to achieve the purpose of outdoor blind guide. The image-to-sound algorithm is written and implemented in C++ language, and the blind guide device is designed and built to achieve the purpose of blind guide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic information, and relates to a new blind-guiding method, which converts the image captured in front into sound, and relates to a low-cost image-to-sound blind-guiding technology, serving the blind. Background Art

[0002] Blind people lose their sight due to congenital diseases or acquired accidents. From this point on, they can only feel the world through touch and hearing. For blind people, thousands of kinds of image information are useless to them, and compared with life indoors, it is more difficult for them to go out outdoors, and it is easy to get into danger on the side of the road or when crossing the road. So some scientists began to study the field of electronic assisted walking. Some of the research is based on positioning, such as knowing where you are based on satellite signals, navigating to a destination, etc., but these devices cannot handle some unexpected situations. Although the other part can handle some unexpected situations, its equipment is expensive and cannot be popularized to all blind people. As we all know, guide dogs also serve the blind, but guide dogs themselves are one in a hundred, and they can only be selected through layers of screening, and even have to be booked in advance. Due to the small number, the appointment has long been lined up.

[0003] Although the blind have lost the ability to see the world, their ears are relatively more sensitive, so it has triggered a kind of thinking, whether it is possible to convert the image in front into sound through the idea of ​​cross-media information conversion, so that the blind can judge the situation in front by listening to the sound. The present invention proposes a new image-to-sound method, which converts the front scene into sound, and the blind can judge whether there are obstacles in front by listening to the human ears. Experiments show that the method is simple to implement and has good application and promotion value. Secondly, a new low-cost guide device is designed, which is simple to implement and serves low-income blind people. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a new image-to-sound method, which uses human ears to judge the situation ahead, solving the problem of potential dangers caused by obstacles ahead when traveling outdoors. At the same time, a new low-cost guide device is designed to serve low-income blind people. The method is as follows:

[0005] A method for converting an image to sound, the specific process is as follows:

[0006] ① Convert the RGB color space of the image into the HSV color space through a formula to make the colors in the image more consistent with human visual characteristics. The conversion formula is as follows:

[0007] max=max(R,G,B)

[0008] min=min(R,G,B)

[0009] delta=max-min

[0010]

[0011]

[0012]

[0013] Among them: H, S, V correspond to hue, saturation and lightness. Max and min represent the maximum and minimum values ​​of R, G, B respectively, and delta is used as an intermediate value for easy calculation.

[0014] ②Conversion from image to sound

[0015] In order to make the image information and the sound information correspond one to one, in order to solve this problem, the expression of the sound signal used in this method is a sine wave Here A represents amplitude, f represents frequency, Represents the initial phase.

[0016] The three image features H, S, and V are mapped to the three parameters of the sound sine wave: amplitude, frequency, and initial phase. The value range of H is 0-360, the value range of S is 0-1, and the value range of V is 0-1.

[0017] The image information is mapped to the sound information. The H value of the image information is mapped to the initial phase of the sine wave of the sound signal, the S value of the image information is mapped to the amplitude of the sine wave of the sound signal, and the V value of the image information is mapped to the frequency of the sine wave of the sound signal. The mapping method is: the calculated H, S, and V values ​​are directly assigned to A, f, Thus, each sound parameter is determined.

[0018] The three component information of the image is mapped to the three parameter information of the sound. According to different mapping methods, 6 different sounds can be obtained in the end, namely:

[0019] i: The H value is mapped to the amplitude of the sine wave, the S value is mapped to the frequency of the sine wave, and the V value is mapped to the initial phase of the sine wave.

[0020] ii: The H value is mapped to the amplitude of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the frequency of the sine wave.

[0021] iii: The H value is mapped to the frequency of the sine wave, the S value is mapped to the amplitude of the sine wave, and the V value is mapped to the initial phase of the sine wave.

[0022] iv: The H value is mapped to the frequency of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the amplitude of the sine wave.

[0023] v: The H value is mapped to the initial phase of the sine wave, the S value is mapped to the frequency of the sine wave, and the V value is mapped to the amplitude of the sine wave.

[0024] vi: The H value is mapped to the initial phase of the sine wave, the S value is mapped to the amplitude of the sine wave, and the V value is mapped to the frequency of the sine wave.

[0025] The mapping method is: the calculated values ​​of H, S, and V are directly assigned to A, f, Thus, each sound parameter is determined.

[0026] Through objective evaluation methods, the best mapping is determined.

[0027] There are 6 mapping methods. The mathematical expression of the sound obtained by each pixel is as follows. The mapping order is the same as in ②:

[0028]

[0029]

[0030]

[0031]

[0032]

[0033]

[0034] Where: H i,j , S i,j and V i,j are the H, S, and V values ​​calculated for the ith pixel in the jth column. T represents the final total waveform time, and N is the total number of columns of pixels in the original image.

[0035] ③ Column stacking

[0036] After obtaining the sound corresponding to each pixel, the sound on the same column needs to be superimposed. The sound corresponding to each column of M pixels is superimposed, and finally each column is synthesized into a waveform Ca(t) with a time length of T / N. The formulas of the six mapping methods are as follows:

[0037]

[0038]

[0039]

[0040]

[0041]

[0042]

[0043] ④Final output

[0044] Finally, the sound obtained from each column of the image is connected end to end in the order from left to right in the image to finally synthesize a sound of a period of time T.

[0045] (1) A low-cost guide device for the blind was designed. The specific process is as follows:

[0046] ① First, power on the embedded hardware board so that the embedded hardware board and the camera can work normally. Secondly, the image acquisition module uses the camera to capture the scene 3 meters in front of it once every 5 seconds and sends the captured image to the image-to-sound module.

[0047] ②The image-to-sound module converts the captured image into a sound and outputs it.

[0048] ③ Play the generated sound clips and transmit them to human ears through headphones. Human ears can judge whether there are obstacles ahead based on the sound, thus achieving the effect of guiding the blind.

[0049] ④ If the guide device has completed the corresponding work, the guide device will be powered off to stop working.

[0050] This device uses a camera to capture the scenery about 3 meters in front of it, and at the same time sends the captured image to convert it into sound. After obtaining the sound clip, it sends the sound to the human ear through headphones. The human ear listens to this sound clip and determines whether there are obstacles in front of it, achieving the purpose of outdoor blind guidance. The C++ language is used to write and implement the image-to-sound algorithm and design and build a new blind guidance device to achieve the purpose of blind guidance. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 : Flowchart of the image-to-sound method.

[0052] Figure 2 :Flowchart of guide device for the blind. DETAILED DESCRIPTION

[0053] (1) Build a new guide device using the hardware head-mounted bracket, camera, embedded hardware board, mobile power supply and headphones.

[0054] (2) After the equipment is installed, the embedded hardware board is powered on first, so that the embedded hardware board and the camera can work normally. Then the image acquisition module uses the camera to capture the scene 3 meters in front of it once every 5 seconds and sends the image to the image-to-sound module.

[0055] (3) The image-to-sound module converts the image in front of you into a sound and outputs it. The specific steps of this module are as follows:

[0056] ① Convert the RGB color space of the image into the HSV color space through a formula to make the colors in the image more consistent with human visual characteristics. The conversion formula is as follows:

[0057] max=max(R,G,B)

[0058] min=min(R,G,B)

[0059] delta=max-min

[0060]

[0061]

[0062]

[0063] Among them: H, S, V correspond to hue, saturation and lightness. Max and min represent the maximum and minimum values ​​of R, G, B respectively, and delta is used as an intermediate value for easy calculation.

[0064] ②Conversion from image to sound

[0065] In order to make the image information and the sound information correspond one to one, in order to solve this problem, the expression of the sound signal used in this method is a sine wave Here A represents amplitude, f represents frequency, Represents the initial phase.

[0066] The three image features H, S, and V are mapped to the three parameters of the sound sine wave: amplitude, frequency, and initial phase. The value range of H is 0-360, the value range of S is 0-1, and the value range of V is 0-1.

[0067] The image information is mapped to the sound information. The H value of the image information is mapped to the initial phase of the sine wave of the sound signal, the S value of the image information is mapped to the amplitude of the sine wave of the sound signal, and the V value of the image information is mapped to the frequency of the sine wave of the sound signal. The mapping method is: the calculated H, S, and V values ​​are directly assigned to A, f, Thus, each sound parameter is determined.

[0068] The three component information of the image is mapped to the three parameter information of the sound. According to different mapping methods, 6 different sounds can be obtained in the end, namely:

[0069] i: The H value is mapped to the amplitude of the sine wave, the S value is mapped to the frequency of the sine wave, and the V value is mapped to the initial phase of the sine wave.

[0070] ii: The H value is mapped to the amplitude of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the frequency of the sine wave.

[0071] iii: The H value is mapped to the frequency of the sine wave, the S value is mapped to the amplitude of the sine wave, and the V value is mapped to the initial phase of the sine wave.

[0072] iv: The H value is mapped to the frequency of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the amplitude of the sine wave.

[0073] v: The H value is mapped to the initial phase of the sine wave, the S value is mapped to the frequency of the sine wave, and the V value is mapped to the amplitude of the sine wave.

[0074] vi: The H value is mapped to the initial phase of the sine wave, the S value is mapped to the amplitude of the sine wave, and the V value is mapped to the frequency of the sine wave.

[0075] The mapping method is: the calculated values ​​of H, S, and V are directly assigned to A, f, Thus, each sound parameter is determined.

[0076] Next, the best mapping among the above six mappings is determined through human ear evaluation or objective evaluation method.

[0077] Human ear evaluation:

[0078] 1. Test image acquisition

[0079] It is necessary to test the judgment effect of the image-to-sound method, have a preliminary understanding of the judgment accuracy of each method, and select the best algorithm when building the guide device in the future. Therefore, it is necessary to collect some image data. The collection tool is mainly convenient, so a mobile phone is selected.

[0080] The collected images are divided into four categories, based on the number of background pixel colors. If the number of colors exceeds 5, the background is considered complex, and if the number of colors is less than or equal to 5, the background is considered simple. The categories are as follows:

[0081] i: The background is complex and there are obstacles.

[0082] ii: The background is simple with obstacles.

[0083] iii: The background is complex and has no obstacles.

[0084] iv: The background is simple and has no obstacles.

[0085] Obstacles that are too far away or not in front of the camera are not considered. Therefore, the test images are collected to see if there are obstacles within 3 meters in front of the camera. If the camera is taken with a mobile phone at a height of 1.6 meters above the ground, the angle between the camera and the vertical direction should be 60°-70°.

[0086] 2. Testing of multiple mapping methods

[0087] The three components of the image are mapped to the three components of the sine wave, and there are 6 mapping methods in total. Before testing each mapping method with human ears, the testers need to be trained first: give the testers examples of sounds mapped to obstacles in the picture in front and sounds mapped to no obstacles in the picture in front for the testers to listen to. Then let the testers take the test, and by listening to the sound, they can only judge the result as 0 or 1, where 0 means there is an obstacle and 1 means there is no obstacle.

[0088] The judgment accuracy of each mapping method is calculated based on the judgment results of all sounds, and finally the best mapping method is selected.

[0089] Objective evaluation:

[0090] 1. Objective Evaluation Model

[0091] The objective evaluation model uses a long short-term memory recurrent neural network (LSTM) model.

[0092] 2. Structure of the objective evaluation model

[0093] The LSTM model itself is composed of multiple copies of a structure and belongs to a recurrent neural network. This model is set to 4 layers, and each layer includes two activation function modules, which are set to tanh functions, and 3 recurrent activation function modules, which are set to sigmoid functions. The loss function also uses the cross entropy function, and the iterator uses adam, which is a first-order optimization algorithm that can replace the traditional stochastic gradient descent process. It can iteratively update the weights of the neural network based on the training data.

[0094] 3. Dataset Selection

[0095] The sound data is obtained by converting the images using the six image-to-sound methods in ②. In addition, since a neural network model is required, too little data will lead to poor model training and inaccurate results. Therefore, data enhancement methods are used to expand the data set. Three methods for enhancing the original image data are selected, namely, increasing contrast, increasing brightness, and horizontal flipping. After the image data is increased, it is converted into a sound file through the image-to-sound algorithm.

[0096] This experiment marks all sound samples. The marking method is as follows:

[0097] i: Label the sounds in sequence and then shuffle them.

[0098] ii: All sounds are divided into 10 parts, and the judges are 10 people aged 20-30. Each person will first hear 3 examples of sounds with obstacles and 3 examples of sounds without obstacles, and train them to distinguish between sounds with and without obstacles with human ears. Then, they are asked to judge whether there are obstacles by human ears for the image-to-sound dataset that the objective evaluation method needs to evaluate. If they think there is an obstacle, the sound is marked as 0, and if they think there is no obstacle, the sound is marked as 1.

[0099] iii: After all the sounds are judged, the results are collected and counted.

[0100] 4. Model Input

[0101] Four sound features were selected: MFCC, a musical grid that represents the distance and relationship between tones in space, chromaticity frequency, and mel spectrum. The four feature values ​​of the sound data above were combined as the input of the network model.

[0102] 5. Training Model

[0103] All sample data are divided into training set, validation set and test set in a ratio of 6:2:2. During the training process, if the loss function no longer decreases as the number of iterations increases, the training stops. Based on the model's judgment results on the test set and comparing them with the original labels of the samples, the degree of match between the objective evaluation algorithm and the human ear can be calculated.

[0104] The agreement between objective and subjective evaluation is 0.75. It is recommended to adopt the objective evaluation model.

[0105] In summary, the training of this objective evaluation model has been completed. Then, this model is used to test the image data used in the subjective evaluation test to find the mapping with the best effect.

[0106] There are 6 mapping methods. The mathematical expression of the sound obtained by each pixel is as follows. The mapping order is the same as in ②:

[0107]

[0108]

[0109]

[0110]

[0111]

[0112]

[0113] Where: H i,j , S i,j and V i,j are the H, S, and V values ​​calculated for the ith pixel in the jth column. T represents the final total waveform time, and N is the total number of columns of pixels in the original image.

[0114] ③ Column stacking

[0115] After obtaining the sound corresponding to each pixel, the sound on the same column needs to be superimposed. The sound corresponding to each column of M pixels is superimposed, and finally each column is synthesized into a waveform Ca(t) with a time length of T / N. The formulas of the six mapping methods are as follows:

[0116]

[0117]

[0118]

[0119]

[0120]

[0121]

[0122] ④Final output

[0123] Finally, the sound obtained from each column of the image is connected end to end in the order from left to right in the image to finally synthesize a sound of a period of time T.

[0124] (4) A low-cost guide device for the blind was designed. The specific process is as follows:

[0125] ① First, power on the embedded hardware board so that the embedded hardware board and the camera can work normally. Secondly, the image acquisition module uses the camera to capture the scene 3 meters in front of it once every 5 seconds and sends the captured image to the image-to-sound module.

[0126] ②The image-to-sound module converts the captured image into a sound and outputs it.

[0127] ③ Play the generated sound clips and transmit them to human ears through headphones. Human ears can judge whether there are obstacles ahead based on the sound, thus achieving the effect of guiding the blind.

[0128] ④ If the guide device has completed the corresponding work, the guide device will be powered off to stop working.

Claims

1. A blind guiding method, characterized in that: ① Convert the RGB color space of the image into the HSV color space using the formula. The conversion formula is as follows: max=max(R,G,B) min=min(R,G,B) delta=max-min Among them: H, S, V correspond to hue, saturation and lightness values; max and min represent the maximum and minimum values ​​of R, G, B respectively, and delta is the intermediate value; ②Conversion from image to sound The sound signal used is expressed as a sine wave Here A represents amplitude, f represents frequency, represents the initial phase; Map the three image features H, S, and V to the three parameters of the sound sine wave: amplitude, frequency, and initial phase; the value range of H is 0-360, the value range of S is 0-1, and the value range of V is 0-1; The three component information of the image is mapped to the three parameter information of the sound. According to different mapping methods, 6 different sounds are finally obtained, namely: i: H value is mapped to the amplitude of the sine wave, S value is mapped to the frequency of the sine wave, and V value is mapped to the initial phase of the sine wave; ii: The H value is mapped to the amplitude of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the frequency of the sine wave; iii: The H value is mapped to the frequency of the sine wave, the S value is mapped to the amplitude of the sine wave, and the V value is mapped to the initial phase of the sine wave; iv: The H value is mapped to the frequency of the sine wave, the S value is mapped to the initial phase of the sine wave, and the V value is mapped to the amplitude of the sine wave; v: H value is mapped to the initial phase of the sine wave, S value is mapped to the frequency of the sine wave, and V value is mapped to the amplitude of the sine wave; vi: H value is mapped to the initial phase of the sine wave, S value is mapped to the amplitude of the sine wave, and V value is mapped to the frequency of the sine wave; The mapping method is: the calculated values ​​of H, S, and V are directly assigned to A, f, Thus, each sound parameter is determined; Next, the best mapping among the above six mappings is determined by an objective evaluation method; 1. Objective Evaluation Model The objective evaluation model uses a long short-term memory recurrent neural network LSTM model; 2. Structure of the objective evaluation model The LSTM model itself is composed of multiple copies of a structure and belongs to a recurrent neural network. This model is set to 4 layers, and each layer structure includes two activation function modules, which are set to tanh function, and 3 recurrent activation function modules, which are set to sigmoid function. The loss function also uses the cross entropy function, and the iterator uses the adam optimization algorithm.

3. Selection of objective evaluation datasets The sound data is obtained by converting the image using the six image-to-sound methods in ②. Three methods for enhancing the original image data are selected, namely contrast increase, brightness increase, and horizontal flip. After the image data is increased, it is converted into a sound file through the image-to-sound algorithm. All sound samples are marked; the marking method is as follows: i: label these sounds in sequence and then shuffle them; ii: All sound files are divided into more than 10 parts, and the judges are more than 10 people aged 20-30 years old; each person will first hear 3 examples of sounds with obstacles and 3 examples of sounds without obstacles, and train them to distinguish the sounds with and without obstacles by human ears; then let them judge the presence or absence of obstacles by human ears for the image-to-sound dataset that the objective evaluation method needs to evaluate. If they think there is an obstacle, the sound is marked as 0, and if they think there is no obstacle, the sound is marked as 1; iii: After all the sound judgments are completed, the results are collected and counted; 4. Model Input Four sound features were selected: MFCC, a musical grid that represents the distance and relationship between tones in space, chromaticity frequency, and mel spectrum. The four feature values ​​of the sound data above were combined as the input of the network model.

5. Training Model All sample data are divided into training set, validation set and test set. During the training process, if the loss function no longer decreases as the number of iterations increases, the training stops. In summary, the training of this objective evaluation model has been completed, and the sound data converted from the picture is evaluated. The one with the highest evaluation is the best mapping, so as to find the best mapping among different mappings. There are 6 mapping methods. The mathematical expression of the sound obtained by each pixel is as follows. The mapping order is the same as in ②: Where: H i,j , S i,j and V i,j are the H, S, and V values ​​calculated for the i-th pixel in the j-th column, T represents the final total waveform time, and N is the total number of columns of pixels in the original image; ③ Column stacking After obtaining the sound corresponding to each pixel, it is necessary to superimpose the sounds on the same column; the sounds corresponding to the M pixels in each column are superimposed, and finally each column is synthesized into a waveform Ca(t) with a time length of T / N. The formulas of the six mapping methods are as follows: ④Final output Finally, the sound obtained from each column of the image is connected end to end in the order from left to right in the image to finally synthesize a sound of a period of time T.

Citation Information

Patent Citations

  • Colored audio and video guide method and colored audio and video guide device

    CN102688120A

  • Electronic travel assisting device

    CN103908365A

  • Multi-sensor intelligent way directing method and device for blind persons

    CN106265004A

  • Wearable intelligent blind person guiding clothing

    CN110522616A

  • Wearable blind assisting system and method for converting image into sound

    CN111862932A