最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Overlay HTML 5 input type file,camera with an imagetext from HTML web page - Stack Overflow

programmeradmin2浏览0评论

I am using HTML 5 input type controls to take capture:

<input type="file" id="take-picture" accept="image/*"
style="position:absolute;top:-50;left:-50;"  />

Using this I am able to see the camera and able to take the capture, but I want to show text or an image on top of the camera live feed. ?

  1. How to do that
  2. Is it possible to show the camera live in a div control area in HTML page?

I am using HTML 5 input type controls to take capture:

<input type="file" id="take-picture" accept="image/*"
style="position:absolute;top:-50;left:-50;"  />

Using this I am able to see the camera and able to take the capture, but I want to show text or an image on top of the camera live feed. ?

  1. How to do that
  2. Is it possible to show the camera live in a div control area in HTML page?
Share Improve this question edited Jun 21, 2013 at 11:23 Corey Ballou 43.6k8 gold badges65 silver badges77 bronze badges asked May 23, 2013 at 9:51 AvinashAvinash 431 gold badge1 silver badge6 bronze badges 1
  • any updates on this??? – ismaestro Commented Dec 13, 2017 at 12:12
Add a ment  | 

2 Answers 2

Reset to default 3

You just have to add an overlaying div like in this sample:

http://jsfiddle/XbZMX/ {click on 'iniciar' button}

#overlay{color:red;position:absolute}

You can show the live camera with the getusermedia function of HTML5. You should check this : http://www.html5rocks./en/tutorials/getusermedia/intro/

Once you get it working, you can add some hover text with CSS. Like you do with images

发布评论

评论列表(0)

  1. 暂无评论