semvec/pypi-packages huggingface dataset:
oscsipm 0.6.4
Instruments to make photocounting statistics from histograms and raw oscillograms
Requires Python: >=3.6

[![python 3.6-3.8](https://github.com/vongostev/OscSiPM/actions/workflows/python-package.yml/badge.svg)](https://github.com/vongostev/OscSiPM/actions/workflows/python-package.yml)
[![pypi](https://github.com/vongostev/OscSiPM/actions/workflows/python-publish.yml/badge.svg)](https://github.com/vongostev/OscSiPM/actions/workflows/python-publish.yml)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/vongostev/OscSiPM.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/vongostev/OscSiPM/context:python)

# OscSiPM
Instruments to make a photocounting statistics from histograms and raw oscillograms (made by LeCroy oscilloscope or old Tektronix oscilloscope) of SiPM signal. One can correct the baseline of the oscillogram and compensate a crosstalk noise in the photocounting statistics.

# Installation
OscSiPM is available at pip. It may be installed with
```bash
pip install oscsipm
```
# How to use?
Import necessary modules:
```python
from oscsipm import PulsesHistMaker, QStatisticsMaker, find_pcrosstalk, compensate
```
Import an experimental data
```python
datadir = "C:\\expdata\\"
parser = PulsesHistMaker(datadir, vendor='tek', parallel=True, parallel_jobs=-2)
parser.read()
```
Make a histogram
```python
histfile = "C:\\histograms\\test.txt"
parser.multi_pulse_histogram(frequency=1e6, time_window=10e-9)
parser.save_hist(histfile)
```
Make a photocounting statistics
```python
histfile = "C:\\histograms\\test.txt"
qmaker = QStatisticsMaker(histfile, amplitude_discrete=0.021, method='manual')
Q = qmaker.Q
```
Determine a crosstalk probability (if an optical signal is coherent) and compensate it
```python
PDE = 0.4
pcrosstalk, res = find_pcrosstalk(Q, PDE, N=50)
Q1 = compensate(Q, pcrosstalk)
```
# Requirements
See requirements.txt
PoseEstimator 0.0.1
Basic Pose estimation Module
Keywords: python,pose,pose-estimation,Pose Estimation,opencv pose estimation,estimation


# Pose Estimation

```python
import cv2
import time
from PoseDetector.PoseModule import PoseDetector  #posedetector module

cap = cv2.VideoCapture(0)
pTime = 0
detector = PoseDetector()
while True:
    success, img = cap.read()
    img = detector.findPose(img)
    lmList = detector.getPosition(img)
    print(lmList)

    cTime = time.time()
    fps = 1 / (cTime - pTime)
    pTime = cTime

    cv2.putText(img, str(int(fps)), (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 3)
    cv2.imshow("Image", img)
    cv2.waitKey(1)
```
pyquakes 0.0.1
PyQuakes is a Python wrapper for USGS Earthquake Catalog API that manages data querying and result processing.

# PyQuakes
PyQuakes is a Python wrapper for [USGS Earthquake Catalog API](https://earthquake.usgs.gov/fdsnws/event/1/) that manages data querying and result processing. PyEarthquake also integrates [Bing Map API](https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-query) to manage geolocation of events.

## Features of PyQuakes
- Handles the HTTP requests, and the HTTP error. Only needs to focus on setting parameters and data processing.
- Supports setting the query parameters   
- Supports searching with multiple time periods with easy-to-understand time format.
- Supports searching with multiple locations with pre-defined location classes.
- Provides geocoding functionality so that users are able to search the location without finding the coordinates.
- Supports filtering, sorting and organizing the result.

## Getting Started
Follow the instructions of Bing Map to [get your own key](https://docs.microsoft.com/en-us/bingmaps/getting-started/bing-maps-dev-center-help/getting-a-bing-maps-key) and copy your Bing Map Key in key.txt file under src foler.

## How to use
The EarthquakeQuery class has to be imported to use the API.

Import other classes if you would like to search by time and location or set other parameters.

## Example
To use geocode API, please specify the path of the key file first:
```
EarthquakeQuery.set_geocode_key_path("filepath")
```

A typical usage to search a collection of results is:
```
from pyquakes import GeoRectangle, EarthquakeQuery, TimeFrame
import datetime

query = EarthquakeQuery()
query.set_time([TimeFrame(datetime(2010, 1, 1), datetime(2015, 1, 1))])
query.set_max_depth(1.0)
result = query.search()
```

A typical usage to search a specific earthquake by its event id is:
```
from pyquakes import EarthquakeQuery

event_id = "usc000lvb5"
result = EarthquakeQuery.search_by_event_id(event_id)
```
For more examples, please refer to the **client** folder. Several use cases are contained in the clinet folder with example codes. See the function without **original** suffix.

## Test
Tests are placed in the test folder.
Please cd into the folder and run each of the py files for testing.
Pose-Detector 0.0.1
Basic Pose estimation Module
Keywords: python,pose,pose-estimation,Pose Estimation,opencv pose estimation,estimation


# Pose Estimation

```python
import cv2
import time
import PoseModule as pm

cap = cv2.VideoCapture(0)
pTime = 0
detector = pm.PoseDetector()
while True:
    success, img = cap.read()
    img = detector.findPose(img)
    lmList = detector.getPosition(img)
    print(lmList)

    cTime = time.time()
    fps = 1 / (cTime - pTime)
    pTime = cTime

    cv2.putText(img, str(int(fps)), (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 3)
    cv2.imshow("Image", img)
    cv2.waitKey(1)
```
PoseDetector 0.0.1
Basic Pose estimation Module
Keywords: python,pose,pose-estimation,Pose Estimation,opencv pose estimation,estimation


# Pose Estimation

```python
import cv2
import time
import PoseModule as pm

cap = cv2.VideoCapture(0)
pTime = 0
detector = pm.PoseDetector()
while True:
    success, img = cap.read()
    img = detector.findPose(img)
    lmList = detector.getPosition(img)
    print(lmList)

    cTime = time.time()
    fps = 1 / (cTime - pTime)
    pTime = cTime

    cv2.putText(img, str(int(fps)), (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 3)
    cv2.imshow("Image", img)
    cv2.waitKey(1)
```