Ask Your Question

jok23's profile - activity

2019-03-26 04:24:26 -0600 asked a question Read QR code and mark it as green if found in excel file

Read QL code and mark it as green if found in excel file I have image that consist of 8 QR codes, like this: I must re

2017-11-14 10:05:26 -0600 received badge  Enthusiast
2017-11-13 00:29:41 -0600 asked a question How can I test if camera calibration was optimal?

How can I test if camera calibration was optimal? Hello. I want to test if I properly calibrated my camera. I succesfu

2017-02-09 08:13:35 -0600 commented answer How to create mask from an image in opencv?

thank you very much!! Do you know if there is any way to combine this mouse events together with imshow to get interactive pixel values?? For example something like matlabs here:

https://www.mathworks.com/help/images/ref/impixelinfo.html (https://www.mathworks.com/help/images...)

so that pixel values are displayed when you are moveing mouse over image! (Mat format)

2017-02-08 23:58:37 -0600 commented answer How to create mask from an image in opencv?

Is there any better or more detailed explanation about the usage of the offical sample create_mask.cpp ?? I am new in programming and I don't know how to use it!

  1. I load a program in visual studio
  2. Replace code: string input_image = parser.get<string>("@input"); with code string input_image = "myImage.bmp";
  3. then myImage is shown together with red cursor and I am able to select polygon on the image:

http://shrani.si/f/3v/kK/2CLPphAG/myimage.png (link to image)

How can I now get mask of image? What variable is mask stored in? I want to use this mask in further processing...

2017-02-07 06:09:42 -0600 asked a question Cannot display .bmp image captured by GigE camera in Visual Studio

Hello everyone!

I succesfully configured GigE camera Manta, OpenCV and Visual Studio, soo I am able to capture the image and save it to disk.

Image that is saved to disk is ''image.bmp'' , other informations about the image are:

size: 2048 x 1088, ,bith depth : 8 ,element Type: bmp

If I want now to display this image using code:

Mat img = cv::imread("image.bmp");
cv::namedWindow("img", CV_WINDOW_AUTOSIZE);
cv::imshow("img", img);

I only get black window with no image on!! What I am doing wrong? Should I use other parameters when reading image from disk? Is there possible that it has to do something with image depth?

2017-02-06 14:20:04 -0600 commented answer Problem with setting up Allied Vision Manta, OpenCv and VS2015

Yes your right, I have downloaded and configured OpenCv using this tutorial: https://www.youtube.com/watch?v=7SM5OD2pZKY&t=3s (https://www.youtube.com/watch?v=7SM5O...)

Ok, building opencv using CMake make sense...But is there any other way of configureing my settup? I have read something about Vimba Viewer Class Builder and APIs for c++ and c# but I don't know how to implement this in Visual Studio?

2017-02-06 08:17:44 -0600 asked a question Problem with setting up Allied Vision Manta, OpenCv and VS2015

I have laptop with Windows 10 and Marvell Yukon 88E8072 PCI-E Gigabit Ethernet Controller. I have Allied Vision Manta camera connected to my laptop. I installed Visual Studio 2015 and also I installed Allied Vision SDK - Vimba Viewer. I am able to capture images with Vimba Viewer interface soo I know that camera is working ok.

The problem is when I try to capture images in Visual Studio. I downloaded sample source code and with this code I am able to capture image from my webcam.This is code:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <opencv2\video\video.hpp>
#include "opencv2/highgui/highgui.hpp"



using namespace cv;
using namespace std;

int main(int argc, char* argv[])
{
//cerr << getBuildInformation() << endl;

VideoCapture cap(0); // open the video camera no. 0 - we camera, 1- should     be GigE camera?

if (!cap.isOpened())  // if not success, exit program
{
    cout << "Cannot open the video cam" << endl;
    return -1;
}

double dWidth = cap.get(CV_CAP_PROP_FRAME_WIDTH); //get the width of frames of the video
double dHeight = cap.get(CV_CAP_PROP_FRAME_HEIGHT); //get the height of frames of the video

cout << "Frame size : " << dWidth << " x " << dHeight << endl;

namedWindow("MyVideo", CV_WINDOW_AUTOSIZE); //create a window called "MyVideo"

while (1)
{
    Mat frame;

    bool bSuccess = cap.read(frame); // read a new frame from video

if (!bSuccess) //if not success, break loop
{
    cout << "Cannot read a frame from video stream" << endl;
    break;
}

imshow("MyVideo", frame); //show the frame in "MyVideo" window

if (waitKey(30) == 27) //wait for 'esc' key press for 30ms. If 'esc' key is pressed, break loop
{
    cout << "esc key is pressed by user" << endl;
    break;
}
 }
 return 0;
 }

If I change VideoCapture cap(0) to VideoCapture cap(1), so that I should get video from GigE camera, I get a message ''Canot open the video cam'', so cap.isOpen() is false (see code above).

I am assuming that this has to do something with PvAPI driver not installed/included correctly. When I run:

cerr << getBuildInformation() << endl; in cmd I see under Video I/O there is a line that says: PvAPI NO!

My question is, how can I configure my sistem to be able to capture images from Allied Vision Camera, model Manta in Visual Studio?

2016-11-16 14:52:38 -0600 commented question Detecting 'anomalies' in structured / textured image

This is a very interesting topic. I'm working on a project and want to develop ML algorithm to find anomalies on the same ''pattern'' sufraces as You asked. Our idea (not working yet) is to separate pattern image on the very small portions that would be used as training data for neural nets. There are many problems that we have including not having enought of training data...

2016-11-16 12:27:29 -0600 received badge  Supporter (source)