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

BufferedImage method is not found in Framegrabber class #363

Closed
vijay0850 opened this issue Jul 7, 2015 · 3 comments
Closed

BufferedImage method is not found in Framegrabber class #363

vijay0850 opened this issue Jul 7, 2015 · 3 comments
Labels

Comments

@vijay0850
Copy link

I'm try with JavaCv So I created the needed class from our code in github

For JavaCvDevice.Java I'm facing the following issue,

  1. method getBufferedImage() cannot found in Frame class

I tried to convert the frame to buffer it also not working it shows

2, incompatible types: Frame cannot be converted to BufferedImage

Code:-

public BufferedImage getImage() {

        if (!open) {
            throw new WebcamException("Cannot grab image - webcam device is not open");
        }

        try {
            return grabber.grab().getBufferedImage();

                       /* Buffer  = grabber.grab();

                            return Buffer; */

        } catch (Exception e) {
            throw new WebcamException("Cannot grab image...");
        }

Due to this issue I'm not able to get the image from webcam So please help me to fix this thing.

Thanks in Advance

@sarxos
Copy link
Owner

sarxos commented Jul 7, 2015 via email

@sarxos
Copy link
Owner

sarxos commented Jul 13, 2015

@vijay0850,

I see. you are using javacv-1.0 and the code I was basing on was javacv-0.8. I suppose I should migrate to newer version already. I will let you know when the code is ready. For the time being there is no other solution than downgrading dependency to 0.8 and use it together with existing solution.

@sarxos sarxos closed this as completed in 802311f Jul 13, 2015
sarxos added a commit that referenced this issue Jul 13, 2015
@sarxos
Copy link
Owner

sarxos commented Jul 13, 2015

Hi @vijay0850,

The code is ready and available in SNAPSHOT version from Sonatype repo (please make sure to make use of the newest JAR).

https://oss.sonatype.org/content/repositories/snapshots/com/github/sarxos/webcam-capture-driver-javacv/0.3.11-SNAPSHOT/

@sarxos sarxos added the bug label Jul 13, 2015
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

2 participants