semvec/pypi-packages huggingface dataset:
map-arrow 0.0.1
Travel Time Map
Requires Python: >=3.6

# Travel-time Maps by Speed

Take in data input (.csv), generate heatmaps based on speed condition with printed timestamps

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install all requirements

```bash
pip install -r /path/to/requirements.txt
```

## As Library

```python
import timestamp

# returns heatmap with travel time statistics
get_timestamp('path/to/data.csv')

# returns heatmap
get_map('path/to/data.csv')

# save to build directory
map = get_map('path/to/data.csv')
save_map(map, name='map-name')
```
## Demo




https://user-images.githubusercontent.com/57471582/176595709-a78326a6-de2c-412f-809e-7e7e5a83c923.mov



<img width="1264" alt="demo" src="https://user-images.githubusercontent.com/57471582/176595645-f18a2bd1-1c49-4351-b8ff-4288aac4a9ec.png">



## Issues

Have a problem? Feedbacks? Create an issue [here](https://github.com/nguyen-huong/traveltime/issues)
facenet-opencv 0.1.0
FaceNet face features using OpenCV
Requires Python: >=3.6

# facenet-opencv
FaceNet face features using OpenCV 

# Credits

[facenet](https://github.com/davidsandberg/facenet) by [davidsandberg](https://github.com/davidsandberg/)

[facenet_opencv_dnn](https://github.com/TanFluent/facenet_opencv_dnn) by [TanFluent](https://github.com/TanFluent/)


# Why this exists
   1. The original project need tensorflow installed.
   2. The method/model need tensorflow 1.x, which is unavailable on python 3.8.
   3. A package with model in it, without depending tensorflow, is convenient.

# How is this done

## Download original models
[20180408-102900](https://drive.google.com/open?id=1R77HmFADxe87GmoLwzfgMu_HY0IhcyBz)

Or

[20180402-114759](https://drive.google.com/open?id=1EXPBSXwTaqrSC0OhUdXNmKSh9qJUQ55-)

## Install Tensorflow environment

python3.6 on linux

`pip3 install protobuf==3.19.4 grpcio==1.8.6 tensorflow==1.7`

## Run the scripts
with some model path fix

   1. `python3 convert_variable_to_constant.py`
   2. `python3 convert_tf_pb_to_cv_pb.py`

**Be noticed**: the package contains the result of model `20180408-102900`. 

# How to use

## Install

```bash
pip3 install opencv-python
pip3 install mtcnn_opencv
pip3 install facenet_opencv
```

## Code
```python
from facenet_cv2 import FaceNet
model = FaceNet()

vectors = model.face_features(open("x.jpg", "rb").read())

for v in vectors:
    print(v)
```