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'
不知道这样要怎样修改
同样报这个错误
你解决了吗,参照https://stackoverflow.com/questions/48088283/typeerror-long-argument-must-be-a-string-or-a-number-not-nonetype这个还是不行
同样报这个错误
你解决了吗,参照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 $