Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxpaynestory/pakistan-nic-detector-tensorflow
Python script with trained model to detect Pakistani National Identity Card from webcam using Tensorflow and OpenCV
https://github.com/maxpaynestory/pakistan-nic-detector-tensorflow
computervision machine-learning object-detection opencv ssd-mobilenet tensorflow tensorflow-models
Last synced: about 1 month ago
JSON representation
Python script with trained model to detect Pakistani National Identity Card from webcam using Tensorflow and OpenCV
- Host: GitHub
- URL: https://github.com/maxpaynestory/pakistan-nic-detector-tensorflow
- Owner: maxpaynestory
- Created: 2020-02-20T12:27:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T23:38:47.000Z (over 1 year ago)
- Last Synced: 2024-10-10T08:43:15.499Z (about 1 month ago)
- Topics: computervision, machine-learning, object-detection, opencv, ssd-mobilenet, tensorflow, tensorflow-models
- Language: Python
- Size: 426 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pakistan NIC detector Tensorflow
## Setup
- Install python 3.6 and pip
- Download trained model file
https://drive.google.com/uc?id=12BD7NyDZHxDVC5H8nHDH_Qw0SXDnbw7e&export=download and extract on root
- Download tensorflow models from https://github.com/tensorflow/models/archive/refs/tags/v1.13.0.zip
- Install tensorflow models by going inside folder research and run command```bash
python setup.py install
```- Install pip dependencies by running
```bash
pip install -r requirements.txt
```- Open script detectusingwebcam.py and adjust your PATH_TO_CKPT according to extracted zip file
## Run
On repository root run
```
python detectusingwebcam.py
```You should be able to see a window showing your camera feed. If you show a Pakistani NIC in front of camera, the video will show you a bounding box around detected photo.
![Screenshot of running app](/screenshot.png "Screenshot of running app")