WO2023102934A1 - Data processing method, intelligent terminal and storage medium - Google Patents

Data processing method, intelligent terminal and storage medium Download PDF

Info

Publication number
WO2023102934A1
WO2023102934A1 PCT/CN2021/137245 CN2021137245W WO2023102934A1 WO 2023102934 A1 WO2023102934 A1 WO 2023102934A1 CN 2021137245 W CN2021137245 W CN 2021137245W WO 2023102934 A1 WO2023102934 A1 WO 2023102934A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
image data
image
data
processing
Prior art date
Application number
PCT/CN2021/137245
Other languages
French (fr)
Chinese (zh)
Inventor
尚国强
肖龙安
蓝建梁
Original Assignee
深圳传音控股股份有限公司
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 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Priority to PCT/CN2021/137245 priority Critical patent/WO2023102934A1/en
Publication of WO2023102934A1 publication Critical patent/WO2023102934A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/21Intermediate information storage

Definitions

  • the present application relates to the technical field of data processing, and in particular to a data processing method, an intelligent terminal and a storage medium.
  • the lenses used by the smart terminal may come from different manufacturers.
  • the lenses from different manufacturers may have different data formats and data contents.
  • the smart terminal can realize the acquisition of image data and sensor data of different lenses by configuring different data interfaces for different lenses, so as to realize the secondary development of image data in the smart terminal.
  • the smart terminal In the process of conceiving and implementing the secondary development of the image data, the inventor found that for different lenses, the smart terminal needs to be configured with different data interfaces in order to connect image data and sensor data of different data formats and data content to the smart terminal. In the terminal, there is a problem of poor access efficiency.
  • the present application provides a data processing method, an intelligent terminal and a storage medium, so that users can improve the access efficiency of photographed data, and more effectively complete the secondary development of photographed data.
  • the present application provides a data processing method that can be applied to smart terminals.
  • the method includes:
  • parameter information corresponding to the image data when the processing instruction is executed is recorded in the image information set.
  • the image information set includes at least one stage of information, including at least one of the following features:
  • Each of the stage information corresponds to one of the processing instructions, and one of the processing instructions corresponds to at least one of the stage information;
  • Each of the stage information includes stage identification and/or information content
  • Each of the information contents includes at least one key-value pair, and the key-value pair includes a keyword and parameter information corresponding to the keyword.
  • the stage information also includes at least one of the following features:
  • the phase information also includes information length
  • the phase information also includes reservation information
  • the phase information also includes a start marker and/or an end marker.
  • recording parameter information corresponding to the image data when executing the processing instruction in the image information set includes at least one of the following:
  • the processing instruction is a shooting instruction
  • acquire lens parameters and sensor parameters corresponding to the lens assembly that captures the image data and store the lens parameters and sensor parameters in at least one of the stage information corresponding to the shooting instruction In the parameter information of the key-value pair;
  • the processing instruction is a shooting instruction, acquiring shooting information when shooting the image data, and storing the shooting information in at least one key-value pair of stage information corresponding to the shooting instruction;
  • the processing instruction is a storage instruction
  • obtain the format information of the image data and store the format information in the parameter information of at least one key-value pair in the stage information corresponding to the storage instruction;
  • the processing instruction is an image processing instruction of the image data, acquiring the image processing steps and image processing information, and storing the image processing steps and image processing information in the stage information corresponding to the image processing instruction In the parameter information of at least one key-value pair;
  • the processing instruction is image semantic recognition
  • the semantic information of the image data is acquired, and the semantic information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the image semantic recognition.
  • the acquisition of lens parameters and sensor parameters corresponding to the lens assembly that captures the image data includes at least one of the following:
  • the shooting instruction determine a lens assembly corresponding to the shooting instruction, where the lens assembly includes a lens and a sensor;
  • the sensor parameter is acquired.
  • the lens parameters and sensor parameters include at least one item of lens information, sensor information, light intensity information, gain information, exposure information, aperture information, and acceleration information.
  • the method includes at least one of the following:
  • the shooting information includes geographic location information and/or time information
  • the format information includes at least one of length and width information, encoding format, frame type, and frame number of the image data;
  • the image processing steps and image processing information include at least one of cropping instructions, noise reduction instructions, scaling instructions, and stylization instructions.
  • the semantic information of the image data includes image category and/or target object information
  • the image category includes at least one of landscapes, characters, animals, plants, and still lifes
  • the target object information includes at least one of person location information, face location information, face identity information, number of people information, and person action information;
  • the target object information includes at least one of animal location information, animal breed information, quantity information, and animal action information;
  • the target object information includes at least one of plant and/or still life position information, plant and/or still life variety information, and quantity information.
  • the present application also provides a data processing method, which can be applied to a smart terminal, and the method includes:
  • the at least one data format is used to record at least one of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information when image processing, and application parameter information when image application.
  • the data format of the image data includes at least one field of tag serial number, tag name, tag subtable, and table data length.
  • the label sub-table includes at least one field of keyword serial number, keyword, parameter information, and parameter length.
  • the parameter information includes at least one of image length, image width, encoding format, white balance, saturation, and sharpness.
  • the parameter information includes at least one of image frame number, I frame number, P frame number, B frame number, and image resolution.
  • the present application also provides an intelligent terminal, including: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the above data processing methods are implemented.
  • the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data processing method are realized.
  • the data processing method of the present application is applied to a smart terminal, and the smart terminal can acquire a shooting instruction.
  • the photographing instruction is used to instruct the smart terminal to photograph image data.
  • the image data is captured, the image information set of the image data can be correspondingly generated in the smart terminal.
  • the image information set may be stored in a storage space corresponding to the image data.
  • the smart terminal needs to transmit the image data, the image information set corresponding to the image data will be transmitted synchronously.
  • the smart terminal can obtain the processing instruction of the image data.
  • the smart terminal processes the image data, the smart terminal can obtain the parameter information corresponding to the image, and record the parameter information in the image information set.
  • FIG. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application
  • FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in an embodiment of the present application.
  • Fig. 8 is a flowchart of a data processing method shown according to the first embodiment
  • Fig. 9 is a flowchart of another data processing method shown according to the first embodiment.
  • Fig. 10 is a flow chart showing another data processing method according to the first embodiment.
  • first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information.
  • first information may also be called second information, and similarly, second information may also be called first information.
  • second information may also be called first information.
  • the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination”.
  • the singular forms "a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.
  • A, B, C means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C
  • A, B or C or "A, B and/or C” means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
  • the words “if”, “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (a stated condition or event)”.
  • step codes such as S101 and S102 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order.
  • S102 will be executed first, followed by S101, etc., but these should be within the protection scope of this application.
  • Smart terminals can be implemented in various forms.
  • the intelligent terminal described in this application may include such as mobile phone, tablet computer, notebook computer, palmtop computer, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), navigation device, Smart terminals such as wearable devices, smart bracelets, and pedometers, as well as fixed terminals such as digital TVs and desktop computers.
  • a smart terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
  • FIG. 1 is a schematic diagram of the hardware structure of a smart terminal implementing various embodiments of the present application.
  • the smart terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, an /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components.
  • RF Radio Frequency, radio frequency
  • the radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through wireless communication.
  • the above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long-term evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution, time-division duplex long-term evolution) and 5G, etc.
  • GSM Global System of Mobile communication, Global System for Mobile Communications
  • GPRS General Packet Radio Service
  • CDMA2000 Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access, Time Division Synchro
  • WiFi is a short-distance wireless transmission technology.
  • the smart terminal can help users send and receive emails, browse web pages, and access streaming media, etc., and it provides users with wireless broadband Internet access.
  • Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the smart terminal, and can be completely omitted as required without changing the essence of the invention.
  • the audio output unit 103 can store the information received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 when the smart terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like.
  • the audio data is converted into an audio signal and output as sound.
  • the audio output unit 103 may also provide audio output related to specific functions performed by the smart terminal 100 (for example, call signal receiving sound, message receiving sound, etc.).
  • the audio output unit 103 may include a speaker, a buzzer, and the like.
  • the A/V input unit 104 is used to receive audio or video signals.
  • the A/V input unit 104 may include a GPU (Graphics Processing Unit, graphics processor) 1041 and a microphone 1042, and the graphics processor 1041 is used for still pictures obtained by an image capture device (such as a camera) in video capture mode or image capture mode Video image data is processed.
  • the processed image frames may be displayed on the display unit 106 .
  • the image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102 .
  • the microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like operating modes, and can process such sound as audio data.
  • the processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in case of a phone call mode.
  • the microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
  • the smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the smart terminal 100 moves to the ear. panel 1061 and/or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in a form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
  • LCD Liquid Crystal Display, liquid crystal display
  • OLED Organic Light-Emitting Diode, organic light-emitting diode
  • the user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the smart terminal.
  • the user input unit 107 may include a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it.
  • the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072 .
  • other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
  • the touch panel 1071 may cover the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event.
  • the corresponding visual output is provided on the display panel 1061 .
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated.
  • the implementation of the input and output functions of the smart terminal is not specifically limited here.
  • the interface unit 108 is used as an interface through which at least one external device can be connected with the smart terminal 100 .
  • an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more.
  • the interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
  • the memory 109 can be used to store software programs as well as various data.
  • the memory 109 can mainly include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one function required application program (such as a sound playback function, an image playback function, etc.) etc.
  • the storage data area can be Store data (such as audio data, phone book, etc.) created according to the use of the mobile phone.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the smart terminal, and uses various interfaces and lines to connect various parts of the whole smart terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the smart terminal and process data, so as to monitor the smart terminal as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor.
  • the application processor mainly processes operating systems, user interfaces, and application programs, etc.
  • the demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the smart terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components.
  • a power supply 111 (such as a battery) for supplying power to various components.
  • the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
  • the smart terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
  • the following describes the communication network system on which the smart terminal of the present application is based.
  • FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application.
  • the communication network system is an LTE system of general mobile communication technology.
  • 201 E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
  • E-UTRAN Evolved UMTS Terrestrial Radio Access Network
  • EPC Evolved Packet Core, Evolved Packet Core Network
  • the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
  • E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on.
  • the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
  • a backhaul for example, X2 interface
  • EPC203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data Network Gateway) 2035 and PCRF (Policy and Charging Rules Function, Policy and Charging Functional Entity) 2036, etc.
  • MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management.
  • HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information about service features and data rates.
  • PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
  • the IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
  • IMS IP Multimedia Subsystem, IP Multimedia Subsystem
  • LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems.
  • the network system (such as 5G), etc., is not limited here.
  • FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in the present application.
  • the controller 140 includes: a memory 1401 and a processor 1402, the memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1403 , and the communication interface 1403 may be connected to the processor 1402 through a bus 1404 .
  • the processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140 .
  • FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in the present application.
  • the network node 150 includes: a memory 1501 and a processor 1502, the memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the first node in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1503 , and the communication interface 1503 may be connected to the processor 1502 through a bus 1504 .
  • the processor 1502 can control the communication interface 1503 to realize the functions of receiving and sending of the network node 150 .
  • FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in the present application.
  • the network node 160 includes: a memory 1601 and a processor 1602, the memory 1601 is used to store program instructions, and the processor 1602 is used to call the program instructions in the memory 1601 to execute the steps performed by the intermediate node and the tail node in the first method embodiment above, The implementation principles and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1603 , and the communication interface 1603 may be connected to the processor 1602 through a bus 1604 .
  • the processor 1602 can control the communication interface 1603 to realize the functions of receiving and sending of the network node 160 .
  • FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in the present application.
  • the controller 170 includes: a memory 1701 and a processor 1702, the memory 1701 is used to store program instructions, and the processor 1702 is used to call the program instructions in the memory 1701 to execute the steps performed by the controller in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in the present application.
  • the network node 180 includes: a memory 1801 and a processor 1802, the memory 1801 is used to store program instructions, and the processor 1802 is used to invoke the program instructions in the memory 1801 to execute the steps performed by the head node in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium.
  • the above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps.
  • a computer program product includes one or more computer instructions.
  • a computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website site, computer, server or data center by wire (such as Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
  • FIG. 8 is a flowchart of a data processing method provided by an embodiment of the present application.
  • the smart terminal is the execution subject, and the method of this embodiment may include the following steps:
  • the smart terminal can obtain the shooting instruction.
  • the smart terminal shoots image data according to the shooting instruction.
  • the image data can be photos or videos.
  • the image information set of the image data can be correspondingly generated in the smart terminal.
  • the image information set may be stored in a storage space corresponding to the image data.
  • the image information set includes at least one stage of information.
  • Each stage of information corresponds to a processing instruction, and a processing instruction corresponds to at least one stage of information.
  • a photographing instruction may correspond to two phase information.
  • one stage information is used to store camera-related parameters, and the other stage information is used to store basic parameters of image data.
  • Each stage information in the image information set may include two parts, stage identification and information content.
  • the stage identifier is used to uniquely identify a stage information.
  • the stage identifier for storing the stage information of the basic parameters of the image data may be label1
  • the stage identifier for storing the stage information of the camera-related parameters may be label2.
  • the information content includes at least one key-value pair.
  • the key-value pair can be stored in the form of a ⁇ key, value> data pair, or the key-value pair can also be stored in the data format of key:value.
  • the keyword (key) in each key-value pair is fixed content.
  • the keyword may be resolution, encoding format, sensitivity, acceleration, etc.
  • the value of parameter information (value) corresponding to each keyword is determined according to the image data. For example, ISO 100, ISO 3200, ISO 25600, etc.
  • the stage information also includes information length.
  • the information length is used to record the data length of the information content. Because the stage identification of each stage information in the image information set usually has a fixed format. For example, the stage identifiers of label1 and label2 are fixed to have 6 characters. In each stage information of the image information set, the lengths of the information content of different stage information are not the same. Therefore, the record of the information length can more conveniently write the information of this stage into the data stream, and obtain the information content of the information of this stage from the data stream.
  • the stage information further includes reservation information, and the reservation information is used to expand the key-value pairs in the information content.
  • the reserved information may be a fixed length of free storage space.
  • the number of key-value pairs is fixed.
  • the information content of the stage information for storing camera-related parameters may include 7 key-value pairs.
  • the keywords in these key-value pairs correspond to lens information, sensor information, light intensity information, gain information, exposure information, aperture information and acceleration information.
  • the phase information further includes a start tag and/or an end tag.
  • the start tag and end tag can be two formatted strings. For example, a start tag could be ! Begin! , the closing tag can be ! End! .
  • the smart terminal can first write the start marker before starting to write the phase information. And write the end mark after completing the writing of the phase information.
  • the smart terminal reads the data stream, it can determine that the piece of data is one-stage information through the start marker and the end marker.
  • different phase information may have different start tags and end tags.
  • all phase information in the smart terminal may correspond to the same start marker and end marker.
  • the phase information may be stored in a table form in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.).
  • a storage space such as a memory, such as a flash memory, or a hard disk, etc.
  • the information at this stage may be stored in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the form of a data structure.
  • the information at this stage may also be stored in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the form of a file.
  • the smart terminal can acquire the processing instruction of the image data, and when the smart terminal processes the image data, the smart terminal can acquire the parameter information corresponding to the image, and record the parameter information in the image information set.
  • the parameter information may include parameter information of the image data before the smart terminal executes the processing instruction, and parameter information of the image data after the smart terminal executes the processing instruction.
  • the processing instruction when the processing instruction is a shooting instruction, obtain the lens parameters and sensor parameters corresponding to the lens assembly that shoots the image data, and store the lens parameters and sensor parameters in at least one key-value pair in the stage information corresponding to the shooting instruction in the parameter information.
  • the shooting instruction may include a lens assembly used when shooting the image data, lens parameters of the lens assembly, and sensor parameters.
  • the lens assembly can be a micro-focus lens; when shooting landscape pictures, the lens assembly can be a wide-angle lens.
  • the same lens assembly may have different lens parameters and sensor parameters when shooting different image data. For example, when taking indoor pictures, you can use a large aperture to ensure the brightness of the picture; when taking outdoor pictures, you can adjust the size of the aperture according to the weather conditions. Therefore, the shooting instruction acquired by the smart terminal should include information such as lens components, lens parameters, and sensor parameters.
  • the smart terminal can write these information into the stage information corresponding to the shooting instruction.
  • Each of these lens parameters and sensor parameters may correspond to a key-value pair in the information content of the stage information.
  • the key-value pair may include keywords and parameter information.
  • the keywords correspond to those of the lens parameters and sensor parameters.
  • the parameter information corresponds to the parameter values of the lens parameters and sensor parameters in the shooting instruction.
  • the specific steps for the smart terminal to obtain the lens parameters and sensor parameters of the shooting instruction may include:
  • Step 1 The smart terminal determines the lens assembly corresponding to the shooting instruction according to the shooting instruction.
  • the lens assembly may include at least one lens and at least one sensor.
  • Step 2 The smart terminal determines the lens parameters corresponding to each lens according to at least one lens included in the lens assembly. And, the smart terminal determines the sensor parameters corresponding to each sensor according to at least one sensor included in the lens assembly.
  • the lens parameters and sensor parameters include at least one item of lens information, sensor information, light intensity information, gain information, exposure information, aperture information, and acceleration information.
  • the processing instruction is a shooting instruction
  • shooting information when shooting image data is acquired, and the shooting information is stored in at least one key-value pair of stage information corresponding to the shooting instruction.
  • the smart terminal may obtain shooting information when shooting image data from other application programs in the smart terminal. And the shooting information is uniformly stored in the stage information corresponding to the shooting instruction.
  • the shooting information may specifically include at least one of the following: the smart terminal acquires geographic location information when the image data is shot from the GPS. The smart terminal obtains the time information when the image data is captured from the clock. The smart terminal obtains the event schedule information when the image data is captured from the calendar. The smart terminal may save the shooting information into the information content of the stage information corresponding to the shooting instruction.
  • the information content may include multiple key-value pairs. A keyword in each key-value pair may correspond to a keyword in the shooting information.
  • stage information corresponding to the stored shooting information in this embodiment is the same as the stage information corresponding to the stored lens parameters and sensor parameters in the previous embodiment, although both are correspondingly generated and completed when the smart terminal detects the shooting instruction and the data writing is completed, But for different stage information.
  • the processing instruction is a storage instruction
  • the format information of the image data is obtained, and the format information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the storage instruction.
  • the smart terminal when the smart terminal completes the shooting of the image data and needs to store the image data in the storage space of the smart terminal (such as memory, flash memory, or hard disk, etc.), the smart terminal can save the image data from the Get the format information of the image data in .
  • the format information may include length and width information of the image data, encoding format, frame type, frame number, and the like.
  • the information content of the phase information corresponding to the storage instruction in the smart terminal may include multiple key-value pairs.
  • the keywords in each key-value pair may correspond to the keywords of the format information such as the above-mentioned length and width information, encoding format, frame type, and frame number.
  • the parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
  • the processing instruction is an image processing instruction of image data
  • the image processing steps and image processing information are obtained, and the image processing steps and image processing information are stored in at least one key in the stage information corresponding to the image processing instruction In the parameter information of the value pair.
  • the smart terminal can further process the image data through image processing instructions.
  • the image processing instruction may include one or more specific processing instructions. For example, cropping instructions, noise reduction instructions, scaling instructions, stylization instructions, etc.
  • the user usually needs to determine the processing instructions to be executed for each processing through an interactive interface. Therefore, the smart terminal can acquire the processing instruction corresponding to the image processing instruction, and store the corresponding image processing steps and image processing information in the stage information corresponding to the image processing instruction according to the processing instruction.
  • the smart terminal can process the image data according to the image processing instruction, and sequentially record the image processing steps and image processing information during the processing. For example, when the smart terminal uses a cropping command to crop the image data, the smart terminal can record information such as the cropping command, the execution time of the cropping command, the resolution of the image before cropping, and the resolution of the image after cropping.
  • the information content of the stage information corresponding to the image processing instruction in the smart terminal may include multiple key-value pairs.
  • the keywords in each key-value pair may correspond to the keywords of the image processing steps and graphics processing information such as the instruction name, instruction execution time, pre-execution resolution, and post-execution resolution.
  • the parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
  • the processing instruction is image semantic recognition
  • the semantic information of the image data is acquired, and the semantic information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the image semantic recognition.
  • the smart terminal can process image data through image semantic recognition to obtain semantic information in the image data.
  • image semantic recognition the smart terminal can determine the image category of the image data by identifying the target object in the image data.
  • the image categories may include landscapes, people, animals, plants, still life, and the like.
  • the smart terminal can also identify the information of the target object.
  • the target object information may include at least one item of person location information, face location information, face identity information, number of people information, and person action information.
  • the target object information includes at least one item of animal location information, animal breed information, animal quantity information, and animal action information.
  • the target object information includes at least one item of plant and/or still life position information, plant and/or still life variety information, and quantity information.
  • the information content of the phase information corresponding to the image semantic recognition in the smart terminal may include multiple key-value pairs.
  • the keywords in each key-value pair may correspond to the above-mentioned keywords such as image category and target object location.
  • the parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
  • the smart terminal can obtain the shooting instruction.
  • the photographing instruction is used to instruct the smart terminal to photograph image data.
  • the image information set of the image data can be correspondingly generated in the smart terminal.
  • the image information set may be stored in a storage space corresponding to the image data.
  • the image information set corresponding to the image data will be transmitted synchronously.
  • the smart terminal can obtain the processing instruction of the image data, and when the smart terminal processes the image data, the smart terminal can obtain the parameter information corresponding to the image, and record the parameter information in the image information set.
  • the improvement of the corresponding information of the image data is realized, so that the information of the image data can be stored in a standardized manner, so that the information of the standardized image data can be directly used in the subsequent processing of the image data , to improve the processing efficiency of image data.
  • FIG. 9 is a flowchart of a data processing method provided by an embodiment of the present application.
  • the method of this embodiment may include the following steps:
  • the smart terminal controls the camera to capture image data.
  • the smart terminal can obtain a shooting instruction from an application program such as a camera.
  • the shooting instruction may include a lens assembly used when shooting the image data, lens parameters of the lens assembly, and sensor parameters.
  • the smart terminal can control the corresponding lens components in the smart terminal according to the lens parameters and sensor parameters of the lens components, so as to realize the shooting of the image data.
  • the image data can also perform operations such as basic image processing, computational photography processing, and image application processing.
  • smart terminals can encapsulate each processing stage.
  • the smart terminal can control the image data to complete the processing operations of each processing stage by calling the interface.
  • the smart terminal needs to input different data streams and output different data streams. These data streams are used to describe imagery data.
  • the smart terminal can predefine the format of the interface data information required in each interface. The predefinition of the format of the interface data information can ensure the universality of these interface data information.
  • the data information can be reserved by presetting the information to improve flexibility.
  • the format of the interface data information of each interface predefined by the smart terminal may be as shown in Table 1.
  • different processing stages may correspond to different interfaces. Different interfaces may have different interface data information.
  • the smart terminal can use the predefined interface data information format shown in Table 1 to describe the interface data information of each interface.
  • the smart terminal may use different identification information to distinguish different interfaces. For example, interface 1, interface 2, and interface 3 may have different identification information.
  • the smart terminal can generate the basic information description of the image data.
  • the basic information description of the image data can be written into a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the format of an interface data information.
  • the identification information described by the basic information of the image data may be "data pipeline label 1" or "basic image info".
  • the identification information is used to uniquely identify the basic information description of the image data. For different image data, the same identification information can be used to identify the basic information description of the image data. Or, for different image data, different identification information may be used to identify the basic information description of the image data.
  • An interface data information usually includes one or more attribute parameters.
  • an interface data information used to describe the basic information of the image data may include the length of the image data, the length and width information of the picture, the encoding format of the image, and the frame of the image. Type, frame number of the image and other information.
  • the smart terminal can transmit the interface data information between interfaces in the form of a data stream.
  • the smart terminal can directly obtain the interface data information whose identification information is "basic image info", so as to realize the rapid acquisition of the basic information of the image data, which greatly improves the acquisition efficiency of the basic information of the image data .
  • the smart terminal can write its imaging information into the storage space (such as memory, flash memory, or hard disk, etc.) according to the format of an interface data information according to the imaging process of the image data.
  • the interface data information of the imaging data may have different identification information from the interface data information of the basic information.
  • the identification information may be "data pipeline label 2".
  • Various sensory data, optical data, etc. may be included in the imaging process of the image data.
  • These imaging auxiliary data can be written into the information content of the interface data information whose identification information is "data pipeline label 2".
  • the information content may specifically include basic data information of the image sensor, illumination information, gain information, acceleration sensor information, exposure information, geographic location information, time information, and the like. This information can be used to objectively describe the auxiliary data of the imaging.
  • the smart terminal may also store information generated in each processing operation of the image data in the format of the interface data information shown in Table 1 above according to actual needs. There may be data duplication in the interface data information generated in different processing operations, and the duplication of data will lead to redundancy, but it does not affect the actual use and realization of the format of the interface data information.
  • the smart terminal uses the basic image processing unit to process the image data; and/or the smart terminal uses the computational photography processing unit to process the image data; and/or the smart terminal uses the image application processing unit to process the image data.
  • the smart terminal may also transmit the impact data to a subsequent basic image processing unit after the image data is captured.
  • the basic image processing unit is mainly used to perform some basic processing on the data of the optical device and its auxiliary parts.
  • the smart terminal can directly obtain the interface data information whose label information is "data pipeline label 2" from the data stream, and use the interface data information to execute the data processing in the basic image processing unit.
  • the smart terminal can transfer the data to the computational photography processing unit.
  • the smart terminal can perform complex image processing on the impact data.
  • the image data is transmitted to the image application processing unit, so as to realize operations such as presentation, storage, editing, sharing, etc. of the image data.
  • the image data As the image data is transmitted successively in the smart terminal, the image data will be subjected to various processing operations.
  • the image data may be processed by a noise reduction algorithm, scaled, and compressed to form the final image data.
  • the processing process of the image data is equivalent to the modification process of the original image.
  • the interface data information whose label information is "data pipeline label 3" can be formed, and the label information is the interface of "data pipeline label 3".
  • the modification process of the image data may be stored in the data information.
  • special processing can be performed on a special part of the image data to form some advanced information.
  • the high-level information may be face information, image semantic information, and the like.
  • the face information may include the position of the face in the image, information about facial features, the angle of the face, and the like.
  • the smart terminal can obtain shooting instructions from application programs such as cameras.
  • the smart terminal can control the image data to complete the processing operations of each processing stage by calling the interface.
  • the smart terminal needs to input different data streams and output different data streams. These data streams are used to describe imagery data.
  • the smart terminal can predefine the format of the interface data information required in each interface.
  • the predefinition of the format of the interface data information can ensure the universality of these interface data information.
  • the data information can be reserved by presetting the information to improve flexibility.
  • the information generated during the image data processing process is stored in a standardized manner, which improves the efficiency of data acquisition during the data processing process, improves the overall processing efficiency of image data, and improves user experience.
  • FIG. 10 is a flowchart of another data processing method provided by the embodiment of the present application. As shown in Figure 10, with the smart terminal as the execution subject, the method of this embodiment may include the following steps:
  • the smart terminal can acquire the parameter information of the image data in real time during the processing of the image data.
  • the smart terminal can store these parameter information in the storage space corresponding to the image data.
  • the data in the storage space corresponding to the image data will be converted into a data stream together with the image data when the image data is converted into a data stream for transmission.
  • the image data can be photos or videos.
  • the storage space corresponding to the image data may include at least one data format (preferably, such as at least two data formats).
  • One or more attribute parameters can be stored in each data format.
  • the at least one data parameter usually has a certain relationship.
  • at least one data format is used to record at least one of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information during image processing, and application parameter information during image application; optionally, The at least two data formats are respectively used to record at least two items of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information during image processing, and application parameter information during image application.
  • a data format may include at least one field among tag serial number, tag name, tag subtable, and table data length.
  • Each label sub-table may also include at least one field among keyword serial number, keyword, parameter information, and parameter length.
  • the keywords in a tag sub-table may include at least one item of image length, image width, encoding format, white balance, saturation, and sharpness.
  • the keywords in a tag subtable include at least one item of image frame number, I frame number, P frame number, B frame number, and image resolution.
  • the smart terminal after acquiring the parameter information, can determine the data format corresponding to the parameter information to be written according to the source of the parameter information.
  • the smart terminal can determine that the data format is the target data format.
  • the smart terminal can obtain the tag subtable from the target data format.
  • the smart terminal can determine the line where the parameter information needs to be written according to the keyword corresponding to the parameter information.
  • the smart terminal can write the parameter information into the area corresponding to the "parameter information" field of the row.
  • the smart terminal can obtain the parameter information of the image data in real time during the processing of the image data. After obtaining the parameter information, the smart terminal can determine the data format corresponding to the parameter information to be written according to the source of the parameter information. The smart terminal can determine the line where the parameter information needs to be written according to the keyword corresponding to the parameter information. The smart terminal can write the parameter information into the area corresponding to the "parameter information" field of the line. In this application, the smart terminal can complete the data format by filling the parameter information into the data format, thereby improving the acquisition efficiency of the parameter information when the smart terminal processes image data.
  • An embodiment of the present application also provides a smart terminal, the smart terminal includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the data processing method in any of the above embodiments are implemented.
  • An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method in any of the foregoing embodiments are implemented.
  • the embodiments of the smart terminal and the computer-readable storage medium provided in this application may contain all the technical features of any of the embodiments of the above-mentioned data processing method. I won't repeat it here.
  • An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
  • the embodiment of the present application also provides a chip, including a memory and a processor.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
  • Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make an intelligent terminal (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • the usable medium may be a magnetic medium (such as a floppy disk, a storage disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.

Abstract

Provided in the present application are a data processing method, an intelligent terminal and a storage medium. The method comprises: an intelligent terminal may acquire a photographing instruction, wherein the photographing instruction is used for instructing the intelligent terminal to photograph image data, and when the image data is photographed, an image information set of the image data may be correspondingly generated in the intelligent terminal, the image information set may be stored in a storage space corresponding to the image data, and when the intelligent terminal needs to transmit the image data, the image information set corresponding to the image data is transmitted synchronously; and the intelligent terminal may acquire a processing instruction for the image data, and when the intelligent terminal processes the image data, the intelligent terminal may acquire parameter information corresponding to an image and record the parameter information in the image information set. By means of the method in the present application, the access efficiency of image data is improved, and the processing efficiency of an intelligent terminal for the image data is improved.

Description

数据处理方法、智能终端及存储介质Data processing method, intelligent terminal and storage medium 技术领域technical field
本申请涉及数据处理技术领域,具体涉及一种数据处理方法、智能终端及存储介质。The present application relates to the technical field of data processing, and in particular to a data processing method, an intelligent terminal and a storage medium.
背景技术Background technique
随着电子技术的快速发展,很多智能终端都具备了拍摄功能。随着人们对于照片或者视频的要求越来越高,越来越多的商家开始基于摄像头拍摄的影像数据进行二次开发,以提高成像效果。With the rapid development of electronic technology, many smart terminals have a shooting function. As people's requirements for photos or videos are getting higher and higher, more and more businesses are starting to carry out secondary development based on the image data captured by the camera to improve the imaging effect.
一些实现中,智能终端使用的镜头可以来自不同的厂家。该来自不同厂家的镜头可以具有不同的数据格式和数据内容。智能终端可以通过为不同镜头配置不同的数据接口,实现不同镜头的影像数据和传感器数据的获取,从而实现智能终端中影像数据的二次开发。In some implementations, the lenses used by the smart terminal may come from different manufacturers. The lenses from different manufacturers may have different data formats and data contents. The smart terminal can realize the acquisition of image data and sensor data of different lenses by configuring different data interfaces for different lenses, so as to realize the secondary development of image data in the smart terminal.
在构思及实现该影像数据的二次开发过程中,发明人发现针对不同的镜头,智能终端需要配置不同的数据接口,才能将不同数据格式以及不同数据内容的影像数据和传感器数据接入到智能终端中,存在接入效率差的问题。In the process of conceiving and implementing the secondary development of the image data, the inventor found that for different lenses, the smart terminal needs to be configured with different data interfaces in order to connect image data and sensor data of different data formats and data content to the smart terminal. In the terminal, there is a problem of poor access efficiency.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The foregoing description is provided to provide general background information and does not necessarily constitute prior art.
技术解决方案technical solution
针对上述技术问题,本申请提供一种数据处理方法、智能终端及存储介质,使用户可以提高拍摄数据的接入效率,更加有效的完成拍摄数据的二次开发。In view of the above technical problems, the present application provides a data processing method, an intelligent terminal and a storage medium, so that users can improve the access efficiency of photographed data, and more effectively complete the secondary development of photographed data.
为解决上述技术问题,本申请提供一种数据处理方法,可应用于智能终端,所述方法,包括:In order to solve the above technical problems, the present application provides a data processing method that can be applied to smart terminals. The method includes:
响应于拍摄指令,确认或生成影像数据的图像信息集合;Confirming or generating an image information set of image data in response to a shooting instruction;
根据所述影像数据的处理指令,在所述图像信息集合中记录执行所述处理指令时所述影像数据对应的参数信息。According to the processing instruction of the image data, parameter information corresponding to the image data when the processing instruction is executed is recorded in the image information set.
可选地,所述图像信息集合中包括至少一阶段信息,包括以下至少一种特征:Optionally, the image information set includes at least one stage of information, including at least one of the following features:
每一所述阶段信息对应于一所述处理指令,一所述处理指令对应于至少一所述阶段信息;Each of the stage information corresponds to one of the processing instructions, and one of the processing instructions corresponds to at least one of the stage information;
每一所述阶段信息中包括阶段标识和/或信息内容;Each of the stage information includes stage identification and/or information content;
每一所述信息内容中包括至少一个键值对,所述键值对中包括一个关键字和所述关键字对应的参数信息。Each of the information contents includes at least one key-value pair, and the key-value pair includes a keyword and parameter information corresponding to the keyword.
可选地,所述阶段信息还包括以下至少一种特征:Optionally, the stage information also includes at least one of the following features:
所述阶段信息还包括信息长度;The phase information also includes information length;
所述阶段信息还包括预留信息;The phase information also includes reservation information;
所述阶段信息还包括开始标记和/或结束标记。The phase information also includes a start marker and/or an end marker.
可选地,所述根据所述影像数据的处理指令,在所述图像信息集合中记录执行所述处理指令时所述影像数据对应的参数信息,包括以下至少一种:Optionally, according to the processing instruction of the image data, recording parameter information corresponding to the image data when executing the processing instruction in the image information set includes at least one of the following:
当所述处理指令为拍摄指令时,获取拍摄所述影像数据的镜头组件对应的镜头参数和传感器参数,并将所述镜头参数和传感器参数存储到所述拍摄指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is a shooting instruction, acquire lens parameters and sensor parameters corresponding to the lens assembly that captures the image data, and store the lens parameters and sensor parameters in at least one of the stage information corresponding to the shooting instruction In the parameter information of the key-value pair;
当所述处理指令为拍摄指令时,获取拍摄所述影像数据时的拍摄信息,并将所述拍摄信息存储到所述拍摄指令对应的阶段信息的至少一个键值对中;When the processing instruction is a shooting instruction, acquiring shooting information when shooting the image data, and storing the shooting information in at least one key-value pair of stage information corresponding to the shooting instruction;
当所述处理指令为存储指令时,获取所述影像数据的格式信息,并将所述格式信息存储到所述存储指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is a storage instruction, obtain the format information of the image data, and store the format information in the parameter information of at least one key-value pair in the stage information corresponding to the storage instruction;
当所述处理指令为所述影像数据的图像处理指令时,获取所述图像处理步骤和图像处理信息,并将所述图像处理步骤和图像处理信息存储到所述图像处理指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is an image processing instruction of the image data, acquiring the image processing steps and image processing information, and storing the image processing steps and image processing information in the stage information corresponding to the image processing instruction In the parameter information of at least one key-value pair;
当所述处理指令为图像语义识别时,获取所述影像数据的语义信息,并将所述语义信息存储到所述图像语义识别对应的阶段信息中的至少一个键值对的参数信息中。When the processing instruction is image semantic recognition, the semantic information of the image data is acquired, and the semantic information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the image semantic recognition.
可选地,当智能终端中包括至少一个镜头组件时,所述获取拍摄所述影像数据的镜头组件对应的镜头参数和传感器参数,包括以下至少一种:Optionally, when the smart terminal includes at least one lens assembly, the acquisition of lens parameters and sensor parameters corresponding to the lens assembly that captures the image data includes at least one of the following:
根据所述拍摄指令,确定所述拍摄指令对应的镜头组件,所述镜头组件包括镜头和传感器;According to the shooting instruction, determine a lens assembly corresponding to the shooting instruction, where the lens assembly includes a lens and a sensor;
根据所述镜头,获取镜头参数;Obtaining lens parameters according to the lens;
根据所述传感器,获取所述传感器参数。According to the sensor, the sensor parameter is acquired.
可选地,所述镜头参数和传感器参数包括镜头信息、传感器信息、光强信息、增益信息、曝光信息、光圈信息、加速度信息中的至少一项。Optionally, the lens parameters and sensor parameters include at least one item of lens information, sensor information, light intensity information, gain information, exposure information, aperture information, and acceleration information.
可选地,所述方法,包括以下至少一项:Optionally, the method includes at least one of the following:
所述拍摄信息包括地理位置信息和/或时间信息;The shooting information includes geographic location information and/or time information;
所述格式信息包括所述影像数据的长宽信息、编码格式、帧类型、帧号中的至少一项;The format information includes at least one of length and width information, encoding format, frame type, and frame number of the image data;
所述图像处理步骤和图像处理信息包括裁剪指令、降噪指令、缩放指令、风格化指令中的至少一种。The image processing steps and image processing information include at least one of cropping instructions, noise reduction instructions, scaling instructions, and stylization instructions.
可选地,包括以下至少一项:Optionally, include at least one of the following:
所述影像数据的语义信息包括图像类别和/或目标对象信息;The semantic information of the image data includes image category and/or target object information;
所述图像类别包括风景、人物、动物、植物、静物中的至少一项;The image category includes at least one of landscapes, characters, animals, plants, and still lifes;
当所述目标对象为人物时,所述目标对象信息包括人物位置信息、人脸位置信息、人脸身份信息、人数信息、人物动作信息中的至少一项;When the target object is a person, the target object information includes at least one of person location information, face location information, face identity information, number of people information, and person action information;
当所述目标对象为动物时,所述目标对象信息包括动物位置信息、动物品种信息、数量信息、动物动作信息中的至少一项;When the target object is an animal, the target object information includes at least one of animal location information, animal breed information, quantity information, and animal action information;
当所述目标对象为植物和/或静物时,所述目标对象信息包括植物和/或静物位置信息、植物和/或静物品种信息、数量信息中的至少一项。When the target object is a plant and/or still life, the target object information includes at least one of plant and/or still life position information, plant and/or still life variety information, and quantity information.
本申请还提供一种数据处理方法,可应用于智能终端,所述方法,包括:The present application also provides a data processing method, which can be applied to a smart terminal, and the method includes:
获取影像数据的参数信息;Obtain the parameter information of the image data;
根据所述参数信息,从所述影像数据对应的至少一个数据格式中确定目标数据格式;determining a target data format from at least one data format corresponding to the image data according to the parameter information;
将所述参数信息写入所述目标数据格式中。Writing the parameter information into the target data format.
可选地,所述至少一个数据格式用于记录拍摄影像数据时的摄像参数信息、影像数据的基础参数信息、图像处理时的处理参数信息和图像应用时的应用参数信息中的至少一项。Optionally, the at least one data format is used to record at least one of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information when image processing, and application parameter information when image application.
可选地,所述影像数据的数据格式中包括标签序号、标签名称、标签子表格、表格数据长度中的至少一个字段。Optionally, the data format of the image data includes at least one field of tag serial number, tag name, tag subtable, and table data length.
可选地,所述标签子表格中包括关键字序号、关键字、参数信息、参数长度中的至少一个字段。Optionally, the label sub-table includes at least one field of keyword serial number, keyword, parameter information, and parameter length.
可选地,当所述影像数据为照片时,所述参数信息包括图像长度、图像宽度、编码格式、白平衡、饱和度、锐度中的至少一项。Optionally, when the image data is a photo, the parameter information includes at least one of image length, image width, encoding format, white balance, saturation, and sharpness.
可选地,当所述影像数据为视频时,所述参数信息包括图像帧数、I帧帧号、P帧帧号、B帧帧号、图像分辨率中的至少一项。Optionally, when the image data is video, the parameter information includes at least one of image frame number, I frame number, P frame number, B frame number, and image resolution.
本申请还提供一种智能终端,包括:存储器、处理器,其中,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时实现如上任一所述数据处理方法的步骤。The present application also provides an intelligent terminal, including: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the above data processing methods are implemented.
本申请还提供一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述数据处理方法的步骤。The present application also provides a computer-readable storage medium, the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned data processing method are realized.
如上所述,本申请的数据处理方法,应用于智能终端,智能终端可以获取拍摄指令。该拍摄指令用于指示智能终端拍摄影像数据。当影像数据被拍摄时,可以在智能终端中对应生成该影像数据的图像信息集合。该图像信息集合可以存储在该影像数据对应的存储空间中。当智能终端需要传送该影像数据时,该影像数据对应的图像信息集合将同步被传送。智能终端可以获取影像数据的处理指令,当智能终端对该影像数据进行处理时,智能终端可以 获取图像对应的参数信息,并将该参数信息记录在图像信息集合中。通过上述方式,提高了影像数据的接入效率,提高了智能终端对影像数据的处理效率。As mentioned above, the data processing method of the present application is applied to a smart terminal, and the smart terminal can acquire a shooting instruction. The photographing instruction is used to instruct the smart terminal to photograph image data. When the image data is captured, the image information set of the image data can be correspondingly generated in the smart terminal. The image information set may be stored in a storage space corresponding to the image data. When the smart terminal needs to transmit the image data, the image information set corresponding to the image data will be transmitted synchronously. The smart terminal can obtain the processing instruction of the image data. When the smart terminal processes the image data, the smart terminal can obtain the parameter information corresponding to the image, and record the parameter information in the image information set. Through the above method, the access efficiency of the image data is improved, and the processing efficiency of the image data by the smart terminal is improved.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the Under the premise, other drawings can also be obtained based on these drawings.
图1为实现本申请各个实施例的一种智能终端的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
图2为本申请实施例提供的一种通信网络系统架构图;FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application;
图3为本申请实施例提供的一种控制器140的硬件结构示意图;FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in an embodiment of the present application;
图4为本申请实施例提供的一种网络节点150的硬件结构示意图;FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in an embodiment of the present application;
图5为本申请实施例提供的一种网络节点160的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in an embodiment of the present application;
图6为本申请实施例提供的一种控制器170的硬件结构示意图;FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in an embodiment of the present application;
图7为本申请实施例提供的一种网络节点180的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in an embodiment of the present application;
图8是根据第一实施例示出的一种数据处理方法的流程图;Fig. 8 is a flowchart of a data processing method shown according to the first embodiment;
图9是根据第一实施例示出的另一种数据处理方法的流程图;Fig. 9 is a flowchart of another data processing method shown according to the first embodiment;
图10是根据第一实施例示出的再一种数据处理方法的流程图。Fig. 10 is a flow chart showing another data processing method according to the first embodiment.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
本申请的实施方式Embodiment of this application
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过 程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the statement "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element. In addition, different implementations of the present application Components, features, and elements with the same name in the example may have the same meaning, or may have different meanings, and the specific meaning shall be determined based on the explanation in the specific embodiment or further combined with the context in the specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。本申请使用的术语“或”、“和/或”、“包括以下至少一个”等可被解释为包括性的,或意味着任一个或任何组合。例如,“包括以下至少一个:A、B、C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”,再如,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination". Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not exclude one or more other features, steps, operations, The existence, occurrence or addition of an element, component, item, species, and/or group. The terms "or", "and/or", "comprising at least one of" and the like used in this application may be interpreted as inclusive, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C", another example, " A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C". Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart in the embodiment of the present application are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential Instead, it may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".
需要说明的是,在本文中,采用了诸如S101、S102等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S102后执行S101等,但这些均应在 本申请的保护范围之内。It should be noted that, in this article, step codes such as S101 and S102 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order. Those skilled in the art may, during specific implementation, S102 will be executed first, followed by S101, etc., but these should be within the protection scope of this application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或者“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或者“单元”可以混合地使用。In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
智能终端可以以各种形式来实施。例如,本申请中描述的智能终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、PDA(Personal Digital Assistant,个人数字助理)、PMP(Portable Media Player,便捷式媒体播放器)、导航装置、可穿戴设备、智能手环、计步器等智能终端,以及诸如数字TV、台式计算机等固定终端。Smart terminals can be implemented in various forms. For example, the intelligent terminal described in this application may include such as mobile phone, tablet computer, notebook computer, palmtop computer, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), navigation device, Smart terminals such as wearable devices, smart bracelets, and pedometers, as well as fixed terminals such as digital TVs and desktop computers.
后续描述中将以智能终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。In the subsequent description, a smart terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
请参阅图1,其为实现本申请各个实施例的一种智能终端的硬件结构示意图,该智能终端100可以包括:RF(Radio Frequency,射频)单元101、WiFi模块102、音频输出单元103、A/V(音频/视频)输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图1中示出的智能终端结构并不构成对智能终端的限定,智能终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1, which is a schematic diagram of the hardware structure of a smart terminal implementing various embodiments of the present application. The smart terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, an /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that the smart terminal structure shown in Figure 1 does not constitute a limitation on the smart terminal, and the smart terminal may include more or less components than shown in the figure, or combine certain components, or different components layout.
下面结合图1对智能终端的各个部件进行具体的介绍:The following is a specific introduction to each component of the smart terminal in conjunction with Figure 1:
射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将基站的下行信息接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(Frequency Division Duplexing-Long Term Evolution,频分双工长期演进)、TDD-LTE(Time Division Duplexing-Long Term Evolution,分时双工长期演进)和5G等。The radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long-term evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution, time-division duplex long-term evolution) and 5G, etc.
WiFi属于短距离无线传输技术,智能终端通过WiFi模块102可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块102,但是可以理解的是,其并不属于智能终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. Through the WiFi module 102, the smart terminal can help users send and receive emails, browse web pages, and access streaming media, etc., and it provides users with wireless broadband Internet access. Although Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the smart terminal, and can be completely omitted as required without changing the essence of the invention.
音频输出单元103可以在智能终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将射频单元101或WiFi模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与智能终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103可以包括扬声器、蜂鸣器等等。The audio output unit 103 can store the information received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 when the smart terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like. The audio data is converted into an audio signal and output as sound. Moreover, the audio output unit 103 may also provide audio output related to specific functions performed by the smart terminal 100 (for example, call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
A/V输入单元104用于接收音频或视频信号。A/V输入单元104可以包括GPU(Graphics Processing Unit,图形处理器)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的影像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或WiFi模块102进行发送。麦克风1042可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风1042接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。麦克风1042可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 104 is used to receive audio or video signals. The A/V input unit 104 may include a GPU (Graphics Processing Unit, graphics processor) 1041 and a microphone 1042, and the graphics processor 1041 is used for still pictures obtained by an image capture device (such as a camera) in video capture mode or image capture mode Video image data is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102 . The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like operating modes, and can process such sound as audio data. The processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
智能终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。可选地,光传感器包括环境光传感器及接近传感器,可选地,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在智能终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the smart terminal 100 moves to the ear. panel 1061 and/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用LCD(Liquid Crystal Display,液晶 显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in a form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
用户输入单元107可用于接收输入的数字或字符信息,以及产生与智能终端的用户设置以及功能控制有关的键信号输入。可选地,用户输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置和触摸控制器两个部分。可选地,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。可选地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种,具体此处不做限定。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the smart terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Optionally, other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
可选地,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1中,触控面板1071与显示面板1061是作为两个独立的部件来实现智能终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现智能终端的输入和输出功能,具体此处不做限定。Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event. The corresponding visual output is provided on the display panel 1061 . Although in FIG. 1, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the smart terminal is not specifically limited here.
接口单元108用作至少一个外部装置与智能终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到智能终端100内的一个或多个元件或者可以用于在智能终端100和外部装置之间传输数据。The interface unit 108 is used as an interface through which at least one external device can be connected with the smart terminal 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,可选地,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器, 例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a storage program area and a storage data area. Optionally, the storage program area can store an operating system, at least one function required application program (such as a sound playback function, an image playback function, etc.) etc.; the storage data area can be Store data (such as audio data, phone book, etc.) created according to the use of the mobile phone. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器110是智能终端的控制中心,利用各种接口和线路连接整个智能终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行智能终端的各种功能和处理数据,从而对智能终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,可选地,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the smart terminal, and uses various interfaces and lines to connect various parts of the whole smart terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the smart terminal and process data, so as to monitor the smart terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes operating systems, user interfaces, and application programs, etc. The demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
智能终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The smart terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
尽管图1未示出,智能终端100还可以包括蓝牙模块等,在此不再赘述。Although not shown in FIG. 1 , the smart terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
为了便于理解本申请实施例,下面对本申请的智能终端所基于的通信网络系统进行描述。In order to facilitate understanding of the embodiments of the present application, the following describes the communication network system on which the smart terminal of the present application is based.
请参阅图2,图2为本申请实施例提供的一种通信网络系统架构图,该通信网络系统为通用移动通信技术的LTE系统,该LTE系统包括依次通讯连接的UE(User Equipment,用户设备)201,E-UTRAN(Evolved UMTS Terrestrial Radio Access Network,演进式UMTS陆地无线接入网)202,EPC(Evolved Packet Core,演进式分组核心网)203和运营商的IP业务204。Please refer to FIG. 2. FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application. The communication network system is an LTE system of general mobile communication technology. ) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
可选地,UE201可以是上述终端100,此处不再赘述。Optionally, the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
E-UTRAN202包括eNodeB2021和其它eNodeB2022等。可选地,eNodeB2021可以通过回程(backhaul)(例如X2接口)与其它eNodeB2022连接,eNodeB2021连接到EPC203,eNodeB2021可以提供UE201到EPC203的接入。 E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on. Optionally, the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
EPC203可以包括MME(Mobility Management Entity,移动性管理实体)2031,HSS(Home Subscriber Server,归属用户服务器)2032,其它MME2033,SGW(Serving Gate Way,服务网关)2034,PGW(PDN Gate Way,分组数据网络网关)2035和PCRF(Policy and Charging Rules Function,政策和资费功能实体)2036等。可选地,MME2031是处理UE201和EPC203之间信令的控制节点,提供承载和连接管理。HSS2032用于提供一些寄存器来管理诸如归属位置寄存器(图中未示)之类的功能,并且保存有一些有关服务特征、数据速率等用户专用的信息。所有用户数据都可以通过SGW2034进行发送,PGW2035可以提供UE 201的IP地址分配以及其它功能,PCRF2036是业务数据流和IP承载资源的策略与计费控制策略决策点,它为策略与计费执行功 能单元(图中未示)选择及提供可用的策略和计费控制决策。EPC203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data Network Gateway) 2035 and PCRF (Policy and Charging Rules Function, Policy and Charging Functional Entity) 2036, etc. Optionally, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information about service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide UE 201 IP address allocation and other functions, PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
IP业务204可以包括因特网、内联网、IMS(IP Multimedia Subsystem,IP多媒体子系统)或其它IP业务等。The IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
虽然上述以LTE系统为例进行了介绍,但本领域技术人员应当知晓,本申请不仅仅适用于LTE系统,也可以适用于其他无线通信系统,例如GSM、CDMA2000、WCDMA、TD-SCDMA以及未来新的网络系统(如5G)等,此处不做限定。Although the LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems. The network system (such as 5G), etc., is not limited here.
图3为本申请提供的一种控制器140的硬件结构示意图。该控制器140包括:存储器1401和处理器1402,存储器1401用于存储程序指令,处理器1402用于调用存储器1401中的程序指令执行上述方法实施例一中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in the present application. The controller 140 includes: a memory 1401 and a processor 1402, the memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1403,该通信接口1403可以通过总线1404与处理器1402连接。处理器1402可以控制通信接口1403来实现控制器140的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1403 , and the communication interface 1403 may be connected to the processor 1402 through a bus 1404 . The processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140 .
图4为本申请提供的一种网络节点150的硬件结构示意图。该网络节点150包括:存储器1501和处理器1502,存储器1501用于存储程序指令,处理器1502用于调用存储器1501中的程序指令执行上述方法实施例一中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in the present application. The network node 150 includes: a memory 1501 and a processor 1502, the memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the first node in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1503,该通信接口1503可以通过总线1504与处理器1502连接。处理器1502可以控制通信接口1503来实现网络节点150的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1503 , and the communication interface 1503 may be connected to the processor 1502 through a bus 1504 . The processor 1502 can control the communication interface 1503 to realize the functions of receiving and sending of the network node 150 .
图5为本申请提供的一种网络节点160的硬件结构示意图。该网络节点160包括:存储器1601和处理器1602,存储器1601用于存储程序指令,处理器1602用于调用存储器1601中的程序指令执行上述方法实施例一中中间节点和尾节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in the present application. The network node 160 includes: a memory 1601 and a processor 1602, the memory 1601 is used to store program instructions, and the processor 1602 is used to call the program instructions in the memory 1601 to execute the steps performed by the intermediate node and the tail node in the first method embodiment above, The implementation principles and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1603,该通信接口1603可以通过总线1604与处理器1602连接。处理器1602可以控制通信接口1603来实现网络节点160的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1603 , and the communication interface 1603 may be connected to the processor 1602 through a bus 1604 . The processor 1602 can control the communication interface 1603 to realize the functions of receiving and sending of the network node 160 .
图6为本申请提供的一种控制器170的硬件结构示意图。该控制器170包括:存储器1701和处理器1702,存储器1701用于存储程序指令,处理器1702用于调用存储器1701中的程序指令执行上述方法实施例二中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in the present application. The controller 170 includes: a memory 1701 and a processor 1702, the memory 1701 is used to store program instructions, and the processor 1702 is used to call the program instructions in the memory 1701 to execute the steps performed by the controller in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
图7为本申请提供的一种网络节点180的硬件结构示意图。该网络节点180包括:存储器1801和处理器1802,存储器1801用于存储程序指令,处 理器1802用于调用存储器1801中的程序指令执行上述方法实施例二中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in the present application. The network node 180 includes: a memory 1801 and a processor 1802, the memory 1801 is used to store program instructions, and the processor 1802 is used to invoke the program instructions in the memory 1801 to execute the steps performed by the head node in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。The above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk,SSD)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website site, computer, server or data center by wire (such as Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
基于上述智能终端硬件结构以及通信网络系统,提出本申请各个实施例。Based on the above hardware structure of the smart terminal and the communication network system, various embodiments of the present application are proposed.
第一实施例first embodiment
请参阅图8,图8为本申请实施例提供的一种数据处理方法的流程图。如图8所示,可选地,智能终端为执行主体,本实施例的方法可以包括如下步骤:Please refer to FIG. 8 . FIG. 8 is a flowchart of a data processing method provided by an embodiment of the present application. As shown in Figure 8, optionally, the smart terminal is the execution subject, and the method of this embodiment may include the following steps:
S101、响应于拍摄指令,生成影像数据的图像信息集合。S101. Generate an image information set of image data in response to a shooting instruction.
本实施例中,智能终端可以获取拍摄指令。智能终端根据该拍摄指令拍摄影像数据。该影像数据可以为照片或者视频。当一张照片或者一段视频被拍摄时,可以在智能终端中对应生成该影像数据的图像信息集合。该图像信息集合可以存储在该影像数据对应的存储空间中。当智能终端需要传送该影像数据时,该影像数据对应的图像信息集合将同步被传送。In this embodiment, the smart terminal can obtain the shooting instruction. The smart terminal shoots image data according to the shooting instruction. The image data can be photos or videos. When a photo or a video is taken, the image information set of the image data can be correspondingly generated in the smart terminal. The image information set may be stored in a storage space corresponding to the image data. When the smart terminal needs to transmit the image data, the image information set corresponding to the image data will be transmitted synchronously.
一种示例中,图像信息集合中包括至少一阶段信息。每一阶段信息对应于一处理指令,一处理指令对应于至少一阶段信息。例如,拍摄指令可以对应于两个阶段信息。可选地,一个阶段信息中用于存储摄像头相关的参数,另一个阶段信息中用于存储影像数据的基础参数。在该图像信息集合的每一阶段信息中可以包括阶段标识和信息内容两个部分。可选地,阶段标识用于 唯一标识一个阶段信息。例如,用于存储影像数据的基础参数的阶段信息的阶段标识可以为label1,用于存储摄像头相关的参数的阶段信息的阶段标识可以为label2。在一个阶段信息中,信息内容中包括至少一个键值对。该键值对可以以<key,value>的数据对的形式存储,或者,该键值对还可以key:value的数据格式形式存储。可选地,每一个键值对中的关键字(key)为固定内容。例如,该关键字可以为分辨率、编码格式、感光度、加速度等。可选地,每一个关键字对应的参数信息(value)的值根据该影像数据确定。例如,感光度为100、感光度为3200、感光度为25600等。In an example, the image information set includes at least one stage of information. Each stage of information corresponds to a processing instruction, and a processing instruction corresponds to at least one stage of information. For example, a photographing instruction may correspond to two phase information. Optionally, one stage information is used to store camera-related parameters, and the other stage information is used to store basic parameters of image data. Each stage information in the image information set may include two parts, stage identification and information content. Optionally, the stage identifier is used to uniquely identify a stage information. For example, the stage identifier for storing the stage information of the basic parameters of the image data may be label1, and the stage identifier for storing the stage information of the camera-related parameters may be label2. In one stage information, the information content includes at least one key-value pair. The key-value pair can be stored in the form of a <key, value> data pair, or the key-value pair can also be stored in the data format of key:value. Optionally, the keyword (key) in each key-value pair is fixed content. For example, the keyword may be resolution, encoding format, sensitivity, acceleration, etc. Optionally, the value of parameter information (value) corresponding to each keyword is determined according to the image data. For example, ISO 100, ISO 3200, ISO 25600, etc.
一种示例中,阶段信息还包括信息长度。该信息长度用于记录信息内容的数据长度。由于在图像信息集合中各个阶段信息的阶段标识通常具有固定的格式。例如label1、label2的阶段标识中,固定具有6个字符。而在图像信息集合的各个阶段信息中,不同阶段信息的信息内容的长度并不相同。因此,该信息长度的记录可以更加便捷将该阶段信息写入数据流,以及从数据流中日趋该阶段信息的信息内容。In an example, the stage information also includes information length. The information length is used to record the data length of the information content. Because the stage identification of each stage information in the image information set usually has a fixed format. For example, the stage identifiers of label1 and label2 are fixed to have 6 characters. In each stage information of the image information set, the lengths of the information content of different stage information are not the same. Therefore, the record of the information length can more conveniently write the information of this stage into the data stream, and obtain the information content of the information of this stage from the data stream.
另一种示例中,阶段信息还包括预留信息,预留信息用于扩展信息内容中的键值对。该预留信息可以为一段固定长度的空闲存储空间。对于一个阶段信息而言,其键值对的个数是固定的。例如,用于存储摄像头相关的参数的阶段信息的信息内容中可以包括7个键值对。这些键值对中的关键字对应镜头信息、传感器信息、光强信息、增益信息、曝光信息、光圈信息和加速度信息。当智能终端需要在该用于存储摄像头相关的参数的阶段信息中新增一个关键字时,该关键字所在的键值对可以被存储在该预留信息中。In another example, the stage information further includes reservation information, and the reservation information is used to expand the key-value pairs in the information content. The reserved information may be a fixed length of free storage space. For a stage information, the number of key-value pairs is fixed. For example, the information content of the stage information for storing camera-related parameters may include 7 key-value pairs. The keywords in these key-value pairs correspond to lens information, sensor information, light intensity information, gain information, exposure information, aperture information and acceleration information. When the smart terminal needs to add a new keyword in the stage information for storing camera-related parameters, the key-value pair where the keyword is located can be stored in the reserved information.
再一种示例中,阶段信息还包括开始标记和/或结束标记。改开始标记和结束标记可以为两个特定格式的字符串。例如,开始标记可以为!Begin!,结束标记可以为!End!。当智能终端需要将该阶段信息写入数据流时,智能终端可以在开始写入该阶段信息前,先写入该开始标记。并在完成该阶段信息的写入后,写入该结束标记。智能终端在读取数据流时,可以通过该开始标记和该结束标记确定该段数据为一阶段信息。可选地,不同的阶段信息可以具有不同的开始标记和结束标记。或者,该智能终端中全部阶段信息可以对应于相同的开始标记和结束标记。In yet another example, the phase information further includes a start tag and/or an end tag. The start tag and end tag can be two formatted strings. For example, a start tag could be ! Begin! , the closing tag can be ! End! . When the smart terminal needs to write the phase information into the data stream, the smart terminal can first write the start marker before starting to write the phase information. And write the end mark after completing the writing of the phase information. When the smart terminal reads the data stream, it can determine that the piece of data is one-stage information through the start marker and the end marker. Optionally, different phase information may have different start tags and end tags. Alternatively, all phase information in the smart terminal may correspond to the same start marker and end marker.
一种示例中,该阶段信息可以以表格的形式存储在存储空间(如内存,再如闪存,还如硬盘等)中。或者,该阶段信息可以以数据结构的形式存储在存储空间(如内存,再如闪存,还如硬盘等)中。或者,该阶段信息还可以以文件的形式存储在存储空间(如内存,再如闪存,还如硬盘等)中。In an example, the phase information may be stored in a table form in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.). Alternatively, the information at this stage may be stored in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the form of a data structure. Alternatively, the information at this stage may also be stored in a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the form of a file.
S102、根据影像数据的处理指令,在图像信息集合中记录执行处理指令时影像数据对应的参数信息。S102. According to the processing instruction of the image data, record the parameter information corresponding to the image data when executing the processing instruction in the image information set.
本实施例中,智能终端可以获取影像数据的处理指令,当智能终端对该影像数据进行处理时,智能终端可以获取图像对应的参数信息,并将该参数信息记录在图像信息集合中。该参数信息可以包括智能终端执行该处理指令前影像数据的参数信息,以及智能终端执行该处理指令后影像数据的参数信息。In this embodiment, the smart terminal can acquire the processing instruction of the image data, and when the smart terminal processes the image data, the smart terminal can acquire the parameter information corresponding to the image, and record the parameter information in the image information set. The parameter information may include parameter information of the image data before the smart terminal executes the processing instruction, and parameter information of the image data after the smart terminal executes the processing instruction.
一种示例中,当处理指令为拍摄指令时,获取拍摄影像数据的镜头组件对应的镜头参数和传感器参数,并将镜头参数和传感器参数存储到拍摄指令对应的阶段信息中的至少一个键值对的参数信息中。In one example, when the processing instruction is a shooting instruction, obtain the lens parameters and sensor parameters corresponding to the lens assembly that shoots the image data, and store the lens parameters and sensor parameters in at least one key-value pair in the stage information corresponding to the shooting instruction in the parameter information.
本示例中,在智能终端拍摄影像数据时,智能终端需要在相机的应用程序中生成拍摄指令。该拍摄指令中可以包括拍摄该影像数据时使用的镜头组件、镜头组件的镜头参数和传感器参数。例如,当拍摄近距离事物时,该镜头组件可以为微焦镜头;当拍摄风景图片时,该镜头组件可以为广角镜头。可选地,在拍摄不同的影像数据时,相同的镜头组件可以具有不同的镜头参数和传感器参数。例如,当拍摄室内图片时,可以使用大光圈以保证图片亮度;当拍摄室外图片时,可以根据天气情况调整光圈大小。因此,智能终端获取的拍摄指令中应包括镜头组件、镜头参数和传感器参数等信息。智能终端可以将这些信息写入拍摄指令对应的阶段信息中。这些镜头参数和传感器参数中的每一参数可以对应于阶段信息的信息内容中的一个键值对。该键值对中可以包括关键字和参数信息。可选地,关键字对应于这些镜头参数和传感器参数的关键字。可选地,参数信息对应于该拍摄指令中这些镜头参数和传感器参数的参数值。In this example, when the smart terminal shoots image data, the smart terminal needs to generate a shooting instruction in the application program of the camera. The shooting instruction may include a lens assembly used when shooting the image data, lens parameters of the lens assembly, and sensor parameters. For example, when shooting close-up objects, the lens assembly can be a micro-focus lens; when shooting landscape pictures, the lens assembly can be a wide-angle lens. Optionally, the same lens assembly may have different lens parameters and sensor parameters when shooting different image data. For example, when taking indoor pictures, you can use a large aperture to ensure the brightness of the picture; when taking outdoor pictures, you can adjust the size of the aperture according to the weather conditions. Therefore, the shooting instruction acquired by the smart terminal should include information such as lens components, lens parameters, and sensor parameters. The smart terminal can write these information into the stage information corresponding to the shooting instruction. Each of these lens parameters and sensor parameters may correspond to a key-value pair in the information content of the stage information. The key-value pair may include keywords and parameter information. Optionally, the keywords correspond to those of the lens parameters and sensor parameters. Optionally, the parameter information corresponds to the parameter values of the lens parameters and sensor parameters in the shooting instruction.
可选地,智能终端获取该拍摄指令的镜头参数和传感器参数具体步骤可以包括:Optionally, the specific steps for the smart terminal to obtain the lens parameters and sensor parameters of the shooting instruction may include:
步骤1、智能终端根据拍摄指令,确定拍摄指令对应的镜头组件。该镜头组件中可以包括至少一个镜头和至少一个传感器。Step 1. The smart terminal determines the lens assembly corresponding to the shooting instruction according to the shooting instruction. The lens assembly may include at least one lens and at least one sensor.
步骤2、智能终端根据该镜头组件中包括的至少一个镜头,确定每一镜头对应的镜头参数。以及,智能终端根据该镜头组件中包括的至少一个传感器,确定每一传感器对应的传感器参数。Step 2. The smart terminal determines the lens parameters corresponding to each lens according to at least one lens included in the lens assembly. And, the smart terminal determines the sensor parameters corresponding to each sensor according to at least one sensor included in the lens assembly.
可选地,镜头参数和传感器参数包括镜头信息、传感器信息、光强信息、增益信息、曝光信息、光圈信息、加速度信息中的至少一项。Optionally, the lens parameters and sensor parameters include at least one item of lens information, sensor information, light intensity information, gain information, exposure information, aperture information, and acceleration information.
另一种示例中,当处理指令为拍摄指令时,获取拍摄影像数据时的拍摄信息,并将拍摄信息存储到拍摄指令对应的阶段信息的至少一个键值对中。In another example, when the processing instruction is a shooting instruction, shooting information when shooting image data is acquired, and the shooting information is stored in at least one key-value pair of stage information corresponding to the shooting instruction.
本示例中,当智能终端获取该拍摄指令后,智能终端可以从智能终端中的其他应用程序中获取拍摄影像数据时的拍摄信息。并将这些拍摄信息统一存储到拍摄指令对应的阶段信息中。可选地,该拍摄信息具体可以包括以下 至少一种:智能终端从GPS中获取拍摄该影像数据时的地理位置信息。智能终端从时钟中获取拍摄该影像数据时的时间信息。智能终端从日历中获取拍摄该影像数据时的活动日程信息。智能终端可以将这些拍摄信息保存到拍摄指令对应的阶段信息的信息内容中。该信息内容中可以包括多个键值对。每一个键值对中的关键字可以对应于拍摄信息中的关键字。例如,地理位置信息、时间信息、活动日程信息等。每一键值对中的参数信息对应于这些关键字的实际参数值。例如,北京、10月20日、升旗仪式等。可选地,本实施例中存储拍摄信息对应的阶段信息与上一实施例中存储镜头参数和传感器参数对应的阶段信息,虽然均在智能终端检测到拍摄指令时对应生成并完成数据写入,但为不同的阶段信息。In this example, after the smart terminal obtains the shooting instruction, the smart terminal may obtain shooting information when shooting image data from other application programs in the smart terminal. And the shooting information is uniformly stored in the stage information corresponding to the shooting instruction. Optionally, the shooting information may specifically include at least one of the following: the smart terminal acquires geographic location information when the image data is shot from the GPS. The smart terminal obtains the time information when the image data is captured from the clock. The smart terminal obtains the event schedule information when the image data is captured from the calendar. The smart terminal may save the shooting information into the information content of the stage information corresponding to the shooting instruction. The information content may include multiple key-value pairs. A keyword in each key-value pair may correspond to a keyword in the shooting information. For example, geographic location information, time information, event schedule information, etc. The parameter information in each key-value pair corresponds to the actual parameter values of these keywords. For example, Beijing, October 20th, flag raising ceremony, etc. Optionally, the stage information corresponding to the stored shooting information in this embodiment is the same as the stage information corresponding to the stored lens parameters and sensor parameters in the previous embodiment, although both are correspondingly generated and completed when the smart terminal detects the shooting instruction and the data writing is completed, But for different stage information.
再一种示例中,当处理指令为存储指令时,获取影像数据的格式信息,并将格式信息存储到存储指令对应的阶段信息中的至少一个键值对的参数信息中。In another example, when the processing instruction is a storage instruction, the format information of the image data is obtained, and the format information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the storage instruction.
本示例中,当智能终端完成该影像数据的拍摄,并需要将该影像数据存储到智能终端的存储空间(如内存,再如闪存,还如硬盘等)中时,智能终端可以从该影像数据中获取该影像数据的格式信息。该格式信息可以包括影像数据的长宽信息、编码格式、帧类型、帧号等。智能终端中该存储指令对应的阶段信息的信息内容中可以包括多个键值对。每一个键值对中的关键字可以对应于上述长宽信息、编码格式、帧类型、帧号等格式信息的关键字。每一键值对中的参数信息可以对应于上述关键字对应的参数值。In this example, when the smart terminal completes the shooting of the image data and needs to store the image data in the storage space of the smart terminal (such as memory, flash memory, or hard disk, etc.), the smart terminal can save the image data from the Get the format information of the image data in . The format information may include length and width information of the image data, encoding format, frame type, frame number, and the like. The information content of the phase information corresponding to the storage instruction in the smart terminal may include multiple key-value pairs. The keywords in each key-value pair may correspond to the keywords of the format information such as the above-mentioned length and width information, encoding format, frame type, and frame number. The parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
又一种示例中,当处理指令为影像数据的图像处理指令时,获取图像处理步骤和图像处理信息,并将图像处理步骤和图像处理信息存储到图像处理指令对应的阶段信息中的至少一个键值对的参数信息中。In another example, when the processing instruction is an image processing instruction of image data, the image processing steps and image processing information are obtained, and the image processing steps and image processing information are stored in at least one key in the stage information corresponding to the image processing instruction In the parameter information of the value pair.
本示例中,智能终端可以通过图像处理指令对影像数据进行进一步的加工处理。该图像处理指令中可以包括一条或者多条具体的处理指令。例如,裁剪指令、降噪指令、缩放指令、风格化指令等。在智能终端中,用户通常需要通过交互界面,确定每一次处理时需要执行的处理指令。因此,智能终端可以获取该次图像处理了指令对应的处理指令,并根据该处理指令在该图像处理指令对应的阶段信息中存储对应的图像处理步骤以及图像处理信息。In this example, the smart terminal can further process the image data through image processing instructions. The image processing instruction may include one or more specific processing instructions. For example, cropping instructions, noise reduction instructions, scaling instructions, stylization instructions, etc. In the smart terminal, the user usually needs to determine the processing instructions to be executed for each processing through an interactive interface. Therefore, the smart terminal can acquire the processing instruction corresponding to the image processing instruction, and store the corresponding image processing steps and image processing information in the stage information corresponding to the image processing instruction according to the processing instruction.
当智能终端获取到图像处理指令时,智能终端可以根据该图像处理指令对影像数据进行处理,并在处理过程中顺序记录图像处理步骤以及图像处理信息。例如,当智能终端使用裁剪指令裁剪该影像数据时,智能终端可以记录该裁剪指令、该裁剪指令的执行时间、裁剪前图像的分辨率、裁剪后图像的分辨率等信息。When the smart terminal acquires the image processing instruction, the smart terminal can process the image data according to the image processing instruction, and sequentially record the image processing steps and image processing information during the processing. For example, when the smart terminal uses a cropping command to crop the image data, the smart terminal can record information such as the cropping command, the execution time of the cropping command, the resolution of the image before cropping, and the resolution of the image after cropping.
智能终端中该图像处理指令对应的阶段信息的信息内容中可以包括多个 键值对。每一个键值对中的关键字可以对应于上述指令名称、指令执行时间、执行前分辨率、执行后分辨率等图像处理步骤和图形处理信息的关键字。每一键值对中的参数信息可以对应于上述关键字对应的参数值。The information content of the stage information corresponding to the image processing instruction in the smart terminal may include multiple key-value pairs. The keywords in each key-value pair may correspond to the keywords of the image processing steps and graphics processing information such as the instruction name, instruction execution time, pre-execution resolution, and post-execution resolution. The parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
又一种示例中,当处理指令为图像语义识别时,获取影像数据的语义信息,并将语义信息存储到图像语义识别对应的阶段信息中的至少一个键值对的参数信息中。In another example, when the processing instruction is image semantic recognition, the semantic information of the image data is acquired, and the semantic information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the image semantic recognition.
本示例中,智能终端可以通过图像语义识别对影像数据进行加工,获取该影像数据中的语义信息。通过图像语义识别,智能终端可以通过识别影像数据中的目标对象,确定该影像数据的图像类别。该图像类别可以包括风景、人物、动物、植物、静物等。智能终端还可以在识别目标对象的信息。例如,当目标对象为人物时,目标对象信息可以包括人物位置信息、人脸位置信息、人脸身份信息、人数信息、人物动作信息中的至少一项。当目标对象为动物时,目标对象信息包括动物位置信息、动物品种信息、数量信息、动物动作信息中的至少一项。当目标对象为植物和/或静物时,目标对象信息包括植物和/或静物位置信息、植物和/或静物品种信息、数量信息中的至少一项。In this example, the smart terminal can process image data through image semantic recognition to obtain semantic information in the image data. Through image semantic recognition, the smart terminal can determine the image category of the image data by identifying the target object in the image data. The image categories may include landscapes, people, animals, plants, still life, and the like. The smart terminal can also identify the information of the target object. For example, when the target object is a person, the target object information may include at least one item of person location information, face location information, face identity information, number of people information, and person action information. When the target object is an animal, the target object information includes at least one item of animal location information, animal breed information, animal quantity information, and animal action information. When the target object is a plant and/or a still life, the target object information includes at least one item of plant and/or still life position information, plant and/or still life variety information, and quantity information.
智能终端中该图像语义识别对应的阶段信息的信息内容中可以包括多个键值对。每一个键值对中的关键字可以对应于上述图像类别、目标对象位置等关键字。每一键值对中的参数信息可以对应于上述关键字对应的参数值。The information content of the phase information corresponding to the image semantic recognition in the smart terminal may include multiple key-value pairs. The keywords in each key-value pair may correspond to the above-mentioned keywords such as image category and target object location. The parameter information in each key-value pair may correspond to the parameter value corresponding to the above-mentioned keyword.
本申请提供的数据处理方法中,智能终端可以获取拍摄指令。该拍摄指令用于指示智能终端拍摄影像数据。当影像数据被拍摄时,可以在智能终端中对应生成该影像数据的图像信息集合。该图像信息集合可以存储在该影像数据对应的存储空间中。当智能终端需要传送该影像数据时,该影像数据对应的图像信息集合将同步被传送。智能终端可以获取影像数据的处理指令,当智能终端对该影像数据进行处理时,智能终端可以获取图像对应的参数信息,并将该参数信息记录在图像信息集合中。本申请中,通过图像信息集合,实现对影像数据对应信息的完善,使该影像数据的信息可以标准化存储,以便于在后续对该影像数据处理过程中,可以直接使用该标准化的影像数据的信息,提高影像数据的处理效率。In the data processing method provided by the present application, the smart terminal can obtain the shooting instruction. The photographing instruction is used to instruct the smart terminal to photograph image data. When the image data is captured, the image information set of the image data can be correspondingly generated in the smart terminal. The image information set may be stored in a storage space corresponding to the image data. When the smart terminal needs to transmit the image data, the image information set corresponding to the image data will be transmitted synchronously. The smart terminal can obtain the processing instruction of the image data, and when the smart terminal processes the image data, the smart terminal can obtain the parameter information corresponding to the image, and record the parameter information in the image information set. In this application, through the collection of image information, the improvement of the corresponding information of the image data is realized, so that the information of the image data can be stored in a standardized manner, so that the information of the standardized image data can be directly used in the subsequent processing of the image data , to improve the processing efficiency of image data.
第二实施例second embodiment
请参阅图9,图9为本申请实施例提供的一种数据处理方法的流程图。在图8所示实施例的基础上,如图9所示,以智能终端为执行主体,本实施例的方法可以包括如下步骤:Please refer to FIG. 9 . FIG. 9 is a flowchart of a data processing method provided by an embodiment of the present application. On the basis of the embodiment shown in FIG. 8, as shown in FIG. 9, with the smart terminal as the execution subject, the method of this embodiment may include the following steps:
S201、智能终端控制摄像头拍摄影像数据。S201. The smart terminal controls the camera to capture image data.
本实施例中,智能终端可以从相机等应用程序中获取拍摄指令。该拍摄指令中可以包括拍摄该影像数据时使用的镜头组件、镜头组件的镜头参数和 传感器参数。智能终端可以根据这些镜头组件的镜头参数和传感器参数,控制该智能终端中对应的镜头组件,实现该影像数据的拍摄。In this embodiment, the smart terminal can obtain a shooting instruction from an application program such as a camera. The shooting instruction may include a lens assembly used when shooting the image data, lens parameters of the lens assembly, and sensor parameters. The smart terminal can control the corresponding lens components in the smart terminal according to the lens parameters and sensor parameters of the lens components, so as to realize the shooting of the image data.
当该智能终端完成该影像数据的拍摄后,在通用的计算摄影框架中,该影像数据还可以执行基础图像处理、计算摄影处理、图像应用处理等操作。After the smart terminal completes the shooting of the image data, in the general computational photography framework, the image data can also perform operations such as basic image processing, computational photography processing, and image application processing.
在计算摄影框架中,为了提高影像数据的处理效率,智能终端可以将各个处理阶段进行封装。智能终端可以通过接口调用的方式控制影像数据完成各个处理阶段的处理操作。在调用各个接口时,智能终端需要输入不同的数据流,以及输出不同的数据流。这些数据流用于描述影像数据。为了提高影像数据在各个处理阶段中对表述的统一性和灵活性,智能终端可以预定义各个接口中需要具备的接口数据信息的格式。该接口数据信息的格式的预定义可以保证这些接口数据信息的通用性。这些数据信息可以通过预设预留信息,提高灵活性。In the framework of computational photography, in order to improve the processing efficiency of image data, smart terminals can encapsulate each processing stage. The smart terminal can control the image data to complete the processing operations of each processing stage by calling the interface. When calling each interface, the smart terminal needs to input different data streams and output different data streams. These data streams are used to describe imagery data. In order to improve the uniformity and flexibility of image data representation in each processing stage, the smart terminal can predefine the format of the interface data information required in each interface. The predefinition of the format of the interface data information can ensure the universality of these interface data information. The data information can be reserved by presetting the information to improve flexibility.
例如,智能终端预定义的各个接口的接口数据信息的格式可以如表1所示。For example, the format of the interface data information of each interface predefined by the smart terminal may be as shown in Table 1.
表1Table 1
字段field 字段的描述Description of the field 字段的类型type of field
标识信息Identification information 对应于一接口的接口数据信息Interface data information corresponding to an interface integerinteger
信息长度message length 本段接口数据信息的整体长度The overall length of the interface data information in this section integerinteger
信息内容information 影像数据的信息内容Information content of image data 字符串string
预留信息reserved information 为保证灵活性,给出预留信息To ensure flexibility, reserve information is given  the
在智能终端中,不同的处理阶段可以对应有不同的接口。不同的接口可以具有不同的接口数据信息。智能终端可以使用表1所示的预定义的接口数据信息格式来描述各个接口的接口数据信息。为了区分各个接口的接口数据信息,智能终端可以使用不同的标识信息来区分不同的接口。例如,对于接口1、接口2、接口3,可以具备有不同的标识信息。In the smart terminal, different processing stages may correspond to different interfaces. Different interfaces may have different interface data information. The smart terminal can use the predefined interface data information format shown in Table 1 to describe the interface data information of each interface. In order to distinguish the interface data information of each interface, the smart terminal may use different identification information to distinguish different interfaces. For example, interface 1, interface 2, and interface 3 may have different identification information.
当智能终端完成影像数据的拍摄后,智能终端中可以生成该影像数据的基本信息描述。该影像数据的基本信息描述可以按照一个接口数据信息的格式写入存储空间(如内存,再如闪存,还如硬盘等)中。该影像数据的基本信息描述的标识信息可以为“data pipeline label 1”或者“basic image info”等。该标识信息用于唯一标识该影像数据的基本信息描述。针对不同的影像数据可以使用相同的标识信息对影像数据的基本信息描述进行标识。或者,针对不同的影像数据可以使用不同的标识信息对影像数据的基本信息描述进行标识。一个接口数据信息中通常包括一种或者多种属性参数。可选地,在一个接口数据信息中的一种或者多种属性参数之间通常具有相关性。例如, 用于描述该影像数据的基本信息的一个接口数据信息中除了包括标识信息和信息长度以外,信息内容中可以包括影像数据的长度、图片的长宽信息、图像的编码格式、图像的帧类型、图像的帧号等信息。当这些信息全部被写入如表1所示的格式的接口数据信息中后,智能终端可以将该接口数据信息以数据流的方式在各个接口之间传输。在后续处理操作中,智能终端可以通过直接获取该标识信息为“basic image info”的接口数据信息,实现影像数据的基本信息的快速获取,极大的提高了该影像数据的基本信息的获取效率。After the smart terminal completes the shooting of the image data, the smart terminal can generate the basic information description of the image data. The basic information description of the image data can be written into a storage space (such as a memory, such as a flash memory, or a hard disk, etc.) in the format of an interface data information. The identification information described by the basic information of the image data may be "data pipeline label 1" or "basic image info". The identification information is used to uniquely identify the basic information description of the image data. For different image data, the same identification information can be used to identify the basic information description of the image data. Or, for different image data, different identification information may be used to identify the basic information description of the image data. An interface data information usually includes one or more attribute parameters. Optionally, there is usually a correlation between one or more attribute parameters in one interface data information. For example, in addition to identification information and information length, an interface data information used to describe the basic information of the image data may include the length of the image data, the length and width information of the picture, the encoding format of the image, and the frame of the image. Type, frame number of the image and other information. After all the information is written into the interface data information in the format shown in Table 1, the smart terminal can transmit the interface data information between interfaces in the form of a data stream. In the subsequent processing operation, the smart terminal can directly obtain the interface data information whose identification information is "basic image info", so as to realize the rapid acquisition of the basic information of the image data, which greatly improves the acquisition efficiency of the basic information of the image data .
当智能终端完成影像数据的成像后,智能终端可以根据该影像数据的成像过程,将其成像信息按照一个接口数据信息的格式写入存储空间(如内存,再如闪存,还如硬盘等)中。该成像数据的接口数据信息可以具有与基本信息的接口数据信息不同的标识信息。例如,该标识信息可以为“data pipeline label 2”。在影像数据的成像过程中可以包括各种传感数据、光学数据等。这些成像的辅助数据可以被写入该标识信息为“data pipeline label 2”的接口数据信息的信息内容中。该信息内容中具体可以包括图像传感器的基本数据信息、光照信息、增益信息、加速度传感器信息、曝光信息、地理位置信息、时间信息等。这些信息可以用于客观的描述成像的辅助数据。After the smart terminal completes the imaging of the image data, the smart terminal can write its imaging information into the storage space (such as memory, flash memory, or hard disk, etc.) according to the format of an interface data information according to the imaging process of the image data. . The interface data information of the imaging data may have different identification information from the interface data information of the basic information. For example, the identification information may be "data pipeline label 2". Various sensory data, optical data, etc. may be included in the imaging process of the image data. These imaging auxiliary data can be written into the information content of the interface data information whose identification information is "data pipeline label 2". The information content may specifically include basic data information of the image sensor, illumination information, gain information, acceleration sensor information, exposure information, geographic location information, time information, and the like. This information can be used to objectively describe the auxiliary data of the imaging.
在后续处理操作中,智能终端还可以根据实际需要,以上述表1所示的接口数据信息的格式存储影像数据在各个处理操作中产生的信息。在不同处理操作中产生的接口数据信息中可能存在数据重复,该数据的重复出现会导致冗余,但是并不影响接口数据信息的格式的实际使用以及实现。In subsequent processing operations, the smart terminal may also store information generated in each processing operation of the image data in the format of the interface data information shown in Table 1 above according to actual needs. There may be data duplication in the interface data information generated in different processing operations, and the duplication of data will lead to redundancy, but it does not affect the actual use and realization of the format of the interface data information.
S202、智能终端使用基础图像处理单元处理影像数据;和/或,智能终端使用计算摄影处理单元处理影像数据;和/或,智能终端使用图像应用处理单元处理影像数据。S202. The smart terminal uses the basic image processing unit to process the image data; and/or the smart terminal uses the computational photography processing unit to process the image data; and/or the smart terminal uses the image application processing unit to process the image data.
本实施例中,智能终端还可以在完成影像数据的拍摄后,将该影响数据传输到后续的基础图像处理单元。该基础图像处理单元主用用于实现对光学器件及其辅助部分的数据进行一些基本的处理。在该处理过程中,智能终端可以直接从数据流中获取标签信息为“data pipeline label 2”的接口数据信息,并使用该接口数据信息执行基础图像处理单元中对数据的处理。当影像数据完成在基础图像处理单元中的处理后,智能终端可以将数据传递给计算摄影处理单元。在计算摄影处理单元中,智能终端可以对影响数据会进行复杂的图像处理。并在完成该图像处理后,将该影像数据传递给图像应用处理单元,以实现该影像数据的呈现、存储、编辑、共享、等操作。In this embodiment, the smart terminal may also transmit the impact data to a subsequent basic image processing unit after the image data is captured. The basic image processing unit is mainly used to perform some basic processing on the data of the optical device and its auxiliary parts. During this processing, the smart terminal can directly obtain the interface data information whose label information is "data pipeline label 2" from the data stream, and use the interface data information to execute the data processing in the basic image processing unit. After the image data has been processed in the basic image processing unit, the smart terminal can transfer the data to the computational photography processing unit. In the computational photography processing unit, the smart terminal can perform complex image processing on the impact data. And after the image processing is completed, the image data is transmitted to the image application processing unit, so as to realize operations such as presentation, storage, editing, sharing, etc. of the image data.
随着影像数据在智能终端中的逐次传递,影像数据会被进行各种处理操作。例如,影像数据可以经过某个降噪算法的处理、经过缩放处理、经过压缩处理后构成最终的影像数据。该影像数据的处理过程相当于对原始图像的 修改过程,在该修改过程中,可以形成该标签信息为“data pipeline label 3”的接口数据信息,该标签信息为“data pipeline label 3”的接口数据信息中可以存储有该影像数据的修改过程。又如,影像数据可以在完成图像处理后对该影像数据中的特殊部分进行特殊处理,并形成一些高级的信息。该高级信息可以为人脸信息、图像语义信息等。可选地,人脸信息又可以包括人脸在图像中的位置、人脸五官的信息、人脸的角度等。这些高级信息可以被存储在标签信息为“data pipeline label 4”的接口数据信息中。As the image data is transmitted successively in the smart terminal, the image data will be subjected to various processing operations. For example, the image data may be processed by a noise reduction algorithm, scaled, and compressed to form the final image data. The processing process of the image data is equivalent to the modification process of the original image. In the modification process, the interface data information whose label information is "data pipeline label 3" can be formed, and the label information is the interface of "data pipeline label 3". The modification process of the image data may be stored in the data information. For another example, after the image processing is completed, special processing can be performed on a special part of the image data to form some advanced information. The high-level information may be face information, image semantic information, and the like. Optionally, the face information may include the position of the face in the image, information about facial features, the angle of the face, and the like. These high-level information can be stored in the interface data information whose label information is "data pipeline label 4".
本申请提供的数据处理方法中,智能终端可以从相机等应用程序中获取拍摄指令。智能终端可以通过接口调用的方式控制影像数据完成各个处理阶段的处理操作。在调用各个接口时,智能终端需要输入不同的数据流,以及输出不同的数据流。这些数据流用于描述影像数据。为了提高影像数据在各个处理阶段中对表述的统一性和灵活性,智能终端可以预定义各个接口中需要具备的接口数据信息的格式。该接口数据信息的格式的预定义可以保证这些接口数据信息的通用性。这些数据信息可以通过预设预留信息,提高灵活性。本申请中,通过统一的接口数据信息的格式,对影像数据在处理过程中产生的信息进行标准化的存储,提高了在数据处理过程中获取数据的效率,提高影像数据的整体处理效率,提高用户体验。In the data processing method provided by the present application, the smart terminal can obtain shooting instructions from application programs such as cameras. The smart terminal can control the image data to complete the processing operations of each processing stage by calling the interface. When calling each interface, the smart terminal needs to input different data streams and output different data streams. These data streams are used to describe imagery data. In order to improve the uniformity and flexibility of image data representation in each processing stage, the smart terminal can predefine the format of the interface data information required in each interface. The predefinition of the format of the interface data information can ensure the universality of these interface data information. The data information can be reserved by presetting the information to improve flexibility. In this application, through the unified interface data information format, the information generated during the image data processing process is stored in a standardized manner, which improves the efficiency of data acquisition during the data processing process, improves the overall processing efficiency of image data, and improves user experience.
第三实施例third embodiment
请参阅图10,图10为本申请实施例提供的再一种数据处理方法的流程图。如图10所示,以智能终端为执行主体,本实施例的方法可以包括如下步骤:Please refer to FIG. 10 . FIG. 10 is a flowchart of another data processing method provided by the embodiment of the present application. As shown in Figure 10, with the smart terminal as the execution subject, the method of this embodiment may include the following steps:
S301、获取影像数据的参数信息。S301. Acquire parameter information of image data.
本实施例中,智能终端可以在影像数据的处理过程中实时获取该影像数据的参数信息。智能终端可以将这些参数信息存储在该影像数据对应的存储空间中。该影像数据对应的存储空间中的数据,将在该影像数据被转化为数据流进行传输时,随着该影像数据一起转化为数据流。该影像数据可以为照片或者视频。In this embodiment, the smart terminal can acquire the parameter information of the image data in real time during the processing of the image data. The smart terminal can store these parameter information in the storage space corresponding to the image data. The data in the storage space corresponding to the image data will be converted into a data stream together with the image data when the image data is converted into a data stream for transmission. The image data can be photos or videos.
一种示例中,该影像数据对应的存储空间中,可以包括至少一个数据格式(优选地,如至少两个数据格式)。每一数据格式中可以存储一个或者多个属性参数。当一个数据格式中包括至少一个数据参数时,该至少一个数据参数之间通常具有一定的关联。例如,至少一个数据格式用于记录拍摄影像数据时的摄像参数信息、影像数据的基础参数信息、图像处理时的处理参数信息和图像应用时的应用参数信息中的至少一项;可选地,至少两个数据格式分别用于记录拍摄影像数据时的摄像参数信息、影像数据的基础参数信息、图像处理时的处理参数信息和图像应用时的应用参数信息中的至少两项。In an example, the storage space corresponding to the image data may include at least one data format (preferably, such as at least two data formats). One or more attribute parameters can be stored in each data format. When a data format includes at least one data parameter, the at least one data parameter usually has a certain relationship. For example, at least one data format is used to record at least one of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information during image processing, and application parameter information during image application; optionally, The at least two data formats are respectively used to record at least two items of imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information during image processing, and application parameter information during image application.
一种示例中,一个数据格式中可以包括标签序号、标签名称、标签子表格、表格数据长度中的至少一个字段。每一标签子表格中还可以包括关键字序号、关键字、参数信息、参数长度中的至少一个字段。当影像数据为照片时,一标签子表格中的关键字可以包括图像长度、图像宽度、编码格式、白平衡、饱和度、锐度中的至少一项。当影像数据为视频时,一标签子表格中的关键字包括图像帧数、I帧帧号、P帧帧号、B帧帧号、图像分辨率中的至少一项。In one example, a data format may include at least one field among tag serial number, tag name, tag subtable, and table data length. Each label sub-table may also include at least one field among keyword serial number, keyword, parameter information, and parameter length. When the image data is a photo, the keywords in a tag sub-table may include at least one item of image length, image width, encoding format, white balance, saturation, and sharpness. When the image data is video, the keywords in a tag subtable include at least one item of image frame number, I frame number, P frame number, B frame number, and image resolution.
S302、根据参数信息,从影像数据对应的至少一个数据格式中确定目标数据格式。S302. According to the parameter information, determine a target data format from at least one data format corresponding to the image data.
本实施例中,智能终端可以在获取参数信息后,根据该参数信息的来源,确定该参数信息对应需要写入的数据格式。智能终端可以确定该数据格式为目标数据格式。In this embodiment, after acquiring the parameter information, the smart terminal can determine the data format corresponding to the parameter information to be written according to the source of the parameter information. The smart terminal can determine that the data format is the target data format.
S303、将参数信息写入目标数据格式中。S303. Write the parameter information into the target data format.
本实施例中,智能终端可以从该目标数据格式中获取标签子表格。智能终端可以根据该参数信息对应的关键字,确定该参数信息需要写入的行。智能终端可以将该参数信息写入该行的“参数信息”字段对应的区域内。In this embodiment, the smart terminal can obtain the tag subtable from the target data format. The smart terminal can determine the line where the parameter information needs to be written according to the keyword corresponding to the parameter information. The smart terminal can write the parameter information into the area corresponding to the "parameter information" field of the row.
本申请提供的数据处理方法中,智能终端可以在影像数据的处理过程中实时获取该影像数据的参数信息。智能终端可以在获取参数信息后,根据该参数信息的来源,确定该参数信息对应需要写入的数据格式。智能终端可以根据该参数信息对应的关键字,确定该参数信息需要写入的行。智能终端可以将该参数信息写入该行的“参数信息”字段对应的区域内。本申请中,智能终端可以通过将参数信息填入数据格式,实现数据格式的完善,从而提高智能终端在对影像数据进行处理时,参数信息的获取效率。In the data processing method provided by the present application, the smart terminal can obtain the parameter information of the image data in real time during the processing of the image data. After obtaining the parameter information, the smart terminal can determine the data format corresponding to the parameter information to be written according to the source of the parameter information. The smart terminal can determine the line where the parameter information needs to be written according to the keyword corresponding to the parameter information. The smart terminal can write the parameter information into the area corresponding to the "parameter information" field of the line. In this application, the smart terminal can complete the data format by filling the parameter information into the data format, thereby improving the acquisition efficiency of the parameter information when the smart terminal processes image data.
本申请实施例还提供一种智能终端,智能终端包括存储器、处理器,存储器上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例中的数据处理方法的步骤。An embodiment of the present application also provides a smart terminal, the smart terminal includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the data processing method in any of the above embodiments are implemented.
本申请实施例还提供一种计算机可读存储介质,存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例中的数据处理方法的步骤。An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method in any of the foregoing embodiments are implemented.
在本申请提供的智能终端和计算机可读存储介质的实施例中,可以包含任一上述数据处理方法各实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不做再赘述。The embodiments of the smart terminal and the computer-readable storage medium provided in this application may contain all the technical features of any of the embodiments of the above-mentioned data processing method. I won't repeat it here.
本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
本申请实施例还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。The embodiment of the present application also provides a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
可以理解,上述场景仅是作为示例,并不构成对于本申请实施例提供的技术方案的应用场景的限定,本申请的技术方案还可应用于其他场景。例如,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It can be understood that the above scenario is only an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application can also be applied to other scenarios. For example, those skilled in the art know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.
本申请实施例设备中的单元可以根据实际需要进行合并、划分和删减。Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
在本申请中,对于相同或相似的术语概念、技术方案和/或应用场景描述,一般只在第一次出现时进行详细描述,后面再重复出现时,为了简洁,一般未再重复阐述,在理解本申请技术方案等内容时,对于在后未详细描述的相同或相似的术语概念、技术方案和/或应用场景描述等,可以参考其之前的相关详细描述。In this application, descriptions of the same or similar terms, concepts, technical solutions and/or application scenarios are generally only described in detail when they appear for the first time, and when they appear repeatedly later, for the sake of brevity, they are generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions and/or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
在本申请中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In this application, the description of each embodiment has its own emphasis. For the parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The various technical features of the technical solution of the present application can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be regarded as the scope described in this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台智能终端(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make an intelligent terminal (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站 站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘(Solid State Disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. The usable medium may be a magnetic medium (such as a floppy disk, a storage disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种数据处理方法,其中,包括以下步骤:A data processing method, comprising the following steps:
    S101:响应于拍摄指令,确认或生成影像数据的图像信息集合;S101: Confirm or generate an image information set of image data in response to a shooting instruction;
    S102:根据所述影像数据的处理指令,在所述图像信息集合中记录执行所述处理指令时所述影像数据对应的参数信息。S102: According to the processing instruction of the image data, record parameter information corresponding to the image data when the processing instruction is executed in the image information set.
  2. 根据权利要求1所述的方法,其中,所述图像信息集合中包括至少一阶段信息,包括以下至少一种特征:The method according to claim 1, wherein the image information set includes at least one stage of information, including at least one of the following features:
    所述阶段信息对应于一所述处理指令;said phase information corresponds to a said processing instruction;
    所述阶段信息中包括阶段标识和/或信息内容;The stage information includes stage identification and/or information content;
    所述信息内容中包括至少一个键值对。The information content includes at least one key-value pair.
  3. 根据权利要求2所述的方法,其中,所述阶段信息还包括以下至少一种特征:The method according to claim 2, wherein the stage information further includes at least one of the following features:
    信息长度;message length;
    预留信息;reserved information;
    开始标记和/或结束标记。start tag and/or end tag.
  4. 根据权利要求1至3中任一项所述的方法,其中,所述S102步骤,包括以下至少一种:The method according to any one of claims 1 to 3, wherein the step S102 includes at least one of the following:
    当所述处理指令为拍摄指令时,获取拍摄所述影像数据的镜头组件对应的镜头参数和传感器参数,并将所述镜头参数和传感器参数存储到所述拍摄指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is a shooting instruction, acquire lens parameters and sensor parameters corresponding to the lens assembly that captures the image data, and store the lens parameters and sensor parameters in at least one of the stage information corresponding to the shooting instruction In the parameter information of the key-value pair;
    当所述处理指令为拍摄指令时,获取拍摄所述影像数据时的拍摄信息,并将所述拍摄信息存储到所述拍摄指令对应的阶段信息的至少一个键值对中;When the processing instruction is a shooting instruction, acquiring shooting information when shooting the image data, and storing the shooting information in at least one key-value pair of stage information corresponding to the shooting instruction;
    当所述处理指令为存储指令时,获取所述影像数据的格式信息,并将所述格式信息存储到所述存储指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is a storage instruction, obtain the format information of the image data, and store the format information in the parameter information of at least one key-value pair in the stage information corresponding to the storage instruction;
    当所述处理指令为所述影像数据的图像处理指令时,获取所述图像处理步骤和图像处理信息,并将所述图像处理步骤和图像处理信息存储到所述图像处理指令对应的阶段信息中的至少一个键值对的参数信息中;When the processing instruction is an image processing instruction of the image data, acquiring the image processing steps and image processing information, and storing the image processing steps and image processing information in the stage information corresponding to the image processing instruction In the parameter information of at least one key-value pair;
    当所述处理指令为图像语义识别时,获取所述影像数据的语义信息,并将所述语义信息存储到所述图像语义识别对应的阶段信息中的至少一个键值对的参数信息中。When the processing instruction is image semantic recognition, the semantic information of the image data is acquired, and the semantic information is stored in the parameter information of at least one key-value pair in the stage information corresponding to the image semantic recognition.
  5. 根据权利要求4所述的方法,其中,当智能终端中包括至少一个镜头组件时,所述获取拍摄所述影像数据的镜头组件对应的镜头参数和传感器参数,包括以下至少一种:The method according to claim 4, wherein, when the smart terminal includes at least one lens assembly, said acquisition of lens parameters and sensor parameters corresponding to the lens assembly that captures the image data includes at least one of the following:
    根据所述拍摄指令,确定所述拍摄指令对应的镜头组件,所述镜头组件包括镜头和传感器;According to the shooting instruction, determine a lens assembly corresponding to the shooting instruction, where the lens assembly includes a lens and a sensor;
    根据所述镜头,获取镜头参数;Obtaining lens parameters according to the lens;
    根据所述传感器,获取所述传感器参数。According to the sensor, the sensor parameter is acquired.
  6. 根据权利要求4所述的方法,其中,包括以下至少一项:The method according to claim 4, comprising at least one of the following:
    所述拍摄信息包括地理位置信息和/或时间信息;The shooting information includes geographic location information and/or time information;
    所述格式信息包括所述影像数据的长宽信息、编码格式、帧类型、帧号中的至少一项;The format information includes at least one of length and width information, encoding format, frame type, and frame number of the image data;
    所述图像处理步骤和图像处理信息包括裁剪指令、降噪指令、缩放指令、风格化指令中的至少一种。The image processing steps and image processing information include at least one of cropping instructions, noise reduction instructions, scaling instructions, and stylization instructions.
  7. 一种数据处理方法,其中,包括:A data processing method, including:
    获取影像数据的参数信息;Obtain the parameter information of the image data;
    根据所述参数信息,从所述影像数据对应的至少一个数据格式中确定目标数据格式;determining a target data format from at least one data format corresponding to the image data according to the parameter information;
    将所述参数信息写入所述目标数据格式中。Writing the parameter information into the target data format.
  8. 根据权利要求7所述的方法,其中,所述至少一个数据格式用于记录拍摄影像数据时的摄像参数信息、影像数据的基础参数信息、图像处理时的处理参数信息和图像应用时的应用参数信息中的至少一项。The method according to claim 7, wherein the at least one data format is used to record imaging parameter information when shooting image data, basic parameter information of image data, processing parameter information during image processing, and application parameters during image application at least one of the information.
  9. 一种智能终端,其中,包括:存储器、处理器,其中,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1所述的数据处理方法。An intelligent terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the data processing method according to claim 1 is realized.
  10. 一种计算机可读存储介质,其中,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1所述的数据处理方法。A computer-readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the data processing method according to claim 1 is realized.
PCT/CN2021/137245 2021-12-10 2021-12-10 Data processing method, intelligent terminal and storage medium WO2023102934A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/137245 WO2023102934A1 (en) 2021-12-10 2021-12-10 Data processing method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/137245 WO2023102934A1 (en) 2021-12-10 2021-12-10 Data processing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023102934A1 true WO2023102934A1 (en) 2023-06-15

Family

ID=86729539

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137245 WO2023102934A1 (en) 2021-12-10 2021-12-10 Data processing method, intelligent terminal and storage medium

Country Status (1)

Country Link
WO (1) WO2023102934A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006109231A (en) * 2004-10-07 2006-04-20 Matsushita Electric Ind Co Ltd File format conversion device, file format conversion method, and program used for file format conversion device
CN101382951A (en) * 2006-01-18 2009-03-11 奥林巴斯映像株式会社 Image data recording method and image data recording apparatus
CN101472119A (en) * 2007-12-26 2009-07-01 奥林巴斯映像株式会社 Image file creation device and image file creation method
CN101867706A (en) * 2009-04-20 2010-10-20 三洋电机株式会社 The data structure of camera head and image file
CN201674579U (en) * 2010-06-08 2010-12-15 天津三星光电子有限公司 Digital camera with double lenses
CN102289468A (en) * 2011-07-22 2011-12-21 北京航空航天大学 Method for acquiring and recording photo information in camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006109231A (en) * 2004-10-07 2006-04-20 Matsushita Electric Ind Co Ltd File format conversion device, file format conversion method, and program used for file format conversion device
CN101382951A (en) * 2006-01-18 2009-03-11 奥林巴斯映像株式会社 Image data recording method and image data recording apparatus
CN101472119A (en) * 2007-12-26 2009-07-01 奥林巴斯映像株式会社 Image file creation device and image file creation method
CN101867706A (en) * 2009-04-20 2010-10-20 三洋电机株式会社 The data structure of camera head and image file
CN201674579U (en) * 2010-06-08 2010-12-15 天津三星光电子有限公司 Digital camera with double lenses
CN102289468A (en) * 2011-07-22 2011-12-21 北京航空航天大学 Method for acquiring and recording photo information in camera

Similar Documents

Publication Publication Date Title
WO2021213120A1 (en) Screen projection method and apparatus, and electronic device
WO2021104197A1 (en) Object tracking method and electronic device
US11934352B2 (en) Card rendering method and electronic device
WO2021057673A1 (en) Image display method and electronic device
WO2022166765A1 (en) Image processing method, mobile terminal and storage medium
WO2023005060A1 (en) Image capture method, mobile terminal and storage medium
CN114371803B (en) Operation method, intelligent terminal and storage medium
WO2021179804A1 (en) Image processing method, image processing device, storage medium, and electronic apparatus
CN105227850A (en) Enable metadata store subsystem
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN113487705A (en) Image annotation method, terminal and storage medium
CN107743198B (en) Photographing method, terminal and storage medium
WO2024001853A1 (en) Processing method, intelligent terminal and storage medium
WO2023108444A1 (en) Image processing method, intelligent terminal, and storage medium
WO2023102934A1 (en) Data processing method, intelligent terminal and storage medium
WO2023284218A1 (en) Photographing control method, and mobile terminal and storage medium
WO2022252158A1 (en) Photographing method, mobile terminal and readable storage medium
CN113901245A (en) Picture searching method, intelligent terminal and storage medium
CN107566745B (en) Shooting method, terminal and computer readable storage medium
CN114143467A (en) Shooting method based on automatic focusing and zooming, mobile terminal and storage medium
CN113194227A (en) Processing method, mobile terminal and storage medium
WO2022133967A1 (en) Photographing method, and terminal and computer storage medium
CN113727047A (en) Video processing method, mobile terminal and readable storage medium
CN113242368A (en) Camera module, mobile terminal, photographing method and storage medium
WO2023108443A1 (en) Image processing method, smart terminal and storage medium