豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.17 KB

File metadata and controls

46 lines (32 loc) · 1.17 KB

obs-filter-privacy

This command filters a CSV file as written by the OpenBikeSensor hardware for privacy zones.

Each circular privacy zone is defined by the latitude and longitude of its center, as well as radius. The center is further displaced to obscure the true position of the zone center.

Installation

Please refer to the general Installation Instructions.

Create a Privacy Zone File

Create a file with contents like the following. The columns are Latitude, Longitude, Radius in Meters, and an optional name.

49.12345;9.87645;200;Home

Basic usage

obs-filter-privacy -i input.csv -o output.csv -z privacy-zones.txt -s SECRET 

Make sure to replace "SECRET" by a string just known to you. Use the same secret every time, to produce the same displacement. If you do not want to have your privacy zone centers be displaced (e.g. because you already manually chose displaced zone centers), add the argument -R 0.

Filtering all files in a directory

for file in obsfiles/*.csv; do 
  obs-filter-privacy -i "${file}" -z privacyzones.txt -s SECRET -v
done

All options

obs-filter-privacy --help