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

skipping/storing late frames #34

Open
AbdelRahmanNasser20 opened this issue Aug 5, 2022 · 2 comments
Open

skipping/storing late frames #34

AbdelRahmanNasser20 opened this issue Aug 5, 2022 · 2 comments

Comments

@AbdelRahmanNasser20
Copy link
Contributor

I am having trouble collecting the first frame. Instead it starts collecting at the second frame.

Frames array [ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31]

Every now and then it starts collecting frames around 3-6 and sometimes it skips frames or stores the same frames.

@vstadnytskyi
Copy link
Owner

@AbdelRahmanNasser20

This frame number, is it one that comes directly from the camera? If yes, do not worry about that. This is fine. In general, we will have applications when camera is working all the time and we start recording for a short period of time. So we will never really start with frame 0. However, skipping frames is an issue.

How do you know that it skips frames or saves identical frames? How can we test if frames are indeed the same or if it skipped some? I do not trust the frame number that the camera supplies.

@AbdelRahmanNasser20
Copy link
Contributor Author

AbdelRahmanNasser20 commented Aug 19, 2022

Similar and skipped frame rates.
file 9 -> [29 29 30 31 31 32 32 33 33 34 35 36 36 37 38 38 38 39 39 39 40 40 41 41 42 43 43 43 45 46]

ERROR
`
Exception in thread Thread-103:
Traceback (most recent call last):
File "c:\Users\Abdel Nasser\Desktop\Python\python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "c:\Users\Abdel Nasser\Desktop\Python\python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "c:\users\abdel nasser\documents\l151 camera\intel-realsense-devices\intel_realsense_devices\device.py", line 174, in run_get_images
self.run_once_images()
File "c:\users\abdel nasser\documents\l151 camera\intel-realsense-devices\intel_realsense_devices\device.py", line 133, in run_once_images
img_data_dict = self.driver.get_images()
File "c:\users\abdel nasser\documents\l151 camera\intel-realsense-devices\intel_realsense_devices\driver.py", line 273, in get_images
f = self.pipeline[IMAGE].wait_for_frames()
RuntimeError: Frame didn't arrive within 5000

`

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