How to compare images programmatically

2012-01-09 Thread Mike Kear
I have a webcam in the studio of our radio station, and it hangs sometimes. I want to try to pin down when this happens, and send myself an email with the time etc so i can track down what's causing the camera to hang. The webcam software uploads an image to the site every 30 seconds, so I

Re: Tuning CF9 64 bit on Win2k8

2012-01-09 Thread Justin Scott
I know there have been links on a good How To on this topic, but my google-fu is failing me.  Can anybody point me in the right direction? I don't have time to track down a specific reference, but this site usually has good content for more advanced CF and JVM tuning. http://cfwhisperer.net/

Re: How to compare images programmatically

2012-01-09 Thread Claude Schnéegans
Is there a CF image function or tag that will compare one image with another? If not, is there a java function or something I can use? I have made a CFX tag which calculates a CRC-32 checksum for a file. If two files have the same CRC-32, probability that they are identical is very high,

Re: How to compare images programmatically

2012-01-09 Thread Michael Stemle
I think that the best way to do that would just be to do some sort of file comparrison. There are many ways you could go about this. I think the three most common are to compare the last modified times for the files, to compare the files' size in bytes, and then to compare a fingerprint - usually

Re: How to compare images programmatically

2012-01-09 Thread Phillip Vector
This may seem like a stupid question, but what do you mean exactly that the webcam hangs? You mean the software.. right? If it's the software that hangs (since hardware can't really hang), that means it doesn't upload a file or is it a different FTP program that does it? You could always set up

Re: How to compare images programmatically

2012-01-09 Thread Cameron Childress
It may be easier to simply compare the file's date. Dates 60 seconds older than now() and it's busted. -Cameron On Mon, Jan 9, 2012 at 9:52 AM, Mike Kear afpwebwo...@gmail.com wrote: I have a webcam in the studio of our radio station, and it hangs sometimes. I want to try to pin down when

Re: CF9 and Excel - advice sought

2012-01-09 Thread Cameron Childress
On Wed, Jan 4, 2012 at 7:42 PM, Les Mizzell lesm...@bellsouth.net wrote: I've not had a chance to work with cfspreadsheet yet. Works OK reading different version Excel files? What other experiences has everybody had? If folks seem to think it works better than what I'm doing in CF8, I'll

Re: How to compare images programmatically

2012-01-09 Thread Mike Kear
Thanks for all your helpful responses ... @phillip:The symptom we get is that images are uploaded every 30 seconds ok, but at some point during the day instead of uploading new images, it uploads the same image again and again. The problem is with the computer that's providing the images,

Re: How to compare images programmatically

2012-01-09 Thread Phillip Vector
Hrm.. Most software that allows uploads can also set the filename to the time and date it was taken. Have you tried this? If so, I presume then that the filenames stay the same as it doesn't take a new picture? On Mon, Jan 9, 2012 at 7:54 AM, Mike Kear afpwebwo...@gmail.com wrote: Thanks for

Re: How to compare images programmatically

2012-01-09 Thread Mike Kear
The filename is always the same, and the ftp software sets the creation dates and mod dates correctly. Therefore we can't use any CFFILE-type functionality What we'll see is when you go into the station's webcam page, you can see the current show host as he/she does his/her show - with an

Re: How to compare images programmatically

2012-01-09 Thread Phillip Vector
Ok.. Time to go low tech. 1. Get a clock. Synch it up to the atomic clock (or at least to the other computers as well). 2. Put it in front of the camera (make sure to post on the website why this is so people don't get confused). 3. Next morning, check the page. The time shown is when it

Re: How to compare images programmatically

2012-01-09 Thread Cameron Childress
Depending on what EXIF data gets written to the file, you might inspect it using imageGetEXIFMetadata() and determine a change. Usually cameras will drop the date taken in there, maybe your webcam does too. cfimage source=/path/to/your/file.jpg name=myImage / cfset test =

Re: How to compare images programmatically - GOT-IT!!!!

2012-01-09 Thread Mike Kear
Ok i have it figured out ... i can convert images to base64 strings, which gives me a string I can manipulate using simple 'eq' operators. So using a scheduled task, every 5 minutes, I take the current cabcam.jpg (thats the name of the file that's displayed on the web page) and convert it to

RE: ORM Compositie Key Help

2012-01-09 Thread Bobby Hartsfield
Noob mistake. I had this.ormsettings.flushAtRequestEnd set to flase in applicaiton.cfc and was not using ormFlush() after entitySave. I Must have changed it to false to try an example in John W's book or something. .:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com

RE: How to compare images programmatically

2012-01-09 Thread Eric Roberts
I would look to a java solution. I am sure there is something within the Java Image (I think that is the name of it...or be what I named the object when I created it...been a long day... hehehe)that is capable of comparison. -Original Message- From: Phillip Vector