Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_objectdetection can not be run successfully #27

Open
Programmerwyl opened this issue Jun 25, 2018 · 5 comments
Open

run_objectdetection can not be run successfully #27

Programmerwyl opened this issue Jun 25, 2018 · 5 comments

Comments

@Programmerwyl
Copy link

The environment:jeston tx2:
opencv: 4.0.0
Camera: CSI Cameras
when I run run_objectdetection,it errors.

('frame', None)

Traceback (most recent call last):
File "run_objectdetection.py", line 189, in
detection(model, config)
File "run_objectdetection.py", line 84, in detection
gpu_feeds = {image_tensor: vs.expanded()}
File "/home/nvidia/Downloads/realtime_object_detection-master/rod/helper.py", line 220, in expanded
return np.expand_dims(cv2.cvtColor(self.frame, cv2.COLOR_BGR2RGB), axis=0)
cv2.error: OpenCV(4.0.0-pre) /home/nvidia/opencv/modules/imgproc/src/color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper'

I find that "frame = vs.read()" is always None.
If you have any ideas,please tell me .
Thanks !

@gustavz
Copy link
Owner

gustavz commented Jul 1, 2018

@Programmerwyl
are you using the current master?

  1. how does your config look like?
  2. Did you change code?
  3. Which python / openCV /JetPack version are you using

@Programmerwyl
Copy link
Author

@gustavz Thank you very much for your reply.
yes ,it is the current master
I haven't changed anything about your code.
python 2.7
opencv 4.0
jetpack 28.2

@gustavz
Copy link
Owner

gustavz commented Jul 10, 2018

This is really strange as i just double checked everything today.
Which TensorFlow do you use?

@guoDebby
Copy link

I have the same problem, I'm using tensorflow1.6, opencv4.0, jetson Xavier.
Does anyone know how to fix it?

@sathees07
Copy link

how to solve this problem?
Traceback (most recent call last):
File "objectdetection_image.py", line 20, in
main()
File "objectdetection_image.py", line 16, in main
model = ObjectDetectionModel(config).prepare_model(input_type)
File "/home/nvidia/Downloads/realtime_object_detection-master (2)/rod/model.py", line 391, in prepare_model
self.prepare_input_stream()
File "/home/nvidia/Downloads/realtime_object_detection-master (2)/rod/model.py", line 366, in prepare_input_stream
(self.config.WIDTH,self.config.HEIGHT)).start()
File "/home/nvidia/Downloads/realtime_object_detection-master (2)/rod/helper.py", line 195, in start
self.load_images()
File "/home/nvidia/Downloads/realtime_object_detection-master (2)/rod/helper.py", line 202, in load_images
if idx >=self.limit:
TypeError: unorderable types: int() >= str()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants