开发者

Select part of an image

开发者 https://www.devze.com 2022-12-28 21:59 出处:网络
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.

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

精彩评论

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