CN113591834A - Method for portable electronic device and portable electronic device - Google Patents

Method for portable electronic device and portable electronic device Download PDF

Info

Publication number
CN113591834A
CN113591834A CN202111153992.8A CN202111153992A CN113591834A CN 113591834 A CN113591834 A CN 113591834A CN 202111153992 A CN202111153992 A CN 202111153992A CN 113591834 A CN113591834 A CN 113591834A
Authority
CN
China
Prior art keywords
distance
portable electronic
electronic device
equal
unit
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
Application number
CN202111153992.8A
Other languages
Chinese (zh)
Other versions
CN113591834B (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.)
Netease Youdao Hangzhou Intelligent Technology Co ltd
Original Assignee
Netease Youdao Information Technology Beijing 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 Netease Youdao Information Technology Beijing Co Ltd filed Critical Netease Youdao Information Technology Beijing Co Ltd
Priority to CN202111153992.8A priority Critical patent/CN113591834B/en
Publication of CN113591834A publication Critical patent/CN113591834A/en
Application granted granted Critical
Publication of CN113591834B publication Critical patent/CN113591834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/46Indirect determination of position data
    • G01S17/48Active triangulation systems, i.e. using the transmission and reflection of electromagnetic waves other than radio waves

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Image Input (AREA)

Abstract

The embodiment of the invention provides a method for a portable electronic device and the portable electronic device. The method comprises the following steps: optically detecting a distance between the scanning medium and the portable electronic device; and in response to detecting that the distance satisfies a first condition, controlling the portable electronic device to begin acquiring images on the scanned medium. According to the method, the technical problems that the travel switch is easy to damage and clamp can be solved, the use stability of the whole machine and the use experience of a user can be improved, the light path of the image acquisition unit can be more complete, the view field in image acquisition can be expanded, and better image quality can be obtained.

Description

Method for portable electronic device and portable electronic device
Technical Field
Embodiments of the present invention relate to the field of information technology, and more particularly, to a method for a portable electronic device and a portable electronic device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein may include concepts that could be pursued, but are not necessarily ones that have been previously conceived or pursued. Thus, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section.
Currently, a common portable electronic device such as a dictionary pen and a scanner pen can scan and recognize characters and characters printed on a scan medium, and can also realize translation or interpretation functions through built-in translation software and the like. However, limited by the inherent shape and size of the portable electronic device, the battery capacity inside the portable electronic device is generally small, and in order to reduce power consumption, the related scanning and translation functions need to be turned off in a non-scanning scene to save power, so a dictionary pen, a scanning pen, or the like generally needs to be provided with a trigger switch in a certain form to turn on the scanning and translation functions.
One scan translation triggering method known at present is button triggering, but this method makes the operation of the user cumbersome and difficult. Another triggering method that is used more frequently is a travel switch triggering, such as the portable electronic device 100 shown in fig. 1, which starts scanning and translating functions by pressing the travel switch 110 disposed on the pen point of the portable electronic device 100. In particular, reference may be made to the schematic structural diagram of the travel switch shown in fig. 2. The travel switch shown in fig. 2 may include a travel bracket 111, a spring bracket 112, a spring 113 and a trigger pin 114, and when the portable electronic device is used, by pressing the travel bracket 111 extending out of the body of the portable electronic device, the spring bracket 112 may be driven to move and compress the spring 113, and the trigger pin 114 may be driven to move to toggle a main board circuit connected to the trigger pin 114, so as to start a camera and related software of the system to work. When the functions of scanning or translation and the like are not needed, the functions of power failure and system operation stopping can be realized by stopping pressing the stroke support 111 and pushing the stroke switch to return to the original position by means of the elastic force of the spring 113.
Disclosure of Invention
The travel switch is precise and complex in structure, and may have mechanical hidden dangers such as easy damage and easy clamping, so that the use experience of a user is influenced. Further, the arrangement position of the travel switch affects the light path view of the image capturing unit in the portable electronic device, and the light reflection phenomenon caused by the material and color of the travel switch also affects the recognition effect of the system, which is a very annoying process.
To this end, there is a great need for an improved method for a portable electronic device and a portable electronic device that can both reasonably trigger the portable electronic device to initiate scanning and translation functions to conserve power, and reduce the impact on image acquisition and image recognition processes.
In this context, embodiments of the present invention are intended to provide a method for a portable electronic device and a portable electronic device.
In a first aspect of embodiments of the present invention, there is provided a method for a portable electronic device, comprising: optically detecting a distance between the scanning medium and the portable electronic device; and in response to detecting that the distance satisfies a first condition, controlling the portable electronic device to begin acquiring images on the scanned medium.
In one embodiment of the invention, optically detecting the distance between the scanning medium and the portable electronic device comprises: multiplexing an optical path of an image capture unit in the portable electronic device to detect the distance.
In another embodiment of the invention, the first condition comprises at least one of: the distance is less than or equal to a first distance threshold; the duration of the distance being less than or equal to the first distance threshold is greater than a first preset duration; the speed of the distance reduction is greater than or equal to a first preset speed; and the acceleration at which the distance is reduced is greater than or equal to a first preset acceleration.
In yet another embodiment of the present invention, optically detecting the distance between the scanning medium and the portable electronic device comprises: controlling the portable electronic device to enter a first detection mode and optically detecting the distance using a first detection frequency in the first detection mode; and in response to detecting that the distance satisfies a second condition, controlling the portable electronic device to enter a second detection mode and optically detecting the distance in the second detection mode using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency.
In yet another embodiment of the invention, the second condition comprises at least one of: the distance is less than or equal to a second distance threshold; the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration; the speed of the distance reduction is greater than or equal to a second preset speed; and the acceleration of the distance reduction is greater than or equal to a second preset acceleration.
In one embodiment of the invention, prior to optically detecting the distance between the scanning medium and the portable electronic device, the method further comprises: controlling the portable electronic device to start detecting the distance in response to receiving a ranging trigger signal.
In another embodiment of the present invention, the method further comprises: in response to detecting that the distance satisfies a third condition, controlling the portable electronic device to stop acquiring the image on the scan medium.
In yet another embodiment of the present invention, the third condition comprises at least one of: the distance is greater than or equal to a third distance threshold; the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length; the speed of the distance increase is greater than or equal to a third preset speed; and the acceleration of the distance increase is greater than or equal to a third preset acceleration.
In still another embodiment of the present invention, further comprising: optically detecting the distance using a second detection frequency during controlling the portable electronic device to acquire the image.
In a second aspect of embodiments of the present invention, there is provided a portable electronic device comprising: an image acquisition unit for acquiring an image on a scan medium; and an optical ranging unit disposed on or near the image pickup unit and configured to optically detect a distance between the scan medium and the optical ranging unit to trigger the image pickup unit.
In one embodiment of the invention, the optical ranging unit and the image acquisition unit share an optical path of the image acquisition unit.
In another embodiment of the present invention, the optical ranging unit includes at least one of a time-of-flight TOF ranging module, a structured light ranging module, and an interferometric ranging module.
In a further embodiment of the invention, the optical ranging unit is arranged at a side of the image acquisition unit close to the scan medium.
In still another embodiment of the present invention, further comprising: a housing for enclosing the image acquisition unit and the optical ranging unit; and a ranging trigger switch disposed on the housing and configured to generate a ranging trigger signal that triggers the optical ranging unit to start detecting the distance.
In one embodiment of the present invention, the ranging trigger switch includes at least one of a capacitive switch and a mechanical switch.
In another embodiment of the present invention, the whole of the housing is made of metal or the housing includes a metal part, and the metal part is disposed at least one of an upper part, a middle part, a lower part, and an outer surface of the housing; and the distance measurement trigger switch is connected with the metal shell or the metal part.
In still another embodiment of the present invention, further comprising: a window having a transparent property and disposed at a first end of the housing for resting against the scan medium and for forming a seal against the first end.
In one embodiment of the present invention, further comprising: a flexible circuit board for arranging the image acquisition unit and the optical ranging unit; and a connector connected with the flexible circuit board and used for connection between the flexible circuit board and other circuit boards in the portable electronic device.
In another embodiment of the present invention, the optical ranging apparatus further comprises a processor, which is connected to the image acquisition unit and the optical ranging unit, respectively, and configured to: controlling the optical ranging unit to optically detect the distance; and controlling the image acquisition unit to start acquiring the image on the scanning medium in response to the distance detected by the optical ranging unit satisfying a first condition.
In yet another embodiment of the invention, the first condition comprises at least one of: the distance is less than or equal to a first distance threshold; the duration of the distance being less than or equal to the first distance threshold is greater than a first preset duration; the speed of the distance reduction is greater than or equal to a first preset speed; and the acceleration at which the distance is reduced is greater than or equal to a first preset acceleration.
In yet another embodiment of the invention, in controlling the optical ranging unit to optically detect the distance, the processor is further configured to: controlling the portable electronic device to enter a first detection mode and controlling the optical ranging unit to optically detect the distance using a first detection frequency in the first detection mode; and in response to the distance detected by the optical ranging unit satisfying a second condition, controlling the portable electronic device to enter a second detection mode and in the second detection mode, controlling the optical ranging unit to optically detect the distance using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency.
In one embodiment of the invention, the second condition comprises at least one of: the distance is less than or equal to a second distance threshold; the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration; the speed of the distance reduction is greater than or equal to a second preset speed; and the acceleration of the distance reduction is greater than or equal to a second preset acceleration.
In another embodiment of the invention, the processor is further configured to: controlling the optical ranging unit to start detecting the distance in response to receiving a ranging trigger signal.
In yet another embodiment of the invention, the processor is further configured to: controlling the image acquisition unit to stop acquiring the image on the scanning medium in response to the distance detected by the optical ranging unit satisfying a third condition.
In yet another embodiment of the present invention, the third condition comprises at least one of: the distance is greater than or equal to a third distance threshold; the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length; the speed of the distance increase is greater than or equal to a third preset speed; and the acceleration of the distance increase is greater than or equal to a third preset acceleration.
In one embodiment of the invention, the processor is further configured to: controlling the optical ranging unit to optically detect the distance using a second detection frequency during controlling the image acquisition unit to acquire the image.
According to the method for the portable electronic equipment and the portable electronic equipment, disclosed by the embodiment of the invention, the portable electronic equipment can be triggered to start functions of image acquisition and the like by optically detecting the distance between the scanning medium and the portable electronic equipment without adopting a triggering mode of a travel switch, so that the structure of the portable electronic equipment can be simplified, the use stability of a product is improved, the light path of an image acquisition unit in the portable electronic equipment can be more complete, and the image acquisition range and the image acquisition effect are favorably improved. In some embodiments, the optical path of the image capturing unit in the portable electronic device may be multiplexed for optical detection, so that the limited space of the portable electronic device may be effectively utilized, which is beneficial to meet the application requirements for miniaturization and portability of the portable electronic device. In other embodiments, the portable electronic device may be controlled to enter multiple detection modes, and optical detection may be performed at different detection frequencies, for example, a slower detection frequency may be used when the image capturing function does not need to be triggered to reduce power consumption, and a faster detection frequency may be used when the image capturing function may need to be triggered to implement real-time distance detection, so as to ensure timeliness of starting image capturing and integrity of captured images.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 schematically shows a schematic view of a portable electronic device comprising a travel switch;
fig. 2 schematically shows a structural schematic of the travel switch;
FIG. 3 schematically illustrates a front view of the portable electronic device with and without a travel switch;
FIG. 4 schematically shows an application scenario according to an embodiment of the invention;
FIG. 5 schematically illustrates a flow chart of a method for a portable electronic device according to an embodiment of the present invention;
FIG. 6 schematically illustrates a flow diagram of a method including multiple detection modes, according to an embodiment of the invention;
FIG. 7 schematically illustrates a flow chart of a method for a portable electronic device according to another embodiment of the present invention;
FIG. 8 schematically shows a schematic block diagram of a portable electronic device according to an embodiment of the present invention;
FIG. 9 schematically illustrates a side view schematic of a portable electronic device according to an embodiment of the invention;
FIG. 10 schematically illustrates a schematic view of a portable electronic device including a flexible circuit board in accordance with an embodiment of the present invention; and
fig. 11 schematically shows a schematic view of a portable electronic device comprising a processor according to an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
According to an embodiment of the invention, a method for a portable electronic device and the portable electronic device are provided. Any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor has found that the existing dictionary pens, scanning pens and the like require a travel switch to be arranged on the pen head (or the end part used for abutting against the scanning medium) to trigger the scanning or translation function, and the travel switches are usually arranged on two sides of the pen head (such as shown in fig. 1). For example, in the case of horizontally laid out text, the stroke switches are usually stopped above and below the text during scanning, so that the scanned object can be aligned between the stroke switches on both sides of the pen head. However, the arrangement of the travel switch can shield the view of the image acquisition unit in the directions of the two sides of the pen point, so that the image acquisition range of the image acquisition unit in the vertical direction of the characters is limited. For example, as shown in fig. 3, when the travel switch 310 is provided in the portable electronic device 300, the viewing angle of the image capturing unit 320 on both sides of the front surface of the portable electronic device 300 (in the up-down direction of the text as described above) is θ 1 in the drawing; when the travel switch 310 is not provided in the portable electronic device 300, the view angle of the image capturing unit 320 may be enlarged to θ 2 in the drawing. Further, the pen head needs to be opened for moving the travel switch, which is not favorable for protecting the pen head from dust and water, and also poses a threat to the safety and reliability of the internal components of the pen body.
The present inventors have also found that when a user uses a portable electronic device to perform scanning operations, etc., the user typically brings the device close to or into contact with the scanning medium in order to accurately locate the desired content to be scanned, and in the process, the distance between the portable electronic device and the scanning medium changes significantly. If the characteristics of the distance change at this stage are utilized to realize the functions of triggering the portable electronic equipment to start scanning and the like, the use habit of the user is met, and various problems caused by the arrangement of the travel switch can be effectively avoided.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring first to the application scenario diagram shown in fig. 4, as can be seen from the side view of the portable electronic device 410 shown in fig. 4, during the use of the user, the front side of the portable electronic device 410 may be directed toward the eyes of the user, and the back side of the portable electronic device 410 and the pen point may be directed toward the scanning medium 420. The portable electronic device according to the embodiment of the present invention may be configured to trigger the image capturing operation when the portable electronic device 410 is detected to be in contact with the scanning medium 420 (i.e. the distance is zero), or may be configured to trigger the image capturing operation when the portable electronic device 410 is detected to be close to the scanning medium 420 for a certain distance according to application requirements. According to the arrangement, the portable electronic equipment provided by the embodiment of the invention can be applied to an application scene that a user is accustomed to contact scanning, and can also be applied to an application scene that the user is accustomed to non-contact scanning, so that the application scene range is favorably expanded, and the use experience of the user is improved.
Furthermore, the portable electronic device provided by the embodiment of the invention does not need to be provided with a travel switch, so that the portable electronic device provided by the embodiment of the invention can meet the application requirement of scanning multiple lines of characters in some application scenes. In other application scenarios, because the visual field ranges on the two sides of the front surface of the portable electronic device of the embodiment of the present invention have adjustable spaces, the posture limitation of the user when using the portable electronic device can be reduced, so that the user can select the back surface of the portable electronic device or the two sides of the front surface to scan in the direction of the text arrangement according to needs or habits.
Exemplary method
A method for a portable electronic device according to an exemplary embodiment of the invention is described below with reference to fig. 5 in connection with the application scenario of fig. 4. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Fig. 5 schematically shows a flow chart of a method for a portable electronic device according to an embodiment of the invention. As shown in fig. 5, method 500 may include: in step 510, a distance between the scanning medium and the portable electronic device may be optically detected. The optical detection may be to detect the distance to an object having light-tight property by emitting light capable of penetrating through the object having light-transmissive property. The principle of optical detection is understood to mean that the detection light is emitted and reflected back via an opaque medium, and the distance is determined from the time taken for the detection light to travel during emission and reception. In some embodiments, the light transmissive property material may include at least one of glass, lens, transparent resin, and the like. In other embodiments, the substance having opaque properties may comprise a scanning medium. In some application scenarios, the scanning medium may comprise a paper-based or ink screen, or the like. In other application scenarios, the scanning medium may comprise an electronic screen (non-ink screen) type medium. In still other embodiments, optically detecting the distance between the scanning medium and the portable electronic device may be accomplished by an optical detection device coupled to the portable electronic device or disposed on a surface or within the portable electronic device.
For the distance measurement method without the light transmission detection function, such as ultrasonic distance measurement, the emitted ultrasonic waves are shielded by the closed pen head structure or the window structure, so that the distance between the scanning medium and the portable electronic device cannot be detected or cannot be accurately detected. Compared with a distance measuring method without a light transmission detection function, the optical detection method can measure the distance through a light transmission property material, so that the method can be better applied to portable electronic equipment with light transmission structures such as a transparent pen point or a transparent window, and accurate detection of the distance between a scanning medium and the portable electronic equipment is realized.
In some embodiments, the portable electronic device may include a wand, a dictionary pen, a point-and-read pen, or other portable electronic device. In other embodiments, the distance between the scanning medium and the portable electronic device may be the distance between the scanning medium and any location on the portable electronic device. In still other embodiments, the distance between the scanning medium and the portable electronic device may be the distance between the scanning medium and some component of the portable electronic device.
In one embodiment of the present invention, step 510 may include: the optical path of an image capture unit in the portable electronic device is multiplexed to detect the distance between the scanning medium and the portable electronic device. In some embodiments, multiplexing herein may be understood as reuse or common use. The optical path of the image capturing unit may include a propagation path of light required by the image capturing unit to capture an image, and may include a path of light entering the image capturing unit through a transparent structure (e.g., a transparent pen tip, a transparent window for scanning, etc.) of the portable electronic device. By multiplexing the light path of the image acquisition unit, the purpose of optically detecting the distance can be realized, and the existing structural space of the portable electronic equipment can be fully utilized without additionally increasing the volume of the portable electronic equipment.
Next, in step 520, the portable electronic device may be controlled to start acquiring an image on the scanned medium in response to detecting that the distance satisfies a first condition. In some embodiments, the scan medium may carry text content to be scanned or translated thereon, and capturing an image of the scan medium may include capturing an image of the text content carried by the scan medium.
In another embodiment of the invention, the first condition described hereinabove may comprise at least one of: the distance is less than or equal to a first distance threshold; the duration of the distance less than or equal to the first distance threshold is greater than a first preset duration; the speed of distance reduction is greater than or equal to a first preset speed; and the acceleration of the distance decrease is greater than or equal to a first preset acceleration.
The first distance threshold described hereinabove may be set as desired. For example, in one embodiment, the first distance threshold may be set to zero. In another embodiment, the first distance threshold may be set to 10mm, or 15mm, or 20mm, or 25mm, etc. In other application scenarios, for example, when a user uses the portable electronic device, actions such as shaking, pen turning, and the like, or falling may occur, but the user does not want to scan or look up words, and for example, a child may inadvertently pick up the portable electronic device for playing or fidgeting, and by setting a first condition that a duration of a distance less than or equal to a first distance threshold is greater than a first preset duration, a staying time of the portable electronic device when approaching a scanning medium may be determined to determine whether the user has action intentions such as scanning, so as to effectively avoid problems such as device loss and power consumption that may be caused by the portable electronic device unintentionally frequently starting an image capturing function. The first preset duration can be set according to application requirements.
In still other application scenarios, when a user uses the portable electronic device to perform operations such as scanning or translation, there may be a process of rapidly lowering the device when selecting words by aiming at a scanning medium, and in this case, the lowering speed of the portable electronic device may be determined by setting a condition of a first preset speed, so as to achieve the purpose of determining whether to start an image capturing function. In still other embodiments, whether the portable electronic device is accelerated to approach the scanning medium may be determined according to whether the acceleration of the distance reduction is greater than or equal to a first preset acceleration, so as to trigger the portable electronic device to start capturing the image.
While the method for a portable electronic device of the embodiments of the present invention has been described above in connection with fig. 5, it will be understood by those skilled in the art that the above description is intended to be illustrative, and not restrictive. For example, the step 510 may continuously perform the optical ranging with a preset detection frequency, or may perform the optical ranging by switching different detection frequencies according to different states of the portable electronic device, which will be described in detail with reference to fig. 6.
FIG. 6 schematically shows a flow diagram of a method including multiple detection modes according to an embodiment of the invention. As will be understood by those skilled in the art from the following description, the method 600 shown in fig. 6 is a concrete expression of the method 500 described above in conjunction with fig. 5, and the steps 610 and 620 are concrete embodiments of the step 510, so that the description of the method 500 in the foregoing can also be applied to the description of the method 600 in the following.
As shown in fig. 6, method 600 may include: in step 610, the portable electronic device may be controlled to enter a first detection mode and optically detect a distance between the scan medium and the portable electronic device using a first detection frequency in the first detection mode. In some application scenarios, the first detection mode may be set as a default detection mode of the portable electronic device, and the first detection mode may be automatically entered after the portable electronic device is powered on. In other application scenarios, the first detection mode may be a detection mode that is set by user-independent selection. The detection frequency may include a frequency at which the detection light is emitted at fixed intervals. For example, in some embodiments, the first detection frequency may be 200 milliseconds (ms)/time, i.e., the detection light is emitted every 200ms for optical detection. In other embodiments, the first detection frequency may be 100 ms/time.
Next, in step 620, in response to detecting that the distance satisfies a second condition, the portable electronic device may be controlled to enter a second detection mode, and optically detect the distance in the second detection mode using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency. In yet another embodiment of the invention, the second condition may comprise at least one of: the distance is less than or equal to a second distance threshold; the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration; the speed of distance reduction is greater than or equal to a second preset speed; and the acceleration of the distance decrease is greater than or equal to a second preset acceleration.
The second distance threshold described hereinabove may be set as desired. For example, in one embodiment, the second distance threshold may be set at 30mm, or 35mm, or 40mm, etc. In other embodiments, the second distance threshold may be greater than the first distance threshold for distance monitoring with a faster detection frequency before triggering the portable electronic device to acquire images. The second preset duration can be set according to application requirements. The application scenario of the second preset duration may be the same as or similar to the application scenario described in the foregoing for the first preset duration condition, and is not described herein again. In other application scenarios, when a user needs to perform operations such as scanning or translation using the portable electronic device, the portable electronic device needs to be brought close to the scanning medium, and therefore, the purpose of determining whether the portable electronic device is brought close to or accelerated to be brought close to the scanning medium can be achieved by setting the condition of the second preset speed and/or the second preset acceleration.
In some embodiments, the second detection frequency may be 50 milliseconds (ms)/time, i.e., the detection light is emitted every 50ms for optical detection. In other embodiments, the second detection frequency may be 5-30 ms/time, for example, 5 ms/time, 10 ms/time, 15 ms/time, 20 ms/time, 25 ms/time, 30 ms/time. In still other embodiments, the second detection frequency may be set according to a maximum detection frequency of the optical detection device. The second detection frequency is faster than the first detection frequency, which means that the interval time for emitting the detection light at the second detection frequency is shorter than the interval time for emitting the light at the first detection frequency.
By setting the second detection frequency to be faster than the first detection frequency, the portable electronic equipment can perform distance monitoring at a slower detection frequency under the condition of no requirements such as scanning or translation, and the like, so that the electric quantity can be saved; and under the condition that the scanning or translation operation requirement exists is detected, for example, when the portable electronic equipment is close to a scanning medium, accurate and real-time distance monitoring can be carried out at a relatively quick detection frequency, so that image acquisition operation can be triggered timely, and the problems of character missing during scanning, incomplete acquired images and the like caused by delayed triggering are avoided.
As further shown in fig. 6, the flow may proceed to step 630, and the portable electronic device may be controlled to begin acquiring an image on the scanned medium in response to detecting that the distance satisfies a first condition. In step 630, the portable electronic device may be controlled to start capturing an image in response to the detected distance in the second detection mode satisfying a first condition. Step 630 is a specific implementation of step 520 described above with reference to fig. 5, and the first condition and the like have been described in detail above and are not described herein again.
As described above with reference to fig. 6, the method including multiple detection modes according to the embodiment of the present invention is exemplarily described, it can be understood that, by setting multiple detection modes according to the embodiment of the present invention, different detection modes can be controlled to enter according to different states of the portable electronic device, and a detection mode with a faster detection frequency can be entered before image acquisition is started, so as to achieve the dual effects of saving electric quantity and triggering image acquisition in time. The above description is exemplary rather than limiting in nature. For example, the first detection frequency may not be limited to 100 ms/time or 200 ms/time, and may be set as needed. Also for example, the detection mode may not be limited to the above-described first detection mode and second detection mode, but may be set more or less as needed. The method according to the embodiment of the present invention may not be limited to the steps shown in the drawings, and other steps may be provided as needed, which will be exemplarily described below with reference to fig. 7.
Fig. 7 schematically shows a flow chart of a method for a portable electronic device according to another embodiment of the invention. As shown in fig. 7, method 700 may include: in step 710, the portable electronic device may be controlled to start detecting a distance between the scanning medium and the portable electronic device in response to receiving the ranging trigger signal. In some embodiments, the ranging trigger signal may be delivered in the form of an electrical signal. In other embodiments, the ranging trigger signal may be triggered and generated via a ranging trigger switch, and the ranging trigger switch may be connected to the portable electronic device or disposed on the portable electronic device body. Controlling the ranging operation by receiving the ranging trigger signal may enable starting the optical ranging as needed to further save power consumption by reducing the ranging duration and the number of light emissions.
Next, in step 720, a distance between the scanning medium and the portable electronic device may be optically detected. Step 720 has been described in detail in the foregoing with reference to step 510 shown in fig. 5, step 610 shown in fig. 6, and step 620, which are not described herein again.
The flow may then proceed to step 730, where the portable electronic device may be controlled to begin acquiring an image on the scanned medium in response to detecting that the distance satisfies a first condition. Step 730 is the same as or similar to step 520 described above in conjunction with fig. 5 and step 630 shown in fig. 6, and is not described here again.
As further shown in fig. 7, in step 740, the portable electronic device may be controlled to stop acquiring the image on the scan medium in response to detecting that the distance satisfies a third condition. In yet another embodiment of the invention, the third condition may comprise at least one of: the distance is greater than or equal to a third distance threshold; the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length; the distance increasing speed is greater than or equal to a third preset speed; and the acceleration of the distance increase is greater than or equal to a third preset acceleration.
The third distance threshold described hereinabove may be set as desired. For example, in one embodiment, the third distance threshold may be set to zero. In another embodiment, the third distance threshold may be set to 10mm, or 15mm, or 20mm, or 25mm, etc. In other application scenarios, for example, a user may shake during operations such as scanning using the portable electronic device, so that the portable electronic device may briefly deviate from the scanning medium, and by setting the third preset duration, the scanning function of the portable electronic device may be effectively prevented from being stopped prematurely, or problems such as device loss and image acquisition failure, which may be caused by frequently turning on and off the image acquisition function, may occur. The third preset time period can be set according to application requirements.
In still other application scenarios, when the user stops operations such as scanning or translating the portable electronic device, there may be a process of quickly lifting or accelerating the device, and in this case, setting the determination condition of the third preset speed and/or the third preset acceleration may be beneficial to accurately determine the time point at which the image capture is stopped.
In yet another embodiment of the present invention, the method 700 may further comprise: the distance between the scan medium and the portable electronic device may be optically detected using a second detection frequency during controlling the portable electronic device to capture the image. The second detection frequency may be the same as or similar to the second detection frequency described above with reference to fig. 6, and will not be described herein again. Further, it should be understood that, during the process of controlling the portable electronic device to capture an image, the optical ranging is performed with a faster detection frequency, which is beneficial to monitoring the distance change in real time, thereby further improving the accuracy and reliability of triggering the image capture stop operation. The period during which the image is acquired may include a time period between the start of the image acquisition and the stop of the image acquisition.
While the method for a portable electronic device according to another embodiment of the present invention is described above with reference to fig. 7, it should be understood that the above description is not a limitation of the embodiment of the present invention. For example, in yet another embodiment, the optical ranging operation may be stopped after the portable electronic device is controlled to stop acquiring images. In still another embodiment, after the portable electronic device is controlled to stop acquiring the image, the portable electronic device may be controlled to enter the second detection mode and the first detection mode according to the state, or directly enter the first detection mode to perform distance monitoring at a low detection frequency, so that the next image acquisition operation can be prepared to be triggered at any time, and accurate monitoring and triggering of continuous image acquisition operations are facilitated.
Exemplary device
Having introduced the method of an exemplary embodiment of the present invention, a portable electronic device of an exemplary embodiment of the present invention is next described with reference to fig. 8.
Fig. 8 schematically shows a schematic block diagram of a portable electronic device according to an embodiment of the present invention. As shown in fig. 8, there is provided a portable electronic device 800, which may include: an image acquisition unit 810, which may be used to acquire images on a scanned medium; and an optical ranging unit 820 which may be disposed on the image pickup unit 810 or in the vicinity of the image pickup unit 810, and serves to optically detect a distance between the scan medium and the optical ranging unit 820 to trigger the image pickup unit 810.
In some embodiments, image acquisition unit 810 may include a camera. In other embodiments, the image capture unit 810 may further include an image sensor, which may be connected to the camera and may convert an optical image captured via the camera into a digital image for recognition.
In still other embodiments, the optical ranging unit 820 may include at least one of a time-of-flight TOF ranging module, a structured light ranging module, an interferometric ranging module, and the like. In one embodiment, the time of flight TOF (time of flight) ranging module may include a transmitting module and a receiving module, which may transmit, for example, an infrared light source to the object to be measured through the transmitting module, and the light waves are collected by a receiving module (e.g., a sensor) in the TOF ranging module after being reflected back by the object, so as to calculate the distance between the object to be measured and the TOF ranging module by calculating the pulse difference or the time difference of the received light waves.
In another embodiment, the structured light ranging module may include a laser emitting module and a laser collecting module, and the laser emitting module may be used to project a near-infrared laser beam with structural features onto the object to be measured, and the near-infrared laser beam is collected by a special laser collecting module (e.g., an infrared camera), and the collected image information is converted by combining with a triangulation principle, so as to obtain the three-dimensional structural features of the object to be measured and the distance between the three-dimensional structural features and the structured light ranging module.
In another embodiment, the interferometric ranging module may include a laser source and a detector, the laser source splits the same light beam into two beams to be emitted, wherein one beam is unchanged, and the other beam is reflected by the object and then combined with the first beam, and then the two beams are detected by the photodetector. In some application scenarios, the interferometric ranging module may be used to measure a relative distance, i.e., may be used to detect a change in distance between the portable electronic device and the scanning medium.
In some embodiments, the optical ranging unit 820 may be directly or indirectly connected with the image acquisition unit 810 to trigger the image acquisition unit 810 to start or stop acquiring images. In other embodiments, the placement of the optical ranging unit 820 on the image capturing unit 810 may include the optical ranging unit 820 being directly connected to the image capturing unit 810, or the optical ranging unit 820 being integrated with the image capturing unit 810. In other embodiments, when the optical ranging unit 820 is integrated with the image capturing unit 810, a camera in the image capturing unit 810 may be multiplexed to serve as a receiving module or a laser capturing module of the optical ranging unit 820.
In still other embodiments, the placement of the optical ranging unit 820 near the image capturing unit 810 may include placing the optical ranging unit 820 anywhere around above, below, to the left, or to the right of the image capturing unit 810. In one embodiment of the present invention, the optical ranging unit 820 and the image capturing unit 810 may share an optical path of the image capturing unit 810. The optical path of the image capturing unit 810 is described in the foregoing in combination with the method, and is not described herein again. In another embodiment, in order to realize that the optical ranging unit 820 shares the optical path of the image capturing unit 810 with the image capturing unit 810, the optical ranging unit 820 may be disposed within the optical path coverage of the image capturing unit 810.
According to the arrangement, the distance measuring effect of the embodiment of the invention can be realized by only utilizing the existing structural space of the portable electronic device 800 and arranging the optical distance measuring unit 820 in the light path coverage range of the image acquisition unit 810 without additionally increasing the volume of the portable electronic device 800, so that the portable electronic device according to the embodiment of the invention has the characteristics of simple structure, low manufacturing cost and the like.
While the portable electronic device according to the embodiment of the present invention is generally described above with reference to fig. 8, it will be understood by those skilled in the art that the portable electronic device in the illustration is exemplary and not restrictive, for example, in other embodiments, the portable electronic device may further include a housing, a ranging trigger switch, and the like, which will be described below with reference to fig. 9.
FIG. 9 schematically shows a side view schematic of a portable electronic device according to an embodiment of the invention. As shown in fig. 9, the portable electronic device 900 may include: an image capture unit 810 and an optical ranging unit 820, in one embodiment of the invention, the optical ranging unit 820 may be disposed on a side of the image capture unit 810 that is proximate to the scan medium (e.g., in the direction of the arrow shown in the figure). The cameras in image acquisition unit 810 are typically arranged to face in the direction of the scanned media for image acquisition purposes such that image acquisition unit 810 has one side facing in the direction of the scanned media and another side facing away from the direction of the scanned media. The side of the image capture unit 810 that is closer to the scan medium may be the side that faces the direction of the scan medium (as indicated by the arrow in the illustration).
According to such an arrangement, it can be ensured that the optical ranging unit 820 multiplexes the optical paths of the image pickup unit 810. In addition, when the optical ranging unit 820 is disposed, the optical ranging unit 820 may be disposed at an edge of an image capturing range (e.g., an edge of the viewing angle θ 2 shown in fig. 3) or outside the image capturing range (e.g., outside the viewing angle θ 2 shown in fig. 3) to avoid the optical ranging unit 820 from affecting the image capturing effect.
As shown in fig. 9, in one embodiment, the portable electronic device 900 may further include: a housing 910 that may be used to enclose the image acquisition unit 810 and the optical ranging unit 820; and a ranging trigger switch 920, which may be disposed on the case 910, and generates a ranging trigger signal that triggers the optical ranging unit 820 to start detecting the distance. Packaging may include disposing the image acquisition unit 810 and the optical ranging unit 820 within the housing 910.
The shape of the housing 910 described above may be a regular or irregular shape such as a long bar, a flat shape, a cylinder, a rectangular parallelepiped, a cone, etc. The housing 910 may be transparent or opaque as desired. In some embodiments, the housing 910 has a first end for resting against a scanning medium to facilitate positioning and capturing images of text carried on the scanning medium. In other embodiments, the housing 910 may also have a second end for grasping. In yet another embodiment, the middle portion of the housing 910 is used for grasping, while the second end thereof is used for displaying text query results.
In one embodiment of the present invention, the ranging trigger switch 920 may include at least one of a capacitive switch, a mechanical switch, and the like. The capacitive switch may include a capacitive touch switch, a capacitive sensing switch (or capacitive proximity switch), and the like. The capacitive switch can penetrate through an insulating material (such as a glass material, a plastic material and the like) shell by more than 20mm, can accurately detect effective touch or approach of a finger, and has the characteristics of high sensitivity, good stability, strong reliability and the like. The mechanical switch may comprise a switch in the form of a key, button, or the like. This patent does not limit where the distance measurement trigger switch 920 is disposed on the housing 910, and preferably, the distance measurement trigger switch 920 is disposed on both sides or an upper surface of the housing 910.
In some embodiments, the optical ranging unit 820 disposed on the housing 910 may include being disposed at least one of an outer surface, an inner surface, an upper portion, a middle portion, a lower portion, etc. of the housing 910. In other embodiments, the optical ranging unit 820 may be integrally connected with the housing 910 or detachably connected. In still other embodiments, the range trigger switch 920 may be triggered to generate the range trigger signal by pressing, touching, non-contact sensing, or the like.
In another embodiment of the present invention, the whole of the housing 910 may be made of a metal material or the housing 910 includes a metal portion, and the metal portion may be disposed at least one of an upper portion, a middle portion, a lower portion, and an outer surface of the housing 910; the distance measurement trigger switch 920 may be connected to the case 910 made of a metal material or a metal part. In some embodiments, the metal portion may include a metal film, which may be affixed to an outer surface (e.g., an integral outer surface, an upper outer surface, a middle outer surface, a lower outer surface, etc.) of the housing 910. In other embodiments, the metal portion may be connected to other portions of the housing 910 to form the complete housing 910. The distance measurement trigger switch 920 may be connected to the metal housing 910 or the metal portion by direct connection or electrical connection.
As further shown in fig. 9, in yet another embodiment of the present invention, the portable electronic device 900 may further comprise: a window 930, which may have transparent properties, is disposed at the first end of the housing 910 for resting against the scanned media and for forming a seal against the first end. In some embodiments, the window 930 may be made of glass, lens, resin, or the like. In other embodiments, the transparent property described above may also be understood as a light transmitting property. According to the portable electronic device of the embodiment of the invention, as the travel switch is not required to be arranged, the first end of the shell 910, which is used for abutting against the scanning medium, can be arranged to be a fully-enclosed structure, which is beneficial to realizing dust prevention, water prevention and effective protection of internal devices of the portable electronic device 900.
Further, in still other embodiments, the size and relative position of the window 930 and the image capturing unit 810 may be adjusted to expand the image capturing range. For example, in one embodiment, the sides of the image acquisition units 810 adjacent the scan medium (in the direction of the arrows as shown) may all be arranged in a window enclosing configuration, and an image acquisition field of view angle of 180 ° may be achieved. The window 930 arranged at the first end of the housing 910 is of a closed structure, so that the flexibility and controllability of adjusting the image acquisition range are improved, and the application requirements of various image acquisition ranges can be met.
While the portable electronic device according to the embodiment of the present invention is described above with reference to fig. 9, it is understood that the portable electronic device 900 shown in the figure is exemplary, for example, the optical ranging unit 820 is not limited to be disposed on the front surface of the housing 910 in the illustration, and may be disposed on the side surface of the housing 910, or around the circumference, etc., as required. The number of the optical ranging units 820 may not be limited to one of the illustrations, and may be more as needed. For example, the housing 910 may not be limited to only enclose the image capturing unit 810 and the optical ranging unit 820, but may also be used to enclose more components.
Fig. 10 schematically shows a schematic view of a portable electronic device comprising a flexible circuit board according to an embodiment of the invention. As shown in fig. 10, the portable electronic device 1000 may include a flexible circuit board 1010, and an image capture unit 810 and an optical ranging unit 820 disposed on the flexible circuit board 1010. The flexible circuit board 1010 may be used to arrange the image capturing unit 810 and the optical ranging unit 820, which is beneficial to adjusting the angles of the image capturing unit 810 and the optical ranging unit 820, thereby achieving better ranging effect and image capturing effect. In some embodiments, the flexible circuit board 1010, the image acquisition unit 810, and the optical ranging unit 820 may all be enclosed within a housing. In other embodiments, the portable electronic device 1000 may further include a fill light unit for emitting a light source onto the scanning medium to ensure brightness when the image is captured. The light supplement unit may be disposed on the flexible circuit board 1010 so as to achieve desired angle settings of the image collecting unit 810, the optical ranging unit 820, and the light supplement unit.
As further shown in fig. 10, the portable electronic device 1000 may also include a connector 1020 that may be connected to the flexible circuit board 1010 and used for connection between the flexible circuit board 1010 and other circuit boards (e.g., printed circuit boards, etc.) in the portable electronic device 1000.
While the portable electronic device including the flexible circuit board according to the embodiment of the present invention is exemplarily described above with reference to fig. 10, it is understood that the portable electronic device may not be limited to include only the image capturing unit, the optical ranging unit, the flexible circuit board, and the like, and may further include a processor, for example. A portable electronic device comprising a processor will be described below.
Fig. 11 schematically shows a schematic view of a portable electronic device comprising a processor according to an embodiment of the invention. As shown in fig. 11, the portable electronic device 1100 may include an image acquisition unit 810 and an optical ranging unit 820, and in one embodiment of the invention, the portable electronic device 1100 may further include a processor 1110, which may be connected with the image acquisition unit 810 and the optical ranging unit 820, respectively, and may be configured to: controlling the optical ranging unit 820 to optically detect a distance; and controlling the image pickup unit 810 to start picking up an image on the scan medium in response to the distance detected by the optical ranging unit 820 satisfying a first condition.
In one embodiment of the invention, the first condition may comprise at least one of: the distance is less than or equal to a first distance threshold; the duration of the distance less than or equal to the first distance threshold is greater than a first preset duration; the speed of distance reduction is greater than or equal to a first preset speed; and the acceleration of the distance decrease is greater than or equal to a first preset acceleration.
In another embodiment of the present invention, in controlling the optical ranging unit 820 to optically detect the distance, the processor 1110 may be further configured to: controlling the portable electronic device 1100 to enter a first detection mode, and controlling the optical ranging unit 820 to optically detect a distance using a first detection frequency in the first detection mode; and in response to the distance detected by the optical ranging unit 820 satisfying a second condition, controlling the portable electronic device 1100 to enter a second detection mode, and in the second detection mode, controlling the optical ranging unit 820 to optically detect the distance using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency.
In one embodiment of the invention, the second condition may comprise at least one of: the distance is less than or equal to a second distance threshold; the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration; the speed of distance reduction is greater than or equal to a second preset speed; and the acceleration of the distance decrease is greater than or equal to a second preset acceleration.
In another embodiment of the present invention, the processor 1110 may be further configured to: in response to receiving the ranging trigger signal, the optical ranging unit 820 is controlled to start detecting the distance.
In yet another embodiment of the present invention, the processor 1110 may be further configured to: in response to the distance detected by the optical ranging unit 820 satisfying the third condition, the image pickup unit 810 is controlled to stop picking up the image on the scan medium.
In yet another embodiment of the present invention, the third condition may include at least one of: the distance is greater than or equal to a third distance threshold; the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length; the distance increasing speed is greater than or equal to a third preset speed; and the acceleration of the distance increase is greater than or equal to a third preset acceleration.
In one embodiment of the invention, the processor 1110 may be further configured to: during the control of the image pickup unit 810 to pick up an image, the optical ranging unit 820 is controlled to optically detect a distance using a second detection frequency.
The above configuration of the processor 1110 of the portable electronic device has been described in detail in the foregoing with reference to the method for a portable electronic device of the present invention shown in fig. 5 to 7, and will not be described again here.
Through the above description of the method for the portable electronic device, the technical scheme of the portable electronic device and the embodiments thereof, it should be understood by those skilled in the art that the method of the embodiment of the present invention uses a way of optically detecting a distance to replace a travel switch to trigger functions of the portable electronic device, such as image acquisition, etc., so that not only the structure of the portable electronic device can be simplified, but also the technical problems of easy damage and easy card of the travel switch can be fundamentally solved, which is beneficial to improving the use stability of the whole device and the use experience of the user; and the light path of the image acquisition unit can be more complete, thereby being beneficial to expanding the visual field during image acquisition and obtaining better image quality. In some embodiments, optical ranging is realized by multiplexing the optical path of the image acquisition unit, so that the overall space of the portable electronic equipment can be saved. In other embodiments, the safety of each device in the portable electronic equipment can be improved through the fully-closed pen point, so that the reliability of the whole electronic equipment is improved, the image acquisition range can be conveniently adjusted by the closed structure of the transparent window, and various application requirements are met.
It should be noted that although in the above detailed description several units or means of the portable electronic device are mentioned, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the devices described above may be embodied in one device, according to embodiments of the invention. Conversely, the features and functions of one apparatus described above may be further divided into embodiments by a plurality of apparatuses.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change the order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Use of the verbs "comprise", "comprise" and their conjugations in this application does not exclude the presence of elements or steps other than those stated in this application. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims (26)

1. A method for a portable electronic device, comprising:
optically detecting a distance between the scanning medium and the portable electronic device; and
in response to detecting that the distance satisfies a first condition, controlling the portable electronic device to begin acquiring images on the scanned medium.
2. The method of claim 1, wherein optically detecting a distance between the scanning medium and the portable electronic device comprises:
multiplexing an optical path of an image capture unit in the portable electronic device to detect the distance.
3. The method of claim 1, wherein the first condition comprises at least one of:
the distance is less than or equal to a first distance threshold;
the duration of the distance being less than or equal to the first distance threshold is greater than a first preset duration;
the speed of the distance reduction is greater than or equal to a first preset speed; and
the acceleration at which the distance is reduced is greater than or equal to a first preset acceleration.
4. The method of any of claims 1-3, wherein optically detecting the distance between the scanning medium and the portable electronic device comprises:
controlling the portable electronic device to enter a first detection mode and optically detecting the distance using a first detection frequency in the first detection mode; and
in response to detecting that the distance satisfies a second condition, controlling the portable electronic device to enter a second detection mode and optically detecting the distance in the second detection mode using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency.
5. The method of claim 4, wherein the second condition comprises at least one of:
the distance is less than or equal to a second distance threshold;
the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration;
the speed of the distance reduction is greater than or equal to a second preset speed; and
the acceleration at which the distance is reduced is greater than or equal to a second preset acceleration.
6. The method of claim 1, wherein prior to optically detecting the distance between the scanning medium and the portable electronic device, the method further comprises:
controlling the portable electronic device to start detecting the distance in response to receiving a ranging trigger signal.
7. The method of any of claims 1-3 or 6, further comprising:
in response to detecting that the distance satisfies a third condition, controlling the portable electronic device to stop acquiring the image on the scan medium.
8. The method of claim 7, wherein the third condition comprises at least one of:
the distance is greater than or equal to a third distance threshold;
the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length;
the speed of the distance increase is greater than or equal to a third preset speed; and
the acceleration of the distance increase is greater than or equal to a third preset acceleration.
9. The method of claim 7, further comprising:
optically detecting the distance using a second detection frequency during controlling the portable electronic device to acquire the image.
10. A portable electronic device, comprising:
an image acquisition unit for acquiring an image on a scan medium; and
an optical ranging unit disposed on or near the image capturing unit and configured to optically detect a distance between the scan medium and the optical ranging unit to trigger the image capturing unit.
11. The portable electronic device of claim 10, wherein the optical ranging unit shares an optical path of the image acquisition unit with the image acquisition unit.
12. The portable electronic device of claim 10, wherein the optical ranging unit comprises at least one of a time-of-flight TOF ranging module, a structured light ranging module, an interferometric ranging module.
13. The portable electronic device of any of claims 10-12, wherein the optical ranging unit is arranged on a side of the image acquisition unit near the scan medium.
14. The portable electronic device of claim 10, further comprising:
a housing for enclosing the image acquisition unit and the optical ranging unit; and
a ranging trigger switch disposed on the housing and configured to generate a ranging trigger signal that triggers the optical ranging unit to start detecting the distance.
15. The portable electronic device of claim 14, wherein the ranging trigger switch comprises at least one of a capacitive switch, a mechanical switch.
16. A portable electronic device according to claim 14 or 15, wherein
The whole body of the shell is made of metal or the shell comprises a metal part, and the metal part is arranged at least one of the upper part, the middle part, the lower part and the outer surface of the shell; and is
The distance measurement trigger switch is connected with the metal shell or the metal part.
17. The portable electronic device of claim 14, further comprising:
a window having a transparent property and disposed at a first end of the housing for resting against the scan medium and for forming a seal against the first end.
18. The portable electronic device of claim 10, further comprising:
a flexible circuit board for arranging the image acquisition unit and the optical ranging unit; and
a connector connected with the flexible circuit board and used for connection between the flexible circuit board and other circuit boards in the portable electronic device.
19. The portable electronic device of claim 10, further comprising a processor coupled to the image acquisition unit and the optical ranging unit, respectively, and configured to:
controlling the optical ranging unit to optically detect the distance; and
controlling the image acquisition unit to start acquiring an image on the scan medium in response to the distance detected by the optical ranging unit satisfying a first condition.
20. The portable electronic device of claim 19, wherein the first condition comprises at least one of:
the distance is less than or equal to a first distance threshold;
the duration of the distance being less than or equal to the first distance threshold is greater than a first preset duration;
the speed of the distance reduction is greater than or equal to a first preset speed; and
the acceleration at which the distance is reduced is greater than or equal to a first preset acceleration.
21. The portable electronic device of claim 19, wherein, in controlling the optical ranging unit to optically detect the distance, the processor is further configured to:
controlling the portable electronic device to enter a first detection mode and controlling the optical ranging unit to optically detect the distance using a first detection frequency in the first detection mode; and
in response to the distance detected by the optical ranging unit satisfying a second condition, controlling the portable electronic device to enter a second detection mode, and in the second detection mode, controlling the optical ranging unit to optically detect the distance using a second detection frequency, wherein the second detection frequency is faster than the first detection frequency.
22. The portable electronic device of claim 21, wherein the second condition comprises at least one of:
the distance is less than or equal to a second distance threshold;
the duration of the distance less than or equal to the second distance threshold is greater than a second preset duration;
the speed of the distance reduction is greater than or equal to a second preset speed; and
the acceleration at which the distance is reduced is greater than or equal to a second preset acceleration.
23. The portable electronic device of claim 19, wherein the processor is further configured to:
controlling the optical ranging unit to start detecting the distance in response to receiving a ranging trigger signal.
24. The portable electronic device of any of claims 19-23, wherein the processor is further configured to:
controlling the image acquisition unit to stop acquiring the image on the scanning medium in response to the distance detected by the optical ranging unit satisfying a third condition.
25. The portable electronic device of claim 24, wherein the third condition comprises at least one of:
the distance is greater than or equal to a third distance threshold;
the time length of the distance greater than or equal to the third distance threshold is greater than a third preset time length;
the speed of the distance increase is greater than or equal to a third preset speed; and
the acceleration of the distance increase is greater than or equal to a third preset acceleration.
26. The portable electronic device of claim 24, wherein the processor is further configured to:
controlling the optical ranging unit to optically detect the distance using a second detection frequency during controlling the image acquisition unit to acquire the image.
CN202111153992.8A 2021-09-29 2021-09-29 Method for portable electronic device and portable electronic device Active CN113591834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111153992.8A CN113591834B (en) 2021-09-29 2021-09-29 Method for portable electronic device and portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111153992.8A CN113591834B (en) 2021-09-29 2021-09-29 Method for portable electronic device and portable electronic device

Publications (2)

Publication Number Publication Date
CN113591834A true CN113591834A (en) 2021-11-02
CN113591834B CN113591834B (en) 2022-07-12

Family

ID=78242502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111153992.8A Active CN113591834B (en) 2021-09-29 2021-09-29 Method for portable electronic device and portable electronic device

Country Status (1)

Country Link
CN (1) CN113591834B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5125736A (en) * 1990-11-13 1992-06-30 Harris Corporation Optical range finder
CN101828381A (en) * 2007-07-13 2010-09-08 索尼爱立信移动通讯有限公司 Camera of an electronic device used as a proximity detector
CN104994240A (en) * 2015-07-10 2015-10-21 Tcl移动通信科技(宁波)有限公司 Proximity detector power saving control method and system based on mobile terminal
CN205003693U (en) * 2015-09-18 2016-01-27 北京汉王国粹科技有限责任公司 Optical scan pen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5125736A (en) * 1990-11-13 1992-06-30 Harris Corporation Optical range finder
CN101828381A (en) * 2007-07-13 2010-09-08 索尼爱立信移动通讯有限公司 Camera of an electronic device used as a proximity detector
CN104994240A (en) * 2015-07-10 2015-10-21 Tcl移动通信科技(宁波)有限公司 Proximity detector power saving control method and system based on mobile terminal
CN205003693U (en) * 2015-09-18 2016-01-27 北京汉王国粹科技有限责任公司 Optical scan pen

Also Published As

Publication number Publication date
CN113591834B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
KR101535690B1 (en) Fingerprint sensing device
CN101546235B (en) Touch panel module and method for determining voltage contact position on touch panel
KR100660125B1 (en) Pointing device using camera
US8941620B2 (en) System and method for a virtual multi-touch mouse and stylus apparatus
US20150186039A1 (en) Information input device
CN107884066A (en) Optical sensor and its 3D imaging devices based on flood lighting function
CN1916826B (en) System and method for optical navigation device
US20100328267A1 (en) Optical touch device
US20030226968A1 (en) Apparatus and method for inputting data
US20060055672A1 (en) Input control for apparatuses
US9501160B2 (en) Coordinate detection system and information processing apparatus
US20100207909A1 (en) Detection module and an optical detection device comprising the same
WO2009144685A2 (en) Human interface electronic device
US20130321826A1 (en) Motion sensing method for determining whether to perform motion sensing according to distance detection result and related apparatus thereof
CN103677445A (en) Position detection apparatus and image display apparatus
CN107845627A (en) More proximity detection optical sensors
JP2011239279A (en) Remote control device and remote control method
KR20110138975A (en) Apparatus for detecting coordinates, display device, security device and electronic blackboard including the same
US7631811B1 (en) Optical headset user interface
WO2013016190A1 (en) Depth perception device and system
US8970488B2 (en) Operation input device and method, program, and electronic apparatus
CN113591834B (en) Method for portable electronic device and portable electronic device
KR20130049562A (en) Method and system for recognizing touch point, and display apparatus
WO2014049331A1 (en) Touch sensing systems
CN213844155U (en) Biological characteristic acquisition and identification system and terminal 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
TR01 Transfer of patent right

Effective date of registration: 20221013

Address after: 310052 room 509, building 3, No. 399, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Netease Youdao (Hangzhou) Intelligent Technology Co.,Ltd.

Address before: 100094 1st floor, block a, building 7, West Zhongguancun Software Park, yard 10, northwest Wangdong Road, Haidian District, Beijing

Patentee before: NETEASE YOUDAO INFORMATION TECHNOLOGY (BEIJING) Co.,Ltd.

TR01 Transfer of patent right