Project

General

Profile

Help required in getting VISICAM to work under Windows 7 32 bit

Added by depronman almost 10 years ago

Hi All,
Due to the problems with the 'Jog' and the 'origin' not working correctly, Peter pointed Me in the direction of Visicam as a solution, and it does appear from reading up on Visicam that it would be helpful in knowing where to 'place' items in Visicut such that they are cut from available stock on the laser bed.

However after many hours of trying I have not been able to get Visicam to work. Does anyone have a 'step by step' for setting up Visicam, or at least a list of the programs that are required ?

What I have done so far -
From Github https://github.com/t-oster/VisiCam

1) Download and install Microsoft Visual C++ 2010 Redistributable Package (x86) http://www.microsoft.com/download/en/details.aspx?id=5555

2) Download OpenCV from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.3/OpenCV-2.4.3.exe/download

3) Add either the build/vc10/bin folder to PATH or copy all the dlls to the VisiCam folder
I'm not 100% sure what is meant by the 'Path' in Windows, but I copied all the DDL's from the OpenCV build/vc10/bin folder into the Visicam folder

Now I'm stuck - what do I do next ???

Any help MUCH appreciated
Best regards,
Paul


Replies (9)

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by Springuin almost 10 years ago

Haven't done this myself but according to what's written on the github page in easier to understand wording:
- Install apache-ant, java jdk version 6 or higher
- Make a folder on you harddrive for VisiCam.
Open a command window and enter:

cd [folder you just created]
git clone https://github.com/t-oster/VisiCam (or unpack the zipfile you get when you click "Download zip" on github)
cd VisiCam
ant jar
java -jar dist/VisiCam.jar

That should do it.

edit: PATH in windows is the PATH environment variable. See http://www.java.com/en/download/help/path.xml

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by depronman almost 10 years ago

thanks for the response
When you say open a command window and enter : I assume this is by typing CMD in the 'search programs and files' from the Start button

Assuming this is correct, I have got to the point of C:\visicam> (visicam being the folder that I created on my hard drive)

when I then enter git clone https://github.com/t-oster/VisiCam I get 'git' is not recongnized as an internl or external command, operable program or batch file.

I'm stuck now, please help :)

Paul

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by Springuin almost 10 years ago

When you say open a command window and enter : I assume this is by typing CMD in the 'search programs and files' from the Start button

Yes.

Assuming this is correct, I have got to the point of C:\visicam> (visicam being the folder that I created on my hard drive)

Good.

when I then enter git clone https://github.com/t-oster/VisiCam I get 'git' is not recongnized as an internl or external command, operable program or batch file.

So you don't have git or you do have it but the folder of git.exe is not in your path. No problem. If you want to develop it's best to install git but if you just want it to work download https://github.com/t-oster/VisiCam/archive/master.zip

This is a zipped snapshot of the current master of VisiCam. Unzip the files and continue with "ant jar" in the folder where build.xml lives.

Make sure the folder where ant.exe is is part of your path.

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by depronman almost 10 years ago

Hi,
Still got problems (my lack of knowledge I'm afraid)

I have downloaded the folder visicam-master from github and unzipped it OK

when I then run CMD and type ant jar I get 'ant' is not recognized ........

i'm totally lost now

Paul

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by Springuin almost 10 years ago

If you don't have ant yet, get it from here: http://mirror.cogentco.com/pub/apache//ant/binaries/apache-ant-1.9.4-bin.zip and extract it somewhere

Add the full path of bin directory (like C:\visicut\ant\bin) to the PATH environment variable. Ant should work now.

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by depronman almost 10 years ago

some good progress made :)

ant jar resulted in a 'Build Successful' message total time : 11 seconds

so I then CD dist

C:\VisiCam-master\dist>

I then entered visicam.jar

a JAVA screen appeared VisiCam
VisiCam server is started and can be reached under:
http:\\192.168.0.20:8080 OPEN QUIT

Log:
Responding to discovery packets on UDP:8888

CLEAR

so I clicked the OPEN Button and Chrome browser opened a new tab with -
INTERNAL ERRROR: serveFile(): given homeDir is not a directory.

I'm stuck again now

Many many thanks for all you help today, it is much appreciated
Paul

I had another go this morning and realised that I had missed a - when 'running' visicam from CMD

now in the CMD window I get errors see attached file and chrome opened with a much more promising tab see attached file

Still need help in resolving the errors :)

best regards,

Paul

visicam error.PNG (67.7 KB) visicam error.PNG CMD error
chrome.PNG (84.8 KB) chrome.PNG Browser response
hs_err_pid4788.log (31.2 KB) hs_err_pid4788.log error log file

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by Springuin almost 10 years ago

That looks like a problem of some sort in openCV, the java code calls something from the opencv library, which tries to do something with an uninitialized pointer and then it breaks. I don't know how to fix that. Maybe someone else has a clue?

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by Springuin almost 10 years ago

Well, this is interesting. I tried to compile VisiCam, that worked fine. Running not so much. It works when run from the root folder using java -jar "dist/visicam.jar".
When opening the webpage and reloading the whole page I get errors but when reloading only one of the images at a time it works. It may not be completely the same because I'm on linux with openjdk but I've seen the same kind of error as in your hs_err_pid file. Maybe you need to fiddle a bit until it works.

RE: Help required in getting VISICAM to work under Windows 7 32 bit - Added by depronman almost 10 years ago

can you point me in a direction to fiddle, I've no idea where to go from here

Cheers,
Paul

    (1-9/9)