roi

How to to find location (ROI) of a recognized object in tensorflow

烂漫一生 提交于 2019-12-06 04:30:50
问题 I was using the tensorflow android example which has a placeholder for the location of a ROI (see tensorflow/examples/android/src/.../Classifier.java), but it is not used. I would like to be able to locate the ROI of the classified object. I looked through the code, but it wasn't obvious how the location could be determined. Does tensorflow support this? 回答1: Unfortunately that placeholder is not populated, and actually determining the region of interest of an object is still a hard research

How to get the actual point when I touch on screen?

不问归期 提交于 2019-12-05 13:38:47
I am developing an android application where i can select region of interest(ROI) when i touch two points on screen. However, when i try to change the resolution of image, the thing goes weird. What it shows does not same with what i touched. Here are my codes, MainActivity.java public class MainActivity extends Activity implements CvCameraViewListener2, OnTouchListener { private static final String TAG = "OCVSample::Activity"; private Camera_View mOpenCvCameraView; private List<Size> mResolutionList; private MenuItem[] mResolutionMenuItems; private SubMenu mResolutionMenu; private MenuItem

Add padding to object in 4-channel image

耗尽温柔 提交于 2019-12-05 07:26:48
问题 I have a 4-channel image (.png, .tif) like this one: I am using OpenCV, and I would like to add padding of type BORDER_REFLECT around the flower. copyMakeBorder is not useful, since it adds padding to the edges of the image. I can add certain padding if I split the image in bgr + alpha and apply dilate with BORDER_REFLECT option on the bgr image, but that solution spoils all the pixels of the flower. Is there any way to perform a selective BORDER_REFLECT padding addition on a ROI defined by a

opencv/python: Draw image over a webcam stream [duplicate]

偶尔善良 提交于 2019-12-05 02:49:10
问题 This question already has answers here : overlay a smaller image on a larger image python OpenCv (6 answers) Closed 2 years ago . Hey everyone I'm trying to make a game using my webcam where I need some objects to fall down the screen while Im streaming video with my webcam (that stream being my background). The question is: how do I draw the image over this background? I know how to capture each frame and that I have to draw the image over the frames, but using what? For this I am using

OpenCV: howto use mask parameter for feature point detection (SURF)

只谈情不闲聊 提交于 2019-12-04 22:31:48
问题 I want to limit a SurfFeatureDetector to a set of regions (mask). For a test I define only a single mask: Mat srcImage; //RGB source image Mat mask = Mat::zeros(srcImage.size(), srcImage.type()); Mat roi(mask, cv::Rect(10,10,100,100)); roi = Scalar(255, 255, 255); SurfFeatureDetector detector(); std::vector<KeyPoint> keypoints; detector.detect(srcImage, keypoints, roi); // crash //detector.detect(srcImage, keypoints); // does not crash When I pass the "roi" as the mask I get this error:

MATLAB如何绘制以R2018b开头的多边形?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 21:15:37
创建可定制的多边形ROI 折叠全部页面 句法 roi = drawpolygon roi = drawpolygon(ax) roi = drawpolygon( ___,Name,Value) 描述 例 roi = drawpolygon 创建一个 Polygon ROI对象,并允许在当前轴上交互式绘制多边形感兴趣区域(ROI)。 要绘制ROI,请将指针放在图像上。 光标变为fl形。 单击以绘制多边形的顶点,然后拖动以绘制顶点之间的线。 要完成ROI,请双击鼠标按钮。 有关使用ROI的更多信息,包括键盘快捷键和上下文菜单选项,请参阅 提示 。 注意 drawpoint 是用于创建 Polygon ROI对象 的便捷功能 。 如果直接调用来创建ROI对象,则 Polygon 必须调用 draw 对象函数以启用ROI的交互绘制。 相反,该 drawpolygon 函数创建ROI对象并 draw 为您 调用该 对象函数。 无论采用哪种方式创建ROI,都可以使用对象属性,对象功能和事件通知来自定义其外观和行为。 有关使用这些功能的更多信息,请参见 技巧 。 roi = drawpolygon( ax ) 在所指定的轴上创建ROI ax 。 roi = drawpolygon( ___, Name,Value ) 使用一个或多个名称/值对修改ROI的外观和行为。 未指定的名称

Region of Interest in nighttime vehicle detection

浪子不回头ぞ 提交于 2019-12-04 16:57:06
I am developing a project of detecting vehicles' headlights in night scene. I am working on a demo on MATLAB. My problem is that I need to find region of interest (ROI) to get low computing requirement. I have researched in many papers and they just use a fixed ROI like this one, the upper part is ignored and the bottom is used to analysed later. However, if the camera is not stable, I think this approach is inappropriate. I want to find a more flexible one, which alternates in each frame. My experiments images are shown here: If anyone has any idea, plz give me some suggestions. I would turn

How to to find location (ROI) of a recognized object in tensorflow

对着背影说爱祢 提交于 2019-12-04 10:23:09
I was using the tensorflow android example which has a placeholder for the location of a ROI (see tensorflow/examples/android/src/.../Classifier.java), but it is not used. I would like to be able to locate the ROI of the classified object. I looked through the code, but it wasn't obvious how the location could be determined. Does tensorflow support this? Pete Warden Unfortunately that placeholder is not populated, and actually determining the region of interest of an object is still a hard research problem. We don't currently have a released example of a model that can do that in TensorFlow,

How do you estimate a ROI for clearing technical debt?

醉酒当歌 提交于 2019-12-04 07:48:03
问题 I'm currently working with a fairly old product that's been saddled with a lot of technical debt from poor programmers and poor development practices in the past. We are starting to get better and the creation of technical debt has slowed considerably. I've identified the areas of the application that are in bad shape and I can estimate the cost of fixing those areas, but I'm having a hard time estimating the return on investment (ROI). The code will be easier to maintain and will be easier

Draw multiple regions on an image- imfreehand

半世苍凉 提交于 2019-12-04 04:06:15
问题 I'd like to manually draw multiple regions on an image to create a binary mask of the drawn regions (ground truth). I attached the code to do it using imfreehand that does the job for one region, but once in release the mouse button, binary mask for that single region is displayed. Is there a way to draw multiple regions and then display the binary mask? (Calling imfreehand multiple times may not work because the number of regions varies with each image). h= imfreehand(); h = imfreehand(gca);