semvec/pypi-packages huggingface dataset:
hsvpicker 4.0
Finding HSV bounding values for tracking/masking an object.
License: MIT
Keywords: hsv,opencv,cv2,mask,track,object,images,videos

# hsvpicker
Finding HSV bounding values for tracking/masking an object 

## How to find HSV bounding values to track or mask an object?.
  This is the most common question as stated in opencv documentation. By using the hsvpicker we get a hsv bounding values by simply calling a function.
  
## Overview:
  We can get lower and upper bounding hsv values by clicking the left button of a mouse on an image for which object we want to track or mask.
  
## Usage:

### Getting it:

To download hsvpicker, either fork this github repo or simply use Pypi via pip.
```sh
    $ pip install hsvpicker
``` 

### Using it:

##### STEP 1: import hsvpicker package 
```python
from hsvpicker.hsv import HSV
```
##### STEP 2: Create an object
```python 
bound = HSV('pass the image url')
```
##### STEP 3: Getting a HSV value 
```python
bound.get_value()
```
Image will display here, you will choose color by simply double clicking the mouse's left button on an image and then it finds hsv values of the respected color .(i.e The color which we want to track or mask). PRESS ```q``` to quit the window.

##### STEP 4 : Getting a bounding values
```python
lower_bound,upper_bound = bound.get_boundings(h = 20,s = 50,v = 60)
```
You can fine tune color boundings by using h,s and v. Default values of h,s, and v are 20,50,60 respectively. This function returns numpy.ndarray.
acdh-histogis 0.0.5
High level api to interact with [HistoGIS](https://histogis.acdh.oeaw.ac.at/)
License: MIT

Readme
======

.. image:: https://badge.fury.io/py/acdh-histogis.svg
    :target: https://badge.fury.io/py/acdh-histogis

acdh-histogis is a python package providing a high level api to interact with [HistoGIS](https://histogis.acdh.oeaw.ac.at/)


Installation
------------

    pip install acdh-histogis


Use:
------------

.. code-block:: python

    from histogis.histogis import HistoGis as hg

    # by geonames (id or URL)

    hg().query_by_service_id(id="https://www.geonames.org/2772400/", when='1860-12-12', polygon=False)

    # by wikidata (id or URL)

    hg().query_by_service_id(id="https://www.wikidata.org/wiki/Q41329", when='1860-12-12', polygon=False)

    # by GND (id or URL)

    hg().query_by_service_id(service="gnd", id="4074255-6", when='1860-12-12', polygon=False)

    # returns:

    {
    'id': 8118,
    'wikidata_id': '',
    'name': 'Linz (Stadt)',
    'alt_name': '',
    'source': 'https://histogis.acdh.oeaw.ac.at/api/source/93/?format=json',
    'source_name': 'Cisleithania Districts 1880',
    'administrative_unit': 'https://histogis.acdh.oeaw.ac.at/api/skosconcepts/135/?format=json',
    'adm_name': 'Statutarstadt',
    'start_date': '1850-01-01',
    'end_date': '1918-10-31',
    ...
    }



Licensing
---------

All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file LICENSE in the root directory of this repository.




History
-------

0.0.5 (2020-03-25)
++++++++++++++++++

* some modifications to dump data methods added
* function to create singel JSONL file from single files added


0.0.4 (2019-04-02)
++++++++++++++++++

* dump data methods added

0.0.3 (2019-03-26)
++++++++++++++++++

* code refactoring
* new methods
* query_by_service_id to fetch data by geonames, gnd and wikidata ID/URL

0.0.2 (2019-03-11)
++++++++++++++++++

* `fetch_geonames_rdf` and `query_by_geonames_id` methods added

0.0.1 (2019-03-11)
++++++++++++++++++

* First version