Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API running on Raspberry #140

Closed
juniorfarrapo opened this issue Aug 31, 2013 · 8 comments
Closed

API running on Raspberry #140

juniorfarrapo opened this issue Aug 31, 2013 · 8 comments
Labels

Comments

@juniorfarrapo
Copy link

Hello @sarxos ,
I am a student of Computer Engineering and am using its API in a university project.
Efetuei tests using its API in Raspbian all successfully.
Both for linux based on armel and amrhf.
To make it work you must install the linux library libv4l and extract the archive webcam-capture-0.3.10-RC4.jar and go to the directory / webcam-capture-0.3.10-RC4-dist/webcam-capture-0.3. 10-RC4/com/github/sarxos/webcam/ds/buildin/lib / case and get the file for the linux OpenIMAJGrabber.so used in raspberry pi.
I'm currently using Raspbian and OpenJDK7, OpenIMAJGrabber.so put the file together with the files of my project and after that I had no more problems with the raspberry. Efeituei tests in raspbian (armel) and arch linux (armhf) all successfully but the performance of my software was better in raspbian.
I'm posting this just for you to update the list of compatible systems on your website and thank you for this wonderful API.

@juniorfarrapo
Copy link
Author

I almost forgot, the API works perfectly on Windows 7 32 and 64 bit, Windows 8 32 bit and 64 bit Ubuntu 12.10 32 bit and 64 bit and Ubuntu 13.04 32 bit and 64 bit. For these operating systems do not need to file OpenIMAJGrabber.so extracted from the library, it is generated automatically during program startup that everyone uses, can usually be found in the temporary folder OpenIMAJGrabber.so during the execution of the API program.

@sarxos
Copy link
Owner

sarxos commented Aug 31, 2013

Hi,

Thank you for these wonderful information :)

I'm a little bit surprised that one have to extract OpenIMAJGrabber.so on Raspberry... Will need to investigate this issue once I'm back from the vacation.

I will update the list of compatible operating systems soon XD

Cheers!

@juniorfarrapo
Copy link
Author

Well, if you do not extract the OpenIMAJGrabber.so not install the package libv4l gives the following errors in the images (these images I captured a month ago when he was "head banging" to solve this bug). There is no camera detected and the software can not generate OpenIMAJGrabber.so.
2013-07-16-142508_1440x900_scrot
2013-07-16-142629_1440x900_scrot
2013-07-16-143214_1440x900_scrot
2013-07-16-143227_1440x900_scrot

@He-Pin
Copy link

He-Pin commented Sep 27, 2013

@juniorfarrapo running on pi is ok,but so slow via USB.I have did the same thing just like you .

@sarxos
Copy link
Owner

sarxos commented Oct 14, 2013

Hi guys!

Great news! I know I should do this long time ago, but from now on there is no need to extract OpenIMAJGRabber.so from the JAR. It will be extracted automatically via the BridJ API. Just checked it on my RasPi armhf and it works great!

The fix is available in webcam-capture-0.3.10-RC5

IMPORTANT NOTE!
Before you use new version please make sure to remove old OpenIMAJGrabber.so file from the filesystem.

I think it's the right time to release new official version to Maven Central :)


UPDATE!!! Please ignore the above! 0.3.10-RC5 does not contain the fix I mentioned. It will be available in 0.3.10-RC6. I'm really sorry for the confusion.

@sarxos sarxos closed this as completed Oct 14, 2013
@sarxos
Copy link
Owner

sarxos commented Oct 14, 2013

Hi, please hold on. I found that I didn't include the fix I mentioned above in the 0.3.10-RC5. Will release 0.3.10-RC6 and let you know ASAP.

I'm sorry for making you confused.

@sarxos sarxos reopened this Oct 14, 2013
@sarxos
Copy link
Owner

sarxos commented Oct 14, 2013

Ok, I'm really sorry for making confusion, but finally I deployed new Release Candidate (RC6) which contains the *.so extraction fixes I mentioned in the previous post.

Webcam Capture 0.3.10-RC6 binaries can be found here:

Maven dependency:

<repository>
    <id>SarXos Repository</id>
    <url>http://www.sarxos.pl/repo/maven2</url>
</repository>
<dependency>
    <groupId>com.github.sarxos</groupId>
    <artifactId>webcam-capture</artifactId>
    <version>0.3.10-RC6</version>
</dependency>

@sarxos sarxos closed this as completed Oct 14, 2013
@juniorfarrapo
Copy link
Author

Very good, I am without my Raspberry Pi this time but I took the test in Elementary Linux OS, which previously had to extract the files and now I don't need more. Great job. Thank you.

@JanJansen47
Copy link

I confirm web cam capture runs on raspberry But it is not stable in my opion.. After several ( 8 or more) hours the one cam example dies. (the program capatures an image each minute)
Also tried an example with two cam's but this does not run. I have opened en closed camera's to check whether this would improve the situation with two cam's but it does not. Both cam's are nicely recognized but that's all.
Do others share this experience or are I the only one?
Oracle 8 and latest wheezy version installed and updated.

@JanJansen47
Copy link

Forgot to mention that both jar's (single camera / two camera's) run very well on an Ubunto system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants