Skip to content

Added notebook for working with PPM images #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ This repository offers a growing collection of computer vision tutorials. Learn
|:------------:|:-------------------------------------------------:|:---------------------------:|:----------------------:|
| [How to Track Objects with SORT Tracker](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-sort-tracker.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-sort-tracker.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-sort-tracker.ipynb) | | [![GitHub](https://badges.aleen42.com/src/github.svg)](https://github.com/roboflow/trackers) [![arXiv](https://img.shields.io/badge/arXiv-1602.00763-b31b1b.svg)](https://arxiv.org/abs/1602.00763)|
| [How to Track Objects with DeepSORT Tracker](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-deepsort-tracker.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-deepsort-tracker.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-track-objects-with-deepsort-tracker.ipynb) | | [![GitHub](https://badges.aleen42.com/src/github.svg)](https://github.com/roboflow/trackers) [![arXiv](https://img.shields.io/badge/arXiv-1703.07402-b31b1b.svg)](https://arxiv.org/abs/1703.07402)|
## 🛠️ computer vision skills (21 notebooks)
## 🛠️ computer vision skills (22 notebooks)
| **notebook** | **open in colab / kaggle / sagemaker studio lab** | **complementary materials** | **repository / paper** |
|:------------:|:-------------------------------------------------:|:---------------------------:|:----------------------:|
| [Football AI](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/football-ai.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/football-ai.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/football-ai.ipynb) | [![Roboflow](https://raw.githubusercontent.com/roboflow-ai/notebooks/main/assets/badges/roboflow-blogpost.svg)](https://blog.roboflow.com/camera-calibration-sports-computer-vision/) [![YouTube](https://badges.aleen42.com/src/youtube.svg)](https://youtu.be/aBVGKoNZQUw) | [![GitHub](https://badges.aleen42.com/src/github.svg)](https://github.com/roboflow/sports) |
Expand All @@ -150,6 +150,7 @@ This repository offers a growing collection of computer vision tutorials. Learn
| [How to Use PolygonZone and Roboflow Supervision](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-use-polygonzone-annotate-and-supervision.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-use-polygonzone-annotate-and-supervision.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-use-polygonzone-annotate-and-supervision.ipynb) | [![Roboflow](https://raw.githubusercontent.com/roboflow-ai/notebooks/main/assets/badges/roboflow-blogpost.svg)](https://blog.roboflow.com/polygonzone/) | |
| [Train a Package Detector With Two Labeled Images](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/train-package-detector-two-labeled-images.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/train-package-detector-two-labeled-images.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/train-package-detector-two-labeled-images.ipynb) | [![Roboflow](https://raw.githubusercontent.com/roboflow-ai/notebooks/main/assets/badges/roboflow-blogpost.svg)](https://blog.roboflow.com/package-detector/) | [![GitHub](https://badges.aleen42.com/src/github.svg)](https://github.com/autodistill/autodistill-seggpt) |
| [Image-to-Image Search with CLIP and faiss](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/image-to-image-search-clip-faiss.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/image-to-image-search-clip-faiss.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/image-to-image-search-clip-faiss.ipynb) | [![Roboflow](https://raw.githubusercontent.com/roboflow-ai/notebooks/main/assets/badges/roboflow-blogpost.svg)](https://blog.roboflow.com/clip-image-search-faiss/) | |
| [Working with PPM Image Format in Autodistill](https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-work-with-ppm-images.ipynb) | [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/how-to-work-with-ppm-images.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://github.com/roboflow-ai/notebooks/blob/main/notebooks/how-to-work-with-ppm-images.ipynb) | [![Roboflow](https://raw.githubusercontent.com/roboflow-ai/notebooks/main/assets/badges/roboflow-blogpost.svg)](https://blog.roboflow.com/autodistill) | [![GitHub](https://badges.aleen42.com/src/github.svg)](https://github.com/autodistill/autodistill) |
<!--- AUTOGENERATED-NOTEBOOKS-TABLE -->

## 🎬 videos
Expand Down
14 changes: 12 additions & 2 deletions automation/autogenerate_notebooks_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,22 @@ def format(self) -> str:


def read_lines_from_file(path: str) -> List[str]:
with open(path) as file:
encodings_to_try = ['utf-8', 'latin-1', 'cp1252']

for encoding in encodings_to_try:
try:
with open(path, encoding=encoding) as file:
return [line.rstrip() for line in file]
except UnicodeDecodeError:
continue

# If all encodings fail, try with errors='replace'
with open(path, encoding='utf-8', errors='replace') as file:
return [line.rstrip() for line in file]


def save_lines_to_file(path: str, lines: List[str]) -> None:
with open(path, "w") as f:
with open(path, "w", encoding="utf-8") as f:
for line in lines:
f.write("%s\n" % line)

Expand Down
1 change: 1 addition & 0 deletions automation/notebooks-table-data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ Create Segmentation Masks with Roboflow, how-to-generate-segmentation-mask-with-
How to Use PolygonZone and Roboflow Supervision, how-to-use-polygonzone-annotate-and-supervision.ipynb, https://blog.roboflow.com/polygonzone/, , , , False, skills
Train a Package Detector With Two Labeled Images, train-package-detector-two-labeled-images.ipynb, https://blog.roboflow.com/package-detector/, , https://github.com/autodistill/autodistill-seggpt, , False, skills
Image-to-Image Search with CLIP and faiss, image-to-image-search-clip-faiss.ipynb, https://blog.roboflow.com/clip-image-search-faiss/, , , , False, skills
Working with PPM Image Format in Autodistill, how-to-work-with-ppm-images.ipynb, https://blog.roboflow.com/autodistill, , https://github.com/autodistill/autodistill, , False, skills
Loading