CN114721730A - Image pickup device identification method, image pickup device identification apparatus, and storage medium - Google Patents

Image pickup device identification method, image pickup device identification apparatus, and storage medium Download PDF

Info

Publication number
CN114721730A
CN114721730A CN202110005555.5A CN202110005555A CN114721730A CN 114721730 A CN114721730 A CN 114721730A CN 202110005555 A CN202110005555 A CN 202110005555A CN 114721730 A CN114721730 A CN 114721730A
Authority
CN
China
Prior art keywords
file
drive
image acquisition
driving
index table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110005555.5A
Other languages
Chinese (zh)
Inventor
房杨浩
蔡德尊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110005555.5A priority Critical patent/CN114721730A/en
Publication of CN114721730A publication Critical patent/CN114721730A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Studio Devices (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present disclosure relates to an image pickup device identification method, an image pickup device identification apparatus, and a storage medium. The image acquisition component identification method is applied to a terminal, the terminal comprises a plurality of image acquisition components, and the method comprises the following steps: the method comprises the steps that loading of driving files corresponding to a plurality of image acquisition components is carried out in response to triggering, and a driving record file is called, wherein driving file names of the driving files corresponding to one or more image acquisition components in the plurality of image acquisition components are recorded in the driving record file; if the drive record file is successfully called, a first drive file loading index table is established based on the drive file name recorded in the drive record file, and a plurality of image acquisition components are identified based on the first drive file loading index table. Through the embodiment of the disclosure, the loading time driven by the image acquisition component is optimized, and the performance of the terminal is improved, so that the user experience is improved.

Description

Image pickup device identification method, image pickup device identification apparatus, and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an image capturing component recognition method, an image capturing component recognition apparatus, and a storage medium.
Background
With the development of the technology, the terminal technology is rapidly developed, and in order to meet the increasing use requirements of people, the performance and configuration of the terminal are higher and higher, wherein the shooting performance of the terminal is concerned by people. The configuration of image acquisition components has evolved from the first few hundred pixels to tens or hundreds of millions of pixels. The number of cameras has also started to be single shot, and the number of cameras has been double shot and multiple shot.
The terminal is provided with a plurality of cameras, and the camera modules of the cameras are different in software for driving the cameras due to the difference of production channels and manufacturing process environments. When the terminal loads the plurality of cameras, the loading time of the driving software of the plurality of cameras is prolonged, the operation interface is displayed after the terminal is started in severe cases, and when a user wants to use the camera to shoot, the driving of the camera is not loaded, so that the user cannot normally use the functions of the camera, and the user experience is influenced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an image pickup device, an image pickup method, and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided an image capturing component identifying method applied to a terminal including a plurality of image capturing components, the image capturing component identifying method including: responding to a trigger to load the driving files corresponding to the plurality of image acquisition components, and calling a driving record file, wherein the driving record file records the driving file names of the driving files corresponding to one or more image acquisition components in the plurality of image acquisition components; if the drive record file is called successfully, a first drive file loading index table is established based on the drive file name recorded in the drive record file, and the plurality of image acquisition components are identified based on the first drive file loading index table.
In an embodiment, the terminal includes a driver file data packet, and the driver file data packet includes driver files whose number is greater than the number of image capturing components included in the terminal, and the image capturing component identification method further includes: if the drive record file is not called, creating a drive record file, and creating a second drive file loading index table based on the drive file included in the drive file data packet; and identifying the plurality of image acquisition components based on the second drive file loading index table, and recording drive file names of drive files corresponding to the plurality of image acquisition components which are successfully identified based on the second drive file loading index table in the drive record file.
In an embodiment, recording, in the drive record file, drive file names of drive files corresponding to the plurality of image capturing components that are successfully identified based on the second drive file loading index table includes: traversing each drive file in the second drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file; and in response to that all the pieces of drive information corresponding to the first drive file in the second drive file loading index table are successfully matched with the pieces of information corresponding to the first image acquisition components in the plurality of image acquisition components, determining that the first drive file is the drive file successfully identified by the first image acquisition components, and recording the file name of the first drive file in the drive record file.
In one embodiment, identifying the plurality of image capture components based on the first driver file load index table comprises: traversing each drive file in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file; and determining that the identification of each image acquisition component in the plurality of image acquisition components is successful in response to the fact that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the information corresponding to each image acquisition component in the plurality of image acquisition components is successful.
In an embodiment, the terminal includes a driver file data packet, and the identifying the plurality of image capturing components based on the first driver file loading index table includes: determining a third driver file with the same type identifier as the second driver file in the driver file data packet in response to the fact that the driver information which is unsuccessfully matched with the information corresponding to the second image acquisition component exists in the plurality of driver information corresponding to the second driver file in the first driver file loading index table; traversing a plurality of driving information corresponding to the third driving file, and matching the plurality of driving information with the information corresponding to the second image acquisition component; and determining that the second image acquisition component is successfully identified in response to the fact that all of the plurality of driving information corresponding to the third driving file and the corresponding information of the second image acquisition component are successfully matched.
In one embodiment, the image capturing component identifying method further comprises: and in response to that all the plurality of pieces of driving information corresponding to the third driving file are successfully matched with the corresponding information of the second image acquisition component, deleting the file name of the second driving file in the driving record file, and recording the file name of the third driving file in the driving record file.
According to still another aspect of the embodiments of the present disclosure, there is provided an image capturing component recognizing apparatus applied to a terminal including a plurality of image capturing components, the image capturing component recognizing apparatus including: the calling module is used for responding to the trigger to load the driving files corresponding to the plurality of image acquisition components and calling a driving record file, and the driving record file records the driving file names of the driving files corresponding to one or more image acquisition components in the plurality of image acquisition components; the establishing module is used for establishing a first drive file loading index table based on the drive file name recorded in the drive record file when the drive record file is successfully called; an identification module to identify the plurality of image capture components based on the first driver file load index table.
In an embodiment, the terminal includes a driver file data packet, and the driver file data packet includes driver files whose number is greater than that of the image capturing components included in the terminal, and the apparatus further includes: the creating module is used for creating a drive record file when the drive record file is not called, creating a second drive file loading index table based on the drive file included in the drive file data packet, and recording the drive file names of the drive files corresponding to the plurality of image acquisition components which are successfully identified based on the second drive file loading index table in the drive record file; the identification module is further configured to identify the plurality of image capture components based on the second driver file loading index table.
In an embodiment, the creating module records, in the drive record file, the drive file names of the drive files corresponding to the plurality of image capturing components that are successfully identified based on the second drive file loading index table in the following manner: traversing each drive file in the second drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file; and in response to that all the pieces of drive information corresponding to the first drive file in the second drive file loading index table are successfully matched with the pieces of information corresponding to the first image acquisition components in the plurality of image acquisition components, determining that the first drive file is the drive file successfully identified by the first image acquisition components, and recording the file name of the first drive file in the drive record file.
In one embodiment, the identification module identifies the plurality of image capture components based on the first driver file loading index table as follows: traversing each drive file in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file; and determining that the identification of each image acquisition component in the plurality of image acquisition components is successful in response to the fact that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the information corresponding to each image acquisition component in the plurality of image acquisition components is successful.
In an embodiment, the terminal includes a driver file data packet, and the identification module identifies the plurality of image capturing components based on the first driver file loading index table in the following manner: determining a third driver file with the same type identifier as the second driver file in the driver file data packet in response to the fact that the driver information which is unsuccessfully matched with the information corresponding to the second image acquisition component exists in the plurality of driver information corresponding to the second driver file in the first driver file loading index table; traversing a plurality of driving information corresponding to the third driving file, and matching the plurality of driving information with the information corresponding to the second image acquisition component; and determining that the second image acquisition component is successfully identified in response to the fact that all of the plurality of driving information corresponding to the third driving file and the corresponding information of the second image acquisition component are successfully matched.
In one embodiment, the apparatus further comprises: and the updating module is used for deleting the file name of the second drive file in the drive record files and recording the file name of the third drive file in the drive record files in response to the fact that the plurality of pieces of drive information corresponding to the third drive file are successfully matched with the information corresponding to the second image acquisition component.
According to still another aspect of the embodiments of the present disclosure, there is provided an image pickup element identifying apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: performing the image capture component identification method of any of the preceding claims.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform any one of the image capturing component recognition methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the loading time of the image acquisition component drive is optimized, and the terminal performance is improved, so that the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of a method for identifying an image capturing component in the prior art.
Fig. 2 is a flowchart illustrating an image capturing component identification method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating an image capturing component identification method according to another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating an image capturing component identification method according to another exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating an image capturing element identifying method according to another exemplary embodiment of the present disclosure.
Fig. 6 is a flowchart illustrating an image capturing element identifying method according to another exemplary embodiment of the present disclosure.
Fig. 7 is a flowchart illustrating an image capturing component identification method according to another exemplary embodiment of the present disclosure.
Fig. 8 is a flowchart illustrating an image capturing component identification method according to an exemplary embodiment of the present disclosure.
Fig. 9 is a flowchart illustrating an image capturing component identification method according to an exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating an image capturing component recognition apparatus according to an exemplary embodiment of the present disclosure.
Fig. 11 is a block diagram illustrating an image capturing component recognition apparatus according to an exemplary embodiment of the present disclosure.
Fig. 12 is a block diagram illustrating an image capturing component recognition apparatus according to an exemplary embodiment of the present disclosure.
FIG. 13 is a block diagram illustrating an apparatus for image acquisition component identification according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The intelligent terminal that contains the shooting function is more and more generalized, and the shooting function has become one of intelligent terminal's important function, and the shooting function is realized through the image acquisition part that the terminal set up, and intelligent terminal function of making a video recording is called the important evaluation index of terminal performance. In order to improve the user experience and meet the use requirements of users, the multi-camera function becomes a great development direction of the camera technology,
in the related art, the terminal board and the camera module communicate with each other via an I2C (Inter-Integrated Circuit) bus. The camera module is connected with a control chip on a mobile phone mainboard through an I2C bus, the control chip is a host, and a plurality of functional modules of the camera module mounted on the I2C bus are slaves. The I2C bus is a bi-directional two-wire continuous bus that passes information between devices connected to the bus via a Serial Data (SDA) line and a Serial Clock (SCL) line.
The terminal is provided with a plurality of cameras, and the camera modules of the cameras are different in software for driving the cameras due to differences of production channels, manufacturing processes and the like. When the terminal loads the plurality of cameras, the loading time of the driving software of the plurality of cameras is prolonged, the operation interface is displayed after the terminal is started in severe cases, and when a user wants to use the camera to shoot, the driving of the camera is not loaded, so that the user cannot normally use the functions of the camera, and the user experience is influenced.
Fig. 1 shows a flowchart of an image pickup section recognition method in the related art, and referring to fig. 1, the image pickup section recognition method includes the following steps.
In step S101, all the drive files are traversed, and an index table is created according to the file names.
In step S102, the EEPROM information of the image pickup module is read out by the I2C arrangement arranged in the drive file. The EEPROM is an electrically erasable programmable read-only memory, and the EEPROM of the camera module is mainly used for storing data burned in a factory and calibrating the data to keep the consistency of the module.
In step S103, it is determined whether the information of the drive file in the index table and the read EEPROM information coincide with each other.
When the information of the drive file in the index table is not consistent with the read EEPROM information, step S102 is executed, i.e., the next drive file is read from the drive file, and the EEPROM information of the camera module is read through the I2C configuration configured in the drive.
When the information of the drive file in the index table and the read EEPROM information coincide, step S104 is performed, and the read sensor ID is configured by I2C of the sensor in the drive file.
In step S105, it is determined whether the information of the drive file in the index table and the read sensor ID match.
When the information of the drive file in the index table does not match the read sensor ID, step S102 is executed, in which the next drive file is read from the drive file, the EEPROM information of the camera module is read by the I2C arrangement configured in the drive.
When the information of the drive file in the index table matches the read sensor ID, step S106 is executed, the loading of the current drive file is completed, and step S102 is executed, that is, the next drive file is read from the drive file until all the drive files of the terminal are traversed.
In the process, the drive of the image acquisition part is detected and loaded by adopting a method of circularly traversing all drive files of the terminal. When the terminal driver file includes a large number of driver files corresponding to the number of image capturing components, the driver loading time of the image capturing components is too long.
Based on the above, the present disclosure provides an image capturing component identification method, where when a terminal loads a plurality of image capturing components corresponding to drive files, a first drive file loading index table is established based on a drive record file, and the plurality of image capturing components are identified based on the index table, so that loading time of image capturing component drive is optimized.
Fig. 2 is a flowchart illustrating an image pickup element identifying method according to an exemplary embodiment, the image pickup element identifying method being used in a terminal including a plurality of image pickup elements. The terminal can be a smart phone, a tablet computer or a wearable device, for example. The disclosed embodiment does not limit the kind of the applied device of the disclosed embodiment. Referring to fig. 2, the image capturing component identifying method includes the following steps.
In step S201, in response to triggering, loading the driver files corresponding to the multiple image capturing components, calling a driver record file, where the driver record file records driver file names of the driver files corresponding to one or more image capturing components in the multiple image capturing components.
In step S202, if the drive record file is successfully called, a first drive file loading index table is established based on the drive file name recorded in the drive record file, and a plurality of image capturing components are identified based on the first drive file loading index table.
In the embodiment of the disclosure, when the terminal is started, the loading of the driver files corresponding to the plurality of image acquisition components is performed. And calling a drive record file, wherein the drive record file is recorded with drive file names of one or more image acquisition components in the plurality of image acquisition components corresponding to the drive file. It is understood that the image capturing part has a corresponding relationship with the drive file.
And when the drive record file is successfully called, establishing a first drive file loading index table based on the drive file name recorded in the drive record file. The first drive file loading index table records a drive file name and file contents of a drive file corresponding to the drive file name. The driver file may include, for example, address information of the image pickup device, a value of the image pickup device, and the like. A plurality of image capture components are identified based on a first driver file loading index table.
According to the embodiment of the disclosure, when the terminal loads the drive files corresponding to the plurality of image acquisition components, the first drive file loading index table is established based on the drive record file, and the plurality of image acquisition components are identified based on the index table, so that the loading time of the image acquisition component drive is optimized, the terminal performance is improved, and the user experience is improved.
Fig. 3 is a flowchart illustrating an image pickup part identification method according to another exemplary embodiment of the present disclosure, and as shown in fig. 3, the image pickup part identification method includes the following steps.
In step S301, in response to triggering to load the driver files corresponding to the plurality of image capturing components, a driver record file is called, and the driver record file records the driver file names of the driver files corresponding to one or more image capturing components in the plurality of image capturing components.
In step S302, if the driver record file is successfully called, a first driver file loading index table is established based on the driver file name recorded in the driver record file, and a plurality of image capturing components are identified based on the first driver file loading index table.
In step S303, if the drive record file is not called, the drive record file is created, and a second drive file loading index table is created based on the drive file included in the drive file data packet.
In step S304, a plurality of image capturing components are identified based on the second driver file loading index table, and driver file names of driver files corresponding to the plurality of image capturing components successfully identified based on the second driver file loading index table are recorded in the driver record file.
In the embodiment of the disclosure, the terminal loads the driver files corresponding to the plurality of image acquisition components. And calling a drive record file, wherein the drive record file is recorded with drive file names of one or more image acquisition components in the plurality of image acquisition components corresponding to the drive file. And when the drive record file is successfully called, establishing a first drive file loading index table based on the drive file name recorded in the drive record file. The index table records a drive file name and the file content of the drive file corresponding to the drive file name. The driver file may include, for example, address information of the image pickup device, ID value of the image pickup device, and the like. A plurality of image capture components are identified based on a first driver file loading index table.
And when the drive record file is not called and does not exist in the terminal, creating the drive record file, and creating a second drive file loading index table based on the drive file included in the drive file data packet. In one embodiment of the disclosure, the terminal comprises a drive file data packet, and the drive file data packet comprises a number of drive files larger than the number of image acquisition components included in the terminal. That is, since a plurality of image pickup elements included in the terminal are applied with different drive files, even if the image pickup elements are disposed at the same portion of the terminal, the drive files applied thereto are different due to production factors thereof. Therefore, in order to correctly identify and load a plurality of image acquisition components of the terminal, the number of drive files for the number of the image acquisition components in the drive file data packet of the terminal is greater than the number of the image acquisition components actually included in the terminal. It can be understood that the second drive file loads the index table corresponding to all drive file names in the drive file data packet included in the terminal, that is, the second drive file includes drive file names of drive files whose number is greater than the number of image capturing components included in the terminal.
And identifying the plurality of image acquisition components based on the second drive file loading index table, and recording drive file names of drive files corresponding to the plurality of image acquisition components successfully identified based on the second drive file loading index table in the drive record file.
According to the embodiment of the disclosure, when the terminal loads the drive files corresponding to the plurality of image acquisition components, when the drive record file exists, a first drive file loading index table is established based on the drive record file, the plurality of image acquisition components are identified based on the index table, when the drive record file does not exist, the drive record file is established, a second drive file loading index table is established based on the drive file included in the drive file data packet, the plurality of image acquisition components are identified based on the second drive file loading index table, and the drive file names of the drive files corresponding to the plurality of image acquisition components successfully identified based on the second drive file loading index table are recorded in the drive record file, so that the loading time of the image acquisition component drive is saved.
Fig. 4 is a flowchart illustrating a method of recording a drive file name in a drive record file according to an exemplary embodiment of the present disclosure, and the method of recording a drive file name in a drive record file, as illustrated in fig. 4, includes the following steps.
In step S401, each driver file in the index table is loaded by traversing the second driver file, and for each driver file, the plurality of pieces of driver information corresponding to the driver file are sequentially matched with the plurality of pieces of information corresponding to the image capturing component.
In step S402, in response to that all of the plurality of pieces of drive information corresponding to the first drive file in the second drive file loading index table and the first image capturing component corresponding information in the plurality of image capturing components are successfully matched, it is determined that the first drive file is a drive file successfully identified by the first image capturing component, and a file name of the first drive file is recorded in a drive record file.
In the embodiment of the disclosure, the terminal loads the driver files corresponding to the plurality of image acquisition components, creates the driver record file when the driver record file is not called, and creates a second driver file loading index table based on the driver files included in the driver file data packet. When the drive record file is created, the second drive file is traversed to load each drive file in the index table, and for each drive file, the plurality of drive information corresponding to the drive file are sequentially matched with the information corresponding to the plurality of image acquisition components. The driving information may include address information of the image pickup element, a value of the image pickup element, and the like driving information, for example, EEPROM information of the image pickup element, sensor ID of the image pickup element, and the like.
When all the drive information corresponding to the first drive file is successfully matched with the corresponding information corresponding to the first image acquisition component in the image acquisition components in the process of traversing the second drive file and loading the drive files in the index table, determining that the first drive file is the drive file successfully identified by the first image acquisition component, and recording the file name of the first drive file in the drive record file. And sequentially circulating until the second drive file loads all the drive files in the index table to complete traversing, and completing the creation of the drive record file.
According to the embodiment of the disclosure, the second drive file is traversed to load each drive file in the index table, and for each drive file, the plurality of drive information corresponding to the drive file are sequentially matched with the information corresponding to the plurality of image acquisition components, the first drive file successfully matched with the first image acquisition component is recorded in the drive record file, and the drive record file is successfully created until the traversal is finished, so that a basis is provided for the subsequent loading of the drive of the image acquisition components.
Fig. 5 is a flowchart illustrating a method for identifying a plurality of image capturing components based on a first driver file loading index table according to an exemplary embodiment of the present disclosure, and as shown in fig. 5, the method for identifying a plurality of image capturing components based on a first driver file loading index table includes the following steps.
In step S501, each driver file in the index table is loaded by traversing the first driver file, and for each driver file, the plurality of pieces of driver information corresponding to the driver file are sequentially matched with the plurality of pieces of information corresponding to the image capturing components.
In step S502, in response to that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the information corresponding to each image capturing component in the plurality of image capturing components is successful, it is determined that each image capturing component in the plurality of image capturing components is successfully identified.
In the embodiment of the disclosure, the terminal loads the drive files corresponding to the plurality of image acquisition components, and calls the drive record file, where the drive record file records drive file names of the drive files corresponding to one or more image acquisition components in the plurality of image acquisition components.
And when the drive record file is successfully called, establishing a first drive file loading index table based on the drive file name recorded in the drive record file. The first drive file loading index table records a drive file name and file contents of a drive file corresponding to the drive file name. It is understood that the number of the drive file names in the first drive file loading index table is less than or equal to the number of the image capture component drive files included in the terminal drive file data packet. The driving information may include EEPROM information of the image pickup device, sensor ID of the image pickup device, and the like. And traversing the drive files in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to the drive files with the information corresponding to the plurality of image acquisition components aiming at each drive file. And when the plurality of driving information corresponding to each driving file in the first driving file loading index table is successfully matched with the information corresponding to each image acquisition component in the plurality of image acquisition components, determining that each image acquisition component in the plurality of image acquisition components is successfully identified, namely that the terminal successfully loads the plurality of image acquisition components.
According to the embodiment of the disclosure, when the plurality of image acquisition components are identified based on the first drive file loading index table, only the drive files in the first drive file loading index table need to be traversed, the number of the drive files is smaller than that of the drive files in the drive file data packet in the terminal, and the time consumed by traversing the drive files is saved during loading, so that the loading time of the image acquisition component drive is reduced.
Fig. 6 is a flowchart illustrating a method for identifying a plurality of image capturing components based on a first driver file loading index table according to an exemplary embodiment of the present disclosure, where the method for identifying a plurality of image capturing components based on a first driver file loading index table, as shown in fig. 6, includes the following steps.
In step S601, in response to that there is drive information that is unsuccessfully matched with the information corresponding to the second image capturing component in the plurality of drive information corresponding to the second drive file in the first drive file loading index table, a third drive file that is the same as the second drive file type identifier is determined in the drive file data packet.
In step S602, a plurality of driving information corresponding to the third driving file is traversed, and the plurality of driving information is matched with the information corresponding to the second image capturing element.
In step S603, in response to that all of the plurality of drive information corresponding to the third drive file and the second image capturing part corresponding information are successfully matched, it is determined that the second image capturing part is successfully identified.
In the embodiment of the disclosure, the terminal loads the drive files corresponding to the plurality of image acquisition components, and calls the drive record file, where the drive record file records drive file names of the drive files corresponding to the plurality of image acquisition components. The image capturing components and the driver files have a one-to-one correspondence relationship, but when the image capturing components of the terminal are changed, for example, one or more image capturing components are repaired and replaced, the driver files in the driver record file may not be able to realize normal loading of the replaced image capturing components. In this case, there is drive information that is unsuccessfully matched with the information corresponding to the second image capturing component in the plurality of drive information corresponding to the second drive file in the first drive file loading index table, and a third drive file having the same type identifier as the second drive file is determined in the drive file data packet, where the third drive file may be one or a plurality of drive files. The second drive file type identifier may be, for example, a slot id of the image acquisition component, and is used to identify a setting position of the image acquisition component at the terminal, that is, a main shot, a front shot, and the like of the terminal, the setting position of the image acquisition component corresponding to the drive file may be located by the slot id, a plurality of drive information corresponding to the third drive file is traversed, and the plurality of drive information is matched with information corresponding to the second image acquisition component, when all matching is successful, it is determined that the second image acquisition component is successfully identified, the third drive file is a drive file matched with the second image acquisition component, and loading of the second image acquisition component may be implemented by using the third drive file.
According to the embodiment of the disclosure, the second drive file in the drive record file cannot realize normal loading of the second image acquisition component, the third drive file with the same type identifier as the second drive file is determined in the drive file data packet, the third drive file corresponding to the second image acquisition component is successfully matched with all information corresponding to the second image acquisition component, it is determined that the second image acquisition component is successfully identified, and the successfully matched third drive file can normally identify the second image acquisition component.
Fig. 7 is a flowchart illustrating an image pickup element identifying method according to an exemplary embodiment of the present disclosure, and as shown in fig. 7, the image pickup element identifying method includes the following steps.
In step S701, in response to that there is drive information that is unsuccessfully matched with the information corresponding to the second image capturing component in the plurality of drive information corresponding to the second drive file in the first drive file loading index table, a third drive file that is the same as the second drive file type identifier is determined in the drive file data packet.
In step S702, a plurality of driving information corresponding to the third driving file is traversed, and the plurality of driving information is matched with the second image capturing element corresponding information.
In step S703, in response to that all of the plurality of pieces of drive information corresponding to the third drive file and the second image capturing part corresponding information are successfully matched, it is determined that the second image capturing part is successfully identified.
In step S704, the file name of the second drive file in the drive record file is deleted, and the file name of the third drive file is recorded in the drive record file.
In the embodiment of the disclosure, the terminal loads the drive files corresponding to the plurality of image acquisition components, and calls the drive record file, where the drive record file records drive file names of the drive files corresponding to the plurality of image acquisition components. And determining a third drive file with the same type identifier as the second drive file in the drive file data packet, wherein the third drive file may be one or multiple. Traversing a plurality of driving information corresponding to the third driving file, matching the plurality of driving information with the information corresponding to the second image acquisition component, and when all the matching is successful, determining that the second image acquisition component is successfully identified, wherein the third driving file is the driving file matched with the second image acquisition component, and the loading of the second image acquisition component can be realized by utilizing the third driving file. In order to normally load the drive record file when the plurality of image acquisition components are loaded next time, the file name of the second drive file in the drive record file is deleted, and the file name of the third drive file is recorded in the drive record file. And when the driving loading of the second image acquisition component is carried out next time, the third driving file is utilized to realize the normal loading and identification of the second image acquisition component.
According to the embodiment of the disclosure, the second drive file in the drive record file cannot realize normal loading of the second image acquisition component, the third drive file with the same type identifier as the second drive file is determined in the drive file data packet, the third drive file corresponding to the second image acquisition component is successfully matched with all information corresponding to the second image acquisition component, and the second image acquisition component is successfully identified, so that the successfully matched third drive file can normally identify the second image acquisition component. And recording the third drive file in the drive record file so as to realize the normal identification of the subsequent second image acquisition component.
Fig. 8 is a flowchart illustrating an image pickup element identifying method according to an exemplary embodiment of the present disclosure, and as shown in fig. 8, the image pickup element identifying method includes the following steps.
In step S801, a drive recording file is created.
In the embodiment of the present disclosure, the terminal loads the driver files corresponding to the plurality of image capturing components, and when the driver record file is not called, for example, when the terminal is used for loading the driver files corresponding to the plurality of image capturing components for the first time, the driver record file does not exist in the terminal, and then the driver record file is created.
In step S802, a second drive file loading index table is created based on the drive files included in the drive file package.
In step S803, the EEPROM information of the image pickup module is read out by the I2C arrangement arranged in the drive file.
In step S804, it is determined whether the information of the drive file and the read EEPROM information coincide with each other.
When the information of the drive file and the read EEPROM information coincide, step S805 is performed.
When the information of the drive file is not consistent with the read EEPROM information, step S803 is executed to read the next drive file in the second drive file loading index table, and read the EEPROM information of the camera module by the I2C arrangement arranged in the drive file.
In step S805, the read sensor ID is configured by I2C of the sensor in the drive file.
In step S806, it is determined whether the information of the drive file and the read sensor ID match.
When the information of the drive file and the read sensor ID match, step S807 is executed.
When the information of the drive file and the read sensor ID do not match, step S803 is performed to read the next drive file in the second drive file loading index table.
In step S807, a drive file name is recorded in the drive file, and the drive file in the second drive file loading index table is traversed.
Fig. 9 is a flowchart illustrating an image pickup element identifying method according to an exemplary embodiment of the present disclosure, and as shown in fig. 9, the image pickup element identifying method includes the following steps.
In step S901, a drive record file is called.
In the embodiment of the disclosure, the terminal loads the driver files corresponding to the plurality of image capturing components, and when the driver record file is called, for example, the terminal is not used for the first time, the driver files corresponding to the plurality of image capturing components are loaded, and the driver record file exists at the terminal, the driver record file is called.
In step S902, a first drive file loading index table is created based on the drive file name recorded in the drive record file.
In step S903, the driver files in the first driver file loading index table are traversed.
In step S904, the EEPROM information of the image pickup module is read by the I2C arrangement arranged in the drive file.
In step S905, it is determined whether the information of the drive file and the read EEPROM information coincide with each other.
When the information of the drive file and the read EEPROM information coincide, step S906 is performed.
When the information of the drive file and the read EEPROM information do not coincide, step S909 is executed.
In step S906, the read sensor ID is configured by I2C of the sensor in the drive file.
In step S907, it is determined whether the information of the drive file and the read sensor ID match.
When the information of the drive file and the read sensor ID match, step S908 is performed.
In step S908, the image capturing section is identified as successful.
When the information of the drive file and the read sensor ID do not match, step S909 is performed.
In step S909, a third drive file identical to the second drive file type identifier is determined in the drive file package.
In step S910, a plurality of driving information corresponding to the third driving file is traversed, and the plurality of driving information is matched with the second image capturing element corresponding information.
In step S911, in response to that all of the plurality of driving information corresponding to the third driving file and the second image capturing part corresponding information are successfully matched, it is determined that the second image capturing part is successfully identified.
In step S912, the file name of the second drive file in the drive record file is deleted, and the file name of the third drive file is recorded in the drive record file.
According to the embodiment of the disclosure, when the terminal loads the drive files corresponding to the plurality of image acquisition components, the first drive file loading index table is established based on the drive record file, and the plurality of image acquisition components are identified based on the index table, so that the loading time of the image acquisition component drive is optimized, the terminal performance is improved, and the user experience is improved.
Based on the same conception, the embodiment of the disclosure also provides an image acquisition component identification device.
It is understood that the image capturing component recognition apparatus provided by the embodiments of the present disclosure includes hardware structures and/or software modules for performing the functions described above. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the subject matter of the embodiments of the present disclosure.
Fig. 10 is a block diagram illustrating an image capturing element recognition apparatus according to an exemplary embodiment of the present disclosure. The image capturing component recognition apparatus is applied to a terminal, the terminal includes a plurality of image capturing components, and referring to fig. 10, the image capturing component recognition apparatus 100 includes a calling module 101, a building module 102, and a recognition module 103.
The calling module 101 is configured to, in response to a trigger, load a drive file corresponding to the plurality of image capturing components, and call a drive record file, where drive file names of the drive files corresponding to one or more image capturing components in the plurality of image capturing components are recorded in the drive record file.
The creating module 102 is configured to create a first drive file loading index table based on the drive file name recorded in the drive record file when the drive record file is successfully called.
The identification module 103 is configured to identify a plurality of image capturing components based on the first driver file loading index table.
In one embodiment, the terminal comprises a drive file data packet, and the drive file data packet comprises a number of drive files larger than the number of image acquisition components included in the terminal. Fig. 11 is a block diagram illustrating an image capturing component recognition apparatus according to an exemplary embodiment of the present disclosure, and referring to fig. 11, the image capturing component recognition apparatus 100 further includes a creation module 104.
The creating module 104 is configured to create a drive record file when the drive record file is not called, create a second drive file loading index table based on the drive files included in the drive file data packet, and record, in the drive record file, drive file names of the drive files corresponding to the plurality of image acquisition components successfully identified based on the second drive file loading index table.
The identification module 103 is further configured to identify a plurality of image capturing components based on the second driver file loading index table.
In an embodiment, the creating module 104 records the drive file names of the drive files corresponding to the plurality of image capturing components successfully identified based on the second drive file loading index table in the drive record file as follows:
traversing each drive file in the second drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with information corresponding to a plurality of image acquisition components for each drive file;
and in response to the fact that all the pieces of drive information corresponding to the first drive file in the second drive file loading index table are successfully matched with the pieces of information corresponding to the first image acquisition components in the plurality of image acquisition components, determining that the first drive file is the drive file successfully identified by the first image acquisition components, and recording the file name of the first drive file in the drive record file.
In one embodiment, the identification module 103 identifies the plurality of image capturing components based on the first driver file loading index table in the following manner: traversing each drive file in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with corresponding information of a plurality of image acquisition components aiming at each drive file; and determining that the identification of each image acquisition component in the plurality of image acquisition components is successful in response to the fact that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the corresponding information of each image acquisition component in the plurality of image acquisition components is successful.
In an embodiment, the terminal includes a driver file data packet, and the identifying module 103 identifies the plurality of image capturing components based on the first driver file loading index table in the following manner: determining a third drive file with the same type identification as the second drive file in the drive file data packet in response to the fact that the drive information which is unsuccessfully matched with the information corresponding to the second image acquisition component exists in the plurality of drive information corresponding to the second drive file in the first drive file loading index table; traversing a plurality of driving information corresponding to the third driving file, and matching the plurality of driving information with the information corresponding to the second image acquisition component; and determining that the second image acquisition component is successfully identified in response to the fact that all the plurality of driving information corresponding to the third driving file and the corresponding information of the second image acquisition component are successfully matched.
Fig. 12 is a block diagram illustrating an image capturing element recognition apparatus according to an exemplary embodiment of the present disclosure, and referring to fig. 12, the image capturing element recognition apparatus 100 further includes an update module 105.
And the updating module 105 is configured to delete the file name of the second drive file in the drive record file and record the file name of the third drive file in the drive record file in response to that all the pieces of drive information corresponding to the third drive file are successfully matched with the pieces of information corresponding to the second image acquisition component.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating an apparatus 800 for image capture component identification according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 13, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile and non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like, are used to describe various information and should not be limited by these terms. These terms are only used to distinguish one type of information from another, and do not indicate a particular order or degree of importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It is further to be understood that while operations are depicted in the drawings in a particular order, this is not to be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An image acquisition component identification method, applied to a terminal including a plurality of image acquisition components, the method comprising:
responding to a trigger to load the driving files corresponding to the plurality of image acquisition components, and calling a driving record file, wherein the driving record file records the driving file names of the driving files corresponding to one or more image acquisition components in the plurality of image acquisition components;
if the drive record file is called successfully, a first drive file loading index table is established based on the drive file name recorded in the drive record file, and the plurality of image acquisition components are identified based on the first drive file loading index table.
2. The image capturing component identifying method as claimed in claim 1, wherein the terminal includes a driver file data package including a number of driver files larger than the number of image capturing components included in the terminal, the method further comprising:
if the drive record file is not called, creating a drive record file, and creating a second drive file loading index table based on the drive file included in the drive file data packet;
and identifying the plurality of image acquisition components based on the second drive file loading index table, and recording drive file names of drive files corresponding to the plurality of image acquisition components which are successfully identified based on the second drive file loading index table in the drive record file.
3. The image capturing component identifying method according to claim 2, wherein recording, in the driver record file, driver file names of driver files corresponding to the plurality of image capturing components that are successfully identified based on the second driver file loading index table includes:
traversing each drive file in the second drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file;
and in response to that all the pieces of drive information corresponding to the first drive file in the second drive file loading index table are successfully matched with the pieces of information corresponding to the first image acquisition components in the plurality of image acquisition components, determining that the first drive file is the drive file successfully identified by the first image acquisition components, and recording the file name of the first drive file in the drive record file.
4. The image capturing component identifying method according to any one of claims 1 to 3, wherein identifying the plurality of image capturing components based on the first driver file loading index table includes:
traversing each drive file in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file;
and determining that the identification of each image acquisition component in the plurality of image acquisition components is successful in response to the fact that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the information corresponding to each image acquisition component in the plurality of image acquisition components is successful.
5. The method according to any one of claims 1 to 3, wherein the terminal includes a driver file data package, and the identifying the plurality of image capturing components based on the first driver file loading index table includes:
determining a third drive file with the same type identifier as the second drive file in the drive file data packet in response to the fact that drive information which is unsuccessfully matched with information corresponding to a second image acquisition component exists in a plurality of pieces of drive information corresponding to the second drive file in the first drive file loading index table;
traversing a plurality of driving information corresponding to the third driving file, and matching the plurality of driving information with the information corresponding to the second image acquisition component;
and determining that the second image acquisition component is successfully identified in response to the fact that all of the plurality of driving information corresponding to the third driving file and the corresponding information of the second image acquisition component are successfully matched.
6. The image capturing component identification method of claim 5, wherein the method further comprises:
and in response to that all the pieces of driving information corresponding to the third driving file are successfully matched with the pieces of information corresponding to the second image acquisition component, deleting the file name of the second driving file in the driving record file, and recording the file name of the third driving file in the driving record file.
7. An image capturing element recognition apparatus, for use in a terminal including a plurality of image capturing elements, the apparatus comprising:
the calling module is used for responding to triggering to load the driving files corresponding to the image acquisition components and calling the driving record file, and the driving record file records the driving file names of the driving files corresponding to one or more image acquisition components in the image acquisition components;
the establishing module is used for establishing a first drive file loading index table based on the drive file name recorded in the drive record file when the drive record file is successfully called;
an identification module to identify the plurality of image capture components based on the first driver file load index table.
8. The image capturing element identifying apparatus as claimed in claim 7, wherein the terminal includes a driver file data package including a number of driver files larger than the number of image capturing elements included in the terminal, the apparatus further comprising:
the creating module is used for creating a drive record file when the drive record file is not called, creating a second drive file loading index table based on the drive file included in the drive file data packet, and recording the drive file names of the drive files corresponding to the plurality of image acquisition components which are successfully identified based on the second drive file loading index table in the drive record file;
the identification module is further configured to identify the plurality of image capture components based on the second driver file loading index table.
9. The apparatus according to claim 8, wherein the creating module records, in the drive record file, the drive file names of the drive files corresponding to the plurality of image capturing components that are successfully identified based on the second drive file loading index table in the following manner:
traversing each drive file in the second drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the information corresponding to the plurality of image acquisition components for each drive file;
and in response to that all the pieces of drive information corresponding to the first drive file in the second drive file loading index table are successfully matched with the pieces of information corresponding to the first image acquisition components in the plurality of image acquisition components, determining that the first drive file is the drive file successfully identified by the first image acquisition components, and recording the file name of the first drive file in the drive record file.
10. The image capturing component identifying apparatus according to any one of claims 7 to 9, wherein the identifying module identifies the plurality of image capturing components based on the first driver file loading index table in the following manner:
traversing each drive file in the first drive file loading index table, and sequentially matching a plurality of drive information corresponding to each drive file with the corresponding information of the plurality of image acquisition components aiming at each drive file;
and determining that the identification of each image acquisition component in the plurality of image acquisition components is successful in response to the fact that the matching of the plurality of driving information corresponding to each driving file in the first driving file loading index table and the information corresponding to each image acquisition component in the plurality of image acquisition components is successful.
11. The image capturing component identifying device according to any one of claims 7 to 9, wherein the terminal includes a driver file data package, and the identifying module identifies the plurality of image capturing components based on the first driver file loading index table in the following manner:
determining a third driver file with the same type identifier as the second driver file in the driver file data packet in response to the fact that the driver information which is unsuccessfully matched with the information corresponding to the second image acquisition component exists in the plurality of driver information corresponding to the second driver file in the first driver file loading index table;
traversing a plurality of driving information corresponding to the third driving file, and matching the plurality of driving information with the information corresponding to the second image acquisition component;
and determining that the second image acquisition component is successfully identified in response to the fact that all of the plurality of driving information corresponding to the third driving file and the corresponding information of the second image acquisition component are successfully matched.
12. The image capturing component recognition device of claim 11, wherein the device further comprises:
and the updating module is used for deleting the file name of the second drive file in the drive record files and recording the file name of the third drive file in the drive record files in response to the fact that the plurality of pieces of drive information corresponding to the third drive file are successfully matched with the information corresponding to the second image acquisition component.
13. An image pickup element identifying apparatus characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the image pickup element identifying method according to any one of claims 1 to 6 is performed.
14. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform the image capturing component identification method of any one of claims 1 to 6.
CN202110005555.5A 2021-01-05 2021-01-05 Image pickup device identification method, image pickup device identification apparatus, and storage medium Pending CN114721730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110005555.5A CN114721730A (en) 2021-01-05 2021-01-05 Image pickup device identification method, image pickup device identification apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110005555.5A CN114721730A (en) 2021-01-05 2021-01-05 Image pickup device identification method, image pickup device identification apparatus, and storage medium

Publications (1)

Publication Number Publication Date
CN114721730A true CN114721730A (en) 2022-07-08

Family

ID=82234761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110005555.5A Pending CN114721730A (en) 2021-01-05 2021-01-05 Image pickup device identification method, image pickup device identification apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN114721730A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6279109B1 (en) * 1999-01-07 2001-08-21 Dell U.S.A., L.P. Computing system and operating method for booting and running a graphical user interface (GUI) with r/w hard drive partition unavailable
CN102609285A (en) * 2012-02-06 2012-07-25 中兴通讯股份有限公司 Method for intelligent drive matched loading
CN102768680A (en) * 2012-06-26 2012-11-07 广东欧珀移动通信有限公司 Fast searching method for camera
CN103970559A (en) * 2013-02-05 2014-08-06 北京壹人壹本信息科技有限公司 Device loading method and device on basis of Android
CN104094226A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Automatic updating of an application or a driver on a client device using a deployment configuration file
CN105376481A (en) * 2015-10-08 2016-03-02 珠海全志科技股份有限公司 Camera device driving method and camera device driving unit
CN106886429A (en) * 2015-12-16 2017-06-23 华为技术有限公司 The method and server of a kind of load driver program
CN111309387A (en) * 2020-01-22 2020-06-19 阿里巴巴集团控股有限公司 Method and device for loading drive, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6279109B1 (en) * 1999-01-07 2001-08-21 Dell U.S.A., L.P. Computing system and operating method for booting and running a graphical user interface (GUI) with r/w hard drive partition unavailable
CN104094226A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Automatic updating of an application or a driver on a client device using a deployment configuration file
CN102609285A (en) * 2012-02-06 2012-07-25 中兴通讯股份有限公司 Method for intelligent drive matched loading
CN102768680A (en) * 2012-06-26 2012-11-07 广东欧珀移动通信有限公司 Fast searching method for camera
CN103970559A (en) * 2013-02-05 2014-08-06 北京壹人壹本信息科技有限公司 Device loading method and device on basis of Android
CN105376481A (en) * 2015-10-08 2016-03-02 珠海全志科技股份有限公司 Camera device driving method and camera device driving unit
CN106886429A (en) * 2015-12-16 2017-06-23 华为技术有限公司 The method and server of a kind of load driver program
CN111309387A (en) * 2020-01-22 2020-06-19 阿里巴巴集团控股有限公司 Method and device for loading drive, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
EP3200116B1 (en) Method and apparatus for acquiring information via a virtual identity module from lost or stolen terminal
CN105245775A (en) Method and device for camera imaging, and mobile terminal
CN106919629B (en) Method and device for realizing information screening in group chat
CN104182313A (en) Photographing delay method and device
US20170090684A1 (en) Method and apparatus for processing information
CN104980662A (en) Method for adjusting imaging style in shooting process, device thereof and imaging device
CN105141806A (en) Image file display method and image file display device
CN105224171A (en) icon display method, device and terminal
CN104216672A (en) Display control method and display control device
CN104035673A (en) Object control method and relevant device
CN104216525A (en) Method and device for mode control of camera application
CN104850643B (en) Picture comparison method and device
CN105183755A (en) Picture display method and apparatus
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN107885571B (en) Display page control method and device
CN105389152A (en) Picture projecting method and apparatus and terminal device
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN106060253B (en) Information presentation method and device
CN114721730A (en) Image pickup device identification method, image pickup device identification apparatus, and storage medium
EP3188018A1 (en) Method and apparatus for setting waiting time duration
CN107728909B (en) Information processing method and device
CN107682623B (en) Photographing method and device
CN108108668B (en) Age prediction method and device based on image
CN106897876B (en) Terminal payment processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination