Ask Your Question

fadkabli's profile - activity

2020-09-05 13:17:36 -0600 received badge  Popular Question (source)
2018-03-31 10:30:59 -0600 asked a question Need help to draw circle

Need help to draw circle I have applied feature detector and get following result: But i want to draw circle on roots

2018-03-26 20:34:38 -0600 edited question contour feature detector not giving desired result

contour feature detector not giving desired result I have Applied contour (for feature detection) but this don't give me

2018-03-26 20:34:01 -0600 edited question contour feature detector not giving desired result

need help with feature detection I have Applied contour (for feature detection) but this don't give me result. Sobel8u,

2018-03-26 20:32:41 -0600 edited question contour feature detector not giving desired result

need help with feature detection I have Applied contour (for feature detection) but this don't give me result. Sobel8u,

2018-03-26 20:27:10 -0600 edited question contour feature detector not giving desired result

need help with feature detection I have Applied contour (for feature detection) but this don't give me result. Sobel8u,

2018-03-26 07:44:44 -0600 edited question contour feature detector not giving desired result

need help to detect special structure I need some help that how can i detect that U point and place circle on it. -tried

2018-03-26 06:45:32 -0600 edited question contour feature detector not giving desired result

need help to detect special structure I need some help that how can i detect that U point and place circle on it. -tried

2018-03-25 10:00:55 -0600 received badge  Citizen Patrol (source)
2018-03-24 16:20:01 -0600 answered a question Scipy percentile_filter to opencv

You can take help from This: http://www.scipy-lectures.org/packages/scikit-image/index.html

2018-03-24 13:45:08 -0600 answered a question detect lines on xray image

Please check this for Details. It will be very helpfull: http://www.jatit.org/volumes/Vol64No1/28Vol64No1.pdf

2018-03-24 10:27:08 -0600 edited question contour feature detector not giving desired result

need help to detect special structure I need some help that how can i detect that U point and place circle on it. -tried

2018-03-24 10:16:03 -0600 asked a question contour feature detector not giving desired result

need help to detect special structure I need some help that how can i detect that U point and place circle on it. -tried

2017-12-07 06:53:04 -0600 commented question OpenCV-3.3.1 installation error on Mac

are u using mac_ports or brew ?

2017-12-07 06:23:35 -0600 received badge  Enthusiast
2017-12-01 16:38:47 -0600 commented answer Find distance between two eyes

@eshirima thanx

2017-11-26 05:45:31 -0600 edited question Find distance between two eyes

Find distance between two eyes I have worked on harcascade face detection and eye detection. it works well now i am stuc

2017-11-26 05:18:46 -0600 received badge  Supporter (source)
2017-11-25 18:14:08 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist

2017-11-25 18:13:17 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist

2017-11-25 18:12:43 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import dist

2017-11-25 18:12:10 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist

2017-11-25 18:10:41 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist def mi

2017-11-25 18:10:03 -0600 edited answer Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist def midpoint(ptA, ptB)

2017-11-25 18:08:45 -0600 answered a question Find distance between two eyes

import cv2 import math import numpy as np from scipy.spatial import distance as dist def midpoint(ptA, ptB): return

2017-11-25 17:17:33 -0600 commented answer Find distance between two eyes

i'am confused using above approach in harcascade.

2017-11-25 17:16:37 -0600 commented answer Find distance between two eyes

def calculateDistance(ex,ey,ew,eh): dist = math.sqrt((ex - ew)2 + (ey - eh)2) return distenter code here

2017-11-25 17:15:02 -0600 received badge  Scholar (source)
2017-11-24 03:41:39 -0600 marked best answer Find distance between two eyes

I have worked on harcascade face detection and eye detection. it works well now i am stuck finding distance between two eyes. please provide me some logic or piece to code to achive this.

import cv2 
import math 
import numpy as np from scipy.spatial 
import distance as dist

            def midpoint(ptA, ptB):
                return ((ptA[0] + ptB[0]) * 0.5, (ptA[1] + ptB[1]) * 0.5)

            def calculateDistance(ex,ey,ew,eh):
                 dist = math.sqrt((ex - ew)**2 + (ey - eh)**2)
                 return dist
            # print calculateDistance(x1, y1, x2, y2)

            # using harcasde  for face
            face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
            # https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_eye.xml
            eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml')

            # read both the images of the face and the glasses
            image = cv2.imread('example_2.jpg')![image description](/upfiles/15116549809854402.png)

            gray    =   cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

            centers=[]
            faces = face_cascade.detectMultiScale(gray,1.3,5)

            #check for the face detected
            for (x,y,w,h) in faces:

                #create two Regions of Interest on face.
                roi_gray = gray[y:y+h, x:x+w]
                roi_color = image[y:y+h, x:x+w]
                eyes = eye_cascade.detectMultiScale(roi_gray)

                # Store the cordinates of eyes in the image to the 'center' array
                for (ex,ey,ew,eh) in eyes:
                    centers.append((x+int(ex+0.5*ew), y+int(ey+0.5*eh)))
                    # Point2f eye1, eye2;
                    # double res = cv::norm(eye1-eye2);

                    #creates rectangle with 'colour'
                    cv2.rectangle(roi_color,(ex,ey),(ex+ew,ey+eh),(0,255,0),2)


            overlay_img = np.ones(image.shape,np.uint8)*255

            #Create a mask and generate it's inverse.
            gray_glasses    =   cv2.cvtColor(overlay_img,   cv2.COLOR_BGR2GRAY)
            ret,    mask    =   cv2.threshold(gray_glasses, 110,    255,    cv2.THRESH_BINARY)
            mask_inv    =   cv2.bitwise_not(mask)
            temp    =   cv2.bitwise_and(image,  image,  mask=mask)
            temp2   =   cv2.bitwise_and(overlay_img,    overlay_img,    mask=mask_inv)
            final_img   =   cv2.add(temp,   temp2)

            # imS = cv2.resize(final_img, (1366, 768))
            # print calculateDistance(ex,ey,ew,eh)
            cv2.imshow('Final  Result', final_img)
            cv2.waitKey()
            cv2.destroyAllWindows()
2017-11-23 13:54:31 -0600 edited question Find distance between two eyes

Find distance between two eyes import cv2 import numpy as np using harcasde for face face_cascade = cv2.CascadeClassi

2017-11-23 13:52:20 -0600 received badge  Editor (source)
2017-11-23 13:52:20 -0600 edited question Find distance between two eyes

Find distance between two eyes I have worked on harcascade face detection and eye detection. it works well now i am stuc

2017-11-23 13:36:03 -0600 commented question Find distance between two eyes

I have used euclidean distance but it is not showing me proper result. i came up from nose to eye or ear to eye.

2017-11-23 13:33:51 -0600 commented question Find distance between two eyes

Store the cordinates of eyes in the image to the 'center' array for (ex,ey,ew,eh) in eyes: centers.append((x+int(ex

2017-11-23 13:32:48 -0600 commented question Find distance between two eyes

import cv2 import numpy as np using harcasde for face face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_d

2017-11-23 13:08:33 -0600 asked a question Find distance between two eyes

Find distance between two eyes I have worked on harcascade face detection and eye detection. it works well now i am stuc