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

Frame ID never changes from 4 on linux virtual machine #15

Open
zeroKilo opened this issue Sep 19, 2017 · 5 comments
Open

Frame ID never changes from 4 on linux virtual machine #15

zeroKilo opened this issue Sep 19, 2017 · 5 comments
Labels

Comments

@zeroKilo
Copy link

bool SeekCam::grab()
{
    int i;

    for (i=0; i<10; i++) {
        if(!get_frame()) {
            error("Error: frame acquisition failed\n");
            return false;
        }

        if (frame_id() == 3) {
            return true;

        } else if (frame_id() == 1) {
            m_raw_frame.copyTo(m_flat_field_calibration_frame);
        }
    }

    return false;
}

if I understand this code right, it waits for the incoming frame data to have a frame id of 3 (3rd 16bit value in frame) but my camera never changes from 4, what would trigger it to change? I made a few edits to the code to have better output:

https://pastebin.com/hEB2wuFV

it fails with:

/home/tester/code/thermal/2/src/SeekCam.cpp:174:open_cam(): Error: first grab failed

what can I do? is there a documentation to the frame data structure?

@maartenvds
Copy link
Collaborator

Did you try this from a linux virtual machine or native linux? What camera type did you use?

@zeroKilo
Copy link
Author

I used linux mint in vmware player, and I have PID=0011, "Seek Thermal Compact Pro"

@maartenvds maartenvds changed the title Frame ID never changes from 4 Frame ID never changes from 4 on linux virtual machine Sep 25, 2017
@maartenvds maartenvds added the bug label Sep 25, 2017
@Achref-Dachraoui
Copy link

Hi, i have the same problem here, did you find a solution ?
Ty

@maartenvds
Copy link
Collaborator

Nope, sorry it is known not to work stable via a virtual machine. I'm currently not planning to provide support for VM's.

@twhitloc
Copy link

twhitloc commented Mar 20, 2018

I faced a similar issue with the Jetson TX2, and had very similar debug output. It also failed on the grab and would not initialize successfully. I could hear the camera shutter though.

After updating, rebooting and re-attaching the camera I noticed there was an additional message from opencv about not having ShowImage implemented as well as another gtk2.0. After installing the gtk2.0 dependency and recompiling opencv I was able to run this successfully.

I am not saying this is a solution per-say, but this solved my issue that on the face of it had similar behavior.

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

No branches or pull requests

4 participants