[go: up one dir, main page]

CN108833786B - Mode control method and electronic equipment - Google Patents

Mode control method and electronic equipment Download PDF

Info

Publication number
CN108833786B
CN108833786B CN201810718796.2A CN201810718796A CN108833786B CN 108833786 B CN108833786 B CN 108833786B CN 201810718796 A CN201810718796 A CN 201810718796A CN 108833786 B CN108833786 B CN 108833786B
Authority
CN
China
Prior art keywords
electronic device
specific object
information
electronic equipment
photographing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810718796.2A
Other languages
Chinese (zh)
Other versions
CN108833786A (en
Inventor
翟富强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810718796.2A priority Critical patent/CN108833786B/en
Publication of CN108833786A publication Critical patent/CN108833786A/en
Application granted granted Critical
Publication of CN108833786B publication Critical patent/CN108833786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10881Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a mode control method, which is applied to electronic equipment and comprises the following steps: starting an image collector of the electronic equipment; if a specific object exists in the framing picture, acquiring at least one type of information; wherein the particular object is identifiable; if the at least one type of information accords with a first condition, controlling the electronic equipment to be in a photographing preview mode; and if the at least one type of information meets a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object. The embodiment of the invention also discloses the electronic equipment.

Description

Mode control method and electronic equipment
Technical Field
The present invention relates to a mode control technology in the field of communications, and in particular, to a mode control method and an electronic device.
Background
Along with the popularization, the popularization and the development of electronic products, the electronic products have more and more functions, stronger and stronger performance and richer experience. At present, there has been a terminal that can directly perform scanning processing of a specific object such as a two-dimensional code or a barcode by a camera of an electronic device without performing the scanning processing by means of an application program in the electronic device.
However, in the relative scheme, after a user manually sets the function of the camera to a scanning mode for scanning a specific object such as a two-dimensional code or a bar code, the camera in the electronic device can scan the specific object; therefore, before scanning of specific objects such as two-dimensional codes or bar codes, a user needs to manually set the working mode of the camera, operation is troublesome, and the intelligence of the electronic equipment is low.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a mode control method and an electronic device, so as to solve the problem that, in the relative technology, when the electronic device scans a specific object, a user needs to manually switch a working mode of the electronic device, achieve automatic scanning and identification of the specific object, and improve intelligence of the electronic device.
The technical scheme of the invention is realized as follows:
a mode control method is applied to an electronic device and comprises the following steps:
starting an image collector of the electronic equipment;
if a specific object exists in the framing picture, acquiring at least one type of information; wherein the particular object is identifiable;
if the at least one type of information accords with a first condition, controlling the electronic equipment to be in a photographing preview mode;
and if the at least one type of information meets a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object.
Optionally, the obtaining at least one type of information includes:
acquiring motion information of the electronic equipment;
or acquiring the photographing information of the image collector.
Optionally, the acquiring the motion information of the electronic device includes:
acquiring motion information of the electronic equipment in a preset time period;
correspondingly, if the at least one type of information meets the second condition, controlling the electronic device to be in a scan recognition mode for a specific object includes:
and if the motion information of the electronic equipment in the preset time period indicates that the electronic equipment is in a basically static state, controlling the electronic equipment to be in a scanning identification mode aiming at a specific object.
Optionally, the acquiring of the photographing information of the image acquirer includes:
acquiring the focusing state of an image collector of the electronic equipment;
correspondingly, if the at least one type of information meets the first condition, controlling the electronic device to be in a photographing preview mode, including:
and if the focusing state indicates that the image collector focuses for multiple times, controlling the electronic equipment to be in a photographing preview mode.
Optionally, if the at least one type of information meets the first condition, controlling the electronic device to be in a photographing preview mode, including:
and if the photographing information of the image collector is executed with one or more specific operations, controlling the electronic equipment to be in a photographing preview mode.
Optionally, the acquiring of the photographing information of the image acquirer includes:
acquiring a photographing angle of an image collector of the electronic equipment;
correspondingly, if the at least one type of information meets the second condition, controlling the electronic device to be in a scan recognition mode for a specific object includes:
and if the photographing angle of the image collector meets a preset angle range, controlling the electronic equipment to be in a scanning identification mode aiming at a specific object.
Optionally, if the at least one type of information meets the first condition, controlling the electronic device to be in a photographing preview mode, including:
and if the photographing angle of the image collector does not meet the preset angle range, controlling the electronic equipment to be in a photographing preview mode.
Optionally, if the at least one piece of information meets the second condition, controlling the electronic device to be in a scan recognition mode for a specific object includes:
and if the proportion of the specific object in the framing picture is larger than a preset proportion or the position of the specific object in the framing picture is a specific position, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object.
Optionally, when the electronic device is in the preview photographing mode, scanning and identifying a specific object appearing in a viewing picture of the image collector are not performed.
Optionally, the method further includes:
under the scanning recognition mode of the specific object, scanning the specific object by adopting a first scanning angle;
and if the scanning result corresponding to the first scanning angle is not obtained, scanning the specific object by adopting a second scanning angle.
An electronic device, the electronic device comprising: image collector and processor, wherein:
the processor is used for starting the image collector of the electronic equipment;
the processor is further used for acquiring at least one type of information if a specific object exists in the framing picture; wherein the particular object is identifiable;
the processor is further configured to control the electronic device to be in a photographing preview mode if the at least one type of information meets a first condition;
the processor is further configured to control the electronic device to be in a scan recognition mode for a specific object if the at least one type of information meets a second condition.
Optionally, the processor is further configured to acquire motion information of the electronic device, or acquire photographing information of the image acquirer.
Optionally, the electronic device further comprises a sensor, wherein:
the sensor is used for acquiring motion information of the electronic equipment within a preset time period;
the processor is further configured to control the electronic device to be in a scan recognition mode for a specific object if the motion information of the electronic device in the preset time period indicates that the electronic device is in a substantially stationary state.
Optionally, the processor is further configured to obtain a focusing state of an image collector of the electronic device;
the processor is further configured to control the electronic device to be in a photographing preview mode if the focusing state indicates that the image collector focuses for multiple times.
Optionally, the processor is further configured to control the electronic device to be in a preview photographing mode if the photographing information of the image acquirer is subjected to one or more specific operations.
Optionally, the processor is further configured to obtain a photographing angle of an image collector of the electronic device;
the processor is further configured to control the electronic device to be in a scanning recognition mode for a specific object if the photographing angle of the image collector meets a preset angle range.
Optionally, the processor is further configured to control the electronic device to be in a photographing preview mode if the photographing angle of the image collector does not satisfy the preset angle range.
Optionally, the processor is further configured to control the electronic device to be in a scan recognition mode for the specific object if the proportion of the specific object in the framing picture is greater than a preset proportion, or the position of the specific object in the framing picture is a specific position.
Optionally, the processor is further configured to not scan and identify a specific object appearing in a viewing picture of the image acquirer when the electronic device is in a preview mode.
Optionally, the processor is further configured to perform a scanning process on the specific object by using a first scanning angle in the scanning recognition mode for the specific object;
the processor is further configured to scan the specific object by using a second scanning angle if the scanning result corresponding to the first scanning angle is not obtained.
The mode control method and the electronic device provided by the embodiment of the invention start the image collector of the electronic device, if the specific object which can be identified exists in the framing picture, at least one piece of information is obtained, if the at least one piece of information accords with the first condition, the electronic device is controlled to be in the photographing preview mode, if the at least one piece of information accords with the second condition, the electronic device is controlled to be in the scanning identification mode aiming at the specific object, therefore, when the framing picture of the electronic device has the specific object, the electronic device can be automatically controlled to be in the photographing preview mode or the scanning identification mode aiming at the specific object according to the information associated with the electronic device, the manual control of a user is not needed any more, the problem that the working mode of the electronic device needs to be manually switched by the user when the electronic device scans the specific object in the relative technology is solved, the scanning identification of the specific object is automatically realized, and the intelligence of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flow chart of a mode control method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another mode control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a mode control method, which is shown in fig. 1 and includes the following steps:
step 101, starting an image collector of the electronic equipment.
The step 101 of starting the image collector of the electronic device can be realized by the electronic device; the electronic device may be a device having a photographing function and a scan recognition function for a specific object; the image collector can be actively opened when a user needs to use electronic equipment to take a picture or scan and identify a specific object; in a feasible implementation manner, the image collector can be opened after a user sends an opening instruction for opening the image collector to the electronic equipment by touching the electronic equipment; the image collector can be a camera in the electronic equipment, and the camera can comprise a front camera and/or a rear camera.
And 102, if a specific object exists in the viewfinder image, acquiring at least one type of information.
Wherein the specific object is identifiable.
In other embodiments of the present invention, the step 102 of obtaining at least one information may be implemented by the electronic device if a specific object exists in the viewfinder; the specific object may refer to an image of a specific identification, for example, the specific object may include a code that needs to be recognized, such as a barcode and/or a two-dimensional code. The at least one type of information may have an association relationship with the electronic device, and the at least one type of information may be information of the electronic device, information of an image collector of the electronic device, or the like.
It should be noted that, the obtaining of at least one information in step 102 may be implemented by:
a. acquiring motion information of the electronic equipment;
the motion information of the electronic device may refer to a type of information that can characterize whether the electronic device is at rest or in motion.
Or b, acquiring the photographing information of the image collector.
The photographing information may include photographing parameters of the image collector, information of a specific object included in a view frame of the image collector, information executed for the image collector, focusing information of the image collector, and/or the like.
And 103, if the at least one type of information meets the first condition, controlling the electronic equipment to be in a photographing preview mode.
If at least one type of information meets the first condition, the step 103 of controlling the electronic device to be in the photographing preview mode can be realized by the electronic device; the photographing preview mode refers to an operation in which a photographing operation and/or a preview before photographing can be performed. In the photographing preview mode, the electronic device can accept the photographing operation of the user, and photograph and store the image.
And 104, if the at least one type of information meets a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object.
If at least one type of information meets the second condition, the step 104 of controlling the electronic device to be in the scanning recognition mode for the specific object can be realized by the electronic device; after the electronic device is in the scanning and recognition mode for the specific object, the information corresponding to the specific object can be acquired.
In the specific object scanning and identifying mode, the electronic equipment can scan and identify the specific object without the operation of a user, and further acquire the information corresponding to the specific object.
The mode control method provided by the embodiment of the invention starts the image collector of the electronic equipment, if a specific object which can be identified exists in the viewfinder frame, acquiring at least one type of information, if the at least one type of information accords with a first condition, controlling the electronic equipment to be in a shooting preview mode, if the at least one type of information accords with a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object, and thus when the viewfinder frame has the specific object, the electronic equipment can be automatically controlled to be in a photographing preview mode or a scanning recognition mode aiming at the specific object according to the information associated with the electronic equipment, and the electronic equipment does not need to be manually controlled by a user, so that the problem that the working mode of the electronic equipment needs to be manually switched by the user when the specific object is scanned by the electronic equipment in the relative technology is solved, the automatic scanning recognition of the specific object is realized, and the intelligence of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides a mode control method, which is shown in fig. 2 and includes the following steps:
step 201, the electronic device starts an image collector of the electronic device.
Step 202, if a specific object exists in the framing picture, the electronic equipment acquires the motion information of the electronic equipment within a preset time period.
The preset time period may refer to a certain time period, which may not be preset, and may be determined according to an actual application scenario; in one possible implementation, the preset time period may refer to a certain time period before the time when the specific object is acquired. That is, what is acquired is motion information of the electronic device for a certain period of time prior to the time at which the specific object was acquired. It should be noted that the motion information of the electronic device within the preset time period may be implemented by a sensor in the electronic device.
Step 203, if the motion information of the electronic device in the preset time period indicates that the electronic device is in a substantially static state, controlling the electronic device to be in a scanning identification mode for a specific object.
If the electronic device is in a relatively static state for a certain period of time before the time of acquiring the specific object, which indicates that the electronic device needs to scan and identify the specific object at this time, the electronic device may be controlled to be in a scan and identify mode for the specific object. It should be noted that substantially stationary may refer to the electronic device being completely stationary, or may also refer to motion having a small amplitude within an allowable range.
Of course, if the motion information of the electronic device in the preset time period indicates that the electronic device is in a motion state, the electronic device is controlled to be in a photographing preview mode. In a possible implementation manner, if the electronic device is in a motion state for a certain period of time before the time of capturing the specific object, which indicates that the electronic device needs to capture an image in the finder screen frame at this time, the electronic device may be controlled to be in a shooting preview mode. For example, the mobile phone is always shaking back and forth several seconds before shooting to find the best shooting angle, and the electronic device needs to be controlled to be in a shooting preview mode.
In other embodiments of the present invention, steps 204-205 can be further performed after step 201;
and 204, if the specific object exists in the framing picture, the electronic equipment acquires the photographing angle of an image collector of the electronic equipment.
The shooting angle of the image collector can refer to the shooting angle of a camera of the electronic equipment; in general, in the manufacturing process, the plane where the image collector is located and the plane where the electronic device is located are the same plane; therefore, the photographing angle of the image collector can be obtained by obtaining the inclination angle of the electronic equipment. In one possible implementation, the photographing angle may be obtained by a gyroscope in the electronic device.
Step 205, if the photographing angle of the image collector meets the preset angle range, the electronic device controls the electronic device to be in a scanning recognition mode for the specific object.
The preset angle range can refer to a small-range angle range with a small angle span; of course, the preset angle range includes 0 degrees and 180 degrees. And if the photographing angle of the image collector does not meet the preset angle range, controlling the electronic equipment to be in a photographing preview mode. For example, if the electronic device is tilted up or tilted down, and it is considered that the electronic device needs to enter the scan recognition mode at this time, the electronic device is controlled to be in the scan recognition mode for a specific object; if the inclination angle of the electronic equipment is 90 degrees or the inclination angle is smaller, the inclination angle of the electronic equipment can be considered to be within a range of the inclination angle with a better shot photo effect, and the electronic equipment is controlled to be in a photo preview mode if the electronic equipment needs to enter the photo preview mode at the moment.
In other embodiments of the present invention, steps 206-207 may be further performed after step 201;
and step 206, if the specific object exists in the framing picture, the electronic equipment acquires the proportion of the specific object in the framing picture or the position of the specific object in the framing picture in the acquisition area of the image acquisition device.
The ratio of the specific object in the finder screen may be obtained by comparing the area of the acquired region occupied by the specific object in the finder screen with the area of the finder screen. The position of the specific object in the finder screen may be obtained by dividing the finder screen by coordinates, and then acquiring coordinates of an area where the specific object is located.
Step 207, if the proportion of the specific object in the framing picture is greater than the preset proportion, or the position of the specific object in the framing picture is a specific position, the electronic device controls the electronic device to be in a scanning identification mode for the specific object.
The preset proportion can be a proportion relation which is set according to historical use data and can ensure that the proportion of the specific object in the framing picture is large. The specific location may refer to a certain number or a certain specific location in the viewfinder, e.g. the specific location may comprise the location of the central area of the viewfinder, etc.
If the proportion of the specific object in the view-finding picture is larger, the barcode or the two-dimensional code in the view-finding picture is indicated to complete scanning identification, or the specific object is located in the central area of the view-finding picture, at this time, it can be considered that the electronic device needs to scan and identify the specific object, and the electronic device is controlled to be in a scanning identification mode aiming at the specific object.
In other embodiments of the present invention, steps 208-209 may be further performed after step 201;
and step 208, if the specific object exists in the framing picture, the electronic equipment acquires the focusing state of an image collector of the electronic equipment.
The focusing state can be realized by acquiring a setting process for setting the focusing parameters of the camera.
And step 209, if the focusing state of the image collector indicates that the image collector focuses for multiple times, the electronic equipment controls the electronic equipment to be in a photographing preview mode.
If the focusing parameters of the image collector are obtained after multiple focusing adjustments are carried out, namely the image collector carries out multiple focusing; at this time, the electronic device may be considered to need to take a picture, and the electronic device may be controlled to be in a picture preview mode.
In other embodiments of the present invention, steps 210-211 can be further performed after step 201;
step 210, if a specific object exists in the framing picture, the electronic device obtains the photographing information of the image collector of the electronic device.
The photographing information in this embodiment refers to some photographing information related to the image collector.
In step 211, if the photographing information of the image collector is executed with one or more specific operations, the electronic device controls the electronic device to be in a photographing preview mode.
Wherein, the one or more operations can comprise adjusting exposure brightness and/or using special photographing effect; the special photographing effect can comprise a filter lens and/or beauty and the like. And if the electronic equipment is controlled to be in a photographing preview mode after operations such as adjusting exposure brightness, using a filter and/or beautifying the face and the like are performed on the image collector, and the electronic equipment is considered to be required to photograph.
It should be noted that, when the electronic device is in the preview photographing mode, the specific object appearing in the view-finding picture of the image collector is not scanned and identified.
In a feasible implementation manner, when the electronic device is in the close-up photographing mode, the barcode or the two-dimensional code exists in the view-finding picture, but the barcode or the two-dimensional code in the view-finding picture is aimed at photographing at this time, so that even if the barcode or the two-dimensional code exists in the view-finding picture, the electronic device does not perform scanning recognition but performs photographing. For example, for a Taobao seller, if a barcode or a two-dimensional code exists in a viewfinder frame, the viewfinder frame is mainly used for shooting and framing without scanning.
Based on the foregoing embodiment, the method further comprises the steps of:
in step 212, in the scan recognition mode for the specific object, the electronic device performs a scan process on the specific object by using the first scan angle.
In step 213, if the scanning result corresponding to the first scanning angle is not obtained, the electronic device scans the specific object by using the second scanning angle.
Wherein the first scanning angle is different from the second scanning angle; in one possible implementation the first scan angle may refer to a lateral scan angle and the second scan angle may refer to a longitudinal scan angle.
Based on the foregoing embodiment, in other embodiments of the present invention, the method may further include:
performing a first scanning process on a specific object;
if a scanning result corresponding to the first scanning processing is obtained, at least second scanning processing is carried out on the specific object;
and if the scanning result corresponding to the first scanning processing is the same as the scanning result corresponding to the second scanning processing, displaying the scanning result corresponding to the second scanning processing.
Wherein, the scanning angle for the first scanning processing is the same as the scanning angle for the second scanning processing; if the scanning result corresponding to the first scanning processing is different from the scanning result corresponding to the second scanning processing, the scanning processing fails or the specific object is not a two-dimensional code/bar code; if the scanning result corresponding to the first scanning processing is the same as the scanning result corresponding to the second scanning processing, the scanning result is correct, and the scanning result corresponding to the first scanning processing or the scanning result corresponding to the second scanning processing can be displayed on a display screen of the electronic device.
The mode control method provided by the embodiment of the invention starts the image collector of the electronic equipment, if a specific object which can be identified exists in the viewfinder frame, acquiring at least one type of information, if the at least one type of information accords with a first condition, controlling the electronic equipment to be in a shooting preview mode, if the at least one type of information accords with a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object, and thus when the viewfinder frame has the specific object, the electronic equipment can be automatically controlled to be in a photographing preview mode or a scanning recognition mode aiming at the specific object according to the information associated with the electronic equipment, and the electronic equipment does not need to be manually controlled by a user, so that the problem that the working mode of the electronic equipment needs to be manually switched by the user when the specific object is scanned by the electronic equipment in the relative technology is solved, the automatic scanning recognition of the specific object is realized, and the intelligence of the electronic equipment is improved.
Based on the foregoing embodiment, an embodiment of the present invention provides an electronic device, and referring to fig. 3, the electronic device 3 includes: an image collector 31 and a processor 32, wherein:
a processor 32, configured to start the image collector 31 of the electronic device;
a processor 32, further configured to obtain at least one information if a specific object exists in the viewfinder;
the processor 32 is further configured to control the electronic device to be in a photographing preview mode if the at least one type of information meets the first condition;
the processor 32 is further configured to control the electronic device to be in a scan recognition mode for the specific object if the at least one information satisfies the second condition.
In other embodiments of the present invention, the processor 32 is further configured to obtain motion information of the electronic device;
or,
and the processor 32 is further configured to obtain photographing information of the image acquirer.
In other embodiments of the present invention, as shown with reference to fig. 4, the electronic device further comprises a sensor 33, wherein:
the sensor 33 is used for acquiring the motion information of the electronic equipment within a preset time period;
the processor 32 is further configured to control the electronic device to be in a scan recognition mode for a specific object if the motion information of the electronic device within the preset time period indicates that the electronic device is in a substantially stationary state.
In other embodiments of the present invention, the processor 32 is further configured to obtain a focusing state of an image collector of the electronic device;
the processor 32 is further configured to control the electronic device to be in a photographing preview mode if the focusing state indicates that the image collector focuses for multiple times.
In other embodiments of the present invention, the processor 32 is further configured to control the electronic device to be in the preview photographing mode if the photographing information of the image collector is performed by one or more specific operations.
In other embodiments of the present invention, the processor 32 is further configured to obtain a photographing angle of an image collector of the electronic device;
the processor 32 is further configured to control the electronic device to be in a scanning recognition mode for the specific object if the photographing angle of the image acquirer satisfies the preset angle range.
In other embodiments of the present invention, the processor 32 is further configured to control the electronic device to be in a preview photographing mode if the photographing angle of the image collector does not satisfy the preset angle range.
In other embodiments of the present invention, the processor 32 is further configured to control the electronic device to be in the scan recognition mode for the specific object if the proportion of the specific object in the finder screen is greater than the preset proportion, or the position of the specific object in the finder screen is a specific position.
In other embodiments of the present invention, the processor 32 is further configured to not scan and identify a specific object appearing in a viewfinder of the image collector when the electronic device is in the preview mode.
In other embodiments of the present invention, the processor 32 is further configured to perform a scanning process on the specific object by using the first scanning angle in a scanning recognition mode for the specific object;
the processor 32 is further configured to perform a scanning process on the specific object by using the second scanning angle if the scanning result corresponding to the first scanning angle is not obtained.
It should be noted that, in the embodiment of the present invention, an interaction process among steps executed by the processor, the image collector, and the sensor may refer to an interaction process in the mode control method provided in the embodiment corresponding to fig. 1 to 2, and details are not described here.
In the electronic device provided by the embodiment of the invention, the processor can start the image collector of the electronic device, and if a specific object capable of being identified exists in the framing picture, at least one piece of information is acquired, if the at least one piece of information conforms to the first condition, the electronic device is controlled to be in the photographing preview mode, and if the at least one piece of information conforms to the second condition, the electronic device is controlled to be in the scanning identification mode for the specific object, so that when the framing picture of the electronic device has the specific object, the electronic device can be automatically controlled to be in the photographing preview mode or the scanning identification mode for the specific object according to the information associated with the electronic device, the manual control by a user is not required any more, the problem that the working mode of the electronic device needs to be manually switched by the user when the electronic device scans the specific object in the relative technology is solved, the scanning identification for the specific object is automatically realized, and the intelligence of the electronic equipment is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (9)

1. A mode control method is applied to an electronic device and comprises the following steps:
starting an image collector of the electronic equipment;
if a specific object exists in the framing picture, acquiring at least one type of information; wherein the particular object is identifiable;
the acquiring at least one type of information includes:
acquiring motion information of the electronic equipment;
or acquiring the photographing information of the image collector;
if the at least one type of information accords with a first condition, controlling the electronic equipment to be in a photographing preview mode; the photographing preview mode is a mode for performing photographing operation and previewing operation before photographing;
and if the at least one type of information meets a second condition, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object.
2. The method of claim 1, wherein the obtaining motion information of the electronic device comprises:
acquiring motion information of the electronic equipment in a preset time period;
correspondingly, if the at least one type of information meets the second condition, controlling the electronic device to be in a scan recognition mode for a specific object includes:
and if the motion information of the electronic equipment in the preset time period indicates that the electronic equipment is in a basically static state, controlling the electronic equipment to be in a scanning identification mode aiming at a specific object.
3. The method of claim 1, wherein the obtaining of the photographing information of the image collector comprises:
acquiring the focusing state of an image collector of the electronic equipment;
correspondingly, if the at least one type of information meets the first condition, controlling the electronic device to be in a photographing preview mode, including:
and if the focusing state indicates that the image collector focuses for multiple times, controlling the electronic equipment to be in a photographing preview mode.
4. The method of claim 1, wherein the controlling the electronic device to be in a preview photographing mode if the at least one type of information meets a first condition comprises:
and if the photographing information of the image collector is executed with one or more specific operations, controlling the electronic equipment to be in a photographing preview mode.
5. The method of claim 1, wherein the obtaining of the photographing information of the image collector comprises:
acquiring a photographing angle of an image collector of the electronic equipment;
correspondingly, if the at least one type of information meets the second condition, controlling the electronic device to be in a scan recognition mode for a specific object includes:
and if the photographing angle of the image collector meets a preset angle range, controlling the electronic equipment to be in a scanning identification mode aiming at a specific object.
6. The method of claim 1, wherein the controlling the electronic device to be in a scan recognition mode for a specific object if the at least one information satisfies a second condition comprises:
and if the proportion of the specific object in the framing picture is larger than a preset proportion or the position of the specific object in the framing picture is a specific position, controlling the electronic equipment to be in a scanning identification mode aiming at the specific object.
7. The method of claim 1, further comprising:
under the scanning recognition mode of the specific object, scanning the specific object by adopting a first scanning angle;
and if the scanning result corresponding to the first scanning angle is not obtained, scanning the specific object by adopting a second scanning angle.
8. An electronic device, characterized in that the electronic device comprises: image collector and processor, wherein:
the processor is used for starting the image collector of the electronic equipment;
the processor is further used for acquiring at least one type of information if a specific object exists in the framing picture; wherein the particular object is identifiable; the acquiring of the at least one type of information comprises acquiring motion information of the electronic equipment, or acquiring photographing information of the image collector;
the processor is further configured to control the electronic device to be in a photographing preview mode if the at least one type of information meets a first condition; the photographing preview mode is a mode for performing photographing operation and previewing operation before photographing;
the processor is further configured to control the electronic device to be in a scan recognition mode for a specific object if the at least one type of information meets a second condition.
9. The electronic device of claim 8, further comprising a sensor, wherein:
the sensor is used for acquiring motion information of the electronic equipment within a preset time period;
the processor is further configured to control the electronic device to be in a scan recognition mode for a specific object if the motion information of the electronic device in the preset time period indicates that the electronic device is in a substantially stationary state.
CN201810718796.2A 2018-06-29 2018-06-29 Mode control method and electronic equipment Active CN108833786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810718796.2A CN108833786B (en) 2018-06-29 2018-06-29 Mode control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810718796.2A CN108833786B (en) 2018-06-29 2018-06-29 Mode control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN108833786A CN108833786A (en) 2018-11-16
CN108833786B true CN108833786B (en) 2022-04-22

Family

ID=64135245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810718796.2A Active CN108833786B (en) 2018-06-29 2018-06-29 Mode control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108833786B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971820B (en) * 2019-11-25 2021-03-26 Oppo广东移动通信有限公司 Photographing method, photographing device, mobile terminal and computer readable storage medium
CN113302907B (en) * 2020-08-24 2023-10-10 深圳市大疆创新科技有限公司 Photography methods, devices, equipment and computer-readable storage media
CN116402074A (en) * 2020-12-31 2023-07-07 支付宝(杭州)信息技术有限公司 Code scanning equipment and working mode identification method, device and equipment thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525739A (en) * 2003-07-31 2004-09-01 A digital camera with scanning function
CN104143105A (en) * 2013-09-22 2014-11-12 腾讯科技(深圳)有限公司 Graph recognition method, device and system and terminal device
CN105205429A (en) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 Decoding control method and device for two-dimension code
CN105488447A (en) * 2016-01-24 2016-04-13 苏州摩比力特电子科技有限公司 Mobile bar code scanning device based on hand-held terminal with shooting function
CN107124553A (en) * 2017-05-27 2017-09-01 珠海市魅族科技有限公司 Filming control method and device, computer installation and readable storage medium storing program for executing
CN108174092A (en) * 2017-12-28 2018-06-15 珠海市魅族科技有限公司 Terminal control method, device, computer installation and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4113387B2 (en) * 2002-07-24 2008-07-09 シャープ株式会社 Portable terminal device, information reading program, and recording medium recording the program
US7293711B2 (en) * 2004-08-30 2007-11-13 Symbol Technologies, Inc. Combination barcode imaging/decoding and real-time video capture system
WO2008149709A1 (en) * 2007-06-04 2008-12-11 Sharp Kabushiki Kaisha Portable terminal, control method for portable terminal, control program for portable terminal, and computer readable recording medium having recorded the program therein
WO2014107681A1 (en) * 2013-01-04 2014-07-10 Awyse, Inc. System and method for providing augmented reality on mobile devices
US9772863B2 (en) * 2014-10-15 2017-09-26 Dell Products, L.P. Methods for copying information handling system configuration settings
CN104410790A (en) * 2014-12-15 2015-03-11 联想(北京)有限公司 Information processing method and electronic equipment
CN104700062B (en) * 2015-03-20 2017-06-27 中国联合网络通信集团有限公司 A method and device for identifying two-dimensional codes
CN105120144A (en) * 2015-07-31 2015-12-02 小米科技有限责任公司 Image shooting method and device
CN107220578B (en) * 2017-05-31 2020-03-10 维沃移动通信有限公司 Two-dimensional code scanning and identifying method and device, mobile terminal and storage medium
CN108111754B (en) * 2017-12-18 2021-03-12 维沃移动通信有限公司 A method and mobile terminal for determining image acquisition mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1525739A (en) * 2003-07-31 2004-09-01 A digital camera with scanning function
CN104143105A (en) * 2013-09-22 2014-11-12 腾讯科技(深圳)有限公司 Graph recognition method, device and system and terminal device
CN105205429A (en) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 Decoding control method and device for two-dimension code
CN105488447A (en) * 2016-01-24 2016-04-13 苏州摩比力特电子科技有限公司 Mobile bar code scanning device based on hand-held terminal with shooting function
CN107124553A (en) * 2017-05-27 2017-09-01 珠海市魅族科技有限公司 Filming control method and device, computer installation and readable storage medium storing program for executing
CN108174092A (en) * 2017-12-28 2018-06-15 珠海市魅族科技有限公司 Terminal control method, device, computer installation and computer readable storage medium

Also Published As

Publication number Publication date
CN108833786A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US10917571B2 (en) Image capture device control based on determination of blur value of objects in images
US11368632B2 (en) Method and apparatus for processing video, and storage medium
US20140092272A1 (en) Apparatus and method for capturing multi-focus image using continuous auto focus
KR101455018B1 (en) Image capturing apparatus, image capturing method, and computer-readable recording medium
CN112714255B (en) Shooting method and device, electronic equipment and readable storage medium
CN103227903A (en) A method in relation to acquiring digital images
JPWO2015049899A1 (en) Image display device and image display method
CN108833786B (en) Mode control method and electronic equipment
JP2012247533A (en) Electronic camera
WO2016101524A1 (en) Method and apparatus for correcting inclined shooting of object being shot, mobile terminal, and storage medium
CN112887617A (en) Shooting method and device and electronic equipment
CN108810326B (en) A photographing method, device and mobile terminal
CN110225243A (en) Folding screen based shooting control method and device, storage medium and mobile terminal
KR20210133104A (en) Method and device for shooting image, and storage medium
CN103533212A (en) Image synthesizing method and apparatus
JP6283329B2 (en) Augmented Reality Object Recognition Device
CN110557556A (en) Multi-object shooting method and device
CN113170050A (en) Image acquisition method, electronic device, and removable device
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN111654623B (en) Photographing method, device and electronic device
CN104796615B (en) A kind of big pixel image pickup method, system and the mobile terminal of OIS anti-vibration motor
CN112367465A (en) Image output method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN111917989B (en) Video shooting method and device
CN115379075A (en) Moon shooting method and device, storage medium and shooting equipment

Legal Events

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