如何检测图像的某些部分 [英] How to detect some parts of an image

查看:66
本文介绍了如何检测图像的某些部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨CP。



我创建了一个带有特殊图像的TopMost应用程序表单,我将表单设置为半透明但由于高质量(分辨率)我将不透明度设为0.1%,这样我就可以轻松地看到它。



现在我想要做的就是能够检测到此图片或其视频中的部分。我想检查一个视频是否有这种水印图像或其部分,如果检测到图像/其部分(像素)弹出一条消息。



这将是一个完全不同的项目,因为它有这个图像。



我怎样才能实现这一点,我已经检查了人脸检测,但现在问题是这张照片可能无法检测到视频显示一些明亮的灯光,因为我想要检测的图像上有一些白线和绿色代码,所以我认为人脸检测将尝试检测整个图像这是一个问题,因为我想要检测的图像通过视频可能无法完全或完全看到它的所有部分,因为当视频在白天时视频颜色会使图像难以通过强光检测到。


另外我不确定如何使用VB.NET在视频中使用面部检测技术检测到这一点,整个想法是创建一个视频播放器,播放此视频然后de在那里看到这个图像。



有什么想法吗?



我尝试了什么:



我已经检查了面部检测技术,但我不知道如何应用它。

Hi CP.

I've created a form which is a TopMost application with a special image and I made the form be semi-transparent but because of high quality(resolution) I made the Opacity to be 0.1% so that I can see through it easily.

Now what I want to do now is to be able to detect this image or its parts from a video. I want to check if a video has this sort of watermark image or its parts, If the image/its parts(pixels) are detected popup a message.

This will be a complete different project as that which has this image on.

How can I achieve that, I've checked the face detection but now the problem is that this picture may not be detected when a video shows some bright lights as the image I want to detect has some white lines and greenish code on it so I think face detection will try to detect the entire image which is a problem because the image I want to detect may not fully or totally be visible all parts of it through a video because of the video colors when a video is in daylight this will make the image be not easily detected through the bright light.

Also I'm not sure how I can detect this using face detection technique in a video using VB.NET, The whole idea is to create a video player which will play this video then detect this image there.

Any idea?

What I have tried:

I've checked with face-detection technique but I have no idea how I could apply it to this.

推荐答案

您的项目是一项棘手的任务。出于性能原因,您应该考虑在C ++中实现视频检测代码。



您必须使用某些图形库并对边缘或线条检测进行预处理。



可能的方法是使用OpenCV,如文章,处理基于内容的图像检索的某些方面。



挖掘 OpenCV的示例代码,用于进一步可能出现的情况,如船体,边缘等......
Your project is a tricky task to do. For performance reasons you really should consider implementing the video detection code in C++.

You must work with some graphics library and preprocess the image like with edge or line detection.

A possible way to go is with OpenCV as described int this article which handles some aspects of content based image retrieval.

Dig in the sample code of OpenCV for further possible scenarios like hull, edges and so on...


这篇关于如何检测图像的某些部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆