Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: Any quick, easy way to compare two images? Date: 27 Jan 2014 19:14:23 GMT Organization: People for the Ethical Treatment of Pirates Lines: 44 Message-ID: References: <2ridndio-M0kOnzPnZ2dnUVZ8kmdnZ2d@giganews.com> <2fd2jijlbb.fsf@ethel.the.log> <161tzyjibp.fsf@ethel.the.log> <5cKdnS2-vfr0cX_PnZ2dnUVZ_oSdnZ2d@giganews.com> <6jy523synp.fsf@ethel.the.log> <250120141345247892%nospam@nospam.invalid> <250120141630000472%nospam@nospam.invalid> <2014012515592033890-savageduck1@REMOVESPAMmecom> <2014012517510124273-savageduck1@REMOVESPAMmecom> <2014012613303278552-savageduck1@REMOVESPAMmecom> <270120141306010135%nospam@nospam.invalid> X-Trace: individual.net GWApLGE6lf6/kJdiCJx1jAHXlGZIYQGklW95YsT4UNbXLYh/YO Cancel-Lock: sha1:cEYTEdrluH8LcwszWEmOvqZsMaI= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:55490 On 2014-01-27, nospam wrote: > In article , Jolly Roger > wrote: > >> > As explained elsewhere (in multiple ways, on multiple occasions, but >> > still somehow eluding DAMN NEAR EVERYBODY despite my efforts to be so >> > clear that no misunderstanding could be possible) my program is >> > snatching images from a webcam (AKA "pushing the button on the magic >> > box" of the analogy, AKA the original "assemble a stream of webcam >> > images" in my first post) that *NOMINALLY* updates the image on a >> > website every 60 seconds. >> >> So rather than pulling images directly from a network camera, you are, >> in fact, pulling images from a web site indiscriminately? That's quite a >> different use case, as I see it. In that case, examining the >> "Last-Modified" HTTP header will tell you if the image is in fact new, >> which would allow you to refrain from pulling the same image more than >> once. > > how hypocritical of you. > > apparently you don't understand that header may not always be correct > and it's likely the file's modification date anyway. Maybe you don't have enough experience with network cameras to see what's going on here. A common feature of network cameras is to automatically upload snapshots to an ftp/web server. The OP has stated that, for this particular camera, that upload happens at random intervals. The OPs software downloads the image from the web server at different intervals than the camera uploads them. Therefore when the OPs software downloads an image from the web server, the image on the server at the time may be the exact same image the OPs software got the last time it downloaded an image from the server. Examining the last-modified header / file modification date in this case will be sufficient to refrain from downloading the same image. If you can't wrap your little brain around that, contact your local therapist for assistance. You've proven yourself to be a complete jackass. Good work, Mary. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR