This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2012-254602, filed on Nov. 20, 2012; the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a communication device, a communication method and a computer program product.
There is a technique of determining, in the case of performing wireless communication with a wireless communication device existing in the periphery, presence or absence of a communication obstacle by detecting the surrounding environment, in order to transmit information to be transmitted to a larger number of wireless communication devices.
According to such a technique, in the case there is no communication obstacle in the periphery, information to be transmitted is transmitted to all the wireless communication devices existing in the communication range, whereas in the case there is a communication obstacle in the periphery, information to be transmitted is transmitted to all the wireless communication devices existing in the communication range with information requesting relaying added thereto, and the wireless communication devices further relay and transmit the information to be transmitted.
According to an embodiment, a communication device includes an analyzer, a switching unit and a communication unit. The analyzer is configured to analyze an image taken at a periphery of the communication device. The switching unit is configured to switch a communication counterpart from a first communication device to a second communication device based on an analysis result of the image. The communication unit is configured to communicate with the second communication device after switching.
Hereinafter, various embodiments will be described in detail with reference to appended drawings.
The acquisition unit 11, the analysis unit 13, the switching unit 15, and the communication unit 17 may be implemented by causing a processing device such as a CPU (Central Processing Unit) or the like to execute programs, that is, by software, or may be realized by hardware such as an IC (Integrated Circuit) or the like, or may be implemented by both software and hardware, for example.
The acquisition unit 11 acquires an image obtained by photographing the periphery of the wireless communication device 10. Specifically, an imaging device such as a digital camera (not illustrated in
The periphery of the wireless communication device 10 is the space that affects the communication quality of the wireless communication device 10 as well as its surrounding space, for example, but this is not restrictive. For example, the space that affects the communication quality and its surrounding space may be defined in advance by measuring, in a test environment or estimating from a theoretical value or a prediction value, how many people or cars passing through which space near the wireless communication device 10 would affect the communication quality to what degree in the case of the wireless communication device 10 wirelessly communicating with another wireless communication device (not illustrated in
The number of imaging devices may be one or more. For example, there may be a plurality of imaging devices, and the acquisition unit 11 may acquire images captured from a plurality of directions (capturing positions), so as to widen the analysis range of the analysis unit 13 described later. The imaging device may be provided to the wireless communication device 10, or it may be a separate device from the wireless communication device 10, such as an existing security camera.
The analysis unit 13 analyzes the communication quality of the wireless communication device 10. The communication quality of the wireless communication device 10 may be reduced (deteriorated) not only by a negative influence on wireless communication itself, such as radio wave interference, but also by a negative influence caused by the presence of an object which may become an obstacle for the wireless communication between the wireless communication device 10 and another wireless communication device. Moreover, if an object which may become an obstacle is a known stationary object such as a wall, it may be dealt with in advance (the negative influence on the communication quality may be eliminated), but if a moving object such as a person or a car temporarily becomes an obstacle by moving, it cannot be dealt with in advance.
Accordingly, in the first embodiment, the analysis unit 13 analyzes an image acquired by the acquisition unit 11 and detects presence or absence of an object which may become an obstacle for the wireless communication between the wireless communication device 10 and another wireless communication device to thereby analyze and evaluate the communication quality of the wireless communication device 10.
Specifically, the analysis unit 13 sequentially analyzes images acquired by the acquisition unit 11, and in the case an object which may become an obstacle for wireless communication is detected, the analysis unit 13 analyzes and evaluates the communication quality of the wireless communication device 10 based on the detected object. For example, if the degree of influence of the object on the communication quality has been measured in a test environment or has been estimated from a theoretical value or a prediction value, as described above, a table in which information, such as the type of an object, the number of objects, the position and the like is associated with the degree of influence on the communication quality is stored in a storage unit (not illustrated in
The analysis unit 13 may detect an object which may become an obstacle for wireless communication using a technique of detecting a specific object, such as a person, a face, a car or the like, from an image. As the technique for detecting a specific object, there is T. Watanabe, S. Ito, and K. Yokoi, “Co-occurrence histograms of oriented gradients for pedestrian detection,” in PSIVT, 2009, pp. 37-47, for example, which is a human detection technique that uses co-occurrence histograms of oriented gradients.
The switching unit 15 switches the communication counterpart from a first wireless communication device to a second wireless communication device based on an analysis result of the analysis unit 13. Specifically, in the case the analysis result of the analysis unit 13 indicates that the quality of communication with the first wireless communication device with which communication is currently being performed decreases, the switching unit 15 cuts the connection for wireless communication with the first wireless communication device, and establishes a connection for wireless communication with the second wireless communication device which is the switching destination.
The second wireless communication device to be the switching destination is determined according to the positional relationship to the object which may become an obstacle detected by the analysis unit 13. Specifically, the switching unit 15 determines, as the second wireless communication device to be the switching destination, another wireless communication device with respect to which the object which may become an obstacle detected by the analysis unit 13 is not present at a position that would block the wireless communication with the wireless communication device 10. Also, the second wireless communication device may be determined further taking into consideration the intensity of radio wave to/from the wireless communication device 10. For example, the switching unit 15 determines, as the second wireless communication device to be the switching destination, another wireless communication device with respect to which the object which may become an obstacle detected by the analysis unit 13 is not present at a position that would block the wireless communication with the wireless communication device 10, whose distance to the object is a predetermined distance or more, and for which the intensity of radio wave to/from the wireless communication device 10 is equal to or higher than a predetermined value. Here, the order of priority between the distance and the intensity of radio wave is dependent on the application, and for example, in the case a priority is placed on the stability of the communication quality, a parameter may be given from outside so as to prioritize increasing the distance from the cause of quality reduction.
The positional relationship to other wireless communication device located around the wireless communication device 10 may be specified in advance at the time of installation based on map information such as a map, an information map, a station map or the like, or may be autonomously obtained according to the intensity of radio wave between wireless communication devices or positioning information, or if outdoors, positioning by a GPS (Global Positioning System) may be used. Moreover, by tracking a specific object and establishing correspondence between objects across cameras using an image recognition technology, the positional relationship between the wireless communication devices may be grasped based on the progress information of the order of passing by the cameras. Incidentally, in this case, the positional relationship between the cameras and the wireless communication devices has to be known.
In the case the analysis unit 13 no longer detects the object which may become an obstacle for wireless communication, or the intensity of radio wave has returned to before, or a predetermined time has passed, the switching unit 15 may restore the communication counterpart. That is, the connection for wireless communication with the second wireless communication device which is the switching destination may be cut off, and connection for wireless communication with the first wireless communication device which is the restored device may be established.
Additionally, the switching unit 15 may perform switching not only for the wireless communication device 10, but also for other wireless communication devices.
The communication unit 17 performs wireless communication with another wireless communication device which is the communication target (another wireless communication device with respect to which connection for wireless communication is established).
In the example illustrated in
On the other hand, in the example illustrated in
First, the acquisition unit 11 acquires an image obtained by photographing the periphery of the wireless communication device 10 (step S101).
Then, the analysis unit 13 analyzes the image acquired by the acquisition unit 11, detects presence or absence of an object which may become an obstacle for wireless communication between the wireless communication device 10 and another wireless communication device, to thereby determine the communication quality of the wireless communication device 10 (step S103).
Next, the switching unit 15 checks, based on the analysis result of the analysis unit 13, whether the quality of communication with the other wireless communication device with which communication is currently being performed is good or not (step S105). In the case the quality of communication with the other wireless communication device with which communication is currently being performed is good (Yes in step S105), the process is ended.
On the other hand, in the case the quality of communication with the other wireless communication device with which communication is currently being performed is not good (No in step S105), the switching unit 15 switches the communication counterpart (step S107).
Then, the communication unit 17 performs wireless communication with another wireless communication device which is the switching destination (step S109).
As described above, according to the first embodiment, when an object which may cause reduction in communication quality is detected from an image obtained by photographing the periphery of the wireless communication device, the communication counterpart is switched, and the influence of reduction in communication quality may be suppressed.
In a second embodiment, an example of predicting reduction in communication quality will be described. In the following, the difference to the first embodiment will be mainly described, and structural elements having the same functions as in the first embodiment will be denoted with the same names and reference signs as in the first embodiment, and their description will be omitted.
The analysis unit 113 analyzes an image acquired by the acquisition unit 11 and detects presence or absence of an object which may become an obstacle for wireless communication between the wireless communication device 100 and another wireless communication device to thereby analyze and evaluate the communication quality of the wireless communication device 100.
Specifically, the analysis unit 113 sequentially analyzes images sequentially acquired by the acquisition unit 11, and obtains the number of objects detected, the positions, the movement speed, and the movement directions. Then, the analysis unit 113 refers to the table stored in a storage unit (not illustrated in
Alternatively, prediction of reduction in the communication quality may be performed using not object detection, but a background differencing technique of calculating a difference image between a background captured in a normal situation and an acquired image at the current time point or an optical flow technique. In this case, if there is a movement in the screen, that is, if there is a difference to the background, the presence or absence of an object which may become an obstacle may be detected, and the speed of change may be obtained by optical flow. When the speed of image change is obtained, the degree of influence that may be exerted on the communication quality in the future if the detected object moves at the detected movement speed and in the detected movement direction is acquired in the same manner as in the object detection, and the communication quality of the wireless communication device 100 is evaluated.
First, the process of step S201 is the same as the process of step S101 of the flow chart illustrated in
Then, the analysis unit 113 analyzes an image acquired by the acquisition unit 11 and detects presence or absence of an object which is predicted to be an obstacle for wireless communication between the wireless communication device 100 and another wireless communication device to thereby predict the future communication quality of the wireless communication device 100 (step S203).
Next, the switching unit 15 checks, based on the analysis result of the analysis unit 113, whether the quality of communication with the other wireless communication device with which communication is currently being performed will continue to be good in the future or not (step S205).
The processes of the following steps S207 to S209 are the same as the processes of steps S107 to S109 of the flow chart illustrated in
As described above, according to the second embodiment, when an object which is predicted to cause reduction in communication quality is detected from an image obtained by photographing the periphery of the wireless communication device, the communication counterpart is switched, and thus, the influence of reduction in communication quality may be prevented.
In a third embodiment, a case of predicting reduction in communication quality using correlation information indicating a correlation between a change in image and a change in communication quality will be described. In the following, the difference to the second embodiment will be mainly described, and structural elements having the same functions as in the second embodiment will be denoted with the same names and reference signs as in the second embodiment, and their description will be omitted.
The storage unit 219 may be implemented by a storage device capable of magnetic, optical or electrical storage, such as a HDD (Hard Disk Drive), a SSD (Solid State Drive), a memory card, an optical disk, a RAM (Random Access Memory), or a ROM (Read Only Memory), for example.
In addition to prediction of communication quality described in the second embodiment, the analysis unit 213 performs prediction of communication quality using correlation information indicating a correlation between a change in image and a change in communication quality. Since wireless communication devices are installed in various environments, it is difficult to perfectly predict the communication quality by using the method described in the second embodiment, and the prediction may turn out to be wrong.
If images obtained by photographing the periphery of the wireless communication device 200 are recorded in a chronological order, it is expected that a change in image that causes reduction in communication quality is also recorded. Basically, there is a correlation between reduction in communication quality and a change in image that causes the reduction in communication quality. Thus, if a pattern for each installation position of a wireless communication device, such as when a certain change occurs in an image, the communication quality of a certain wireless communication device is reduced by 10% five minutes later, may be learned, the accuracy of prediction of communication quality may be expected to increase.
Accordingly, the analysis unit 213 compares an image acquired by the acquisition unit 11 and a past image previously captured, and in the case there is a change equal to or greater than a threshold value therebetween, the analysis unit 213 associates the image and elapsed time from when the image is captured to when communication quality is changed, and stores the same as the correlation information in the storage unit 219.
Specifically, the analysis unit 213 compares images sequentially acquired by the acquisition unit 11 with an image acquired from an immediately preceding frame, and in the case a change in image equal to or greater than a threshold value is detected, the analysis unit 213 stores the image acquired by the acquisition unit 11 in the storage unit 219. For example, in the example illustrated in
Furthermore the analysis unit 213 monitors the communication quality (for example, the intensity of radio wave) of the wireless communication device 200, measures the elapsed time from when a change in image equal to or greater than a threshold value is detected to when the communication quality of the wireless communication device 200 is reduced, and stores, in the storage unit 219, the elapsed time in association with the image from which the change in image equal to or greater than a threshold value has been detected. For example, in the example illustrated in
Moreover, the reduction in communication quality may also be affected by time, such as a morning rush hour, and the time of occurrence of a change in image equal to or greater than a threshold value or reduction in communication quality may also be stored in the storage unit 219 in association.
The correlation information indicating a correlation (a relationship) between a change in image and a change in communication quality is thus stored in the storage unit 219.
Then, the analysis unit 213 analyzes the communication quality using an image acquired by the acquisition unit 11 and the correlation information stored in the storage unit 219. Specifically, the analysis unit 213 checks whether an image similar to the image acquired by the acquisition unit 11 is stored in the storage unit 219 or not, and if it is stored, the analysis unit 213 acquires the elapsed time stored in association with the image, and predicts that the communication quality will be reduced after the elapsed time thus acquired. Additionally, if the time is also stored in the storage unit 219, the time may also be used for matching.
First, the processes of steps S301 to S303 are the same as the processes of steps S201 to S203 of the flow chart illustrated in
Then, the analysis unit 213 checks whether an image similar to the image acquired by the acquisition unit 11 is stored in the storage unit 219 or not (step S307). Then, if a similar image is stored in the storage unit 219 (Yes in step S307), the analysis unit 213 acquires the elapsed time stored in association with the image, predicts that the communication quality will be reduced after the elapsed time acquired, and proceeds to step S311.
On the other hand, if a similar image is not stored in the storage unit 219 (No in step S307), the process flow proceeds to step S309.
The processes of the following steps S309 to S313 are the same as the processes of steps S205 to S209 of the flow chart illustrated in
As described above, according to the third embodiment, since the relationship between a change in image and reduction in communication quality is learned, reduction in quality of communication around a wireless communication device may be accurately predicted, the communication counterpart is switched, and the influence of reduction in communication quality may be prevented.
Example Modification 1
In the second embodiment described above, the analysis unit 113 may predict not only the reduction in the communication quality, but also restoration of the communication quality, and the switching unit 15 may restore the communication counterpart at the timing at which the communication quality is predicted to be restored.
In this case, the analysis unit 113 may predict the time until an object which may be an obstacle exits the space in which an influence may be exerted on the communication quality of the wireless communication device 100, using the object detection or the optical flow. The switching unit 15 may thereby switch the communication counterpart at the timing at which the communication quality is predicted to be reduced, and restore the communication counterpart at the timing the communication quality is predicted to be restored.
According to the example modification 1, the timing of both the start and end of reduction in the communication quality can be predicted, and thus, there is no need to perform a test on whether the communication quality is restored, for example, and wasteful communication can be reduced and communication can be performed efficiently.
Example Modification 2
In each of the embodiments described above, an example is described where the switching unit 15 automatically switches the communication counterpart. Alternatively, an analysis result of the analysis unit may be output by an output unit to notify a user of the analysis result, and the communication counterpart may be switched based on an input (a user's instruction) through an operation unit.
The automatic switching between communication counterparts is not always accurate, and more flexible switching between communication counterparts is enabled in the above manner.
Example Modification 3
In the third embodiment described above, the analysis unit 213 stores the correlation information in the storage unit 219. Alternatively, the information may be transmitted to another wireless communication device, or may be managed by an external server, a cloud or the like. With this, the correlation information may be shared with other wireless communication devices. For example, in an office building or the like, there may be several rooms with a similar view or environment, and an image pattern and information about a change in communication environment obtained by a wireless communication device is possibly useful for another wireless communication device installed in a similar environment.
Example Modification 4
In each of the embodiments described above, a case where the wireless communication device performs wireless communication is described as an example, but application to a case where a communication device performs wired communication is also possible. For example, the communication efficiency may also be reduced in the case of wired communication due to the communication cable bending because of the weight of snow, birds or other obstacles.
Accordingly, the prediction method for the communication quality based on image recognition described in each of the embodiments described above may be applied, and the curvature or the like of the cable may be calculated, and in the case the cable is bent to a certain degree or more, or an obstacle such as a bird is detected, reduction in the communication quality may be predicted, the communication counterpart may be switched by the switching unit, and an efficient communication route may be secured.
Example Modification 5
Furthermore, in each of the embodiments described above, communication quality may be predicted based on an input from a sensor for detecting people, a door opening/closing sensor or the like, in addition to image recognition. With this, the cause of reduction in communication quality by the image recognition, such as presence or absence of passage of people, opening or closing of a door, or the like may be identified.
Hardware Configuration
Programs to be executed by the wireless communication device of each of the embodiments and example modifications described above are provided, being stored in a computer-readable storage medium, such as a CD-ROM, a CD-R, a memory card, a DVD (Digital Versatile Disk), or a flexible disk (FD), in the form of an installable or executable file.
Furthermore, the programs to be executed by the wireless communication device of each of the embodiments and example modifications described above may be stored in a computer connected to a network such as the Internet, and may be provided by being downloaded via the network. Also, the programs to be executed by the wireless communication device of each of the embodiments and example modifications described above may be provided or distributed via a network such as the Internet. Moreover, the programs to be executed by the wireless communication device of each of the embodiments and example modifications described above may be provided, being embedded in a ROM or the like in advance.
The programs to be executed by the wireless communication device of each of the embodiments and example modifications described above are configured as a module for realizing each unit described above on a computer. As the actual hardware, each unit described above is realized on the computer by the CPU reading the programs from the HDD onto the RAM and executing the same.
The execution order of the steps of the flow charts of the embodiments described above may be changed without departing from their nature, and a plurality of steps may be performed at the same time, or the order may be changed for each mode of performance.
According to the communication device of at least one embodiment described above, the influence of reduction in communication quality may be suppressed.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2012-254602 | Nov 2012 | JP | national |