Electronic device, method for controlling electronic device, and program
An electronic device includes a transmission antenna, a reception antenna, and a signal processor. The transmission antenna is configured to transmit a transmission wave. The reception antenna is configured to receive a reflection wave resulting from reflection of the transmission wave. The signal processor is configured to detect an object based on a transmission signal transmitted as the transmission wave and a reception signal received as the reflection wave. The signal processor classifies a point group representing the object in accordance with a prescribed parameter when performing clustering on detection results of the object.
1 . An electronic device comprising:
a transmission antenna configured to transmit a transmission wave;
a reception antenna configured to receive a reflection wave resulting from reflection of the transmission wave; and
a signal processor configured to determine a plurality of data points based on a transmission signal transmitted as the transmission wave and a reception signal received as the reflection wave, classify the plurality of data points into at least a first point group of first data points and a second point group of second data points in accordance with a prescribed parameter, perform clustering on the first data points of the first point group and clustering on the second data points of the second point group, and detect a first object based on clustering the first data points of the first point group and detect a second object based on a second clustering the second data points of the second point group,
wherein when a distance between a first representative point of the first point group and a second representative point of the second point group included in adjacent sections and classified in accordance with the prescribed parameter is smaller than a prescribed threshold, the signal processor processes first point group and the second point group as point groups of a single object.
2 . The electronic device according to claim 1 , wherein the signal processor classifies the first point group in accordance with a first range of the prescribed parameter and classifies the second point group in accordance with a second range of the prescribed parameter.
3 . The electronic device according to claim 2 , wherein the first range and the second range are based on a size of an object to be detected by the electronic device.
4 . The electronic device according to claim 1 , wherein when the distance is smaller than the prescribed threshold, the signal processor calculates a representative point while treating the first point group and the second point group as point groups of a single object.
5 . The electronic device according to claim 1 , wherein when the distance is smaller than the prescribed threshold, the signal processor performs clustering while treating the first point group and the second point group as point groups of a single object.
6 . The electronic device according to claim 1 , wherein the signal processor calculates the first representative point and the second representative point based on an average value or a median value of coordinates in a prescribed direction of the first point group and the second point group included in the adjacent sections.
7 . The electronic device according to claim 1 , wherein the signal processor selectively classifies the plurality of data points in accordance with the prescribed parameter.
8 . The electronic device according to claim 7 , wherein the signal processor selectively classifies the plurality of data points in accordance with the prescribed parameter based on a size of a clustered point group.
9 . The electronic device according to claim 7 , wherein the signal processor determines a direction in which the clustered point group is classified in accordance with a direction of a size of the clustered point group.
10 . The electronic device according to claim 8 , wherein the signal processor determines the size of the clustered point group based on an average value or a maximum value of distances between a representative point of the clustered point group and points within the clustered point group.
11 . The electronic device according to claim 1 , wherein the signal processor classifies the plurality of data points in multiple dimensions in accordance with the prescribed parameter.
12 . A method for controlling an electronic device, the method comprising:
transmitting a transmission wave using a transmission antenna;
receiving a reflection wave generated by reflection of the transmission wave using a reception antenna;
determining a plurality of data points based on a transmission signal transmitted as the transmission wave and a reception signal received as the reflection wave;
classifying the plurality of data points into at least a first point group of first data points and a second point group of second data points in accordance with a prescribed parameter;
clustering the first data points of the first point group and clustering the second data points of the second point group;
detecting a first object based on clustering the first data points of the first point group and detecting a second object based on a second clustering the second data points of the second point group; and
when a distance between a first representative point of the first point group and a second representative point of the second point group included in adjacent sections and classified in accordance with the prescribed parameter is smaller than a prescribed threshold, processing first point group and the second point group as point groups of a single object.
13 . A non-transitory computer-readable recording medium storing computer program instructions, which when executed by a computer, cause the computer to:
transmit a transmission wave using a transmission antenna;
receive a reflection wave generated by reflection of the transmission wave using a reception antenna;
determine a plurality of data points based on a transmission signal transmitted as the transmission wave and a reception signal received as the reflection wave;
classify the plurality of data points into at least a first point group of first data points and a second point group of second data points in accordance with a prescribed parameter;
cluster the first data points of the first point group and cluster the second data points of the second point group;
detect a first object based on clustering the first data points of the first point group and detect a second object based on a second clustering the second data points of the second point group; and
when a distance between a first representative point of the first point group and a second representative point of the second point group included in adjacent sections and classified in accordance with the prescribed parameter is smaller than a prescribed threshold, process first point group and the second point group as point groups of a single object.