Closed kejriwalnishant1990 closed 9 years ago
Thanks for checking. Yes, but compress image not finish. If you can, and it help me a lot, To update the Wiki, and Here ReadMe file.
Need still to investigate why the step is not calculate correctly on msgs. you can look on it if you like and sumbit a patch.
I will definitley update wiki page and ReadMe file.
Thanks :) :+1:
I want to change graphical interface in android_10 library. is it possbile to do in your code?
It not my code. It android core code. you will need to re-compile it.
Why u have used JavaCameraView in main.xml?
You can delete this. It from old code. If it ok, i will remove it myself.
I want to display subscribed image in my phone. Is it possible? I tried using ImageView but it is throwing error OpenCV_for_Tegra﹕ Cannot create OpenGL context
I am using this code:
Bitmap bmp = null;
bmp = Bitmap.createBitmap(cvImage.image.cols(), cvImage.image.rows(), Bitmap.Config.ARGB_8888);
Utils.matToBitmap(cvImage.image, bmp);
Im.setImageBitmap(bmp);
It possible, but It difficult. I read some code example on stack over flaw. But I fell to do it. If you succeeded, just pull request your code to here.
have you seen camera_image_tutorial in android core? In that code, they are displaying the image also.
To display image from camera is easy. but to display your own image (from topic) it more challenge.
What is Im in:
Im.setImageBitmap(bmp);
?
public ImageView Im;
Im = (ImageView) findViewById(R.id.imageView1);
Which type should be imageView1
?
In main.xml
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/imageView1"
android:layout_gravity="center_horizontal" />
Are you trying to display image? If you are sucessfull, let me know. I am getting OpenGL error.
Just to show the user the image alter using the opencv. I will update the cv_bridge library code.
I didnt get you. Are you adding a patch for displaying image in android?
It will be difficult:
Only the original thread that created a view hierarchy can touch its views
You have to run this thread in parallel.
i do this code:
runOnUiThread(new Runnable() {
@Override
public void run() {
// This code will always run on the UI thread, therefore is safe to modify UI elements.
imageView.setImageBitmap(bmp);
}
});
but it dose show the image, and good thing it not crash.
I succeeded to show the subscribed images on the phone with the circle (that one that will send).
I am also able to subscribe the images in cv_bridge tutorial. But in compress image tutorial, images in phone are not displayed properly. Is it working fine with you?
Now I fix the CvCompressedImages :) The basic functionality is working well!! :)
If It works for you, I will close this issue.
Yes. it is working fine for me. Thanks
On Sat, Aug 22, 2015 at 5:24 PM, talregev notifications@github.com wrote:
If It works for you, I will close this issue.
— Reply to this email directly or view it on GitHub https://github.com/talregev/android_cv_bridge/issues/1#issuecomment-133681770 .
@kejriwalnishant1990 I write a new library, and a new apss, that don't use opencv manager.
I am trying to run your tutorial on android_cv_bridge but it is throwing following error. I am subscribing the image topic(/camera/rgb/image_color) from kinect in android phone. I ahve made my laptop as master and android phone as client.
org.ros.android.android_tutorial_cv_bridge E/roid_tutorial_cv_bridge﹕ cv_bridge exception: Unrecognized image encoding [bgr8] org.ros.android.android_tutorial_cv_bridge E/art﹕ No implementation found for void org.opencv.core.Mat.n_delete(long) (tried Java_org_opencv_core_Mat_n_1delete and Java_org_opencv_core_Mat_n_1delete__J) org.ros.android.android_tutorial_cv_bridge E/System﹕ Uncaught exception thrown by finalizer org.ros.android.android_tutorial_cv_bridge E/System﹕ java.lang.UnsatisfiedLinkError: No implementation found for void org.opencv.core.Mat.n_delete(long) (tried Java_org_opencv_core_Mat_n_1delete and Java_org_opencv_core_Mat_n_1delete__J) at org.opencv.core.Mat.n_delete(Native Method) at org.opencv.core.Mat.finalize(Mat.java:2475) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:191) at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:174) at java.lang.Thread.run(Thread.java:818)