I am playing video with gstreamer using gstreamer-java.
When I move my program to ubuntu and play video with it, the red and blue colors are switched, like..the people's faces are blue.
If I run the same program on windows, I don't have any color problem..
I did some search on google and here is what i found
https://answers.launchpad.net/ubuntu/+source/totem/+question/7373
I followed a lot of these people's suggestions here, but it still doesn't work on the ubuntu..
The Movie Player in ubunutu - totem (using gstreamer) can display the colors correctly for the same video file.
is there any way I can control gstreamer using gstreamer-java to change the color settings so it looks right?
Thanks!
I think you are using the XVideo (XV) or OpenGL output. There is probably a problem in the graphics driver. One solution is to use unaccelerated X11 output which is going to be painfully slow but won't have the artifacts you mention.
Could you provide gst-launch pipeline string which you should also be using in gstreamer-java api? From your description it looks like the image appears as RGB instead of BGR. This is due to video buffers being received as Big Endian in Java API. You may want to refer this patch on http://groups.google.com/group/gstreamer-java/msg/f93e7900d3028c51
Related
I would like to use OpenCV for my new Android Project. However I need completely Open Source Feature Detection Algorithms.
I already found out ORB which seems to be good.
I already tried it.
But I can't figure out whether it uses GrayScale Images in combination with the Android OpenCV SDK or if it uses the colored image internally.
If it uses GrayScale images, is there an alternative that uses Colored Images for Feature Detection, Extraction and Matching?
So, first of all, please go through the OpenCV documentation before you venture onto stackoverflow. In most cases, you can find valuable information there and any problems arising there can be clarified here (or atleast are intended to).
Now to your question, ORB uses grayscale images, however, there is an alternative descriptor for colored images called Opponent ORB in OpenCV. You don't specify which version you are using but I assume you are using a version from 2.4.
For this, the detector can be ORB or the others (which would detect on grayscale images) and descriptor of the detected keypoints can be for grayscale or colored (Opponent ORB and so on).
For matching the descriptors, you can use the same method as you are using for ORB.
Hope it helps!
I work on a big project with codenameone(i can't attach my codes because it's really big). I get android app and it's works on android devices. But recently i get ios build for this project and it's not working on ios device(just showing a white page instead of map).
My project is a map-framework that render tiles and ... on graphics(i used graphics class for drawing, transforming, writing text and more).
I used input stream for working with file because of File not supported.
I need a solution to how debug and find my problem about ios build(why tiles doesn't showed).
In fact i don'n know anything about ios and objective-c.
Thanks in advance.
Most of the logging functionality that allows inspecting issues is for pro developers (you can try the trial) its discussed in this video (mostly focused on crashes): http://www.codenameone.com/how-do-i---use-crash-protection-get-device-logs.html
From your description I would guess you created a really large mutable image (larger than screen bounds) and are drawing onto that. This would be both slow on iOS (and on newer Android devices) and might actually produce that result if the image exceeds the maximum texture size of the device.
If that is not the case you would need to explain what you are doing more precisely.
Was anybody able to read the PDF417 barcode with use of the ZXing library on the Android OS? They are supporting this - and according to their page it is in 'alpha' stage.
We are not looking for perfect solution - since the PDF417 is pretty complex and needs a very good camera with auto-focus, we can accept that it will be working only on few pre-selected high end devices.
We have tried also the Barcode Scanner + available on the Android Market - it has the PDF417 option in the settings, but whatever we read it always fails.
We were looking also for commercial SDK, also here on stackoverflow, but with no luck.
Any help is appreciated.
Kind Regards,
STeN
It really depends on what you expect. Simple PDF417 reads pretty instantly, like... this or this.
This will never be scanned.
Borderline is stuff that is small or moderately complex: example 1 and example 2.
I can read the first but not the second, even though the first is denser -- size helps.
Make sure to enable PDF 417 decoding; it's off by default
Quiet zone (white space around the code) is required
Focus and light help a lot
You can try PDF417.mobi SDK. It should work on low-end phones if equipped with auto-focus camera. It's a commercial library, but free for developers and non-commercial purposes.
You can try the demo here or play with code directly from GitHub.
Official web site is here http://pdf417.mobi/
Disclaimer: I'm part of the team working on PDF417.mobi
Have used , It can scan PDF417 format. Make sure you give a try with a Gadget containing Auto Focus camera. Have tried It on Samsung Galaxy Tab it works like a charm.
Zxing's solution did not work for me. I used DataSymbol Decoder (turn on 2d codes, by default they are off) on my samsung charge. In less than a second I captured my drivers license...
I got similar results as described by #sean-owen in that only the simple PDF417 were being read. It feels like the ZXing library doesn't have the same error correction for PDF417 that it does for QR Codes. However, with user assistance we were able to eliminate noise and create an artificial quiet zone by:
require the user to hold the phone in landscape mode (this maximizes the pixels captured from the camera, even in 640x480 mode)
require the user to fit the barcode inside a 50:18 clipping rectangle (this ratio seems to best fit the US Driver's License and such a clipping rectangle will empower the user to clip away most of the noise)
allow the user control focus, tilt distortions
By following the above, even some of the notoriously difficult PDF417 images can be scanned.
Google's ML KIT Barcode Scanning which is part of google's Mobile Vision library lists support for PDF-417 Barcodes.
It automatically parses QR Codes, Data Matrix, PDF-417, and Aztec values, for the following supported formats:
URL
Contact information (VCARD, etc.)
Calendar event
Email
Phone
SMS
ISBN
WiFi
Geo-location (latitude and longitude)
AAMVA driver license/ID
Review the Getting Started Page or clone GIT project to get started.
I want to create a cross platform SlideShow maker desktop-application (mainly Windows & Mac), the SlideShow will be generated using a set of images with background music, subtitles/captions and there will be a transition between each slide/image.
I have done all the UI in swing and it all works superb on Windows & Mac. Now the only "little" problem is
How to generate a video from a set of images with "transitions" & "subtitles" in java using native java libs/frameworks and add some music in background ;-)
I want the video output format to be at least in avi & mov, with transitions like:
1) fade
2) Zoom (images will zoom-in from e.g. 64x64 to full video size)
3) Multiple (multiple images will appear in single slide)
I have used JMF example to generate .mov from .jpeg images it was buggy but may work if I can add transitions?? But it appears JMF is mainly for media playback it only supports a few media formats (for output).
I have also read a few docs of jffmpeg but it appears it too does not support transitions.
I have also tried FMJ but no use, now I am stuck and need assistance, on how this task can be done in java.
I would be immensely thankful if anyone can guide me in right direction.
--
many thanks
I think you can accomplish this task with xuggler. Check it out. It might fit you needs.
Xuggler
I am working on a Face Recognition system for my internship. I am developing the project in Java right now. I am using OpenCV library, but it does not seem to work correctly in detecting faces.
I am at a point, where I capture image from the desktop and store it on the hard drive.
All I want now is to detect a face in that image (NOT IDENTIFY). I just need to detect that face and crop it.
Please help me with it. If anyone has specific code in Java to detect faces in a images, please send me that too.72236
This library already has face detection built in. You'd probably be better off using it.