Method for adjusting frame rate of photoelectric navigation device and photoelectric navigation device
Provided is a method of adjusting a frame rate of a photoelectric navigation device and a photoelectric navigation device. The method includes: acquiring a first image frame and a second image frame by the photoelectric navigation device at a first frame rate; determining a current moving displacement of the photoelectric navigation device; determining a matching result of the first image frame and the second image frame when the moving displacement is within a set range between a high displacement threshold and a low displacement threshold; and adjusting the first frame rate of the photoelectric navigation device to a second frame rate when the matching result does not meet a set matching condition. The second frame rate is greater than the first frame rate. The frame rate of the photoelectric navigation device can be adjusted accurately using the method.
1 . A method for adjusting a frame rate of a photoelectric navigation device, comprising:
acquiring a first image frame and a second image frame by the photoelectric navigation device at a first frame rate, wherein an acquiring time of the first image frame is earlier than that of the second image frame, and the first frame rate is a current frame rate of the photoelectric navigation device;
determining a current moving displacement of the photoelectric navigation device;
determining a matching result of the first image frame and the second image frame when the current moving displacement is within a predetermined range between a high displacement threshold and a low displacement threshold;
adjusting the first frame rate of the photoelectric navigation device to a second frame rate when the matching result does not meet a predetermined matching condition, indicating that the current moving displacement is erroneous, wherein the second frame rate is a frame rate of the photoelectric navigation device at a next moment, and the second frame rate is greater than the first frame rate;
keeping the first frame rate of the photoelectric navigation device unchanged when the matching result meets the predetermined matching condition; and
adjusting the first frame rate of the photoelectric navigation device to a third frame rate when the current moving displacement exceeds the high displacement threshold, wherein the third frame rate is a frame rate of the photoelectric navigation device at the next moment, and the third frame rate is greater than the first frame rate.
2 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the method further comprises:
adjusting the first frame rate of the photoelectric navigation device to a fourth frame rate when the current moving displacement is lower than the low displacement threshold, wherein the fourth frame rate is a frame rate of the photoelectric navigation device at the next moment, and the fourth frame rate is less than the first frame rate.
3 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the second frame rate is a highest frame rate.
4 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the second frame rate is a highest frame rate.
5 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the second frame rate is a highest frame rate.
6 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 2 , wherein the second frame rate is a highest frame rate.
7 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the third frame rate is an adjacent frame rate greater than the first frame rate.
8 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 2 , wherein the fourth frame rate is an adjacent frame rate less than the first frame rate.
9 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a matching result of the first image frame and the second image frame comprises:
determining most relevant regions of the first image frame and the second image frame according to the current moving displacement; and
determining a similarity between the most relevant regions as the matching result, and when the similarity is less than a predetermined similarity threshold, indicating that the matching result does not meet the predetermined matching condition.
10 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a matching result of the first image frame and the second image frame comprises:
determining most relevant regions of the first image frame and the second image frame according to the current moving displacement; and
determining a similarity between the most relevant regions as the matching result, and when the similarity is less than a predetermined similarity threshold, indicating that the matching result does not meet the predetermined matching condition.
11 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a matching result of the first image frame and the second image frame comprises:
determining most relevant regions of the first image frame and the second image frame according to the current moving displacement; and
determining a similarity between the most relevant regions as the matching result, and when the similarity is less than a predetermined similarity threshold, indicating that the matching result does not meet the predetermined matching condition.
12 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 2 , wherein the determining a matching result of the first image frame and the second image frame comprises:
determining most relevant regions of the first image frame and the second image frame according to the current moving displacement; and
determining a similarity between the most relevant regions as the matching result, and when the similarity is less than a predetermined similarity threshold, indicating that the matching result does not meet the predetermined matching condition.
13 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a current moving displacement of the photoelectric navigation device comprises:
determining a prediction vector according to a historical moving displacement of the photoelectric navigation device; and
determining the current moving displacement of the photoelectric navigation device according to the prediction vector.
14 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a current moving displacement of the photoelectric navigation device comprises:
determining a prediction vector according to a historical moving displacement of the photoelectric navigation device; and
determining the current moving displacement of the photoelectric navigation device according to the prediction vector.
15 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 1 , wherein the determining a current moving displacement of the photoelectric navigation device comprises:
determining a prediction vector according to a historical moving displacement of the photoelectric navigation device; and
determining the current moving displacement of the photoelectric navigation device according to the prediction vector.
16 . The method for adjusting the frame rate of the photoelectric navigation device according to claim 2 , wherein the determining a current moving displacement of the photoelectric navigation device comprises:
determining a prediction vector according to a historical moving displacement of the photoelectric navigation device; and
determining the current moving displacement of the photoelectric navigation device according to the prediction vector.
17 . A photoelectric navigation device, comprising: a memory, an image sensor, a processor and a computer program stored on the memory and executable on the processor, wherein the image sensor is configured to acquire an image frame, and the processor performs the computer program for:
acquiring a first image frame and a second image frame by the photoelectric navigation device at a first frame rate, wherein an acquiring time of the first image frame is earlier than that of the second image frame, and the first frame rate is a current frame rate of the photoelectric navigation device;
determining a current moving displacement of the photoelectric navigation device;
determining a matching result of the first image frame and the second image frame when the current moving displacement is within a predetermined range between a high displacement threshold and a low displacement threshold;
adjusting the first frame rate of the photoelectric navigation device to a second frame rate when the matching result does not meet a predetermined matching condition, indicating that the current moving displacement is erroneous, wherein the second frame rate is a frame rate of the photoelectric navigation device at a next moment, and the second frame rate is greater than the first frame rate;
keeping the first frame rate of the photoelectric navigation device unchanged when the matching result meets the predetermined matching condition; and
adjusting the first frame rate of the photoelectric navigation device to a third frame rate when the current moving displacement exceeds the high displacement threshold, wherein the third frame rate is a frame rate of the photoelectric navigation device at the next moment, and the third frame rate is greater than the first frame rate.
18 . The photoelectric navigation device according to claim 17 , wherein the first frame rate of the photoelectric navigation device is kept unchanged when the matching result meets the predetermined matching condition.