View Single Post
Old 04-10-19, 09:02 AM   #1
ljqcn101
Sailor man
 
Join Date: Jan 2013
Location: Hong Kong
Posts: 50
Downloads: 78
Uploads: 3
Default Automatic TMA tool based on computer vision

This is my another open sourced project on automatic TMA. (code: https://github.com/LJQCN101/Auto-TMA-opencv)

Instructions on how to use is in the download page:
(old version but with speed constraints)http://www.subsim.com/radioroom/down...o=file&id=5464

(new version with maneuvering target in mind) https://www.subsim.com/radioroom/dow...o=file&id=5605

This program is meant to assist your manual TMA process, as in real world sub does, in an external and mathematical way.

It basically takes an image as input, like this image:


And it will perform cropping and line detection on the TMA display window.

The program will ask you to hand-label all the detected lines numerically in chronological order, starting from 0. This will let the program know the time sequence of each bearing line.

If the detected line appears not to be a bearing line, you can simply enter a negative number, such as -1, to exclude it from the TMA computation.

(v0.3 update) You can also enter the speed of TMA ruler so the program can calculate proper speed of each solution.
(v0.3 update) Speed constraint is added to only show solutions of specific speed.

An example of output with speed constraint of 8.3 knots, if TMA ruler corresponds to 10 knots:



An example of output without speed constraint, if TMA ruler corresponds to 5 knots:



Another example, taken from sub command tutorial:

Last edited by ljqcn101; 05-01-20 at 09:05 AM.
ljqcn101 is offline   Reply With Quote