Ask Your Question

Oguz's profile - activity

2018-05-29 07:21:49 -0500 received badge  Student (source)
2017-05-12 18:47:10 -0500 commented question How can I deploy opencv app to WIN10 HOME ?

problem solved when enhanced instructions set is disabled. thanks for comments.

2017-05-11 07:23:03 -0500 commented question How can I deploy opencv app to WIN10 HOME ?

compile : ms visual studio 2015 message : sil.exe has stopped working , check online for solution../ close program. Event viewer message : Problem Event Name: APPCRASH/Fault Module Name: sil.exe/Exception Code: c000001d

Thanks a lot.

2017-05-10 16:12:24 -0500 asked a question How can I deploy opencv app to WIN10 HOME ?

SOURCE SYSTEM : WİN 10 PRO, cpu/os X64, VS 2015 C++ ,opencv 3.0 Below code runs on source system :

#include <opencv2/opencv.hpp>
int main(int argn, char** argv[])
{
    std::cout << "--- begin  ---";
    cv::Mat frame;
    std::cout << "--- end   ---";
    return 0;
}

TARGET SYSTEM : WİN 10 HOME, cpu/os X64 I deploy exe and opencv dlls to a folder on TARGET SYSTEM. After displaying "--- begin ---" application crashes with "exe stopped working" message.

Thank you so much for your help.

2017-03-31 18:59:18 -0500 asked a question viz::viz3d setcamera crashes , any idea why ?
cv::viz::Viz3d myWindow("myWindow");
myWindow.setCamera(myWindow.getCamera());

Thank you very much.

2017-03-17 05:47:11 -0500 commented answer SolvePnp rvec suddenly begins to give opposite/unexpected values , is this observed before?

Thank you very much.Could you recomend a reliable code for conversion pls.

2017-03-16 18:08:15 -0500 asked a question SolvePnp rvec suddenly begins to give opposite/unexpected values , is this observed before?

I want to smooth motion of head by getting moving average of last 3 rvec and tvec vectors. But suddenly comes unexpected values of rvec,all values became negative :

3.15671 0.096776 0.32789 3.18738 0.0878376 0.336211 3.15005 0.0896022 0.337018 -3.06086 -0.0907339 -0.339971 -3.07529 -0.0846121 -0.343904 -3.08211 -0.0861078 -0.349439 ..... -3.03756 0.257243 -0.510188 -3.00875 0.241385 -0.505155 -3.0265 0.255717 -0.504729 3.13553 -0.306111 0.507516 3.12246 -0.339343 0.507442 3.11797 -0.409513 0.505041

2017-03-12 14:19:25 -0500 commented answer How can I position (translate) a viz 3d object (wmesh) on a specific x,y screen coordinates?

Yes your code makes fine moves but 0.5s of Vec3d(0.5, 0.5, 1) have nothing to do with screen coordinates x,y (pixels). At least I can not relate the two (0.5s and x,y):. Think I will replace a rectangle or triangle detected on screen with a 3d object. Thank you very much..

2017-03-12 13:00:13 -0500 commented question How can I position (translate) a viz 3d object (wmesh) on a specific x,y screen coordinates?

For instance I want to position 3d object on 150, 250 uv ,

Below code does not work that way ,I may be missing something :

viz::WMesh batman(viz::Mesh::load("C:/data/AE1400245-scaled.ply"));

Affine3d pose = Affine3d().translate(Vec3d(150, 250, 1.0));

myWindow.showWidget("img2", batman, pose);

2017-03-12 12:23:39 -0500 commented question How can I position (translate) a viz 3d object (wmesh) on a specific x,y screen coordinates?

Thanks a lot for the reply. Do you have any comment on the question ?

2017-03-12 07:53:25 -0500 received badge  Editor (source)
2017-03-12 07:52:17 -0500 asked a question How can I position (translate) a viz 3d object (wmesh) on a specific x,y screen coordinates?

The function may look like : GetTheTransformationVectors = (Input viz 3d object,input x,y, input hight,input width,output tvec,output rvec)

I have tried to use converto3dray,but I could not make it. There is no example about converto3dray on Google, may be I should use OpenGL instead of VIZ ?

Thank you very much.

2017-03-12 06:29:37 -0500 received badge  Enthusiast
2017-03-11 17:44:15 -0500 commented question Am I doing something wrong ? Rodrigues rvec1 to R , R to rvec2 ,rvec1 != rvec2.

I could not generate the same situation. Most probably I have done something wrong,sorry. Thank you very much.

2017-03-10 12:01:42 -0500 asked a question Am I doing something wrong ? Rodrigues rvec1 to R , R to rvec2 ,rvec1 != rvec2.
cout << rotation_vector << endl;
Mat rmat;
cv::Rodrigues(rotation_vector, rmat);
cv::Rodrigues(rmat, rotation_vector);
cout << rotation_vector << endl;

Thanks a lot.

2017-01-24 11:39:23 -0500 commented question Unexpected program flow ? Line 4 executes before line 3 !! In other words waitkey does not wait at least for capture.Win32 opencv3.0 c++ v.s.2015

Sorry for inconvenience.

2017-01-24 09:54:02 -0500 commented question Unexpected program flow ? Line 4 executes before line 3 !! In other words waitkey does not wait at least for capture.Win32 opencv3.0 c++ v.s.2015

I think 3.0.0 is the last one for win 32. After I see a "left.." on the screen I take my glasses off and press a key .But i see myself with eyeglasses on the captured image ? Thnks.

2017-01-24 03:44:55 -0500 asked a question Unexpected program flow ? Line 4 executes before line 3 !! In other words waitkey does not wait at least for capture.Win32 opencv3.0 c++ v.s.2015
namedWindow("DISPARITY", 0);
cout << "left....";
waitKey(0);
capture >> imgLeft;
2017-01-21 09:14:15 -0500 commented question what is wrong with the below code ? Crashes on "cv::projectPoints"line in release mode, does not crash in debug mode but "cv::projectPoints" function does not function.

It worked. Thnk you for the help.

2017-01-21 08:47:53 -0500 commented question what is wrong with the below code ? Crashes on "cv::projectPoints"line in release mode, does not crash in debug mode but "cv::projectPoints" function does not function.

Thnks for the reply. Win 32, c++, visual studio 2015.

2017-01-21 08:21:02 -0500 asked a question what is wrong with the below code ? Crashes on "cv::projectPoints"line in release mode, does not crash in debug mode but "cv::projectPoints" function does not function.
#include <opencv2/opencv.hpp>
#include <dlib/image_processing.h>
#include <dlib/gui_widgets.h>
#include <dlib/image_io.h>
#include <dlib/dir_nav.h>
#include <dlib/opencv.h>
#include <iostream>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_processing/render_face_detections.h>
#include <dlib/image_processing.h>

using namespace dlib;
using namespace std;
using namespace cv;

Scalar red(0, 0, 255);
Scalar green(0, 255, 0);
Scalar blue(255, 0, 0);
Scalar yellow(0, 255, 255);

double  FACE_DOWNSAMPLE_RATIO = 2.0;
int     SKIP_FRAMES = 2;

void nokta_koy(const int bas, const int bit, full_object_detection shape, std::vector<cv::Point2d>* par);

int main(int argc, char** argv)
{

cv::Mat frame;
cv::VideoCapture cap;
cap.open("video/Woman03.mp4");
// float 32 bit
// double 64 bit
std::vector<cv::Point2f> kpoints_2d;
kpoints_2d.push_back(cv::Point2f(40.00f, 31.57863f));
std::vector<cv::Point3f> kpoints_3d;
kpoints_3d.push_back(cv::Point3f(40.00f, 31.57863f,20.00f));

std::vector<cv::Point2d> points_2d;
std::vector<cv::Point3d> points_3d;
// Left eyebrow     17 = 21;
points_3d.push_back(cv::Point3d(-22.33010, 31.18483, 14.48982));
points_3d.push_back(cv::Point3d(-21.13250, 30.87293, 14.94626));
points_3d.push_back(cv::Point3d(-19.58109, 30.82237, 15.09587));
points_3d.push_back(cv::Point3d(-18.50974, 31.03186, 14.68483));
points_3d.push_back(cv::Point3d(-17.17672, 31.55783, 14.03172));
// Right eyebrow    22 = 26;
points_3d.push_back(cv::Point3d(-12.24395, 33.62098, 14.00198));
points_3d.push_back(cv::Point3d(-10.66202, 34.28308, 14.78618));
points_3d.push_back(cv::Point3d(-9.45469, 35.27701, 15.08884));
points_3d.push_back(cv::Point3d(-8.72852, 36.25310, 15.00331));
points_3d.push_back(cv::Point3d(-8.10672, 37.56454, 14.63086));
// Nose bridge      27 = 30;
points_3d.push_back(cv::Point3d(-14.73220, 32.31916, 12.17609));
points_3d.push_back(cv::Point3d(-14.39165, 31.89311, 9.46658));
points_3d.push_back(cv::Point3d(-13.64990, 30.19387, 6.50432));
points_3d.push_back(cv::Point3d(-13.63577, 29.96962, 5.79795));
// Lower nose       31 = 35;
points_3d.push_back(cv::Point3d(-16.76307, 31.30655, 4.26300));
points_3d.push_back(cv::Point3d(-15.79540, 31.64108, 4.09090));
points_3d.push_back(cv::Point3d(-14.49324, 31.98343, 3.51114));
points_3d.push_back(cv::Point3d(-13.32834, 32.65988, 3.99250));
points_3d.push_back(cv::Point3d(-12.51400, 33.40477, 4.02762));
// Let eye          36 = 41;
points_3d.push_back(cv::Point3d(-22.88804, 32.08460, 11.35419));
points_3d.push_back(cv::Point3d(-21.30383, 31.52723, 11.85955));
points_3d.push_back(cv::Point3d(-19.53373, 31.91928, 12.00906));
points_3d.push_back(cv::Point3d(-18.71059, 32.92976, 11.02460));
points_3d.push_back(cv::Point3d(-19.47160, 32.26871, 10.42905));
points_3d.push_back(cv::Point3d(-21.24849, 31.57863, 10.44351));
// Right eye        42 = 47;
points_3d.push_back(cv::Point3d(-12.63167, 35.37018, 10.82787));
points_3d.push_back(cv::Point3d(-10.99759, 35.54239, 11.70073));
points_3d.push_back(cv::Point3d(-9.34893, 36.14645, 12.01417));
points_3d.push_back(cv::Point3d(-8.69870, 37.68277, 11.43927));
points_3d.push_back(cv::Point3d(-9.65058, 36.23913, 10.72708));
points_3d.push_back(cv::Point3d(-11.07719, 35.74884, 10.58645));

cap >> frame;
cv::resize(frame, frame, cv::Size(), double(1.0 / FACE_DOWNSAMPLE_RATIO), double(1 ...
(more)