hellonico commented on a change in pull request #13813: [WIP] examples with 
opencv4/origami
URL: https://github.com/apache/incubator-mxnet/pull/13813#discussion_r247355217
 
 

 ##########
 File path: 
contrib/clojure-package/examples/pre-trained-models/src/pre_trained_models/predict_image.clj
 ##########
 @@ -40,21 +40,12 @@
     (io/copy in out)))
 
 (defn get-image [url show?]
-  (let [fname "test-image.jpg"
-        _ (download url fname)
-        image (-> (img/load-image fname)
-                  (img/resize h w))
-        pixels (img/get-pixels image)
-        rgb-pixels (reduce (fn [result pixel]
-                             (let [[rs gs bs] result
-                                   [r g b _] (pixel/unpack-pixel pixel)]
-                               [(conj rs r) (conj gs g) (conj bs b)]))
-                           [[] [] []]
-                           pixels)]
-    (when show? (img/show image))
 
 Review comment:
   just added !

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to