Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Image selection method and device

A technology in images and pictures, applied in the computer field, can solve problems such as the judgment range is too wide

Active Publication Date: 2018-04-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main disadvantage of the existing image selection scheme is that the judgment range is too wide

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image selection method and device
  • Image selection method and device
  • Image selection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] remove Figure 1a and Figure 1b In addition to the existing image selection scheme shown, another commonly used image selection scheme is to determine the pixel of the image corresponding to the clicked position.

[0039] More specifically, it is to determine whether the transparency (alpha value) in the pixel is greater than 0, that is, to determine whether the clicked position is transparent, if the alpha value is greater than 0, the clicked position is opaque, and the image is considered to be selected, otherwise the image is considered not chosen. An example process can be found in Figure 1c shown.

[0040] Figure 1c The technical solution shown has the following disadvantages:

[0041] (1) poor versatility

[0042] In the game, the above image selection scheme needs to obtain the pixel value of the corresponding position of the image in real time while the game is running, which is complex to implement. In different types of projects, the development enviro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and a device for selecting an image so as to accurately judge whether the image is selected. In the embodiment of the invention, an edge vertex coordinate set of the image in a picture is recorded by using a configuration file, and a selected area of the picture is demarcated by a polygon surrounded by edge vertexes in the edge vertex coordinate set. After positional information is input by an electronic equipment user, firstly coordinates are transformed, and then whether the coordinates corresponding to the positional information are positioned in the polygon formed by the edge vertexes in the target edge vertex coordinate set is judged, so that whether the image corresponding to the target edge vertex coordinate set is selected in judged. According to the polygon in the technical scheme provided by the embodiment of the invention, compared with a minimum circumscribed rectangle in an existing technical scheme, the judging range is decreased, so that the click operation of the electronic equipment user is more targeted, and the selection of the image is more accurate.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an image selection method and device. Background technique [0002] During the operation of the electronic device, it is often necessary to click and select an image. For example, in a game, in order to realize the interaction between the player and the game, it is usually necessary for the player to click and select an image on the game interface with a mouse or a finger. On this basis, the player can perform operations such as dragging and deleting the selected image. [0003] Among existing image selection schemes, see Figure 1a , is based on the smallest circumscribed rectangle of the image. When the clicked position falls within the range of the smallest circumscribed rectangle, it is considered that the image has been clicked. An exemplary flow of existing image selection schemes can be found in Figure 1b shown. [0004] The main shortcoming of existing image select...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0484
CPCG06F3/04845
Inventor 赵毅冯宇
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products