We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm trying to save frames from my MacBook's web camera to an Arraylist and then show three different images from the ArrayList.
The problem I'm having is that even though I'm pulling PImages from three different locations in the array (I think), I keep getting three of the exact same most recent images. Am I not referencing different locations in the ArrayList correctly?
Here's a stripped down version of the code on GitHub to show the problem I'm having:
Steve
Answers
that's 39 lines - you can easily post it here and more people will see it.
line 28 is saving a reference to cam. you need a copy of the pixels, not a reference.
@sspboyd===
try this one (from your "transformed" code )
Thanks very much akenaton and koogs. Totally fixed it. Now to deal with memory errors.
I'm trying to read frames from a image array without success. used your answer as inspiration. does anybody can help pleaseee?? thank you !!
my code:
Is this the same question that's in this post?
Hello Kevin, Yes it is. I have seen this post before opening another thread. Thanks for your help!
F.