https://github.com/jipelski/map_reader
A computer vision program that finds the position and orientation of a red triangle on a map which sits on a blue background.
https://github.com/jipelski/map_reader
Last synced: 3 months ago
JSON representation
A computer vision program that finds the position and orientation of a red triangle on a map which sits on a blue background.
- Host: GitHub
- URL: https://github.com/jipelski/map_reader
- Owner: jipelski
- Created: 2022-07-25T16:01:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T08:44:02.000Z (10 months ago)
- Last Synced: 2025-01-09T02:50:36.374Z (4 months ago)
- Language: Python
- Homepage:
- Size: 1.55 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Map Pointer Detection
This is a computer vision program that identifies the position and orientation of a red triangular pointer on a map. The map sits on a dark blue background, and the coordinate system starts at the bottom left corner with the ranges [0, 1] for both the x and y axes.
## Description
The program processes an image to find the coordinates of the tip of a red triangular pointer placed on a map and calculates the direction in which the pointer is pointing. The direction is measured in degrees clockwise from north. North is determined by the direction to which a green arrow is pointing on the map.
## Features
- Detects a red triangular pointer on a map with a dark blue background.
- Calculates the position of the tip of the pointer.
- Determines the direction (bearing) the pointer is facing in degrees clockwise from north.## Requirements
- Python 3.6+
- OpenCV
- NumPy## Usage
To run the program, use the following command:
python3 mapreader.py ``
- ``: The image file to be processed.## Assumptions and Restrictions
The map should be placed on a dark blue background.
The red triangular pointer should be completely on the map.
The map should be oriented such that the green arrow points upwards.