Ask Your Question

Allaye's profile - activity

2020-01-20 08:03:16 -0600 asked a question Initialising yolo3 weight

Initialising yolo3 weight yolo = cv.dnn.readNet('yolov3.weights', 'yolov3.cfg') -------------------------------------

2020-01-20 03:51:55 -0600 commented question how to load a list of image using cv.imread

@LBerger how will I get around this problem?

2020-01-16 18:50:02 -0600 asked a question how to load a list of image using cv.imread

how to load a list of image using cv.imread i want to load a list of images using cv.imread function image_path_dir = '

2019-01-23 16:03:11 -0600 commented question Trackbar created but not updating, i mean the image are not blending

at first i wrote the code without classes, so i have to make the variable extern and declare the variable outside the c

2019-01-23 14:16:28 -0600 commented question Trackbar created but not updating, i mean the image are not blending

can you please tell me how to resolve the problem, when i remove the constructor the i get an error to initialize the cl

2019-01-23 14:13:26 -0600 commented answer error: uninitialized local "variable" blean used

the constructor is initializing the alpha and beta variable to zero, making the blending not to work.

2019-01-23 14:06:46 -0600 commented question Trackbar created but not updating, i mean the image are not blending

thank but the code works when i remove the class from my code, that just my problem...

2019-01-23 13:29:40 -0600 asked a question Trackbar created but not updating, i mean the image are not blending

Trackbar created but not updating, i mean the image are not blending header file -------------------- class Blending {

2019-01-23 13:29:37 -0600 asked a question Trackbar created but not updating, i mean the image are not blending

Trackbar created but not updating, i mean the image are not blending header file -------------------- class Blending {

2019-01-23 10:33:54 -0600 commented answer error: uninitialized local "variable" blean used

okay thanks, i commented out the constructor and initialized the variable in the header file, and it work, thanks alot

2019-01-23 10:25:07 -0600 marked best answer error non-standard syntax; use '&' to create a pointer to membe

//

void Blending::Blend(int, void*)
{
    alpha = (double)defaultvalue / 100;
    addWeighted(img, alpha, img2, 1.0 - alpha, 0, des);
    imshow("Blendimage", des);
}

int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

2019-01-23 10:23:28 -0600 commented answer error: uninitialized local "variable" blean used

okay thanks

2019-01-23 10:12:11 -0600 commented answer error: uninitialized local "variable" blean used

can you please explain why having a constructor is important.

2019-01-23 10:11:14 -0600 marked best answer error: uninitialized local "variable" blean used
header file---------

class Blending
{
public:
    static void Blend(int, void*);
    int Blended();
    //int imageinput();
     double alpha, beta;
     int  key;
     int defaultvalue;
};


    cpp file ----------
        Mat  img2;
        double alpha, beta;
        int key;
        int maximumvalue = 100;
        int defaultvalue = maximumvalue / 2;

        void Blending::Blend(int, void*)
        {

            Blending blean;
            blean.alpha = (double)blean.defaultvalue / 100;
            addWeighted(img, blean.alpha, img2, 1.0 - blean.alpha, 0, des);
            imshow("Blendimage", des);
        }
    int main()
    {

        createTrackbar("Blend", "Blendimage", &defaultvalue,maximumvalue,Blending::Blend);

    }

blend is a static function and when i use the object of the class to access the variable of the class i get an uninitialized variable error any help... the variable are non-static variable

2019-01-23 09:32:50 -0600 asked a question error: uninitialized local "variable" blean used

error: uninitialized local "variable" blean used header file--------- class Blending { public: static void Blend(in

2019-01-22 10:16:34 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

when i build the code i get the error message "uninitialized local variable "b" used", any help

2019-01-22 10:14:31 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 10:13:56 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 10:12:55 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 10:12:46 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 05:07:50 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 05:07:28 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-22 05:07:12 -0600 commented answer error non-standard syntax; use '&' to create a pointer to membe

header file------ class Blending { public: static void Blend(int, void*); int Blended(); //int imageinput()

2019-01-21 16:30:58 -0600 asked a question error non-standard syntax; use '&' to create a pointer to membe

error non-standard syntax; use '&' to create a pointer to membe void Blending::Blend(int, void*) {

2019-01-20 10:05:53 -0600 commented answer codes after waitKey(0) not running

okay i get it, thanks

2019-01-20 09:48:11 -0600 commented answer codes after waitKey(0) not running

then if i may ask why is it behaving like that..?

2019-01-20 09:46:51 -0600 commented question video capture problem

cross check the name of your input video i think

2019-01-20 09:42:32 -0600 commented answer codes after waitKey(0) not running

@berak okay, it seems that what i have to do, concerning the previous code, i think waitKey(0) is the one blocking the

2019-01-20 09:41:01 -0600 marked best answer codes after waitKey(0) not running

code:

  while(1) {
double alpha = -1; // initially invalid
while ( alpha < 0.0 || alpha > 1.0) {
    cout << endl;
    cout << "Enter Your Blend Value from 0.0 to 1.0" << endl;
    cin >> alpha; // while your console window has the focus !
}

addWeighted(img, alpha, img2, 1.0 - alpha, 0, des);
imshow("img", img);
imshow("ime1", img2);
imshow("Blended", des);
waitKey(0); 
cout<<"This is just a sample<<endl;

}

after the three images has been displayed the code beneath it wont run, like the cout, except i close the images or terminate the program all together.. Thanks in advance

2019-01-20 09:40:49 -0600 commented answer codes after waitKey(0) not running

@berak okay, it seems that what i have to do, concerning the previous code, i think waitKey(0) is the one blocking the

2019-01-20 09:20:36 -0600 edited question codes after waitKey(0) not running

and having three waitKey(0) but the third one is not working code: while(1) { double alpha = -1; // initially invalid

2019-01-20 09:18:09 -0600 commented answer codes after waitKey(0) not running

That was the first thing i did, comment the old code and run yours the image displayed well, but the cmd is not acceptin