Solved

Connect to IP Camera using Java

Posted on 2016-08-19
4
110 Views
Last Modified: 2016-08-20
Hello there,

How can I connect to a IP camera and get its live view from Java.

cheers
Zolf
0
Comment
Question by:zolf
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Dr. Klahn
ID: 41763510
IP camera protocols are tightly dependent on the camera model and manufacturer.  There's no universal or even widely accepted standard, so every manufacturer does what they think looks best and it varies all over the place.  See the manufacturer and camera list for the open-source ISpy product to get an idea of the magnitude of this issue.  Some stream binary, some stream in browser-compatible formats and some are proprietary.

imo, this can be done if you know the specific protocol for the specific camera and manufacturer ... but it'll be a one-off solution, and it will soon become obsolete when the manufacturer stops making that specific camera or upgrades the firmware.
0
 

Author Comment

by:zolf
ID: 41763535
Thanks for your feedback. The camera I am using is SICK Lector620OCR.
0
 
LVL 23

Accepted Solution

by:
Dr. Klahn earned 500 total points
ID: 41763923
Unless the manufacturer will release the protocol specifications to you, you'll have to reverse-engineer the camera communication protocol.  Some manufacturers will release that information and some won't, and since you'll have to start with their customer support it might be difficult getting connected to a software engineer who can tell you what you need to know.

Reverse-engineering the camera communication protocol is tedious, but not overly difficult.  It can be done by loading network monitoring software on a separate PC on the network and setting that system to monitor all traffic (both TCP and UDP) to and from the camera.  Then look over the traffic as packets and reverse-engineer the protocol.  (It may take a couple of weeks to figure out the necessary commands and what the camera is returning.)  At that point you'll have the information necessary to write a Java applet that talks to the camera.
0
 

Author Closing Comment

by:zolf
ID: 41764057
cheers
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now