opencv3.1

How to detect (Count) Hair from image using OpenCV?

别说谁变了你拦得住时间么 提交于 2019-11-30 14:10:30
I have try below code using OpenCV functions cvtColor , Canny and HoughLinesP but not able to get accurate result or not work in some cases. private boolean opencvProcessCount(Uri picFileUri) { hairCount = 0; totalC = 0; //Log.e(">>>>>>>>","count " + picFileUri); try { InputStream iStream = getContentResolver().openInputStream(picFileUri); byte[] im = getBytes(iStream); BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inDither = true; opt.inPreferredConfig = Bitmap.Config.ARGB_8888; Bitmap image = BitmapFactory.decodeByteArray(im, 0, im.length); Mat mYuv = new Mat(); Utils

Setting up OpenCV 3.1 in Visual Studio 2015

妖精的绣舞 提交于 2019-11-30 07:44:15
I've downloaded opencv 3.1 and I want to start a project in Visual Studio 2015. I don't know how to link this library to my project. Also I want to know if I can continue with this opencv cause it just have a x64 and my project doesn't target on 64bits systems. globalex Download opencv 3.1 for windows Extract to folder like c:/opencv Set environment variables by setx -m . This depends on your path. Type this into command line started by cmd. setx -m OPENCV_DIR C:\opencv\build\x64\vc14 In the path editor, under control_panels/system/advanced/environmental_variables just set %OPENCV_DIR%\bin

How to detect (Count) Hair from image using OpenCV?

南笙酒味 提交于 2019-11-29 20:32:00
问题 I have try below code using OpenCV functions cvtColor , Canny and HoughLinesP but not able to get accurate result or not work in some cases. private boolean opencvProcessCount(Uri picFileUri) { hairCount = 0; totalC = 0; //Log.e(">>>>>>>>","count " + picFileUri); try { InputStream iStream = getContentResolver().openInputStream(picFileUri); byte[] im = getBytes(iStream); BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inDither = true; opt.inPreferredConfig = Bitmap.Config.ARGB