Raspberry_ObjectDetection_Camera icon indicating copy to clipboard operation
Raspberry_ObjectDetection_Camera copied to clipboard

有异常报错

Open GavinOUYANG opened this issue 6 years ago • 3 comments

Loading... Finish Load Graph.. Running detection.. Traceback (most recent call last): File "opencv_camera.py", line 88, in feed_dict={image_tensor: image_np_expanded}) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 889, in run run_metadata_ptr) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1089, in _run np_val = np.asarray(subfeed_val, dtype=subfeed_dtype) File "/usr/local/lib/python2.7/dist-packages/numpy/core/numeric.py", line 501, in asarray return array(a, dtype, copy=False, order=order) TypeError: long() argument must be a string or a number, not 'NoneType'

不知道这样要怎样修改

GavinOUYANG avatar Jul 25 '18 15:07 GavinOUYANG

同样报这个错误

wang1051992187 avatar Mar 29 '19 09:03 wang1051992187

同样报这个错误

你解决了吗,参照https://stackoverflow.com/questions/48088283/typeerror-long-argument-must-be-a-string-or-a-number-not-nonetype这个还是不行

ingod avatar Mar 31 '19 12:03 ingod

同样报这个错误

你解决了吗,参照https://stackoverflow.com/questions/48088283/typeerror-long-argument-must-be-a-string-or-a-number-not-nonetype这个还是不行 你好,请问这个错误解决了吗?我除了这个报错前面好多了两行报错,求教

Loading... Finish Load Graph.. libv4l2: error turning on stream: Invalid argument VIDIOC_STREAMON: Invalid argument Running detection.. Traceback (most recent call last): File "opencv_camera.py", line 87, in feed_dict={image_tensor: image_np_expanded}) File "/home/pi/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 900, in run run_metadata_ptr) File "/home/pi/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1104, in _run np_val = np.asarray(subfeed_val, dtype=subfeed_dtype) File "/home/pi/.local/lib/python2.7/site-packages/numpy/core/numeric.py", line 538, in asarray return array(a, dtype, copy=False, order=order) TypeError: long() argument must be a string or a number, not 'NoneType' pi@raspberrypi:~/Raspberry_ObjectDetection_Camera $

CTQ2333 avatar Apr 26 '19 08:04 CTQ2333