Sketchware Pro | SketchLearn
6.45K subscribers
665 photos
45 videos
447 files
302 links
#Sketchware #Pro #Java #Android #SWB
It is the best channel to learn Sketchware Pro

Owner -> @Rakhmonov_Bobur | ONLINE 🟒
Download Telegram
Forwarded from Android Developers
I'm Thinking About Creating A Tutorial About OpenCV Android SDK In Sketchware Pro. But Before I Start I Want To Be Sure How Many Of You Want This Tutorial.
πŸ‘14
Hello, I am Ninja coder, a programmer, I want your support! Please support my app and myself. This is my channel address. The link to the github repository is also pinned. Support me by giving me stars and following me.
https://t.me/Ghostwebide
πŸ‘2❀1
Forwarded from Android Developers
How To Load & Display An Image Using OpenCV

To Read & Display An Image File Using OpenCV We Can Use Mat Object.

In OpenCV, a Mat (Matrix) object is the primary data structure used to store and manipulate image data. It represents an n-dimensional array, typically used for 2D images, where each element contains pixel data (e.g., RGB or grayscale values).

To Load & Display An Image Using OpenCV Follow The Following Steps.

Step1. In The View Area Add ImageView Or Any Other Image Displaying View.

Step2. Make Sure You Select OpenCV Android SDK In The Library Manager.

Step3. In The Custom Imports Add The Following Classes From OpenCV.

import org.opencv.core.Mat; 
import org.opencv.android.Utils;
import org.opencv.imgproc.Imgproc;
import org.opencv.imgcodecs.Imgcodecs;

Step4. Load OpenCV C++ Binary Using The Following Code.

} 
static {
System.loadLibrary("opencv_java4");
}
{

Step5. In Any Event You Want(OnCreate, OnButton Click Or Any Other Event) Where You Want To Load & Display The Image Use This Code. Read Comment's For Better Understanding.

//Set The Image File Path

String ImageFilePath = "/sdcard/image_file.png";

//Read The Image File From The Specified Path In ImageFilePath String Variable & Store It In OpenCV Mat(Matrix) Object.

Mat mat = Imgcodecs.imread(ImageFilePath);

//By Default OpenCV Uses BGR(Blue, Green, Red) Color Format For The Image & As You Know Android Uses RGB(Red, Green, Blue) Color Format. So It Causes The Image To Have Unusual Color So We Need To Convert Them From BGR(Blue, Green, Red) Color Format To RGB(Red, Green, Blue) Color Format Using This Method.

Imgproc.cvtColor(mat, mat, Imgproc.COLOR_BGR2RGB);

//Create Bitmap From The Mat Object Columns & Rows.

Bitmap bitmap = Bitmap.createBitmap(mat.cols(), mat.rows(), Bitmap.Config.ARGB_8888);

//Convert The Image From OpenCV Matrix Object To Android Bitmap.

Utils.matToBitmap(mat, bitmap);

//Display The Bitmap In ImageView Called imageview1
imageview1.setImageBitmap(bitmap);
}
πŸ‘2
Forwarded from Android Developers
OpenCV Load Image(Image Viewer) Sketchware Pro Project
❀1πŸ‘1
Forwarded from Android Developers
πŸ‘3
This media is not supported in your browser
VIEW IN TELEGRAM
Sketchware Pro new:
-> Added adding Services
-> Added getting dynamic color for new project theme.
-> by #me

REMOVED! Because blocks are not for service you need to use ASD blocks :(.
πŸ‘15❀3
If the latest Sketchware Pro crashes after downloading a new local library:
1-solution. Try to download the older version of the local library.
2-solution. Open MT Manager and open the .sketchware/libs/local_libs/your_library/classes.jar then convert it to dex with API 26+
πŸ‘5❀1
Forwarded from Android Developers
OpenCV Image2Grayscale Converter Sketchware Pro Project
Forwarded from Android Developers
New OpenCV Tutorial Will Be Dropped After Some Minutes.

πŸ‘‰ @androiddevstutorial
πŸ‘3