Positioning method and image capturing device thereof
Abstract
A positioning method includes the following steps: capturing a positioning image with an image capturing device. Determine a pixel coordinate of an object in the positioning image in the positioning image. According to the pixel coordinates and a conversion matrix, a global positioning system coordinate of the object is determined. An image capturing device includes: a camera for capturing a positioning image. A storage medium stores a conversion matrix. A processor electrically connected to the camera and the storage medium respectively for determining a first pixel coordinate of a to-be-positioned object in the positioning image, and generating according to the first pixel coordinate and the conversion matrix A global positioning system coordinate about the object to be positioned.
Term
No projected expiry on record.
- Priority and filed
- Granted
- Today
9 claims: 5 independent, 4 dependent
- 1A positioning method includes:capturing a positioning image with an image capturing device;determining a pixel coordinate of an object in the positioning image in the positioning image;determining a pixel coordinate of the object based on the pixel coordinate and a conversion matrix Global positioning system coordinates;a calibration image is captured by the image capturing device, the calibration image has at least three calibration pixel coordinates, and the calibration pixel coordinates respectively correspond to at least three positioning calibration objects in the calibration image Image;obtain the global positioning system coordinates corresponding to the positioning calibration objects;and obtain the conversion matrix according to the global positioning system coordinates corresponding to the positioning calibration objects and the calibration pixel coordinates. 一種定位方法,包括:以一影像擷取裝置擷取一定位影像;判斷該定位影像中一物體於該定位影像的一畫素座標;依據該畫素座標與一轉換矩陣,判斷該物體的一全球定位系統座標;以該影像擷取裝置擷取一校正影像,該校正影像具有至少三個校正畫素座標,該些校正畫素座標分別對應於該校正影像中的至少三個定位校正物的影像;取得關於該些定位校正物對應的該些全球定位系統座標;以及依據該些定位校正物對應的該些全球定位系統座標與該些校正畫素座標,得到該轉換矩陣。
- 4A positioning method includes:capturing a positioning image with an image capturing device;determining a pixel coordinate of an object in the positioning image in the positioning image;determining a pixel coordinate of the object based on the pixel coordinate and a conversion matrix Global positioning system coordinates;capturing a first calibration image with the image capturing device, the first calibration image having an image of a positioning calibration object, the positioning calibration object having a first global positioning system coordinates, and the positioning calibration object The image has a first pixel coordinate in the first calibration image;moves the positioning calibration object to a second global positioning system coordinate;using the image capturing device to capture a second calibration image, the positioning calibration object The image has a second pixel coordinate in the second calibration image;moving the positioning calibration object to a third global positioning system coordinate;capturing a first calibration image with the image capturing device, the image of the positioning calibration object There is a third pixel coordinate in the third corrected image;and the conversion matrix is generated according to the pixel coordinates and the first to third global positioning system coordinates. 一種定位方法,包括:以一影像擷取裝置擷取一定位影像;判斷該定位影像中一物體於該定位影像的一畫素座標;依據該畫素座標與一轉換矩陣,判斷該物體的一全球定位系統座標;以該影像擷取裝置擷取一第一校正影像,該第一校正影像具有一定位校正物的影像,該定位校正物具有一第一全球定位系統座標,且該定位校正物的影像於該第一校正影像中具有一第一畫素座標;移動該定位校正物至一第二全球定位系統座標;以該影像擷取裝置擷取一第二校正影像,該定位校正物的影像於該第二校正影像中具有一第二畫素座標;移動該定位校正物至一第三全球定位系統座標;以該影像擷取裝置擷取一第一校正影像,該定位校正物的影像於該第三校正影像中具有一第三畫素座標;以及依據該些畫素座標與該第一至第三全球定位系統座標,產生該轉換矩陣。
- 5A positioning method includes:capturing a positioning image with an image capturing device;determining a pixel coordinate of an object in the positioning image in the positioning image;determining a pixel coordinate of the object based on the pixel coordinate and a conversion matrix Global positioning system coordinates;obtain at least three correction pixel coordinates from the positioning image, the correction pixel coordinates respectively corresponding to the images of at least three positioning correction objects in the positioning image;obtain information about the corresponding positioning correction objects And obtain the conversion matrix according to the at least three global positioning system coordinates corresponding to the positioning correction objects and the correction pixel coordinates. 一種定位方法,包括:以一影像擷取裝置擷取一定位影像;判斷該定位影像中一物體於該定位影像的一畫素座標;依據該畫素座標與一轉換矩陣,判斷該物體的一全球定位系統座標;從該定位影像中取得至少三個校正畫素座標,該些校正畫素座標分別對應於該定位影像中的至少三個定位校正物的影像;取得關於該些定位校正物對應的至少三個全球定位系統座標;以及依據該些定位校正物對應的至少三個全球定位系統座標與該些校正畫素座標,得到該轉換矩陣。
- 7A method for obtaining positioning coordinates includes:a first device uses a global positioning system to obtain a first GPS coordinate and an error radius;and when the error radius is greater than a threshold value, the first device requests a cloud server A second global positioning system coordinates;wherein the second global positioning system coordinates are obtained by the following steps: capturing a positioning image with an image capturing device;determining a picture of the first device in the positioning image in the positioning image Pixel coordinates;determine the second global positioning system coordinates of the first device according to the pixel coordinates and a conversion matrix;capture a calibration image with the image capturing device, the calibration image having at least three calibration pixel coordinates , The calibration pixel coordinates respectively correspond to the images of at least three positioning calibration objects in the calibration image;obtaining the global positioning system coordinates corresponding to the positioning calibration objects;and according to the positioning calibration objects corresponding to the These GPS coordinates and the corrected pixel coordinates are used to obtain the conversion matrix. 一種定位座標取得方法,包括:一第一裝置以全球定位系統取得一第一全球定位系統座標與一誤差半徑;以及當該誤差半徑大於一門檻值時,該第一裝置向一雲端伺服器請求一第二全球定位系統座標;其中該第二全球定位系統座標係以下列步驟取得:以一影像擷取裝置擷取一定位影像;判斷該定位影像中該第一裝置於該定位影像的一畫素座標;依據該畫素座標與一轉換矩陣,判斷該第一裝置的該第二全球定位系統座標;以該影像擷取裝置擷取一校正影像,該校正影像具有至少三個校正畫素座標,該些校正畫素座標分別對應於該校正影像中的至少三個定位校正物的影像;取得關於該些定位校正物對應的該些全球定位系統座標;以及依據該些定位校正物對應的該些全球定位系統座標與該些校正畫素座標,得到該轉換矩陣。
- 8An image capturing device includes:a camera to capture a positioning image;a storage medium to store a conversion matrix;and a processor to electrically connect the camera and the storage medium to determine the Position a first pixel coordinate of an object to be positioned in the image, and generate a global positioning system coordinate with respect to the object to be positioned according to the first pixel coordinate and the conversion matrix;wherein the storage medium further stores an empty space Taking an image, the aerial image has at least three GPS coordinates, and the processor further obtains the conversion matrix according to the at least three GPS coordinates of the aerial image and the positioning image. 一種影像擷取裝置,包括:一攝相機,用以擷取一定位影像;一儲存媒介,儲存有一轉換矩陣;以及一處理器,分別電性連接該攝相機與該儲存媒介,用以判斷該定位影像中的一待定位物的一第一畫素座標,並依據該第一畫素座標與該轉換矩陣,產生關於該待定位物的一全球定位系統座標;其中該儲存媒介更儲存有一空拍影像,該空拍影像具有至少三個全球定位系統座標,該處理器更依據該空拍影像的該至少三個全球定位系統座標與該定位影像,得到該轉換矩陣。
Independent claims5
28 paragraphs in 1 section, as filed
Positioning method and its image capturing device
POSITIONING METHOD AND IMAGE CAPTURING DEVICE THEREOF
The disclosure relates to a positioning method and an image capturing device thereof, and more particularly to a positioning method assisted by an image capturing device.
The global positioning system (GPS) is currently widely used in various transportation devices. For example, the navigation system needs to use GPS coordinates. However, in environments with complex surrounding terrain or poor weather, it takes a while for the GPS to converge its error value to an acceptable range. For example, in a downtown area surrounded by high-rise buildings, it may take a minute or even a few minutes for the global positioning system to converge the error of the positioning coordinates to be suitable for use by the navigation system. Therefore, how to provide an auxiliary positioning method for the global positioning system to shorten the time spent in positioning is a problem to be overcome.
In view of the above-mentioned problems, this disclosure aims to provide a positioning method and an image capturing device thereof. With the aid of the image and the conversion matrix, the GPS coordinates of the object to be positioned can be quickly calculated.
The positioning method according to an embodiment of the disclosure includes: capturing a positioning image with an image capturing device. Determine a pixel coordinate of an object in the positioning image in the positioning image. According to the pixel coordinates and a conversion matrix, a global positioning system coordinate of the object is judged.
A method for obtaining positioning coordinates according to an embodiment of the present disclosure includes: obtaining a first global positioning system coordinate and an error radius by using a global positioning system. When the error radius is greater than a threshold value, a request is made to a cloud server to obtain a second GPS coordinate using the method of the above-mentioned embodiment.
An image capturing device according to an embodiment of the disclosure includes: a camera for capturing a positioning image. A storage medium stores a conversion matrix. A processor electrically connected to the camera and the storage medium respectively for determining a first pixel coordinate of a to-be-positioned object in the positioning image, and generating according to the first pixel coordinate and the conversion matrix A global positioning system coordinate about the object to be positioned.
The above description of the content of the disclosure and the description of the following embodiments are used to demonstrate and explain the spirit and principle of the disclosure, and to provide a further explanation of the scope of the patent application of the disclosure.
The detailed features and advantages of the present disclosure are described in detail in the following embodiments, and the content is sufficient to enable anyone familiar with the relevant art to understand the technical content of the present disclosure and implement them accordingly, and in accordance with the content of the invention, the scope of patent application and the drawings in this specification Anyone who is familiar with relevant skills can easily understand the purpose and advantages of this disclosure. The following examples illustrate the viewpoints of the disclosure in further detail, but do not limit the scope of the disclosure with any viewpoints.
Please refer to FIG. 1, which is a configuration diagram of a positioning system according to an embodiment of the present disclosure. As shown in FIG. 1, the positioning system 1000 implemented according to the present disclosure first uses one of the image capturing devices 1100 to 1300 (for example, the image capturing device 1100) to capture images toward the target area. Among them, the global positioning system coordinates (latitude and longitude coordinates) of the three positions A, B, and C in the captured image have been built in the image capturing device 1100. Using the global positioning system coordinates of these three locations and the pixel coordinates of these three locations in the image, the pixel coordinates in the image captured by the image capturing device 1100 can be converted to the global positioning system coordinates. matrix. In one embodiment, the global positioning system coordinates of location A are (x1, y1), and the pixel coordinates of the image captured by the image capturing device 1100 are (r1, c1). The global positioning system coordinates of position B are (x2, y2), and the pixel coordinates of the image captured by the image capturing device 1100 are (r2, c2). The global positioning system coordinates of the position C are (x3, y3), and the pixel coordinates of the image captured by the image capturing device 1100 are (r3, c3). Then, by using the above six information, a coordinate conversion matrix can be obtained that maps the triangular area defined by the three pixel coordinates of the position A, the position B, and the position C in the image to the corresponding triangular area in the global positioning system coordinates. And assuming that the ground in the image captured by the image capturing device 1100 is flat, the image capturing device 1100 can use extrapolation or interpolation to estimate any point on the ground in the captured image. GPS coordinates of.
In an embodiment, please refer to FIG. 2, which is a flowchart of a positioning method according to an embodiment of the present disclosure. As shown in Fig. 2, the positioning method according to the present disclosure can be implemented in the following steps. In step S210, in the calibration stage, an image is captured by the image capturing device 1100. There are at least three images of positioning calibration objects in the captured images. Taking three positioning calibration objects as an example, the three positioning calibration objects C1~C3 need to be identifiable, and the first positioning calibration object C1 corresponds to the first global positioning system coordinate G1, and the second positioning calibration object C2 corresponds to the second The global positioning system coordinates G2, and the third positioning correction C3 corresponds to the third global positioning system coordinates G3. Specifically, the first positioning correction C1 is located at the position A, that is, the value of the first global positioning system coordinate G1 is (x1, y1). Then, as shown in step S220, the captured image is processed to obtain the first pixel coordinate P1 corresponding to the first positioning calibration object C1, the second pixel coordinate P2 corresponding to the second positioning calibration object C2, and the second pixel coordinate P2 corresponding to the third positioning calibration object C2. Position the third pixel coordinate P3 of the calibrator C3. Since the positioning calibration objects C1~C3 are recognizable, that is to say, the processor of the image capturing device 1100 can distinguish the differences of the three. Therefore, the three positioning calibration objects in the image can be identified separately, and their corresponding pictures Prime coordinates can also be calculated.
Then, as shown in step S230, the processor uses the corresponding relationship between the first pixel coordinate P1 and the first global positioning system coordinate G1, the corresponding relationship between the second pixel coordinate P2 and the second global positioning system coordinate G2, and the third pixel The corresponding relationship between the coordinates P3 and the third global positioning system coordinates G3 establishes a coordinate conversion matrix, that is, a perspective projection conversion matrix.
In the positioning stage, as in step S240, the image capturing device 1100 captures an image. And in step S250, the processor of the image capturing device 1100 determines the pixel coordinates of the object to be positioned in the captured image, and converts the corresponding global positioning system coordinates through the matrix obtained in the calibration stage to obtain the object to be positioned GPS coordinates of.
In one embodiment, when the pixel coordinates of the object to be positioned in the image are to be calculated, its tire is selected as the basis for judgment. In such an embodiment, during the calibration phase, the bottom edge (contact point with the ground) of the calibration object is positioned as the basis for judging its pixel coordinates. In another embodiment, when the pixel coordinates of the object (vehicle) to be positioned in the image are to be calculated, the roof of the vehicle is selected as the basis for judgment. In such an embodiment, during the calibration phase, the top of the positioning calibration object is used as the basis for determining the pixel coordinates, and the height of the positioning calibration object can be borrowed from 1 meter to 2.5 meters. More specifically, if a large car is usually the object to be positioned in a field, the height of the positioning correction object should be 2.5 meters. Conversely, if there is usually a small passenger car as the object to be positioned in a field, the height of the positioning correction object should be selected from 1.3 meters to 1.6 meters.
In another embodiment, please refer to FIG. 3, which is a flowchart of a positioning method according to another embodiment of the present disclosure. As shown in FIG. 3, the positioning method according to the present disclosure can be implemented in the following steps. In step S310, in the calibration stage, at least three images are captured by the image capturing device, and each captured image has an image of the positioning calibration object C4. Take three images as an example. In the first image, the positioning correction C4 has the first GPS coordinates G1, in the second image, the positioning correction C4 has the second GPS coordinates G2, and the third In the image, the positioning calibrator C4 has the third global positioning system coordinates G3. Then, as shown in step S320, the processor processes the three captured images to obtain the first pixel coordinates P1 of the positioning correction object C4 in the first image, and the second image of the positioning correction object C4 in the second image. The third pixel coordinate P3 of the pixel coordinate P2 and the positioning calibration object C4 in the third image. Then in step S330, the processor of the image capturing device 1100 is based on the corresponding relationship between the first pixel coordinate P1 and the first GPS coordinate G1, the corresponding relationship between the second pixel coordinate P2 and the second GPS coordinate G2, and The correspondence between the third pixel coordinate P3 and the third global positioning system coordinate G3 establishes a coordinate conversion matrix. In the positioning phase, the GPS coordinates of the object to be positioned can be obtained in the same manner as steps S240 to S250 in FIG. 2.
In another embodiment, please refer to FIG. 4, which is a flowchart of a positioning method according to another embodiment of the present disclosure. As shown in FIG. 4, the positioning method according to the present disclosure can be implemented in the following steps. In step S410, in the calibration stage, an image is captured by the image capturing device. The captured image contains images of three positioning calibration objects C5 to C7, and the three positioning calibration objects C5 to C7 are identifiable. Wherein, the first positioning correction object C5 to the third positioning correction object C7 are all fixed reference objects (for example, traffic lights, corners of fixed buildings). And the three positioning calibration objects C5~C7 correspond to the three pixel coordinates P5~P7 respectively in the image. In step S420, an aerial image with global positioning coordinates is provided, and at least three position points in the aerial image have global positioning system coordinates GC1 to GC3. As shown in step S430, the processor may use three GPS coordinates to infer the GPS coordinates corresponding to each pixel in the aerial image. As shown in step S440, the processor finds (or is marked by the personnel) the positions of the three positioning calibration objects in the aerial image, and then the global positioning system coordinates G5~G7 of the three positioning calibration objects C5~C7 can be obtained. . Then in step S450, according to the three global positioning system coordinates G5~G7 and the three pixel coordinates P5~P7, the processor obtains a coordinate conversion matrix. In the positioning phase, the global positioning system coordinates of the object to be positioned can be obtained in the same manner as steps S240 to S250 in FIG. 2.
In this embodiment, calibration and positioning can be performed at the same time. In this way, the image capturing device can be prevented from being moved due to earthquakes or man-made causes, resulting in positioning deviation. More specifically, a new conversion matrix can be regenerated every time the image is captured. For positioning use.
In one embodiment, if the positioning system equipped with the vehicle also has network connection capability, the vehicle obtains a first GPS coordinate from its matched GPS, and requests a second GPS from the cloud server coordinate. The coordinates stored in the cloud server are obtained by the method of this disclosure through image recognition. Since the GPS equipped on the vehicle will give an error value (error radius), when the error value is judged to be greater than the threshold value, the coordinates presented by the vehicle on the interface are the second GPS coordinates.
In another embodiment, the vehicle first requests the GPS coordinates of the first GPS, and when the GPS returns the coordinates of the first GPS, the vehicle obtains the corresponding error value at the same time. The on-board computer on the vehicle determines whether the error value is greater than the threshold value. For example, the threshold can be set to 0.3 meters. When the error value is not greater than the threshold value (or less than the threshold value), the vehicle computer directly displays the coordinates of the first GPS. In one embodiment, when the error value is greater than the threshold value, the car computer obtains a network connection with the closest image capturing device through the Internet of Things. And the vehicle computer requests the second global positioning system coordinates from the image capturing device.
In another embodiment, the vehicle may not be equipped with a global positioning system. Instead, the vehicle may request its global positioning system coordinates from the cloud server through the Internet or directly from the nearest image capturing device through the Internet of Things. In another embodiment, the vehicle is still equipped with a global positioning system, only when the coordinates cannot be obtained from the cloud server or the nearest image capture device, or the coordinates recorded by the cloud server have not been updated for more than one time With a preset value (for example, 1 minute), the vehicle uses the global positioning system to obtain the positioning coordinates.
In one embodiment, please refer to FIG. 5, which is a functional block diagram of the image capturing device in FIG. 1. As shown in FIG. 5, the image capturing device 1100 of FIG. 1 has a camera 1110, a storage medium 1120, and a processor 1130. The camera 1110 is configured to capture positioning images. In other words, when the object (vehicle) to be positioned enters the field set by the camera 1110, the camera 1110 is capable of capturing images including the object to be positioned. The storage medium 1120 stores the transformation matrix created in the previous step S210 to S230 of FIG. 2, for example. The processor 1130 is electrically connected to the camera 1110 and the storage medium 1120, respectively, for determining the first pixel coordinates of the object to be positioned in the positioning image, and generates global information about the object to be positioned according to the first pixel coordinates and the conversion matrix Positioning system coordinates. The method is based on the foregoing and a person with ordinary knowledge in the relevant technical field should be able to implement it according to the description of the foregoing embodiment, and will not be repeated here. The storage medium 1120 in this embodiment can be a volatile or non-volatile storage medium, and this disclosure is not limited.
In one embodiment, the image capturing device 1100 further has a communication circuit 1140. In one embodiment, the global positioning system coordinates of the object to be positioned obtained by the processor 1130 are transmitted to the cloud server 2000 through the communication circuit 1140. Therefore, the object (vehicle) to be located can request the cloud server for its own global positioning system coordinates at any time. In another embodiment, the global positioning system coordinates of the object to be positioned obtained by the processor 1130 are stored in a storage medium, and when the object to be positioned is connected to the communication circuit 1140 via the Internet of Things, the processor is based on the request of the object to be positioned , The GPS coordinates of the object to be positioned are sent back to the object to be positioned.
Therefore, when the object to be located enters the field where the image capture device is located, the object to be located does not even need to turn on the global positioning system. It only needs to communicate with the image capture device through the network or other means to obtain its own global positioning system. coordinate.
Although the present disclosure is invented by the aforementioned embodiments as above, it is not intended to limit the present disclosure. Without departing from the spirit and scope of this disclosure, all changes and modifications made are within the scope of patent protection of this disclosure. For the scope of protection defined by this disclosure, please refer to the attached scope of patent applications.
<p>1000Positioning system</p><p>1100~1300Image capture device</p><p>1110Camera</p><p>1120Storage medium</p><p>1130Processor</p><p>1140Communication circuit</p><p>2000Cloud Server</p>
FIG. 1 is a configuration diagram of a positioning system according to an embodiment of the present disclosure. FIG. 2 is a flowchart of a positioning method according to an embodiment of the present disclosure. FIG. 3 is a flowchart of a positioning method according to another embodiment of the present disclosure. FIG. 4 is a flowchart of a positioning method according to another embodiment of the present disclosure. FIG. 5 is a functional block diagram of the image capturing device in FIG. 1.
<bio-deposit />
<sequence-list-text />
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US10718620B2 | Cited by | United States of America | Applicant |
| CN102313551A | Cites | China | Examiner |
| CN104776849A | Cites | China | Examiner |
| TW201636905A | Cites | Taiwan Province of China | Examiner |
| US6167347A | Cites | United States of America | Examiner |
| US6167347 | Cites | United States of America | – |
4 members in 3 offices
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 105134348 | Taiwan Province of China | A | |
| TW20160134348 | – | – | – |
Members4
| Document | Office | Kind | |
|---|---|---|---|
| TWI596366BThis record | Taiwan Province of China | B | |
| US2018114336A1 | United States of America | A1 | |
| CN107976692A | China | A | |
| TW201816421A | Taiwan Province of China | A |
Numbers
- Publication
- I596366
- Publication, DOCDB
- I596366
- Publication, EPODOC
- TWI596366B
- Application
- 105134348
- Application, DOCDB
- 105134348
- Application, EPODOC
- TW20160134348
Titles2
- English
- POSITIONING METHOD AND IMAGE CAPTURING DEVICE THEREOF
- Chinese
- 定位方法與其影像擷取裝置
Classification
- CPC, 6
- G06T7/73
- G01S19/05
- G01S5/0215
- G01S11/02
- G01S19/13
- G06T2207/10032
- IPC, 2
- G01S5 16
- G01C11 36