Results 1 to 2 of 2

Thread: serialization

  1. #1
    elsa14290 is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default serialization

    Hi,
    Am trying to do a project on text extraction from images (ocr) in java. If anybody could help me in this, it would be of great help.
    At present am planning to do the training using kohonen network. using a gui, image of each character is added in the text field and trained. But i want to serialize the added data, so that i need not add it a second time later.
    would u please provide me with the code so that i could serialize the data once trained.
    plus if anyone could help me with the ocr project, it would be a greater advantage.
    thanx

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    well, would all the images always fit into available memory ? Such as would a kind of database be useful if there are more data than available memory ?

    In general, to serialize an object, the object needs to implement the Serializable interface. One thing to remember is that every object in the structure to be serialized must be serializable.

    And then use an ObjectOutputStream to serialize the object out to [the file], ObjectInputStream to read it back in.

    I like the old serialization discussion here: Discover the secrets of the Java Serialization API

Similar Threads

  1. Serialization
    By thayalan in forum Advanced Java
    Replies: 4
    Last Post: 08-03-2009, 10:22 PM
  2. Serialization
    By vijay24805 in forum Threads and Synchronization
    Replies: 1
    Last Post: 04-10-2009, 09:16 PM
  3. about serialization
    By bishnu in forum New To Java
    Replies: 0
    Last Post: 12-19-2008, 09:13 AM
  4. Need help using serialization
    By xcallmejudasx in forum New To Java
    Replies: 0
    Last Post: 12-02-2008, 08:23 PM
  5. Replies: 0
    Last Post: 04-04-2008, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •