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

RealSense Linux (OpenCV?) error: VIDEOIO ERROR: V4L2: property frame_count is not supported #5632

Closed
breznak opened this issue Jan 13, 2020 · 1 comment

Comments

@breznak
Copy link

breznak commented Jan 13, 2020


Required Info
Camera Model { D435 }
Firmware Version 05.12.01.00
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) 5.3.0-24
Platform PC/ntb
SDK Version latest 2.31
Language python/opencv
Segment

Issue Description

I'm trying to use the Intel RealSense2 camera (RGB) with YOLACT framework, please see dbolya/yolact#283

I'm getting the following crash:

$ python eval.py --trained_model=weights/yolact_base_54_800000.pth --score_threshold=0.15 --top_k=15 --video_multiframe=4 --video=0
Config not specified. Parsed yolact_base_config from the file name.

Loading model... Done.
VIDEOIO ERROR: V4L2: property frame_count is not supported
Initializing model... Done.
Traceback (most recent call last):
File "eval.py", line 1104, in <module>
evaluate(net, dataset)
File "eval.py", line 891, in evaluate
evalvideo(net, args.video)
File "eval.py", line 801, in evalvideo
active_frames = [{'value': extract_frame(first_batch, i), 'idx': 0} for i in range(len(first_batch[0]))]
File "eval.py", line 801, in <listcomp>
active_frames = [{'value': extract_frame(first_batch, i), 'idx': 0} for i in range(len(first_batch[0]))]
File "eval.py", line 790, in <lambda>
extract_frame = lambda x, i: (x[0][i] if x[1][i] is None else x[0][i].to(x[1][i]['detection']['box'].device), [x[1][i]])
TypeError: 'NoneType' object is not subscriptable

It seems to me

VIDEOIO ERROR: V4L2: property frame_count is not supported

would be a HW "error"/difference in the RealSense cameras? Is there a way to overcome this?
A related issue might be
#5628
, seems I would have to extract the frames in a loop from the HW manually, and feed it to the neural net. (?)

@ev-mp
Copy link
Collaborator

ev-mp commented Mar 8, 2020

@breznak , the root cause has been identified and addressed by the framework's repo maintainers from the above link dbolya/yolact#283.
Closing as n/a.

@ev-mp ev-mp closed this as completed Mar 8, 2020
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

2 participants