semvec/pypi-packages huggingface dataset:
ponomarenko 0.0.4.post1
Python bindings for M. Colom's IPOL Ponomarenko implementation
Requires Python: >=3.5

# Ponomarenko: noise curve estimation from a single image

Python bindings for Miguel Colom's implementation of the Ponomarenko et al.
method.

Version 0.0.4 -- March 23, 2020

By Charles Hessel <charles.hessel@ens-paris-saclay.fr>

The C++ code used in this repository has been peer-reviewed as part of the IPOL
publication:
> Miguel Colom, and Antoni Buades, Analysis and Extension of the Ponomarenko et
  al. Method, Estimating a Noise Curve from a Single Image, Image Processing On
  Line, 3 (2013), pp. 173–197. https://doi.org/10.5201/ipol.2013.45


## Installation

Run
```
pip install -e .
```
from the directory where `setup.py` is located.


## Usage


### As a Python module

```python
from ponomarenko import estimate_noise

bins, noise_std = estimate_noise(image)
```

The method estimates the standard-deviation of the noise (in `noise_std`) in
different intensity bins, which centers are given in the first output `bins`.
oss-policy-sign 1.2
A django rest framework (DRF) policy sign for aliyun oss

# Introduction

This package is to provide aliyun oss policy and sign from the backend
to clients such as Android, iOS devices and specially mini programs 
on Weixin. 

Many examples and demos even on the official page put access key
and secrets directly in the clients, which can be very dangerous 
since all the code are actually not encrypted. 

This package obtain policy and its encrypted sign  in the backend, 
which is then passed by a request 

# Requirements

The package is based on django restframework, so both django and 
django rest framework should be installed. 

If not, you can import from 'oss_poly_sign.generators' to generate
the policy code and auth. 


# How to Use

1. Step 1: `pip install oss-policy-sign`
2. Added the following settings in your settings.py:
```
OSS_ACCESS_KEY = ""
OSS_ACCESS_SECRET = ""
OSS_TIMEOUT = 60 # 60 minutes, an hour
OSS_MAXSIZE = 10 # 10M
```
3. Added the following to your urls.py:
```
  from oss_policy_sign.views import OssAuthViewSet
  urlpatterns = [
        #  ...
        url(r'^oss/auth/', OssAuthViewSet),
    ]
```

4. test it by making a request