From 8b9af80a5b3bdb6ec17c4fa2cfa14ce4676ef1c3 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Fri, 18 May 2018 20:27:59 +0000
Subject: [PATCH] Merge pull request #851 from NadeenUdantha/patch-1

---
 darknet.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/darknet.py b/darknet.py
index 2deff4f..b290a35 100644
--- a/darknet.py
+++ b/darknet.py
@@ -118,7 +118,7 @@
             lib = CDLL(winGPUdll, RTLD_GLOBAL)
             print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
 else:
-    lib = CDLL("./libdarknet.so", RTLD_GLOBAL)
+    lib = CDLL("./darknet.so", RTLD_GLOBAL)
 lib.network_width.argtypes = [c_void_p]
 lib.network_width.restype = c_int
 lib.network_height.argtypes = [c_void_p]
@@ -222,9 +222,11 @@
     """
     #pylint: disable= C0321
     im = load_image(image, 0, 0)
+    #import cv2
+    #custom_image = cv2.imread(image) # use: detect(,,imagePath,)
     #import scipy.misc
-    #sci_image = scipy.misc.imread(image)
-    #im, arr = array_to_image(sci_image)		# you should comment line below: free_image(im)
+    #custom_image = scipy.misc.imread(image)
+    #im, arr = array_to_image(custom_image)		# you should comment line below: free_image(im)
     if debug: print("Loaded image")
     num = c_int(0)
     if debug: print("Assigned num")

--
Gitblit v1.10.0