Ask Your Question

Jasdeep's profile - activity

2021-01-17 12:02:27 -0600 received badge  Notable Question (source)
2020-11-11 16:38:23 -0600 received badge  Famous Question (source)
2020-09-14 10:51:20 -0600 received badge  Notable Question (source)
2019-10-17 09:06:54 -0600 received badge  Popular Question (source)
2019-05-27 08:21:56 -0600 received badge  Notable Question (source)
2018-02-28 19:41:43 -0600 received badge  Popular Question (source)
2018-02-12 05:10:35 -0600 received badge  Popular Question (source)
2017-10-03 15:44:36 -0600 received badge  Famous Question (source)
2017-09-11 03:29:40 -0600 received badge  Popular Question (source)
2017-03-31 05:30:34 -0600 received badge  Notable Question (source)
2016-09-02 12:52:47 -0600 received badge  Notable Question (source)
2016-04-14 02:57:26 -0600 received badge  Popular Question (source)
2016-04-06 00:29:07 -0600 received badge  Popular Question (source)
2015-06-07 13:19:54 -0600 asked a question how to detect and remove shadow of a object

hey everyone,

I am working to detect and remove shadow of a object from in image. any suggestion would be appreciated .

Thanks

2015-05-18 02:28:52 -0600 received badge  Necromancer (source)
2015-05-18 02:28:52 -0600 received badge  Self-Learner (source)
2015-05-18 01:56:21 -0600 answered a question calculate distance between two objects in a image using single camera

solved this problem,

by calculating distance between two coordinates of points using Pythagoras in pixels and just convert it into measuring units in (cm) , this solve my issue.

2015-05-18 01:52:13 -0600 received badge  Editor (source)
2015-05-18 01:51:08 -0600 asked a question queueBuffer: error queuing buffer to SurfaceTexture, -32

hi everyone,

i am getting this error on android device, when i open app green screen is displayed for few seconds then app crashes, here's the error log:

05-18 12:10:03.628: E/Surface(162): queueBuffer: error queuing buffer to SurfaceTexture, -32
05-18 12:10:03.628: E/MtkCam/DisplayClient(162): (30651)[enquePrvOps] mpStreamOps->enqueue_buffer failed:
status[Broken pipe(32)], rpImgBuf(0xb7739ac8,0xad019000) (enquePrvOps)
{#368:mediatek/hardware/mtkcam/v1/client/DisplayClient/DisplayClient.Stream.cpp}
05-18 12:10:03.629: E/Surface(162): queueBuffer: error queuing buffer to SurfaceTexture, -32
05-18 12:10:03.629: E/MtkCam/DisplayClient(162): (30651)[enquePrvOps] mpStreamOps->enqueue_buffer failed:
status[Broken pipe(32)], rpImgBuf(0xb793d9c8,0xae4ab000) (enquePrvOps)
{#368:mediatek/hardware/mtkcam/v1/client/DisplayClient/DisplayClient.Stream.cpp}
05-18 12:10:03.668: E/(695): Could not open '/data/data/hotplug/cmd'
05-18 12:10:03.668: E/(695): error : 2, No such file or directory
05-18 12:10:03.900: E/AudioService(695): handleConfigurationChanged() createInstance IAudioServiceExt fail
05-18 12:10:04.045: E/(695): Could not open '/data/data/hotplug/cmd'
05-18 12:10:04.045: E/(695): error : 2, No such file or directory
05-18 12:10:04.061: E/(776): appName=com.android.systemui, acAppName=/system/bin/surfaceflinger
05-18 12:10:04.061: E/(776): 0
05-18 12:10:04.135: E/(695): Could not open '/data/data/hotplug/cmd'
05-18 12:10:04.135: E/(695): error : 2, No such file or directory

any help would be appreciated , Thanks

2015-05-16 03:03:13 -0600 commented question Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

basically converting :http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/bounding_rects_circles/bounding_rects_circles.html to android using jni ,c++,opencv

JNIEXPORT jint JNICALL Java_com_demo_app_Opencvpart_convertNativeGray(JNIEnv*, jobject, jlong addrRgba, jlong addrGray) {
    std::vector<std::vector<cv::Point> > contours;
    std::vector<Point2f> center(contours.size() );
    std::vector<float> radius(contours.size() );
    for( int i = 0; i < contours.size(); i++ ) {
        cv::approxPolyDP(Mat(contours[i]),Mat(contours_poly[i]), 3, true );
        boundRect[i] = boundingRect( Mat(contours_poly[i]) );
        minEnclosingCircle(Mat(contours_poly[i]),center[i],radius[i]);
    }
2015-05-16 02:04:30 -0600 commented question Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

removed , but getting same error..i have tried:

  1. std::vector<point_<float> > center(contours.size() );
  2. std::vector<point2f> center(contours.size() );

for

minEnclosingCircle(Mat(contours_poly[i]),center[i],radius[i]); same invalid arguments error

2015-05-16 00:51:08 -0600 commented question Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

nope , its not working...

std::vector<point_<float>&> center(contours.size() ); for( int i = 0; i < contours.size(); i++ ) {

              **minEnclosingCircle(Mat(contours_poly[i]),center[i],radius[i]);**

         }

same error :Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

2015-05-15 08:03:47 -0600 asked a question Invalid arguments Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)

hi ,

i am using this method to detect circles using contours in android jni ,

 std::vector<cv::Point2f> center(contours.size() );
 std::vector<cv::vector<cv::Point> > contours_poly( contours.size() );
 std::vector<float>radius( contours.size() ); 
 for(int i=0;i<contours.size;i++){
      minEnclosingCircle(Mat(contours_poly[i]),cv::Point_<float>(center[i]),radius[i]); 
 }

but getting this error : Invalid arguments ' Candidates are: void minEnclosingCircle(const cv::_InputArray &, cv::Point_<float> &, float &)'

thanks

2015-05-14 04:20:02 -0600 commented question Function 'proxPolyDP' could not be resolved

aah yes , i have discovered that lately. thanks for your answer :)..

2015-05-13 07:44:59 -0600 asked a question Function 'proxPolyDP' could not be resolved

hi everyone,

i am getting this error in eclipse jni part of my android application, detecting circle using contours

thanks in-advace

2015-04-15 01:18:36 -0600 asked a question calculate angle between camera and object using single camera

Hi everyone,

i want to measure angle between camera and object using single camera . any suggestions would be appreciated.

Thnx

2015-03-20 03:47:54 -0600 commented answer how to find world coordinates of a object in a image using single camera

my current goal is also the same , " to measure distance b/w 2 objects on same plane using single camera." i have managed to calibrate camera , now want to measure distance by getting world coordinates for objects and applying simple Pythagoras distance measuring formula : d=sqrt( (x1-x2)^2 +(y1-y2)^2 ) , as shown in the link. thanks

2015-03-20 02:58:16 -0600 commented answer how to find world coordinates of a object in a image using single camera

yes, the size of the object is known.

link below shows steps to get world coordinates but don't know what kind of camera is used single or stereo vision.

http://stackoverflow.com/questions/16...

2015-03-20 01:25:07 -0600 asked a question how to find world coordinates of a object in a image using single camera

hi ,

want to find world coordinate of a ball in a image , already done camera calibration what i'll do next? (using single camera)

thanks

2015-03-06 07:12:24 -0600 received badge  Student (source)
2015-03-05 04:21:42 -0600 asked a question calculate focal length using camera calibration

Hi everyone,

I need to calculate single focal length f, not fx nor fy from camera matrix in calibration.

thanks

2015-03-05 04:02:28 -0600 received badge  Enthusiast
2015-03-03 00:24:13 -0600 commented question calculate distance between two objects in a image using single camera

hi everyone ,

thanks for your suggestions but still not able to solve this problem.

now i am using camera calibration to determine the relation between the camera’s natural units (pixels) and the real world units (mm), could anybody tell me what's the relation in them so that i can find distance between two balls.

thanks

2015-02-19 02:49:20 -0600 commented question calculate distance between two objects in a image using single camera

i have coordinates of center of two detected circle (x1,y1) and (x2,y2) by pythagoras theorem , d=sqrt( (x2-x1)^2 + (y2-y1)^2 ) and converting result into cm (converting pixels to cm)

2015-02-19 02:07:18 -0600 asked a question calculate distance between two objects in a image using single camera

i am calculating distance between two balls in a image. first i have detected balls using hough transform circle and get their center point coordinates and applied distance measuring formula to get distance, but not getting nearby to the solution. say if two balls are 13 cm apart then i am getting 5.6 cm...