Image processing system, method, device, readable storage medium and program product
The image processing system uses facial expression analysis and tactile feedback technology to analyze the image of the target object and provide tactile feedback, which solves the problem of visually impaired people being unable to accurately perceive emotional states during communication and improves the accuracy and efficiency of emotional perception.
Patent Information
- Application Number
- CN202110762134.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-07-06
AI Technical Summary
Visually impaired people cannot capture each other's facial expressions during face-to-face communication, resulting in a reduction in social information. Existing technologies that feed back emotional changes through the auditory channel increase the user's cognitive load and cannot accurately obtain the target object's emotional state information.
Using an image processing system, including a facial expression analysis device and a tactile feedback device, the image of the target object is analyzed through the pre-trained improved Xception network model, the emotional state information is obtained, and tactile feedback is provided through the tactile feedback device. Perceive emotional states without occupying the auditory channel.
It improves the accuracy of users in obtaining emotional state information of target objects, reduces cognitive load, and enhances the emotional perception ability of visually impaired people in communication.
Smart Images

Figure CN113703567B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of communication technology, and in particular, to an image processing system, method, device, readable storage medium, and program product. Background Art
[0002] Face-to-face communication is a very important part of people's social activities. In face-to-face communication, we can rely on visual channels to obtain the other person's facial expressions and better perceive the other person's emotions.
[0003] For the visually impaired, the reduction of visual cues greatly reduces social information, which may lead to inefficiency in communication. Since it is impossible to capture the other person's facial expressions through the visual channel, we hope to supplement the information of the visual channel for the visually impaired through other methods, so that the visually impaired can better perceive the other person's emotional changes when communicating with others. In some methods, hearing can be used as feedback, that is, the other person's emotional state can be conveyed to the user through voice input.
[0004] However, for the visually impaired, they already need to process a variety of information through the auditory channel. If emotional changes are fed back through the auditory channel, it will further increase the user's cognitive load, resulting in the user being unable to accurately obtain the emotional state information of the target object. Summary of the invention
[0005] Embodiments of the present invention provide an image processing system, method, device, readable storage medium and program product to solve the problem that a user cannot accurately obtain the emotional state information of a target object.
[0006] In a first aspect, an embodiment of the present invention provides an image processing system, the system comprising a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected to the tactile feedback device via the control module;
[0007] The facial expression analysis device is used to collect images of the target object and analyze the images based on the pre-trained improved Xception network model to obtain the emotional state information of the target object during communication;
[0008] The control module is used to receive the emotional state information output by the facial expression analysis device, and send corresponding control instructions to the tactile feedback device according to the emotional state information;
[0009] The tactile feedback device includes a feeling area for a user to touch, so as to provide the user with tactile feedback corresponding to the emotional state information through the feeling area according to the control instruction.
[0010] Optionally, the facial expression analysis device includes an image acquisition module and an image processing module;
[0011] The image acquisition module is used to acquire the video stream of the target object;
[0012] The image processing module is used to segment the collected video stream to obtain multiple frames of pictures. For each frame of the picture, the facial area in the picture is determined by a facial area extraction unit, the features of the facial area are extracted by a pre-trained improved Xception network model, and the emotional state information corresponding to the picture is obtained based on the extracted features.
[0013] Optionally, when the image processing module obtains the emotional state information corresponding to the image through the pre-trained improved Xception network model, it is specifically used to:
[0014] Determining multiple emotional state information corresponding to the image and the confidence level corresponding to each emotional state information through the improved Xception network model;
[0015] The confidence level with the highest value is obtained by comparing various confidence levels, and the confidence level with the highest value is compared with a preset confidence threshold;
[0016] When the confidence level with the highest numerical value is greater than the preset confidence threshold, determining the emotional state information corresponding to the confidence level with the highest numerical value as the emotional state information corresponding to the picture;
[0017] When the confidence level of the highest value is less than or equal to the preset confidence threshold, information indicating that no emotional state is detected is sent to the control module, so that the control module controls the tactile feedback device to stop providing tactile feedback.
[0018] Optionally, the tactile feedback device further includes a vibration module and a temperature adjustment module, so that the user can distinguish the emotional state information through vibration and / or temperature;
[0019] The vibration module is connected to the control module, and is used to transmit different modes of vibration to the feeling area according to the control instruction when receiving the control instruction output by the control module, and the vibration mode includes at least one of the following: long-time strong vibration, short-time strong vibration, long-time weak vibration and short-time weak vibration;
[0020] The temperature regulating module is connected to the control module, and is used for cooling or heating the sensing area according to the control instruction when receiving the control instruction output by the control module.
[0021] Optionally, the vibration module includes a motor, and the temperature adjustment module includes a first semiconductor refrigerator and a second semiconductor refrigerator, the first semiconductor refrigerator is used to receive a cooling instruction output by the control module, and produce a cooling effect according to the cooling instruction; the second semiconductor refrigerator is used to receive a heating instruction output by the control module, and produce a heating effect according to the heating instruction; the distance between the sensing area and the first semiconductor refrigerator is smaller than the distance between the sensing area and the second semiconductor refrigerator.
[0022] Optionally, the tactile feedback device further includes a temperature sensor, and the temperature sensor is used to obtain temperature information of the sensing area;
[0023] The control module is further used to: obtain temperature information collected by the temperature sensor; if the temperature information is greater than a preset threshold, output a control instruction to stop heating to the tactile feedback device.
[0024] Optionally, the tactile feedback device further includes a heat dissipation module;
[0025] The control module is also used for:
[0026] When the temperature sensor detects that the temperature information is greater than a preset threshold, the heat dissipation module is started;
[0027] If a cooling instruction is output during the heating process of the second semiconductor refrigerator, the heat dissipation module is started.
[0028] If the first semiconductor refrigerator is in the cooling process, the heat dissipation module is started.
[0029] Optionally, the system also includes a debugging feedback device, which is used to display a single frame image, the facial area in the image located by the facial area extraction unit, and the emotional state information predicted by the improved Xception network model when training and testing the improved Xception network model.
[0030] In a second aspect, an embodiment of the present invention provides an image processing method, which is applied to an image processing system, wherein the system includes a facial expression analysis device, a tactile feedback device, and a control module; the facial expression analysis device is connected to the tactile feedback device through the control module; the tactile feedback device includes a sensing area for a user to touch, and the method includes:
[0031] Receiving emotional state information output by the facial expression analysis device; the emotional state information is based on the emotional state information of the target object during communication obtained by the facial expression analysis device by collecting an image of the target object and analyzing the image based on a pre-trained improved Xception network model;
[0032] A corresponding control instruction is sent to the tactile feedback device according to the emotional state information, so that the tactile feedback device provides tactile feedback corresponding to the emotional state information to the user through the feeling area according to the control instruction.
[0033] In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and a memory;
[0034] The memory stores computer-executable instructions;
[0035] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image processing method as described in the second aspect.
[0036] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the image processing method described in the second aspect is implemented.
[0037] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which implements the image processing method as described in the second aspect when executed by a processor.
[0038] The image processing system, method, device, readable storage medium and program product provided by the embodiment of the present invention include a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected with the tactile feedback device through the control module; the facial expression analysis device is used to collect images of a target object, and analyze the images based on a pre-trained improved Xception network model to obtain emotional state information of the target object during communication; the control module is used to receive the emotional state information output by the facial expression analysis device, and send corresponding control instructions to the tactile feedback device according to the emotional state information; the tactile feedback device includes a sensing area for a user to touch, so as to provide tactile feedback corresponding to the emotional state information to the user through the sensing area according to the control instruction, the user can obtain the emotional state information through the sense of touch through the system, the system does not need to occupy the auditory channel when feeding back the emotional state information to the user, and can improve the accuracy of the user in obtaining the emotional state information of the target object. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of an application scenario of an image processing system provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of the structure of an image processing system provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the structure of another image processing system provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of the structure of the improved Xception network model provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of a flow chart of an image processing method provided by an embodiment of the present invention;
[0045] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0048] Figure 1 A schematic diagram of an application scenario of an image processing system provided by an embodiment of the present invention, such as Figure 1 As shown, the target object may be an object that is within a preset range of the user and that the user is talking to. When the user is talking to the target object, if it is inconvenient for the user to capture the other party's facial expression through a visual channel, the target object's emotional state information, such as surprise, happiness, disgust, anger, etc., may be perceived through the image processing system. Specifically, the image processing system acquires an image of the target object, and the image processing system obtains the emotional state information of the target object by processing the acquired image, and outputs tactile feedback corresponding to the emotional state information. The user may obtain the tactile feedback by touching a preset area of the image processing system, and may determine changes in the emotional state information of the target object during the conversation based on the tactile feedback.
[0049] In face-to-face communication, 65% of social information is transmitted through visual channels, such as facial expressions, distance between talkers, eye contact, body posture, etc. For the visually impaired, the reduction of visual cues will lead to the loss of information, resulting in inefficient communication.
[0050] In order to solve the above problems, in some technologies, researchers use the auditory channel as feedback of emotional state information. However, for people with visual impairments, they already need to process a lot of information through the auditory channel. If the auditory channel is still used for feedback of emotional state information, it will further increase the user's cognitive load, resulting in the user being unable to accurately obtain the emotional state information of the target object.
[0051] Based on the defects of the above-mentioned technology, it is considered to use touch as feedback of emotional state information. The image processing system provided by the embodiment of the present invention includes a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected to the tactile feedback device through the control module; the facial expression analysis device is used to collect the image of the target object, and analyze the image based on the pre-trained improved Xception network model to obtain the emotional state information of the target object during communication; the control module is used to receive the emotional state information output by the facial expression analysis device, and send corresponding control instructions to the tactile feedback device according to the emotional state information; the tactile feedback device includes a feeling area for the user to touch, so as to provide the user with tactile feedback corresponding to the emotional state information through the feeling area according to the control instruction. The user can obtain the emotional state information through the system through the sense of touch, without the need to achieve it through hearing, which can improve the accuracy of the user in obtaining the emotional state information of the target object.
[0052] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0053] Figure 2 A schematic diagram of the structure of an image processing system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the system of this embodiment includes a facial expression analysis device 201, a tactile feedback device 203 and a control module 202; the facial expression analysis device 201 and the tactile feedback device 203 are connected through the control module 202;
[0054] The facial expression analysis device 201 is used to collect images of the target object and analyze the images based on the pre-trained improved Xception network model to obtain the emotional state information of the target object during communication;
[0055] The control module 202 is used to receive the emotion state information output by the facial expression analysis device, and send corresponding control instructions to the tactile feedback device 203 according to the emotion state information;
[0056] The tactile feedback device 203 includes a feeling area for the user to touch, so as to provide the user with tactile feedback corresponding to the emotional state information through the feeling area according to the control instruction.
[0057] In this embodiment, the facial expression analysis device 201 can collect images of the target object, and specifically, can collect images of the target object in real time. The target object is located at a preset position of the user. For example, when the target object communicates with the user face to face, the facial expression analysis device 201 collects images of the target object in front of the user; when the target object is located to the left or right of the user, the facial expression analysis device collects images of the target object to the left or right of the user.
[0058] After collecting the image of the target object, the facial expression analysis device 201 can process the collected image to obtain the emotional state information of the target object corresponding to the image. Among them, the facial expression analysis device can analyze the image through the improved Xception network model. The improved Xception network model is obtained after adjusting the depth of the Xception network model. The Xception network model can reduce the amount of calculated parameters on the basis of increasing the number of model layers by replacing the large convolution kernel with multiple small convolution kernels, reducing the storage space while also enhancing the expression ability of the model.
[0059] In this embodiment, the control module 202 can receive the emotional state information output by the facial expression analysis device, and send a control instruction to the tactile feedback device 203 according to the emotional state information, and the control instruction is used to control the tactile feedback device 203 to output tactile feedback corresponding to the emotional state information. Among them, the control module 202 can be implemented by a single-chip microcomputer, by burning the code corresponding to the control method into the single-chip microcomputer, so that when the single-chip microcomputer receives a certain emotional state information again, it can control the tactile feedback device to output corresponding tactile feedback. The control method is a method for controlling the tactile feedback device to output corresponding tactile feedback according to the emotional state information. Among them, the single-chip microcomputer can be Arduino.
[0060] The tactile feedback device 203 can output corresponding tactile feedback according to the control instruction output by the control module 202. The tactile feedback can be tactile feedback containing two-dimensional information of temperature and vibration. Corresponding tactile feedback can be generated for different emotional state information. The tactile feedback device 203 includes a feeling area, through which the user can feel the tactile feedback, and the emotional state information of the target object can be determined according to the corresponding relationship between the tactile feedback and the emotional state information.
[0061] Through the above system, when the user is communicating with the target object, the image of the target object can be collected in real time, and the image of the target object can be analyzed through the improved Xception network model to obtain the emotional state information of the target object, and the corresponding tactile feedback can be output through the tactile feedback system. The user can obtain the emotional state information of the target object by placing a part of the body in the sensing area. This can assist the visually impaired to effectively perceive the emotional state information of the target object when communicating with the target object, and help the user to communicate better with the target object.
[0062] The composition and function of each device or module in the image processing system are described in detail below.
[0063] Figure 3 A schematic diagram of the structure of another image processing system provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the facial expression analysis device includes an image acquisition module 2011 and an image processing module 2012;
[0064] The image acquisition module 2011 is used to acquire the video stream of the target object;
[0065] The image processing module 2012 is used to segment the collected video stream to obtain multiple frames of pictures. For each frame of the picture, the facial area in the picture is determined by the facial area extraction unit, the features of the facial area are extracted by the pre-trained improved Xception network model, and the emotional state information corresponding to the picture is obtained based on the extracted features.
[0066] In this embodiment, the facial expression analysis device 201 includes an image acquisition module 2011, wherein the image acquisition module 2011 is a camera, such as a camera. In order to facilitate the acquisition of an image of a target object located at a preset position of the user, the camera can be set to a rotatable state. The camera can acquire a video stream of the target object in real time, and can obtain the emotional state information of the target object in real time; in addition, the video stream of the target object can be acquired once every preset time, such as once every 30 seconds, which can reduce the amount of calculation of the image processing module 2012.
[0067] In addition, the video stream captured by the camera device is a video stream containing the facial organs of the target object. Since the image processing system will be placed close to the user when in use, it is convenient for the user to place a part of the body in the sensing area of the image processing system. Therefore, the image processing system is usually at a certain distance from the target object. When the camera device captures the video stream of the target object, the video stream usually contains not only the facial area of the target object, but also the body parts or other background areas of the target object. In addition, when capturing the video stream, the image acquisition device can also locate the facial area of the target object, set a suitable magnification, and then shoot, so that the acquired video stream is a video stream that only contains the facial area of the target object.
[0068] Among them, the image acquisition module 2011 acquires the video stream containing the target object when the user and the target object are in the process of communicating. Specifically, the image acquisition module 2011 can also first acquire voice information, and when the voice information is detected, it automatically starts to acquire the video stream containing the target object; or, a switch can be set on the image acquisition module 2011, and when the user turns on the switch, it starts to acquire the video stream containing the target object.
[0069] After acquiring the video stream, the image acquisition module 2011 can send the video stream to the image processing module 2012, which can segment the acquired video stream to obtain multiple frames of pictures, thereby converting the video stream into pictures. After acquiring multiple frames of pictures, each frame of pictures can be analyzed to obtain the emotional state information of the target object. Specifically, a facial region extraction unit is stored in the image processing module 2012. When the acquired picture not only contains the facial region of the target object, the facial region extraction unit is required to locate the acquired picture in the facial region so as to accurately extract the features of the facial region. After determining the facial region, features can be extracted by the improved Xception network model trained in advance, and the extracted features can be classified.
[0070] in, Figure 4 The schematic diagram of the structure of the improved Xception network model provided by the embodiment of the present invention. Figure 4 As shown, the Xception network model in the embodiment of the present invention includes a convolution layer, five residual modules, a convolution layer and an average pooling layer, wherein a residual module includes a convolution layer, a residual convolution layer, two depth-separable convolution layers and a maximum pooling layer. Wherein, the input data is a picture after positioning the facial area, the input picture is sequentially extracted through the feature of the convolution layer to obtain the output data of the first layer, the output data of the first layer is passed through the first residual module to obtain the output data of the first residual module, wherein the output data of the residual module is calculated as follows: the input data of the residual module is passed through the convolution layer to obtain the output data after convolution, the output data after convolution is passed through the residual convolution layer to obtain the first output data, the output data after convolution is sequentially passed through two depth-separable convolution layers and the maximum pooling layer to obtain the second output data, and the first output data and the second output data are summed to obtain the output data of the first residual module. The output data of the last residual module is input into the convolution layer, then passed through the average pooling layer, and finally passed through the fully connected layer to output a vector, where the vector is the confidence corresponding to multiple emotional state information, thereby determining the emotional state information of the image.
[0071] In view of the limited data set used in this application, the existing Xception network model has many layers, which is prone to overfitting and slow calculation speed. Therefore, by reducing the number of residual modules and the number of convolutional layers, the number of layers of the improved model is reduced, the overfitting problem is reduced, and the calculation speed is improved.
[0072] The improved Xception network model pre-trained in the image processing module can make the output accuracy higher; in addition, since each residual module will pass the convolved output data through the residual convolution layer to obtain the output data, and pass it through two depth-separable convolution layers and the maximum pooling layer to obtain the output data, the improved Xception network model can integrate local information and global information to improve the output accuracy.
[0073] Optionally, when the image processing module 2012 obtains the emotional state information corresponding to the image through the pre-trained improved Xception network model, it is specifically used to:
[0074] Determining multiple emotional state information corresponding to the image and the confidence level corresponding to each emotional state information through the improved Xception network model;
[0075] The confidence level with the highest value is obtained by comparing various confidence levels, and the confidence level with the highest value is compared with a preset confidence threshold;
[0076] When the confidence level with the highest numerical value is greater than the preset confidence threshold, determining the emotional state information corresponding to the confidence level with the highest numerical value as the emotional state information corresponding to the picture;
[0077] When the confidence level with the highest value is less than or equal to the preset confidence threshold, information indicating that no emotional state is detected is sent to the control module 202, so that the control module 202 controls the tactile feedback device 203 to stop providing tactile feedback.
[0078] In this embodiment, the data output by the Xception network model is an N-dimensional vector, where N represents the amount of emotional state information. When the amount of emotional state information is 6, the output data is a 6*1 array, where each dimension corresponds to the confidence level corresponding to each emotional state information, and the emotional state information corresponding to the picture is determined based on the confidence level corresponding to each emotional state information.
[0079] Specifically, when determining the emotional state information according to the confidence level, the confidence level with the highest value can be obtained first, and the confidence level can be compared with the preset confidence level. When the confidence level with the highest value is greater than the preset confidence level, it indicates that the emotional state information corresponding to the confidence level with the highest value is the emotional state information corresponding to the image. For example, when the confidence level with the highest value is 80%, and the corresponding emotional state information is "surprise", if the preset confidence level is 75%, the output emotional state information is "surprise". When the confidence level with the highest value is less than or equal to the preset confidence level, it indicates that the current emotional state information of the target object is a neutral emotional state, that is, an emotional state without obvious tendency. At this time, it can be indicated that the emotional state information is not detected. When the control module 202 receives an instruction containing the emotional state information that is not detected, the tactile feedback device 203 stops outputting tactile feedback. At this time, for the user, when no tactile feedback is felt, it indicates that the current target object has no obvious emotional tendency.
[0080] By setting a confidence level for each type of emotional state information and comparing the confidence level with the highest value with the preset confidence level, the emotional state information of the target object can be determined.
[0081] Optionally, the tactile feedback device 203 further includes a vibration module 2031 and a temperature adjustment module 2032, so that the user can distinguish the emotional state information through vibration and / or temperature;
[0082] The vibration module 2031 is connected to the control module 202, and is used to transmit different modes of vibration to the feeling area according to the control instruction when receiving the control instruction output by the control module 202, and the vibration mode includes at least one of the following: long-time strong vibration, short-time strong vibration, long-time weak vibration and short-time weak vibration;
[0083] The temperature adjustment module 2032 is connected to the control module 202, and is used to cool or heat the sensing area according to the control instruction when receiving the control instruction output by the control module 202.
[0084] In this embodiment, the tactile feedback device 203 provides two-dimensional tactile feedback to the user, wherein the tactile feedback includes vibration and temperature. Specifically, the vibration can be generated by the vibration module 2031, and the temperature can be adjusted by the temperature adjustment module 2032. Among them, the vibration mode can include multiple types, such as long-term strong vibration, short-term strong vibration, long-term weak vibration and short-term weak vibration. Among them, strong vibration and weak vibration can be measured by the duty cycle of the square wave that controls the vibration. When the duty cycle is less than a certain value, it is expressed as weak vibration, and when the duty cycle is greater than or equal to a certain value, it is expressed as strong vibration. Long time and short time can be determined according to the duration of a single vibration. When the duration of a single vibration is greater than or equal to a certain duration, it is expressed as a long vibration, and when the duration of a single vibration is less than a certain duration, it is expressed as a short vibration. Heating or cooling can be achieved through the temperature adjustment module 2032.
[0085] According to the emotional state information, the vibration module and temperature adjustment module of the tactile feedback device 203 can output different vibration or temperature feedback respectively to distinguish different emotional state information. The following table is a correspondence table between tactile feedback and emotional state information provided by an embodiment of the present invention.
[0086] Table of correspondence between tactile feedback and emotional state information
[0087]
[0088] As shown in the above table, the embodiment of the present invention can output six kinds of emotional state information through the facial expression analysis device 201, namely, surprise, happiness, disgust, sadness, anger and fear. Different combinations of vibration modes and temperatures can be set for each kind of emotional state information. For example, for the emotional state information of "surprise", the vibration mode can be set to long-term strong vibration, and the temperature can be set to heating; for the emotional state information of "anger", the vibration mode can be set to short-term strong vibration, and the temperature can be set to cooling; for the vibration and temperature corresponding to other emotional state information, please refer to the above table. It should be noted that the above table is only a specific embodiment. The type of emotional state information and the vibration and temperature corresponding to each kind of emotional state information can be adjusted, and this application does not limit this.
[0089] The vibration module 2031 and the temperature adjustment module 2032 can generate corresponding vibration or temperature according to the control instruction of the control module 202. In addition, the tactile feedback device 203 includes a feeling area, and the vibration and temperature information output by the vibration module 2031 and the temperature adjustment module 2032 can be transmitted to the feeling area. The user can feel the vibration and temperature information by placing a finger or other body part in the feeling area, and then determine the emotional state information of the target object.
[0090] By setting the vibration module 2031 and the temperature adjustment module 2032, the user can simultaneously obtain two-dimensional tactile feedback, so that the user can accurately and quickly determine the emotional state information corresponding to the tactile feedback. In addition, by providing the user with two-dimensional tactile feedback of vibration and temperature, it is conducive to the user to resonate with the target object.
[0091] Optionally, the vibration module 2031 includes a motor, and the temperature adjustment module 2032 includes a first semiconductor refrigerator and a second semiconductor refrigerator, the first semiconductor refrigerator is used to receive a cooling instruction output by the control module 202, and produce a cooling effect according to the cooling instruction; the second semiconductor refrigerator is used to receive a heating instruction output by the control module 202, and produce a heating effect according to the heating instruction; the distance between the sensing area and the first semiconductor refrigerator is smaller than the distance between the sensing area and the second semiconductor refrigerator.
[0092] In this embodiment, the vibration module 2031 includes a motor, and different vibrations can be generated by controlling the vibration frequency and vibration time of the motor; wherein the vibration frequency can be achieved by controlling the speed of the motor. The motor can receive control instructions output by the control module 202, and different control instructions correspond to different vibration modes.
[0093] The temperature adjustment module 2032 can be implemented by a semiconductor refrigerator. Preferably, two semiconductor refrigerators can be used to implement it. Different semiconductor refrigerators are used for cooling and heating respectively. By setting two semiconductor refrigerators, cooling or heating effects can be quickly achieved. When the first semiconductor refrigerator receives the cooling instruction sent by the control module 202, it can produce a cooling effect; when the second semiconductor refrigerator receives the heating instruction sent by the control module 202, it can produce a heating effect. The control module 202 can determine the output cooling instruction or heating instruction according to the received emotional state information, and output the cooling instruction or heating and cooling to the corresponding semiconductor refrigerator. Among them, each semiconductor refrigerator also needs to be controlled by a wide voltage dual MOS tube control module to realize power supply for two semiconductor refrigerators by one battery. The wide voltage dual MOS tube control module is connected to the control module, and is used to control the semiconductor refrigerator to be connected to the battery according to the received control instruction, so that the control module 202 can realize control of the semiconductor cooling sheet.
[0094] In addition, since the conduction speed of heating is faster than that of cooling, and the conduction range of heating is larger than that of cooling, the sensing area can be arranged close to the first semiconductor. Specifically, the distance between the sensing area and the two semiconductors can be measured, so that the distance between the sensing area and the first semiconductor refrigerator is smaller than the distance between the sensing area and the second semiconductor refrigerator.
[0095] Different vibration feedbacks can be generated by the motor and the two semiconductor cooling sheets. By arranging the feeling area close to the first semiconductor refrigerator, the tactile feedback felt by the user can be more accurate.
[0096] Optionally, the tactile feedback device 203 further includes a temperature sensor 2033, and the temperature sensor 2033 is used to obtain temperature information of the feeling area;
[0097] The control module 202 is further configured to: obtain temperature information collected by the temperature sensor 2033 ; and output a control instruction to stop heating to the tactile feedback device 203 if the temperature information is greater than a preset threshold.
[0098] In this embodiment, the temperature information of the sensing area needs to be monitored. Since the second refrigeration sheet is used to generate a heating effect, if the second semiconductor refrigeration sheet generates heat for a long time, the temperature in the sensing area will rise. In addition, when one end of the first semiconductor refrigeration sheet generates a cooling effect, the other end will generate heat, which will also increase the temperature of the sensing area, posing a safety hazard. Therefore, a temperature sensor can be set to obtain temperature information, and the obtained temperature information is transmitted to the control module 202. The control module 202 judges the obtained temperature information. When it is greater than a preset threshold, it indicates that the temperature is too high, and a control instruction to stop heating is output.
[0099] By setting up a temperature sensor, the control module can obtain the temperature information of the sensing area and output corresponding control instructions according to the temperature information to avoid danger caused by excessive temperature.
[0100] Optionally, the tactile feedback device 203 further includes a heat dissipation module 2034;
[0101] The control module 203 is also used to: start the heat dissipation module 2034 when the temperature sensor detects that the temperature information is greater than a preset threshold;
[0102] If a cooling instruction is output during the heating process of the second semiconductor refrigerator, the heat dissipation module 2034 is started;
[0103] If the first semiconductor refrigerator is in the cooling process, the heat dissipation module 2034 is started.
[0104] In this embodiment, the tactile feedback device 204 further includes a heat dissipation module 2034, which may be a fan. The heat dissipation module 2034 is controlled by the control module 203. When the control module 202 determines that the temperature detected by the temperature sensor is greater than a preset value, the heat dissipation fan is controlled to start to cool the sensing area.
[0105] In addition, if the second semiconductor is in the process of heating, if it is detected that the target object's emotional state information changes and it is necessary to control the first semiconductor to cool, the heat dissipation module is started at this time. This is because if the second semiconductor is in the heating state before the first semiconductor is controlled to cool, in order to quickly achieve the cooling effect, the heat dissipation device can be controlled to work, so that the feeling area is quickly cooled to produce a cooling effect.
[0106] In addition, when the first semiconductor refrigerator is cooling, since the other end will generate heat, it is necessary to use a heat dissipation module 2034 to dissipate heat, otherwise, the temperature of the area cooled by the first semiconductor refrigerator will also rise.
[0107] All hardware in the tactile feedback device 203 are assembled into a housing, and the area on the housing close to the first semiconductor cooler is the sensing area.
[0108] By setting up a heat dissipation device, the maximum temperature of the sensing area can be ensured to be within a certain value, avoiding danger caused by excessive temperature.
[0109] Optionally, the system also includes a debugging feedback device, which is used to display pictures, facial areas in the pictures located by the Xception network model, and corresponding emotional state information when training and testing the Xception network model.
[0110] In this embodiment, the system may also include a debugging feedback device, which can be used in the training of the improved Xception network model. The debugging feedback device can display a picture of the current target object, and display the located facial area and the corresponding emotional state information. By checking the located facial area and emotional state information, it can be determined whether the output emotional state information is consistent with the actual emotional state information in the picture. If not, it can be checked whether the located facial area is consistent with the actual facial area. If not, it means that an error occurred when locating the facial area, and the accuracy of locating the facial area can be improved; if the facial area is located correctly, but the output emotional state information is wrong, the preset confidence and / or the input data of the improved Xception network model can be adjusted.
[0111] By setting up a debugging feedback device, it is easy to adjust the improved Xception network model and facilitate visualization.
[0112] Among them, the image processing system provided by the embodiment of the present invention was also verified, and the visually impaired people and blindfolded people learned the correspondence between tactile feedback and emotional state information. The experimenter can obtain the emotional state information of the conversation partner in real time during a normal conversation. Using this system can reduce the distance and frustration between the visually impaired and the conversation partner, and easily generate emotional resonance. The correspondence is simple and easy to learn, and can improve the accuracy of users in obtaining the emotional state information of the target object.
[0113] In addition, the system can also obtain the target object's emotional state information when no one is speaking, that is, the emotional state information is determined by obtaining pictures. Since negative emotional state information is more important than positive emotional state information, the tactile feedback of the negative emotional state information is more obvious.
[0114] Figure 5 A flowchart of an image processing method provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the method is applied to an image processing system, the system includes a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected to the tactile feedback device through the control module; the tactile feedback device includes a feeling area for a user to touch, and the method includes:
[0115] Step S501, receiving the emotional state information output by the facial expression analysis device; the emotional state information is based on the emotional state information of the target object during communication obtained by the facial expression analysis device through collecting images of the target object and analyzing the images based on a pre-trained improved Xception network model.
[0116] In this embodiment, the control module is a single chip microcomputer, such as Arduino, and by controlling the control module, the control module can output corresponding control instructions to the hardware feedback device when receiving different emotional state information. The control module can receive the output emotional state information.
[0117] For example, when the target object shows a "surprise" state, the emotional state information will be output through the facial expression analysis device, and the control module can receive the "surprise" emotional state information.
[0118] Step S502: sending a corresponding control instruction to the tactile feedback device according to the emotional state information, so that the tactile feedback device provides tactile feedback corresponding to the emotional state information to the user through the feeling area according to the control instruction.
[0119] When the control module receives certain emotional state information, it will generate a control instruction corresponding to the emotional state information to notify the tactile feedback device to generate tactile feedback. For example, when the emotional state information of "surprise" is received, the corresponding control instruction will be output to the hardware feedback device. For example, the control instruction can be used to control the vibration module to generate long-term strong vibration and control the temperature adjustment module to generate a heating effect. When the tactile feedback device generates the above tactile feedback, it will also cause the feeling area to generate the above tactile feedback. When the user places a part of the body in the feeling area, the tactile feedback can be felt.
[0120] The output process of the emotional state information in the image processing method and the implementation process of the tactile feedback device in this embodiment are similar to those described in the above embodiments, and their implementation principles and technical effects are similar, which will not be repeated here.
[0121] Figure 6 Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Figure 6 As shown, the electronic device 60 provided in this embodiment includes: at least one processor 601 and a memory 602. The processor 601 and the memory 602 are connected via a bus 603.
[0122] In a specific implementation process, at least one processor 601 executes the computer-executable instructions stored in the memory 602, so that at least one processor 601 executes the image processing method in the above method embodiment.
[0123] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0124] In the above Figure 6 In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0125] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0126] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0127] An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the image processing method of the above method embodiment is implemented.
[0128] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0129] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0130] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An image processing system, characterized in that: The system comprises a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected with the tactile feedback device via the control module; The facial expression analysis device is used to collect images of the target object and analyze the images based on the pre-trained improved Xception network model to obtain the emotional state information of the target object during communication; The control module is used to receive the emotional state information output by the facial expression analysis device, and send corresponding control instructions to the tactile feedback device according to the emotional state information; The tactile feedback device comprises a feeling area for a user to touch, so as to provide tactile feedback corresponding to the emotional state information to the user through the feeling area according to the control instruction; The improved Xception network model includes a convolutional layer, five residual modules, a convolutional layer and an average pooling layer, wherein a residual module includes a convolutional layer, a residual convolutional layer, two depth-separable convolutional layers and a maximum pooling layer; The input data is a picture after the facial area is located. The input picture is sequentially extracted through the features of the convolution layer to obtain the output data of the first layer. The output data of the first layer is passed through the first residual module to obtain the output data of the first residual module. The calculation method of the output data of the residual module is as follows: the input data of the residual module is passed through a convolution layer to obtain the output data after convolution, the output data after convolution is passed through a residual convolution layer to obtain the first output data, the output data after convolution is passed through two depth-separable convolution layers and a maximum pooling layer in sequence to obtain the second output data, and the first output data and the second output data are summed to obtain the output data of the first residual module; The output data of the last residual module is input into the convolution layer, then passed through the average pooling layer, and finally passed through the fully connected layer to output a vector, where the vector is the confidence corresponding to multiple emotional state information, thereby determining the emotional state information of the image.
2. The system according to claim 1, characterized in that The facial expression analysis device comprises an image acquisition module and an image processing module; The image acquisition module is used to acquire the video stream of the target object; The image processing module is used to segment the collected video stream to obtain multiple frames of pictures. For each frame of the picture, the facial area in the picture is determined by a facial area extraction unit, the features of the facial area are extracted by a pre-trained improved Xception network model, and the emotional state information corresponding to the picture is obtained based on the extracted features.
3. The system according to claim 2, characterized in that When the image processing module obtains the emotional state information corresponding to the image through the pre-trained improved Xception network model, it is specifically used to: Determining multiple emotional state information corresponding to the image and the confidence level corresponding to each emotional state information through the improved Xception network model; The confidence level with the highest value is obtained by comparing various confidence levels, and the confidence level with the highest value is compared with a preset confidence threshold; When the confidence level with the highest numerical value is greater than the preset confidence threshold, determining the emotional state information corresponding to the confidence level with the highest numerical value as the emotional state information corresponding to the picture; When the confidence level of the highest value is less than or equal to the preset confidence threshold, information indicating that no emotional state is detected is sent to the control module, so that the control module controls the tactile feedback device to stop providing tactile feedback.
4. The system according to claim 1, characterized in that The tactile feedback device further includes a vibration module and a temperature adjustment module, so that the user can distinguish the emotional state information through vibration and / or temperature; The vibration module is connected to the control module, and is used to transmit vibrations of different modes to the feeling area according to the control instructions when receiving the control instructions output by the control module; The vibration mode includes at least one of the following: long-time strong vibration, short-time strong vibration, long-time weak vibration and short-time weak vibration; The temperature regulating module is connected to the control module, and is used for cooling or heating the sensing area according to the control instruction when receiving the control instruction output by the control module.
5. The system according to claim 4, characterized in that The vibration module includes a motor, and the temperature adjustment module includes a first semiconductor refrigerator and a second semiconductor refrigerator. The first semiconductor refrigerator is used to receive a cooling instruction output by the control module and generate a cooling effect according to the cooling instruction; the second semiconductor refrigerator is used to receive a heating instruction output by the control module and generate a heating effect according to the heating instruction; the distance between the sensing area and the first semiconductor refrigerator is smaller than the distance between the sensing area and the second semiconductor refrigerator.
6. The system according to claim 5, characterized in that The tactile feedback device further includes a temperature sensor, and the temperature sensor is used to obtain temperature information of the sensing area; The control module is further used to: obtain temperature information collected by the temperature sensor; if the temperature information is greater than a preset threshold, output a control instruction to stop heating to the tactile feedback device.
7. The system according to claim 6, characterized in that The tactile feedback device also includes a heat dissipation module; The control module is also used for: When the temperature sensor detects that the temperature information is greater than a preset threshold, the heat dissipation module is started; If a cooling instruction is output during the heating process of the second semiconductor refrigerator, the heat dissipation module is started; If the first semiconductor refrigerator is in the cooling process, the heat dissipation module is started.
8. The system according to any one of claims 1 to 7, characterized in that: The system also includes a debugging feedback device, which is used to display a single frame image, the facial area in the image located by the facial area extraction unit, and the emotional state information predicted by the improved Xception network model when training and testing the improved Xception network model.
9. An image processing method, characterized in that: The method is applied to the image processing system according to any one of claims 1 to 8, wherein the system comprises a facial expression analysis device, a tactile feedback device and a control module; the facial expression analysis device is connected to the tactile feedback device via the control module; the tactile feedback device comprises a sensing area for a user to touch, and the method comprises: Receiving emotional state information output by the facial expression analysis device; the emotional state information is based on the emotional state information of the target object during communication obtained by the facial expression analysis device by collecting an image of the target object and analyzing the image based on a pre-trained improved Xception network model; sending a corresponding control instruction to the tactile feedback device according to the emotional state information, so that the tactile feedback device provides tactile feedback corresponding to the emotional state information to the user through the feeling area according to the control instruction; The improved Xception network model includes a convolutional layer, five residual modules, a convolutional layer and an average pooling layer, wherein a residual module includes a convolutional layer, a residual convolutional layer, two depth-separable convolutional layers and a maximum pooling layer; The input data is a picture after the facial area is located. The input picture is sequentially extracted through the features of the convolution layer to obtain the output data of the first layer. The output data of the first layer is passed through the first residual module to obtain the output data of the first residual module. The calculation method of the output data of the residual module is as follows: the input data of the residual module is passed through a convolution layer to obtain the output data after convolution, the output data after convolution is passed through a residual convolution layer to obtain the first output data, the output data after convolution is passed through two depth-separable convolution layers and a maximum pooling layer in sequence to obtain the second output data, and the first output data and the second output data are summed to obtain the output data of the first residual module; The output data of the last residual module is input into the convolution layer, then passed through the average pooling layer, and finally passed through the fully connected layer to output a vector, where the vector is the confidence corresponding to multiple emotional state information, thereby determining the emotional state information of the image.
10. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-implemented instructions stored in the memory, so that the at least one processor performs the method of claim 9.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to claim 9 is implemented.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method as claimed in claim 9.
