CN113038004B - Multi-window image previewing method and device, computer equipment and storage medium - Google Patents

Multi-window image previewing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113038004B
CN113038004B CN202110220900.7A CN202110220900A CN113038004B CN 113038004 B CN113038004 B CN 113038004B CN 202110220900 A CN202110220900 A CN 202110220900A CN 113038004 B CN113038004 B CN 113038004B
Authority
CN
China
Prior art keywords
data
preview
splicing
camera
cache queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110220900.7A
Other languages
Chinese (zh)
Other versions
CN113038004A (en
Inventor
朱世兵
李军
苗雨
张新涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202110220900.7A priority Critical patent/CN113038004B/en
Publication of CN113038004A publication Critical patent/CN113038004A/en
Application granted granted Critical
Publication of CN113038004B publication Critical patent/CN113038004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Abstract

The embodiment of the invention provides a method and a device for previewing an image in multiple windows, computer equipment and a storage medium. According to the technical scheme provided by the embodiment of the invention, preview data is acquired; splicing the preview data according to an agreed format to generate first spliced data; the first splicing data is stored in a set cache queue, so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of each path of camera is ensured, and the multi-window preview images are realized.

Description

Multi-window image previewing method and device, computer equipment and storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of image technologies, and in particular, to a method and an apparatus for previewing an image in multiple windows, a computer device, and a storage medium.
[ background of the invention ]
At present, a Camera Application program (Camera APP) in an Android (Android) native system can only preview YUV format data through a standard Application Programming Interface (API), cannot directly preview RAW format data, and can only preview RAW format data by modifying a Graphic (Graphic) module. In addition, the Camera APP needs to be controlled by one Camera instance, only single-window preview can be performed, and if multi-window preview is to be realized, control needs to be performed by different Camera instances, so that the synchronism of data acquisition of each path of Camera cannot be guaranteed.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method, an apparatus, a computer device, and a storage medium for multi-window image preview, which can directly implement preview of RAW format data, and ensure synchronization of data acquisition of each camera, thereby implementing multi-window image preview.
In one aspect, an embodiment of the present invention provides a method for previewing an image in multiple windows, where the method includes:
acquiring preview data;
splicing the preview data according to an agreed format to generate first spliced data;
and storing the first splicing data to a set cache queue so that the camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows.
Optionally, before acquiring the preview data, the method further includes:
and receiving a preview data acquisition request sent by a camera application layer.
Optionally, obtaining preview data, including
Sending a request for acquiring preview data to at least one camera head;
and receiving preview data sent by a camera.
Optionally, the method further comprises:
acquiring auxiliary data;
splicing the preview data and the auxiliary data according to an agreed format to generate second spliced data;
and storing the second splicing data to a set cache queue so that the camera application program can acquire the second splicing data from the cache queue and display preview images generated according to the second splicing data in a plurality of preview windows.
Optionally, storing the first splicing data to a set buffer queue includes:
and storing the first splicing data to a set cache queue through a callback function.
Optionally, the preview data comprises RAW format data or YUV format data
In another aspect, an embodiment of the present invention provides an apparatus for determining an auxiliary device, including:
a first acquisition unit configured to acquire preview data;
the first splicing unit is used for splicing the preview data according to an agreed format to generate first spliced data;
the first storage unit is used for storing the first splicing data to a set cache queue so that the camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in the plurality of preview windows.
Optionally, the apparatus further comprises:
and the receiving unit is used for receiving the preview data acquisition request sent by the camera application layer.
On the other hand, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the multi-window preview image method.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, where the program instructions are loaded and executed by the processor to implement the multi-window preview image method.
In the scheme of the embodiment of the invention, preview data is acquired; splicing the preview data according to an agreed format to generate first spliced data; the first spliced data are stored in the set cache queue so that the camera application program can obtain the first spliced data from the cache queue and display preview images generated according to the first spliced data in the plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of all paths of cameras is ensured, and therefore the multi-window preview images are realized.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for previewing an image in multiple windows according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for previewing an image in multiple windows according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for previewing an image in multiple windows according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for multi-window preview image according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely a relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present invention, the set thresholds should not be limited to these terms. These terms are used only to distinguish the set thresholds from each other. For example, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold, without departing from the scope of embodiments of the present invention.
In an Android native system, a Camera (Camera) Application program (APP) can preview YUV format data through a Callback function (Callback) data stream by a single Camera instance through an Application Programming Interface (API). However, most of the data output by the Camera module is RAW format data, such as: the system comprises a structured light module, a Time-of-Flight (ToF) module and the like, wherein the ToF is an imaging technology, infrared light (laser pulse) which cannot be seen by human eyes is emitted outwards, reflected after encountering an object and reflected to a camera, the Time difference or phase difference from emission to reflection to the camera is calculated, and data is collected to form a group of distance depth data, so that a three-dimensional 3D model is obtained; if preview of RAW format data is required, adaptation and modification of the Graphic module are required, which is very inconvenient. In addition, the Camera APP can only implement single-window preview through one Camera instance, if multi-window preview needs to be implemented, data needs to be acquired by controlling multiple Camera instances, but in a multi-Camera scene, for example: the mobile phone supports a multi-Camera scene, a vehicle-mounted scene needing multiple cameras to transmit data and the like, the control complexity of the Camera App can be increased, and the synchronism of the acquired data of each Camera cannot be guaranteed, so that the image preview effect is poor.
According to the multi-window image previewing method provided by the embodiment of the invention, under the condition that an Android standard API is not violated and an Android basic frame is not modified, a Camera App can autonomously display RAW data previewing, and multi-window previewing can be realized only through one Camera instance.
Fig. 1 is a flowchart of a method for previewing an image in multiple windows according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, obtaining preview data.
And 102, splicing the preview data according to an agreed format to generate first spliced data.
Step 103, storing the first mosaic data to a set cache queue for the camera application program to acquire the first mosaic data from the cache queue and display preview images generated according to the first mosaic data in a plurality of preview windows.
According to the technical scheme provided by the embodiment of the invention, preview data is acquired; splicing the preview data according to an agreed format to generate first spliced data; the first splicing data is stored in a set cache queue, so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of each path of camera is ensured, and the multi-window preview images are realized.
Fig. 2 is a flowchart of another method for previewing an image in multiple windows according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, receiving a request for obtaining preview data sent by a camera application layer.
In the embodiment of the invention, each step is executed by a Camera Hal layer, and the Camera Hal layer is a Camera hardware abstraction layer in an Android architecture.
In the embodiment of the invention, the Camera application layer is Camera App.
In the embodiment of the invention, the Camera application layer sends a request for acquiring preview data to the Camera Hal layer, which indicates that the Camera application layer creates a Camera instance through an open function, and the Camera instance is used for subsequent interaction with a bottom layer.
Step 202, sending a request for obtaining preview data to at least one camera.
In the embodiment of the invention, if the number of the cameras is one, a preview data request is sent to the camera; and if the number of the camera cameras is multiple, sending a preview data request to each camera to acquire preview data.
And step 203, receiving preview data sent by the camera.
In the embodiment of the invention, the sensor of the Camera sends preview data to the Camera Hal layer.
In the embodiment of the invention, the preview data comprises RAW format data or YUV format data. It should be noted that the preview data may also have other formats, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, the YUV format is a format capable of directly displaying images through an Android Graphic module.
In the embodiment of the invention, the RAW format is a format which can not directly display images through an Android Graphic module.
And step 204, splicing the preview data according to an agreed format to generate first spliced data.
In the embodiment of the present invention, the agreed format may be set according to an actual situation, which is not limited in the embodiment of the present invention.
Step 205, storing the first splicing data to a set buffer queue (buffer).
In the embodiment of the invention, the camera application layer creates a data buffer in a RAW format and transmits the buffer to the bottom layer so as to enable the bottom layer to create the corresponding data stream.
In the embodiment of the invention, the first splicing data is stored to the buffer through the callback function. And after the Camera Hal layer acquires the first splicing data, the preview data is transmitted back to the Camera application layer through callback of the Camera Hal layer.
And step 206, the camera application layer acquires the first splicing data from the buffer and displays preview images generated according to the first splicing data in a plurality of preview windows.
In the embodiment of the present invention, the Camera application layer is Camera App, that is: the Camera App acquires first splicing data from the buffer, and analyzes the first splicing data according to an appointed format to generate a preview image; and displaying the preview image through a plurality of preview windows to realize multi-window preview. The preview image can be refreshed and previewed by calling an Open Graphics Library (OpenGL for short).
Further, after the Camera App acquires the first splicing data from the buffer, beautifying the first splicing data through a specified algorithm in an algorithm library to generate processed first splicing data; analyzing the processed first spliced data according to an appointed format to generate a preview image; and displaying the preview image through a plurality of preview windows to realize multi-window preview. The algorithm library comprises a plurality of algorithms, and the algorithms can be selected according to actual conditions, so that the beautification processing is performed on the first spliced data.
It should be noted that the multi-window preview image method shown in fig. 2 can be used in scenes such as vehicle 360-degree view around and structure cursor.
According to the embodiment of the invention, under the condition that an Android standard API is not violated and an Android basic framework is not modified, the Camera App can control the data acquisition of a plurality of cameras through one Camera instance, so that the complexity of the control of the Camera App can be reduced, and the problem of data synchronism in a method for controlling a plurality of Camera instances to acquire data of a plurality of cameras can be solved.
In the technical scheme of the multi-window image previewing method provided by the embodiment of the invention, previewing data is obtained; splicing the preview data according to an agreed format to generate first spliced data; the first splicing data is stored in a set cache queue, so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of each path of camera is ensured, and the multi-window preview images are realized.
Fig. 3 is a flowchart of another method for previewing an image in multiple windows according to an embodiment of the present invention, as shown in fig. 3, the method includes:
step 301, receiving a request for obtaining preview data sent by a camera application layer.
Step 302, sending a request for obtaining preview data to at least one camera.
And 303, receiving the preview data sent by the camera.
In the embodiment of the present invention, steps 301 to 303 are the same as steps 201 to 203, and are not described herein again.
And step 304, acquiring auxiliary data.
In the embodiment of the present invention, the auxiliary data is data for assisting in generating a preview image, and the auxiliary data may be acquired according to actual requirements.
And 305, splicing the preview data and the auxiliary data according to an agreed format to generate second spliced data.
In the embodiment of the present invention, the agreed format may be set according to an actual situation, which is not limited in the embodiment of the present invention.
And step 306, storing the second splicing data to the set buffer.
In the embodiment of the invention, the camera application layer creates a data buffer in the RAW format and transmits the buffer to the bottom layer so as to create the corresponding data stream for the bottom layer.
In the embodiment of the invention, the second splicing data is stored to the buffer through the callback function. And after the Camera Hal layer acquires the second splicing data, the Camera Hal layer transmits the preview data back to the Camera application layer through callback of the Camera Hal function.
And 307, the camera application layer acquires the second splicing data from the buffer and displays preview images generated according to the second splicing data in a plurality of preview windows.
In the embodiment of the present invention, the Camera application layer is Camera App, that is: the Camera App acquires second splicing data from the buffer, and analyzes the second splicing data according to an agreed format to generate a preview image; and displaying the preview image through a plurality of preview windows to realize multi-window preview. The preview image can be refreshed and previewed by calling an Open Graphics Library (OpenGL).
Further, after the Camera App acquires the second splicing data from the buffer, the Camera App performs beautification processing on the second splicing data through a specified algorithm in the algorithm library to generate processed second splicing data; analyzing the processed second splicing data according to an appointed format to generate a preview image; and displaying the preview image through a plurality of preview windows to realize multi-window preview. The algorithm library comprises a plurality of algorithms, and the algorithms can be selected according to actual conditions, so that the beautification processing is performed on the second splicing data.
It should be noted that the multi-window preview image method shown in fig. 3 can be used in scenes such as vehicle 360-degree view around and structure cursor.
According to the embodiment of the invention, under the condition that an Android standard API is not violated and an Android basic framework is not modified, the Camera App can control the data acquisition of a plurality of cameras through one Camera instance, so that the complexity of the control of the Camera App can be reduced, and the problem of data synchronism in a method for controlling a plurality of Camera instances to acquire data of a plurality of cameras can be solved.
In the technical scheme of the multi-window image previewing method provided by the embodiment of the invention, previewing data is obtained; splicing the preview data according to an appointed format to generate first spliced data; the first splicing data is stored in a set cache queue, so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of each path of camera is ensured, and the multi-window preview images are realized.
Fig. 4 is a schematic structural diagram of a multi-window preview image apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the multi-window preview image method, and as shown in fig. 4, the apparatus includes: a first acquisition unit 11, a first stitching unit 12 and a first storage unit 13.
The first acquiring unit 11 is used to acquire preview data. The first obtaining unit 11 may be: a chip, a chip module, or a portion of a chip module.
The first splicing unit 12 is configured to splice the preview data according to an agreed format to generate first spliced data. The first splicing unit 12 may be: a chip, a chip module, or a portion of a chip module.
The first storage unit 13 is configured to store the first mosaic data in a set buffer queue, so that the camera application program obtains the first mosaic data from the buffer queue and displays preview images generated according to the first mosaic data in a plurality of preview windows. The first storage unit 13 may be: a chip, a chip module, or a portion of a chip module.
In the embodiment of the present invention, the apparatus further includes: a receiving unit 14.
The receiving unit 14 is configured to receive a request for obtaining preview data sent by the camera application layer.
In this embodiment of the present invention, the first obtaining unit 11 is specifically configured to send a request for obtaining preview data to at least one camera head; and receiving preview data sent by a camera.
In the embodiment of the present invention, the apparatus further includes: a second acquisition unit 15, a second stitching unit 16 and a second storage unit 17.
The second acquisition unit 15 is used for acquiring assistance data.
The second splicing unit 16 is configured to splice the preview data and the auxiliary data according to an agreed format to generate second spliced data.
The second storage unit 17 is configured to store the second stitching data in a set buffer queue, so that the camera application program obtains the second stitching data from the buffer queue and displays preview images generated according to the second stitching data in a plurality of preview windows.
In this embodiment of the present invention, the first storage unit 13 is specifically configured to store the first splicing data to the set cache queue through a callback function.
In the scheme of the embodiment of the invention, preview data is acquired; splicing the preview data according to an appointed format to generate first spliced data; the first splicing data is stored in a set cache queue, so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows, the preview of RAW format data can be directly realized, the synchronism of data acquisition of each path of camera is ensured, and the multi-window preview images are realized.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device on which the storage medium is located is controlled to execute each step of the above embodiment of the multi-window image preview method, and for specific description, reference may be made to the above embodiment of the multi-window image preview method.
An embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded and executed by the processor to implement the steps of the embodiment of the multi-window image preview method.
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 5, the computer device 30 of this embodiment includes: a processor 31, a memory 32, and a computer program 33 stored in the memory 32 and capable of running on the processor 31, wherein the computer program 33, when executed by the processor 31, implements the method applied to the multi-window preview image in the embodiment, and for avoiding repetition, it is not described herein repeatedly. Alternatively, the computer program is executed by the processor 31 to implement the functions of the models/units applied to the multi-window preview image device in the embodiment, which are not repeated herein to avoid repetition.
The computer device 30 includes, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 5 is merely an example of a computer device 30 and is not intended to limit the computer device 30 and that it may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the computer device 30, such as a hard disk or a memory of the computer device 30. The memory 32 may also be an external storage device of the computer device 30, such as a plug-in hard disk provided on the computer device 30, a Smart Media (SM) Card, a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 32 may also include both internal and external storage units of the computer device 30. The memory 32 is used for storing computer programs and other programs and data required by the computer device. The memory 32 may also be used to temporarily store data that has been output or is to be output.
Each device and product described in the above embodiments includes modules/units, which may be software modules/units, or hardware modules/units, or may be partly software modules/units and partly hardware modules/units. For example, for each device or product of an application or integrated chip, each module/unit included in the device or product may be implemented by hardware such as a circuit, or at least a part of the modules/units may be implemented by a software program, which runs on an integrated processor inside the chip, and the remaining (if any) part of the modules/units may be implemented by hardware such as a circuit; for each device and product corresponding to or integrating a chip module, each module/unit included in the device and product may be implemented by hardware such as a circuit, different modules/units may be located in the same piece (e.g., a chip, a circuit module, etc.) or different components of the chip module, and at least part of/unit may be implemented by a software program, where the software program runs on the rest (if any) of the modules/units of the integrated processor inside the chip module and may be implemented by hardware such as a circuit; for each device and product applied to or integrated in the terminal, the modules/units included in the device and product may all be implemented by hardware such as a circuit, different modules/units may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least part of the modules/units may be implemented by a software program running on a processor integrated inside the terminal, and the rest (if any) part of the modules/units may be implemented by hardware such as a circuit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for multi-window preview of an image, the method comprising:
acquiring preview data of a plurality of cameras under a single camera instance;
splicing the preview data according to an agreed format to generate first spliced data;
and storing the first splicing data to a set cache queue so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows.
2. The method of claim 1, prior to said obtaining preview data for a plurality of cameras at a single camera instance, further comprising:
and receiving a request for acquiring preview data sent by the camera application layer.
3. The method of claim 1, wherein obtaining preview data for multiple cameras at a single camera instance comprises
Sending a request for acquiring preview data to at least one camera head;
and receiving the preview data sent by the camera.
4. The method of claim 1, further comprising:
acquiring auxiliary data;
splicing the preview data and the auxiliary data according to an agreed format to generate second spliced data;
and storing the second splicing data to a set cache queue so that a camera application program can acquire the second splicing data from the cache queue and display preview images generated according to the second splicing data in a plurality of preview windows.
5. The method of claim 1, wherein storing the first splicing data to a configured buffer queue comprises:
and storing the first splicing data to a set cache queue through a callback function.
6. The method of claim 1, wherein the preview data comprises RAW format data or YUV format data.
7. A multi-window preview image apparatus, the apparatus comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring preview data of a plurality of cameras under a single camera instance;
the first splicing unit is used for splicing the preview data according to an appointed format to generate first spliced data;
the first storage unit is used for storing the first splicing data to a set cache queue so that a camera application program can acquire the first splicing data from the cache queue and display preview images generated according to the first splicing data in a plurality of preview windows.
8. The apparatus of claim 7, further comprising:
and the receiving unit is used for receiving the request for acquiring the preview data sent by the camera application layer.
9. A storage medium comprising a stored program, wherein the program when executed controls an apparatus on which the storage medium is located to perform the method of multi-window preview image according to any one of claims 1 to 6.
10. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, wherein the program instructions are loaded and executed by the processor to implement the multi-window preview image method of any of claims 1 to 6.
CN202110220900.7A 2021-02-26 2021-02-26 Multi-window image previewing method and device, computer equipment and storage medium Active CN113038004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110220900.7A CN113038004B (en) 2021-02-26 2021-02-26 Multi-window image previewing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110220900.7A CN113038004B (en) 2021-02-26 2021-02-26 Multi-window image previewing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113038004A CN113038004A (en) 2021-06-25
CN113038004B true CN113038004B (en) 2022-09-23

Family

ID=76462199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110220900.7A Active CN113038004B (en) 2021-02-26 2021-02-26 Multi-window image previewing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113038004B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892976A (en) * 2016-04-29 2016-08-24 广州视睿电子科技有限公司 Method and device for achieving multi-screen interaction
CN106101525A (en) * 2016-05-31 2016-11-09 北京奇虎科技有限公司 Application call dual camera carries out the method and device shot
CN107360400A (en) * 2017-07-27 2017-11-17 上海传英信息技术有限公司 A kind of kinescope method and recording apparatus for smart machine camera
CN108769511A (en) * 2018-05-07 2018-11-06 北京金山安全软件有限公司 Image shooting method and device, electronic equipment and storage medium
CN109587401A (en) * 2019-01-02 2019-04-05 广州市奥威亚电子科技有限公司 The more scene capture realization method and systems of electronic platform
CN109993722A (en) * 2019-04-09 2019-07-09 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111263208A (en) * 2018-11-30 2020-06-09 杭州海康威视数字技术股份有限公司 Picture synthesis method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424218B2 (en) * 2005-07-28 2008-09-09 Microsoft Corporation Real-time preview for panoramic images
KR102187236B1 (en) * 2013-12-17 2020-12-04 삼성전자 주식회사 Preview method of picture taken in camera and electronic device implementing the same
CN106331529A (en) * 2016-10-27 2017-01-11 广东小天才科技有限公司 Image capturing method and apparatus
CN109429037B (en) * 2017-09-01 2021-06-29 杭州海康威视数字技术股份有限公司 Image processing method, device, equipment and system
CN110248098B (en) * 2019-06-28 2021-08-24 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892976A (en) * 2016-04-29 2016-08-24 广州视睿电子科技有限公司 Method and device for achieving multi-screen interaction
CN106101525A (en) * 2016-05-31 2016-11-09 北京奇虎科技有限公司 Application call dual camera carries out the method and device shot
CN107360400A (en) * 2017-07-27 2017-11-17 上海传英信息技术有限公司 A kind of kinescope method and recording apparatus for smart machine camera
CN108769511A (en) * 2018-05-07 2018-11-06 北京金山安全软件有限公司 Image shooting method and device, electronic equipment and storage medium
CN111263208A (en) * 2018-11-30 2020-06-09 杭州海康威视数字技术股份有限公司 Picture synthesis method and device, electronic equipment and storage medium
CN109587401A (en) * 2019-01-02 2019-04-05 广州市奥威亚电子科技有限公司 The more scene capture realization method and systems of electronic platform
CN109993722A (en) * 2019-04-09 2019-07-09 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113038004A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US11972780B2 (en) Cinematic space-time view synthesis for enhanced viewing experiences in computing environments
US10679426B2 (en) Method and apparatus for processing display data
US11048913B2 (en) Focusing method, device and computer apparatus for realizing clear human face
CN112004086A (en) Video data processing method and device
US10943335B2 (en) Hybrid tone mapping for consistent tone reproduction of scenes in camera systems
EP3448020B1 (en) Method and device for three-dimensional presentation of surveillance video
WO2020092025A1 (en) Real time tone mapping of high dynamic range image data at time of playback on a lower dynamic range display
JP2018026064A (en) Image processor, image processing method, system
US11756153B2 (en) Hemisphere cube map projection format in imaging environments
CN112189147A (en) Reduced power operation of time-of-flight cameras
US20130335409A1 (en) Image processing apparatus and image processing method
US11727654B2 (en) Ambient light based mixed reality object rendering
CN113536866A (en) Character tracking display method and electronic equipment
US11032528B2 (en) Gamut mapping architecture and processing for color reproduction in images in digital camera environments
CN114782659A (en) Image processing method, device, equipment and storage medium
CN114358112A (en) Video fusion method, computer program product, client and storage medium
CN113038004B (en) Multi-window image previewing method and device, computer equipment and storage medium
US10650488B2 (en) Apparatus, method, and computer program code for producing composite image
KR20220064711A (en) Method and apparatus for real-time output of user object
CN116962870A (en) Vehicle-mounted shooting data management method and device, electronic equipment and readable storage medium
CN108960130B (en) Intelligent video file processing method and device
US11431872B2 (en) Buffer management for plug-in architectures in computation graph structures
CN112929682B (en) Method, device and system for transparently processing image background and electronic equipment
US20130004036A1 (en) Systems And Methods For Customizing Pregnancy Imagery
NL2025869B1 (en) Video pass-through computing system

Legal Events

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