semvec/pypi-packages huggingface dataset:
pixelpalette 1.0.0
A package to extract dominant colors from images and represent them in RGB, Hex, and HSL formats.
License: MIT
Requires Python: >=3.6
Keywords: color extraction, image processing, dominant colors, RGB to Hex, RGB to HSLcolor palettes, image analysis

# Pixel Palette

A Python package to extract dominant colors from an image and display them in RGB, Hex, and HSL formats.

## Installation

Install the package using pip:

```bash
pip install pixelpalette
```

## Usage

```py
from pixelpalette import extract_colors

image_path = "you_image_path"
colors = extract_colors(image_path, n_colors=10)

for i, color in enumerate(colors):
    print(f"Color {i+1}:")
    print(f"  RGB: {color['RGB']}")
    print(f"  Hex: {color['Hex']}")
    print(f"  HSL: {color['HSL']}")
```

### Outout

```bash
Color 1:
  RGB: rgb(255, 200, 100)
  Hex: #ffc864
  HSL: hsl(30, 100%, 70%)
...
```

## Dependencies
- numpy
- matplotlib
- scikit-learn
gtecble 0.0.4
An API to communicate with Gtec.BLE devices.
License: MIT

# Gtec.BLE

This python library allows to communicate with Gtec.BLE devices.

## Installation

```pip install gtecble```

## Acquisition Example

This example shows how to setup a data acquisition with a Gtec.BLE device.

``` Python
import gtecble as gble

discovered_devices = []
def on_devices_discovered(devices):
    global discovered_devices
    cnt = 0
    discovered_devices = devices
    for device in discovered_devices:
        print('#' + str(cnt) + ': ' + device)
        cnt = cnt+1

def on_data_available(device, data):
    print(data)

ver = gble.GtecBLE.GetApiVersion()
print('API version: ' + str(ver))

gble.GtecBLE.AddDevicesDiscoveredEventhandler(on_devices_discovered)
gble.GtecBLE.StartScanning()
print('Scanning for devices...')

selectedId = int(input('Select device by id:\n'))

gble.GtecBLE.StopScanning()
gble.GtecBLE.RemoveDevicesDiscoveredEventhandler()
print('Stopped scanning for devices...')

device = gble.GtecBLE(discovered_devices[selectedId])
print('Serial number: ' + device.SerialNumber)
print('ModelNumber: '+ device.ModelNumber)
print('FirmwareRevision: '+ device.FirmwareRevision)
print('HardwareRevision: '+ device.HardwareRevision)
print('ManufacturerName: ' + device.ManufacturerName)
print('NumberOfAcquiredChannels: ' + str(device.NumberOfAcquiredChannels))
print('SamplingRate: ' + str(device.SamplingRate))
print('ChannelTypes: ' + str(device.ChannelTypes))

device.AddDataAvailableEventhandler(on_data_available)
input('Press ENTER to stop acquisition.')
device.RemoveDataAvailableEventhandler()

del device
```