Summary of the invention
The embodiment of the present application provides a kind of information processing method and electronic equipment, and exist in prior art for solving, electronic equipment enters the technical problem of Quick Response Code scanning mode complicated operation when taking pictures.
On the one hand, the embodiment of the present application provides a kind of information processing method, be applied in electronic equipment, described electronic equipment comprises image acquisition units and display unit, when the display interface of described display unit shows virtual key and the preview image corresponding with image acquisition region, described electronic equipment can detect and obtain user and operate for the IMAQ of described virtual key, and respond the operation of described IMAQ, be kept at by described preview image in described electronic equipment, described method comprises:
When described display unit shows described preview image, detect described preview image and whether comprise a default object, obtain the first testing result;
When described first testing result is for being, described default object being identified, obtaining the recognition result of described default object.
Optionally, described when showing described preview image on described display unit, detect described preview image and whether comprise one and preset object, obtain the first testing result, specifically comprise:
When described display unit shows described preview image, detect the described electronic equipment of acquisition and whether be in preview recognition mode, obtain the second testing result;
When described second testing result is for being, running the first recognizer, detection being carried out to described preview image and identifies, obtaining described first testing result.
Optionally, describedly when described first testing result is for being, described default object to be identified, obtaining the recognition result of described default object, specifically comprising:
When described first testing result is for being, exporting an information, comprising described default object to point out preview image described in user;
Detect described electronic equipment and whether obtain one for controlling the confirmation operation that described electronic equipment identifies described default object, obtain the 3rd testing result;
When described 3rd testing result is for being, responds described confirmation operation, described default object being identified, obtains described recognition result.
Optionally, identify described default object described, after obtaining the recognition result of described default object, described method also comprises:
Described recognition result is presented on described display unit.
Optionally, described default object is specially: Quick Response Code or bar code.
Optionally, when described default object is described Quick Response Code, describedly when described first testing result is for being, described default object to be identified, obtaining the recognition result of described default object, being specially:
When described first testing result is for being, described Quick Response Code is identified, obtains the characteristic value information that described Quick Response Code comprises.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, described electronic equipment comprises image acquisition units and display unit, when the display interface of described display unit shows virtual key and the preview image corresponding with image acquisition region, described electronic equipment can detect and obtain user and operate for the IMAQ of described virtual key, and respond the operation of described IMAQ, be kept at by described preview image in described electronic equipment, described electronic equipment also comprises:
Preset subject detecting unit, during for showing described preview image on described display unit, detecting described preview image and whether comprising a default object, obtaining the first testing result;
Preset object identification unit, for when described first testing result is for being, described default object being identified, obtaining the recognition result of described default object.
Optionally, described default subject detecting unit specifically comprises:
Preview recognition mode detection sub-unit, during for showing described preview image on described display unit, detecting the described electronic equipment of acquisition and whether being in preview recognition mode, obtaining the second testing result;
Presetting object detection subelement when described second testing result is for being, running the first recognizer, detection is carried out to described preview image and identifies, obtain described first testing result.
Optionally, described default object identification unit specifically comprises:
Information exports subelement, for when described first testing result is for being, exporting an information, comprising described default object to point out preview image described in user;
Confirm operation detection subelement, whether obtaining one for controlling the confirmation operation that described electronic equipment identifies described default object for detecting described electronic equipment, obtaining the 3rd testing result;
Preset Object identifying subelement, for when described 3rd testing result is for being, responds described confirmation operation, described default object being identified, obtains described recognition result.
Optionally, described recognition result, specifically for identifying described default object described, after obtaining the recognition result of described default object, is presented on described display unit by described display unit.
Optionally, described default object is specially: Quick Response Code or bar code.
Optionally, when described default object is described Quick Response Code, described default object identification unit, specifically for:
When described first testing result is for being, described Quick Response Code is identified, obtains the characteristic value information that described Quick Response Code comprises.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
In the scheme of 1, the embodiment of the present application, by carrying out Quick Response Code detection to the preview image in the camera preview interface of electronic equipment, default object is comprised at preview image, namely during Quick Response Code, directly Quick Response Code is scanned in camera preview interface, by when preview image comprises Quick Response Code, directly enter Quick Response Code scanning mode, eliminate and to exist in prior art, electronic equipment enters the technical problem of Quick Response Code scanning mode complicated operation when taking pictures, achieve electronic equipment enters Quick Response Code scanning mode fast technique effect when taking pictures.
2, in the scheme of the embodiment of the present application, electronic equipment be in take pictures preview interface time, whether detected electrons equipment is in preview recognition mode, and when electronic equipment is in preview recognition mode, to whether comprising Quick Response Code in preview image detect, and when electronic equipment is not in preview recognition mode, to whether comprising Quick Response Code in preview image do not detect, user can be arranged preview recognition mode according to actual needs, on the one hand, electronic equipment can be prevented when user does not need to scan, scan, make troubles to user, on the other hand, electronic equipment is avoided to scan preview image for a long time, cause kwh loss.
In the scheme of 3, the embodiment of the present application, electronic equipment is when detecting that preview image comprises Quick Response Code, export information, whether Quick Response Code identification is carried out to point out user, then, determine whether to carry out scanning recognition to Quick Response Code according to the input operation of user, and then prevent misoperation of electronic equipment.
Embodiment
In the technical scheme that the embodiment of the present application provides, by when detecting that preview image comprises Quick Response Code, directly enter Quick Response Code scanning mode, thus eliminate and to exist in prior art, electronic equipment enters the technical problem of Quick Response Code scanning mode complicated operation when taking pictures, achieve electronic equipment enters Quick Response Code scanning mode fast technique effect when taking pictures.
Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the main of the embodiment of the present application technical scheme is realized principle, embodiment and be explained in detail the beneficial effect that should be able to reach.
Embodiment one
The embodiment of the present application one provides a kind of information processing method, is applied in electronic equipment, and electronic equipment comprises image acquisition units and display unit, concrete, and electronic equipment can be smart mobile phone, panel computer, or smart camera etc.Image acquisition units can be camera, and display unit is specially the display screen of electronic equipment.
In the embodiment of the present application, when the display interface of display unit shows virtual key and the preview image corresponding with image acquisition region, electronic equipment can detect and obtain user and operate for the IMAQ of described virtual key, and respond the operation of described IMAQ, described preview image is kept in described electronic equipment.
In specific implementation process, after smart mobile phone starts camera function, the display screen of smart mobile phone shows preview interface of taking pictures, preview interface shows virtual key and image acquisition region preview image and, this virtual key performs photographing operation, that is, at user's touch-control or when clicking this virtual key for controlling electronic equipment, smart mobile phone can perform once photo taking operation, is got off by the Image Saving of display current on display screen.
In the embodiment of the present application, the display interface of electronic equipment shows in the process of preview image, electronic equipment performs following steps, as shown in Figure 1, comprising:
S10: when showing described preview image on described display unit, detects described preview image and whether comprises a default object, obtain the first testing result;
S20: when described first testing result is for being, described default object being identified, obtaining the recognition result of described default object.
Next, take electronic equipment as smart mobile phone, default object is Quick Response Code is example, tentatively illustrates the method in the embodiment of the present application.
First, user starts the camera of smart mobile phone, enters camera preview interface, now, preview interface shows preview image, virtual key etc., and in previews, smart mobile phone can perform step S10, detects in preview image and whether comprises a default object.
For Quick Response Code, electronic equipment can detect according to the characteristic information of Quick Response Code, when scanning preview image and comprising the characteristic information of Quick Response Code, then determines that preview image comprises Quick Response Code.
Then, when preview image comprises Quick Response Code, smart mobile phone can enter step S20, identifies Quick Response Code, obtains recognition result.Such as: obtain the user profile that Quick Response Code comprises, web page interlinkage etc.
Same, in this process, when electronic equipment detects the operation of user's touch-control virtual key, preview image is saved in electronic equipment by electronic equipment.
By such scheme, in the preview interface of electronic equipment, user can touch-control virtual key at any time, takes pictures, or shooting.Simultaneously, electronic equipment can in running background Quick Response Code recognizer, whether comprise Quick Response Code to preview image to detect, after detecting that preview image comprises Quick Response Code, electronic equipment can enter Quick Response Code scanning mode, Quick Response Code is identified, user without the need to take pictures interface and Quick Response Code scanning interface between switch.
After tentatively understood the information processing method that the present embodiment provides by above-mentioned example, the specific implementation step of the method that the embodiment of the present application provides will be introduced in detail below:
First, perform step S10: when showing described preview image on described display unit, detect described preview image and whether comprise a default object, obtain the first testing result.
In the embodiment of the present application, default object can be image code, front cover, streetscape etc., and graphic code can be Quick Response Code or bar code etc., and the application does not limit this.In the embodiment of the present application, with default object for Quick Response Code is described.
Concrete, after preview interface of taking pictures opened by electronic equipment, electronic equipment can judge whether electronic equipment is in preview recognition mode.
In the embodiment of the present application, currently on the display screen supposing electronic equipment show camera preview interface, if electronic equipment is in preview recognition mode, whether electronic equipment to comprising in preview image Quick Response Code can detect, if electronic equipment does not start preview recognition mode, whether electronic equipment to comprising in preview image Quick Response Code can not detect.
Further, when electronic equipment is in preview recognition mode, electronic equipment can after display camera preview interface, run the first recognizer of scanning Quick Response Code, detection is carried out to preview image and identifies determine whether comprise Quick Response Code in preview image, obtain the first testing result.
Specifically, can detect according to the characteristic information of Quick Response Code, when scanning preview image and comprising the characteristic information of Quick Response Code, determine that preview image comprises Quick Response Code.
In the embodiment of the present application, after being determined that by step S10 preview image comprises default object, electronic equipment enters step S20: when described first testing result is for being, identifying described default object, obtaining the recognition result of described default object.
In the embodiment of the present application, comprise following two kinds to the mode that Quick Response Code identifies, the first, identify automatically; Whether the second, select to identify according to user.
In first kind of way, when electronic equipment detects that preview image comprises Quick Response Code, electronic equipment can identify the information in Quick Response Code automatically.
Then, by recognition result display on a display screen.Such as: recognition result can business card time, by business card display on a display screen, or be web page interlinkage at recognition result, automatically open link.
The second way, selects to identify according to user.
First, when described first testing result is for being, namely when preview image comprises Quick Response Code, exporting an information, comprising Quick Response Code to point out user's preview image.
Specifically, information can be Word message, and can be also vibrations or voice message etc., the application limit this.
Then, electronic equipment detects whether obtain one for controlling the confirmation operation that described electronic equipment identifies Quick Response Code, obtains the 3rd testing result.
Such as: export information at electronic equipment by display screen, whether time " scanning Quick Response Code ", user selects "Yes", then electronic equipment can be thought needs confirmation operation user being detected to identify the Quick Response Code in preview image.
Next, electronic equipment can respond described confirmation operation, identifies Quick Response Code, obtains recognition result, i.e. the characteristic value information that comprises of Quick Response Code.
Specifically, the characteristic value information of Quick Response Code can comprise dbase, chained address etc., and the application does not limit this.
Below by an instantiation, the information processing method in the embodiment of the present application is illustrated:
First, user starts the camera of smart mobile phone, and the display screen display of smart mobile phone is taken pictures the icon such as preview interface and virtual key.User can carry out taking pictures or making a video recording by touch-control virtual key.
Then, electronic equipment can detect currently whether be in previewing scan pattern, if electronic equipment is in previewing scan pattern, whether electronic equipment to comprising in preview image Quick Response Code can detect.
Then, when detecting that preview image comprises Quick Response Code, electronic equipment is to output information, and to point out, user is current to be identified the need of to this Quick Response Code.
Next, when electronic equipment detects that user determines the operation needing to identify this Quick Response Code, Quick Response Code is identified, obtain recognition result.
Finally, by recognition result display on a display screen, so that user checks.
In the embodiment of the present application, by the preview interface at camera, increase preview recognition mode, when preview image comprises Quick Response Code, directly run Quick Response Code recognizer, Quick Response Code is identified, electronic equipment does not need to exit camera preview interface, can realize the identification of Quick Response Code yet.
Same, when carrying out Quick Response Code identification, user does not need to exit Quick Response Code identification interface yet, directly by the virtual key on Quick Response Code identification interface, controls electronic equipment and takes pictures.
Visible, by the scheme in the embodiment of the present application, electronic equipment when taking pictures, can carry out Quick Response Code scanning mode fast, or when scanning Quick Response Code, snapshots, without the need to changing interface.
Embodiment two
Based on same inventive concept, the embodiment of the present application also provides a kind of electronic equipment, as shown in Figure 2, described electronic equipment comprises image acquisition units 20 and display unit 21, when the display interface of described display unit 21 shows virtual key and the preview image corresponding with image acquisition region, described electronic equipment can detect and obtain user and operate for the IMAQ of described virtual key, and respond the operation of described IMAQ, be kept at by described preview image in described electronic equipment, described electronic equipment also comprises:
Preset subject detecting unit 22, during for showing described preview image on described display unit 21, detecting described preview image and whether comprising a default object, obtaining the first testing result;
Preset object identification unit 23, for when described first testing result is for being, described default object being identified, obtaining the recognition result of described default object.
Optionally, described default subject detecting unit 22 specifically comprises:
Preview recognition mode detection sub-unit, during for showing described preview image on described display unit 21, detecting the described electronic equipment of acquisition and whether being in preview recognition mode, obtaining the second testing result;
Presetting object detection subelement when described second testing result is for being, running the first recognizer, detection is carried out to described preview image and identifies, obtain described first testing result.
Optionally, described default object identification unit 23 specifically comprises:
Information exports subelement, for when described first testing result is for being, exporting an information, comprising described default object to point out preview image described in user;
Confirm operation detection subelement, whether obtaining one for controlling the confirmation operation that described electronic equipment identifies described default object for detecting described electronic equipment, obtaining the 3rd testing result;
Preset Object identifying subelement, for when described 3rd testing result is for being, responds described confirmation operation, described default object being identified, obtains described recognition result.
Optionally, described recognition result, specifically for identifying described default object described, after obtaining the recognition result of described default object, is presented on described display unit 21 by described display unit 21.
Optionally, described default object is specially: Quick Response Code or bar code.
Optionally, when described default object is described Quick Response Code, described default object identification unit 23, specifically for:
When described first testing result is for being, described Quick Response Code is identified, obtains the characteristic value information that described Quick Response Code comprises.
By the one or more technical schemes in the embodiment of the present application, following one or more technique effect can be realized:
In the scheme of 1, the embodiment of the present application, by carrying out Quick Response Code detection to the preview image in the camera preview interface of electronic equipment, default object is comprised at preview image, namely during Quick Response Code, directly Quick Response Code is scanned in camera preview interface, by when preview image comprises Quick Response Code, directly enter Quick Response Code scanning mode, eliminate and to exist in prior art, electronic equipment enters the technical problem of Quick Response Code scanning mode complicated operation when taking pictures, achieve electronic equipment enters Quick Response Code scanning mode fast technique effect when taking pictures.
2, in the scheme of the embodiment of the present application, electronic equipment be in take pictures preview interface time, whether detected electrons equipment is in preview recognition mode, and when electronic equipment is in preview recognition mode, to whether comprising Quick Response Code in preview image detect, and when electronic equipment is not in preview recognition mode, to whether comprising Quick Response Code in preview image do not detect, user can be arranged preview recognition mode according to actual needs, on the one hand, electronic equipment can be prevented when user does not need to scan, scan, make troubles to user, on the other hand, electronic equipment is avoided to scan preview image for a long time, cause kwh loss.
In the scheme of 3, the embodiment of the present application, electronic equipment is when detecting that preview image comprises Quick Response Code, export information, whether Quick Response Code identification is carried out to point out user, then, determine whether to carry out scanning recognition to Quick Response Code according to the input operation of user, and then prevent misoperation of electronic equipment.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Specifically, the computer program instructions that information processing method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, read by an electronic equipment when the computer program instructions corresponding with information processing method in storage medium or when being performed, comprise the steps:
When described display unit shows described preview image, detect described preview image and whether comprise a default object, obtain the first testing result;
When described first testing result is for being, described default object being identified, obtaining the recognition result of described default object.
Optionally, that store in described storage medium and step: when showing described preview image on described display unit, detects described preview image and whether comprises one and preset object, obtain the first testing result, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
When described display unit shows described preview image, detect the described electronic equipment of acquisition and whether be in preview recognition mode, obtain the second testing result;
When described second testing result is for being, running the first recognizer, detection being carried out to described preview image and identifies, obtaining described first testing result.
Optionally, that store in described storage medium and step: when described first testing result is for being, described default object being identified, obtaining the recognition result of described default object, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
When described first testing result is for being, exporting an information, comprising described default object to point out preview image described in user;
Detect described electronic equipment and whether obtain one for controlling the confirmation operation that described electronic equipment identifies described default object, obtain the 3rd testing result;
When described 3rd testing result is for being, responds described confirmation operation, described default object being identified, obtains described recognition result.
Optionally, other computer instruction is also stored in described storage medium, these computer instructions with step: described default object is identified, obtain the recognition result of described default object, after corresponding computer instruction is performed, being performed, comprising the steps: when being performed
Described recognition result is presented on described display unit.
Optionally, when described default object is described Quick Response Code, that store in described storage medium and step: when described first testing result is for being, described default object is identified, obtain the recognition result of described default object, corresponding computer instruction, being specifically performed in process, specifically comprises the steps:
When described first testing result is for being, described Quick Response Code is identified, obtains the characteristic value information that described Quick Response Code comprises.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.