CN109698907A - Share method, apparatus, storage medium and the terminal in camera channel - Google Patents

Share method, apparatus, storage medium and the terminal in camera channel Download PDF

Info

Publication number
CN109698907A
CN109698907A CN201811640429.1A CN201811640429A CN109698907A CN 109698907 A CN109698907 A CN 109698907A CN 201811640429 A CN201811640429 A CN 201811640429A CN 109698907 A CN109698907 A CN 109698907A
Authority
CN
China
Prior art keywords
function
camera
camera channel
application
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811640429.1A
Other languages
Chinese (zh)
Inventor
郭晓林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN EASTAEON TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN EASTAEON TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN EASTAEON TECHNOLOGY Co Ltd filed Critical SHENZHEN EASTAEON TECHNOLOGY Co Ltd
Priority to CN201811640429.1A priority Critical patent/CN109698907A/en
Publication of CN109698907A publication Critical patent/CN109698907A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present invention provides a kind of method in shared camera channel, applied to terminal, the terminal includes an at least camera, the terminal includes sharing first function and the second function in a camera channel, it the described method comprises the following steps: when first function is when using the camera channel, judge whether to receive instruction of the second function unlatching to use the camera channel, if, then first function discharges the camera channel, and second function uses the camera channel.The present invention also provides device, storage medium and the terminals in a kind of shared camera channel.The present invention can be realized rapid switching function and use camera.

Description

Share method, apparatus, storage medium and the terminal in camera channel
Technical field
The present invention relates to electronic technology field more particularly to a kind of method, apparatus in shared camera channel, storage medium And terminal.
Background technique
Terminal generally has camera, and different functions, such as camera function or barcode scanning may be implemented by camera Function etc..Terminal only allows a function using camera, execute a certain function and when using camera, it is another need using Camera is performed function and is not available then, could use camera after needing first to close the function.
Summary of the invention
In consideration of it, it is necessary to provide method, apparatus, storage medium and the terminal in a kind of shared camera channel, it can It realizes rapid switching function and uses camera.
The present invention provides a kind of method in shared camera channel, is applied to terminal, and the terminal includes at least one camera shooting Head, the terminal include sharing first function and the second function in a camera channel, which comprises
When first function is when using the camera channel, judge whether to receive second function open with Use the instruction in the camera channel;
If so, first function discharges the camera channel, and second function uses the camera Channel.
Further, first function is camera function, and second function is barcode scanning function;Or
First function is barcode scanning function, and second function is camera function.
Further, the terminal includes the first camera and second camera, first camera and described second Camera shares the camera channel;Wherein,
When opening first function, the terminal uses first camera;
When opening second function, the terminal uses the second camera.
It is further, described that " first function discharges the camera channel, and described in the second function use Camera channel ", comprising:
Moment detects whether first function discharges the camera channel;
When detecting the first function release camera channel, second function is logical using the camera Road.
Further, the terminal includes the first application and the second application, and first application includes first function, Second application includes second function;It is described that " first function discharges the camera channel, and described second Function uses the camera channel ", comprising:
The instruction that the camera is opened in the second application that will acquire is sent to first application, and described second answers With the reply for waiting first application;
First application, which receives, discharges the camera channel after described instruction, and will release information be sent to it is described Second application;
Release information opens the camera to use the camera channel based on the received for second application.
The present invention also provides a kind of devices in shared camera channel, are applied to terminal, and the terminal is taken the photograph including at least one As head, the terminal includes the first function of sharing a camera channel and the second function, described device include:
Judgment module, for judging whether to receive described when first function is when using the camera channel Second function opens the instruction to use the camera channel;
Control module, for when receiving second function and opening the instruction to use the camera channel, institute It states the first function and discharges the camera channel, and second function uses the camera channel.
It is further, described that " first function discharges the camera channel, and described in the second function use Camera channel ", comprising:
Moment detects whether first function discharges the camera channel;
When detecting the first function release camera channel, second function is logical using the camera Road.
Further, the terminal includes the first application and the second application, and first application includes first function, Second application includes second function;It is described that " first function discharges the camera channel, and described second Function uses the camera channel ", comprising:
The instruction that the camera is opened in the second application that will acquire is sent to first application, and described second answers With the reply for waiting first application;
First application, which receives, discharges the camera channel after described instruction, and will release information be sent to it is described Second application;
Release information opens the camera to use the camera channel based on the received for second application.
The present invention also provides a kind of terminal, the terminal includes storage device and processor, the processor with it is described Storage device connection, is stored with computer program on the storage device, the processor when executing the computer program, The step of realizing the method in shared camera channel as described below.
The present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, and the computer program is located Manage the step of realizing the method in the shared camera channel when device executes.
Compared to the prior art, the invention has the following advantages: terminal of the invention includes sharing a camera to lead to First function and the second function in road judge whether to receive institute when first function is when using the camera channel The unlatching of the second function is stated to use the instruction in the camera channel;Lead to if so, first function discharges the camera Road, and second function uses the camera channel.The present invention can be realized rapid switching function and use camera.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of terminal of the invention.
Fig. 2 is the flow chart of the method in shared camera channel of the invention.
Fig. 3 is the structural schematic diagram of the device in shared camera channel of the invention.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on The embodiment of the present invention, those of ordinary skill in the art's obtained every other reality without making creative work Example is applied, protection scope of the present invention is belonged to.It is understood that attached drawing be provided solely for reference and description use, not be used to pair The present invention limits.
A kind of method in shared camera channel provided by the invention, can be applied in terminal 100, the terminal 100 It can be portable handheld device (such as scanning device), computer, portable computer, laptop computer, intelligent mobile terminal Etc. terminals, can also be other kinds of terminal certainly, in order to save space, will not repeat them here.
As shown in Figure 1, the terminal 100 may include camera 11, touch screen 12, processor 13 and storage device 14.Wherein, camera 11 may include one or more, such as two.The touch screen 12 can be used as display information Device and the device that can be used as information input.The terminal 100 may include having one or more application, one of them Can have two different functions perhaps above or multiple applications respectively correspond there are two or above different function Can, each function is needed when being executed using the camera 11.System only allows a feature operation camera, does not allow two A function is simultaneously using same camera or different cameras.When a function is when using camera, other function is used The request of camera will be rejected.
The processor 13 can control the overall operation of terminal, such as processor can be used for execution and pass through touch screen And/or data received by key etc. are controlled and are handled.The processor can include but is not limited to: dedicated Integrated circuit, digital signal processor, digital signal processing device, programmable logic device, field programmable gate array, processing Device, controller, microprocessor, herein with no restrictions.
The storage device 14 can include but is not limited to: flash memory, harddisk memory, card-type memory, random storage Device, Static RAM, read-only memory, the read-only memory of erasable programmable, disk or CD, do not limit herein System.The storage unit can be used for storing the operating system and program of terminal, and the storage unit can also can be used for storing Program involved in the method in shared camera channel of the invention.The storage unit can temporarily deposit several input/output Data can also store the various data of user's input, herein with no restrictions.
Different software can be achieved in the terminal 100, and software code can be according to arbitrary appropriate soft The software of part Programming with Pascal Language realizes that software code can store in storage device 14, and executed by the processor 13.
The processor 13 is executing involved by the method in shared camera channel that is stored in the storage device 14 Program when, the step of shared camera channel of the invention may be implemented.
The present invention provides a kind of readable storage medium storing program for executing, and computer program, the meter are stored on the readable storage medium storing program for executing The step of method in the shared camera channel of each embodiment of the present invention is realized when calculation machine program is executed by processor.
Referring to Fig. 2, Fig. 2 is the flow chart of the method in the shared camera channel that invention provides.
S11: when the first function is when using the camera channel, judge whether that receiving the second function opens to use The instruction in the camera channel executes step if receiving the unlatching of the second function to use the instruction in the camera channel Rapid S12 terminates process if not receiving the unlatching of the second function to use the instruction in the camera channel.
In the present embodiment, first function and second function are different function, are opening the first function Or when the second function, the first function or the second function are needed using the same camera being arranged at the terminal or respectively using not Same camera.First function can be camera function, and second function can be barcode scanning function, alternatively, described the One function is barcode scanning function, and second function is camera function;It is understood that first function and second function It can be not limited to above two, can also be other functions of needing using camera.
In the present embodiment, the terminal may include the first camera and second camera, and the first camera can be with It is the camera with the first function match, second camera can be the camera with the second function match.For example, the first camera shooting Head can be the probe mould group camera to match with barcode scanning function, when opening barcode scanning function, opens the first camera and carries out Barcode scanning, and second camera can be the camera of taking pictures to match with camera function, when opening camera function, opens second and takes the photograph As head is taken pictures.
In the present embodiment, the terminal may include the first application and the second application, and first application can wrap First function is included, second application may include second function.The first function can be opened by the first application Can, the second function can be opened by opening the second application.
S12: first function discharges the camera channel, and second function is logical using the camera Road.
After receiving the instruction that the second function is opened to use the camera channel, it is logical that the first function discharges camera Road occupies the camera channel using camera after opening in order to the second function, and the second function is normally-open, substantially in fact Existing seamless switching.
In one embodiment, this step may comprise steps of:
A121: the moment detects whether first function discharges the camera channel, when detecting first function When discharging the camera channel, step A122 is executed, when not detecting the first function release camera channel, It can then continue to detect whether first function discharges the camera channel, or can be tied after reaching scheduled duration Beam detects whether first function discharges the camera channel.
In the present embodiment, can lead to so that whether predetermined interval detecting first function discharge the camera Road.When whether detecting first function discharges the camera channel, the second function can be prepared in advance, if reaching predetermined After duration, the second function prepares closing, manually opened second function of user in advance.Present embodiment can pass through camera bottom Camerasevice intercepts and captures interaction of the other application to camera operation, as the first application and the second application.
A122: second function uses the camera channel.
In another embodiment, this step may comprise steps of:
B121: the instruction that the camera is opened in the second application that will acquire is sent to first application, and described Second application waits the reply of first application.
Same as described above, present embodiment can intercept and capture other application to taking the photograph by camera bottom camerasevice Interaction as head operation, as the first application and the second application.It sends the information for the opening camera that bottom is intercepted and captured to First application, the second application wait the reply of first application, to realize that camera is closed in the first application and the second application is opened Open the synchronization of camera.
B122: first application discharges the camera channel after receiving described instruction, and release information is sent To second application.
First application can actively discharge the camera channel, in order to which the second application is directly led to using the camera Road.
B123: release information opens the camera to use the camera based on the received for second application Channel.
In the prior art, when especially different function corresponds to different cameras, when the unlatching of the first function, use is taken the photograph When as head, particularly, the first function is in backstage continuous service, it is meant that it needs to occupy camera channel, and the second function is not Camera can be reused, it is necessary to the first function is first closed, because terminal only allows an application program while operating camera.When When camera is used in one function of one application program, other function request camera can be rejected.
The method that camera channel is shared provided by present embodiment, when first function is using the camera When channel, judge whether to receive second function and open instruction to use the camera channel, if so, described the One function discharges the camera channel, and second function uses the camera channel, so can be realized quickly Handoff functionality and use camera, the seamless switching that camera uses may be implemented substantially.
Fig. 3 is the structural schematic diagram of the device 200 in shared camera channel of the invention.Described device 200 can store In the storage unit of the terminal 100, performed by the processor of the terminal 100, the shared camera channel is realized Method.
Wherein, the device 200 in the shared camera channel may include: judgment module 21, control module 22.
The judgment module 21, for judging whether to receive when first function is when using the camera channel The instruction to use the camera channel is opened to second function;
The control module 22, for working as the instruction for receiving the second function unlatching to use the camera channel When, first function discharges the camera channel, and second function uses the camera channel.
Further, first function is camera function, and second function is barcode scanning function;Alternatively, described first Function is barcode scanning function, and second function is camera function.
Further, the terminal includes the first camera and second camera, first camera and described second Camera shares the camera channel;Wherein, when opening first function, the terminal is imaged using described first Head;When opening second function, the terminal uses the second camera.
Further, the control module 22 is specifically used for: opening when receiving second function to use described take the photograph As head channel instruction when, the moment detects whether first function discharges the camera channel;When detecting described first When function discharges the camera channel, second function uses the camera channel.
Further, the terminal includes the first application and the second application, and first application includes first function, Second application includes second function.The control module 22 is specifically used for: described in the second application that will acquire is opened The instruction of camera is sent to first application, and second application waits the reply of first application;Described One application discharges the camera channel after receiving described instruction, and release information is sent to second application;It is described Release information opens the camera to use the camera channel based on the received for second application.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc. within mind and principle should all include within protection scope of the present invention.

Claims (10)

1. a kind of method in shared camera channel, is applied to terminal, the terminal includes an at least camera, the terminal packet Include first function and the second function in shared camera channel, which is characterized in that the described method includes:
When first function is when using the camera channel, judge whether that receiving second function opens to use The instruction in the camera channel;
If so, first function discharges the camera channel, and second function uses the camera channel.
2. the method in shared camera channel according to claim 1, it is characterised in that:
First function is camera function, and second function is barcode scanning function;Or
First function is barcode scanning function, and second function is camera function.
3. the method in shared camera channel according to claim 1 or 2, which is characterized in that the terminal includes first Camera and second camera, first camera and the second camera share the camera channel;Wherein,
When opening first function, the terminal uses first camera;
When opening second function, the terminal uses the second camera.
4. the method in shared camera channel according to claim 1 or 2, which is characterized in that " first function The camera channel is discharged, and second function uses the camera channel ", comprising:
Moment detects whether first function discharges the camera channel;
When detecting the first function release camera channel, second function uses the camera channel.
5. the method in shared camera channel according to claim 1 or 2, which is characterized in that the terminal includes first It is applied using with second, first application includes first function, and second application includes second function;It is described " first function discharges the camera channel, and second function uses the camera channel ", comprising:
The instruction that the camera is opened in the second application that will acquire is sent to first application, and described second application etc. Reply to first application;
First application discharges the camera channel after receiving described instruction, and release information is sent to described second Using;
Release information opens the camera to use the camera channel based on the received for second application.
6. a kind of device in shared camera channel, is applied to terminal, the terminal includes an at least camera, the terminal packet Include first function and the second function in shared camera channel, which is characterized in that described device includes:
Judgment module, for judging whether to receive described second when first function is when using the camera channel Function opens the instruction to use the camera channel;
Control module, for when receiving second function and opening the instruction to use the camera channel, described the One function discharges the camera channel, and second function uses the camera channel.
7. the device in shared camera channel according to claim 6, it is characterised in that:
" first function discharges the camera channel, and second function uses the camera channel ", Include:
Moment detects whether first function discharges the camera channel;
When detecting the first function release camera channel, second function uses the camera channel.
8. the device in shared camera channel according to claim 6, which is characterized in that the terminal includes the first application With the second application, first application includes first function, and second application includes second function;" the institute State the first function and discharge the camera channel, and second function uses the camera channel ", comprising:
The instruction that the camera is opened in the second application that will acquire is sent to first application, and described second application etc. Reply to first application;
First application discharges the camera channel after receiving described instruction, and release information is sent to described second Using;
Release information opens the camera to use the camera channel based on the received for second application.
9. a kind of terminal, the terminal includes storage device and processor, and the processor is connect with the storage device, It is characterized in that, computer program is stored on the storage device, the processor is realized when executing the computer program The step of method in shared camera channel according to any one of claims 1 to 5 below.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed The step of device realizes the method in shared camera channel according to any one of claims 1 to 5 when executing.
CN201811640429.1A 2018-12-29 2018-12-29 Share method, apparatus, storage medium and the terminal in camera channel Pending CN109698907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811640429.1A CN109698907A (en) 2018-12-29 2018-12-29 Share method, apparatus, storage medium and the terminal in camera channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811640429.1A CN109698907A (en) 2018-12-29 2018-12-29 Share method, apparatus, storage medium and the terminal in camera channel

Publications (1)

Publication Number Publication Date
CN109698907A true CN109698907A (en) 2019-04-30

Family

ID=66233094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811640429.1A Pending CN109698907A (en) 2018-12-29 2018-12-29 Share method, apparatus, storage medium and the terminal in camera channel

Country Status (1)

Country Link
CN (1) CN109698907A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014792A (en) * 2019-12-20 2021-06-22 青岛海信移动通信技术股份有限公司 Terminal equipment and camera resource sharing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793246A (en) * 2014-01-22 2014-05-14 深圳Tcl新技术有限公司 Method and system for coordinating camera resources
CN103995787A (en) * 2014-05-15 2014-08-20 Tcl集团股份有限公司 Regulation and control method and device for camera applications
CN105068945A (en) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 Camera distribution method and system for Android system
CN107886321A (en) * 2017-10-17 2018-04-06 维沃移动通信有限公司 A kind of method of payment and mobile terminal
CN109005335A (en) * 2018-06-28 2018-12-14 深圳市沃特沃德股份有限公司 Camera of mobile terminal and processing method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793246A (en) * 2014-01-22 2014-05-14 深圳Tcl新技术有限公司 Method and system for coordinating camera resources
CN103995787A (en) * 2014-05-15 2014-08-20 Tcl集团股份有限公司 Regulation and control method and device for camera applications
CN105068945A (en) * 2015-08-03 2015-11-18 Tcl集团股份有限公司 Camera distribution method and system for Android system
CN107886321A (en) * 2017-10-17 2018-04-06 维沃移动通信有限公司 A kind of method of payment and mobile terminal
CN109005335A (en) * 2018-06-28 2018-12-14 深圳市沃特沃德股份有限公司 Camera of mobile terminal and processing method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014792A (en) * 2019-12-20 2021-06-22 青岛海信移动通信技术股份有限公司 Terminal equipment and camera resource sharing method

Similar Documents

Publication Publication Date Title
CN109960582A (en) The method, apparatus and system of multi-core parallel concurrent are realized in the side TEE
CN100511156C (en) Apparatus for compulsively terminating thread blocked on input/output operation and method for the same
RU2011122658A (en) ISOLATION OF ACCEPTED INFORMATION ON A LOCKED DEVICE
CN103345414B (en) Self-aided terminal controls the method for hardware device, equipment manager and processor
CN104506379A (en) Method and system for capturing network data
US9451159B2 (en) Photographing starting apparatus and method for built-in camera of portable data processing device
CN107105478A (en) network registering method and device
CN104063267A (en) Method and system for monitoring flow of virtual machine
CN109698907A (en) Share method, apparatus, storage medium and the terminal in camera channel
CN104683486A (en) Method and device for processing synchronous messages in distributed system and distributed system
CN105975306A (en) Application program starting management method and application program starting management apparatus for electronic device
CN109729270A (en) A kind of control method, device and electronic equipment
CN104298528A (en) Application program installation control method and device
CN103678163A (en) Method, device and system for switching of data stream
CN105579963A (en) Task handling apparatus and method, and electronic device
JP2006164185A (en) Debug device
CN107688481B (en) Multi-node-supporting KVM virtual machine hiding process detection system
CN108391120B (en) Camera starting test method, device, equipment and storage medium
US20220083416A1 (en) Multi-thread exit method and mobile terminal
CN109976836A (en) A kind of method and system obtaining android terminal camera data
CN106940658B (en) Task processing method and device based on thread pool
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN107977230A (en) A kind of application management method based on state machine mechanism
CN113391931B (en) Remote control method and device based on Bluetooth, computer equipment and storage medium
CN106879056A (en) The electricity saving method and device of a kind of terminal

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190430

WD01 Invention patent application deemed withdrawn after publication