Object recognition method and object recognition apparatus using the same
First Claim
1. An object recognition method, applied to an object recognition apparatus and comprising:
- acquiring a real-time image comprising a first object;
performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object;
acquiring a plurality of preset image templates comprising a second object;
performing the chamfer distance transform on the second object of each of the plurality of preset image templates to produce a chamfer template comprising a second modified object;
determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold;
when the difference between the first modified object and the second modified object is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command;
comparing a size or location of the first object with sizes or locations of the second objects to determine whether to adjust the preset image templates, comprising;
detecting a first centroid of the first object;
detecting a first maximum inscribed circle according to the first centroid of the first object;
detecting a second centroid of each of the second objects;
detecting second maximum inscribed circles according to the second centroids of the second objects respectively;
determining whether a size or location of the first maximum inscribed circle is equal to a size or location of one of the second maximum inscribed circles; and
adjusting the preset image template comprising the second maximum inscribed circle when the size or location of the first maximum inscribed circle is different from the size or location of the second maximum inscribed circle; and
when the size or location of the first object is different from the size or location of one of the second object, adjusting the preset image template comprising the second object.
4 Assignments
0 Petitions
Accused Products
Abstract
An object recognition method and an object recognition apparatus using the same are provided. In one or more embodiments, a real-time image including a first object is acquired, and a chamfer distance transform is performed on the first object of the real-time image to produce a chamfer image including a first modified object. Preset image templates each including a second object are acquired, and the chamfer distance transform is performed on the second object of each preset image template to produce a chamfer template including a second modified object. When the difference between the first modified object and the second modified object is less than a first preset error threshold, the object recognition apparatus may operate according to a control command corresponding to the preset image template.
13 Citations
30 Claims
-
1. An object recognition method, applied to an object recognition apparatus and comprising:
-
acquiring a real-time image comprising a first object; performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object; acquiring a plurality of preset image templates comprising a second object; performing the chamfer distance transform on the second object of each of the plurality of preset image templates to produce a chamfer template comprising a second modified object; determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold; when the difference between the first modified object and the second modified object is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command; comparing a size or location of the first object with sizes or locations of the second objects to determine whether to adjust the preset image templates, comprising; detecting a first centroid of the first object; detecting a first maximum inscribed circle according to the first centroid of the first object; detecting a second centroid of each of the second objects; detecting second maximum inscribed circles according to the second centroids of the second objects respectively; determining whether a size or location of the first maximum inscribed circle is equal to a size or location of one of the second maximum inscribed circles; and adjusting the preset image template comprising the second maximum inscribed circle when the size or location of the first maximum inscribed circle is different from the size or location of the second maximum inscribed circle; and when the size or location of the first object is different from the size or location of one of the second object, adjusting the preset image template comprising the second object. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An object recognition apparatus, comprising:
-
a first image capturing device, for recording a real-time image comprising a first object; a storage device, for storing preset image templates each of which comprises a second object; and a processing device connected to the first image capturing device and the storage device, for receiving the real-time image from the first image capturing device, receiving the preset image templates from the storage device, and performing the following steps; performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object; respectively performing the chamfer distance transform on the second objects of the preset image templates to produce chamfer templates each of which comprises a second modified object; determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold; when the difference between the first modified object and the second modified object is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command; comparing a size or location of the first object with a size or location of each of the second objects to determine whether to adjust the preset image templates, and when the size or location of the first object is different from the size or location of one of the second objects, the processing device adjusting the preset image template comprising the second object; and detecting a first centroid of the first object, detecting a first maximum inscribed circle in the first object according to the first centroid, detecting a second centroid of each of the second objects, detecting a second maximum inscribed circle in each of the second objects according to each of the second centroids, and determining whether a size or location of the first maximum inscribed circle is equal to a size or location of each of the second maximum inscribed circles; and
when the size or location of the first maximum inscribed circle is different from the size or location of one of the second maximum inscribed circles, the processing device adjusting the preset image template comprising the second maximum inscribed circle. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
-
15. An object recognition method, applied to an object recognition apparatus and comprising:
-
acquiring an original frame from a first image capturing device; performing an image pre-processing procedure on the original frame to produce a real-time image comprising a first object; performing a chamfer distance transform on the first object of the real-time image to generate a chamfer image comprising a first modified object; acquiring a plurality of preset image templates comprising a second object; performing the chamfer distance transform on the second object of each of the plurality of preset image templates to generate a chamfer template comprising a second modified object; determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold; when the difference between the first modified object and one of the second modified objects is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command; comparing a size or location of the first object with sizes or locations of the second objects to determine whether to adjust the preset image templates, comprising; detecting a first centroid of the first object; detecting a first maximum inscribed circle in the first object according to the first centroid; detecting a second centroid of each of the second objects; detecting second maximum inscribed circles in the second objects according to the second centroids respectively; determining whether a size or location of the first maximum inscribed circle is equal to a size or location of each of the second maximum inscribed circles; and adjusting the preset image template comprising the second maximum inscribed circle when the size or location of the first maximum inscribed circle is different from the size or location of one of the second maximum inscribed circles; and when the size or location of the first object is different from the size or location of one of the second object, adjusting the preset image template comprising the second object. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. An object recognition method, applied to an object recognition apparatus and comprising:
-
acquiring a real-time image, which comprises a first object, from a first image capturing device; acquiring preset image templates each of which comprises a second object; performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object; performing the chamfer distance transform on the second object of each of the preset image templates to produce a chamfer template comprising a second modified object; determining whether difference between the first modified object and each of the second modified objects is less than a preset error threshold; when the difference between the first modified object and one of the second modified objects is less than the preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object; when movement of the first object in a sequence of next real-time images acquired from the first image capturing device matches a preset trace model, sending the control command to control the object recognition apparatus; comparing a size or location of the first object with sizes or locations of the second objects to determine whether to adjust the preset image templates, comprising; detecting a first centroid of the first object; detecting a first maximum inscribed circle according to the first centroid of the first object; detecting a second centroid of each of the second objects; detecting second maximum inscribed circles according to the second centroids of the second objects respectively; determining whether a size or location of the first maximum inscribed circle is equal to a size or location of one of the second maximum inscribed circles; and adjusting the preset image template comprising the second maximum inscribed circle when the size or location of the first maximum inscribed circle is different from the size or location of the second maximum inscribed circle; and when the size or location of the first object is different from the size or location of one of the second object, adjusting the preset image template comprising the second object. - View Dependent Claims (26, 27, 28, 29)
-
-
30. An object recognition apparatus, comprising:
-
a first image capturing device, for recording a real-time image comprising a first object; a storage device, for storing preset image templates each of which comprises a second object; and a processing device connected to the first image capturing device and the storage device, for receiving the real-time image from the first image capturing device, receiving the preset image templates from the storage device, and performing the following steps; performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object; respectively performing the chamfer distance transform on the second objects of the preset image templates to produce chamfer templates each of which comprises a second modified object; determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold; when the difference between the first modified object and the second modified object is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command; comparing a size or location of the first modified object with sizes or locations of the second modified objects to determine whether to adjust the chamfer templates, and when the size or location of the first modified object is different from the size or location of one of the second modified objects, the processing device adjusting the chamfer template comprising the second modified object; and detecting a third centroid of the first modified object, detecting a third maximum inscribed circle according to the third centroid of the first modified object, detecting a fourth centroid of each of the second modified objects, detects fourth maximum inscribed circles according to the fourth centroids of the second modified objects respectively, and determining whether a size or location of the third maximum inscribed circle is equal to a size or location of each of the fourth maximum inscribed circles; and
when the size or location of the third maximum inscribed circle is different from the size or location of one of the fourth maximum inscribed circles, the processing device adjusting the chamfer template comprising the fourth maximum inscribed circle.
-
Specification