B4X FEED OpenCV Image to JPEG byte array with resize/quality options

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: OpenCV Image to JPEG byte array with resize\/quality options است. این موضوع تا کنون 22 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع OpenCV Image to JPEG byte array with resize\/quality options
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
22
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
This is my third "Image to JPEG byte array with resize/quality options" snippet. The various versions are:
  1. Inline Java version, B4J only:
  2. XUI version, working across B4A, B4i, and B4J:
  3. A new OpenCV version that is heavily based on the first version (published here). The initial resize is unchanged, but the code to convert the resulting BufferedImage to a JPG image and then convert it to a byte array is now using OpenCV classes/methods.
This version, unlike the previous ones, has some external prerequisites.
  • For Windows, the prerequisites are the opencv*.jar and the opencv*.dll files. The .jar file needs to be placed in the Additional Library folder of B4J. The opencv*.dll file needs to be located somewhere accessible to the application...



 

عقب
بالا