vision

Automl image prediction problems

怎甘沉沦 提交于 2019-12-13 03:45:27
问题 I get different results when using a model to get image annotation predictions from web UI and from API. Specifically, using the web UI I actually get predictions, but using the API I get nothing - just empty output. It's this one that gives nothing using the API: https://cloud.google.com/vision/automl/docs/predict#automl-nl-example-cli Specifically, the return value is {} - an empty JS object. So, the call goes through just fine, there's just no output. Any hints as to how to debug the issue

Projection of a image from inside a cylinder to a plane 2D [Matlab]

无人久伴 提交于 2019-12-12 09:07:43
问题 With a camera inside a cylinder I capture a image. I want to transform that image into a plane 2d. The image inside the cylinder have a lot of dots which forms a grid. What I tried to do was estimating the transformation. With blob analysis I can detect the center of each point and obtain the coordinates in pixels. I save this in matrix called ImCilynder. After that i create a matrix with coordinates of that points in the plane with the name Im2d. I calculate the transformation (H) solving

Detecting incomplete rectangles (missing corners/ short endges) in OpenCV

五迷三道 提交于 2019-12-11 12:31:56
问题 I've been working off a variant of the opencv squares sample to detect rectangles. It's working fine for closed rectangles, but I was wondering what approaches I could take to detect rectangles that have openings ie missing corners, lines that are too short. I perform some dilation, which closes small gaps but not these larger ones. I considered using a convex hull or bounding rect to generate a contour for comparison but since the edges of the rectangle are disconnected, each would read as a

C# ColorTranslator.FromHtml() throws Exception for “Grey” (is not a valid value for int32)

扶醉桌前 提交于 2019-12-11 04:24:41
问题 I am using the Microsoft Cognitive Services / Vision API in my application. Vision API returns colours as string - either HEX (without the "#" prefix), or as a Name. In order to convert this to a System.Drawing.Color that I can use as a panel background color, I am using the below code: // Hex Color Format Regex hex = new Regex("^#(?:[0-9a-fA-F]{3}){1,2}$"); // Colours System.Drawing.Color accent = new System.Drawing.Color(); System.Drawing.Color fore = new System.Drawing.Color(); System

Person Eye Gaze Detection: Identify where the user is looking at on a board

人走茶凉 提交于 2019-12-10 10:58:10
问题 I am working on a project where there is board and camera on top of it. The objective is to identify students who are looking at the board and also identify the location of their sight (on the board). Currently, I am planning to approach the challenge in following parts: Identify Students faces Identify ROI of their both eye from the face detected Identify the location of their eye pupil/iris center and head pose Decide whether the person is looking at the board or not? If yes, which area of

How to get the current frame (as a Bitmap) for android facedetector in a Tracker event?

∥☆過路亽.° 提交于 2019-12-10 03:26:37
问题 I have the standard com.google.android.gms.vision.Tracker example successfully running on my android device and now i need to postprocess the image to find the iris of the current face which has been notified in the event methods of the Tracker. So, how do i get the Bitmap frame which matches exactly the com.google.android.gms.vision.face.Face i received in the Tracker events? This also means that the final bitmap should match the webcam resolution and not the screen resolution. One bad

Bilateral filter [closed]

假如想象 提交于 2019-12-09 12:41:40
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . How do I implement a bilateral filter, given a gaussian filter? 回答1: A simple bilateral filter can be defined as Inew (x,y) = Summation(j=y-n/2; j<=y+n/2)Summation(i=x-m/2; j<=x+m/2)w(i,j,x,y)I(i,j) where common

Color overlaying algorithm

大城市里の小女人 提交于 2019-12-08 13:39:33
问题 I'm looking for an algorithm to overlay a color on top of existing picture. Something similar to the following app (wall painter): http://itunes.apple.com/us/app/wall-painter/id396799182?mt=8 I want a similar functionality so I can paint walls in an existing picture and change them to a different color. I can work both in yuv or rgb mode. 回答1: To successfully paint the walls in a picture, you have to do two steps: Find the boundary of the wall within the picture (select the part of the image

Cleaning a scanned image in opencv

断了今生、忘了曾经 提交于 2019-12-08 12:48:37
问题 I'm trying to denoise the image then extract the skeleton of an image containing a handwritten line. I want the line to be continuous and solid but the method I use fails to do that and relatively slow. Here's the original image: Original Image Morphed On the morphed image, you can see a small island at the lower right. The thinned image from above shows the line is broken near the end. Any other method to achieve desired result? My code looks like this: int morph_elem = 2; int morph_size =

New Android Face API limitations

╄→尐↘猪︶ㄣ 提交于 2019-12-06 10:57:56
问题 I have been testing the new Face API realesed for android, and noticed even with "ACCURATE_MODE" enabled, it doesn't detect faces that old FaceDetector API used to detect, Also i would like to know the effect of Bitmap coding "RGB_565" vs "ARGB_888" in producing the results. 回答1: Update: The issue was that the face detector is set to only detect faces that are at least 10% by default (as a performance optimization). The new Google Play Services 8.4 release supports setting this minimum face