Can the capture data be address with code?

Store Forums Video Experimenter General Discussion Can the capture data be address with code?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #734
    learn2turn
    Member

    I look at one of the examples and see that it calls tv.capture().

    What I’m curious about is are the API calls (or some other method) to get the results of the capture, perhaps as a bit map, that can then be operated on by the program? So for example, could I store a bitmap of frame in Arduino memory, then do another capture. Then do some programmatic analysis on which bits changed?

    Anyone know if that is possible? I didn’t see anything for addressing the data in the frame in the TVout library.

    If it is possible, anyone know how fast it would be to get the frame data?

    #2092
    Michael
    Keymaster

    Yes, the purpose of tv.capture() is to capture the pixels in memory. You can then access the values of the bitmap with

    tv.get_pixel(x,y);

    You will not be able to capture 2 frames and compare them — there is only enough memory for one frame. An Arduino has very little memory!

    #2094
    learn2turn
    Member

    thanks for the reply. I want to start hacking around with something for a project. I’ve been reading bits and pieces and trying to decide whether Arduino or Raspberry Pi would be better. I get the impressions that Arduino is easier for simple device stuff but if I need more power, I’d have to use Raspberry Pi (at the expense of deal with a whole operating system and such.)

    Another thing to think about is that I don’t need to hold the whole frame in memory. Probably collapsing it to 64×48 would do, either by sampling every fifth pixel or averaging five pixels.

    I need to read more about both devices to see if either is powerful enough to do what I want.

    #2122
    Qasim
    Member

    How about just changing the letters to black without using the invert=2 or the white = 1 anywhere on the screen?
    Haven’t gotten as far as to know what you were talking about in previous messages but it sounds interesting. Another passage to take someday.

    #2130
    Michael
    Keymaster

    You can’t overlay black onto the composite image. THe Video Experimenter can only increase the voltage to make white pixels, it can’t sink current to remove the pixels.

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