Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understoodThe application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, andIt is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comesIt says, in the case where not departing from scope of the present application, the first tag set can be known as the second tag set, and similarly,Second tag set can be known as the first tag set.First tag set and the second tag set both tag set,But it is not same tag set.
Fig. 1 is the application environment schematic diagram of camera label allocation processing method in one embodiment.As shown in Figure 1, shouldApplication environment includes electronic equipment 102, and camera 104 is installed on electronic equipment 102, and the can also be stored in electronic equipment 102One tag set.Specifically, the first tag set of the available storage of electronic equipment 102, then traverses the first tag setIn the first label allocation, will not include preset field the first label allocation as the second label allocation.It will finally obtainSecond label allocation is stored to the second tag set.Wherein, the second label allocation is used to indicate electronic equipment 102 in application programIt initiates to obtain corresponding first label allocation when the control instruction of control camera, and is controlled according to the first label allocation of acquisitionCamera 104 executes corresponding operation.It is shot for example, controlling camera electronic equipment 102 according to the first label allocation of acquisitionObtain image 106.In one embodiment, electronic equipment 102 can be mobile phone, computer, wearable device etc., not limit hereinIt is fixed.
Fig. 2 is the flow chart of camera label allocation processing method in one embodiment.As shown in Fig. 2, the camera is matchedSetting label processing method includes step 202 to step 206.Wherein:
Step 202, the first tag set stored in electronic equipment is obtained.
It can store the first tag set in electronic equipment, at least one first label allocation stored in the first tag set(Tag).Specifically, each first label allocation can correspond to one metadata (metadata) of storage, and pass through metadataRealize the control to camera.
In one embodiment, the first tag set can store frame (framework) the layer correspondence in electronic equipmentMemory space in, cannot directly access the first tag set using (application) layer.Application program is in control cameraWhen, it needs to define a variable in application layer, then application layer is by variable transferring to frame (framework) layer, frameLayer carries out parsing to variable and finds corresponding first label allocation, then obtains the corresponding metadata of the first label allocation, andMetadata is transmitted to hardware abstraction layer (Hardware Abstract Layer, HAL), hardware abstraction layer is according to metadata realityNow to the control of camera.
If for example, application layer sets automatic for the focal modes of camera, it is assumed that " focal modes " corresponding memberData are " 10 ", and " automatic " corresponding metadata is " 1 ", then ccf layer can send a first number into hardware abstraction layerAccording to (10,1), then hardware abstraction layer sets the corresponding parameter of metadata " 10 " to (10,1) by this metadata“1”。
Step 204, the first label allocation in the first tag set is traversed, the first configuration for not including preset field is markedLabel are used as the second label allocation.
Specifically, electronic equipment can obtain the first tag set from ccf layer, and the first tag set is sent toApplication layer.There are two types of the first label allocations for including in the first tag set stored in ccf layer: one is to camera originalFirst label allocation of raw definition, one is customized first label allocations of platform vendor.In general, the application of electronic equipmentLayer can only customized first label allocation of calling platform manufacturer, controlled by customized first label allocation of platform vendorCamera.
Application layer can traverse the first label allocation in the first tag set after getting the first tag set,Whether judge in the first label allocation comprising preset field.When in the first label allocation including preset field, it is believed that this firstLabel allocation is to the primary definition of camera, the i.e. intrinsic label allocation of camera;It is pre- when not including in the first label allocationIf when field, it is believed that the first label allocation is the customized label allocation of platform vendor.
For example, all including in the first label allocation of the primary definition of Google in the framework of Camera HAL3" android " field all uses the formal definition of " Business Name+effect " in the first label allocation that platform vendor defines, whenWhen detecting in the first label allocation comprising " android " field, then it is assumed that first label allocation is primary definition;Work as inspectionWhen measuring in the first label allocation not comprising " android " field, then it is assumed that first label allocation is that platform vendor is customized's.
Step 206, the second obtained label allocation is stored to the second tag set, wherein the second label allocation is used forIndicate that electronic equipment obtains corresponding first label allocation when application program is initiated to the control instruction of camera, and according to obtainingThe the first label allocation control camera taken executes corresponding operation.
In the embodiment of the present application, the first label allocation of preset field will not included as the second label allocation, secondLabel allocation is the customized label allocation of platform vendor.Second tag set is to be stored in the corresponding memory space of application layerIn data acquisition system, the second obtained label allocation is stored in the second tag set, application layer can directly access secondThe second label allocation in tag set.
Specifically, application program is needing to control camera after the second label allocation is stored in the second tag setWhen can initiate control instruction to camera, the second configuration is then obtained directly from the second tag set according to control instructionLabel, and the second label allocation that will acquire passes to ccf layer.Since the second label allocation and the first label allocation are corresponding, therefore ccf layer directly can search the first label allocation that match according to the second label allocation for handing down, and by phaseThe corresponding metadata of matched first label allocation is sent to hardware abstraction layer, and hardware abstraction layer is further according to obtained metadata controlCamera processed executes corresponding operation.
Camera label allocation processing method provided in this embodiment, the first label stored in available electronic equipmentWhether set traverses the first label allocation in the first tag set, and judge in the first label allocation comprising preset field.It willThen the first label allocation not comprising preset field stores the second label allocation to the second label as the second label allocationIn set.Application program can obtain the second configuration mark when needing to control camera directly from the second tag setLabel, and the second label allocation by obtaining controls camera and executes corresponding operation.So there is no need to application programs everyIt all goes to define a variable when secondary control camera, then goes to search the first configuration mark by the different variables definedLabel, then control camera is gone by the first label allocation, reduce the variable for needing application program to define, reduces to variableMaintenance cost improves the efficiency of data processing.
Fig. 3 is the flow chart of camera label allocation processing method in another embodiment.As shown in figure 3, the cameraLabel allocation processing method includes step 302 to step 318.Wherein:
Step 302, when detecting the open command of camera of electronic equipment, camera is controlled according to open command and is beatenIt opens.
It is understood that generating the process of the second tag set can realize at any time.For example, in electronic equipmentIn when the free time, the first tag set is obtained to generate the second tag set;Or it when electronic equipment starting, obtainsFirst tag set generates the second tag set.
Certain electronic equipments may be limited by system, can only be allowed when camera is opened and enters preview mode,The first label allocation can be obtained, camera at this moment can be first controlled and enter preview mode, then obtains from the first tag setOne label allocation.
Step 304, preview parameter is configured to camera, and preview mode is entered according to preview state modulator camera.
In embodiment provided by the present application, can in the open command for the camera for detecting electronic equipment, according toOpen command controls camera and opens, and controls camera after opening camera and enter preview mode.Enter in cameraBefore preview mode, preview parameter can be configured to camera, preview mode is then entered according to preview state modulator camera.
Preview parameter refers to that the parameter that camera needs to be arranged when entering preview mode, such as preview parameter can be and take the photographAs head interface parameter shown on the display screen of electronic equipment after entering preview mode, be also possible to camera intoThe processing parameter etc. of the image acquired when entering preview mode, it is not limited here.
Step 306, the first tag set stored in electronic equipment is obtained.
Specifically, the first tag set stored in the corresponding memory space of ccf layer in electronic equipment is obtained, the first markLabel set can be the file that store the first label allocation, it is not limited here.It, can be with for example, in Android systemThe first label allocation is stored by " camera_metadata_tag_info.h " file in ccf layer, then " camera_Metadata_tag_info.h " file is exactly the first tag set.
Step 308, the first label allocation in the first tag set is traversed, the first configuration for not including preset field is markedLabel are used as the second label allocation.
Specifically, the application program in electronic equipment cannot directly access the corresponding memory space of ccf layer, therefore applyProgram cannot directly obtain the first label allocation from the first tag set.Electronic equipment can be from the memory space of ccf layerThe first tag set is obtained, and the second tag set is generated according to the first tag set.The second tag set generated is stored inIn the corresponding memory space of application program, application program can directly access the second tag set.
Step 310, each corresponding frequency of use of the second label allocation is counted.
It is understood that the second label allocation is to be generated according to the first label allocation, therefore application program is controllingWhen camera, corresponding first label allocation directly can be searched according to the second label allocation, and mark according to the first configurationLabel execute corresponding operation to control camera.
Before generating the second tag set, each corresponding frequency of use of the second label allocation can be counted.SecondThe corresponding frequency of use of label allocation is to correspond to the frequency of use namely electronics of the first label allocation of the second label allocationEquipment searches the frequency of the first label allocation.
Specifically, each second label allocation corresponding access times in statistical time range can be counted, according to statisticsAccess times and the duration of statistical time range calculate frequency of use.For example, statistics obtains the corresponding frequency of use of label allocation A10 times/day, 4 times/day of the corresponding frequency of use of label allocation B, 21 times/day of the corresponding frequency of use of label allocation C.
Step 312, the second label allocation is ranked up according to frequency of use, and the second label allocation after sequence is depositedIt stores up to the second tag set.
After statistics obtains each second label allocation, the second label allocation can be arranged according to frequency of useThen sequence stores the second label allocation into the second tag set according to sequence.The second label allocation is stored in this wayIt, can be according to frequency of use when application program searches the second label allocation in the second tag set in two tag setsIt is searched, improves search efficiency.
In one embodiment, descending sort can be carried out to the second label allocation according to frequency of use, it can also basisFrequency of use carries out ascending sort to the second label allocation, it is not limited here.The second tag set generated is stored in applicationIn the corresponding memory space of layer, since the first label allocation in the first tag set may have newly-increased, replacement, deletion etc.Modification, therefore electronic equipment can constantly be updated the second tag set in application layer, to guarantee that application program canAccurately call the second label allocation.
Specifically, electronic equipment can periodically be updated the second tag set, since system limits, some electronics are setStandby system can only allow to obtain the first tag set after opening camera, therefore electronic equipment can also opened every timeThe second tag set is updated when camera, it is without being limited thereto.
Step 314, when detecting that destination application initiates the target control instruction to camera, from the second tally setTarget control is obtained in conjunction instructs corresponding second target label allocation.
After generating the second tag set, application layer can directly access the second tag set, and from the second tag setThe second label allocation of middle acquisition.Electronic equipment can in real time monitor the working condition of application program, when detecting targetWhen application program initiates the target control instruction to camera, target control instruction pair is just obtained from the second tag setThe the second target label allocation answered.
It is understood that destination application when needing to camera operation, can initiate target control instruction.Instruction can be write in the target control instruction of initiation and initiates the contents such as time, operation data, can parse according to operation dataDestination application is specifically which operation needed to carry out camera.
For example, destination application is wanted to take pictures, then the operation data of " photo " can be carried in target control instruction,When electronic equipment detects " photo ", so that it may go to search the second label allocation corresponding with " photo " in the second tag setAs the second target label allocation, for example the second target label allocation found is " com.oppo.photo ".
Step 316, first object label allocation corresponding with the second target label allocation is obtained from the first tag set.
After getting the corresponding second target label allocation of target control instruction in the second tag set, application layer canTo pass to the second target label allocation in ccf layer, ccf layer can be searched from the first tag set to be marked with the configuration of the second targetSign the first object label allocation to match.
Step 318, the corresponding target metadata of first object label allocation is obtained, camera is controlled according to target metadataExecute corresponding operation.
Electronic equipment can pre-establish the corresponding relationship of the first label allocation and metadata, and by the first label allocation and memberData correspondence is stored in the memory space of ccf layer.After getting first object label allocation, it can according to the first configurationLabel obtains corresponding target metadata, and sends hardware abstraction layer for target metadata, then controls camera execution pairThe operation answered.
Camera label allocation processing method provided in this embodiment obtains the second configuration mark according to the first label allocationLabel, there is no need to application programs all to go to define a variable when every secondary control camera, then passes through the difference of definitionVariable go search the first label allocation, then by the first label allocation go control camera, reduce need application program determineThe variable of justice, reduces the maintenance cost to variable, improves the efficiency of data processing.The second obtained label allocation is according to makingWith being then stored into the second tag set after frequency sequence, the search efficiency of the second label allocation can be improved.
Fig. 4 is the schematic diagram for generating the second tag set in one embodiment by the first tag set.As shown in figure 4, theSeveral first label allocations in one tag set, the first label allocation can be with primary label (such as: Google Tags) and manufacturersLabel (such as: Vendor Tags).First label allocation in first tag set is filtered, primary label is filtered,The second label allocation is generated according to remaining manufacturer's label, the second tag set is finally generated according to the second label allocation.
In one embodiment, as shown in figure 5, above-mentioned camera label allocation processing method can also include following stepIt is rapid:
Step 502, it when detecting that the first label allocation in the first tag set updates, obtains in the first tag setThe first label allocation updated is as update label allocation.
The second tag set is generated according to the first label allocation in the first tag set, electronic equipment is just not necessarily to applyingLayer defines a corresponding variable to each first label allocation, and the first label allocation in such first tag set is moreWhen new, without corresponding variable is updated to the first label allocation that each is updated again again, application layer is reducedMaintenance cost.
Electronic equipment, can be according to update when detecting that the first label allocation in the first tag set updatesFirst label allocation is updated the second tag set.The update of first label allocation, which refers to, deletes the first label allocationThe operation such as remove, increase newly, replacing.
When detecting that the first label allocation in the first tag set updates, updated first mark can be reacquiredAll first label allocations in label set, and generated according to all first label allocations in updated first tag setFor the second label allocation of update, the second label allocation for being used for updating will be generated replace in the second tag set and deposit originallySecond label allocation of storage, to complete the update to the second tag set.It can also only obtain and be updated in first tag setFirst label allocation using the first label allocation of update as update label allocation, and is marked according to label allocation is updated to secondLabel set updates, without being limited thereto.
Step 504, the second tag set is updated according to the update label allocation for not including preset field.
In the present embodiment, using the first label allocation of update as label allocation is updated, update label allocation is gotLater, it is also desirable to be filtered to label allocation is updated, only retain the update label allocation for not including preset field, then basisThe update label allocation of reservation is updated the second tag set.
Specifically, updating in label allocation may include increasing label allocation newly, deleting label allocation, modification label allocation,If it is newly-increased label allocation, then the second configuration mark directly can be increased newly in the second tag set according to newly-increased label allocationLabel;If it is label allocation is deleted, then it can directly be found in the second tag set and delete label allocation corresponding secondLabel allocation, and the second label allocation found is deleted;It, then can be in the second tag set if it is modification label allocationIn find corresponding second label allocation of modification label allocation, and the second configuration found is marked according to modification label allocationLabel are modified.
In the embodiment of the present application, the application program installed in electronic equipment can be classified in advance, the second labelSet includes at least one tag along sort set, every corresponding tag along sort set of one kind application program.For example, electronics is setApplication program in standby is divided into game class application program, shopping class application program, video class application program, photography class application programDeng without being limited thereto.
It is understood that the application operating that different application programs is realized is differentiated, therefore call cameraThe operation of realization is also differentiated.For example, payment class application program, which can control camera collection image, realizes payment verificationOperation, payment verification need to acquire high-precision image when operating;Photography class application program can control camera collection image,It needs to adjust acquisition parameters when acquiring image.
Since the operation that different application need to control camera realization may be different, heterogeneous applications are neededThe first label allocation to be called may be different, thus can be directed to inhomogeneity application respectively according to the demand of application programThe second different tag set of Program Generating, application program can remove corresponding second tally set when controlling cameraThe second label allocation is searched in conjunction, improves search efficiency.
Specifically, the second obtained label allocation, which is stored to the second tag set, can specifically include: from the second configurationThe corresponding classification configurations label of every a kind of application program is obtained in label, and obtained classification configurations label is stored respectively to rightThe tag along sort set answered.
In one embodiment, second tag set can also be individually established for each application program, in this wayApplication program directly can search the second label allocation from corresponding second tag set when controlling camera,This is without limitation.
In one embodiment, specifically may be used as shown in fig. 6, storing classification configurations label to the step of tag along sort setTo include:
Step 602, the application level for obtaining every a kind of application program, adds classification configurations label according to application levelClose processing.
For application layer after getting the second label allocation, the application program in electronic equipment can access the second configurationLabel may generate security risk in this way.It, can be according to the application level of application program after obtaining classification configurations labelClassification configurations label is encrypted.
Application level is used to indicate that the significance level of application program, the higher application program of application level to want safetyAsk higher, the security requirement when controlling camera is also higher.It therefore, can be according to the application level of application program to classificationLabel allocation is encrypted.Specifically, application level is higher than classification configurations label corresponding to the application program of grade thresholdIt is encrypted.
Further, when the application level of application program is higher than grade threshold, it can also be obtained and be added according to application levelClose grade is encrypted classification configurations label corresponding to application program according to secret grade.Application level is higher, encryptionThe safety of processing is higher.
Step 604, the classification configurations label after encryption is stored respectively to corresponding tag along sort set.
After classification configurations tag encryption, the classification configurations label after encryption is stored respectively to corresponding contingency tableLabel set.Application program is after initiating control instruction, could basis after needing that classification configurations label is decryptedClassification configurations label after decryption controls camera, improves the safety to camera control.
In one embodiment, the classification configurations label after encryption is stored to tag along sort set, is controlledThe step of camera, can specifically include: when detecting that destination application initiates the target control instruction to camera, obtainThe target application classification for taking destination application obtains target control from the corresponding tag along sort set of target application classification and refers toEnable corresponding second target label allocation;The clear crytpographic key carried in target control instruction is obtained, according to the clear crytpographic key of acquisitionSecond target label allocation is decrypted;The second target label allocation after obtaining and decrypting in the first tag setCorresponding first object label allocation;The corresponding target metadata of first object label allocation is obtained, according to target metadata controlCamera processed executes corresponding operation.
It should be understood that although each step in the flow chart of Fig. 2,3,5,6 is successively shown according to the instruction of arrow,But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, theseThere is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2,3,5,6At least part step may include multiple sub-steps perhaps these sub-steps of multiple stages or stage be not necessarilySynchronization executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage also need notBe so successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn orPerson alternately executes.
Fig. 7 is flow diagram the step of executing above-mentioned camera label allocation processing method.As shown in fig. 7, above-mentionedThe step of executing camera label allocation processing method specifically includes:
Step 702, the first label allocation set is obtained.
Step 704, the first label allocation being successively read in the first label allocation set.
Step 706, judge whether comprising preset field in the first label allocation obtained, if it is not, thening follow the steps 708;If so, returning to step 704.
Step 708, when not including preset field in the first label allocation of acquisition, according to the first label allocation of acquisitionGenerate the second label allocation.
Step 710, the second label allocation of generation is put into the second tag set.
Step 712, judge whether the first label allocation in the first tag set is all read, if so, terminating process;If it is not, then returning to step 704.
In one embodiment, above-mentioned camera label allocation processing method can with the following steps are included:
(1) when detecting the open command of camera of electronic equipment, camera is controlled according to open command and is opened;
(2) preview parameter is configured to camera, and preview mode is entered according to preview state modulator camera.
(3) the first tag set stored in electronic equipment is obtained;
(4) the first label allocation in the first tag set is traversed, the first label allocation for not including preset field is madeFor the second label allocation;
(5) the corresponding classification configurations label of every a kind of application program is obtained from the second label allocation;
(6) application level for obtaining every a kind of application program, carries out at encryption classification configurations label according to application levelReason;
(7) each corresponding frequency of use of classification configurations label is counted;
(8) encrypted classification configurations label is ranked up according to frequency of use, and by the classification configurations mark after sequenceLabel are stored to tag along sort set;
(9) it when detecting that the first label allocation in the first tag set updates, obtains and is updated in the first tag setThe first label allocation as update label allocation;
(10) tag along sort set is updated according to the update label allocation for not including preset field;
(11) when detecting that destination application initiates the target control instruction to camera, destination application is obtainedTarget application classification, obtain target control from the corresponding tag along sort set of target application classification and instruct corresponding second meshMark label allocation;
(12) clear crytpographic key carried in target control instruction is obtained, the second target is configured according to the clear crytpographic key of acquisitionLabel is decrypted;
(13) it is configured from the first object corresponding with the second target label allocation after decryption of acquisition in the first tag setLabel;
(14) the corresponding target metadata of first object label allocation is obtained, camera is controlled according to target metadata and is executedCorresponding operation.
Fig. 8 is the structural schematic diagram of camera label allocation processing unit in one embodiment.As shown in figure 8, the camera shootingHead label allocation processing unit 800 includes that the first label acquisition module 802, the second label acquisition module 804 and the second label are depositedStore up module 806.Wherein:
First label acquisition module 802, for obtaining the first tag set stored in electronic equipment;
Second label acquisition module 804 will not include default for traversing the first label allocation in the first tag setFirst label allocation of field is as the second label allocation;
Second label memory module 806, the second label allocation for that will obtain are stored to the second tag set, whereinSecond label allocation is used to indicate electronic equipment and obtains corresponding first when application program initiates the control instruction to cameraLabel allocation, and camera is controlled according to the first label allocation of acquisition and executes corresponding operation.
Camera label allocation processing unit provided by the above embodiment does not need application program in every secondary control cameraWhen all go define a variable, then by definition different variables go search the first label allocation, then pass through firstLabel allocation removes control camera, reduces the variable for needing application program to define, reduces the maintenance cost to variable, improvesThe efficiency of data processing.
In one embodiment, it is corresponding to be also used to count each second label allocation for the second label memory module 806Frequency of use;The second label allocation is ranked up according to frequency of use, and the second label allocation after sequence is stored toTwo tag sets.
In one embodiment, the application program installed in electronic equipment is classified in advance, the second tag set packetInclude at least one tag along sort set, every corresponding tag along sort set of one kind application program;Second label memory module 806It is also used to obtain the corresponding classification configurations label of every a kind of application program, and the classification configurations that will be obtained from the second label allocationLabel is stored respectively to corresponding tag along sort set.
Second label memory module 806 is also used to obtain the application level of every a kind of application program, according to application level pairClassification configurations label is encrypted;Classification configurations label after encryption is stored respectively to corresponding tag along sort collectionIt closes.
In one embodiment, above-mentioned camera label allocation processing module further includes camera opening module, the camera shootingHead opening module is used for when detecting the open command of camera of electronic equipment, is controlled camera according to open command and is beatenIt opens;Preview parameter is configured to camera, and preview mode is entered according to preview state modulator camera.
In one embodiment, above-mentioned camera label allocation processing module further includes camera control module, the camera shootingHead control module is used for when detecting that destination application initiates the target control instruction to camera, from the second tag setMiddle acquisition target control instructs corresponding second target label allocation;It obtains from the first tag set and is marked with the configuration of the second targetSign corresponding first object label allocation;The corresponding target metadata of first object label allocation is obtained, according to target metadataIt controls camera and executes corresponding operation.
In one embodiment, above-mentioned camera label allocation processing module further includes the second tag update module, thisTwo tag update modules are used to obtain the first tag set when detecting that the first label allocation in the first tag set updatesFirst label allocation of middle update is as update label allocation;It is marked according to the update label allocation for not including preset field to secondLabel set is updated.
The division of modules is only used for for example, in other embodiments in above-mentioned camera label allocation processing unitIn, camera label allocation processing unit can be divided into different modules as required, to complete above-mentioned camera configuration markSign all or part of function of processing unit.
The realization of the modules in camera label allocation processing unit provided in the embodiment of the present application can be calculatingThe form of machine program.The computer program can be run in terminal or server.The program module that the computer program is constituted canIt is stored on the memory of terminal or server.When the computer program is executed by processor, institute in the embodiment of the present application is realizedThe step of description method.
The embodiment of the present application also provides a kind of electronic equipment.It include image processing circuit in above-mentioned electronic equipment, at imageReason circuit can use hardware and or software component realization, it may include define ISP (Image Signal Processing, figureAs signal processing) the various processing units of pipeline.Fig. 9 is the schematic diagram of image processing circuit in one embodiment.Such as Fig. 9 instituteShow, for purposes of illustration only, only showing the various aspects of image processing techniques relevant to the embodiment of the present application.
As shown in figure 9, image processing circuit includes ISP processor 940 and control logic device 950.Imaging device 910 capturesImage data handled first by ISP processor 940, ISP processor 940 to image data analyzed with capture can be used for reallyThe image statistics of fixed and/or imaging device 910 one or more control parameters.Imaging device 910 may include having oneThe camera of a or multiple lens 912 and imaging sensor 914.Imaging sensor 914 may include colour filter array (such asBayer filter), imaging sensor 914 can obtain the luminous intensity captured with each imaging pixel of imaging sensor 914 and wavelengthInformation, and the one group of raw image data that can be handled by ISP processor 940 is provided.Sensor 920 (such as gyroscope) can be based on biographyThe parameter (such as stabilization parameter) of the image procossing of acquisition is supplied to ISP processor 940 by 920 interface type of sensor.Sensor 920Interface can use SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imager framework) interface,The combination of other serial or parallel camera interfaces or above-mentioned interface.
In addition, raw image data can also be sent to sensor 920 by imaging sensor 914, sensor 920 can be based on biographyRaw image data is supplied to ISP processor 940 to 920 interface type of sensor or sensor 920 deposits raw image dataIt stores up in video memory 930.
ISP processor 940 handles raw image data pixel by pixel in various formats.For example, each image pixel canBit depth with 8,10,12 or 14 bits, ISP processor 940 can carry out raw image data at one or more imagesReason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precisionIt carries out.
ISP processor 940 can also receive image data from video memory 930.For example, 920 interface of sensor will be originalImage data is sent to video memory 930, and the raw image data in video memory 930 is available to ISP processor 940It is for processing.Video memory 930 can be independent special in a part, storage equipment or electronic equipment of memory deviceIt with memory, and may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving from 914 interface of imaging sensor or from 920 interface of sensor or from video memory 930When raw image data, ISP processor 940 can carry out one or more image processing operations, such as time-domain filtering.Treated schemesAs data can be transmitted to video memory 930, to carry out other processing before shown.ISP processor 940 is from imageMemory 930 receives processing data, and carries out in original domain and in RGB and YCbCr color space to the processing dataImage real time transfer.Treated that image data may be output to display 970 for ISP processor 940, for user's viewing and/orIt is further processed by graphics engine or GPU (Graphics Processing Unit, graphics processor).In addition, ISP processor940 output also can be transmitted to video memory 930, and display 970 can read image data from video memory 930.?In one embodiment, video memory 930 can be configured to realize one or more frame buffers.In addition, ISP processor 940Output can be transmitted to encoder/decoder 960, so as to encoding/decoding image data.The image data of coding can be saved,And it is decompressed before being shown in 970 equipment of display.Encoder/decoder 960 can be real by CPU or GPU or coprocessorIt is existing.
The statistical data that ISP processor 940 determines, which can be transmitted, gives control logic device Unit 950.For example, statistical data can wrapInclude the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 912 shadow correction of lens914 statistical information of device.Control logic device 950 may include the processor and/or micro-control for executing one or more routines (such as firmware)Device processed, one or more routines can statistical data based on the received, determine the control parameter and ISP processor of imaging device 910940 control parameter.For example, the control parameter of imaging device 910 may include 920 control parameter of sensor (such as gain, exposureThe time of integration, stabilization parameter of control etc.), camera flash control parameter, 912 control parameter of lens (such as focus or zoomWith focal length) or these parameters combination.ISP control parameter may include for automatic white balance and color adjustment (for example, in RGBDuring processing) 912 shadow correction parameter of gain level and color correction matrix and lens.
The following are realize camera label allocation processing method provided by the above embodiment with image processing techniques in Fig. 9The step of.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computerThe non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processorsWhen, so that the step of processor executes camera label allocation processing method provided by the above embodiment.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentionedThe camera label allocation processing method that embodiment provides.
It may include non-to any reference of memory, storage, database or other media used in the embodiment of the present applicationVolatibility and/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may includeRandom access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM in a variety of forms may be used, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM),Enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneouslyThe limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the artFor, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the applicationProtect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.