开发者

Select part of an image

I want to identify things in an image by 'drawing' a rectangle round them. E.g. to select a face in a crowd.开发者_StackOverflow中文版 A sign in a street etc.

How to use the mouse events to a) mousedown to start select area Grow a 'rectangle' to follow the mouse movements. b) mouseup to end selection. Retrieve the xy, xy of the box for use in further processing. I'd like x and y values of the rectangle to be relative to the img element with id value 'image' if that's possible please.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜