Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
gigasquid committed Aug 23, 2013
1 parent e66e87a commit d7872a5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ home.m4v
vid.h264
faceDetections.png
next.h264
opencvin.png
opencvin.png
.lein-repl-history
12 changes: 12 additions & 0 deletions examples/face_recognition.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(ns clj-drone.example.video
(:require [clj-drone.core :refer :all]
[clj-drone.video :refer :all]))

;This video input from the drone is h264. It is converted to png and
;then put through openvcv for face recognition
(configure-opencv true)
(drone-initialize)
(init-opencv)
(init-video (drone-ip drone-host))
(start-video (drone-ip drone-host))
(end-video)
3 changes: 1 addition & 2 deletions src/clj_drone/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
(defn drone-init-navdata []
(let [host (:host (:default @drones))
navdata-port (:navdata-port (:default @drones))
navdata-socket (:navdata-socket (:default @drones))
]
navdata-socket (:navdata-socket (:default @drones))]
(do
(init-logger)
(log/info "Initializing navdata")
Expand Down

0 comments on commit d7872a5

Please sign in to comment.