The present invention relates an optical navigation device, and particularly relates to an optical device which can detect abnormal regions.
In recent years, automatic sweepers such as robot cleaners become more and more popular. However, a conventional automatic sweeper only has the function of cleaning but does not have the function of detecting abnormal regions. Therefore, the user still needs other methods to find the abnormal regions. For example, the user needs to get down for checking if the floor under furniture damages or any junk is under the furniture. Also, the unexpected objects such as a tiny toy or a plastic bag may be inhaled into the automatic sweeper, thus the automatic sweeper may be jammed or even malfunction due to the unexpected objects.
One embodiment of the present invention discloses an optical navigation device, comprising: at least one image sensor, configured to sense at least one sensing image; and a processing circuit, configured to determine at least one abnormal region in the sensing image and control the optical navigation device to inform the abnormal region exists to a user.
Another embodiment of the present invention discloses an optical navigation device, comprising: a first image sensor, configured to generate first sensing images, wherein a first angle exists between a sensing direction of a sensing surface of the first image sensor and the surface, wherein the first angle is a smallest angle among angles exist between the sensing direction of the first image sensor and the surface; a second image sensor, configured to generate second sensing images, wherein a second angle exists between a sensing direction of a sensing surface of the second image sensor and the surface, wherein the second angle is a smallest angle among angles exist between the sensing direction of the second image sensor and the surface, wherein the first angle is larger than the second angle; and a processing circuit, configured to determine and record at least one abnormal region according to the second sensing images of and then according to the first sensing images.
Another embodiment of the present invention discloses: a robot, comprising: a housing, having at least two wheels and configured to move on a working surface; at least one image sensor, disposed in the housing and configured to sense at least one sensing image; and a processing circuit, disposed in the housing and configured to determine at least one abnormal region in the sensing image and control the robot to inform a user with the abnormal region.
In view of above-mentioned embodiments, the automatic sweeper can detect abnormal regions, thus the user does not need to check the state of the floor under furniture by his self. Besides, the automatic sweeper can avoid to be damaged due to the unexpected objects on the floor.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Several embodiments are provided in following descriptions to explain the concept of the present invention. Each component in following descriptions can be implemented by hardware (e.g. a device or a circuit) or hardware with software (e.g. a program installed to a processor). Additionally, the term “first”, “second”, “third” in following descriptions are only for the purpose of distinguishing different one elements, and do not mean the sequence of the elements. For example, a first device and a second device only mean these devices can have the same structure but are different devices.
The sensing direction, which can be a normal factor of the sensing surface, can be set corresponding to different requirements. For example, the sensing direction (the dotted line) of the image sensor IS can be set to be lower, such that a first angle θ1 exists between the sensing direction and the surface Sr. The first angle θ1 is a smallest angle between angles existing between the sensing direction of the image sensor IS and the surface Sr. For another example, the sensing direction of the image sensor IS can be set to be more forward, such that a second angle θ2 exists between the sensing direction and the surface Sr. The second angle θ2 is a smallest angle between angles existing between the sensing direction and the surface Sr. The first angle θ1 is larger than the second angle θ2.
The abnormal regions can be detected by various methods.
In one embodiment, the automatic sweeper 100 comprises at least one light source configured to emit light with a predetermined light wave length. If the surface has an unexpected color, which may be caused by an unexpected object, an unexpected surface state (e.g., the surface Sr damages), or stains on the surface Sr, the wavelengths of the light may be changed, thus the image sensor IS may receive light with unexpected wave lengths. Therefore, the processing circuit 101 can determine the abnormal region according to a light wave length of light received by the image sensor IS.
In one embodiment, the processing circuit determines the abnormal region according to image features of the sensing image. As shown in
Based on the embodiment illustrated in
In the embodiments, all regions of the floor 400 are determined as candidate abnormal regions since they have different colors. Also, the candidate abnormal regions CAR1, CAR2, CAR3 are determined as normal regions since they have repeated color variations (or have repeated colors). On the opposite, the candidate abnormal regions CAR4, CAR5 are determined as abnormal regions since they have non-repeated color variations (or have non-repeated colors).
In another embodiment, the processing circuit 101 determines a protruding level of an object on a surface according to image features of the sensing image, and determines the abnormal region according to the protruding level. In the embodiment of
As illustrated in
In one embodiment, the automatic sweeper 100 has the function of recording a map of a building in which the automatic sweeper 100 is provided. In such case, the automatic sweeper 100 can record image features corresponding to regions in the map. Therefore, if new image features which vary greatly in the vertical direction appear, the processing circuit 101 can determine the object protrudes from the surface according to these new image features.
After determine the protruding levels for varies regions, the automatic sweeper 100 can determine and record the regions which protrude from the surface.
The second image sensor IS2 is configured to generate second sensing images. The second angle θ2 exists between a sensing direction of a sensing surface of the second image sensor IS2 and the surface Sr. The second angle θ2 is a smallest angle among angles exist between the sensing direction of the second image sensor IS2 and the surface Sr, wherein the first angle θ1 is larger than the second angle θ2. In other words, the sensing direction (the dotted line) of the first image sensor is lower, and the sensing direction of the second image sensor IS2 is more forward. The processing circuit 101 is configured to determine and record at least one abnormal region according to the second sensing images of the second image sensor and then according to the first sensing images.
Use the first image sensor IS1 to sense first sensing images and the second image sensor IS2 to sense second sensing images. As above-mentioned, in one embodiment, the automatic sweeper 700 comprises light sources to assist this step.
The automatic sweeper 700 performs clean operations and record detection parameters such as the above-mentioned image features.
The processing circuit 101 determines whether the object protrudes or not (i.e., whether the protruding level is larger than a protruding threshold or not) according to the second sensing image from the second image sensor IS2. If yes, go to step 807, if not, go to step 815.
Also, in following steps 807-811, the processing circuit 101 further determines a type of the abnormal region according to a difference level and a difference distribution of light intensities of reflected light received by the second image sensor IS2.
Determine a difference level and a difference distribution of light intensities of reflected light received by the second image sensor IS2. That is, determine a difference level and a difference distribution of the light regions in the second sensing image.
If the light intensities non-continuously vary and the difference level is larger than a difference threshold, go to step 809. Also, if the light intensities continuously vary and the difference level is smaller than a difference threshold, go to step 811.
Determine the abnormal region is an unexpected object, such as a coin, a plastic bag, a plastic piece, a toy or a block. In other words, if the light intensities non-continuously vary and greatly varies, it means an un-expected object may exist on the surface.
Determine the abnormal region is deformation of the surface. For example, if the floor damages, protrudes or splits, these deformation regions may causes the light intensities to continuously vary and the difference level is smaller since the deformation regions may have larger areas.
The following steps 813, 815, 817, are performed according to the first sensing image generated by the first image sensor and are similar with the operations illustrated in
The processing circuit 101 determines if image features of the first sensing image of the first image sensor IS1 are continuous. For example, the processing circuit 101 determines if shadows in the sensing image are continuous. If non-continuous, go to step 815. Also, if continuous, the process can go back to the step 805 for a next sensing image.
Determine colors of neighboring regions in at least one sensing image are identical or not. If the colors are identical, the process can go back to the step 805 for a next sensing image. If the colors are not identical, the process goes to the step 817.
Exclude the regions has repeated image features (or named regular image feature variations). For example, in
Determine the abnormal regions as stains, such as the abnormal regions CAR4, and CAR5 in
The stains may be caused by various factors, such as drinks, inks, any liquid with colors, or dirt.
Record the locations and/or the types of the abnormal regions, and report to a user.
Besides reporting to the user, the automatic sweepers 100 and 700 can perform other operations corresponding to the abnormal region. For example, the automatic sweepers 100 and 700 can stop and generate warning message, and waits for the user to process. In such case, the abnormal region is not recorded. By this way, the automatic sweepers 100 and 700 can avoid cleaning wrong regions or inhaling small objects which may damage the automatic sweepers.
In the process of
It will be appreciated that although above-mentioned embodiments are used to automatic sweepers, the above-mentioned embodiments can be applied to any other optical navigation device such as an optical mouse. Also, any combination or variation based on the above-mentioned embodiments should also fall in the scope of the present invention.
The above-mentioned embodiments can be applied to a robot cleaner. Therefore, the above embodiment can be summarized as: a robot, comprising: a housing (e.g., 103 in
In view of above-mentioned embodiments, the automatic sweeper can detect abnormal regions, thus the user does not need to check the state of the floor under furniture by his self. Besides, the automatic sweeper can avoid to be damaged due to the unexpected objects on the floor.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.