CN107197159B - Image acquisition method and device for camera, electronic equipment and storage medium - Google Patents
Image acquisition method and device for camera, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN107197159B CN107197159B CN201710524675.XA CN201710524675A CN107197159B CN 107197159 B CN107197159 B CN 107197159B CN 201710524675 A CN201710524675 A CN 201710524675A CN 107197159 B CN107197159 B CN 107197159B
- Authority
- CN
- China
- Prior art keywords
- camera
- image information
- target
- target camera
- associated camera
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000006870 function Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000007 visual effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000004927 fusion Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010191 image analysis Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses an image acquisition method and device of a camera, electronic equipment and a storage medium. The method comprises the following steps: receiving a starting request of a target camera; starting the target camera and at least one associated camera of the target camera; and acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera. The method provided by the invention realizes that the target camera and the associated camera are started by receiving the starting request of the target camera, so that the image information of the plurality of cameras is obtained, the image information of the plurality of cameras is analyzed and processed to determine the target image information of the target camera, and further, the visual field range of the target camera can be conveniently and intelligently expanded.
Description
Technical Field
The present invention relates to electronic device application technologies, and in particular, to a method and an apparatus for acquiring an image of a camera, an electronic device, and a storage medium.
Background
With the continuous development of science and technology, electronic equipment is widely used in various fields in life. For example, in a video conference scene, image information in the current scene is acquired through a camera in the electronic device and is displayed through the display device, so that interaction among conference personnel is facilitated.
However, the single-standard camera has a small viewing angle, and can only acquire image information of a local scene in a current scene, so that the communication effect among conference personnel is affected, and distortion is generated when the wide-angle lens is used for acquiring the image information. Therefore, a mode of controlling the single standard camera to rotate through the mobile platform is generally adopted, or two cameras are arranged, and scene information at different angles is acquired in a mode of controlling the two cameras to switch through preset operation so as to expand the field of view.
However, in the above method, the mode of controlling the rotation of the single-standard camera by the mobile platform can only mechanically acquire image information by the rotation of the single-standard camera, and cannot capture key scene information in the current scene in time, and the mode of switching by the two cameras requires a user to perform switching after judging according to the situation of the conference scene, so that the operation efficiency is low. Thus, both of the above-described methods of expanding the field of view have a problem of low degree of intelligence.
Disclosure of Invention
The invention provides an image acquisition method and device of a camera, electronic equipment and a storage medium, which are used for more intelligently acquiring image information in a larger view field range in a current scene.
In a first aspect, an embodiment of the present invention provides an image obtaining method for a camera, where the method includes:
receiving a starting request of a target camera;
starting the target camera and at least one associated camera of the target camera;
and acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
In a second aspect, an embodiment of the present invention further provides an image obtaining apparatus for a camera, where the apparatus includes:
the starting request receiving module is used for receiving a starting request of the target camera;
the camera opening module is used for opening the target camera and at least one associated camera of the target camera;
and the target image determining module is used for acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the image acquisition method of the camera provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the image acquisition method of the camera provided in any embodiment of the present invention.
The embodiment of the invention receives the starting request of the target camera; starting a target camera and at least one associated camera of the target camera; the method comprises the steps of obtaining image information of a target camera and image information of a related camera, processing the obtained image information according to a preset rule to determine the target image information of the target camera, obtaining the image information of a plurality of cameras through starting the target camera, analyzing the image information of the plurality of cameras to determine the target image information of the target camera, and further conveniently and intelligently expanding the visual field range of the target camera.
Drawings
Fig. 1 is a flowchart of an image obtaining method of a camera according to a first embodiment of the present invention;
fig. 2 is a flowchart of an image obtaining method of a camera according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram relating to a camera architecture in the android system in the second embodiment of the present invention;
fig. 4 is a flowchart of an image obtaining method of a camera in a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image acquisition apparatus of a camera according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an image capturing method for a camera according to an embodiment of the present invention, where the method is applicable to a situation where a field of view of the camera needs to be enlarged, and the method can be executed by an image capturing device of the camera. The method provided by the embodiment specifically comprises the following steps:
and step 110, receiving a starting request of the target camera.
For example, a plurality of cameras are installed on the electronic device, a camera opening option may be set in a control interface of the camera application program, the camera opening option may include one or more cameras among the installed plurality of cameras, and after any one camera is selected from the camera opening options, an opening request of the selected camera may be received.
For example, the default camera opening request may be received after the camera application is started.
And step 120, starting the target camera and at least one associated camera of the target camera.
For example, a control interface of a camera application program may be provided with associated camera setting options, where the associated camera setting options may include cameras in a camera opening option and selectable associated cameras corresponding to each camera, and an associated camera selected by a user from the selectable associated cameras corresponding to each camera is set as an associated camera of the camera.
For example, after the target camera to be turned on is determined, the associated camera of the target camera may be set. If a target camera is selected from the camera opening options, a related camera setting list can be popped up, all installed cameras can be listed in the related camera setting list, and the camera selected by the user in the related camera setting list is set as the related camera of the target camera.
For example, each camera may be provided with a default associated camera, and after receiving an opening request of a target camera, the target camera and the default associated camera of the target camera may be opened.
Therefore, after the starting request of the target camera is received, the target camera and the associated camera of the target camera can be started, the image information of different angles in the current scene can be acquired through the target camera and the associated camera, and the image information in a large view field range can be acquired through the integration of the image information acquired by the target camera and the associated camera.
And step 130, acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
For example, after the image information of the target camera and the image information of the associated camera are obtained, the image information of the target camera and the image information of the associated camera can be fused according to a preset image fusion algorithm, and the fused image information is used as the target image information of the target camera, so that after a starting request of the target camera is received, favorable information in the image information of the target camera and the image information of the associated camera can be extracted to the maximum extent to be used as the target image information of the target camera.
For example, after the image information of the target camera and the image information of the associated camera are acquired, the image information of the target camera and the image information of the associated camera are analyzed and processed respectively through a preset rule, so that better image information in the image information acquired by the multiple cameras is used as the target image information. For example, in a meeting scene, after the image information of any camera is acquired, the image information can be subjected to face recognition, and counting element information such as the number of human faces, the distance between the human faces and the center of the image, the size of the image pixels occupied by the human faces and the like in the image information, adding each element information according to the corresponding weight to obtain a decision value corresponding to the image information, the image information corresponding to the maximum decision value in the image information of the multiple cameras can be used as the target image information of the target camera, so that in a conference scene, after receiving the starting request of the target camera, the target image information of the target camera can be automatically switched between the image information of the target camera and the image information of the associated camera through a preset rule, and the visual field range of the target camera is further expanded, so that conference personnel can conveniently know the dynamic state of a scene in a larger visual field range in real time.
For example, the position information of the sound source can be acquired through the microphone array, for example, the angle of the sound source relative to the microphone array can be acquired, so that the corresponding relationship between the preset angle range and the camera can be stored, after the angle of the sound source relative to the microphone array is acquired, the camera corresponding to the angle can be determined according to the stored corresponding relationship between the preset angle range and the camera, and then after the target camera and the associated camera acquire the image information again, the image information of the camera corresponding to the angle is used as the target image information of the target camera, so that the target image information can be corresponding to the position of the sound source in real time. In a conference scene, the target image information can be corresponding to the image information of the speaker in real time, so that conference personnel can communicate conveniently.
The embodiment receives the starting request of the target camera; starting a target camera and at least one associated camera of the target camera; the method comprises the steps of obtaining image information of a target camera and image information of an associated camera, processing the obtained image information according to preset rules to determine the target image information of the target camera, starting the target camera and the associated camera after receiving a starting request of the target camera, obtaining the image information of a plurality of cameras, analyzing and processing the image information of the plurality of cameras to determine the target image information of the target camera, and further conveniently and intelligently expanding the visual field range of the target camera.
Example two
Fig. 2 is a flowchart of an image obtaining method of a camera according to a second embodiment of the present invention, which is further optimized based on the above embodiments. The method provided by the embodiment specifically comprises the following steps:
and step 210, receiving a starting request of the target camera.
Preferably, a plurality of cameras are installed in the electronic device, and an operating system of the electronic device is an android system.
Fig. 3 is a schematic structural diagram relating to a camera architecture in the android system. Wherein, the framework that relates to the camera in the tall and erect system of ann mainly includes: application layer (Application), Framework layer (Framework), Hardware Abstraction Layer (HAL), Linux Kernel layer (Kernel), and hardware layer (HW). When a certain camera is started or a parameter of a certain camera is set through a camera Application program in an Application layer, the Application layer calls an Application Programming Interface (API) provided by a framework layer, the framework layer calls an interface of a hardware abstraction layer, and the hardware abstraction layer correspondingly calls an interface of a Linux kernel layer, so that the camera on the hardware layer is driven to be started or the camera is set according to the set camera parameter. After the camera acquires the image information, the acquired image information is transmitted to the application layer sequentially through the Linux kernel layer, the hardware abstraction layer and the framework layer, so that the camera application program acquires the image information of the camera.
Preferably, the method provided in this embodiment can be executed at a hardware abstraction layer, and the hardware abstraction layer does not need to modify other layers when executing the method, and can be compatible with any third-party application program.
It should be noted that the method provided in this embodiment may also be implemented in other layers, such as an application layer or a framework layer.
After receiving a starting request of a target camera, simultaneously starting the target camera and at least one associated camera of the target camera so as to obtain image information of different angles in the current scene through a plurality of cameras.
And step 230, distributing corresponding buffer areas for the target camera and the associated cameras.
Preferably, after the target camera and the associated cameras are started, corresponding buffer areas are respectively allocated to the target camera and each associated camera, so that after each camera acquires image information, the image information can be cached in the corresponding buffer areas.
Illustratively, after the number of the images cached in the buffer area corresponding to each camera reaches the preset number of the images, the buffer area corresponding to each camera is cleared, or the buffer area corresponding to each camera is cleared at regular time to ensure that the subsequent image information can be timely stored in the corresponding buffer area.
And step 240, receiving a control instruction of the target camera.
For example, the camera may be controlled in the camera application, for example, parameters of the camera are set, the camera is controlled to start and stop, and the like, and after the camera application performs corresponding setting on the target camera, a corresponding control instruction of the target camera may be received. The parameters of the camera may include parameters such as resolution and frame rate.
And step 250, sending the control instruction to the target camera and the associated camera.
Preferably, after receiving the control instruction of the target camera, the received control instruction is sent to the target camera and the associated camera, so that the target camera and the associated camera are simultaneously controlled through the control instruction of the target camera.
If the received control instruction is a stop instruction, the stop instruction is sent to the target camera and the associated camera, so that the associated camera of the target camera is closed while the target camera is closed.
And step 260, caching the image information of the target camera and the image information of the associated camera into corresponding buffer areas.
When the target camera and the associated camera acquire the image information and return the image information, the returned image information can be received, and the received image information is cached to the corresponding buffer area.
And 270, acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
And step 280, if the image information of the associated camera is the target image information, the thread where the target camera is located acquires the image information of the associated camera from the buffer area of the associated camera for displaying.
When any camera is started, the thread corresponding to the camera is started so as to finish the operations of acquiring, sending or displaying the image information of the camera in the thread.
For example, if the preset rule is that image information obtained by fusing image information of a target camera and image information of a certain associated camera according to a preset fusion algorithm is used as target image information of the target camera, after the thread where the target camera is located obtains the image information of the target camera, the thread where the target camera is located can obtain the image information of the associated camera from a buffer corresponding to the associated camera, fuse the image information of the target camera and the image information of the associated camera according to the preset fusion algorithm, and return the fused target image information to the camera application program, so that the camera application program obtains the target image information and displays the target image information in a display interface of the target camera.
For example, if the image information of a certain camera is determined to be the target image information by a preset rule, the image information of any camera can be obtained from the corresponding buffer area through the image analysis thread after being cached to the corresponding buffer area, and analyzing the image information according to a preset rule, if the image information of a certain associated camera is determined to be the target image information according to the image information analysis result of each camera, since the image information cannot be returned to the application layer through the thread of the associated camera to display the target image information in the display interface of the target camera, therefore, after the thread where the target camera is located acquires the image information of the target camera, the thread where the target camera is located acquires the target image information from the buffer area corresponding to the associated camera, so that the target image information is returned to the camera application program through the thread where the target camera is located; if the image information of the target camera is determined to be the target image information according to the image information analysis result of each camera, the thread where the target camera is located can directly return the acquired image information of the target camera to the camera application program. Thus, the camera application may acquire and display target image information in a display interface of the target camera.
Preferably, the image information of the target camera and the image information of the associated camera can be acquired from the buffer area at intervals of a preset time through the image analysis thread, and the acquired image information is analyzed and processed respectively according to a preset rule, so that the image information is not required to be analyzed and processed after each frame of image information is returned by each camera, and the calculation amount is reduced.
The preset time interval can be set according to actual conditions, and can also be determined according to the frame rate and the preset frame number.
Preferably, after the image information of the target camera is returned to the camera application program, the buffer areas corresponding to the cameras are cleared, so that the image information in the buffer areas is cleared more timely, and the follow-up image information can be guaranteed to be timely stored in the corresponding buffer areas.
In the embodiment, the control instruction is sent to the target camera and the associated camera, so that the target camera and the associated camera are simultaneously controlled through the control instruction of the target camera; the method comprises the steps that corresponding buffer areas are distributed for a target camera and an associated camera, image information of the target camera and image information of the associated camera are obtained from the buffer areas at intervals of preset time, the obtained image information is processed according to preset rules to determine the target image information of the target camera, and better image information is determined to be used as the target image information of the target camera by utilizing the image information of a plurality of cameras; if the image information of the associated camera is the target image information, the thread where the target camera is located acquires the image information of the associated camera from the buffer area of the associated camera for displaying, so that the target image information is returned to the application layer through the thread where the target camera is located, and the target image information is displayed in the display interface of the target camera.
EXAMPLE III
Fig. 4 is a flowchart of an image obtaining method of a camera according to a third embodiment of the present invention, and this embodiment is further optimized based on the foregoing embodiments. The method provided by the embodiment specifically comprises the following steps:
and step 310, receiving a starting request of the target camera.
And step 320, starting the target camera and at least one associated camera of the target camera.
And step 330, transferring the callback function or the preset buffer area address of the thread where the target camera is located to the thread where the associated camera is located.
Firstly, after the thread where the camera is located acquires the image information and caches the image information to the corresponding buffer area, the buffer area address of the image information is transferred to the callback function through the callback function of the application layer, so that the callback function can acquire the image information from the buffer area address, and then the camera application program can acquire the image information and display the image information, or the application layer is provided with a preset buffer area, when the thread where the camera is located acquires the image information, the image information is stored in the preset buffer area and a notification instruction is sent to the camera application program, and after the camera application program receives the notification instruction, the camera application program acquires the image information from the preset buffer area and displays the image information.
After the target camera and at least one associated camera of the target camera are started, a callback function or a preset buffer area address of a thread where the target camera is located is transmitted to the thread where the associated camera is located, so that the thread where the associated camera is located can return image information of the associated camera to a camera application program through the callback function or the preset buffer area address, and the camera application program obtains the image information and displays the image information in a display interface of the target camera.
And 340, distributing corresponding buffer areas for the target camera and the associated cameras.
And step 350, receiving a control instruction of the target camera.
And step 360, sending the control command to the target camera and the associated camera.
And step 370, caching the image information of the target camera and the image information of the associated camera into corresponding buffer areas.
And 380, acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
And 390, if the image information of the associated camera is the target image information, displaying the image information of the associated camera by the thread where the associated camera is located through a callback function or a preset buffer area.
Preferably, if it is determined by the preset rule that the image information of a certain associated camera is the target image information, after the thread in which the associated camera is located acquires the image information again and caches the image information to the corresponding buffer, the buffer address may be transferred to the callback function, so that the callback function may acquire the image information from the buffer, and the camera application may acquire the image information, or after the thread in which the associated camera is located acquires the image information again, the image information may be cached to the preset buffer and a notification instruction is sent to the camera application, and the camera application acquires the image information from the preset buffer address after receiving the notification instruction. Therefore, the camera application program can acquire the target image information and display the target image information in the display interface of the target camera.
Preferably, if it is determined that the image information of the target camera is the target image information according to the preset rule, after the thread in which the target camera is located acquires the image information of the target camera again, the image information of the target camera may be returned to the camera application program through a callback function or a preset buffer area, and the camera application program acquires the target image information and displays the target image information in the display interface of the target camera.
In the embodiment, a callback function or a preset buffer address of a thread where a target camera is located is transmitted to a thread where an associated camera is located; and if the image information of the associated camera is the target image information, displaying the image information of the associated camera by the thread where the associated camera is located through a callback function or a preset buffer area. If the image information of a certain camera is determined to be the target image information, the target image information is returned to the camera application program through a callback function or a preset buffer area of the target camera through the thread where the camera is located, so that the target image information is displayed in a display interface of the target camera after the camera application program acquires the target image information, the switching of the image information of the target camera is conveniently and intelligently achieved, and the visual field range of the target camera is expanded.
Example four
Fig. 5 is a schematic structural diagram of an image obtaining apparatus for a camera according to a fourth embodiment of the present invention, where the apparatus may be used to implement an image obtaining method for a camera according to any embodiment of the present invention, and the apparatus may be composed of software and/or hardware. The device provided by the embodiment comprises: an open request receiving module 410, a camera opening module 420, and a target image determining module 430, wherein,
an opening request receiving module 410, configured to receive an opening request of a target camera;
a camera opening module 420, configured to open the target camera and at least one associated camera of the target camera;
and a target image determining module 430, configured to obtain image information of the target camera and image information of the associated camera, and process the obtained image information according to a preset rule to determine the target image information of the target camera.
In this embodiment, the start request receiving module receives a start request of a target camera, the camera start module starts the target camera and at least one associated camera of the target camera, and the target image determining module obtains image information of the target camera and image information of the associated camera, and processes the obtained image information according to a preset rule to determine target image information of the target camera. The method and the device realize that the target camera and the associated camera are started by receiving the starting request of the target camera, so that the image information of the plurality of cameras is obtained, the image information of the plurality of cameras is analyzed and processed to determine the target image information of the target camera, and the visual field range of the target camera can be conveniently and intelligently expanded.
In the foregoing scheme, optionally, the method further includes:
the control instruction receiving module is used for receiving a control instruction of the target camera;
and the control instruction sending module is used for sending the control instruction to the target camera and the associated camera.
In the foregoing scheme, optionally, the method further includes:
the buffer area distribution module is used for distributing corresponding buffer areas for the target camera and the associated camera;
and the image information caching module is used for caching the image information of the target camera and the image information of the associated camera to corresponding buffer areas.
In the foregoing scheme, optionally, the target image determining module is specifically configured to:
and acquiring the image information of the target camera and the image information of the associated camera from the buffer area at intervals of preset time, and processing the acquired image information according to a preset rule to determine the target image information of the target camera.
In the foregoing scheme, optionally, the method further includes: and the first image information display module is used for acquiring the image information of the associated camera from the buffer area of the associated camera for display if the image information of the associated camera is the target image information.
In the foregoing scheme, optionally, the method further includes: and the information transfer module is used for transferring the callback function or the preset buffer area address of the thread where the target camera is located to the associated camera.
In the foregoing scheme, optionally, the method further includes: and the second image information display module is used for displaying the image information of the associated camera through the callback function or a preset buffer area if the image information of the associated camera is the target image information.
EXAMPLE five
Fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the electronic device may be one or more, and one processor 510 is taken as an example in fig. 6; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6.
The memory 520 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the image capturing method of the camera in any embodiment of the present invention (for example, the activation request receiving module 410, the camera activation module 420, and the target image determining module 430 in the image capturing apparatus of the camera). The processor 510 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 520, that is, implements the operations for the electronic device described above.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input touch information and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 540 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program implements the image capturing method for a camera according to any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method according to any embodiment of the present invention.
It should be noted that, in the embodiment of the image obtaining apparatus for a camera, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The device can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (8)
1. An image acquisition method of a camera is characterized by comprising the following steps:
receiving a starting request of a target camera;
starting the target camera and at least one associated camera of the target camera;
distributing corresponding buffer areas for the target camera and the associated camera;
caching the image information of the target camera and the image information of the associated camera to corresponding buffer areas;
acquiring image information of the target camera and image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera;
and if the image information of the associated camera is target image information, the thread where the target camera is located acquires the image information of the associated camera from the buffer area of the associated camera for displaying.
2. The method of claim 1, wherein after the turning on the target camera and at least one associated camera of the target camera, further comprising:
receiving a control instruction of a target camera;
and sending the control instruction to a target camera and the associated camera.
3. The method of claim 1, wherein the obtaining the image information of the target camera and the image information of the associated camera comprises:
and acquiring the image information of the target camera and the image information of the associated camera from the buffer area at preset time intervals.
4. The method of claim 1, wherein after the turning on a target camera and at least one associated camera of the target camera, comprising:
and transferring a callback function or a preset buffer address of the thread where the target camera is located to the thread where the associated camera is located.
5. The method according to claim 4, wherein after acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera, the method further comprises:
and if the image information of the associated camera is the target image information, displaying the image information of the associated camera by the thread where the associated camera is located through the callback function or the preset buffer area.
6. An image pickup apparatus for a camera, comprising:
the starting request receiving module is used for receiving a starting request of the target camera;
the camera opening module is used for opening the target camera and at least one associated camera of the target camera;
the buffer area distribution module is used for distributing corresponding buffer areas for the target camera and the associated camera;
the image information caching module is used for caching the image information of the target camera and the image information of the associated camera to corresponding buffer areas;
the target image determining module is used for acquiring the image information of the target camera and the image information of the associated camera, and processing the acquired image information according to a preset rule to determine the target image information of the target camera;
and the first image information display module is used for acquiring the image information of the associated camera from the buffer area of the associated camera for display if the image information of the associated camera is the target image information.
7. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the image acquisition method of the camera of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an image acquisition method of a camera head according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524675.XA CN107197159B (en) | 2017-06-30 | 2017-06-30 | Image acquisition method and device for camera, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524675.XA CN107197159B (en) | 2017-06-30 | 2017-06-30 | Image acquisition method and device for camera, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107197159A CN107197159A (en) | 2017-09-22 |
CN107197159B true CN107197159B (en) | 2020-03-10 |
Family
ID=59881039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710524675.XA Active CN107197159B (en) | 2017-06-30 | 2017-06-30 | Image acquisition method and device for camera, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107197159B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107959845B (en) * | 2017-11-13 | 2020-09-08 | 北京小鸟看看科技有限公司 | Image data transmission method and device, client device and head-mounted display equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009040615A1 (en) * | 2007-09-28 | 2009-04-02 | Sony Ericsson Mobile Communications Ab | Method and system for a quick start camera application in a camera and a camera equipped mobile radio terminal |
WO2014088199A1 (en) * | 2012-12-05 | 2014-06-12 | Samsung Electronics Co., Ltd. | Display apparatus with a sensor and camera and control method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101678861B1 (en) * | 2015-07-28 | 2016-11-23 | 엘지전자 주식회사 | Mobile terminal and method for controlling the same |
CN105979148A (en) * | 2016-06-23 | 2016-09-28 | 努比亚技术有限公司 | Panoramic photographing device, system and method |
CN106506968B (en) * | 2016-11-29 | 2019-10-15 | Oppo广东移动通信有限公司 | Control method, control device, electronic device |
-
2017
- 2017-06-30 CN CN201710524675.XA patent/CN107197159B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009040615A1 (en) * | 2007-09-28 | 2009-04-02 | Sony Ericsson Mobile Communications Ab | Method and system for a quick start camera application in a camera and a camera equipped mobile radio terminal |
WO2014088199A1 (en) * | 2012-12-05 | 2014-06-12 | Samsung Electronics Co., Ltd. | Display apparatus with a sensor and camera and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN107197159A (en) | 2017-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2874715C (en) | Dynamic video and sound adjustment in a video conference | |
US9197856B1 (en) | Video conferencing framing preview | |
WO2015142971A1 (en) | Receiver-controlled panoramic view video share | |
CN104272726A (en) | Display image formation device and display image formation method | |
JP6402228B2 (en) | Method and system for providing video data streams to multiple users | |
CN110557603B (en) | Method and device for monitoring moving target and readable storage medium | |
CN114025098B (en) | Image display method, device, electronic equipment and computer readable storage medium | |
CN116934577A (en) | Method, device, equipment and medium for generating style image | |
CN106412432A (en) | Photographing method and mobile terminal | |
WO2019179242A1 (en) | Image processing method and electronic device | |
US9065983B2 (en) | Method and systems for providing video data streams to multiple users | |
CN107197159B (en) | Image acquisition method and device for camera, electronic equipment and storage medium | |
KR102108246B1 (en) | Method and apparatus for providing video in potable device | |
CN117918057A (en) | Display device and device control method | |
JP6299602B2 (en) | Information processing apparatus, information processing method, program, and information processing system | |
WO2019052197A1 (en) | Aircraft parameter setting method and apparatus | |
CN112235510A (en) | Shooting method, shooting device, electronic equipment and medium | |
JP2016096482A (en) | Image processing apparatus, image processing method, and program | |
CN112118414A (en) | Video session method, electronic device, and computer storage medium | |
CN112887620A (en) | Video shooting method and device and electronic equipment | |
US10555012B2 (en) | Method and systems for providing video data streams to multiple users | |
US10033968B2 (en) | Method and systems for providing video data streams to multiple users | |
US20210258503A1 (en) | Systems and methods for tracking a viewing area of a camera device | |
JP2024042352A (en) | Imaging apparatus, method for controlling imaging apparatus, and program | |
CN116916147A (en) | Image processing method, image sending device and electronic equipment |
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 |