Skip to content

Real-time YOLO Object Detection in Phoenix with Python

Notifications You must be signed in to change notification settings

zandao/yolo_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time Object Detection with Phoenix and Python

In this repository (part1 tag) you find the code described in the Real-time Object Detection with Phoenix and Python article.

Python

This version uses Elixir Port, which takes care of launching and communicating with python_scripts/detect.py. Be sure you have Python 3.6 installed, along with the libraries you find in python_scripts/requirements.

Phoenix

Configure the Yolo.Worker in config/dev.exs

config :yolo, Yolo.Worker,
  python: "python", # with Anaconda3 and yolo env is "/opt/anaconda3/envs/yolo/bin/python"
  detect_script: "python_scripts/detect.py",
  model: {:system, "YOLO_MODEL"}
  • :python is the path of your python3.6 executable
  • :detect_script is the path of the detect.py script.
  • just leave :model set to {:system, "YOLO_MODEL"} - it will load the model name from the YOLO_MODEL environment variable.

About

Real-time YOLO Object Detection in Phoenix with Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 55.0%
  • CSS 23.1%
  • JavaScript 12.4%
  • HTML 5.5%
  • Python 4.0%