Hand-held reader
阅读说明:本技术 手持式读取器 (Hand-held reader ) 是由 贾飞飞 于 2019-10-25 设计创作,主要内容包括:本发明公开了一种手持式读取器,包括壳体、处理器和摄像头模组,所述处理器和所述摄像头模组设置在壳体中的处理器和摄像头模组;壳体设置有图像采集窗口,摄像头模组的光线入射面朝向所述图像采集窗口;摄像头模组包括图像传感器、滤光组件和镜头,滤光组件包括至少两个滤光片及用于带动所述至少两个滤光片运动的动力件,其中,每一滤光片与设定的至少一种读取模式相匹配,且不同的滤光片与不同的读取模式相匹配;处理器被设置为:根据读取器的当前读取模式,控制动力件带动相匹配的滤光片运动至摄像头模组的滤光作用位置。(The invention discloses a handheld reader which comprises a shell, a processor and a camera module, wherein the processor and the camera module are arranged in the shell; the shell is provided with an image acquisition window, and the light incident surface of the camera module faces the image acquisition window; the camera module comprises an image sensor, a filtering component and a lens, wherein the filtering component comprises at least two optical filters and a power part for driving the at least two optical filters to move, each optical filter is matched with at least one set reading mode, and different optical filters are matched with different reading modes; the processor is configured to: and controlling the power part to drive the matched optical filter to move to the filtering action position of the camera module according to the current reading mode of the reader.)
1. A handheld reader is characterized by comprising a shell, a processor and a camera module, wherein the processor and the camera module are arranged in the shell;
the shell is provided with an image acquisition window, and the light incident surface of the camera module faces the image acquisition window;
the camera module comprises an image sensor, a filtering component and a lens, wherein the filtering component comprises at least two optical filters and a power part for driving the at least two optical filters to move, each optical filter is matched with at least one set reading mode, and different optical filters are matched with different reading modes;
the processor is arranged to: and controlling the power part to drive the matched optical filter to move to the filtering action position of the camera module according to the current reading mode of the reader.
2. The handheld reader of claim 1, wherein the filter assembly further comprises a mounting frame, the at least two filters being disposed side-by-side in the mounting frame, the power member being configured to: the installation frame drives the at least two optical filters to synchronously move on a plane perpendicular to the optical axis of the camera module.
3. The handheld reader according to claim 2, wherein the synchronous motion is a linear motion along a set direction, and the direction in which the at least two filters are arranged side by side is the same as the set direction.
4. The handheld reader of claim 3, wherein the filter assembly further comprises a guide member, the guide member having a guide direction that is the same as the setting direction, the guide member being coupled to the mounting frame, the coupling causing the mounting frame to move in the setting direction under the guide of the guide member.
5. The handheld reader of claim 1, wherein the at least two filters are located between the image sensor and the lens; or, the at least two optical filters are positioned between the lens and the image acquisition window.
6. The handheld reader according to any one of claims 1 to 5, wherein the handheld reader has two set reading modes, a point reading mode and a scanning mode; the filtering component comprises an infrared filter matched with the point reading mode and a visible light filter matched with the scanning mode.
7. The handheld reader according to any one of claims 1 to 5, further comprising a key circuit for selecting a current reading mode, a signal output of the key circuit being connected to a signal input of the processor, wherein the signal output outputs an electrical signal representing the selected current reading mode.
8. The handheld reader according to any one of claims 1 to 5, further comprising an infrared light module matching the point reading mode and a visible light module matching the scanning mode, wherein the infrared light module and the visible light module are configured to provide a light supplementing light source for the camera module, a switch control end of the infrared light module is connected to the first control signal output end of the processor, and a switch control end of the visible light module is connected to the second control signal output end of the processor.
9. The handheld reader according to claim 8, wherein an optical cavity is formed in the housing in communication with the image capture window, the camera module, the infrared light module, and the visible light module being disposed within the optical cavity.
10. The handheld reader of claim 8, wherein the circuit board pads of the infrared light module and the circuit board pads of the visible light module are located on a same plane, the plane passing through the camera module, and the camera module being parallel to the plane or located on the plane.
11. The handheld reader of claim 8, wherein the infrared light module and the visible light module are disposed on two sides of the camera module; or the infrared light module and the visible light module are arranged on the same side of the camera module.
12. The handheld reader of claim 8, wherein the infrared light module is disposed adjacent to the image acquisition window relative to the camera module; and/or the presence of a gas in the gas,
the visible light module is arranged close to the image acquisition window relative to the camera module.
13. The handheld reader according to claim 8, wherein the infrared light module is disposed at a distance and at an angle relative to the image acquisition window such that the image acquisition window is completely within an illumination range of the infrared light module; and/or the presence of a gas in the gas,
the setting distance and the setting angle of the visible light module relative to the image acquisition window enable the image acquisition window to be completely positioned in the irradiation range of the visible light module.
14. The handheld reader according to claim 13, wherein the setting angle of the visible light module is such that an optical axis of the visible light module is inclined to a plane in which the image capturing window is located; and/or the presence of a gas in the gas,
the setting angle of the infrared light module enables the optical axis of the infrared light module to be inclined to the plane where the image acquisition window is located.
Technical Field
The invention relates to the technical field of digital equipment, in particular to a handheld reader.
Background
Currently, the handheld readers on the market include a touch-and-talk pen, a scanning pen, and the like. The point-reading pen is matched with a sound book for use, the paper surface of the sound book is printed with invisible codes in carbon ink color, the image patterns of the invisible codes printed at different positions of the sound book are different, and each image pattern has a unique number. And when the reading pen reads different positions, reading the invisible codes at the corresponding positions, determining the numbers of the invisible codes according to the image patterns of the read invisible codes, and searching the matched sound files in a file library stored by the reading pen according to the numbers for playing. The scanning pen is mainly used for reading text contents, when the scanning pen reads a text printed on a paper surface, a text image can be collected through an image sensor of the scanning pen, and further through image splicing processing and algorithm identification, the text contents in the text image are obtained. The scanning pen can be divided into a quick recording pen, a translation pen and the like according to specific functions, and the quick recording pen is mainly used for recording and storing read text contents; the translation pen further processes the read text content, for example, performs operations such as translation, pronunciation, display, and the like.
In the prior art, in order to enable the touch and talk pen to accurately read the invisible codes on the paper surface, the touch and talk pen may employ an RGB image sensor and an infrared filter, and stray light except for carbon black in incident light is filtered out through the infrared filter, so that an image acquired by the RGB image sensor only includes the invisible codes of carbon black and black text content on the page. This means that, when the existing click-to-read pen is expected to be expanded to be used as a scanning pen, the scanning pen can only read black text content, but the recognition capability of color characters, characters with background colors, characters with textures and the like is poor, even the characters cannot be recognized at all, and the recognition rate of the scanning pen equivalent to a single function cannot be obtained. For the scanning pen in the prior art, the visible light filter is used for collecting text images, so only visible light can reach the image sensor for imaging, but the invisible code layer is an infrared layer and cannot reflect visible light, so that the existing scanning pen cannot read the invisible code at all, and the recognition rate of a point-and-read pen with a single function cannot be obtained.
Disclosure of Invention
It is an object of embodiments of the present invention to provide a handheld reader that can support a plurality of reading modes and can obtain an identification rate of a reader supporting only a single mode for each reading mode.
According to a first aspect of the present invention, there is provided a handheld reader comprising a housing, a processor and a camera module, the processor and the camera module being disposed in the housing;
the shell is provided with an image acquisition window, and the light incident surface of the camera module faces the image acquisition window;
the camera module comprises an image sensor, a filtering component and a lens, wherein the filtering component comprises at least two optical filters and a power part for driving the at least two optical filters to move, each optical filter is matched with at least one set reading mode, and different optical filters are matched with different reading modes;
the processor is arranged to: and controlling the power part to drive the matched optical filter to move to the filtering action position of the camera module according to the current reading mode of the reader.
Optionally, the filter assembly further includes a mounting frame, the at least two filters are arranged side by side in the mounting frame, and the power member is configured to: the installation frame drives the at least two optical filters to synchronously move on a plane perpendicular to the optical axis of the camera module.
Optionally, the synchronous motion is a linear motion along a set direction, and a direction in which the at least two filters are arranged side by side is the same as the set direction.
Optionally, the filter assembly further includes a guide member, a guiding direction of the guide member is the same as the setting direction, and the guide member is connected to the mounting frame, and the connection enables the mounting frame to move along the setting direction under the guiding action of the guide member.
Optionally, the at least two filters are located between the image sensor and the lens; or, the at least two optical filters are positioned between the lens and the image acquisition window.
Optionally, the handheld reader has two set reading modes, namely a click-to-read mode and a scanning mode; the filtering component comprises an infrared filter matched with the point reading mode and a visible light filter matched with the scanning mode.
Optionally, the handheld reader further comprises a key circuit for selecting a current reading mode, a signal output terminal of the key circuit is connected with a signal input terminal of the processor, and the signal output terminal outputs an electrical signal representing the selected current reading mode.
Optionally, the handheld reader further comprises an infrared light module matched with the point reading mode and a visible light module matched with the scanning mode, the infrared light module and the visible light module are used for providing a light supplementing light source for the camera module, the switch control end of the infrared light module is connected with the first control signal output end of the processor, and the switch control end of the visible light module is connected with the second control signal output end of the processor.
Optionally, an optical cavity communicated with the image acquisition window is formed in the shell, and the camera module, the infrared light module and the visible light module are all arranged in the optical cavity.
Optionally, the circuit board pad of the infrared light module and the circuit board pad of the visible light module are located on the same plane, the plane passes through the camera module, and the camera module is parallel to the plane or located on the plane.
Optionally, the infrared light module and the visible light module are respectively arranged at two sides of the camera module; or the infrared light module and the visible light module are arranged on the same side of the camera module.
Optionally, the infrared light module is arranged adjacent to the image acquisition window relative to the camera module; and/or the presence of a gas in the gas,
the visible light module is arranged close to the image acquisition window relative to the camera module.
Optionally, the setting distance and the setting angle of the infrared light module relative to the image acquisition window enable the image acquisition window to be completely located within the irradiation range of the infrared light module; and/or the presence of a gas in the gas,
the setting distance and the setting angle of the visible light module relative to the image acquisition window enable the image acquisition window to be completely positioned in the irradiation range of the visible light module.
Optionally, the setting angle of the visible light module makes the optical axis of the visible light module inclined to the plane where the image capturing window is located; and/or the presence of a gas in the gas,
the setting angle of the infrared light module enables the optical axis of the infrared light module to be inclined to the plane where the image acquisition window is located.
The camera module of the handheld reader has at least two optical filters and a power component controlled by the processor, and the processor can control the power component to act according to the current reading mode selected by a user, so that the optical filters matched with the current reading mode are driven by the power component to move to the filtering action position of the camera module, the camera module can obtain the best image acquisition effect in different reading modes, and the reader of the embodiment can still obtain the identification rate equivalent to that of a scanning pen, a touch and talk pen and the like which only support a single mode under the condition of supporting multiple reading modes.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block schematic diagram showing the internal structural components of a handheld reader of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a partial structure of a handheld reader according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a partial structure of a handheld reader according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a camera module according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of a camera module according to another embodiment of the invention;
FIG. 6 is a schematic diagram of the filter assembly of FIG. 4 or 5;
FIG. 7 is a flow chart of a read control method of a handheld reader according to an embodiment of the invention;
FIG. 8 is a flow chart diagram of a read control method according to one example of the invention;
fig. 9 is a block schematic diagram of a read control device according to an embodiment of the present invention.
Description of reference numerals:
100-a housing; 110-an image acquisition window;
120-an optical cavity; 200-a camera module;
210-an image sensor; 220-lens;
230-a filter assembly; 231-an infrared filter;
232-visible light filter; 233-a mounting frame;
234-a guide; 235-a power element;
2351-a cam; 2352-oblique slot;
2353-needle bar; p-filter effect position;
310-infrared light module; 320-visible light module;
400-a key circuit; 500-a speaker;
600-a microphone; 700-display screen;
800-a communication module; 900-supply circuit;
1000-charging circuit 1100-headset interface;
1200-a USB interface; 1300-a memory;
1400-memory card connector; 1500-a drive circuit;
d-setting the direction; 9000-a read control device;
9100-a mode determination module; 9200-camera module control module;
9300-image recognition module; 9400-read processing module.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< reader embodiment >
Embodiments of the present invention provide a handheld reader, which can support multiple reading modes, such as a touch reading mode and a scanning mode, at the same time, so that the reader has a touch reading pen function and a scan pen function, for example, the reader can realize the touch reading pen function by reading a hidden code printed on a paper surface, and realize the scan pen function by reading text contents on the paper surface.
The handheld reader according to an embodiment of the present invention may include a processor U1 shown in fig. 1 and a
The above processor U1 and
In one embodiment, the
As shown in fig. 2 and 3, an
The
In this embodiment, the light incident surface of the
In this embodiment, the
In this embodiment, the
In this embodiment, the reader can support two reading modes, i.e., a point reading mode and a scanning mode, and the
In other embodiments, the reader may also support other reading mode combinations, and the corresponding filtering component may refer to the configuration of this embodiment, which is not described herein again.
In this embodiment, the
In this embodiment, the
According to the assembly requirement of the
For example, in the case that the current reading mode is the point reading mode, only the light in the IR band can reach the photosensitive area of the
For another example, when the current reading mode of the reader is the scanning mode, only light in the visible light band can reach the photosensitive area of the
As shown in fig. 4 to 6, the
The
The movement of the
The
In this embodiment, as shown in fig. 4 to 6, the
In this embodiment, the two
In this embodiment, as shown in fig. 6, the
In this embodiment, the
In this embodiment, the
For example, the transmission mechanism may be a screw nut transmission mechanism in which a screw is connected to an output shaft of the rotating motor and a nut is connected to the mounting
Also for example, the driving mechanism may be a cam driving mechanism, as shown in fig. 6, the cam driving mechanism may include a cam 2351 having an inclined groove 2352, and a
In this embodiment, as shown in fig. 6, the
For example, the guiding
For another example, the guiding
In another embodiment, the
In one embodiment, as shown in fig. 4, two
In another embodiment, as shown in fig. 5, two
In one embodiment, as shown in fig. 2 and 3, an
In one embodiment, the optical axis of the
In one embodiment, the optical axis of the
In one embodiment, the reader may further include a light supplement module to supplement light when the camera module collects images through the light supplement module. Here, because the reader when arranging in on the paper,
The light supplement module may include an
The light supplement module is located in the
In this embodiment, the
In one embodiment, the
In one embodiment, the circuit board pads of the
On this basis, the
In one embodiment, the
In one embodiment, the
In an embodiment, the setting distance of the
On the basis, the setting angle of the
In an embodiment, the setting distance of the
On the basis, the angle of the
The image data output end of the image sensor of the
The switch control terminal of the
The switch control terminal of the
In this embodiment, the processor U1, the
The processor U1 may be further configured to: identifying read contents matched with the current read mode from the image acquired by the
In this embodiment, the read content matched with the click-to-read mode is a hidden code, and the read content matched with the scan mode may be a text content.
Taking the identified read content as text content as an example, performing the setting operation corresponding to the scan mode on the read content may include: inputting and storing the read text; translating the read text, for example, into an english translation; driving an audio output device to play the read text or the translated text; and driving the display screen to display any one or more of the read text and/or the translated text so as to realize the function of the scanning pen.
Taking the identified read content as the invisible code as an example, executing the setting operation corresponding to the point-to-read mode on the read content may include: and searching a sound file matched with the invisible code in a file library stored in the reader for playing, namely realizing the function of the touch and talk pen.
As shown in fig. 1, the reader may include an audio output device such as a speaker 500 and/or a headphone interface 1100, which is coupled to the processor U1.
As shown in fig. 1, the reader may include an audio input device, such as a microphone 600, coupled to the processor U1.
As shown in fig. 1, the reader may include a communication module 800, the communication module 800 is connected with the processor U1, and the communication module 800 may include at least one of a bluetooth module, a WIFI module, and a ZIGBEE module. The reader may be communicatively coupled to an external device through the communication module 800.
As shown in fig. 1, the reader may include a display screen 700, the display screen 700 being coupled to the processor U1.
As shown in fig. 1, the reader may include a memory 1300, and the memory 1300 may be used to store instructions, recognized text, translated text, pre-stored sound files, and the like.
As shown in fig. 1, the reader may include a
As shown in fig. 1, the reader may include a communication interface module such as a USB interface 1200, which is connected to the processor U1 to connect an external device through the communication interface module, thereby communicating with the external device.
As shown in fig. 1, the reader may include a key circuit 400, a signal output terminal of the key circuit 400 is connected to a signal input terminal of the processor U1, and the key circuit 400 includes, for example, a key switch and a resistor, which are connected in series between a power terminal and a ground terminal of the reader, so as to output different electrical signals when the key switch is opened and closed, respectively, so that the processor U1 can identify the state of the key switch according to the received electrical signals. The reader may be configured with a key circuit for turning on reading, a key circuit for selecting a mode, a key circuit for controlling power on/off, and the like as required, which is not limited herein. For example, a key circuit may be provided for the user to select the current reading mode, where the electrical signal output by the key circuit indicates the current reading mode selected by the user.
As shown in fig. 1, the reader may include a power supply circuit 900, the power supply circuit 900 provides an operating power supply for all the electrical devices of the reader, including the processor U1, and the power supply circuit 900 may include a battery, a voltage conversion circuit, and the like.
As shown in fig. 1, the reader may include a charging circuit 1000 under the control of the processor U1 to charge the battery through the charging circuit 1000.
In this embodiment, the reader may include at least one of the above audio output device, audio input device, communication module, memory, communication interface module, display screen, and key circuit as required, so as to support the processor to execute a setting operation matching the identified content.
An alternative workflow of the reader according to the present embodiment may comprise: when a user holds the reader and places the reader on a paper surface, the processor U1 determines a current reading mode according to a reading instruction (for example, a reading switch is turned on), controls a matched optical filter to move to a filtering action position P of the
According to the handheld reader of the embodiment, the
According to the handheld reader of the embodiment, since the IR image collected through the infrared filter includes the invisible codes of carbon black on the page, and the RGB image collected through the visible light filter includes the text contents of various colors on the page, the reader of the embodiment can still obtain the recognition rate of the wand and the point-and-read pen equivalent to a single function when having the wand function and the point-and-read pen function at the same time.
Each of the above embodiments is mainly described as different from the other embodiments, and the embodiments may be used alone or in combination with each other as needed, and are not limited herein.
< method examples >
The invention also provides a reading control method of the handheld reader, the handheld reader is provided with a camera module and a processor, an image sensor of the camera module is used for collecting images, and the handheld reader can be the handheld reader in any structural embodiment.
Fig. 7 is a flowchart illustrating a read control method according to an embodiment of the invention, which is executed by the processor U1 shown in fig. 1, for example. As shown in fig. 7, the read control method may include the following steps S7100 to S7400.
Step S7100, in response to the set read event, a current read mode of the reader is acquired.
In one embodiment, the reader may support a point-and-read mode and a scan mode.
The set read event may include at least one of: receiving an external instruction for starting reading, for example, triggering the external instruction through a key, a touch screen, an audio input device and the like; and detecting a change in movement of the reader, etc.
Step 7200, according to the obtained current reading mode, controlling the matched optical filter to move to the filtering position P of the
In step S7200, the processor U1 controls the matched filter to move to the filtering position P, and then drives the
In one example, the
In this example, the step S7200 may include: under the condition that the current reading mode is a point reading mode, controlling the matched infrared filter to move to a filtering action position P; and controlling the matched visible light filter to move to the filtering action position P under the condition that the current reading mode is the scanning mode.
According to this example, when the current reading mode is the point-reading mode, the
In this embodiment, when the user uses the reader, the user may select the current reading mode, for example, select the current reading mode through a key circuit, a touch screen, an audio input device, and the like, which is not limited herein.
In one example, the operation of selecting the current read mode may be a set one read event.
In this embodiment, the current reading mode may also be determined by program setting. For example, the default reading mode is set to be the click-to-read mode, and in response to the reading event, the processor U1 controls the matched optical filter to move to the optical filtering action position P according to the default scanning mode, drives the
Step S7300, according to the current reading mode, identifies the read content matching the current reading mode from the image.
In step S7300, the read content matched with the click-to-read mode is a hidden code, and the read content matched with the scan mode is a text content.
In one embodiment, the identifying the read content matching the current read mode from the image according to the current read mode in step S7300 may include: under the condition that the current reading mode is a point reading mode, selecting a partial area of the image according to a set size as a target area; and identifying the read content matched with the point-reading mode from the target area.
The set size may be smaller than the size of the image acquisition window, e.g. 3mm x 3 mm.
This approach is advantageous for reducing the data processing capacity of the processor, since the pattern of the invisible code can be recognized by the IR pixels corresponding to the target area.
In one embodiment, the identifying, in step S7300, the read content matching the current read mode from the image according to the current read mode may include: under the condition that the current reading mode is a scanning mode, extracting partial pixels from the image to generate a new image; read contents matching the scanning pattern are identified from the new image.
Since the resolution of the image acquired by the camera module is generally high, and the character recognition rate can be high when the resolution is lower than the resolution, the resolution of the image acquired in the scanning mode can be reduced by extracting part of pixels, so as to reduce the data processing amount. For example, the resolution of the image captured by the camera module is 320 x 240, whereas the resolution of the new image generated by decimating some of the pixels may be only 120 x 80.
In step S7400, a setting operation corresponding to the current reading mode is performed for the read content.
The step S7400 of executing the setting operation corresponding to the current reading mode for the reading content may include: and under the condition that the current reading mode is the point reading mode, controlling an audio output device of the reader to play the sound file matched with the recognized invisible code.
The sound file is pre-stored in the memory of the reader, and the processor U1 may determine the unique number of the invisible code after recognizing the invisible code, and search for a sound file matching the invisible code according to the unique number as an index.
In step S7400, the setting operation corresponding to the current reading mode may be performed on the read content, and the setting operation may further include: and in the case that the current reading mode is the scanning mode, executing setting operation aiming at the recognized text content.
It is clear to the skilled person that in scan mode, continuously acquired images need to be stitched together for recognition of text content. For the setting operation executed for the text content, reference may be made to the description in the embodiment of the apparatus, which is not described herein again.
According to the reading control method of the embodiment, the reader can switch the optical filter of the
In an embodiment, before the
In this embodiment, the light supplement module matched with the touch and talk mode can be an infrared light module, and/or the light supplement module matched with the scanning mode can be a visible light module.
Correspondingly, open the reader with current reading mode assorted light filling module, can include: under the condition that the current reading mode is the point reading mode, starting an infrared light supplementing module matched with the point reading mode; and/or, under the condition that the current reading mode is the scanning mode, the visible light supplementary lighting module matched with the scanning mode of the reader is started.
Because the reader is when arranging on the paper,
< specific embodiment of the read control method >
Fig. 8 is a flowchart illustrating a read control method according to an embodiment of the method of the present invention, which may be implemented by the processor U1 shown in fig. 1.
As shown in fig. 8, the read control method may include the steps of:
step S8100, detecting a set reading event after the power is turned on, and executing the following step S8200 when an arbitrary reading event is detected, and ending the reading task when an arbitrary reading event is not detected, and circularly executing step S8100.
Step S8200, judging whether the current reading mode of the reader is a point reading mode or a scanning mode, and executing the following step S8310 under the condition that the current reading mode is the point reading mode; in the case of the scan mode, the following step S8410 is performed.
In step S8310, the infrared filter is controlled to move to the filtering position P, and the infrared light module is controlled to be turned on to supplement light, and then step S8320 is executed.
Step S8320, the camera module is started to collect the black and white image matched with the click-to-read mode, and then step S8330 is executed.
In step S8330, the black-and-white image acquired by the camera module in step S8320 is acquired, and then step S8340 is executed.
And step S8340, whether the image is a invisible code image or not is judged, if yes, the step S8350 is executed, and if not, the current reading task is ended.
In the case of an image with a covert code, the image is a covert code image.
Step S8350, recognizing the read invisible code according to the image, and then executing step S8360.
Step S8360, controlling the audio output device of the reader to play the sound file matched with the recognized invisible code.
In step S8410, the visible light filter is controlled to move to the filtering position P, the visible light module is controlled to be turned on to supplement light, and then step S8420 is executed.
In step S8420, the camera module is started to capture an image matching the scanning mode, and then step S8430 is executed.
In step S8430, the image acquired by the camera module in step S8320 is acquired, and then step S8440 is executed.
And step S8440, judging whether the image is a text image, if so, executing step S8450, and if not, ending the current reading task.
If the image has text content, the image is a text image.
In step S8450, the read text content is recognized based on the image, and then step S8460 is executed.
In step S8460, a setting operation is performed for the recognized text content.
Such as text entry, storage, translation, display, etc.
< apparatus embodiment >
Fig. 9 is a block schematic diagram of a read control device of a handheld reader according to an embodiment of the present invention.
As shown in fig. 9, the reading control apparatus 9000 includes a mode determination module 9100, a camera module control module 9200, an image recognition module 9300, and a reading processing module 9400.
The mode determination module 9100 is configured to obtain a current reading mode of the reader in response to a set reading event.
The camera module control module 9200 is configured to control the matched filter to move to the filtering position of the camera module of the reader according to the current reading mode, and start the camera module to collect an image.
The image identification module 9300 is used for identifying the reading content matched with the current reading mode from the image according to the current reading mode.
The read processing module 9400 is used for performing a setting operation corresponding to the current read mode on the read content.
In one embodiment, the camera module control module 9200 is further configured to start a light supplement module of the reader that matches the current reading mode before starting the camera module to collect an image, so as to supplement light for the image collected by the
In one embodiment, the reader has a dot read mode and a scan mode.
In this embodiment, the camera module control module 9200 can be used for the following operations when the light supplement module matched with the current reading mode of the reader is started: under the condition that the current reading mode is a point reading mode, starting an infrared light supplementing module matched with the point reading mode of the reader; and under the condition that the current reading mode is the scanning mode, starting a visible light supplementary lighting module matched with the scanning mode of the reader.
In this embodiment, the camera module control module 9200 can be used to control the matched filter to move to the filter action position of the camera module of the reader according to the current reading mode: under the condition that the current reading mode is a point reading mode, controlling the matched infrared filter to move to a filtering action position; and under the condition that the current reading mode is the scanning mode, controlling the matched visible light filter to move to the filtering action position.
In one embodiment, the read content matched with the read-on-demand mode is a cryptogram, and the read processing module 9400, when performing the setting operation corresponding to the current read mode on the read content, may be configured to: and under the condition that the current reading mode is the point reading mode, controlling an audio output device of the reader to play the sound file matched with the recognized invisible code.
In one embodiment, the image identifying module 9300, when identifying the read content matching the current read mode from the image according to the current read mode, can be configured to: under the condition that the current reading mode is a point reading mode, selecting a partial area of the image according to a set size as a target area; and identifying the read content matched with the point-reading mode from the target area.
In one embodiment, the image identifying module 9300, when identifying the read content matching the current read mode from the image according to the current read mode, can be configured to: under the condition that the current reading mode is a scanning mode, extracting partial pixels from the image to generate a new image; and identifying the read content matched with the scanning mode from the new image.
< hardware configuration embodiment >
In one embodiment, the handheld reader provided by the present invention may include the
In one embodiment, the handheld reader provided by the present invention may include the
In this embodiment, the respective modules of the reading control device 9000 may be implemented by the processor U1 in the above embodiment.
The hardware structure embodiment and the reader embodiment focus on describing different parts of the reader, and it is clear to those skilled in the art that any of the hardware structure embodiment and any of the reader embodiment may be used alone or in combination with each other, and are not limited herein.
The present invention may be an apparatus, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein 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 block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种测温处理方法、装置及热成像设备