smar000 / blueiris_enhancedobjectdetect Goto Github PK
View Code? Open in Web Editor NEWBlueIris Enhanced Object Detection using AI Tools
BlueIris Enhanced Object Detection using AI Tools
Hello and thank you for your project that I have been using for 1 year already. But I installed all the blueiris septum from scratch and I encountered this error, can you help me please?
[DEBUG] Loading previous stationary objects history [INFO ] 'TF' model initalised Traceback (most recent call last): File "bi_alert_detect.py", line 1093, in <module> delete_old_images() File "bi_alert_detect.py", line 976, in delete_old_images cutoff = now - config.DAYS_TO_KEEP_SAVED_IMAGES * 24 * 60 * 60 AttributeError: module 'config' has no attribute 'DAYS_TO_KEEP_SAVED_IMAGES'
I have been working on getting your Python 3 version working... and one thing I just can't figure out.
Traceback (most recent call last):
File "bi_alert_detect.py", line 74, in <module>
import coco_labels as coco
ModuleNotFoundError: No module named 'coco_labels'
I can't find anything related to a module named "coco_labels" online, most I find is something about a "coco_labels.txt" which has to do with the object labels. Am I missing something here?
I am really hoping this gets a little help... I updated the code to work with Python 3.8 and TensorFlow 2, I need to run within Windows to utilize my GPU so I am really trying to get this to work. So far so good, but when ever I trigger a camera:
C:\Users\char\Desktop\BIObjectDetect>python bi_alert_detect.py
======================================================
Person Detection system started
Modelling System: TF
Importing TensorFlow (may take a few seconds)
2020-10-19 22:20:58.459332: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_110.dll
Loading model from folder 'TF' (may take some time)...
2020-10-19 22:21:09.893813: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library nvcuda.dll
2020-10-19 22:21:09.957619: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:06:00.0 name: GeForce GTX 1650 computeCapability: 7.5
coreClock: 1.68GHz coreCount: 14 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 119.24GiB/s
2020-10-19 22:21:09.979684: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_110.dll
2020-10-19 22:21:10.012133: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_11.dll
2020-10-19 22:21:10.027788: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cufft64_10.dll
2020-10-19 22:21:10.040146: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library curand64_10.dll
2020-10-19 22:21:10.057489: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusolver64_10.dll
2020-10-19 22:21:10.072963: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_11.dll
2020-10-19 22:21:10.084799: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_8.dll
2020-10-19 22:21:10.095608: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-19 22:21:10.123131: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x254f02de460 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-10-19 22:21:10.138133: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-10-19 22:21:10.149691: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:06:00.0 name: GeForce GTX 1650 computeCapability: 7.5
coreClock: 1.68GHz coreCount: 14 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 119.24GiB/s
2020-10-19 22:21:10.179859: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudart64_110.dll
2020-10-19 22:21:10.189596: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cublas64_11.dll
2020-10-19 22:21:10.202010: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cufft64_10.dll
2020-10-19 22:21:10.216694: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library curand64_10.dll
2020-10-19 22:21:10.227494: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusolver64_10.dll
2020-10-19 22:21:10.247724: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cusparse64_11.dll
2020-10-19 22:21:10.257995: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library cudnn64_8.dll
2020-10-19 22:21:10.276563: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1858] Adding visible gpu devices: 0
2020-10-19 22:22:58.273604: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1257] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-10-19 22:22:58.285055: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1263] 0
2020-10-19 22:22:58.293115: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1276] 0: N
2020-10-19 22:22:58.306141: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1402] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2909 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1650, pci bus id: 0000:06:00.0, compute capability: 7.5)
2020-10-19 22:22:58.334152: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x255390c1e30 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-10-19 22:22:58.349294: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1650, Compute Capability 7.5
Model initalised. Connecting to mqtt server 192.168.5.158
Subscribing to mqtt topic 'BlueIris/alert'
MQTT connection established with broker
2020-10-19 22:25:23 'b'livingroom-hdt'' camera alert triggered
[DEBUG] Calling image processing function...
[DEBUG] 'do_detect' function called for camera 'b'livingroom-hdt''
[DEBUG] Camera 'b'livingroom-hdt'' not present in existing collection. Instantinating new instance
[DEBUG] Search objects for camera 'b'livingroom-hdt'': Person
Traceback (most recent call last):
File "bi_alert_detect.py", line 835, in <module>
mqtt_client.loop_forever()
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 1779, in loop_forever
rc = self.loop(timeout, max_packets)
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 1181, in loop
rc = self.loop_read(max_packets)
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 1572, in loop_read
rc = self._packet_read()
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 2310, in _packet_read
rc = self._packet_handle()
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 2936, in _packet_handle
return self._handle_publish()
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 3216, in _handle_publish
self._handle_on_message(message)
File "C:\Users\char\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 3444, in _handle_on_message
self.on_message(self, self._userdata, message)
File "bi_alert_detect.py", line 738, in mqtt_on_message
detected = ai_detector.do_detect(cam_name)
File "bi_alert_detect.py", line 395, in do_detect
self.cameras[cam_name] = Camera(
File "bi_alert_detect.py", line 209, in __init__
self.url = self.get_url()
File "bi_alert_detect.py", line 240, in get_url
self.url = "".join((self.url, "/image/", self.name))
TypeError: sequence item 2: expected str instance, bytes found
C:\Users\char\Desktop\BIObjectDetect>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.