CN104978739A - Image object selection method and apparatus - Google Patents

Image object selection method and apparatus Download PDF

Info

Publication number
CN104978739A
CN104978739A CN201510212158.XA CN201510212158A CN104978739A CN 104978739 A CN104978739 A CN 104978739A CN 201510212158 A CN201510212158 A CN 201510212158A CN 104978739 A CN104978739 A CN 104978739A
Authority
CN
China
Prior art keywords
bitmap
chosen position
selection operation
effective
target scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510212158.XA
Other languages
Chinese (zh)
Other versions
CN104978739B (en
Inventor
赵毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510212158.XA priority Critical patent/CN104978739B/en
Publication of CN104978739A publication Critical patent/CN104978739A/en
Application granted granted Critical
Publication of CN104978739B publication Critical patent/CN104978739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the present invention discloses an image object selection method. The method comprises: acquiring a selection position of a selection operation input in a target scene by a user; acquiring all bitmap objects corresponding to the selection position in the target scene; according to pixel information of corresponding pixels of the bitmap objects in the selection position, determining whether the bitmap objects are valid bitmap objects in the selection position; and determining a bitmap object located at the uppermost layer of the valid bitmap objects as an object selected by the selection operation. An embodiment of the present invention also discloses an image object selection apparatus. By adopting the method provided by the invention, a selected object can be effectively determined when image objects overlap, and the accuracy of selecting the image object desired to be selected by the user is improved.

Description

A kind of image object choosing method and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of image object choosing method and device.
Background technology
Computer program can show all kinds of image object to user in scene interface, need to realize receiving the selection operation of user for these image objects simultaneously, such as click or frame choosing etc., so according to this selection operation triggering following as events such as eject notification frame, mobile image objects.And in existing image object Choice, for the scene that there is image object overlap as shown in Figure 1, often there will be and cannot judge to choose object, or occur obtaining choose the error result that object is not the image object that user expects to choose.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of image object choosing method and device, can effectively judge to be selected object when image object is overlapping, improves the accuracy rate of the image object choosing user to expect to choose.
In order to solve the problems of the technologies described above, embodiments provide a kind of image object choosing method, described method comprises:
Obtain the chosen position of the selection operation that user inputs in target scene;
Obtain all bitmap objects that described in described target scene, chosen position is corresponding;
According to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judge whether described bitmap object is effective bitmap object in described chosen position;
The bitmap object being positioned at the superiors in described effective bitmap object is defined as the object that described selection operation is chosen.
Correspondingly, the embodiment of the present invention additionally provides a kind of image object selecting device, comprising:
Chosen position acquisition module, for obtaining the chosen position of the selection operation that user inputs in target scene;
Bitmap object acquisition module, for obtaining all bitmap objects that described in described target scene, chosen position is corresponding;
Effective object judge module, for according to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judges whether described bitmap object is effective bitmap object in described chosen position;
Choose object determination module, for the bitmap object being positioned at the superiors in described effective bitmap object being defined as the object that described selection operation is chosen.
By judging whether bitmap object is effective in chosen position in the present embodiment, and then effective bitmap object of the superiors is defined as the object that selection operation chooses, what can guarantee to choose is the visible image object of user in chosen position in target scene, thus improves the accuracy rate of the image object choosing user to expect to choose.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the scene schematic diagram that there is image object overlap;
Fig. 2 is the schematic flow sheet of a kind of image object choosing method in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of a kind of image object choosing method in another embodiment of the present invention;
Fig. 4 is the schematic flow sheet of a kind of image object choosing method in another embodiment of the present invention;
Fig. 5 is the structural representation of a kind of image object selecting device in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Image object choosing method in the embodiment of the present invention, can be implemented by image object selecting device, it can be implemented in as in the user terminals such as PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent equipment, and it can obtain the selection operation of user by input tools such as the mouse of user terminal, touch-screen, pointer.
Fig. 2 is the schematic flow sheet of a kind of image object choosing method in the embodiment of the present invention, and the image object choosing method as shown in the figure in the present embodiment can comprise:
S201, obtains the chosen position of the selection operation that user inputs in target scene.
Concrete, target scene in the embodiment of the present invention can be procedure operation interface, scene of game interface, video pictures etc., can be implemented in as in the user terminals such as PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent equipment, under being particularly useful for the Flash interface scenario based on ActionScript exploitation, described target scene comprises multiple image object.The selection operation that user inputs in target scene can be clicking operation, also can be the region selection operations such as frame choosing, if clicking operation, then described chosen position is clicked position, if region selection operation, then chosen position is the position in the region be selected.
In an alternative embodiment, in order to compare under chosen position and image object are placed on same coordinate system and judge, can set described chosen position is world coordinates, first such as image object selecting device gets the scene coordinate of the selection operation of user or is called that local coordinate system (if click, is single-point coordinate, if region is chosen, the coordinate of the multiple points in region can be comprised), then this scene coordinate be converted to world coordinates or be called stage coordinate, also processing according to the world coordinates of image object during subsequent analysis image object simultaneously.
S202, obtains all bitmap objects (Bitmap) that chosen position described in described target scene is corresponding.
Concrete, the chosen position of the selection operation that image object selecting device can input in target scene according to the user got, obtains all bitmap objects under described chosen position in target scene.The response region of all bitmap objects in target scene can be obtained in an alternative embodiment, if and then the response region of bitmap object exists overlapping with described chosen position, then confirm that this bitmap object is bitmap object corresponding to described chosen position, if described chosen position is single-point coordinate, then this chosen position should in the response region of the bitmap object of correspondence, if described chosen position comprises the coordinate of multiple point, then this chosen position should be overlapping at least partly with the response region of corresponding bitmap object.
In an alternative embodiment, all display object that described in described target scene, chosen position is corresponding can be obtained, and then by judging whether it is bitmap object, all bitmap objects are obtained in the display object that described chosen position is corresponding, such as can use the getObjectsUnderPoint method that ActionScript provides, obtain global coordinate system in described target scene under, certain a bit descends all display object set, and then with " is Bitmap " filter display object set all under this point by method, can filtering object as text filed in TextField (text box), the display object such as Shape shape objects, thus obtain Bitmap object set.
S203, according to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judges whether described bitmap object is effective bitmap object in described chosen position.
Concrete, pixel in the response region of described bitmap object on not all position is all valid pixel, if described bitmap object is valid pixel in the respective pixel of described chosen position, then can judge described bitmap object in described chosen position as effective bitmap object, if selection operation is for clicking selection operation, bitmap object respective pixel in this click coordinate is valid pixel, then this bitmap object is effective bitmap object in described chosen position, otherwise is invalid bitmap object, if selection operation is region selection operation, bitmap object is valid pixel being selected all pixels on region, then this bitmap object is effective bitmap object in described chosen position, if bitmap object is inactive pixels being selected all pixels on region, then this bitmap object is invalid bitmap object in described chosen position, if bitmap object is valid pixel being selected the pixel portion on region, then can determine that this bitmap object is effective bitmap object in described chosen position in an alternative embodiment, or the ratio of all pixels on this selected area is accounted for according to valid pixel, judge whether described bitmap object is effective bitmap object in described chosen position.Judge whether it is valid pixel according to the Pixel Information of pixel, can according to this pixel in target scene whether as seen or whether produce effectively impact as judging, in an alternative embodiment, can judge whether it is valid pixel according to the transparency of pixel, if pixel is completely transparent, then it is obviously sightless in target scene, can not produce effective impact, then can confirm that this pixel is inactive pixels.And then consider that some image object self is in order to art effect is with certain transparency, thus a predetermined threshold value can be set, this pixel whether inactive pixels is judged by the result transparency of pixel and this predetermined threshold value compared, namely according to the transparency of described bitmap object in the respective pixel of described chosen position and the comparative result of predetermined threshold value, judge whether described bitmap object is effective bitmap object in described chosen position.
In an alternative embodiment, the ARGB value of pixel on this certain coordinate position can be obtained by the getPixel32 method in ActionScript, its most-significant byte is the transparency of this pixel, value is all-transparent from 0 to 255,0, and 255 is entirely opaque, thus get the transparency of described bitmap object in the respective pixel of described chosen position, exemplary predetermined threshold value of can getting is 128, if then the transparency of certain pixel is greater than 128, can determine that it is valid pixel.In other embodiment, this pixel can be judged in target scene whether as seen or whether produce effectively impact as judging whether it is valid pixel by other Pixel Information.
S204, is defined as the object that described selection operation is chosen by the bitmap object being positioned at the superiors in described effective bitmap object.
Concrete, after getting all effective bitmap object in described chosen position, image object selecting device can obtain the level of each effective bitmap object in described target scene further, thus effective bitmap object maximum for level is defined as the object that described selection operation chooses.
In an alternative embodiment, getChildIndex method can be adopted to obtain the level of each effective bitmap object in set, this effective bitmap object of the larger expression of numerical value is positioned at more top, thus effective bitmap object maximum for level can be defined as the object that described selection operation chooses.Exemplary, determine in chosen position, there is N number of effective bitmap object by S204, it can be set to current selected object temporarily by image object selecting device after the level getting certain effective bitmap object B itmap1, the extremely next effectively bitmap object B itmap2 of poll also obtains its level, the relatively level of Bitmap1 and the level of Bitmap2, if the level of Bitmap1 is comparatively large, Bitmap1 is kept to be current selected object, if otherwise the level of Bitmap2 is comparatively large, and current selected object is replaced with Bitmap2, by that analogy until by complete for all effective bitmap object polls, effective bitmap object maximum for level can be defined as the object that described selection operation is chosen.
By judging whether bitmap object is effective in chosen position in the present embodiment, and then effective bitmap object of the superiors is defined as the object that selection operation chooses, what can guarantee to choose is the visible image object of user in chosen position in target scene, thus improves the accuracy rate of the image object choosing user to expect to choose.
Fig. 3 is the schematic flow sheet of a kind of image object choosing method in another embodiment of the present invention, and the image object choosing method flow process as shown in the figure in the present embodiment can comprise:
S301, obtains the scene coordinate of the selection operation that user inputs in target scene.
Concrete, the selection operation that user inputs in target scene can be clicking operation, also can be the region selection operations such as frame choosing, if clicking operation, then be retrieved as the scene coordinate of clicked position, if region selection operation, then obtain the scene coordinate of the position in the region be selected.
S302, the scene coordinate that described selection operation is corresponding in described target scene is converted to world coordinates, as the chosen position of described selection operation.
In order to compare under chosen position and image object are placed on same coordinate system and judge, in the present embodiment, the scene coordinate got in S301 be converted to world coordinates or be called stage coordinate, also processing according to the world coordinates of image object during subsequent analysis image object simultaneously.
S303, obtains all display object that described in described target scene, chosen position is corresponding.
Concrete, the world coordinates of the chosen position of the selection operation that image object selecting device can input in target scene according to the user got, obtains all display object under this world coordinates in target scene.The response region of all display object in target scene can be obtained in an alternative embodiment, if and then the response region of display object exists overlapping with the world coordinates that S302 gets, then confirm that this display object is display object corresponding to described chosen position, if described chosen position is single-point coordinate, then this chosen position should in the response region of the display object of correspondence, if described chosen position comprises the coordinate of multiple point, then this chosen position should be overlapping at least partly with the response region of corresponding display object.
S304, obtains all bitmap objects in the display object that described chosen position is corresponding.
Previous step obtains all display object that described in described target scene, chosen position is corresponding, and then by judging whether each display object is bitmap object, can the display object such as filtering object as text filed in TextField (text box), Shape shape objects, thus obtain Bitmap object set corresponding to chosen position.
S305, according to the transparency of described bitmap object in the respective pixel of described chosen position and the comparative result of predetermined threshold value, judges whether described bitmap object is effective bitmap object in described chosen position.
Such as by obtaining the ARGB value of bitmap object in the respective pixel of chosen position, its most-significant byte is the transparency of this pixel, if certain bitmap object is greater than predetermined threshold value in the transparency of the respective pixel of chosen position, then confirm that described bitmap object is effective bitmap object in described chosen position, otherwise then confirm that it is not effective bitmap object in described chosen position.
S306, obtains the level of each effective bitmap object in described target scene.
S307, is defined as the object that selection operation is chosen by effective bitmap object maximum for level.
Be described a specific implementation scene below in conjunction with Fig. 1 and Fig. 4, the image object choosing method flow process as shown in the figure in the present embodiment can comprise:
S401, display Flash game scene interface, scene of game interface comprises multiple image object.
The present embodiment builds scene of game interface for signal with the simulation shown in Fig. 1, and scene comprises multiple Architectural drawing object, such as, architectural object A in Fig. 1 and architectural object B.
S402, obtains the chosen position of the selection operation that user inputs in target scene.
The present embodiment clicks X point in the scene interface shown in Fig. 1 for user respectively and Y point is introduced, and can get the scene coordinate of X and Y respectively.
S403, uses the getObjectsUnderPoint method that provides of ActionScript, obtains all display object set that chosen position under global coordinate system is corresponding in described target scene.
S404, " is Bitmap " filter display object set all under this point, obtains bitmap object set by method in use.
Because X and Y position is the overlapping region of architectural object A and architectural object B, Bitmap corresponding to architectural object A and architectural object B is comprised in the Bitmap set got, be called BitmapA and BitmapB, i.e. bitmap object set Bitmaplist={BitmapA, BitmapB}.
S405, obtains the ARGB value of bitmap object pixel in chosen position by the getPixel32 method in ActionScript.
S406, judges whether bitmap object is greater than predetermined threshold value in the transparency of the respective pixel of chosen position, if then perform S407, otherwise performs S408.
S407, determines that this bitmap object is effective bitmap object in chosen position.
S408, judges whether that poll is complete, if then perform S410, otherwise performs S409.
S409, next bitmap object in the bitmap object set that poll S404 gets, and perform S406 for next bitmap object.
S410, adopts getChildIndex method to obtain the level of each effective bitmap object in set, effective bitmap object maximum for level is defined as the object that described selection operation is chosen.
S411, triggers the readjustment of the object that described selection operation is chosen, as ejected the event such as notification frame corresponding to selected object, mobile selected image object.
When clicking at X point, the BitmapA first in taking-up Bitmaplist judges, because architectural object A is transparent at X point place, be not valid pixel, namely BitmapA is not effective bitmap object; Continue to judge BitmapB, architectural object B is nontransparent at X point place, is available point, thus determines that BitmapB is effective bitmap object, it can be used as selected object to be returned, and triggers the readjustment of architectural object B.
When clicking at Y point, still first the BitmapA taken out in Bitmaplist judges, because architectural object A is nontransparent at Y point place, be available point, record BitmapA is current effective bitmap object, the level of acquisition BitmapA in scene; Continue to judge BitmapB, architectural object B is also nontransparent at Y point place, BitmapB is effective bitmap object equally, obtain the level of BitmapB in scene, and then comparing the level of BitmapA and BitmapB in scene, in the present embodiment, architectural object A is on the upper strata of architectural object B, and namely the level of BitmapB is less than the level of BitmapA, therefore determine that the BitmapA that in effective bitmap object, level is maximum is returned as selected object, trigger the readjustment of architectural object B.
In addition, when clicking the white space in architectural object A or architectural object B, owing to there is not effective bitmap object in this click location, returning the invalid result choosing object, or ignoring this clicking operation.
Fig. 5 is the structural representation of a kind of image object selecting device in the embodiment of the present invention, and the image object selecting device as shown in the figure in the embodiment of the present invention can comprise:
Chosen position acquisition module 510, for obtaining the chosen position of the selection operation that user inputs in target scene.
Concrete, target scene in the embodiment of the present invention can be procedure operation interface, scene of game interface, video pictures etc., can be implemented in as in the user terminals such as PC, panel computer, smart mobile phone, electronic reader, car-mounted terminal or wearable intelligent equipment, under being particularly useful for the Flash interface scenario based on ActionScript exploitation, described target scene comprises multiple image object.The selection operation that user inputs in target scene can be clicking operation, also can be the region selection operations such as frame choosing, if clicking operation, then described chosen position is clicked position, if region selection operation, then chosen position is the position in the region be selected.
In an alternative embodiment, in order to compare under chosen position and image object are placed on same coordinate system and judge, can set described chosen position is world coordinates, first such as chosen position acquisition module 510 gets the scene coordinate of the selection operation of user or is called that local coordinate system (if click, is single-point coordinate, if region is chosen, the coordinate of the multiple points in region can be comprised), then this scene coordinate be converted to world coordinates or be called stage coordinate, successive image object select device also processes according to the world coordinates of image object simultaneously.
Bitmap object acquisition module 520, for obtaining all bitmap objects that described in described target scene, chosen position is corresponding.
Concrete, the chosen position of the selection operation that bitmap object acquisition module 520 can input in target scene according to the user got, obtains all bitmap objects under described chosen position in target scene.Bitmap object acquisition module 520 can obtain the response region of all bitmap objects in target scene in an alternative embodiment, if and then the response region of bitmap object exists overlapping with described chosen position, then confirm that this bitmap object is bitmap object corresponding to described chosen position, if described chosen position is single-point coordinate, then this chosen position should in the response region of the bitmap object of correspondence, if described chosen position comprises the coordinate of multiple point, then this chosen position should be overlapping at least partly with the response region of corresponding bitmap object.
In an alternative embodiment, bitmap object acquisition module 520 can obtain all display object that described in described target scene, chosen position is corresponding, and then by judging whether it is bitmap object, all bitmap objects are obtained in the display object that described chosen position is corresponding, such as can use the getObjectsUnderPoint method that ActionScript provides, obtain global coordinate system in described target scene under, certain a bit descends all display object set, and then with " is Bitmap " filter display object set all under this point by method, can filtering object as text filed in TextField (text box), the display object such as Shape shape objects, thus obtain Bitmap object set.
Effective object judge module 530, for according to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judges whether described bitmap object is effective bitmap object in described chosen position.
Concrete, pixel in the response region of described bitmap object on not all position is all valid pixel, if described bitmap object is valid pixel in the respective pixel of described chosen position, then effectively object judge module 530 can judge described bitmap object in described chosen position as effective bitmap object, if selection operation is for clicking selection operation, bitmap object respective pixel in this click coordinate is valid pixel, then this bitmap object is effective bitmap object in described chosen position, otherwise is invalid bitmap object, if selection operation is region selection operation, bitmap object is valid pixel being selected all pixels on region, then this bitmap object is effective bitmap object in described chosen position, if bitmap object is inactive pixels being selected all pixels on region, then this bitmap object is invalid bitmap object in described chosen position, if bitmap object is valid pixel being selected the pixel portion on region, then can determine that this bitmap object is effective bitmap object in described chosen position in an alternative embodiment, or the ratio of all pixels on this selected area is accounted for according to valid pixel, judge whether described bitmap object is effective bitmap object in described chosen position.
According to the Pixel Information of pixel, effective object judge module 530 judges whether it is valid pixel, can according to this pixel in target scene whether as seen or whether produce effectively impact as judging, in an alternative embodiment, can judge whether it is valid pixel according to the transparency of pixel, if pixel is completely transparent, then it is obviously sightless in target scene, can not produce effective impact, then can confirm that this pixel is inactive pixels.And then consider that some image object self is in order to art effect is with certain transparency, thus a predetermined threshold value can be set, effective object judge module 530 judges this pixel whether inactive pixels by the result transparency of pixel and this predetermined threshold value compared, namely according to the transparency of described bitmap object in the respective pixel of described chosen position and the comparative result of predetermined threshold value, judge whether described bitmap object is effective bitmap object in described chosen position.
In an alternative embodiment, the ARGB value of pixel on this certain coordinate position can be obtained by the getPixel32 method in ActionScript, its most-significant byte is the transparency of this pixel, value is all-transparent from 0 to 255,0, and 255 is entirely opaque, thus get the transparency of described bitmap object in the respective pixel of described chosen position, exemplary predetermined threshold value of can getting is 128, if then the transparency of certain pixel is greater than 128, can determine that it is valid pixel.In other embodiment, this pixel can be judged in target scene whether as seen or whether produce effectively impact as judging whether it is valid pixel by other Pixel Information.
Choose object determination module 540, for the bitmap object being positioned at the superiors in described effective bitmap object being defined as the object that described selection operation is chosen.
Concrete, after getting all effective bitmap object in described chosen position by effective object judge module 530, choose object determination module 540 and can obtain the level of each effective bitmap object in described target scene further, thus effective bitmap object maximum for level is defined as the object that described selection operation chooses.
In an alternative embodiment, getChildIndex method can be adopted to obtain the level of each effective bitmap object in set, this effective bitmap object of the larger expression of numerical value is positioned at more top, thus effective bitmap object maximum for level can be defined as the object that described selection operation chooses.Exemplary, determine in chosen position, there is N number of effective bitmap object by S204, it can be set to current selected object temporarily by image object selecting device after the level getting certain effective bitmap object B itmap1, the extremely next effectively bitmap object B itmap2 of poll also obtains its level, the relatively level of Bitmap1 and the level of Bitmap2, if the level of Bitmap1 is comparatively large, Bitmap1 is kept to be current selected object, if otherwise the level of Bitmap2 is comparatively large, and current selected object is replaced with Bitmap2, by that analogy until by complete for all effective bitmap object polls, effective bitmap object maximum for level can be defined as the object that described selection operation is chosen.
Image object selecting device in the present embodiment is by judging whether bitmap object is effective in chosen position, and then effective bitmap object of the superiors is defined as the object that selection operation chooses, what can guarantee to choose is the visible image object of user in chosen position in target scene, thus improves the accuracy rate of the image object choosing user to expect to choose.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (16)

1. an image object choosing method, is characterized in that, described method comprises:
Obtain the chosen position of the selection operation that user inputs in target scene;
Obtain all bitmap objects that described in described target scene, chosen position is corresponding;
According to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judge whether described bitmap object is effective bitmap object in described chosen position;
The bitmap object being positioned at the superiors in described effective bitmap object is defined as the object that described selection operation is chosen.
2. image object choosing method as claimed in claim 1, it is characterized in that, all bitmap objects that described in described acquisition described target scene, chosen position is corresponding comprise:
Obtain all display object that described in described target scene, chosen position is corresponding;
All bitmap objects are obtained in the display object that described chosen position is corresponding.
3. image object choosing method as claimed in claim 1, it is characterized in that, the Pixel Information of described respective pixel comprises transparency.
4. image object choosing method as claimed in claim 3, is characterized in that, described according to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judges whether described bitmap object is that effective bitmap object comprises in described chosen position:
According to the transparency of described bitmap object in the respective pixel of described chosen position and the comparative result of predetermined threshold value, judge whether described bitmap object is effective bitmap object in described chosen position.
5. image object choosing method as claimed in claim 1, is characterized in that, describedly the bitmap object being positioned at the superiors in described effective bitmap object is defined as the object that described selection operation chooses and comprises:
Obtain the level of each effective bitmap object in described target scene;
Effective bitmap object maximum for level is defined as the object that described selection operation is chosen.
6. image object choosing method as claimed in claim 1, is characterized in that, the chosen position of the selection operation that described acquisition user inputs in target scene comprises:
The scene coordinate that described selection operation is corresponding in described target scene is converted to world coordinates, as the chosen position of described selection operation.
7. image object choosing method as claimed in claim 1, it is characterized in that, if described selection operation is clicking operation, then described chosen position is click location.
8. the image object choosing method according to any one of claim 1-7, is characterized in that, described target scene comprise run in mobile terminal procedure operation interface, scene of game interface or video pictures.
9. an image object selecting device, is characterized in that, comprising:
Chosen position acquisition module, for obtaining the chosen position of the selection operation that user inputs in target scene;
Bitmap object acquisition module, for obtaining all bitmap objects that described in described target scene, chosen position is corresponding;
Effective object judge module, for according to the Pixel Information of described bitmap object in the respective pixel of described chosen position, judges whether described bitmap object is effective bitmap object in described chosen position;
Choose object determination module, for the bitmap object being positioned at the superiors in described effective bitmap object being defined as the object that described selection operation is chosen.
10. image object selecting device as claimed in claim 9, it is characterized in that, described bitmap object acquisition module is used for:
Obtain all display object that described in described target scene, chosen position is corresponding, and obtain all bitmap objects in the display object that described chosen position is corresponding.
11. image object selecting devices as claimed in claim 9, it is characterized in that, the Pixel Information of described respective pixel comprises transparency.
12. image object selecting devices as claimed in claim 11, is characterized in that, described effective object judge module is used for:
According to the transparency of described bitmap object in the respective pixel of described chosen position and the comparative result of predetermined threshold value, judge whether described bitmap object is effective bitmap object in described chosen position.
13. image object selecting devices as claimed in claim 9, is characterized in that, described in choose object determination module for:
Obtain the level of each effective bitmap object in described target scene, effective bitmap object maximum for level is defined as the object that described selection operation is chosen.
14. image object selecting devices as claimed in claim 9, it is characterized in that, described chosen position acquisition module is used for:
The scene coordinate that described selection operation is corresponding in described target scene is converted to world coordinates, as the chosen position of described selection operation.
15. image object selecting devices as claimed in claim 9, is characterized in that, if described selection operation is clicking operation, then described chosen position is click location.
16. image object selecting devices according to any one of claim 9-15, is characterized in that, described target scene comprise run in mobile terminal procedure operation interface, scene of game interface or video pictures.
CN201510212158.XA 2015-04-29 2015-04-29 A kind of image object choosing method and device Active CN104978739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510212158.XA CN104978739B (en) 2015-04-29 2015-04-29 A kind of image object choosing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510212158.XA CN104978739B (en) 2015-04-29 2015-04-29 A kind of image object choosing method and device

Publications (2)

Publication Number Publication Date
CN104978739A true CN104978739A (en) 2015-10-14
CN104978739B CN104978739B (en) 2017-12-29

Family

ID=54275217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510212158.XA Active CN104978739B (en) 2015-04-29 2015-04-29 A kind of image object choosing method and device

Country Status (1)

Country Link
CN (1) CN104978739B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204711A (en) * 2016-06-29 2016-12-07 深圳开立生物医疗科技股份有限公司 A kind of three dimensional volumetric image processing method and system
CN106527891A (en) * 2016-10-26 2017-03-22 腾讯科技(深圳)有限公司 Editing object selection method and related apparatus
CN106709229A (en) * 2015-11-12 2017-05-24 网易(杭州)网络有限公司 Method and device for preferentially responding to NPC (non player character) objects in game systems
CN106934845A (en) * 2015-12-29 2017-07-07 龙芯中科技术有限公司 Acquiring object method and device
CN109696993A (en) * 2017-10-20 2019-04-30 北京仁光科技有限公司 A kind of touch device
CN110333804A (en) * 2019-06-20 2019-10-15 珠海文景科技有限公司 The response method of textures, device, terminal device and storage medium in game system
WO2020114210A1 (en) * 2018-12-04 2020-06-11 腾讯科技(深圳)有限公司 Method and apparatus for processing information in view, and storage medium
CN112486382A (en) * 2020-11-20 2021-03-12 完美世界(北京)软件科技发展有限公司 Interface logic execution method and device, electronic equipment and medium
US20210360236A1 (en) * 2019-01-30 2021-11-18 Omnivor, Inc. System and method for encoding a block-based volumetric video having a plurality of video frames of a 3d object into a 2d video format
CN113918067A (en) * 2020-11-20 2022-01-11 完美世界(北京)软件科技发展有限公司 Interface logic execution method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7168048B1 (en) * 1999-03-24 2007-01-23 Microsoft Corporation Method and structure for implementing a layered object windows
CN104182113A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Stacking object processing device and stacking object processing method
CN104484109A (en) * 2014-12-25 2015-04-01 英华达(上海)科技有限公司 Object selecting method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7168048B1 (en) * 1999-03-24 2007-01-23 Microsoft Corporation Method and structure for implementing a layered object windows
CN104182113A (en) * 2013-05-21 2014-12-03 北大方正集团有限公司 Stacking object processing device and stacking object processing method
CN104484109A (en) * 2014-12-25 2015-04-01 英华达(上海)科技有限公司 Object selecting method and system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709229A (en) * 2015-11-12 2017-05-24 网易(杭州)网络有限公司 Method and device for preferentially responding to NPC (non player character) objects in game systems
CN106709229B (en) * 2015-11-12 2019-07-12 网易(杭州)网络有限公司 The method and device of NPC object priority response in a kind of game system
CN106934845B (en) * 2015-12-29 2020-05-12 龙芯中科技术有限公司 Object picking method and device
CN106934845A (en) * 2015-12-29 2017-07-07 龙芯中科技术有限公司 Acquiring object method and device
CN106204711A (en) * 2016-06-29 2016-12-07 深圳开立生物医疗科技股份有限公司 A kind of three dimensional volumetric image processing method and system
CN106204711B (en) * 2016-06-29 2020-12-18 深圳开立生物医疗科技股份有限公司 Three-dimensional volume image processing method and system
CN106527891A (en) * 2016-10-26 2017-03-22 腾讯科技(深圳)有限公司 Editing object selection method and related apparatus
CN106527891B (en) * 2016-10-26 2019-09-17 腾讯科技(深圳)有限公司 A kind of edit object selection method and relevant apparatus
CN109696993A (en) * 2017-10-20 2019-04-30 北京仁光科技有限公司 A kind of touch device
WO2020114210A1 (en) * 2018-12-04 2020-06-11 腾讯科技(深圳)有限公司 Method and apparatus for processing information in view, and storage medium
US11531443B2 (en) 2018-12-04 2022-12-20 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and storage medium for determining relative position relationship of click event
US20210360236A1 (en) * 2019-01-30 2021-11-18 Omnivor, Inc. System and method for encoding a block-based volumetric video having a plurality of video frames of a 3d object into a 2d video format
CN110333804A (en) * 2019-06-20 2019-10-15 珠海文景科技有限公司 The response method of textures, device, terminal device and storage medium in game system
CN112486382A (en) * 2020-11-20 2021-03-12 完美世界(北京)软件科技发展有限公司 Interface logic execution method and device, electronic equipment and medium
CN112486382B (en) * 2020-11-20 2021-12-17 完美世界(北京)软件科技发展有限公司 Interface logic execution method and device, electronic equipment and medium
CN113918067A (en) * 2020-11-20 2022-01-11 完美世界(北京)软件科技发展有限公司 Interface logic execution method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN104978739B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN104978739A (en) Image object selection method and apparatus
US10430068B2 (en) Method for displaying interface content and user equipment
CN103902158A (en) Method and terminal for managing application icon
CN108958627B (en) Touch operation method and device, storage medium and electronic equipment
CN104123520A (en) Two-dimensional code scanning method and device
CN103593171A (en) Multi-zone screenshot method and device
CN103414829A (en) Method, device and terminal device for controlling screen contents
CN105278825A (en) Screen capturing method and mobile terminal
CN103106022A (en) Method for setting and detecting virtual key of touch panel
CN108509133B (en) Search component display method and device
US20160062601A1 (en) Electronic device with touch screen and method for moving application functional interface
US20170139584A1 (en) User account switching interface
CN110914810B (en) Monkey testing method and terminal
CN106201399A (en) A kind of split screen window display method and terminal
CN105631412A (en) Data recording method and terminal
CN110737417B (en) Demonstration equipment and display control method and device of marking line of demonstration equipment
CN108984097B (en) Touch operation method and device, storage medium and electronic equipment
EP3734431A1 (en) Image panning method
CN107133022B (en) Control display method and device in terminal equipment
CN103176731A (en) Method and device for determining ending of handwriting input
CN104571791A (en) Information processing method and electronic equipment
CN104461857A (en) Software reliability detection method and device
CN114494960A (en) Video processing method and device, electronic equipment and computer readable storage medium
US9658696B2 (en) Electronic device and method for adjusting user interface of the electronic device
US20160124602A1 (en) Electronic device and mouse simulation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant