Ask Your Question

Lucas's profile - activity

2020-10-25 05:53:18 -0600 received badge  Popular Question (source)
2018-09-14 18:05:07 -0600 received badge  Nice Question (source)
2017-03-17 12:15:05 -0600 received badge  Famous Question (source)
2015-03-11 23:15:58 -0600 received badge  Notable Question (source)
2014-08-04 15:41:01 -0600 received badge  Popular Question (source)
2013-07-12 04:16:24 -0600 asked a question App exportation

Hi,

Just a silly question. If I compile an app using OpenCV so as to run it on another computer, do I need to install OpenCV on the target computer, or add some .dll ?

Thanks for your answer

Lucas

2013-06-26 09:39:37 -0600 commented question Problem using imwrite fastly

Hey!

I tried to store my files in several directories (I switch directory every 25 000 frames) and it works now! Thanks a lot for the idea SR, but do you know from where this issue comes from ? It's a problem to save files in a flooded folder?

2013-06-26 06:12:41 -0600 commented question Problem using imwrite fastly

in one big directory, each file is named frame_n.tiff where n is the number of the frame

2013-06-26 04:42:29 -0600 commented question Problem using imwrite fastly

I'm using Windows XP SP3 with a NTFS HDD and the second HDD i tried was an external storage (also in NTFS)

2013-06-26 03:24:45 -0600 asked a question Problem using imwrite fastly

Hi,

I'm currently facing a problem using imwrite function to save frames from a camera (in .tiff format).

My application needs to save 20 frames per second. Everything works fine for the 50 000 first images but after my FPS decrease drastically and increase again around 100 000 images saved.

Here is an image showing the behaviour : image description

The problem is exactly reproducible (same shape, decrease at 50 000 and increase again at 100 000), and I try my application on a different HDD (with a different size) with the same issue. By putting timers in my code I know that's the imwrite function which is slower during some periods but I don't know why.

I really can't figure out why I get this behaviour. Then if you've got some ideas or solutions to offer...

Thanks for your help

Lucas

2013-05-01 23:27:32 -0600 received badge  Student (source)
2013-04-10 04:17:49 -0600 asked a question Imwrite TIFF compression

Hi,

Is tiff format compressed using imwrite? If it is, what is the compression scheme, and is it lossy ?

Thanks

2013-03-04 10:34:46 -0600 received badge  Supporter (source)
2013-03-04 10:28:04 -0600 received badge  Critic (source)
2013-03-04 10:25:43 -0600 commented answer imwrite Compression parameters

Lossless jpeg actually exists, that's why I was wondering. If imwrite(test.jpg,CV_IMWRITE_JPEG_QUALITY,100) is lossy, is it possible to have a lossless jpeg compression with OpenCV?

2013-03-01 08:55:57 -0600 asked a question imwrite Compression parameters

Hi, Do you know how compression parameters works in imwrite. I mean if I choose CV_IMWRITE_JPEG_QUALITY equal to 100 for a jpeg saving or CV_IMWRITE_PNG_COMPRESSION equal to 0 for a png saving, will I have a lossless compression? Thanks

Lucas

2013-02-26 09:31:19 -0600 commented answer png Saving with a video camera

Moreover when I add flags I can't open a image with imread and save it to png anymore...

2013-02-26 08:35:19 -0600 commented answer png Saving with a video camera

I have still the same issue adding compression info. Thanks anyway for advice.

2013-02-26 07:14:53 -0600 asked a question png Saving with a video camera

Hi,

I'm currently working on a video acquisition project in which I have to save frames from a video camera. My software works when I save frames in bmp format but so as to use less space on the hard drive I would like to save them in png format. But when I change the format my application doesn't work anymore (xxx.exe encountered a problem and needs to close). Then I reduced the code to its minimum to save only one image from the video camera (see code below) and I don't understand why it works perfectly in bmp and bugs in png :

#include "stdafx.h"
#include "cv.h"
#include "highgui.h"

using namespace std;
using namespace cv;

int main()
{
    VideoCapture cap(0);
    if(!cap.isOpened())
        return -1;

    Mat frame;
    cap >> frame;
    // Mat frameC;
    // frame.convertTo(frameC,CV_16UC3);
    imwrite("C:\\Frames\\frame.png",frame);

    return 0;
}

It also doesn't work in jpg format. I'm working with Visual Studio 2005 on Windows XP and OpenCV2.1. I tried to convert the image before saving it, but no change (comments in the code) And if I just open and save a png image (without using the video camera) then it works.

Debugging indicates that the problem is in malloc.c (l. 163) :

res = _heap_alloc(size);

And the error is "Unhandled exception at 0x70100fcd in TestOpenCV.exe: 0xC0000005: Access violation reading location 0x00000000" I don't know what is "size" in this function but its type is size_t and its value 32. Then the program stops with the code -1073741819.

I've no idea how to fix this problem or even if it's possible. Maybe the problem comes from the camera or the acquisition card (Intensity Pro from BlackMagicDesign). Any ideas?

Your help or advices are welcome, I'm really stuck with this issue.

Thanks a lot.

Lucas