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

OpenCV Mat and JavaCV Mat #32

Closed
abidengruet opened this issue Aug 25, 2014 · 7 comments
Closed

OpenCV Mat and JavaCV Mat #32

abidengruet opened this issue Aug 25, 2014 · 7 comments

Comments

@abidengruet
Copy link

I cannot copy Opencv Mat to Javacv Mat. When i Do so it gives error! Is it possible ?? And if it is how would i do this??

@saudet
Copy link
Member

saudet commented Aug 25, 2014

bytedeco/javacpp#4

@saudet saudet closed this as completed Aug 25, 2014
@saudet
Copy link
Member

saudet commented Aug 25, 2014

BTW, could you explain what is missing from JavaCV that you need to use OpenCV's wrappers?

@abidengruet
Copy link
Author

Actually Sir Android Camera Object is not working right! So i am using the
Opencv camera Object. I have problems with Android Camera Objects . i dont
know what is the proper way of converting JavaCV byte[] to Mat while
Opencv CameraListener gives Mat Object directly.

On Mon, Aug 25, 2014 at 3:54 PM, Samuel Audet [email protected]
wrote:

BTW, could you explain what is missing from JavaCV that you need to use
OpenCV's wrappers?


Reply to this email directly or view it on GitHub
#32 (comment).

@saudet
Copy link
Member

saudet commented Aug 25, 2014

What kind of error do you get when trying to use the Android camera?

@abidengruet
Copy link
Author

Actually i want to convert byte[] to Mat object!

PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {

}

@saudet
Copy link
Member

saudet commented Aug 25, 2014

Just use Mat.data().put(byte[]):
http://bytedeco.org/javacpp-presets/opencv/apidocs/org/bytedeco/javacpp/opencv_core.Mat.html#data%28%29

@abidengruet
Copy link
Author

thanks

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

No branches or pull requests

2 participants