An open API service indexing awesome lists of open source software.

https://github.com/abhifuturetech/object-detection-via-tensorflow

Use the Tensorflow Object Detection API with Tensorflow 2
https://github.com/abhifuturetech/object-detection-via-tensorflow

api computer-vision docker image-recognition machine-learning python tensorflow tensorflow2

Last synced: about 1 year ago
JSON representation

Use the Tensorflow Object Detection API with Tensorflow 2

Awesome Lists containing this project

README

          

# Tensorflow Object Detection with Tensorflow 2

![1_W3elu1yPiJ3bpj8MZrmvwA](https://github.com/patilabhi20/gesture-controlled-robotic-hand-by-using-CV/assets/157373320/69461b80-aa9a-4d40-90a0-42955450d4b4)

## Installation

You can install the TensorFlow Object Detection API either with Python Package Installer (pip) or [Docker](https://www.docker.com/), an open-source platform for deploying and managing containerized applications.

### Docker Installation

```
# From the root of the git repository (inside the models directory)
docker build -f research/object_detection/dockerfiles/tf2/Dockerfile -t od .
docker run -it od
```

### Python Package Installation

```
cd models/research
# Compile protos.
protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API.
cp object_detection/packages/tf2/setup.py .
python -m pip install .
```

```python
import os
import sys
args = sys.argv
directory = args[1]
protoc_path = args[2]
for file in os.listdir(directory):
if file.endswith(".proto"):
os.system(protoc_path+" "+directory+"/"+file+" --python_out=.")
```

```
python use_protobuf.py
```

To test the installation run:

```
# Test the installation.
python object_detection/builders/model_builder_tf2_test.py
```