Ask Your Question

sturkmen's profile - activity

2020-12-19 16:13:54 -0600 edited question deletion of useless posts

deletion of useless posts according to previous discussion some questions already deleted and there are many question li

2020-12-11 05:59:55 -0600 answered a question Optimizations on opencv hog implementation(interp_weight, gaussian)

you can also take a look at http://blog.dlib.net/2014/02/dlib-186-released-make-your-own-object.html do you have a data

2020-12-09 03:23:40 -0600 commented question How to avoid potential noise after Canny?

if you share your code maybe we can help to improve

2020-12-06 01:27:54 -0600 commented answer installing 3.4.12 for ubuntu 18.04 LTS (install from source) for yolov4

yes this will download the latest of 3.4

2020-12-05 03:42:42 -0600 edited answer installing 3.4.12 for ubuntu 18.04 LTS (install from source) for yolov4

How to Clone a Specific Branch? git clone --branch 3.4 https://github.com/opencv/opencv.git

2020-12-05 03:41:12 -0600 answered a question installing 3.4.12 for ubuntu 18.04 LTS (install from source) for yolov4

git clone --branch 3.4 https://github.com/opencv/opencv.git

2020-12-03 08:07:37 -0600 commented answer I am create a rectangle box in video stream using python. how to apply face detection in rectangular box inside only and don't need out of the rectangular box detect face

no need to close questions having accepted answer. better is upvoting the question and the answer.

2020-12-02 21:12:33 -0600 commented answer Did convexityDefects function behaviour changed between cv2 versions 4.2.0 and 4.3.0?

@snavas see the update on berak's answer.

2020-12-02 21:10:57 -0600 edited answer Did convexityDefects function behaviour changed between cv2 versions 4.2.0 and 4.3.0?

yes, there were changes, have a look at the resp. pr: https://github.com/opencv/opencv/pull/16594/files#diff-bd12a887ea

2020-12-02 11:43:51 -0600 commented question Image Subtraction using frame history

see https://answers.opencv.org/question/5151

2020-12-02 06:08:31 -0600 commented question Did convexityDefects function behaviour changed between cv2 versions 4.2.0 and 4.3.0?

can you share the code you used so we can try to reproduce the problem.

2020-11-30 01:20:22 -0600 received badge  Necromancer (source)
2020-11-28 14:51:38 -0600 commented question reading CPU data

if you have a real image and a code you used so far please share it so we can try to suggest some solution

2020-11-28 14:50:13 -0600 commented question reading CPU data

if you have a real image please share it so we can try some solution

2020-11-28 02:22:59 -0600 commented question TV logo detection in a video file

you already found the best answer

2020-11-27 01:51:17 -0600 commented question Didn't find class "android.view.JavaCameraView" on path: DexPathList[[zip file "==/base.apk"],nativeLibraryDirectories=[==/lib/arm64, ==/base.apk!/lib/arm64-v8a, /system/lib64]]

all steps are well explained. be sure you applied all the steps. especially use OpenCV 4.5

2020-11-27 01:49:31 -0600 commented question Didn't find class "android.view.JavaCameraView" on path: DexPathList[[zip file "==/base.apk"],nativeLibraryDirectories=[==/lib/arm64, ==/base.apk!/lib/arm64-v8a, /system/lib64]]

all steps are well explained. be sure you applied all the steps.

2020-11-23 00:07:34 -0600 commented question Didn't find class "android.view.JavaCameraView" on path: DexPathList[[zip file "==/base.apk"],nativeLibraryDirectories=[==/lib/arm64, ==/base.apk!/lib/arm64-v8a, /system/lib64]]

see https://github.com/VlSomers/native-opencv-android-template

2020-11-21 14:44:21 -0600 commented question cv2.error: OpenCV(4.4.0)error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor', 14errors module cv2

ret, frame = cap.read() You should check if frame is not None: because cv2 doesn't raise error when it can't get frame

2020-11-21 14:33:12 -0600 commented question cv2.error: OpenCV(4.4.0)error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor', 14errors module cv2

You should check if img is not None: because cv2 doesn't raise error when it can't get frame from camera or read image f

2020-11-18 13:02:26 -0600 commented question opencv 4.5.0 cvDiv/cvMat equivalent ?

see https://docs.opencv.org/2.4/modules/core/doc/operations_on_arrays.html?highlight=divide#void%20divide(double%20scale

2020-11-17 19:08:27 -0600 received badge  Notable Question (source)
2020-11-17 00:16:18 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:16:17 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:16:15 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:15:29 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:15:27 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:15:26 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:15:25 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:14:43 -0600 edited question build_sdk.py tool "#error "C++11 is not supported"

build_sdk.py tool "#error "C++11 is not supported" I am trying to compile opencv4android with opencv's extra modules, bu

2020-11-17 00:00:33 -0600 commented question Video STABILIZATION

see https://www.learnopencv.com/video-stabilization-using-point-feature-matching-in-opencv/

2020-11-16 15:45:41 -0600 received badge  Nice Answer (source)
2020-11-16 15:28:05 -0600 received badge  Nice Answer (source)
2020-11-16 15:15:19 -0600 received badge  Necromancer (source)
2020-11-15 04:14:32 -0600 answered a question In BackgroundSubtractorMOG2 set background fixed(static) like BackgroundSubtractorMOG

an old question but i recently tried something like #include "opencv2/videoio.hpp" #include "opencv2/video.hpp" #includ

2020-11-15 01:55:38 -0600 received badge  Nice Answer (source)
2020-11-15 01:55:25 -0600 received badge  Nice Answer (source)
2020-11-15 01:18:20 -0600 marked best answer Capture from two webcam

i have two web cams ( Laptop's cam and an USB webcam )

i tried to capture from two cams at the same time with the code below.

it is working but one of the cams is lagging.

when i make two exe file ( one exe capturing from cam 0 other from cam 1 ) and run two exe at the same time, both cam streaming without lagging.

any advice to this problem ?

EDIT: i edited the code according to @pklab 's comment.

yes! i get better result with this modification.

but still not good as two running exe :(

Note:

running on Windows 10

Video I/O: DirectShow

#include <iostream>
#include <opencv2/opencv.hpp>

using namespace cv;
using namespace std;

int main(int argc, const char * argv[])
{
    VideoCapture cap0(0);
    VideoCapture cap1(1);

    cap0.set(CV_CAP_PROP_FPS, 15);
    cap1.set(CV_CAP_PROP_FPS, 15);

    Mat frame0, frame1;

    for (;;)
    {

        if (!(cap0.grab() && cap0.grab())) {
            std::cerr << "Unable to grab from one or both cameras";
            break;
        }

        cap0.retrieve(frame0);
        cap1.retrieve(frame1);

        if (!frame0.empty())
        {
            imshow("cap0", frame0);
        }

        if (!frame1.empty())
        {
            imshow("cap1", frame1);
        }

        int key = waitKey(10);
        if (key == 27)
            break;
    }
}
2020-11-15 01:16:40 -0600 received badge  Good Answer (source)
2020-11-13 14:06:28 -0600 edited question deletion of useless posts

deletion of useless posts according to previous discussion some questions already deleted and there are many question li

2020-11-13 07:04:17 -0600 commented question Difference between thresholding function

merged several questions

2020-11-13 07:01:39 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 07:00:15 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 06:52:19 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 06:51:52 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 06:51:50 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 06:51:49 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 06:51:21 -0600 edited answer Difference between thresholding function

http://docs.opencv.org/3.1.0/df/d9d/tutorial_py_colorspaces.html#gsc.tab=0 This link helped me to find the solution F

2020-11-13 06:51:16 -0600 edited question Difference between thresholding function

Difference between thresholding function Hi Guys I have two set of codes for thresholding Code 1 import cv2 impo

2020-11-13 04:41:58 -0600 commented question Freeing Ram by deleting image matrix

i tried something like this import cv2 import numpy as np Image = np.zeros((20000,20000), np.uint8) Threshold = np.z