Announcement

Collapse
No announcement yet.

New uCam-II Arduino library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mansoor
    replied
    Hi. i found the following libraries to capture raw image. kindly if you can guide me how to access it using the C code.
    Attached Files

    Leave a comment:


  • mansoor
    replied
    Oh means i need to write some thing for RAW images.
    well most of the Wireless sensor implementation is done on arduino that's why i preferred it (do you have any other suggestions).
    I will use SD card to store the data on arduino and then do all the processing.

    Leave a comment:


  • ESPsupport
    replied
    The library seems to have no support at all for RAW images, so you will have to do this yourself.

    Again I wonder why Ardiono?

    If you are going to compress the image using your own algorithm where are you going to store it whilst you are compressing it?

    You wont be able to compress and transmit 'on the fly', Arduino just doesn't have the grunt

    Leave a comment:


  • mansoor
    replied
    I change the jpeg commands in the library with the raw commands and got the above output, whatelse i need to change.
    Actually i am using arduino because i want to design a proto type of Visual sensor network and arduino fit well for it.
    i have to test my compression scheme (power and transmission time), so for that first i need a raw image than i will apply my compression scheme on it and finally i will be transmitting it using xbee. That is what i am into.

    Leave a comment:


  • ESPsupport
    replied
    I can't see what sort of image you were requesting in that file, it just seems to log received information.

    Regardless, the protocol is different for RAW images, it looks like the library you have does not have code to receive RAW images.

    Can I ask why you are using Arduino? It hasn't got a display, so there's not much you can do with an image on it, I wouldn't have thought

    Leave a comment:


  • mansoor
    replied
    I tried to setup the camera to send RAW images by using the commands provided in the datasheet. The code seems to be working but i am not sure whether the output is a raw or not. Other than that i am not getting the complete output after few bytes transferred the transmission stops. Any ideas why?
    Following is the output.
    Attached Files

    Leave a comment:


  • ESPsupport
    replied
    You need to set up the camera to send RAW images. You should be able to find the relevant commands in the camera's datasheet

    Arduino does not have the RAM to decode JPEGS or the speed to decode JPEGS in any reasonable period of time.

    Leave a comment:


  • mansoor
    replied
    One more thing this output is jpeg. if i want a raw output how can i get it????
    Last edited by mansoor; 13th October 2015, 08:34 PM.

    Leave a comment:


  • mansoor
    replied
    Thanks for the great support and effort. this is a great forum for new ones to learn from great peoples.
    Thanks

    Leave a comment:


  • James_4DSystems
    replied
    Again... we didnt write the library...

    In the github from the guy that did, he has a hex-to-bytes.py file.
    That looks to make a JPEG from the hex.
    How to use it, I have no idea.

    You are best to contact the author.

    Leave a comment:


  • mansoor
    replied
    Thanks for the modified library and demo. I tried it out and it seems working for me at last.
    How can i convert the hex code to image to check whether the output is correct or not

    Leave a comment:


  • James_4DSystems
    replied
    Debug off in this output, looks more usable
    Attached Files

    Leave a comment:


  • James_4DSystems
    replied
    4D does not have a library for the uCAM-II to an Arduino. The library was provided by a customer.
    This is a modification of the library in the first post of this thread from another Customer. I have changed it forcing the Camera on to Serial1 using 57600 baud, and Debug output to Serial so it goes to the Arduino IDE monitor at 57600 baud.

    Attached is my output, along with the modified library and the demo I tried. Demo is located inside the library.

    See if that works for you.
    Again - this is NOT our library. Very difficult for us to support something that we didnt write.

    Regards
    Attached Files

    Leave a comment:


  • mansoor
    replied
    oh thats not your library. I was thinking its your new library thats why i was trying to work it on. Kindly if you have the arduino code along with your library provide it to me and i will work on it.

    Leave a comment:


  • James_4DSystems
    replied
    Well you are part way there, but you cant write Serial.print stuff to the same serial port as what you will be writing to the camera, as the camera cannot understand what you write in plain text.

    Just hacking this library, give me a few minutes.

    Remember, this is not our library, we didnt write it.

    Leave a comment:

Working...
X