37580

Android : converting RGB888 to Y800

Question:

I am getting image captured from vuforia as RGB888 bytes[] . I want to pass this to zbar which is expecting the format to be Y800 . How can i do that.

i tried

Image barcode = new Image(width, height, "RGB3"); barcode.setData(imgRGB888); int result = scanner.scanImage(barcode.convert("Y800"));

but its not giving right result

Answer1:

check this Thread and Review Your Full Code :

<a href="http://sourceforge.net/p/zbar/discussion/2308158/thread/ce0d36f8" rel="nofollow">http://sourceforge.net/p/zbar/discussion/2308158/thread/ce0d36f8</a>

By the Way : zbar Accepts GRAY format too..

Recommend

  • Facebook SDK for Unity on Android - Trouble about callback from FB.Login
  • Can we use Vuforia with NativeActivity on Android
  • How to get the x, y position of a detected QR code on an image with zbar?
  • How to make a phone call button in Android for Marshmallow
  • jackson - MessageBodyWriter Not Found when returning a JSON POJO from a GET Api
  • Drag and drop (replace) in HTML 5
  • getTag = null pointer
  • Vuforia Cloud Recognition Android Application
  • AngularJS $http data not returning correctly [duplicate]
  • Abstract class in Swift
  • Adding flags to highcharts (not highstock) dynamically
  • Can I add columns in a QListView in Qt?
  • QTableWidget find a row through userdata
  • Parse iOS - Send push notification at specific time
  • How to copy a product's attributes value to another attribute in Magento?
  • Using TableView as ListView-delegate
  • QR if statement?
  • JasperReports Barcode Generation With Barcode4j - Library Depencies
  • Drag and drop item in same ListView
  • Single Web API controller per resource or less controllers with more custom actions?
  • ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS in not firing
  • Calling Activity within jar file
  • How to move again MainActivity after sending the mail?
  • Android - Call default browser with and redirect to a designated url
  • Monotouch crashes with NullReferenceException on non nullable object
  • Can't delete or rename original file after resizing
  • D3 get axis values on zoom event
  • Using a canvas object in a thread to do simple animations - Java
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • OpenGL 3.3 on Mac OSX El Capitan with LWJGL
  • Python urlparse: small issue
  • FileReader+canvas image loading problem
  • How to set/get protobuf's extension field in Go?
  • How to show dropdown in excel using jrxml (jasper api)?
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • python draw pie shapes with colour filled
  • Sorting a 2D array using the second column C++
  • java string with new operator and a literal