Ask Your Question

ho_khalaf's profile - activity

2020-02-22 14:31:20 -0500 received badge  Notable Question (source)
2019-10-28 20:12:13 -0500 received badge  Popular Question (source)
2018-07-05 20:09:49 -0500 received badge  Notable Question (source)
2016-01-10 04:55:57 -0500 received badge  Student (source)
2015-07-06 13:31:42 -0500 received badge  Popular Question (source)
2013-08-30 12:17:54 -0500 commented answer storing opencv image in sqlite3 with python

hi thank you very much but i use this and work good

i use this: cv2.imwrite( 'im.jpg' )
im = open( 'im.jpg', 'rb' ).read()

db.execute("insert into images values(?,?)",("pattern",sqlite3.Binary(im)))

and its ok

2013-08-29 02:18:30 -0500 received badge  Organizer (source)
2013-08-29 02:17:30 -0500 asked a question storing opencv image in sqlite3 with python

hi every body

how i can store image from img = cv2.imread() in sqlite3 or other databases with python and retrieve,, without saving on disk and then store in database???

i search web alot but i cant find good answer thank you

2013-08-15 15:56:47 -0500 commented question problem with reading image to Mat

it not work."Error occured, image not read correctly"

2013-08-15 12:32:42 -0500 commented question problem with reading image to Mat

I use the code and answer is "Error occured, image not read correctly"

2013-08-15 02:38:31 -0500 commented question problem with reading image to Mat

what is the &lt. there is no lt in my cod??

2013-08-14 14:42:09 -0500 received badge  Editor (source)
2013-08-14 14:39:52 -0500 commented answer problem with reading image to Mat

hi thanks for your attention. i use it in QtCreator and i have this problem in visual studio i dont have any problem. i use this to solve problem IplImage* img1 = cvLoadImage("c:/a.jpg",1); Mat img(img1);

2013-08-14 14:06:06 -0500 asked a question problem with reading image to Mat

Im using Visual Studio 2012 with OpenCv 2.4.6 and I don't know if I'm doing sth wrong but I can't do the simplest imread(), because there is a problem with R6010 abort has been called

#include "mainwindow.h"
#include <QApplication>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

using namespace cv;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    Mat img = imread("c:/a.jpg",1);
    imshow("window1",img);
    MainWindow w;
    w.show();

    return a.exec();
}

and this is the bug

OpenCV Error: Assertion failed (size.width>0 && size.height>0) in unknown function, file C:\slave\builds\WinInstallerMegaPack\src\opencv\modules\highgui\src\window.cpp, line 261