Compare two jpeg's taken from ip camera

Hi folks,
I've got an IP camera, and I need to take two photos and compare them, and then my program must return if there's something different on the image. Taking the photos is not a problem, using an activex control with the camera library I can use a function that writes a jpeg image to the disk. The real problem is to compare those images. I tried to subtract them, but since the sensor is a CMOS, there's a lot of noise, and even if i take two photos without moving anything, when i subtract the pictures it is not empty (black).Then I tried using Vision Assistent or the Golden Template, but I could not use them, because of two problems:
- first, most of the functions on Vision Assistent can only process 8 bit binary images. Does someone know how to convert a jpeg to this format?
- second, when i tried to open images to use the IMAQ functions on my own vi, i used the IMAQ image.ctl and typed the path to the pictures, and connected them to the functions, but everytime i run thid kind of VI, it returns an error saying that the file is not an image.
If you know how to solve one of these issues, or if you think of another method to compare the jpeg's, please let me know!
Regards,
Vitor
Solved!
Go to Solution.

I forgot to post some of the images i need to compare:
 Image 1                                                                         Image 2                                                                 Image 1 - Image 2
When i compare image 1 and image 2, my VI must return nothing, but if the cup isn't there on image 2, it must return a warning.
What i did was to deploy the images in 2D arrays, subtract them, and if the result was different from 0 the VI returns the warning, but even when the images are "equal", the subtraction is different from zero.
Any ideas? 

Similar Messages

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • Warranty on the issue of purple spot in images taken from rear camera?

    My iPhone 5 have purple spot in images taken from rear camera. I just noticed the issue in my phone today.
    I researched online and some people also have the same issue and have their phone replaced in Apple shops.
    I don't have any receipt or store warranty card since it was just given to me as a gift in the Philippines last April 2013, I checked the warranty coverage status (https://selfsolve.apple.com/agreementWarrantyDynamic.do) and it still has repair and service coverage.
    Im now here in Dubai, and my question is that will Apple Premium Reseller shops here in Dubai honor the said warranty and have my iPhone repaired or replaced?

    Im now here in Dubai, and my question is that will Apple Premium Reseller shops here in Dubai honor the said warranty and have my iPhone repaired or replaced?
    No.
    The warranty for an iPhone purchased from an official source in the Philippines will be honored in the Philippines only.

  • I have uploaded raw and jpeg files directly from my camera to my iPad (latest version) I have processed them in snapseed and want now to transfer back to my pc for further processing. How can I do this will a flash drive work?

    I have processed my raw and jpeg files on my iPad using Snapseed . What format are they saved in on the iPad and how do I transfer them back to my pc where I use photoshop elements. Can I use just an ordinary flaws drive with the USB adaptor? Thanks any help would be appreciated.
    Lynne

    The camera connection kit can only be used to import photo/video files form a camera, SD card or USB flash drive. You can't import other types of files. You can't export any type of files using the camera connection kit.
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • Duplicate photos - I get two everytime I upload from my camera

    Hi all,
    I've seen a variety of posts about duplicate photos in iPhoto and I am a bit confused. We have thousands of photos on our iMac in different user accounts. I know some are duplicates as various family members want their "copy" in their account. I would think we could put them in a "Shared" folder or some such but don't know how as yet. Anyway, the main question is, when I upload photos from my digital camera I get to files on my iMac. One is a large file and the other is like a 320x640. I assume iPhoto is generating a thumbnail and a full size as two separate files? Why???? Does it need both to function? I deleted some of the smaller files and then found they don't show up in the events folder anymore. Anyway, I need help managing my photos for sure. Thanks for the help and patience with a new iMac user.

    Welcome to the Apple Discussions.
    I assume iPhoto is generating a thumbnail and a full size as two separate files? Why????
    It's the nature of the beast. The thumbnail file is an essential part of the library for viewing as smaller sizes than full size. By deleting them you've committed the cardinal sin of iPhoto - modifying the contents of the iPhoto Library package from the package.
    You may be able to rebuild the thumbnail file by launching iPhoto with the Command+Option keys depressed to rebuild the library. Select all options.
    Click to view full size

  • Is Java ME capable to edge detect images taken from phone camera??

    I need help with creating a working edge detection method. At the moment as it stands I have the edge detection algorithim and have transformend it into code but I cannot see why it keeps returning a blue screen, Can Anyone tell me what I am doing wrong and how to fix it::
    public Image edgeDetect(Image colourImg){
              int width = colourImg.getWidth();
             int height = colourImg.getHeight();
             int[] imageDataX = new int[width* height];
             colourImg.getRGB(imageDataX, 0, width, 0, 0, width,height);
             Image greyImg = Image.createImage(width,height);
             Graphics g = greyImg.getGraphics();
             int[] soblex = {-1, 0, 1, -2, 0, 2, -1, 0, 1};
             int dooplex = 0;
             int dooplex1 = 0;
             int dooplex2 = 0;
             int doople = 0;
             int doople1 = 0;
             int doople2 = 0;
             int count = 0;
             int[] sobley = {1, 2, 1, 0, 0, 0, -1, -2, -1};
             int doopley = 0;
             int doopley1 = 0;
             int doopley2 = 0;
             int count2 = 0;
             for(int y=1; y<height-1;y++){
                 for(int x=1;x<width-1;x++){
                      if(doopley == 0 || doopley ==height-1){doople = 0;}
                      else if (dooplex == 0 || dooplex == height-1){doople = 0;}
                      for(int q = -1; q<=1; q++){
                           for(int r= -1; r<=1; r++){
                                int c = imageDataX[((q+y)*width+(x+r))];
                                int redx = (c&0x00FF0000)>>>16;
                                int d = imageDataX[((q+y)*width+(x+r))];
                                int bluex = (d&0x0000FF00)>>>8;
                                int e = imageDataX[((q+y)*width+(x+r))];
                                int greenx = e&0x000000FF;
                                dooplex +=  redx * soblex[count];
                                dooplex1+=  bluex * soblex[count];
                                dooplex2+=  greenx * soblex[count];
                                int f = imageDataX[((q+y)*width+(x+r))];
                                int redy = (f&0x00FF0000)>>>16;
                                int G = imageDataX[((q+y)*width+(x+r))];
                                int bluey = (G&0x0000FF00)>>>8;
                                int h = imageDataX[((q+y)*width+(x+r))];
                                int greeny = h&0x000000FF;
                                doopley += redy * sobley[count2];
                                doopley1+= greeny * sobley[count2];
                                doopley2+= bluey * sobley[count2];
                                count++;
                                count2++;
                      count= 0;
                      count2=0;
                      //MainMenu.append(" / " + doople);
                      //MainMenu.append(" / " + doople1);
                      //MainMenu.append(" / " + doople2 + "\n/*********/\n/********/");
                      doople = Math.abs(doopley)+ Math.abs(dooplex);
                      doople1 = Math.abs(doopley1)+ Math.abs(dooplex1);
                      doople2 =Math.abs(doopley2)+ Math.abs(dooplex2);
                      doople = (int)Math.sqrt(doople);
                      doople1= (int)Math.sqrt(doople1);
                      doople2 = (int)Math.sqrt(doople2);
                      //MainMenu.append(" / " + doople);
                      //MainMenu.append(" / " + doople1);
                      //MainMenu.append(" / " + doople2 + "\n/$$$$$$$$$/\n/$$$$$$$$/");
                      if(doople>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(doople, doople1, doople2);
                      if(doople1>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople1<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(doople, doople1, doople2);
                      if(doople2>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople2<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      dooplex = 0;
                      dooplex1 = 0;
                      dooplex2 = 0;
                      doopley = 0;
                      doopley1 = 0;
                      doopley2 = 0;
                      doople = 0;
                      doople1 = 0;
                      doople2 = 0;
                      imageDataX[y*width+x] = g.getColor() & 0xFFFFFFFF;
             greyImg= Image.createRGBImage(imageDataX,width,height,false);
             return greyImg;
         }I think that the problem lies in the two areas where I take the RGB information from the pixel and try to put them back into an graphics that later get turned into an Image::
    g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ffand
    for(int q = -1; q<=1; q++){
                           for(int r= -1; r<=1; r++){
                                int c = imageDataX[((q+y)*width+(x+r))];
                                int redx = (c&0x00FF0000)>>>16;
                                int d = imageDataX[((q+y)*width+(x+r))];
                                int bluex = (d&0x0000FF00)>>>8;
                                int e = imageDataX[((q+y)*width+(x+r))];
                                int greenx = e&0x000000FF;
                                dooplex +=  redx * soblex[count];
                                dooplex1+=  bluex * soblex[count];
                                dooplex2+=  greenx * soblex[count];
                                int f = imageDataX[((q+y)*width+(x+r))];
                                int redy = (f&0x00FF0000)>>>16;
                                int G = imageDataX[((q+y)*width+(x+r))];
                                int bluey = (G&0x0000FF00)>>>8;
                                int h = imageDataX[((q+y)*width+(x+r))];
                                int greeny = h&0x000000FF;
                                doopley += redy * sobley[count2];
                                doopley1+= greeny * sobley[count2];
                                doopley2+= bluey * sobley[count2];
                                count++;
                                count2++;
                         }Thankyou in advance

    ...it keeps returning a blue screen...
                      if(doople>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(doople, doople1, doople2);
                      if(doople1>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople1<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(doople, doople1, doople2);
                      if(doople2>=255)
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
                      else if (doople2<=0)
                      {g.setColor(0&0x00ff0000<<16, 0&0x0000ff00<<8, 0&0x0000ff);
                      else
                      {g.setColor(255&0x00ff0000<<16, 255&0x0000ff00<<8, 255&0x0000ff);
    as far as I understand, above code is equivalent to:
                      if(doople>=255)
                      {g.setColor(0, 0, 0xff); // blue
                      else if (doople<=0)
                      {g.setColor(0, 0, 0xff); // blue
                      else
                      {g.setColor(doople, doople1, doople2);
                      // no matter what was above, color will be defined below:
                      if(doople1>=255)
                      {g.setColor(0, 0, 0xff); // blue
                      else if (doople1<=0)
                      {g.setColor(0, 0, 0xff); // blue
                      else
                      {g.setColor(doople, doople1, doople2);
                      // no matter what was above, color will be defined below:
                      if(doople2>=255)
                      {g.setColor(0, 0, 0xff); // blue
                      else if (doople2<=0)
                      {g.setColor(0, 0, 0xff); // blue
                      else
                      {g.setColor(0, 0, 0xff); // blue
    //......which in turn is equivalent to:
                            // no matter what was set above, color will be defined below...
                      if(doople2>=255)
                      {g.setColor(0, 0, 0xff); // blue
                      else if (doople2<=0)
                      {g.setColor(0, 0, 0xff); // blue
                      else
                      {g.setColor(0, 0, 0xff); // blue
    //......which finally becomes g.setColor(0, 0, 0xff); // blue

  • How to compare two select quieres parallelly from 2 different Dbs(pls help)

    I have tried doing it from my previous question :
    pls look at this link and help me with parallelly looping 2 different databases :-
    http://forums.sun.com/thread.jspa?threadID=5368358&messageID=10620723#10620723
    i am attaching the code i wrote to achieve it , but i know i am not right in looping : pls help me with this :-
    Query ABC Oracle database with the following:
                   ResultSet resultSet = statement.executeQuery("select sno,Description" +
                                             "from TableA ");
                   while(resultSet.next()) {
                        SerialCode= resultSet.getString(1);
                        Description= resultSet.getString(2);
                        newcode= Integer.parseInt(SerialCode);
    //               Query DEF Sybase database with the following:
              ResultSet resultSet1 = statementsyb.executeQuery("select Type,Text from TableB");                                                                            
                   while(resultSet1.next()) {
                             TypeCode = resultSet1.getInt(1);
                             TextDescription = resultSet1.getString(2);
                             if ((newcode == TypeCode) && (Description.equals(TextDescription))) {
                            }else if ((newcode == TypeCode) && (!(Description.equals(TextDescription))){
    //                       Prepare a statement to update the record
                                       String Sql = ("UPDATE TableB SET TextDescription = ' " + Description + " ',Abrevation = ' " + Description.substring(0,20) + "', " + .......................");
    //                       Execute the update Statement
                                       Count_updatedDescription_DEF = statementsyb.executeUpdate(Sql);
                            }else if (newcode > TypeCode) {
    //                       Prepare a statement to insert a record
                                       String Sql1 = ("INSERT INTO TableB(............) " +
                                                 "VALUES(...............)");
    //                       Execute the insert statement
                                       Count_NewType_DEF = statementsyb.executeUpdate(Sql1);
                            }else if (newcode < TypeCode) {
    //                       Prepare a statement to delete a record
                                      String Sql2 = ("DELETE from TableB where Type> '" + newcode + "'");
    //                       Execute the delete statement
                                      Count_DeletedType_DEF = statementsyb.executeUpdate(Sql2);
    //                       Prepare a statement to insert a record
                                      String Sql3 = ("INSERT INTO  TableB ...........");
    //                            Execute the insert statement
                                  Count_NewType_DEF = statementsyb.executeUpdate(Sql3);
                   resultSet1.close();
                   resultSet.close();
    {code}
    pls help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Please continue the conversation in your original thread: [http://forums.sun.com/thread.jspa?threadID=536835]
    Thanks!

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    My daughter's older Ipod Touch is having a problem with images becoming pixilated when taken from an e-mail and placed into her camera roll. ( She wants to put on Instagram ) Any help?

    I think that may be a consequence of the email provider she is using. Some services (AOL is one example) inspect and modify email attachments, particularly photos, resulting in reduced resolution compared to the email that was sent.
    The iPod does not do this. The resolution of the picture in the email she receives will be identical to what is imported.

  • Raw files from second camera being converted to JPEG first.

    I started using two cameras recently.  My raw files from the Rebel T2I upload as raw files which is great.  But my raw files from the Rebel XS are being converted to JPEG when uploaded.  How do I correct this?  I want the raw files to upload.

    Or the camera is shooting RAWJPG and LR is accidentally hiding the RAW instead of the JPGs, like it did with another camera recently.  This can be diagnosed and remedied by enabling the LR setting to treat RAWJPG as separate files.
    Or the camera is set to point-to-point instead of mass-storage mode for the USB (or some driver is installed and doing the same thing) and the OS or a Canon codec is converting the files to JPG on the fly as they are read from the camera.   This probably can be diagnosed and avoided by using a card-reader and examining the files on the card to make sure they are raw and transferring them with Explorer or Finder to the hard-drive and doing an Add import instead of using LR to do the transfer.

  • I can not synchronize the videos taken with my camera from my PC to IPad

    Hello everybody, I have a problem, I can not synchronize the videos taken with my camera from my PC to IPad (sorry, in my last question I put iPhone but is iPad )

    Are they in a compatible format ? The iPad natively supports (from here)
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    If your camera's videos aren't in any of those formats then you will either need to find a third-party app that doesor a PC program that can convert them prior to syncing. If you can get them into your computer's iTunes via File > Add To Library but they don't sync, then have you tried Advanced > Create iPad Version and then syncing those versions ?

  • Is it possible to have two USB drives for the IPad?  I want to bring RAW photo files from my camera, through the IPad and back to an external hard drive.  One of my cameras does not use an SD card.  How can I do this?

    Is it possible to have two USB drives for the IPad?  I want to bring RAW files from my camera through the IPad and out to an external hard drive.  One of my cameras has an SD card but the other one doesn't have a card that would fit in any of the camera devices I've seen on line.  Realted to this, I bought the IPad camera accessory.  Can I put the SD card in the device and also hook the external hard drive to the USB port of the accessory and download from the camera to the hard drive?  Can I put Lightroom or the Nikon photo editing software on the IPad?  Right now I carry a PC laptop and external hard drives with me on wildernes trips.  Internet and WiFi are not available.  Because I shoot so many photos and they're in RAW I need to download from the camera to the external drive because I run out of memory on the PC (and it has much more memory than the IPad).  I have Nikon NX software and lightroom on my PC.  I'd love to be able to reduce the weight I carry by using the IPad to edit my photos each night while on trips.  Is this possible and how would I do it?  I'd appreciate any guidance.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • How do I add photos to the camera roll that were not taken on my iPad? I imported photos to my iPad from my camera, and now I want to add them to my camera roll which is sync'ed with Dropbox as a back up mechanism.

    How do I add photos to my camera roll that were not taken one my iPad? I have iMported photos from my camera to my iPad. Theses photos are in the imported photo album. I want to move these photos to my camera roll but can't figure out how to this. I want them in my camera roll because that is the album that syncs with Dropbox where I want to backup my photos. Thank you for your help.

    Consider using sshfs to mount your Pi from your Linux boxes.  It's much easier to configure and manage than samba.  It sounds like you already have your Windows machines mounting your Pi so Samba is doing its job in that respect.
    More info on sshfs in the Wiki: https://wiki.archlinux.org/index.php/Sshfs
    To help get you off the dime, here's a modified line from my fstab that I use to mount my Pi with:
    gav@PI:/mnt/backup /mnt/rpi/backup fuse.sshfs rw,relatime,user_id=0,group_id=0,allow_other 0 0
    Subsitute my mount points with yours.
    For a password-less mount:
         ssh-copy-id gav@PI
    after you've set up ssh and generated some keys on your client box.
    Here are some relevant lines from the smb.conf file on my Pi that I use for my one Windows box in the house that might help you with your write permissions:
       security = user
      hosts allow = 192.168.1.0/255.255.255.0
      guest account = gav
    ; And my share setup:
    [rpi]
       comment = Public Stuff
       path = /mnt
       writable = yes
    ;   printable = no
    ;   write list = @krb
    [torrent_dl]
       path = /mnt/video/torrent_dl
       writable = yes
       create mask = 0770
       directory mask = 0770
       guest ok = Yes
       case sensitive = No
       read only = No
    Hope this helps.

  • I have just went to the Apple Retail Store and purchased an HDMI adapter that plugs into the bottom of my iPhone 4. When I asked the sales person if I could watch the videos and pictures from the camera roll I have taken on a T.V. he said I could.

      I have tried to watch the videos and see the pictures from my iPhone's camera roll on a televison but it is not working. It is like nothing is connected to the T.V. set. I have tried with cables that attach to the bottom of the iPone. I have used an HDMI cable and a component cables on two seperate Televisions. How is it supposed to work.
    I plugged the HDMI cable into the HDMI #4 jack into the T.V. and turned on the iPHone and watched the camera roll on the iPhone bu tnothing appears on the T.V. screen. What would have to be adjusted to view the pictures from the camera roll on the T.V. screen. The same thing happend when I used "Composite to iPhone" cables to a different T.V.  I even tried with and iPhone 3GS, still no display on the T.V. screen.

    Warranty on iPhone is not international, but valid only in country of
    original sale. Since you purchased the iPhone in Australia, your warranty
    is valid only in Australia. You must either personally return the iPhone
    to Australia for evaluation and possible replacement or sent it to someone
    in Australia to take into Apple for the evaluation. Apple will not accept
    international shipments for repair nor will Apple ship out of the country
    after replacement.
    Sorry to be the bearer of this news, but it is the way iPhone warranty and
    replacement has always worked.

Maybe you are looking for