Debugging processing method based on intelligent terminal system camera functionTechnical Field
The invention relates to the field of intelligent terminal control, in particular to a debugging processing method based on the camera function of an intelligent terminal system.
Background
Under the environment that the market of the intelligent terminal is changing day by day, the shooting function of the intelligent terminal in the market is more and more abundant, such as eye pattern recognition, night shooting brightening, panoramic view, beauty and other third party camera functions. At present, the realization of the third-party camera functions is realized on the basis of three modes of preview, photographing and video recording of the camera application of the intelligent terminal. The common mode easily causes the normal preview, photographing and video recording effects of the intelligent terminal system to conflict with the functions of the third-party camera application, and influences the function effect debugging of the third-party camera application. Therefore, in order to avoid the conflict between the normal preview, photographing and recording functions of the self-contained camera application of the intelligent terminal system and the functions of the third-party camera application, a mode adjusting processing mode which can separately process the two functions is required.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a debugging processing method based on the camera function of the intelligent terminal system, which can avoid the conflict of the debugging requirements of the camera application of the intelligent terminal system and the third-party camera application and provide better user experience for users.
The invention discloses a debugging processing method based on the functions of a camera of an intelligent terminal system, which comprises the following steps:
s1: acquiring a verification value issued by an application to which a camera function belongs;
s2: judging the category of the camera function according to the verification value;
s3: when the camera function is the function of the intelligent terminal system with camera application, the intelligent terminal system loads the camera function in a default conduction mode, and the method comprises the following steps:
s3-1: the intelligent terminal system automatically adopts a first type of drive layer setting by self-contained camera application, and comprises one or more of default preview, photographing and video recording modes;
s3-2: the intelligent terminal camera application adopts a default debugging processing method of the intelligent terminal system;
s3': when the camera function is the function applied by the third-party camera, the intelligent terminal system loads the camera by adopting an automatic matching conduction mode, and the method comprises the following steps:
s3' -1: the intelligent terminal automatically selects the second type of driving layer setting, including one or more of eye pattern recognition, night shooting brightening, panorama and beauty;
s3' -2: the third party camera application adopts the customized debugging processing method.
Preferably, the camera functions include: one or more of previewing, photographing and recording.
Preferably, in step S3-1, the first type of driving layer arrangement is configured to be fixed.
Preferably, in step S3' -1, the second type of driver layer settings are configured to be customized according to the third party camera application.
Preferably, in steps S3-2 and S3' -2, the debugging process is completed by a hal layer in the smart terminal system.
Preferably, the camera functions include: eye pattern recognition, night-time pat brightening, and skin caring.
Preferably, the camera functions include: one or more of panorama and close-up.
Preferably, the camera functions include: one or more of focusing, zooming, blurring.
Compared with the prior art, the invention has the technical advantages that: the intelligent terminal system can distinguish the loading mode of the function of the camera application of the intelligent terminal system and the loading mode of the third-party camera application function, so that different debugging processing methods are adopted for the intelligent terminal system and the third-party camera application function, the conflict between the intelligent terminal system and the third-party camera application function is avoided, and the processing effect of the intelligent terminal system and the third-party camera application function cannot be influenced.
Drawings
Fig. 1 is a flowchart illustrating a camera function debugging processing method according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Fig. 1 is a schematic flow chart of a camera function debugging processing method according to an embodiment of the present invention. In this embodiment, the method is a debugging processing method for the camera application of the intelligent terminal system and the third party camera application function. Specifically, the method comprises the following steps:
s1: and acquiring a verification value issued by an application to which the camera function belongs, wherein the camera function comprises preview, photographing, video recording, eye pattern recognition, night shooting brightening, panoramic view, facial beautification and the like. When the application of the camera function is the self-contained camera application of the intelligent terminal, the information carried by the verification value is the camera which is started by the self-contained application of the system; correspondingly, when the application to which the camera function belongs is a third-party camera application installed on the intelligent terminal, the information carried by the verification value is started by the third-party application. The information is carried differently through the verification value to distinguish the camera starting source application.
S2: judging whether the camera function belongs to the camera application of the intelligent terminal system or a third party camera application according to the verification value by the system of the intelligent terminal, such as android, IOS and the like;
s3: and when the camera function is the function of the self-contained camera application of the intelligent terminal system, such as normal preview, photographing or shooting and the like. At this time, the intelligent terminal system loads the function in a default conduction mode, that is, normal preview, photographing or shooting is executed by the camera application of the system.
S3-1: the intelligent terminal system automatically adopts fixed driving layer setting for the functions of the camera application. For example, the system can preview, cut and edit a shot photo by using a camera provided with the system, the executable range and the execution mode of the preview, the cut and the edit are limited in the factory setting of a driving layer of the intelligent terminal system, and additional changes cannot be made.
S3-2: performing the general debugging processing in the step S3-1 on the camera functions of previewing, photographing or shooting and the like in the hal layer of the intelligent terminal system;
s3': when the camera function is a function applied by a third-party camera, such as eye print recognition, night shot brightening, panorama and beauty. At this time, the intelligent terminal system loads the function by adopting an automatic matching conduction mode. That is, the intelligent terminal system obtains the functions which can be realized by the third-party camera application, and automatically matches the functions according to the realization requirements of the functions so as to load the functions.
S3' -1: and the intelligent terminal system automatically selects the function of the third-party camera application and performs function equipment matched with the third-party camera application on a driving layer of the intelligent terminal system.
S3' -2: and finally, performing special debugging processing on third-party camera application functions such as eye pattern recognition, night shooting brightening, panorama and beauty in a hal layer of the intelligent terminal system.
The camera function may include other shooting modes such as close-up, focus changing modes such as one or more of focusing, zooming and blurring, and the camera change during shooting may be applied to the present invention.
Because the intelligent terminal system identifies corresponding applications according to different attributes of the functions, loads the applications and the applications by using different loading modes respectively, and adopts corresponding driving layer settings to debug the applications and the applications respectively in the hal layer, the debugging requirements of the intelligent terminal system with the camera application function and the third-party camera application function are prevented from conflicting, and a better debugging effect is achieved.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.