tv.fill(INVERT) issues?

Store Forums Video Experimenter Bugs/Problems tv.fill(INVERT) issues?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #394
    lemmons
    Participant

    First of all, thank you for the great work. This capture board is great!

    I’m using the Video Frame Capture sample to capture an inverted B/W image, but am having an issue using the tv.fill(INVERT) function.

    When I don’t use it everything seems to work fine, but when I add the INVERT line in between the capture and resume calls it causes the grabber to bug out after a few seconds. So after a few seconds the captured frame stops displaying on the output, though the actual camera feed persists if I have the switch in the overlay position.

    It seems if I add a small delay between the invert and resume it works though.

    So my current (stable, I think) code for the loop is:

    void loop() {
    tv.capture();
    tv.fill(INVERT);
    tv.delay_frame(1);
    tv.resume();
    tv.delay_frame(5);
    }

    I thought I was also seeing almost the same problem with the Object Tracking and Edge Detection demos, but haven’t been able to reproduce this bug as regularly on those(they seem to be stable right now, though I’m sure they were having some issues earlier).

    Anyway, does this seem right? Have you ever seen this sort of thing?

    #1535
    Michael
    Keymaster

    That’s very interesting — I have not experienced that. There must be some kind of strange timing problem, but I’m glad you have a working solution. Good job finding that workaround.

    I’ll keep thinking about this one….!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.