IMAGE DETERMINING METHOD AND OBJECT COORDINATE COMPUTING APPARATUS
An image determining method, for determining which pixels in an image are specific image pixels of a specific image, comprising: (a) determining which pixels in the image have brightness values larger than a threshold value; (b) determining the pixels having brightness values larger than the threshold value as the specific image pixels; and determining pixels in a predetermined range of at least one the specific image pixel as the specific image pixels as well.
Latest PIXART IMAGING INC. Patents:
1. Field of the Invention
The present invention relates to an image determining method and an object coordinate computing apparatus, and particularly relates to an image determining method and an object coordinate computing apparatus, which utilize both brightness and conditions besides brightness to determine the predetermined image pixel or the object pixel.
2. Description of the Prior Art
One of the methods for determining the specific image pixels is determining the pixels having brightness values higher than a threshold value as specific image pixels. In the example shown in
One objective of the present invention is to provide an image determining method utilizing brightness and parameters besides brightness to determine specific image pixels or object pixels, and provides an object coordinate computing apparatus utilizing the image determining method.
One embodiment of the present invention discloses an image determining method, for determining which pixels in an image are specific image pixels of a specific image, comprising: (a) determining which pixels in the image have brightness values larger than a threshold value; (b) determining the pixels having brightness values larger than the threshold value as the specific image pixels; and determining pixels in a predetermined range of at least one the specific image pixel as the specific image pixels as well.
Another embodiment of the present invention discloses an image determining method, for determining which pixels in an image are specific image pixels of a specific image, comprising: (a) scanning pixels of at least one row in an image in turn, and determining which pixels in the row is larger than a threshold value; (b) determining at least one first row specific image pixel, which has a brightness value larger than a threshold value, in a first row to be the specific image pixel, and defines a specific image range according to the first row specific image pixel; and (c) determining a second row specific image pixel inside the range, which is located in the specific image range of a second row after the first row, to be the specific image pixel while scanning the second row.
Still another embodiment of the present invention discloses an object coordinate computing apparatus, comprising: a camera, for catching an image, which is a gray level diagram, for at least one object; a reading circuit, for scanning pixels of at least one row in the image in turn; for recoding brightness values and coordinates for the pixels; for defining an object range according to the brightness values and the coordinates for a first row of the rows; for determining first row object pixels in the object range of the first row to be the object pixels; and for determining a second row specific image pixel inside the range, which is inside the object range of a second row after the first row, to be the object pixel while scanning the second row; wherein the reading circuit utilizes the recorded brightness values and the recorded coordinate to compute a gravity center of the object.
In view of above-mentioned embodiments, the present invention provides an image determining method for determining specific image pixels or object pixels, an object coordinate computing method and an object coordinate computing apparatus, according to brightness and parameters besides brightness. By this way, the prior art issue that only brightness is utilized for determining can be avoided. Besides, different conditions can be set based on different object types and the size for caught images, such that the determining mechanism can be more accurate and can be set unlimitedly. Furthermore, the gravity center of the object can be moved downward if the gravity center is computed according to the image determining mechanism of the present invention. By this way, the gravity center matches the habit for a user while handling a remote controller, such that the displacement detecting can be more accurate.
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.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”.
In the embodiment shown in
Similarly, if the pixel P55 is utilized as a center of a 3×3 pixel matrix, the pixels P54, and P64-P65 are added to the group of specific image pixels. If the same steps are performed for pixels P26, P35-P36, P44-P47 and P55-P66, pixels P15-P17 P24-P25 P27 P33-P34 P37-P38 P43 P48 P53-P54 P57-P58 and P64-P67 are added to the group of specific image pixels. However, it should be noted that the above-mentioned predetermined range is not limited to a pixel matrix with the same width and length, and is not limited to a pixel matrix as well. This predetermined range can be set according to other parameters, such as an image of the object type that is desired to be determined. Please note the initial specific image pixels and the specific image pixels determined according to the initial specific image pixels are both specific image pixels and have no difference. The reason for giving them different names is to make them more easily to be distinguished such that the concept of the present invention can be depicted for more clearly.
The image determining method shown in
Step 301
Determine which pixels in the image have brightness values larger than a threshold value.
Step 303
Determine the pixels having brightness values larger than the threshold value as initial specific image pixels (Such as pixels P26, P35-P36, P44-P47 and P55-P66 in
Step 305
Determine pixels in a predetermined range of at least one the initial specific image pixel as the specific image pixels as well. In one example, the predetermined range is a 3×3 pixel matrix such that the pixels P15-P17 P24-P25 P27 P33-P34 P37-P38 P43 P48 P53-P54 P57-P58 and P64-P67, which are not initial specific image pixels, are also determined to be specific image pixels.
Other detail steps can be acquired according to the embodiment shown in
In the second embodiment shown in
Pixels of the second row outside the specific image range W1 are also determined to check if they have brightness values larger than the threshold value. If all the brightness values are less than the threshold value, the specific image range W1 is kept, and the pixels in the specific image range W1 are determined to be specific image pixels while scanning the rows after the second row. If at least one pixel located outside the specific image range W1 of the second row, which is named a second row specific image pixel outside the range, has a brightness value larger than the threshold value, the second row specific image pixel outside the range is determined to be a specific image pixel. Additionally, the specific image range W1 is updated according to the second row specific image pixel outside the range. The pixels in the updated specific image range of the next row are determined to be the specific image pixel while scanning the next row.
Take the embodiment shown in
According to the second embodiment shown in
Step 501
Scan pixels of at least one row in an image in turn, and determine which pixels in the row is larger than a threshold value.
Step 503
Determine at least one first row specific image pixel (such as P55, P56), which has a brightness value larger than a threshold value, in a first row (Such as L1 in
Step 505
Determine a second row specific image pixel inside the range (such as P45, P46), which is located in the specific image range of a second row (such as L2 in
Other detail steps can be acquired according to the embodiment shown in
In view of the first embodiment shown in
In view of the second embodiment shown in
In view of above-mentioned embodiments, the present invention provides an image determining method for determining specific image pixels or object pixels, an object coordinate computing method and an object coordinate computing apparatus, according to brightness and parameters besides brightness. By this way, the prior art issue that only brightness is utilized for determining can be avoided. Besides, different conditions can be set based on different object types and the size for caught images, such that the determining mechanism can be more accurate and can be set unlimitedly. Furthermore, the gravity center of the object can be moved downward if the gravity center is computed according to the image determining mechanism of the present invention. By this way, the gravity center matches the habit for a user while handling a remote controller, such that the displacement detecting can be more accurate.
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.
Claims
1. An image determining method, for determining which pixels in an image are specific image pixels of a specific image, comprising:
- (a) determining which pixels in the image have brightness values larger than a threshold value;
- (b) determining the pixels having brightness values larger than the threshold value as the specific image pixels; and
- (c) determining pixels in a predetermined range of at least one the specific image pixel as the specific image pixels as well.
2. The image determining method of claim 1, wherein the step (c) comprises utilizing each of the specific image pixel as a center pixel of a pixel matrix to generate at least one pixel matrix, and the step (c) further comprising determining each pixel in the pixel matrix as the specific image pixel.
3. The image determining method of claim 1, wherein a length and a width of the pixel matrix have the same amounts for pixels.
4. The image determining method of claim 1, wherein the specific image pixel is generated by an object, where the image determining method further comprises:
- (d) computing a coordinate of the object according to the determining result of the steps (b) and (c).
5. The image determining method of claim 4, further comprising:
- utilizing brightness values of the specific image pixels as a weighting, and utilizing the coordinate of the specific image pixels and the weighting to compute a gravity center of the object.
6. An image determining method, for determining which pixels in an image are specific image pixels of a specific image, comprising:
- (a) scanning pixels of at least one row in an image in turn, and determining which pixels in the row is larger than a threshold value;
- (b) determining at least one first row specific image pixel, which has a brightness value larger than a threshold value, in a first row to be the specific image pixel, and defines a specific image range according to the first row specific image pixel; and
- (c) determining a second row specific image pixel inside the range, which is located in the specific image range of a second row after the first row, to be the specific image pixel while scanning the second row.
7. The image determining method of claim 6, further comprising:
- (d) determining if pixels of the second row outside the specific image range have brightness values larger than the threshold value;
- (e) if all the pixels of the second row outside the specific image range do not have brightness values larger than the threshold value, determining a third row specific image pixel inside the range, which is located in the specific image range of a third row after the second row, to be the specific image pixel while scanning the third row; and
- (f) if at least one second row specific image pixel outside the range, which is located outside the specific image range of the second row, has a brightness value larger than the threshold value, determining the second row specific image pixel outside the range to be the specific image pixel, and updating the specific image range according to the second row specific image pixel outside the range; and determining pixels in the updated specific image range of the third row to be the specific image pixel while scanning the third row.
8. The image determining method of claim 6, wherein the step (b) comprising determining a leftmost pixel of the first row specific image pixel as a leftmost edge of the specific image range, and determining a rightmost pixel of the first row specific image pixel as a rightmost edge of the specific image range.
9. The image determining method of claim 6, further comprising:
- stopping scanning the image and stop updating the specific image range if no pixel is found to have a brightness value greater than the threshold value after scanning any row after the first row.
10. The image determining method of claim 6, wherein the specific image pixel is generated by an object, where the image determining method further comprises:
- (d) computing a coordinate of the object according to the determining result of the steps (b) and (c).
11. The image determining method of claim 10, further comprising:
- utilizing brightness values of the specific image pixels as a weighting, and utilizing the coordinate of the specific image pixels and the weighting to compute a gravity center of the object.
12. An object coordinate computing apparatus, comprising:
- a camera, for catching an image, which is a gray level diagram, for at least one object;
- a reading circuit, for scanning pixels of at least one row in an image in turn; for recoding brightness values and coordinates for the pixels; for defining an object range according to the brightness values and the coordinates for a first row of the rows; for determining first row object pixels in the object range of the first row to be the object pixels; and for determining a second row specific image pixel inside the range, which is inside the object range of a second row after the first row, to be the object pixel while scanning the second row;
- wherein the reading circuit utilizes the recorded brightness values and the recorded coordinate to compute a gravity center of the object.
13. The object coordinate computing apparatus of claim 12, wherein the reading circuit determines a leftmost pixel of the first row object pixel as a leftmost edge of the object range, and determines a rightmost pixel of the first row object pixel as a rightmost edge of the object range.
14. The object coordinate computing apparatus of claim 12,
- wherein the reading circuit determines if pixels of the second row outside the object range have brightness values larger than the threshold value;
- where the reading circuit determines a third row object pixel inside the range, which is located in the object range of a third row after the second row, to be the object pixel while scanning the third row if all the pixels in the second row outside the object range do not have brightness values larger than the threshold value; and
- if at least one second row object pixel outside the range, which is located outside the object range of the second row, has a brightness value larger than the threshold value, the reading circuit determines the second row object pixel outside the range to be the object pixel, updates the object range according to the second row object pixel outside the range, and determines pixels in the updated object range of the third row to be the object pixel while scanning the third row.
15. The object coordinate computing apparatus of claim 12,
- wherein the reading circuit stops scanning the image and stop updating the object range, utilizes the brightness values recorded before stop scanning as weighting, and utilizes the coordinate recorded before stop scanning and the weighting to compute a gravity center of the object;
- if no pixel is found to have brightness values greater than the threshold value after scanning any row after the first row.
Type: Application
Filed: Mar 7, 2013
Publication Date: Feb 13, 2014
Applicant: PIXART IMAGING INC. (Hsin-Chu City)
Inventors: Chia-Cheun Liang (Hsin-Chu City), Shu-Sian Yang (Hsin-Chu City), Yi-Hsien Ko (Hsin-Chu City)
Application Number: 13/789,591
International Classification: G06K 9/62 (20060101);