Embodiment
Be described below in detail the embodiment of the application, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the application, and the restriction to the application can not be interpreted as.
Below with reference to the accompanying drawings control method and the device of the smart machine of the embodiment of the present application are described.
Fig. 1 is the process flow diagram of the control method of the smart machine of the application's embodiment, and as shown in Figure 1, the method comprises:
S101, the push button signalling of the button that is triggered that the actuation means receiving smart machine sends.
In this embodiment, take smart machine as intelligent television for example is described, wherein the system of intelligent television can be Android (Android) system, also can be internet operating system IOS (InternetworkOperatingSystem), this embodiment of operating system for intelligent television does not limit.
Above-mentioned actuation means is the device that can control smart machine, and comprises multiple button in control device, and each button correspond to different key value.Particularly, whether the button in the actuation means of monitoring intelligent equipment is triggered, if the button monitored in actuation means is triggered, then and the push button signalling of the button that is triggered that the actuation means receiving smart machine sends.
Such as, when user plays a game as shown in Figure 2 in intelligent television, actuation means can be game paddle, wherein, the buttons such as A, B, X, Y, upper and lower, left and right are comprised in game paddle, if user triggers the button such as button A on game paddle, then receive the push button signalling that the button A that is triggered of game paddle transmission is corresponding.
S102, according to push button signalling, from the corresponding relation of the button preserved in advance and image information, obtains actuation means and to be triggered image information corresponding to button.
Wherein, the button preserved can be corresponding with the mark of application A PP (APPlication) with the corresponding relation of image information, that is, different application programs correspond to different buttons and the corresponding relation of image information, can be distinguished by the mark of application program to the corresponding relation of the button corresponding to different application and image information.
Particularly, receive smart machine actuation means send the button that is triggered push button signalling after, the mark of application A PP corresponding to the picture of the current display of smart machine can be obtained, and according to the mark of application program, from with corresponding relation corresponding to mark namely from the corresponding relation of the button preserved in advance and image information, acquisition actuation means is triggered image information corresponding to button.
In order to can from the button preserved in advance with obtain actuation means the corresponding relation of image information and to be triggered image information corresponding to button, can also preserve in advance the corresponding relation of button and image information, particularly, the guiding interface that corresponding relation is set can be shown on smart machine, user can select according to the prompting guided in the page button that image is corresponding, user selects the mode of the corresponding relation of image and button to comprise: receive user to the button guiding the image that interface is selected to input, and preserve the corresponding relation of the image information of this button and image.It should be noted that, when receiving user to the button guiding the image that interface is selected to input, the mark of application program corresponding to current guiding interface can also be obtained, and when preserving the corresponding relation of image information of button and image, preserve the mark of current application program.
If only comprise characteristic image in image information, before the corresponding relation preserving button and characteristic image, also can propose characteristic of correspondence image based on different feature extraction modes from current APP, and the corresponding relation of button and characteristic image is preserved.
If image information comprises characteristic image and the characteristic image positional information at intelligent set screen, preservation button and characteristic image before the corresponding relation of the positional information of intelligent set screen, also can extract characteristic image and the positional information of characteristic image in screen of intelligent device based on different feature extraction modes from current APP.
With a concrete implementation, extraction characteristic image and characteristic image are described in the process of the positional information of screen of intelligent device below.
For the game in the intelligent television shown in Fig. 2, if the guided missile in Fig. 2 is characteristic image, and user selects the button that this characteristic image is corresponding to be button A, when extracting positional information at smart machine of characteristic image and characteristic image, the image that a frame comprises the guided missile shown in Fig. 2 can be intercepted, and intercept out the positional information corresponding to guided missile according to this two field picture, after acquisition characteristic image and the positional information of characteristic image in intelligent television, can by key assignments corresponding for button A, the one-to-one relationship of guided missile and the guided missile positional information in intelligent television is preserved, can above-mentioned one-to-one relationship be kept in network data base furthermore, and also need to preserve the mark corresponding to this game when preserving, thus, make user that the corresponding relation of button and image can be set according to the hobby of oneself and use habit, improve the Experience Degree of user.
In this embodiment, the image that the image the setting up corresponding relation control object that can select to respond click event is corresponding, such as, in Fig. 2, missile image is a control object that can respond click event, namely, when user clicks this guided missile icon, corresponding function can be triggered.In a concrete embodiment, in order to set up the corresponding relation of the button image corresponding with control object, before the corresponding relation of image information preserving button and image, the corresponding relation set up between image information and the control object that can respond click event can also be comprised, by setting up the corresponding relation between image information and the control object that can respond click event, when can make there is clicking operation in image information, click event can be simulated to the control object corresponding with this image information.
In addition, in this embodiment, after the corresponding relation that user preserves button and image information, be triggered before image information corresponding to button obtaining actuation means, can also comprise: display arranges the guiding interface of corresponding relation, guide interface to comprise the initial corresponding relation of button and image information, receive user to the modify instruction of initial corresponding relation, and preserve the corresponding relation of the image information of amended button and image.Wherein, this initial corresponding relation can be the corresponding relation that system generates automatically, also can be by corresponding relation that user revised.
Particularly, when user is after the one-to-one relationship guiding button and image information interface inputted as shown in Figure 3 a, if user is in the process using operating means controlling application program APP, find that the corresponding relation of button and the image information arranged does not meet the use habit of oneself a bit, user also can revise the corresponding relation of button and image information as required, such as, image and button are set to corresponding relation as shown in Figure 3 a by user, if user is in the process used, find image A button B, image party B-subscriber button A controls more comfortable, now, button A corresponding for image A is revised as button B by the guiding page of corresponding relation by user, the button B that image B is corresponding is revised as button A, the amended button of user and image information one-to-one relationship are as shown in Figure 3 b, thus, make user can revise the corresponding relation of button and image-region according to use habit, improve the Experience Degree of user.
S103, determines the image mated from the view of current display according to image information.
Particularly, if image information comprises characteristic image, now the image mated with characteristic image can be determined according to characteristic image from the view of current display.Such as, the method by image recognition identifies the image mated with characteristic image from the view of current display.
If image information comprises characteristic image and the positional information of characteristic image in screen of intelligent device, then can obtain the image of correspondence position in the view of the current display of smart machine according to positional information, then determine the image mated with characteristic image in the image got.
Particularly, the image of correspondence position in the view of the current display of smart machine can be intercepted out according to the positional information of characteristic image in smart machine, and after intercepting out the image of correspondence position, the similarity between similarity measurements quantity algorithm computed image and characteristic image can be utilized, wherein, similarity measurements quantity algorithm can comprise Cross Correlation Matching algorithm, Cross Correlation Matching algorithm is a kind of matching algorithm of classics, it determines the matching degree of the two by the cross correlation measure value calculated between the image that intercepts in characteristic image and current picture, namely the similarity degree between characteristic image and current picture truncated picture is determined by the size of cross correlation measure value, the larger expression of cross correlation measure value two image similarities are higher.
In this embodiment, we represent cross correlation measure value with NC (i, j), and wherein, i represents the image intercepted out from present image, j representation feature image, and the formula calculating cross correlation measure value NC (i, j) is as follows:
Wherein, the m that T (m, n) is characteristic image is capable, the pixel value of the n-th row; S (m, n) for the m of the image intercepted out capable, n-th row pixel value.
Obtaining the cross correlation measure value NC (i between characteristic image and the image intercepted out from current picture, j) after, if cross correlation measure value NC (i, j) calculated is greater than predetermined threshold value such as 0.8, then determine that the image acquired mates with characteristic image.
S104, to the image simulation click event of coupling.
Particularly, after determining the image mated with characteristic image, can click or double-click event the image simulation of coupling, namely the control object simulation can simulating click event be clicked or double-click event, and after simulation is clicked, corresponding the clicking or double-click event of response.
Such as, intelligent television shows the picture of a flying games as shown in Figure 2, game paddle comprises button A, B, X, Y, on, under, left, right etc., wherein, the function of the guided missile on the right side of picture accelerates aircraft, if when user shows picture as shown in Figure 2 on intelligent television, press the button A corresponding on handle with the right side guided missile of flying games, the image be truncated to from the view of the current display of intelligent television if determine and button A characteristic of correspondence image similarity are greater than 0.8, then to the image simulation click event be truncated to, namely corresponding to the aircraft control object simulation click event can simulating click event, and namely the functional response click event corresponding according to this image accelerated the aircraft in Fig. 2.
The control method embodiment of above-mentioned smart machine, the push button signalling of the button that is triggered sent according to the actuation means of smart machine from the button preserved in advance with obtain actuation means the corresponding relation of image information and to be triggered image information corresponding to button, and from the view of current display, the image of coupling is determined according to image information, and the image simulation click event to coupling, solve the application migration of screen of mobile terminal mode after intelligent television system, do not support the lever operated problem needing to revise application code, decrease Develop Application System cost, make user can manipulate APP by actuation means.
In order to realize above-described embodiment, the application also proposes a kind of control device of smart machine.
Fig. 4 is the structural representation of the control device of the smart machine of the application's embodiment, and as shown in Figure 4, this device comprises: receiver module 100, acquisition module 200, determination module 300 and click module 400.Wherein:
The push button signalling of the button that is triggered that receiver module 100 sends for the actuation means receiving above-mentioned smart machine; Acquisition module 200 for according to above-mentioned push button signalling, from the corresponding relation of the button preserved in advance and image information, obtains above-mentioned actuation means and to be triggered image information corresponding to button; Determination module 300 for determining the image mated from the view of current display according to above-mentioned image information; And click module 400 for the image simulation click event to above-mentioned coupling.
In this embodiment, take smart machine as intelligent television for example is described, wherein the system of intelligent television can be Android (Android) system, also can be internet operating system IOS (InternetworkOperatingSystem), this embodiment of operating system for intelligent television does not limit.
Above-mentioned actuation means is the device that can control smart machine, and comprises multiple button in control device, each button this different key value corresponding.Particularly, whether the button in the actuation means of monitoring intelligent equipment is triggered, if the button monitored in actuation means is triggered, then and the push button signalling of the button that is triggered that the actuation means that receiver module 100 receives smart machine sends.
Above-mentioned corresponding relation is corresponding with the mark of application A PP, above-mentioned acquisition module 200 is specifically for the mark that obtains APP corresponding to the picture of the current display of above-mentioned smart machine, and according to above-mentioned mark, from the corresponding relation corresponding with above-mentioned mark namely from the corresponding relation of the button preserved in advance and image information, obtain the image information that the above-mentioned button that is triggered is corresponding.
When above-mentioned image information comprises characteristic image, above-mentioned determination module 300 specifically for: according to above-mentioned characteristic image, determine and the image that above-mentioned characteristic image mates from the view of current display.
When above-mentioned image information comprises positional information in screen of intelligent device of characteristic image and above-mentioned characteristic image, above-mentioned determination module 300 is specifically for the image obtaining correspondence position in the view of the current display of above-mentioned smart machine according to above-mentioned positional information; Determine the image mated with above-mentioned characteristic image in the image got.
In order to user can from the button preserved in advance with obtain actuation means the corresponding relation of image information and to be triggered image information corresponding to button, as shown in Figure 5, said apparatus can also comprise Graphics Processing module 500, this Graphics Processing module 500 is triggered before image information corresponding to button for obtaining above-mentioned actuation means at above-mentioned acquisition module 200, display arranges the guiding interface of above-mentioned corresponding relation, receive the button of above-mentioned user to the image input that above-mentioned guiding interface is selected, preserve the corresponding relation of the image information of above-mentioned button and above-mentioned image; Or, display arranges the guiding interface of above-mentioned corresponding relation, above-mentioned guiding interface comprises the initial corresponding relation of button and image information, receives the modify instruction of above-mentioned user to above-mentioned initial corresponding relation, and preserves the corresponding relation of the image information of amended above-mentioned button and above-mentioned image.User can be facilitated to arrange according to oneself needs by Graphics Processing module 500 or the corresponding relation of image information of amendment button and image, meet the individual demand of user.Wherein, this initial corresponding relation can be the corresponding relation that system generates automatically, also can be by corresponding relation that user revised.
If only comprise characteristic image in image information, before the corresponding relation that Graphics Processing module 500 preserves button and characteristic image, also can propose characteristic of correspondence image based on different feature extraction modes from current APP, and the corresponding relation of button and characteristic image is preserved.
If image information comprises characteristic image and the characteristic image positional information at intelligent set screen, preservation button and characteristic image before the corresponding relation of the positional information of intelligent set screen, also can extract characteristic image and the positional information of characteristic image in screen of intelligent device based on different feature extraction modes from current APP.
It should be noted that, Graphics Processing module 500 is when preserving the corresponding relation of button and image information, the mark of application program corresponding to current guiding interface can also be obtained, and when preserving the corresponding relation of image information of button and image, preserve the mark of current application program, by preserving the mark of application program to distinguish the button of different application and the corresponding relation of image information.
Image corresponding to the image information in above-mentioned corresponding relation comprises: can respond the image that the control object of click event is corresponding.
Above-mentioned click module 400 specifically for: to above-mentioned control object simulation click event.
In addition, said apparatus can also comprise respond module 600, and respond module 600, for after above-mentioned click module 400 is to the image simulation click event of above-mentioned coupling, responds above-mentioned click event.
The process that the control device comprising the smart machine of receiver module 100, acquisition module 200, determination module 300 and click module 400 controls smart machine see Fig. 1, can not repeat herein.
The control device embodiment of above-mentioned smart machine, the push button signalling of the button that is triggered that the actuation means receiving smart machine by receiver module sends, acquisition module according to key signals from the button preserved in advance with obtain image information corresponding to the button that is triggered the corresponding relation of image information, determination module determines the image mated from the view of current display according to image information, and click the image simulation click event of module to coupling, thus, solve the application migration of screen of mobile terminal mode after intelligent television system, do not support the lever operated problem needing to revise application code, decrease Develop Application System cost, make user can manipulate APP by actuation means.
In the description of this instructions, at least one embodiment that specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained in the application or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In the description of the application, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred implementation of the application comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by the embodiment person of ordinary skill in the field of the application.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the application can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the application can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and described the embodiment of the application above, be understandable that, above-described embodiment is exemplary, can not be interpreted as the restriction to the application, and those of ordinary skill in the art can change above-described embodiment, revises, replace and modification in the scope of the application.