Patent Description:
A mobile robot is an intelligent robot which is programmed for a preset route and travels along the preset route according to a preset rule.

The patent literature <CIT> provides a mobile robot toy and a use method thereof. The mobile robot moves on the bearing surface according to the road section to search and read an instruction card for obtaining a corresponding action instruction, and execute an action according to any one of the following ways: executing the action according to a single instruction card; executing the action according to a combination of a plurality of instruction cards; executing the action according to a combination of an instruction card and the road section; and executing the action according to a combination of an instruction card and identifier information on the bearing surface. The mobile robot can be controlled with simple operation. Because of no complicated programming work, the mobile robot can be used by children conveniently. However, the following problems are presented in actual use:
As shown in <FIG>, while moving, the mobile robot recognizes an icon <NUM> on an instruction card. This inevitably causes long image recognition time. Moreover, under influences of a speed of the mobile robot and an image recognition occasion, one frame of image is recognized by an image recognition algorithm at about <NUM>. When an early recognition occurs, only a part of the icon <NUM> in the recognized image falls within the recognition range <NUM>, which causes a miss of the instruction card.

In addition, the conventional icon can only be recognized as an instruction, and only can be accurately recognized when the icon enters the image completely. The icon itself cannot provide any technical assistance in determining whether the icon is completely entering into the image. <CIT> discloses a pop-up window control method and apparatus. The method comprises: when it is monitored that a pop-up window appears, acquiring window information of the pop-up window; determining whether the window information is in a preset intercepting rule; if the window information is in the preset intercepting rule, capturing an image of the pop-up window, and calculating a preset color pixel ratio on a preset region of the image, and further determining whether the preset color pixel ratio exceeds a preset threshold; and if the preset color pixel ratio exceeds the preset threshold, determining that the image is not displayed completely, and deleting the image. According to the pop-up window control method and apparatus, whether the image is complete is determined by means of the preset color pixel ratio on the preset region of the image.

In view of defects in the prior art, an objective of the present disclosure is to provide a method and system for determining a complete icon.

The present disclosure provides a method for determining a complete icon, including:.

Preferably, the method further includes: returning to acquire a next frame of image if determining that the icon of the image is incomplete; and performing image recognition on the icon if determining that the icon of the image is complete.

Preferably, the predetermined color of the auxiliary identifier differs from the color of the icon.

Preferably, the closed-loop annular structure is a rectangular structure; and
the determining step includes:.

Preferably, the icon has a first color, the auxiliary identifier has a second color, and a region of the second color surrounds a region of the first color; and
the determining step includes:.

The present disclosure provides a system for determining a complete icon, including:.

Preferably, the system acquires a next frame of image if determining that the icon of the image is incomplete; and the system performs image recognition on the icon if determining that the icon of the image is complete.

Preferably, the closed-loop annular structure is a rectangular structure; and
the determining module is configured to:.

Preferably, the icon has a first color, the auxiliary identifier has a second color, and a region of the second color surrounds a region of the first color; and
the determining module is configured to:.

Compared with the prior art, the present disclosure has following beneficial effects:.

Other features, objectives, and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments with reference to the following drawings.

The present disclosure is described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art further understand the present disclosure, but will not limit the present disclosure in any way. It should be noted that several variations and improvements can also be made by a person of ordinary skill in the art without departing from the conception of the present disclosure. These all fall within the protection scope of the present disclosure.

As shown in <FIG>, the embodiment provides a method for determining a complete icon, including: an image acquiring step, an image scanning step, and a determining step.

In the image acquiring step: A frame of image is acquired, and determination regions are delineated in a peripheral region of the image. The determination regions form a closed-loop annular structure along an edge of the image, so as to ensure that the edge of the image does not contain an icon content, or contains a minimum icon content. The closed-loop annular structure may be a rectangular structure shown in <FIG>, including first determination region <NUM>, second determination region <NUM>, third determination region <NUM>, and fourth determination region <NUM> (corresponding to regions a, b, c and d in <FIG>). Certainly, in other embodiments, the closed-loop annular structure may also be a complete circular ring, or a complete and combined polygonal ring.

For the sake of a higher accurate rate of recognition in the embodiment, noise filtering may be performed on the acquired image to remove an interference factor from the image according to a preset rule, and then the image scanning step is executed. The noise filtering on the image may be realized with a prior art, such as spatial filtering, wavelet threshold denoising based on a wavelet domain, partial differential equation (PDE)-based denoising, and total variation (TV) denoising, but is not limited in the present disclosure.

In the image scanning step: A number of pixels of a color corresponding to an icon in the whole image and a number of pixels of a color corresponding to an auxiliary identifier in each of the determination regions are scanned and counted. In the embodiment, the icon corresponds to black pixels, and the auxiliary identifier corresponds to white pixels. The icon and the auxiliary identifier have different colors for ease of recognition.

In the determining step: If the number of pixels of the color corresponding to the icon in the image is less than or equal to a first threshold, or the number of pixels of the color corresponding to the auxiliary identifier in one or more of the determination regions is less than or equal to a second threshold, it is determined that the icon of the image is incomplete. If the number of pixels of the color corresponding to the icon in the image is greater than the first threshold, and the number of pixels of the color corresponding to the auxiliary identifier in each of the determination regions is greater than the second threshold, it is determined that the iron of the image is complete.

The method further includes returning to acquire a next frame of image if determining that the icon of the image is incomplete, and performing image recognition on the icon if determining that the icon of the image is complete.

In addition, considering that the acquired image may include incomplete icon and auxiliary identifier, the icon may have a first color, and the auxiliary identifier may have a second color in the embodiment. The first color is different from the second color. A region of the second color or an inner envelope for the region of the second color surrounds a region of the first color. In the present disclosure, the first color is not limited to only one color, and may also be a combination of various colors. The second color is also not limited to only one color, and may also be a combination of various colors.

The determining step includes:
If pixels of the first color are present at an edge of the image, and a number of the pixels of the first color is greater than a third threshold, it is considered that the second color in the image does not completely surround the first color, and determined that the icon of the image is incomplete. If pixels of the first color are present in the image, a number of the pixels of the first color is not less than the first threshold, and a number of pixels of the second color at the edge of the image is greater than a fourth threshold, it is considered that the second color in the image completely surrounds the first color, and determined that the icon of the image is complete.

With the method for determining whether the icon is complete, the present disclosure cannot miss the icon in quick advancement of a vehicle, can lower configuration requirements on hardware, achieves a higher recognition efficiency, and doubles a movement speed of the vehicle.

As shown in <FIG>, on the basis of Embodiment <NUM>, the embodiment changes the auxiliary identifier as red pixels, and has a same determination principle as Embodiment <NUM>.

Considering that the icon <NUM> may be directly superposed on an identifier (including a straight line, a triangle, a quadrilateral, a polygon and other regular or irregular auxiliary images representing an advancement route) in a map in <FIG>, following improvements are made on the basis of Embodiment <NUM>, as shown in <FIG>:.

In the image acquiring step: A frame of image is acquired, and determination regions are delineated in a peripheral region of the image. The determination regions form a closed-loop annular structure along an edge of the image, so as to ensure that the edge of the image does not contain an icon content, or contains a minimum icon content. The closed-loop annular structure may be a rectangular structure shown in <FIG>, including first determination region <NUM>, second determination region <NUM>, third determination region <NUM>, and fourth determination region <NUM>. Certainly, in other embodiments, the closed-loop annular structure may also be a complete circular ring, or a complete and combined polygonal ring.

In the determining step: If the number of pixels of the color corresponding to the icon in the image is less than or equal to a first threshold, and the number of pixels of the color corresponding to the auxiliary identifier in each of two determination regions (corresponding to regions <NUM> and <NUM> in <FIG>) serving as opposite sides of a rectangle is less than or equal to the second threshold, it is determined that the icon of the image is incomplete. Or otherwise, whether a straight line is present in each of the other two determination regions (corresponding to regions <NUM> and <NUM> in <FIG>) is determined. If a determination result indicates no, it is determined that the icon of the image is incomplete. If the determination result indicates yes, it is determined that the icon of the image is complete.

Those skilled in the art are aware that in addition to being realized by using pure computer-readable program code, the system and each apparatus, module, and unit thereof provided in the present disclosure can realize a same program in a form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, or an embedded microcontroller by performing logic programming on the method steps. Therefore, the system and each apparatus, module, and unit thereof provided in the present disclosure can be regarded as a kind of hardware component. The apparatus, module, and unit included therein for realizing each function can also be regarded as a structure in the hardware component; and the apparatus, module, and unit for realizing each function can also be regarded as a software module for implementing the method or a structure in the hardware component.

Claim 1:
A method for determining a complete icon, characterized by comprising:
an image acquiring step: acquiring a frame of image, and delineating determination regions (<NUM>, <NUM>, <NUM>, <NUM>) in a peripheral region of the image, wherein the determination regions (<NUM>, <NUM>, <NUM>, <NUM>) form a closed-loop annular structure along an edge of the image;
an image scanning step: scanning and counting the number of pixels of the color corresponding to an icon (<NUM>) in the whole image and the number of pixels of a predetermined color in each of the determination regions (<NUM>, <NUM>, <NUM>, <NUM>); and
a determining step: determining, when the number of pixels of the color corresponding to the icon (<NUM>) in the image is less than or equal to a first threshold, or the number of pixels of the predetermined color in one or more of the determination regions (<NUM>, <NUM>, <NUM>, <NUM>) is less than or equal to a second threshold, that the icon (<NUM>) of the image is incomplete; and determining, when the number of pixels of the color corresponding to the icon (<NUM>) in the image is greater than the first threshold, and the number of pixels of the predetermined in each of the determination regions (<NUM>, <NUM>, <NUM>, <NUM>) is greater than the second threshold, that the icon (<NUM>) of the image is complete.