Retrive frames from FLIR cameras using OpenCV2019 Community Moderator ElectionCan I call a constructor from another constructor (do constructor chaining) in C++?Why is reading lines from stdin much slower in C++ than Python?Simple Digit Recognition OCR in OpenCV-PythonOpenCV: How to capture frames from an Ethernet cameraDropped frames OpenCV cameraSaving frames from stereo cameras using OpenCVI can't capture frames from camera in OpenCVHow to read IP camera with openCV in java directly (without internet access and router)?Implementing FLIR thermal camera on CAT-S60 with xamarin.formsIssue Capturing image from FLIR Boson with openCV on a Jetson TX2
What will happen if my luggage gets delayed?
Help! My Character is too much for her story!
Smooth vector fields on a surface modulo diffeomorphisms
Under what conditions can the right to be silence be revoked in the USA?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Movie: boy escapes the real world and goes to a fantasy world with big furry trolls
Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?
Is there a way to make cleveref distinguish two environments with the same counter?
Difference between `nmap local-IP-address` and `nmap localhost`
Create chunks from an array
Volume of hyperbola revolved about the y -axis
How do spaceships determine each other's mass in space?
Logistic regression BIC: what's the right N?
How do we create new idioms and use them in a novel?
What is the purpose of a disclaimer like "this is not legal advice"?
If nine coins are tossed, what is the probability that the number of heads is even?
Do Paladin Auras of Differing Oaths Stack?
ESPP--any reason not to go all in?
Are small insurances worth it?
How do I increase the number of TTY consoles?
Cycles on the torus
Is it a Cyclops number? "Nobody" knows!
"If + would" conditional in present perfect tense
What would be the most expensive material to an intergalactic society?
Retrive frames from FLIR cameras using OpenCV
2019 Community Moderator ElectionCan I call a constructor from another constructor (do constructor chaining) in C++?Why is reading lines from stdin much slower in C++ than Python?Simple Digit Recognition OCR in OpenCV-PythonOpenCV: How to capture frames from an Ethernet cameraDropped frames OpenCV cameraSaving frames from stereo cameras using OpenCVI can't capture frames from camera in OpenCVHow to read IP camera with openCV in java directly (without internet access and router)?Implementing FLIR thermal camera on CAT-S60 with xamarin.formsIssue Capturing image from FLIR Boson with openCV on a Jetson TX2
I am trying to connect a FLIR cammera and process the frames using OpenCV. I connect the cammera with an internet cable but the VideoCapture object was not associated to cam successfully;
cv::VideoCapture cam(0);
if (cam.isOpened() == false)
std::cout << "error: capWebcam not accessed successfullynn";
_getch();
return(0);
It looks like OpenCv can´t find it. The internet cable serves and as a power supply for the cammera just mentioning if maybe that's relavant.
I can use the Spinnaker SDK to retrive the frames but is there someway not to use the sdk and use direcly OpenCV
c++ opencv flir
add a comment |
I am trying to connect a FLIR cammera and process the frames using OpenCV. I connect the cammera with an internet cable but the VideoCapture object was not associated to cam successfully;
cv::VideoCapture cam(0);
if (cam.isOpened() == false)
std::cout << "error: capWebcam not accessed successfullynn";
_getch();
return(0);
It looks like OpenCv can´t find it. The internet cable serves and as a power supply for the cammera just mentioning if maybe that's relavant.
I can use the Spinnaker SDK to retrive the frames but is there someway not to use the sdk and use direcly OpenCV
c++ opencv flir
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago
add a comment |
I am trying to connect a FLIR cammera and process the frames using OpenCV. I connect the cammera with an internet cable but the VideoCapture object was not associated to cam successfully;
cv::VideoCapture cam(0);
if (cam.isOpened() == false)
std::cout << "error: capWebcam not accessed successfullynn";
_getch();
return(0);
It looks like OpenCv can´t find it. The internet cable serves and as a power supply for the cammera just mentioning if maybe that's relavant.
I can use the Spinnaker SDK to retrive the frames but is there someway not to use the sdk and use direcly OpenCV
c++ opencv flir
I am trying to connect a FLIR cammera and process the frames using OpenCV. I connect the cammera with an internet cable but the VideoCapture object was not associated to cam successfully;
cv::VideoCapture cam(0);
if (cam.isOpened() == false)
std::cout << "error: capWebcam not accessed successfullynn";
_getch();
return(0);
It looks like OpenCv can´t find it. The internet cable serves and as a power supply for the cammera just mentioning if maybe that's relavant.
I can use the Spinnaker SDK to retrive the frames but is there someway not to use the sdk and use direcly OpenCV
c++ opencv flir
c++ opencv flir
edited Mar 6 at 13:38
Aris
asked Mar 6 at 13:33
ArisAris
508
508
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago
add a comment |
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
cv::VideoCapture cam(0); is for cameras that install on PC
see if you can open with VLC or any other application
you may need to open VideoCapture with RTSP connection to the camera
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
add a comment |
Ok for anyone that would be interested in the future on how to work in OpenCv with imagies acquired from PointGray cameras:
The industrial cameras have their proprietary drivers, they don't use the standard video interfaces of the OS. This is normal, as these cameras are quite complex and they are generally used in more complex situations, where you need a full control over the camera.
You have to download the camera's SDK from the Point Grey site (https://www.ptgrey.com/support/downloads) and implement the capturing yourself.
Then you can transform the captured buffer into an OpenCV Mat.
int ConvertToCVmat(ImagePtr pImage)
int result = 0;
ImagePtr convertedImage = pImage->Convert(PixelFormat_BGR8, NEAREST_NEIGHBOR);
unsigned int XPadding = convertedImage->GetXPadding();
unsigned int YPadding = convertedImage->GetYPadding();
unsigned int rowsize = convertedImage->GetWidth();
unsigned int colsize = convertedImage->GetHeight();
//image data contains padding. When allocating Mat container size, you need to account for the X,Y image data padding.
Mat cvimg = cv::Mat(colsize + YPadding, rowsize + XPadding, CV_8UC3, convertedImage->GetData(), convertedImage->GetStride());
namedWindow("current Image", CV_WINDOW_AUTOSIZE);
imshow("current Image", cvimg);
resizeWindow("current Image", rowsize / 2, colsize / 2);
waitKey(1);//otherwise the image will not display...
return result;
Also this is helpfull https://www.ptgrey.com/tan/10861
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024360%2fretrive-frames-from-flir-cameras-using-opencv%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
cv::VideoCapture cam(0); is for cameras that install on PC
see if you can open with VLC or any other application
you may need to open VideoCapture with RTSP connection to the camera
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
add a comment |
cv::VideoCapture cam(0); is for cameras that install on PC
see if you can open with VLC or any other application
you may need to open VideoCapture with RTSP connection to the camera
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
add a comment |
cv::VideoCapture cam(0); is for cameras that install on PC
see if you can open with VLC or any other application
you may need to open VideoCapture with RTSP connection to the camera
cv::VideoCapture cam(0); is for cameras that install on PC
see if you can open with VLC or any other application
you may need to open VideoCapture with RTSP connection to the camera
answered Mar 6 at 14:09
user2320641user2320641
544
544
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
add a comment |
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
I can open the camera with software provided by third party. I just wanted to see if i could avoid using the SDK with open cv
– Aris
Mar 6 at 14:13
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
if the camera broadcast with RTSP you can give opencv the RTSP connection and connect to the camera VideoCapture stream1("rtsp://<CAM_IP>");
– user2320641
2 days ago
add a comment |
Ok for anyone that would be interested in the future on how to work in OpenCv with imagies acquired from PointGray cameras:
The industrial cameras have their proprietary drivers, they don't use the standard video interfaces of the OS. This is normal, as these cameras are quite complex and they are generally used in more complex situations, where you need a full control over the camera.
You have to download the camera's SDK from the Point Grey site (https://www.ptgrey.com/support/downloads) and implement the capturing yourself.
Then you can transform the captured buffer into an OpenCV Mat.
int ConvertToCVmat(ImagePtr pImage)
int result = 0;
ImagePtr convertedImage = pImage->Convert(PixelFormat_BGR8, NEAREST_NEIGHBOR);
unsigned int XPadding = convertedImage->GetXPadding();
unsigned int YPadding = convertedImage->GetYPadding();
unsigned int rowsize = convertedImage->GetWidth();
unsigned int colsize = convertedImage->GetHeight();
//image data contains padding. When allocating Mat container size, you need to account for the X,Y image data padding.
Mat cvimg = cv::Mat(colsize + YPadding, rowsize + XPadding, CV_8UC3, convertedImage->GetData(), convertedImage->GetStride());
namedWindow("current Image", CV_WINDOW_AUTOSIZE);
imshow("current Image", cvimg);
resizeWindow("current Image", rowsize / 2, colsize / 2);
waitKey(1);//otherwise the image will not display...
return result;
Also this is helpfull https://www.ptgrey.com/tan/10861
add a comment |
Ok for anyone that would be interested in the future on how to work in OpenCv with imagies acquired from PointGray cameras:
The industrial cameras have their proprietary drivers, they don't use the standard video interfaces of the OS. This is normal, as these cameras are quite complex and they are generally used in more complex situations, where you need a full control over the camera.
You have to download the camera's SDK from the Point Grey site (https://www.ptgrey.com/support/downloads) and implement the capturing yourself.
Then you can transform the captured buffer into an OpenCV Mat.
int ConvertToCVmat(ImagePtr pImage)
int result = 0;
ImagePtr convertedImage = pImage->Convert(PixelFormat_BGR8, NEAREST_NEIGHBOR);
unsigned int XPadding = convertedImage->GetXPadding();
unsigned int YPadding = convertedImage->GetYPadding();
unsigned int rowsize = convertedImage->GetWidth();
unsigned int colsize = convertedImage->GetHeight();
//image data contains padding. When allocating Mat container size, you need to account for the X,Y image data padding.
Mat cvimg = cv::Mat(colsize + YPadding, rowsize + XPadding, CV_8UC3, convertedImage->GetData(), convertedImage->GetStride());
namedWindow("current Image", CV_WINDOW_AUTOSIZE);
imshow("current Image", cvimg);
resizeWindow("current Image", rowsize / 2, colsize / 2);
waitKey(1);//otherwise the image will not display...
return result;
Also this is helpfull https://www.ptgrey.com/tan/10861
add a comment |
Ok for anyone that would be interested in the future on how to work in OpenCv with imagies acquired from PointGray cameras:
The industrial cameras have their proprietary drivers, they don't use the standard video interfaces of the OS. This is normal, as these cameras are quite complex and they are generally used in more complex situations, where you need a full control over the camera.
You have to download the camera's SDK from the Point Grey site (https://www.ptgrey.com/support/downloads) and implement the capturing yourself.
Then you can transform the captured buffer into an OpenCV Mat.
int ConvertToCVmat(ImagePtr pImage)
int result = 0;
ImagePtr convertedImage = pImage->Convert(PixelFormat_BGR8, NEAREST_NEIGHBOR);
unsigned int XPadding = convertedImage->GetXPadding();
unsigned int YPadding = convertedImage->GetYPadding();
unsigned int rowsize = convertedImage->GetWidth();
unsigned int colsize = convertedImage->GetHeight();
//image data contains padding. When allocating Mat container size, you need to account for the X,Y image data padding.
Mat cvimg = cv::Mat(colsize + YPadding, rowsize + XPadding, CV_8UC3, convertedImage->GetData(), convertedImage->GetStride());
namedWindow("current Image", CV_WINDOW_AUTOSIZE);
imshow("current Image", cvimg);
resizeWindow("current Image", rowsize / 2, colsize / 2);
waitKey(1);//otherwise the image will not display...
return result;
Also this is helpfull https://www.ptgrey.com/tan/10861
Ok for anyone that would be interested in the future on how to work in OpenCv with imagies acquired from PointGray cameras:
The industrial cameras have their proprietary drivers, they don't use the standard video interfaces of the OS. This is normal, as these cameras are quite complex and they are generally used in more complex situations, where you need a full control over the camera.
You have to download the camera's SDK from the Point Grey site (https://www.ptgrey.com/support/downloads) and implement the capturing yourself.
Then you can transform the captured buffer into an OpenCV Mat.
int ConvertToCVmat(ImagePtr pImage)
int result = 0;
ImagePtr convertedImage = pImage->Convert(PixelFormat_BGR8, NEAREST_NEIGHBOR);
unsigned int XPadding = convertedImage->GetXPadding();
unsigned int YPadding = convertedImage->GetYPadding();
unsigned int rowsize = convertedImage->GetWidth();
unsigned int colsize = convertedImage->GetHeight();
//image data contains padding. When allocating Mat container size, you need to account for the X,Y image data padding.
Mat cvimg = cv::Mat(colsize + YPadding, rowsize + XPadding, CV_8UC3, convertedImage->GetData(), convertedImage->GetStride());
namedWindow("current Image", CV_WINDOW_AUTOSIZE);
imshow("current Image", cvimg);
resizeWindow("current Image", rowsize / 2, colsize / 2);
waitKey(1);//otherwise the image will not display...
return result;
Also this is helpfull https://www.ptgrey.com/tan/10861
edited 2 days ago
answered 2 days ago
ArisAris
508
508
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024360%2fretrive-frames-from-flir-cameras-using-opencv%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
With internet cable? Do you know about cameras IP-address?
– Nuzhny
Mar 6 at 13:37
I have recently used one of the FLIRs grey point camera. You should deffinatly take a look on Spinnaker SDK - its the offical SDK from FLIR - after installing the SDK you will also see the examples and documentation on how to use it with OpenCV.
– kavko
Mar 6 at 17:34
I have the documentation but i can't see anythingabout OpenCV. The documentation i have is from SpinView Help. And what do you mean by install, that's just an SDK. I don't install it just add it to the projects Directories.
– Aris
2 days ago