CN107360400A - A kind of kinescope method and recording apparatus for smart machine camera - Google Patents
A kind of kinescope method and recording apparatus for smart machine camera Download PDFInfo
- Publication number
- CN107360400A CN107360400A CN201710625228.3A CN201710625228A CN107360400A CN 107360400 A CN107360400 A CN 107360400A CN 201710625228 A CN201710625228 A CN 201710625228A CN 107360400 A CN107360400 A CN 107360400A
- Authority
- CN
- China
- Prior art keywords
- camera
- video
- video data
- smart machine
- stored
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
-
- 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
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
-
- 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/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Abstract
The invention provides a kind of kinescope method and recording apparatus for smart machine camera, it is characterised in that the kinescope method includes:The first camera for starting the smart machine is recorded a video and is stored as the first Video data, is started the second camera of the smart machine and is obtained the second preview screen data of the second camera and store;The current picture of current first camera recorded a video is shown in the viewing area of the smart machine;After a switching command is received, switch to the second camera and recorded a video and be stored as the second Video data, synthesize first Video data and the second preview screen data.It can realize that the camera lens time is shorter and shorter, switching is more and more faster, can build a kind of nervous atmosphere, and the frequent switching of two groups of camera lenses can produce strong visual stimulus etc., and very close to each other between the picture of different lens shootings can realize seamless switching.
Description
Technical field
The present invention relates to smart machine field, more particularly to a kind of kinescope method and video recording for smart machine camera
Device.
Background technology
With scientific and technological constantly development, smart machine oneself through possessing very comprehensive function, simultaneously as videoing skill
Reach its maturity, be increasingly becoming one of focus of smart machine function.The record technology water for the smart machine that currently there are
The flat rank for basically reaching professional equipment, but compared with professional equipment, the portability and ease of use advantages of smart machine are bright
It is aobvious, smart machine oneself through turning into big sharp weapon of user's video recording, in addition, can also will by the wireless communication module of smart machine
Obtained video information of recording a video shares social networks at any time, and the experience that is used interchangeably of user is greatly improved.
The motion of the camera of smart machine equivalent to picture picture frame relative to the external movement of shot subject, and be shot
Main body is all over time and space consecutive variations, is internal motion.If shot with a continuous full length shot, on screen
It is easy to differentiate the direction of motion of shot subject.But shot subject is shot with the mode of cutaway, it is always first complete by one
Whole action is decomposed on space-time, is then reflected by the method for fragment combination connection.So on screen, the motion of main body exists
Hopping sense spatially occurs.If the picture that not ipsilateral is shot is grouped together, the direction of bulk motion is also on screen
Confusion occurs.In order to avoid this confusion, corresponding remedial measure can must be taken in later stage compilation work, it would be desirable to
Enough realize a kind of method of seamless switching camera.
The content of the invention
In order to overcome above-mentioned technological deficiency, it is an object of the invention to provide a kind of video recording for smart machine camera
Method and recording apparatus.
The invention discloses a kind of kinescope method for smart machine camera, it is characterised in that the kinescope method
Including:
The first camera for starting the smart machine is recorded a video and is stored as the first Video data, starts the intelligence
The second camera of equipment simultaneously obtains the second preview screen data of the second camera and stored;
The current picture of current first camera recorded a video is shown in the viewing area of the smart machine
Face;
After a switching command is received, switch to the second camera and recorded a video and be stored as the second video recording number
According to synthesis first Video data and the second preview screen data.
Preferably, the first camera for starting the smart machine is recorded a video and is stored as the first Video data, is started
The second camera of the smart machine simultaneously obtains the second preview screen data of the second camera and stored, including:
By calling corresponding with first camera and second camera control device unlatching described the simultaneously
One camera and the second camera;
When detecting shooting instruction, first camera is controlled to carry out video recording operation;
Obtain the first current picture information of first camera;
The first current picture information is stored as first Video data.
Preferably, the first camera for starting the smart machine is recorded a video and is stored as the first Video data, is started
The second camera of the smart machine simultaneously obtains the second preview screen data of the second camera and stored, including:
The second camera is controlled to obtain the second current picture information of the second camera;
The second current picture information is stored as the second preview screen data.
Preferably, after a switching command is received, switch to the second camera and recorded a video and be stored as second
Video data, first Video data and the second preview screen data are synthesized, including:
After the switching command is received, the second camera is controlled to carry out video recording operation;
Obtain the second current picture information of the second camera;
The second current picture information is stored as second Video data;
First camera is controlled to obtain the first current picture information of first camera;
The first current picture information is stored as the first preview screen data.
Preferably, after a switching command is received, switch to the second camera and recorded a video and be stored as second
Video data, first Video data and the second preview screen data are synthesized, including:
The second preview screen data added to first Video data and are synthesized into first Video data.
The invention also discloses a kind of recording apparatus for smart machine camera, it is characterised in that the video recording dress
Put including:Control module, memory module, synthesis module, wherein,
The control module connects with memory module communication, and the first camera for starting the smart machine enters
Row is recorded a video and is simultaneously stored as the first Video data, and the second camera for starting the smart machine obtains the of the second camera
Two preview screen data simultaneously store;
The control module be additionally operable to show in the viewing area of the smart machine it is current recorded a video described in
The current picture of camera;
The synthesis module connects with control module communication, for after a switching command is received, switching to institute
State second camera to be recorded a video and be stored as the second Video data, synthesize first Video data and drawn with second preview
Face data.
Preferably, the control module, the memory module, including:
The control module is used for by calling and the first camera and second camera is corresponding controls simultaneously
Device processed opens first camera and the second camera;
The control module is used to, when detecting shooting instruction, control first camera to carry out video recording operation;
The memory module is used for the first current picture information for obtaining first camera;
The memory module is used to the first current picture information being stored as first Video data.
Preferably, the control module, the memory module, including:
The control module is used for the second current picture letter for controlling the second camera to obtain the second camera
Breath;
The memory module is used to the second current picture information being stored as the second preview screen data.
Preferably, the control module, the memory module, including:
The control module is used for after the switching command is received, and controls the second camera to carry out video recording operation;
The memory module is used for the second current picture information for obtaining the second camera;
The memory module is used to the second current picture information being stored as second Video data;
The memory module is used for the described first current picture for controlling first camera to obtain first camera
Face information;
The memory module is used to the first current picture information being stored as the first preview screen data.
Preferably, the synthesis module, including:
The synthesis module is used to the second preview screen data being added to first Video data and synthesized
First Video data.
After employing above-mentioned technical proposal, compared with prior art, have the advantages that:
1. can realize that the camera lens time is shorter and shorter, switching is more and more faster, can build a kind of nervous atmosphere, two groups of mirrors
The frequent switching of head can produce strong visual stimulus etc., and very close to each other between the picture of different lens shootings can realize
Seamless switching.
Brief description of the drawings
Fig. 1 is meets in one embodiment of the present invention, the schematic flow sheet of the kinescope method of camera;
Fig. 2 is meets in one embodiment of the present invention, the schematic flow sheet of the step 101 of the kinescope method of camera;
Fig. 3 is meets in one embodiment of the present invention, the schematic flow sheet of the step 101 of the kinescope method of camera;
Fig. 4 is meets in one embodiment of the present invention, the schematic flow sheet of the step 103 of the kinescope method of camera;
Fig. 5 is meets in one embodiment of the present invention, the schematic flow sheet of the kinescope method of camera
Fig. 6 is meets in one embodiment of the present invention, the structural representation of the recording apparatus of camera.
Reference:
10- recording apparatus, 20- control modules, 30- memory modules, 40- synthesis modules:
Embodiment
Advantages of the present invention is expanded on further below in conjunction with accompanying drawing and specific embodiment.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Those skilled in the art of the present technique are appreciated that smart machine used herein above, both including wireless signal receiver
Equipment, it only possesses the equipment of the wireless signal receiver of non-emissive ability, again include receive and transmitting hardware equipment, its
With the reception that two-way communication on bidirectional communication link, can be carried out and the equipment of transmitting hardware.This equipment can include:
Honeycomb or other communication equipments, its have single line display or multi-line display or without multi-line display honeycomb or
Other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can combine language
Sound, data processing, fax and/or its communication ability;(Personal Digital Assistant, individual digital help PDA
Reason), its can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, calendar and/or
GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palmtop computer
Or other equipment, it has and/or the conventional laptop including radio frequency receiver and/or palmtop computer or other equipment.
" equipment " used herein above, " smart machine " they can be portable, can transport, installed in the vehicles (aviation, sea-freight and/
Or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth and/or sky
Between any other position operation." equipment " used herein above, " smart machine " can also be communication equipment, equipment for surfing the net,
Music/video playback equipment, such as can be PDA, MID (Mobile Internet Device, mobile internet device) and/
Or there is the equipment such as mobile phone or intelligent television, the set top box of music/video playing function.
In the description of the invention, it is to be understood that term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear",
The orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on accompanying drawing institutes
The orientation or position relationship shown, it is for only for ease of the description present invention and simplifies description, rather than instruction or the dress for implying meaning
Put or element there must be specific orientation, with specific azimuth configuration and operation, therefore it is not intended that to limit of the invention
System.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Refering to Fig. 1-5, to meet the schematic flow sheet in one embodiment of the present invention, this method includes:
Dual camera can be separately mounted on smart machine viewing area side and with viewing area opposite side two
Individual camera or simultaneously installed in smart machine viewing area opposite side two cameras.
Step 101:The first camera for starting the smart machine is recorded a video and is stored as the first Video data, is started
The second camera of the smart machine simultaneously obtains the second preview screen data of the second camera and stored;
In one embodiment of the present of invention, it can be that user passes through an application that the operation of two cameras is called in triggering simultaneously
Program is realized, can be set a button in the operation interface of the application program, be passed through button triggering pair and open two simultaneously
After the start-up operation of camera or the application program detect while call an external event of two cameras, touch
The start-up operation is sent out, the automatic start-up operation for calling two cameras simultaneously is realized, this embodiment of the present invention is not construed as limiting.
Two cameras are controlled to carry out identical or different behaviour simultaneously furthermore it is possible to be generated through but not limited in the following manner
The instruction of work:
(1) the predetermined record key of imaging program that system carries is pressed:For example, the imaging program of a smart machine carries
Have while operate the function of two cameras, and button CAPTURE is the button shot by two cameras, when detecting use
Family can generate the shooting shot by two cameras and instruct when pressing CAPTURE buttons.
(2) control mode is set to an existing button based on operating system, when in camera application program, passed through
Peace presses existing physical button;It can be generated by two more than 3 seconds for example, setting and pressing volume increase reduction button simultaneously
The shooting instruction that camera is shot, it can be given birth to when detecting user while pressing volume increase reduction button more than 3 seconds
Into the shooting instruction shot by two cameras.
(3) one or more control buttons newly developed in the application, different control functions is set to the control button,
For example, operated by the button to trigger two cameras of control, when detecting that user presses the function of the control button
The shooting shot by two cameras can be generated when being and being shot by two cameras to instruct.
In order to ensure in the operating system of smart machine, it can be ensured that the control of two cameras can be obtained simultaneously, it is excellent
Selection of land, the specific function on smart machine that may be accessed due to application program can be shown during application program is started or
Information, and ask the user whether to allow the application program to access specific function or information on smart machine, wherein, when the application
The specific function or information that program will obtain be need obtain operating system in authority when, once detect user allow should
During with the operation of routine access some authority, the application program, which just needs to obtain to authorize, can just call the permission group for allowing to access
In any one authority, in addition, some permission group accessed for the application program that has allowed as user, without inquiring again
Whether user allows the renewal of each authority in the permission group, but rank and use based on operating system to rights management
Rank management of the family to the authority is not in the case of being good at very much, if being required for detecting whether application program possesses calling every time
If the authority of each camera, then the application program will increase the difficulty used for a user, therefore can be by pre-
The authority being controlled to each camera is first added inside the application program, shooting photo is realized and shoots the behaviour of video
Make.
In one embodiment of the invention, the function of two cameras can be controlled simultaneously by following Code obtaining:
Add the authority of camera:
<uses-permission android:Name=" android.permission.INTERNET "/>
<uses-feature android:Name=" android.hardware.camera "/>
<uses-permission android:Name=" android.permission.WRITE_EXTERNAL_
STORAGE"/>
<uses-permission android:Name=" android.permission.RECORD_AUDIO "/>
<uses-permission android:Name=" android.permission.ACCESS_FINE_
LOCATION"/>
<uses-permission android:Name=" android.permission.STORAGE "/>
<uses-permission android:Name=" android.permission.CAMERA "/>
<uses-feature android:Name=" android.hardware.microphone "/>
For by a mounted program, whether detection application program, which possesses, is called each camera
Authority the step of include:Inquired about in preset permissions list corresponding with application program, whether to detect application program
Possesses the authority for calling each camera.
It should be noted that if the application program of detection is the application program of oneself installation, at the beginning of the application program
Oneself inquired whether user allows the application program to obtain the authority for calling the function related to camera when beginning to install, and was installing
During the application program, the function related to camera is called when the permission application program for detecting user's input obtains
During the confirmation of authority, the application program is recorded in preset permissions list corresponding with the application program and possesses each shooting of calling
Head authority, therefore, when whether subsequent detection application program possesses the authority for calling each camera, can with using journey
Sequence is inquired about in preset permissions list accordingly, to determine whether application program has each authority for calling each camera.
By calling control device corresponding with two cameras to open two cameras simultaneously operate simultaneously, including
By calling interface corresponding with two cameras to open two cameras simultaneously;When detecting shooting instruction, by this
Control device controls two cameras to carry out each identical or different operation, specifically, while controls two cameras
Perform shooting operation either as described in the embodiment, the first camera carries out video recording operation, and second camera is obtained simultaneously
Current picture information and the operation for saving as preview data.
For example, in the Android operation system of smart machine, first, the Intent of definition application.Intent is
The tie mutually communicated between different components, encapsulate the condition communicated between different components.Intent is defined as one in itself
Individual classification, one purpose of an Intent object representation or expectation, describe its desired service or act, be relevant with action
Data etc..
After the request of communication is received, content provider is activated.And other three kinds of component Activity, service and wide
Receiver is broadcast to be activated by a kind of asynchronous message for being called Intent.Intent is Intent pair of an in store message content
As.For Activity and service for, it specify request action name and as operation object data URI with
Some other information.Such as it can carry the request to an Activity, it is allowed to display for a user a pictures, or
Person allows user to edit some texts.And for radio receiver, Intent objects specify the behavior of statement.Such as it
Interested onomatopoeia, bright photographing button can be pressed to all.
Android then according to the narration of this Intent object, is responsible for pairing, the component of matching is found out, then by Intent
Object passes to found component.In addition, Intent can be not only used for the calling of the component between application program, can also
For the interaction between the Activity and Service inside application program.Therefore, can using Intent as different components it
Between the medium that communicates, to provide the relevant information of the component mutually called.It follows that definition application can be passed through
The component that Intent allows the application program related to camera is communicated, and the behaviour of two cameras of complete call
Make.Then, corresponding Action is implemented by IntentFilter corresponding with the Intent of definition, to open two shootings
Head.Finally, when detecting that the shooting shot by two cameras instructs, while two cameras are controlled to perform shooting
Operation.
Step 102:Current first camera recorded a video is shown in the viewing area of the smart machine
Work as
Preceding picture;
After by calling two cameras of interface unlatching corresponding with two cameras simultaneously, in the aobvious of smart machine
Show the current picture that camera shot is shown on region, alternatively, each camera is found a view accordingly
Interface carries out Display on the same screen.
Two cameras are shot to obtained image information simultaneously to be stored respectively, in one embodiment of the present of invention,
The pattern for employing for preview and video stream while obtaining and being respectively processed.
Specifically, when controlling two cameras simultaneously, first camera performs video recording operation, and second camera obtains
The preview video stream of the image of current picture.
The camera first thing feelings for opening smart machine are exactly that preview is found a view preview action, specifically, from intelligence
The interface analysis of camera rises in the operating system of equipment.All applications for possessing camera function, it will be real in preview
Existing data back interface, and realize that its surface caching is created, changed, destroying three functions, while state that is used for a preview
The drawing surface of window.The surface buffer area of camera preview is there is provision of, the interface for the camera that system carries is to pass through
The preview region of camera is set inside the change method of surface caching, so that the preview preview data that bottom obtains constantly are thrown
It is delivered in this drawing surface buffer area.
After setting above parameter, it is possible to call acquisition method for previewing to carry out preview of finding a view, the acquisition method for previewing obtains
Taking preview preview data is down called from level to level by way of being laminated and calling, finally to the service end of camera.
The framework of its process camera application, camera client and the interface end of camera service end hardware abstraction layer
By the request for handling preview preview data and enter the hardware abstraction layer.
Specifically, preview message is transmitted before this to hardware abstraction layer, is then performed preview and then is gone nearby hard
Part level of abstraction calls, and is endlessly gone data delivery to the caching of surface buffer area by call back function, because preview
The data of preview data are bigger, so data, which will not carry, catches upper strata, but directly two buffer areas it
Between replicate, one be bottom gathered data buffer area, another is the surface buffer area for display.
The call back function of preview preview data, specifically, first in camera client and service end successful connection
When one call back function camera will be set, camera client after camera service end successful connection with that will generate one
Individual camera client returns, and in the constructed fuction of camera client, can set one or more time to camera
Letter of transfer number, it is used to handle for returning to bottom data.
And the information of the shooting is stored respectively in predetermined buffer area corresponding with each camera, at the same time,
The camera started simultaneously can also be obtained preview screen data flow and Video data stream stores simultaneously, and in the first camera
Video process in, the first preview screen obtained when first camera is recorded a video is shown in the viewing area of smart machine,
The first preview screen that the first camera can also be obtained, the second preview screen obtained with second camera is simultaneously in intelligence
The viewing area of equipment shows that the mode of display, which can use, to be included:Split screen or full frame alternately display.It should be noted that can
So that the viewing area of smart machine is divided into upper and lower or left and right two pieces of viewing areas according to predetermined ratio, first is taken the photograph
As the first preview screen that head obtains, the second preview screen obtained with second camera is carried out in two pieces of viewing areas respectively
Split screen display available.
Step 103:After a switching command is received, switch to the second camera and recorded a video and be stored as second
Video data, synthesize first Video data and the second preview screen data.
After a switching command is received, the effect of the instruction is to switch to second camera from the video recording of the first camera
Video recording, and the second Video data that the second camera is obtained is added to the first Video data of first camera acquisition
Synthesized afterwards, and continue to continue to record a video on the Video data after the synthesis, that is, in the video recording of synthesis first
After data and the second Video data, the data after this is synthesized carry out storage processing of recording a video as the second Video data, also,
The first Video data obtained to first camera before, the data for the second preview screen that the second camera obtains are carried out
Processing, the data for the second preview screen that the second camera is obtained are added to the first Video data that the first camera obtains
Afterwards, it can so avoid in the video switched after synthesis can be caused during camera video recording that to have unrecorded data to cause black
Screen.
Preferably, two cameras are shot to the step of obtained image information carries out synthesis processing simultaneously to be included:First,
By two cameras shoot the first Video data got simultaneously and the second Video data store respectively to each camera phase
In the buffer area answered;Then, the first Video data stored in buffer area and the second Video data are subjected to synthesis processing.
Specifically, two cameras can be shot to the first Video data got and the second Video data difference simultaneously
Store into buffer area corresponding with each camera;Then, by the first Video data and the second Video data according to predetermined rule
Operation is then overlapped, while the data of the second preview screen are added between the first Video data and the second Video data.
Certainly, except above-mentioned simple overlap-add operation mode, the first Video data and the second record can also be carried out by certain algorithm
As the synthesis of data is handled:Analysis, extraction, rim detection and the processing skill of comprehensive first Video data and the second Video data
Art, the first Video data and the fusion of the second Video data are turned into by new video information by certain algorithm.
Describe to realize the smart machine of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
In the description of the invention, unless otherwise prescribed with limit, it is necessary to explanation, term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be mechanical connection or electrical connection or the connection of two element internals, can
To be to be joined directly together, can also be indirectly connected by intermediary, for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term.
Refering to Fig. 6, to meet apparatus of the present invention, can be realized by a recording apparatus 10, in the device, including:10-
Recording apparatus, 20- control modules, 30- memory modules, 40- synthesis modules.
Control module 20:
In one embodiment of the present of invention, it can be that user passes through an application that the operation of two cameras is called in triggering simultaneously
Program is realized, can be set a button in the operation interface of the application program, be passed through button triggering pair and open two simultaneously
After the start-up operation of camera or the application program detect while call an external event of two cameras, touch
The start-up operation is sent out, the automatic start-up operation for calling two cameras simultaneously is realized, this embodiment of the present invention is not construed as limiting.
Two cameras are controlled to carry out identical or different behaviour simultaneously furthermore it is possible to be generated through but not limited in the following manner
The instruction of work:
(1) the predetermined record key of imaging program that system carries is pressed:For example, the imaging program of a smart machine carries
Have while operate the function of two cameras, and button CAPTURE is the button shot by two cameras, when detecting use
Family can generate the shooting shot by two cameras and instruct when pressing CAPTURE buttons.
(2) control mode is set to an existing button based on operating system, when in camera application program, passed through
Peace presses existing physical button;It can be generated by two more than 3 seconds for example, setting and pressing volume increase reduction button simultaneously
The shooting instruction that camera is shot, it can be given birth to when detecting user while pressing volume increase reduction button more than 3 seconds
Into the shooting instruction shot by two cameras.
(3) one or more control buttons newly developed in the application, different control functions is set to the control button,
For example, operated by the button to trigger two cameras of control, when detecting that user presses the function of the control button
The shooting shot by two cameras can be generated when being and being shot by two cameras to instruct.
In order to ensure in the operating system of smart machine, it can be ensured that the control of two cameras can be obtained simultaneously, it is excellent
Selection of land, the specific function on smart machine that may be accessed due to application program can be shown during application program is started or
Information, and ask the user whether to allow the application program to access specific function or information on smart machine, wherein, when the application
The specific function or information that program will obtain be need obtain operating system in authority when, once detect user allow should
During with the operation of routine access some authority, the application program, which just needs to obtain to authorize, can just call the permission group for allowing to access
In any one authority, in addition, some permission group accessed for the application program that has allowed as user, without inquiring again
Whether user allows the renewal of each authority in the permission group, but rank and use based on operating system to rights management
Rank management of the family to the authority is not in the case of being good at very much, if being required for detecting whether application program possesses calling every time
If the authority of each camera, then the application program will increase the difficulty used for a user, therefore can be by pre-
The authority being controlled to each camera is first added inside the application program, shooting photo is realized and shoots the behaviour of video
Make.
For by a mounted program, whether detection application program, which possesses, is called each camera
Authority the step of include:Inquired about in preset permissions list corresponding with application program, whether to detect application program
Possesses the authority for calling each camera.
It should be noted that if the application program of detection is the application program of oneself installation, at the beginning of the application program
Oneself inquired whether user allows the application program to obtain the authority for calling the function related to camera when beginning to install, and was installing
During the application program, the function related to camera is called when the permission application program for detecting user's input obtains
During the confirmation of authority, the application program is recorded in preset permissions list corresponding with the application program and possesses each shooting of calling
Head authority, therefore, when whether subsequent detection application program possesses the authority for calling each camera, can with using journey
Sequence is inquired about in preset permissions list accordingly, to determine whether application program has each authority for calling each camera.
By calling control device corresponding with two cameras to open two cameras simultaneously operate simultaneously, including
By calling interface corresponding with two cameras to open two cameras simultaneously;When detecting shooting instruction, by this
Control device controls two cameras to carry out each identical or different operation, specifically, while controls two cameras
Perform shooting operation either as described in the embodiment, the first camera carries out video recording operation, and second camera is obtained simultaneously
Current picture information and the operation for saving as preview data.
Memory module 30:
Two cameras are shot to obtained image information simultaneously to be stored respectively, in one embodiment of the present of invention,
The pattern for employing for preview and video stream while obtaining and being respectively processed.
Specifically, when controlling two cameras simultaneously, first camera performs video recording operation, and second camera obtains
The preview video stream of the image of current picture.
The camera first thing feelings for opening smart machine are exactly that preview is found a view preview action, specifically, from intelligence
The interface analysis of camera rises in the operating system of equipment.All applications for possessing camera function, it will be real in preview
Existing data back interface, and realize that its surface caching is created, changed, destroying three functions, while state that is used for a preview
The drawing surface of window.The surface buffer area of camera preview is there is provision of, the interface for the camera that system carries is to pass through
The preview region of camera is set inside the change method of surface caching, so that the preview preview data that bottom obtains constantly are thrown
It is delivered in this drawing surface buffer area.
After setting above parameter, it is possible to call acquisition method for previewing to carry out preview of finding a view, the acquisition method for previewing obtains
Taking preview preview data is down called from level to level by way of being laminated and calling, finally to the service end of camera.
The framework of its process camera application, camera client and the interface end of camera service end hardware abstraction layer
By the request for handling preview preview data and enter the hardware abstraction layer.
Specifically, preview message is transmitted before this to hardware abstraction layer, is then performed preview and then is gone nearby hard
Part level of abstraction calls, and is endlessly gone data delivery to the caching of surface buffer area by call back function, because preview
The data of preview data are bigger, so data, which will not carry, catches upper strata, but directly two buffer areas it
Between replicate, one be bottom gathered data buffer area, another is the surface buffer area for display.
The call back function of preview preview data, specifically, first in camera client and service end successful connection
When one call back function camera will be set, camera client after camera service end successful connection with that will generate one
Individual camera client returns, and in the constructed fuction of camera client, can set one or more time to camera
Letter of transfer number, it is used to handle for returning to bottom data.
And the information of the shooting is stored respectively in predetermined buffer area corresponding with each camera, at the same time,
The camera started simultaneously can also be obtained preview screen data flow and Video data stream stores simultaneously, and in the first camera
Video process in, the first preview screen obtained when first camera is recorded a video is shown in the viewing area of smart machine,
The first preview screen that the first camera can also be obtained, the second preview screen obtained with second camera is simultaneously in intelligence
The viewing area of equipment shows that the mode of display, which can use, to be included:Split screen or full frame alternately display.It should be noted that can
So that the viewing area of smart machine is divided into upper and lower or left and right two pieces of viewing areas according to predetermined ratio, first is taken the photograph
As the first preview screen that head obtains, the second preview screen obtained with second camera is carried out in two pieces of viewing areas respectively
Split screen display available.
Synthesis module 40:
After a switching command is received, the effect of the instruction is to switch to second camera from the video recording of the first camera
Video recording, and the second Video data that the second camera is obtained is added to the first Video data of first camera acquisition
Synthesized afterwards, and continue to continue to record a video on the Video data after the synthesis, that is, in the video recording of synthesis first
After data and the second Video data, the data after this is synthesized carry out storage processing of recording a video as the second Video data, also,
The first Video data obtained to first camera before, the data for the second preview screen that the second camera obtains are carried out
Processing, the data for the second preview screen that the second camera is obtained are added to the first Video data that the first camera obtains
Afterwards, it can so avoid in the video switched after synthesis can be caused during camera video recording that to have unrecorded data to cause black
Screen.
Preferably, two cameras are shot to the step of obtained image information carries out synthesis processing simultaneously to be included:First,
By two cameras shoot the first Video data got simultaneously and the second Video data store respectively to each camera phase
In the buffer area answered;Then, the first Video data stored in buffer area and the second Video data are subjected to synthesis processing.
Specifically, two cameras can be shot to the first Video data got and the second Video data difference simultaneously
Store into buffer area corresponding with each camera;Then, by the first Video data and the second Video data according to predetermined rule
Operation is then overlapped, while the data of the second preview screen are added between the first Video data and the second Video data.
Certainly, except above-mentioned simple overlap-add operation mode, the first Video data and the second record can also be carried out by certain algorithm
As the synthesis of data is handled:Analysis, extraction, rim detection and the processing skill of comprehensive first Video data and the second Video data
Art, the first Video data and the fusion of the second Video data are turned into by new video information by certain algorithm.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, it is stored with computer and can perform
Instruction, above-mentioned computer-readable recording medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.It is above-mentioned
Computer executable instructions be used to allowing computer or similar arithmetic unit to complete above-mentioned to be used for smart machine camera
Kinescope method in various operations.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing in operation described herein
One or more equipment.These equipment can specially be designed and manufactured for required purpose, or can also be included general
Oneself in computer knows equipment.These equipment have the computer program being stored in it, and these computer programs are optionally
Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in
Suitable for storage e-command and lotus root is linked in any kind of medium of bus respectively, the computer-readable medium is included but not
It is limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), and ROM (Read-Only Memory, only
Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable
Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable
Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light card
Piece.It is, computer-readable recording medium includes storing or transmitting any Jie of information in the form of it can read by equipment (for example, computer)
Matter.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
It should be noted that embodiments of the invention have preferable implementation, and not the present invention is made any type of
Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective
Embodiment, as long as without departing from the content of technical solution of the present invention, above example is made according to technical spirit of the invention
Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.
Claims (10)
1. a kind of kinescope method for smart machine camera, it is characterised in that the kinescope method includes:
The first camera for starting the smart machine is recorded a video and is stored as the first Video data, starts the smart machine
Second camera and obtain the second preview screen data of the second camera and store;
The current picture of current first camera recorded a video is shown in the viewing area of the smart machine;
After a switching command is received, switch to the second camera and recorded a video and be stored as the second Video data, close
Into first Video data and the second preview screen data.
2. kinescope method as claimed in claim 1, it is characterised in that the first camera for starting the smart machine is recorded
Picture is simultaneously stored as the first Video data, starts the second camera of the smart machine and obtains the second of the second camera
Preview screen data simultaneously store, including:
Taken the photograph by calling control device corresponding with first camera and the second camera to open described first simultaneously
As head and the second camera;
When detecting shooting instruction, first camera is controlled to carry out video recording operation;
Obtain the first current picture information of first camera;
The first current picture information is stored as first Video data.
3. kinescope method as claimed in claim 1, it is characterised in that the first camera for starting the smart machine is recorded
Picture is simultaneously stored as the first Video data, starts the second camera of the smart machine and obtains the second of the second camera
Preview screen data simultaneously store, including:
The second camera is controlled to obtain the second current picture information of the second camera;
The second current picture information is stored as the second preview screen data.
4. kinescope method as claimed in claim 1 a, it is characterised in that after switching command is received, switch to described
Two cameras are recorded a video and are stored as the second Video data, synthesize first Video data and the second preview screen number
According to, including:
After the switching command is received, the second camera is controlled to carry out video recording operation;
Obtain the second current picture information of the second camera;
The second current picture information is stored as second Video data;
First camera is controlled to obtain the first current picture information of first camera;
The first current picture information is stored as the first preview screen data.
5. kinescope method as claimed in claim 1 a, it is characterised in that after switching command is received, switch to described
Two cameras are recorded a video and are stored as the second Video data, synthesize first Video data and the second preview screen number
According to, including:
The second preview screen data added to first Video data and are synthesized into first Video data.
6. a kind of recording apparatus for smart machine camera, it is characterised in that the recording apparatus includes:Control module,
Memory module, synthesis module, wherein,
The control module is connected with memory module communication, and the first camera for starting the smart machine is recorded
Picture is simultaneously stored as the first Video data, and start the second camera acquisition second camera of the smart machine second is pre-
Look at and picture data and store;
The control module is additionally operable to show the current shooting recorded a video in the viewing area of the smart machine
The current picture of head;
The communication of the synthesis module and the control module connects, for after a switching command is received, switching to described the
Two cameras are recorded a video and are stored as the second Video data, synthesize first Video data and the second preview screen number
According to.
7. recording apparatus as claimed in claim 6, it is characterised in that the control module, the memory module, including:
The control module is used to control dress by the way that calling is corresponding with first camera and the second camera simultaneously
Put and open first camera and the second camera;
The control module is used to, when detecting shooting instruction, control first camera to carry out video recording operation;
The memory module is used for the first current picture information for obtaining first camera;
The memory module is used to the first current picture information being stored as first Video data.
8. recording apparatus as claimed in claim 6, it is characterised in that the control module, the memory module, including:
The control module is used for the second current picture information for controlling the second camera to obtain the second camera;
The memory module is used to the second current picture information being stored as the second preview screen data.
9. recording apparatus as claimed in claim 6, it is characterised in that the control module, the memory module, including:
The control module is used for after the switching command is received, and controls the second camera to carry out video recording operation;
The memory module is used for the second current picture information for obtaining the second camera;
The memory module is used to the second current picture information being stored as second Video data;
The memory module is used for first current picture letter for controlling first camera to obtain first camera
Breath;
The memory module is used to the first current picture information being stored as the first preview screen data.
10. recording apparatus as claimed in claim 6, it is characterised in that the synthesis module, including:
The synthesis module is used to the second preview screen data being added to first Video data and synthesized described
First Video data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625228.3A CN107360400B (en) | 2017-07-27 | 2017-07-27 | Video recording method and video recording device for intelligent equipment camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625228.3A CN107360400B (en) | 2017-07-27 | 2017-07-27 | Video recording method and video recording device for intelligent equipment camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107360400A true CN107360400A (en) | 2017-11-17 |
CN107360400B CN107360400B (en) | 2021-05-28 |
Family
ID=60285123
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710625228.3A Active CN107360400B (en) | 2017-07-27 | 2017-07-27 | Video recording method and video recording device for intelligent equipment camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107360400B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200341A (en) * | 2018-01-15 | 2018-06-22 | 青岛海信移动通信技术股份有限公司 | Seamless handover method, device and the terminal device of camera |
CN108600554A (en) * | 2018-05-22 | 2018-09-28 | 林间 | A kind of client is taken pictures the method for obtaining information |
CN113038004A (en) * | 2021-02-26 | 2021-06-25 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
CN114584686A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Video shooting method and electronic equipment |
CN114615423A (en) * | 2019-09-12 | 2022-06-10 | 华为技术有限公司 | Method and equipment for processing callback stream |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN105187711A (en) * | 2014-03-24 | 2015-12-23 | 努比亚技术有限公司 | Mobile terminal and photographing method thereof |
CN106165430A (en) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | Net cast method and device |
JP2017011657A (en) * | 2015-06-26 | 2017-01-12 | キヤノン株式会社 | Imaging device |
CN106375706A (en) * | 2015-07-22 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Method and apparatus for velocity measurement of moving object by use of double pick-up heads, and terminal |
CN106657774A (en) * | 2016-11-25 | 2017-05-10 | 杭州联络互动信息科技股份有限公司 | Method and device for recording video |
-
2017
- 2017-07-27 CN CN201710625228.3A patent/CN107360400B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024272A (en) * | 2012-12-14 | 2013-04-03 | 广东欧珀移动通信有限公司 | Double camera control device, method and system of mobile terminal and mobile terminal |
CN105187711A (en) * | 2014-03-24 | 2015-12-23 | 努比亚技术有限公司 | Mobile terminal and photographing method thereof |
JP2017011657A (en) * | 2015-06-26 | 2017-01-12 | キヤノン株式会社 | Imaging device |
CN106375706A (en) * | 2015-07-22 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Method and apparatus for velocity measurement of moving object by use of double pick-up heads, and terminal |
CN106165430A (en) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | Net cast method and device |
CN106657774A (en) * | 2016-11-25 | 2017-05-10 | 杭州联络互动信息科技股份有限公司 | Method and device for recording video |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200341A (en) * | 2018-01-15 | 2018-06-22 | 青岛海信移动通信技术股份有限公司 | Seamless handover method, device and the terminal device of camera |
CN108600554A (en) * | 2018-05-22 | 2018-09-28 | 林间 | A kind of client is taken pictures the method for obtaining information |
CN114615423A (en) * | 2019-09-12 | 2022-06-10 | 华为技术有限公司 | Method and equipment for processing callback stream |
EP4020966A4 (en) * | 2019-09-12 | 2022-10-26 | Huawei Technologies Co., Ltd. | Callback stream processing method and device |
JP2022547572A (en) * | 2019-09-12 | 2022-11-14 | 華為技術有限公司 | callback stream processing method and device |
US11849213B2 (en) | 2019-09-12 | 2023-12-19 | Huawei Technologies Co., Ltd. | Parallel preview stream and callback stream processing method and device |
JP7408784B2 (en) | 2019-09-12 | 2024-01-05 | 華為技術有限公司 | Callback stream processing methods and devices |
CN114584686A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Video shooting method and electronic equipment |
CN114584686B (en) * | 2020-11-30 | 2023-11-14 | 华为技术有限公司 | Video shooting method and electronic equipment |
CN113038004A (en) * | 2021-02-26 | 2021-06-25 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
CN113038004B (en) * | 2021-02-26 | 2022-09-23 | 展讯通信(天津)有限公司 | Multi-window image previewing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107360400B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107360400A (en) | A kind of kinescope method and recording apparatus for smart machine camera | |
US11696021B2 (en) | Video recording device and camera function control program | |
KR101667736B1 (en) | Mobile terminal and method for controlling the same | |
CN101310521B (en) | Remote control image captioning device and method | |
KR102063768B1 (en) | Mobile terminal and control method for the mobile terminal | |
CN101989296B (en) | Image search device, method, and program | |
US9483501B2 (en) | Mobile terminal and a method of controlling the mobile terminal | |
JPH10243273A (en) | Image display method for digital camera | |
KR20170112497A (en) | Mobile terminal and method for controlling the same | |
KR20170131101A (en) | Mobile terminal and method for controlling the same | |
KR100726258B1 (en) | Method for producing digital images using photographic files and phonetic files in a mobile device | |
WO2021135678A1 (en) | Editing template generating method and apparatus, electronic device, and storage medium | |
KR20170029329A (en) | Mobile terminal and method for controlling the same | |
KR20170029837A (en) | Mobile terminal and method for controlling the same | |
KR102083597B1 (en) | Mobile terminal and method for controlling the same | |
KR101684814B1 (en) | Method, apparatus, program and recording medium for accessing wi-fi network | |
JP2009141489A (en) | Electronic equipment | |
KR20180092621A (en) | Terminal and method for controlling the same | |
CN103002123A (en) | Mobile terminal and method of displaying information therein | |
CN109922362A (en) | Key response method, apparatus and storage medium | |
KR20170010485A (en) | Terminal device and controlling method thereof | |
CN100418355C (en) | Camera having transmission function, mobile telephone device, and image data acquiring/transmitting program | |
JP2021015493A (en) | Communication terminal, method for controlling communication terminal, and communication system | |
KR20130010590A (en) | Electronic device and the operating method thereof | |
CN113490010A (en) | Interaction method, device and equipment based on live video and storage medium |
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 |