简体   繁体   English

单击图像的一部分,找到匹配的图像

[英]find matching image on click of part of the image

I am looking for a bestway to find the matching image (out of set of stored images) on click of the part of image. 我正在寻找一种最佳方法,只需单击图像的一部分即可找到匹配的图像(从存储的图像集中)。

For example if I have image of person holding pen, if I click on pen portion of the image, i should be able to retrieve the pen image from the set of predefined images in this case i should be able to retrieve pen image if exists. 例如,如果我有握笔的人的图像,如果我单击图像的笔部分,则我应该能够从一组预定义图像中检索笔图像,在这种情况下,我应该能够检索笔图像(如果存在)。

I am willing to know what java/javascript based framework is suitable for this and best way of doing it. 我愿意知道哪种基于Java / javascript的框架适合此方法以及最佳方法。

Thanks in advance for all the help. 在此先感谢您提供的所有帮助。

The area tag was designed for projects like this. 区域标签是为此类项目设计的。 You can use the area tag to specify a region of your image that when clicked will go to a link or run a javascript function to bring up the specific image. 您可以使用area标签指定图像的区域,单击该区域可以单击链接或运行javascript函数以显示特定图像。 Here is an example . 这是一个例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM