what's wrong when l running imageai

lt said:
Using TensorFlow backend.
2019-08-09 10:34:50.660802: W tensorflow/core/platform/profile_utils/cpu_utils.cc:98] Failed to find bogomips in /proc/cpuinfo; cannot determine CPU frequency
2019-08-09 10:34:50.661635: I tensorflow/compiler/xla/service/service.cc:161] XLA service 0x3f68f1b0 executing computations on platform Host. Devices:
2019-08-09 10:34:50.661714: I tensorflow/compiler/xla/service/service.cc:168] StreamExecutor device (0): ,
2019-08-09 10:34:50.739878: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:965] ARM64 does not support NUMA - returning NUMA node zero
2019-08-09 10:34:50.740194: I tensorflow/compiler/xla/service/service.cc:161] XLA service 0x3da98830 executing computations on platform CUDA. Devices:
2019-08-09 10:34:50.740286: I tensorflow/compiler/xla/service/service.cc:168] StreamExecutor device (0): NVIDIA Tegra X1, Compute Capability 5.3
2019-08-09 10:34:50.740690: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0

TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 191 MB memory) -> physical GPU (device: 0, name: NVIDIA Tegra X1, pci bus id: 0000:00:00.0, compute capability: 5.3)
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
GStreamer: Error opening bin: empty pipeline not allowed

l’m using a USB cam and it looks ok in cheese.

also it is ok to run videodetection but not ok when l use opencv to do real time detection as above.


Based on your log, the error occurs when the application try to open the camera/video.

GStreamer: Error opening bin: empty pipeline not allowed

Please noticed that our default OpenCV package doesn’t enable GStreamer support which requires you to build it from source.
Here is a script for building OpenCV with GStreamer support:

Here is an experience sharing from other users for your reference: