0

I want to display Radar information on the vessel identified in the Camera image.

At this point, the work is complete.

  1. Camera Image: The ship was identified by object recognition.

  2. Radar information: Identified the latitude, longitude, distance, and azimuth of the vessel (A, B, C).

Three sea-going vessels and a radar plot

The camera and radar are located at the same position and know the latitude, longitude, roll, and pitch values.

How can we match GPS information by converting pixel coordinates?

Same three vessels annotated with distances

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
yeo
  • 25
  • 6

1 Answers1

0

You want to project the 3D coordinates to the image plane. A more detailed information about the theory behind can be found in the OpenCV documentation.

This is a brief description of how it could be done:

  1. Compute your vessel's 3D coordinates relative to your camera position.
  2. You need a calibrated camera. You need the interior camera parameters to compute the projection from 3D coordinates to 2D image coordinates.
  3. Use e.g. OpenCV and projectPoints (see doc here) to compute the 2D image coordinates based on the relative 3D coordinates and your camera parameters. Because you use the relative position of the vessel you don't need the exterior orientation of your camera. So translation and rotation become zero.
geoidiot
  • 107
  • 2
  • 12
  • Thank you for the details. How do you convert gps coordinates to 3D Coordinates coordinates? – yeo Feb 28 '20 at 05:25
  • If you have GPS coordinates (WGS84) this [question](https://stackoverflow.com/questions/1185408/converting-from-longitude-latitude-to-cartesian-coordinates) might help you – geoidiot Feb 28 '20 at 07:33
  • Thank you for the answer. I use GPS coordinates (WGS84). In other words, I want to convert from GPS coordinates (WGS84) to 2D Image Coordinates. – yeo Mar 01 '20 at 23:32