Optical sensor chip

Through the image acquisition and processing technology of the optical sensor chip, the problem of low recognition accuracy of Hall sensors in flexible screen display devices is solved, high-precision recognition of the folding angle and working mode of the flexible screen is achieved, and the impact of electromagnetic interference is reduced. .

CN118463815BActive Publication Date: 2024-10-22MAXIC TECHNOLOGY CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410612195.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-10-22
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

Existing Hall sensors are susceptible to electromagnetic interference in flexible screen display devices, resulting in low accuracy of recognition results and difficulty in accurately obtaining the folding angle and working mode of the flexible screen.

Method used

Optical sensor chips are used to acquire and process the displacement images of moving targets to obtain image displacement information, reduce electromagnetic interference, and improve the accuracy of displacement recognition. The chip includes an image acquisition module, an image processing module and a displacement determination module. It uses feature library matching and brightness screening to simplify the matching process and improve recognition efficiency and accuracy.

Benefits of technology

It effectively reduces electromagnetic interference during the displacement recognition process, improves the accuracy of displacement recognition, enhances the ability to recognize the folding angle and working mode of the flexible screen, and improves the flexibility and applicability of the optical sensor chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118463815B_ABST
    Figure CN118463815B_ABST
Patent Text Reader

Abstract

The present application relates to the field of electronic technology, and in particular, to an optical sensor chip, including an image acquisition module, an image processing module, and a displacement determination module; the image acquisition module is used to acquire a current displacement image of a moving target; the image processing module is used to process the current displacement image to obtain image displacement information of the moving target; the displacement determination module is used to determine the displacement amount of the moving target according to the image displacement information. The optical sensor chip acquires the current displacement image of the moving target, processes it to obtain the image displacement information of the moving target, and then determines the displacement amount of the moving target according to the image displacement information. Through this image acquisition and image processing method, the displacement of the moving target is recognized, and the electromagnetic interference in the displacement recognition process is effectively reduced, thereby improving the accuracy of displacement recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to an optical sensor chip. Background Art

[0002] A sensor is a measuring device that can convert a measured non-electrical quantity into a corresponding electrical quantity or electrical parameter output that is easy to process accurately according to a certain rule.

[0003] Current sensors, such as Hall sensors, are susceptible to electromagnetic interference during displacement recognition, which results in low accuracy of recognition results.

[0004] In particular, in flexible screen display devices, it is necessary to obtain the displacement of related components during the folding process of the flexible screen display device, and then determine the folding angle and working mode of the flexible screen display device. At present, the recognition results of sensors such as Hall sensors are not sufficient to obtain the precise folding angle of the flexible screen display device. Summary of the invention

[0005] The purpose of this application is to provide an optical sensor chip, which can effectively reduce electromagnetic interference in the displacement recognition process and improve the accuracy of displacement recognition by collecting and processing the current displacement image of the moving target and then determining the displacement of the moving target based on the image displacement information obtained through processing.

[0006] In a first aspect, the optical sensor chip provided by the present application includes an image acquisition module, an image processing module and a displacement determination module; the image acquisition module is used to acquire a current displacement image of a moving target; the image processing module is used to process the current displacement image to obtain image displacement information of the moving target; the displacement determination module is used to determine the displacement amount of the moving target according to the image displacement information.

[0007] The above-mentioned optical sensor chip acquires the current displacement image of the moving target, processes it to obtain the image displacement information of the moving target, and then determines the displacement amount of the moving target based on the image displacement information. Through this image acquisition and image processing method, the displacement of the moving target is recognized, and the electromagnetic interference in the displacement recognition process is effectively reduced, thereby improving the accuracy of displacement recognition.

[0008] In combination with the first aspect, optionally, the optical sensor chip also includes a selection module; the selection module is used to determine a method for processing the current displacement image in response to a user's selection operation; wherein the method for processing the current displacement image includes using multiple processing methods to comprehensively process the current displacement image or using one of multiple processing methods to process the current displacement image to obtain the image displacement information of the moving target.

[0009] The above-mentioned optical sensor chip, by configuring a selection module for the optical sensor chip, provides a corresponding selection function for the user, so that the user can choose to use multiple processing methods to comprehensively process the current displacement image or use one of the multiple processing methods to process the current displacement image according to actual needs, thereby improving the flexibility and applicability of the optical sensor chip.

[0010] In combination with the first aspect, optionally, in the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module is specifically used to: match the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image; wherein the preset displacement image corresponds to a specific displacement amount occurring to the moving target.

[0011] The above optical sensor chip, by matching the current displacement image with the preset displacement image in the feature library, eliminates the need for more sophisticated processing and recognition of the image, thereby improving the efficiency of identifying the activity parameters of the moving target.

[0012] In combination with the first aspect, optionally, in the process of matching the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image, the image processing module is specifically used to: perform brightness matching on the current displacement image with a preset displacement image in the feature library to filter out at least one preliminary screening image corresponding to a brightness range that includes the brightness of the current displacement image; perform feature matching on the current displacement image with the preliminary screening image to determine the target image.

[0013] The optical sensor chip selects a part of the preliminary screening images from the preset displacement images according to the brightness of the current displacement image before performing feature matching, and then performs feature matching on the current displacement image and the preliminary screening images one by one, without having to match all the preset displacement images one by one. Thus, the speed of determining the target image is improved, that is, the efficiency of identifying the displacement of the moving target is improved.

[0014] In combination with the first aspect, optionally, the preset displacement image includes a preset identifiable feature pattern formed by different identifiable feature marks at the position corresponding to the specific displacement amount of the moving target; the current displacement image includes a current identifiable feature pattern formed by identifiable feature marks at the current position of the moving target; in the process of matching the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image, the image processing module is specifically used to: match the current identifiable feature pattern with the preset identifiable feature pattern for identifiable features; and determine the preset identifiable feature pattern whose identifiable feature difference with the current displacement image is less than a identifiable feature difference threshold as the first target image.

[0015] The optical sensor chip sets a recognizable feature difference threshold, and in the matching process, uses a preset recognizable feature pattern whose recognizable feature difference is less than the recognizable feature difference threshold as the first target image, thereby reducing the probability of a situation where a match is supposed to be made but is not actually made. This improves the accuracy of identifying the displacement of the moving target.

[0016] In combination with the first aspect, optionally, the preset displacement image includes preset scale patterns of different sizes at positions corresponding to the specific displacement amount of the moving target; the current displacement image includes the current scale pattern at the current position of the moving target; in the process of matching the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image, the image processing module is specifically used to: match the current scale pattern with the preset scale pattern to determine a second target image in the preset scale pattern that is equal in size to the current scale pattern; and / or the preset displacement image includes preset geometric patterns of different shapes at positions corresponding to the specific displacement amount of the moving target; the current displacement image includes the current geometric pattern at the current position of the moving target; in the process of matching the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image, the image processing module is specifically used to: match the current geometric pattern with the preset geometric pattern to determine a third target image in the preset geometric pattern that is consistent in shape with the current geometric pattern.

[0017] The above optical sensor chip sets preset scale patterns and / or preset geometric patterns of different shapes and sizes at positions corresponding to specific displacements of the moving target, and uses them for comparison with the current geometric pattern and / or current scale pattern collected by the optical sensor chip, thereby reducing the electromagnetic interference in the process of identifying the displacement of the moving target. Due to the matching between the current geometric pattern and / or current scale pattern and the preset scale pattern and / or preset set pattern, it is only necessary to identify whether the geometric shapes and / or scale sizes of the two are consistent, without identifying other features of the pattern, thereby also simplifying the complexity of matching, and ultimately improving the speed and accuracy of identifying the displacement of the moving target.

[0018] In combination with the first aspect, optionally, in the process of determining the displacement amount of the moving target based on the image displacement information, the displacement determination module is specifically used to: determine the specific displacement amount corresponding to the first target image as the first displacement amount of the moving target; determine the specific displacement amount corresponding to the second target image as the second displacement amount of the moving target, and / or determine the specific displacement amount corresponding to the third target image as the third displacement amount of the moving target; determine whether the difference between the second displacement amount and / or the third displacement amount and the first displacement amount exceeds a displacement difference threshold; if not, determine that the first displacement amount is accurate, and use the first displacement amount as the displacement amount of the moving target.

[0019] The optical sensor chip combines the displacement results obtained by the three displacement recognition methods, and uses one of them as the final displacement when the difference between them is less than the angle difference threshold, which further improves the accuracy of the displacement of the moving target finally recognized.

[0020] In combination with the first aspect, optionally, the current displacement image includes a current identifiable characteristic pattern formed by an identifiable characteristic mark at the current position of the moving target; in the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module is specifically used to: compare the current displacement image with a reference displacement image of the moving target to obtain the position change of the identifiable characteristic pattern; wherein the reference displacement image is a captured image corresponding to the position of the moving target before it passes the position corresponding to the current displacement image, and includes the identifiable characteristic pattern; in the process of determining the displacement of the moving target according to the image displacement information, the displacement determination module is specifically used to: determine the displacement of the moving target according to the position change.

[0021] The optical sensor chip compares the current displacement image with the reference displacement image to identify the position change of the identifiable characteristic pattern therein, and determines the displacement of the moving target based on the position change. To a certain extent, it avoids the recognition error caused by the deformation of the physical parts by setting the preset pattern at the position corresponding to the specific displacement of the moving target, thereby improving the accuracy of the final recognition result.

[0022] In combination with the first aspect, optionally, in the process of comparing the current displacement image with the reference displacement image of the moving target to obtain the position change of the identifiable characteristic pattern, the image processing module is specifically used to: determine the number of pixels by which the position of the identifiable characteristic pattern in the current displacement image changes compared to the position in the reference displacement image; and determine the number of pixels as the position change.

[0023] The optical sensor chip obtains the amount of pixels moved by the characteristic pattern and uses the amount of pixels as the position change of the characteristic pattern, which is simpler than other image comparison methods, that is, it reduces the complexity of the algorithm. In turn, it improves the efficiency of identifying the activity parameters of the moving target.

[0024] In combination with the first aspect, optionally, in the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module is specifically used to: compare the current displacement image with the reference displacement image of the moving target to obtain the position change amount of the identifiable characteristic pattern; wherein the reference displacement image is a captured image corresponding to the position of the moving target before it passes the position corresponding to the current displacement image, and includes the identifiable characteristic pattern; in the process of determining the displacement amount of the moving target according to the image displacement information, the displacement determination module is specifically used to: determine the comparison displacement amount of the moving target according to the position change amount; and multiply the comparison displacement amount by a correction coefficient to correct the comparison displacement amount; wherein , the method for determining the correction coefficient includes the following steps: collecting a sample displacement image of a moving target; wherein the sample pre-displacement image includes a recognizable characteristic pattern formed by characteristic marks on the moving target; matching the sample displacement image with a preset displacement image in a characteristic library to determine a sample target image consistent with the sample displacement image; determining a specific displacement amount corresponding to the sample target image as a first sample displacement amount of the moving target; comparing the sample displacement image with a reference displacement image of the moving target to obtain a position change amount of the recognizable characteristic pattern; determining a second sample displacement amount of the moving target according to the position change amount; and determining a ratio of the first sample displacement amount to the second sample displacement amount as the correction coefficient.

[0025] The optical sensor chip determines the correction coefficient by using the first sample displacement and the second sample displacement, and obtains the comparison displacement by multiplying the correction coefficient and the displacement. On the basis of realizing the correction of the displacement, the algorithm also improves the accuracy of the displacement correction, and finally further improves the accuracy of the displacement of the moving target.

[0026] In combination with the first aspect, optionally, the optical sensor chip is adapted to a flexible screen display device; the flexible screen display device includes a flexible screen, a movable mechanism and a processor, the flexible screen is connected to the movable mechanism, and the movable mechanism is configured to drive the flexible screen; the processor is electrically connected to the optical sensor chip and the flexible screen, respectively; the movable mechanism includes a first folding piece, a second folding piece and a connecting piece, the first folding piece and the second folding piece are rotatably connected; the moving target is slidably connected to the first folding piece, and the second end of the connecting piece is rotatably connected to the second folding piece; the moving target includes the second end of the connecting piece; the processor is used to determine the folding angle of the first folding piece and / or the second folding piece according to the displacement of the moving target, and control the working mode of the flexible screen according to the folding angle.

[0027] The above optical sensor chip can have the same beneficial effects as the above several optional implementations, which will not be described in detail here.

[0028] In a second aspect, the present application provides a chip package, including a package body and the optical sensor chip as described in the first aspect.

[0029] The above chip packaging has the same beneficial effects as the first aspect, which will not be described in detail here.

[0030] In summary, the optical sensor chip provided by the present application acquires the current displacement image of the moving target, processes it to obtain the image displacement information of the moving target, and then determines the displacement amount of the moving target according to the image displacement information. Through this image acquisition and image processing method, the displacement of the moving target is recognized, and the electromagnetic interference in the displacement recognition process is effectively reduced, thereby improving the accuracy of displacement recognition. By configuring a selection module for the optical sensor chip, a corresponding selection function is provided to the user, so that the user can choose to use a variety of processing methods to comprehensively process the current displacement image or one of the multiple processing methods to process the current displacement image according to actual needs, thereby improving the flexibility and applicability of the optical sensor chip. First, a part of the preliminary screening image is screened out from the preset displacement image according to the brightness of the current displacement image, and then the current displacement image is feature matched with the preliminary screening image one by one, thereby improving the speed of determining the target image, that is, improving the efficiency of identifying the displacement amount of the moving target. By setting preset scale patterns and / or preset geometric patterns of different shapes and sizes at positions corresponding to specific displacements of the moving target, it is not necessary to identify other features of the pattern, thereby simplifying the matching complexity and ultimately improving the speed and accuracy of identifying the displacements of the moving target. By determining a correction coefficient using the first sample displacement and the second sample displacement, and obtaining a comparison displacement by multiplying the correction coefficient and the displacement, the accuracy of the displacement of the moving target obtained is further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A first functional module diagram of the optical sensor chip provided in an embodiment of the present application;

[0033] Figure 2 A first stereogram of the movable mechanism provided in the embodiment of the present application;

[0034] Figure 3 A second stereoscopic diagram of the movable mechanism provided in the embodiment of the present application;

[0035] Figure 4 A side view of the movable mechanism provided in the embodiment of the present application;

[0036] Figure 5A second functional module diagram of the optical sensor chip provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of preset scale patterns of different sizes provided in an embodiment of the present application;

[0038] Figure 7 Schematic diagram of preset geometric patterns of different shapes provided in embodiments of the present application;

[0039] Figure 8 A displacement image collected by the optical sensor chip provided in an embodiment of the present application;

[0040] Fig. 9 A flow chart of a method for determining a correction coefficient provided in an embodiment of the present application;

[0041] Fig.10 A three-dimensional diagram of a flexible display device provided in an embodiment of the present application;

[0042] Fig.11 A three-dimensional diagram of the partial structure of the movable mechanism provided in an embodiment of the present application.

[0043] Icons: 100, optical sensor chip; 110, image acquisition module; 120, image processing module; 130, displacement determination module; 140, selection module; 200, movable mechanism; 210, first folding member; 220, second folding member; 2221, gear; 230, connecting member; 231, connecting member body; 232, rack; 300, flexible screen; 10, flexible screen display device. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0045] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0046] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0047] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the invented product is usually placed when in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0048] In addition, the terms "horizontal", "vertical" and the like do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0049] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0050] Please refer to Figures 1 to 4 , Figure 1 This is a first functional module diagram of the optical sensor chip 100 provided in an embodiment of the present application; Figure 2 A first stereogram of the movable mechanism provided in the embodiment of the present application; Figure 3 A second stereoscopic diagram of the movable mechanism provided in the embodiment of the present application; Figure 4 A side view of a movable mechanism provided in an embodiment of the present application. The optical sensor chip 100 provided in an embodiment of the present application may include an image acquisition module 110, an image processing module 120, and a displacement determination module 130. The image acquisition module 110 may be used to acquire a current displacement image of a moving target. The image processing module 120 may be used to process the current displacement image to obtain image displacement information of the moving target. The displacement determination module 130 may be used to determine the displacement amount of the moving target according to the image displacement information.

[0051] Figure 2The light-colored lines represent the obscured parts of the movable mechanism 200. From the obscured parts, it can be seen that the first folding member 210 and the second folding member 220 are respectively provided with gears at their ends close to each other, and the rotation connection between them is achieved by the meshing of the gears. Figure 1 The lower end of the middle position is slidably connected through a slide groove provided in the second folding member 220. The connecting member 230 is Figure 1 The upper end portion of the middle position is rotatably connected to the first folding member 210 .

[0052] When the moving target moves to different positions, the displacement images collected by the image acquisition module 110 are usually different. Therefore, the image processing module 120 processes the collected current displacement image to obtain image displacement information, and the displacement amount of the moving target can be determined according to the image displacement information.

[0053] The processing of the current displacement image can be specifically implemented as matching the current displacement image with a preset displacement image in the feature image library to determine a target image consistent with the current displacement image, wherein the preset displacement image corresponds to a specific displacement of the moving target.

[0054] Specifically, the current displacement image may include a characteristic pattern formed by a characteristic mark on the mobile target. The current displacement image is compared with the reference displacement image of the mobile target to obtain the position change of the characteristic pattern. The reference displacement image is a captured image corresponding to the position of the mobile target before the mobile target passes the position corresponding to the current displacement image, and may include the characteristic pattern. The displacement of the mobile target can be determined according to the position change of the characteristic pattern. The reference displacement image may be a displacement image corresponding to the starting position of the mobile target. The reference displacement image may be a displacement image of the previous frame adjacent to the current displacement image in a series of displacement images captured during the movement of the mobile target. By comparing the current displacement image with the previous frame displacement image adjacent to it, the unit position change of a characteristic pattern can be determined. By comparing the previous frame displacement image adjacent to the current displacement image with the displacement image adjacent to it, the unit position change of another characteristic pattern can be determined... and so on until the reference displacement image is compared with the displacement image corresponding to the starting position of the mobile target. By accumulating the unit position change obtained in this process, the position change of the characteristic pattern in the current displacement image can be determined.

[0055] The activity parameter of the moving target is determined according to the position change of the characteristic pattern. Taking the displacement as an example, the position change can be converted into the physical displacement of the moving target according to the resolution of the captured image. A certain number of preset position change amounts can also be preset, and each preset position change amount corresponds to a physical displacement amount. By comparing the position change amount with the preset position change amount, the displacement of the moving target can be determined.

[0056] In the above implementation process, the current displacement image of the moving target is collected and processed to obtain the image displacement information of the moving target, and then the displacement amount of the moving target is determined based on the image displacement information. Through this image collection and image processing method, the displacement of the moving target is recognized, and the electromagnetic interference in the displacement recognition process is effectively reduced, thereby improving the accuracy of displacement recognition.

[0057] Please combine Figures 2 to 4 , refer to Figure 5 , Figure 5 1 is a second functional module diagram of the optical sensor chip 100 provided in an embodiment of the present application. In some optional embodiments, the optical sensor chip 100 may further include a selection module 140. The selection module 140 may be used to determine a method for processing the current displacement image in response to a user's selection operation. The method for processing the current displacement image may include using multiple processing methods to comprehensively process the current displacement image or using one of multiple processing methods to process the current displacement image to obtain image displacement information of the moving target.

[0058] The current displacement image can be processed in the two ways mentioned in the previous embodiment, and also includes other processing methods. The specific other processing methods will be described in detail in the subsequent embodiments of this application, and the embodiment scheme of this application will be further described in combination with the subsequent embodiments. It will not be repeated here.

[0059] When one processing method is selected, resource consumption of the optical sensor chip 100 in the displacement recognition process can be reduced, and processing time can be reduced. When multiple processing methods are selected for comprehensive processing, the accuracy of displacement recognition can be improved.

[0060] In the above implementation process, by configuring the selection module 140 for the optical sensor chip 100, a corresponding selection function is provided for the user, so that the user can choose to use multiple processing methods to comprehensively process the current displacement image or use one of the multiple processing methods to process the current displacement image according to actual needs, thereby improving the flexibility and applicability of the optical sensor chip 100.

[0061] In some optional implementations, in the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module 120 can be specifically used to: match the current displacement image with a preset displacement image in the feature library to determine a target image that is consistent with the current displacement image. The preset displacement image corresponds to a specific displacement amount of the moving target.

[0062] The embodiment of the present application can be specifically implemented as follows: the moving target is operated to move a certain angle, and its displacement is measured by an external tool, and used as a specific displacement. Then, the displacement image collected by the optical sensor chip 100 is obtained and used as a preset displacement image. In this way, one set of corresponding preset displacement images and specific displacements can be obtained. Those skilled in the art can obtain a corresponding number of preset displacement images and specific displacements according to actual application requirements through the method described in the embodiment of the present application.

[0063] In the above implementation process, by matching the current displacement image with the preset displacement image in the feature library, there is no need to perform more refined processing and recognition on the image, thereby improving the efficiency of identifying the activity parameters of the moving target.

[0064] In some optional embodiments, the number of pixels of the optical sensor chip is usually only about 20*20. That is to say, by matching the current active image with the preset active image in the feature library, a maximum of 20 preset active images can be set. And only ordinary non-laser light sources can be used in this application. Most applications for detecting the displacement of metal parts use VCSEL lasers as light sources. The VCSEL is irradiated onto the moving parts. The image collected by the optical sensor chip does not 100% display the original appearance of the image like a camera takes a photo, but receives a specific speckle image formed by the laser passing through the special surface of the part. This image can be compared to a QR code that can uniquely mark the characteristic information of a specific surface, but there is no intuitive scale information. However, the brightness difference between these speckle images is still quite obvious.

[0065] In view of this, in the process of matching the current displacement image with the preset displacement image in the feature library and determining the target image consistent with the current displacement image, the image processing module 120 can be specifically used to: perform brightness matching on the current displacement image and the preset displacement image in the feature library, and filter out at least one preliminary screening image corresponding to the brightness range including the brightness of the current displacement image. Perform feature matching on the current displacement image and the preliminary screening image to determine the target image.

[0066] Preset moving images of different brightness can be produced by polishing, electroplating, etc., on the surface of the corresponding position of the moving mechanism 200.

[0067] As a preferred embodiment, ink patterns of different sizes can be sprayed on the surface of the corresponding position of the movable mechanism 200. The speckle images obtained after the ink patterns are collected by the optical sensor chip have the most obvious brightness difference between the speckle images compared with the methods of polishing, electroplating, etc. Therefore, the brightness recognition of these speckle images is more accurate. That is, the accuracy of the folding angle of the movable mechanism 200 finally obtained can be improved.

[0068] Exemplarily, several patterns with different brightness may be set at places where the moving target may pass during movement, as shown in Table 1:

[0069] Table 1

[0070] Pattern number Image brightness 0 120~150 1 110~140 2 100~130 3 90~120 4 80~110 5 70~100 6-10 ...

[0071] It can be seen from Table 1 that the brightness ranges of the patterns overlap. For example, the brightness value is 110, and the patterns corresponding to it are 1, 2, 3, and 4.

[0072] On this basis, by obtaining the brightness of the current displacement image, and screening out at least one preset displacement image corresponding to the brightness range containing the brightness of the current displacement image from the feature library as a preliminary screening image, the current displacement image and the preliminary screening image are feature matched one by one to determine the target image. The feature matching may be to extract the feature pattern of the current displacement image, and compare it with the feature pattern in the preliminary screening image one by one, and take the preliminary screening image whose feature pattern similarity reaches a certain degree as the target image.

[0073] In the above implementation process, before performing feature matching, a part of the preliminary screening images is first screened out from the preset displacement images according to the brightness of the current displacement image, and then the current displacement image is feature matched with the preliminary screening images one by one, without having to match with all the preset displacement images one by one. Thus, the speed of determining the target image is improved, that is, the efficiency of identifying the displacement of the moving target is improved.

[0074] In some optional embodiments, the preset displacement image may include a preset identifiable characteristic pattern formed by different identifiable characteristic marks at positions corresponding to a specific displacement amount of the moving target. The current displacement image may include a current identifiable characteristic pattern formed by identifiable characteristic marks at a current position of the moving target.

[0075] In the process of matching the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image, the image processing module 120 can be specifically used to: perform identifiable feature matching on the current identifiable feature pattern with the preset identifiable feature pattern; and determine the preset identifiable feature pattern whose identifiable feature difference with the current displacement image is less than the identifiable feature difference threshold as the first target image.

[0076] Generally, the matching degree between the current identifiable characteristic pattern and the preset identifiable characteristic pattern cannot reach 100%. Therefore, if only the preset identifiable characteristic pattern with a matching degree of 100% with the current identifiable characteristic pattern is used as the first target image, it is highly likely that there will be no preset identifiable characteristic pattern that completely matches the previous identifiable characteristic pattern.

[0077] In view of this, by setting a recognizable feature difference threshold, during the matching process, a preset recognizable feature pattern with a recognizable feature difference less than the recognizable feature difference threshold is used as the first target image, which can reduce the probability of a situation where a match that should have been made but was not actually made can be reduced.

[0078] Regarding the identifiable feature difference threshold, those skilled in the art can determine it by themselves according to the actual application scenario. For example, if the difference between the preset identifiable feature patterns is large, then the identifiable feature difference threshold can be set relatively low; if the difference between the preset identifiable feature patterns is small, then the identifiable feature difference threshold can be set relatively high.

[0079] In the above implementation process, by setting the identifiable feature difference threshold, in the matching process, the preset identifiable feature pattern with the identifiable feature difference less than the identifiable feature difference threshold is used as the first target image, thereby reducing the probability of the situation that the image should have been matched but was not matched in reality. Therefore, the accuracy of identifying the displacement of the moving target is improved.

[0080] In some optional embodiments, as the first optional embodiment in the embodiments of the present application, the preset displacement image may include preset scale patterns of different sizes at positions corresponding to the specific displacement amount of the moving target. The current displacement image may include the current scale pattern at the current position of the moving target. In the process of matching the current displacement image with the preset displacement image in the feature library and determining the target image consistent with the current displacement image, the image processing module 120 can be specifically used to: match the current scale pattern with the preset scale pattern and determine a second target image in the preset scale pattern that is equal in size to the current scale pattern.

[0081] like Figure 6 As shown, Figure 6Schematic diagram of preset scale patterns of different sizes provided in the embodiment of the present application. Preset scale patterns of different sizes may be scale lines of different lengths.

[0082] In the process of determining a preset scale pattern of the same size as the current scale pattern as the second target image, the specific implementation method of performing preliminary screening by brightness as described in the previous embodiment can also be adopted, or the specific implementation method of setting a recognizable feature difference threshold as described in the previous embodiment can also be adopted.

[0083] A specific implementation method of using the second target image to determine the displacement of the moving target may also be to use the corresponding specific displacement as the current displacement of the moving target.

[0084] As a second optional implementation in the embodiment of the present application, the preset displacement image may include preset geometric patterns of different shapes at positions corresponding to the specific displacement amount of the moving target. The current displacement image may include the current geometric pattern at the current position of the moving target. In the process of matching the current displacement image with the preset displacement image in the feature library and determining a target image consistent with the current displacement image, the image processing module 120 may be specifically used to: match the current geometric pattern with the preset geometric pattern and determine a third target image in the preset geometric pattern that is consistent with the shape of the current geometric pattern.

[0085] The preset geometric patterns of different shapes can be triangles, squares, hexagons, circles, etc. Those skilled in the art can select corresponding geometric patterns according to the specific quantity requirements of the preset geometric patterns. As a preferred embodiment, geometric patterns with large differences can be selected as the preset geometric patterns as much as possible. Figure 7 , Figure 7 Schematic diagram of preset geometric patterns of different shapes provided in the embodiments of the present application. As a set of exemplary preset geometric patterns: triangle, square, five-pointed star, X-shape, circle.

[0086] In the process of matching the current active image with the preset displacement image in the feature library and determining the first target image consistent with the current displacement image, the optical sensor chip 100 can be specifically used to: match the current geometric pattern with the preset geometric pattern and determine the third target image in the preset geometric pattern that is consistent with the current geometric pattern. The specific displacement amount corresponding to the third target image can be used to determine the displacement amount of the moving target.

[0087] A specific implementation method of using the third target image to determine the displacement of the moving target may also be to use the corresponding specific displacement as the current displacement of the moving target.

[0088] It should be understood that the above two optional specific implementations can select any one of the above two optional implementations to identify the displacement through the selection module 140 described in the previous embodiment, or can select the above two implementations to identify the displacement at the same time.

[0089] In the above implementation process, by setting preset scale patterns and / or preset geometric patterns of different shapes and sizes at the positions corresponding to the specific displacements of the moving target, and using them for comparison with the current geometric pattern and / or the current scale pattern collected by the optical sensor chip 100, the electromagnetic interference in the process of identifying the displacements of the moving target is reduced. Due to the matching between the current geometric pattern and / or the current scale pattern and the preset scale pattern and / or the preset set pattern, it is only necessary to identify whether the geometric shapes and / or the scale sizes of the two are consistent, without identifying other features of the pattern, thereby simplifying the complexity of matching and ultimately improving the speed and accuracy of identifying the displacements of the moving target.

[0090] Please refer to the figure. In some optional implementations, as the first optional implementation in the embodiment of the present application, in the process of determining the displacement amount of the moving target according to the image displacement information, the displacement determination module 130 can be specifically used to: determine the specific displacement amount corresponding to the first target image as the first displacement amount of the moving target. Determine the specific displacement amount corresponding to the second target image as the second displacement amount of the moving target, and / or determine the specific displacement amount corresponding to the third target image as the third displacement amount of the moving target. Determine whether the difference between the second displacement amount and / or the third displacement amount and the first displacement amount exceeds the displacement difference threshold. If not, determine that the first displacement amount is accurate, and use the first displacement amount as the displacement amount of the moving target.

[0091] On the basis of the above-mentioned embodiments, the scheme of the preset identifiable characteristic pattern formed by different identifiable characteristic marks and the scheme of the preset scale pattern of different sizes are combined, and the first displacement amount and the second displacement amount obtained by the two schemes are used as references for determining the final displacement amount. And / or, the scheme of the preset identifiable characteristic pattern formed by different identifiable characteristic marks and the scheme of the preset geometric pattern of different shapes are combined, and the first displacement amount and the third displacement amount obtained by the two schemes are used as references for determining the final displacement amount.

[0092] Specifically, when the difference between the second displacement and / or the third displacement and the first displacement does not exceed the displacement difference threshold, it means that the first displacement, the second displacement, and the third displacement obtained by the three schemes respectively have high accuracy, and therefore the first displacement can be used as the final recognition result.

[0093] As an optional implementation, in combination with the second displacement corresponding to the second target image described in the previous embodiment, the final displacement can be determined by combining the first displacement, the second displacement, and the third displacement. Specifically, when the difference between any two of the three does not exceed the displacement difference threshold, any one of the three is used as the final displacement, or the average of the three is used as the final displacement. Specifically, when the difference between two of them does not exceed the displacement difference threshold, and the difference between the third and the first two exceeds the displacement difference threshold, the final displacement can be determined based on the first two.

[0094] In the above implementation process, the displacement results obtained by combining the three displacement recognition methods are used, and when the difference between them is less than the angle difference threshold, one of them is used as the final displacement, which further improves the accuracy of the displacement of the moving target finally identified.

[0095] In some optional embodiments, the current displacement image may include a current identifiable characteristic pattern formed by identifiable characteristic marks at the current position of the mobile target. In the process of processing the current displacement image to obtain the image displacement information of the mobile target, the image processing module 120 may be specifically used to: compare the current displacement image with the reference displacement image of the mobile target to obtain the position change of the identifiable characteristic pattern. Among them, the reference displacement image may be a captured image corresponding to the position of the mobile target before it passes the position corresponding to the current displacement image, and may include the identifiable characteristic pattern. In the process of determining the displacement amount of the mobile target according to the image displacement information, the displacement determination module 130 is specifically used to: determine the displacement amount of the mobile target according to the position change amount.

[0096] The characteristic mark can be a geometric pattern of various shapes or a scale pattern of different sizes.

[0097] Regarding the acquisition of position change, the embodiments of the present application provide two optional specific implementation methods. The first: the reference displacement image can be a displacement image corresponding to the starting position of the moving target; the second: the reference displacement image can be a series of displacement images collected during the movement of the moving target. In the second method, the current displacement image is compared with the previous frame displacement image adjacent to it, and the unit position change of a characteristic pattern can be determined. The previous frame displacement image adjacent to the current displacement image is compared with the displacement image adjacent to it, and the unit position change of another characteristic pattern can be determined... and so on until the reference displacement image is compared with the displacement image corresponding to the starting position of the moving target. By accumulating the unit position changes obtained in this process, the position change of the characteristic pattern in the current displacement image can be determined.

[0098] The activity parameter of the moving target is determined according to the position change of the characteristic pattern. Taking the displacement as an example, the position change can be converted into the physical displacement of the moving target according to the resolution of the captured image. A certain number of preset position change amounts can also be preset, and each preset position change amount corresponds to a physical displacement amount. By comparing the position change amount with the preset position change amount, the displacement of the moving target can be determined.

[0099] In the above implementation process, by comparing the current displacement image with the reference displacement image, the position change of the identifiable characteristic pattern is identified, and the displacement of the moving target is determined based on the position change. To a certain extent, it avoids the recognition error caused by the deformation of the physical parts when setting the preset pattern at the position corresponding to the specific displacement of the moving target, thereby improving the accuracy of the final recognition result.

[0100] In some optional implementations, in the process of comparing the current displacement image with the reference displacement image of the moving target to obtain the position change amount of the identifiable characteristic pattern, the image processing module 120 can be specifically used to: determine the pixel amount by which the position of the identifiable characteristic pattern in the current displacement image changes compared to the position in the reference displacement image. The pixel amount is determined as the position change amount.

[0101] For example, Figure 8 As shown, Figure 8 It is a displacement image collected by the optical sensor chip 100 provided in the embodiment of the present application. Figure 8 (b) compared to Figure 8 In (a), the feature pattern numbered "3" has moved 3 pixels. These 3 pixels are the amount of pixels that the feature pattern has moved.

[0102] The activity parameters of the moving target may be determined using the pixel quantity in the manner described in the previous embodiment.

[0103] In the above implementation process, by obtaining the pixel amount moved by the characteristic pattern and using the pixel amount as the position change amount of the characteristic pattern, it is simpler than other image comparison methods, that is, it reduces the complexity of the algorithm, thereby improving the efficiency of identifying the moving target activity parameters.

[0104] Please refer to Fig. 9 , Fig. 9It is a method flow chart of the method for determining the correction coefficient provided in the embodiment of the present application. In some optional embodiments, in the process of processing the current displacement image to obtain the image displacement information of the mobile target, the image processing module 120 can be specifically used to: compare the current displacement image with the reference displacement image of the mobile target to obtain the position change of the identifiable characteristic pattern. And match the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image. Among them, the current displacement image may include a identifiable characteristic pattern formed by a identifiable characteristic mark at the current position of the mobile target. The reference displacement image is a captured image corresponding to the position of the mobile target before it passes the position corresponding to the current displacement image, and may include a identifiable characteristic pattern, and the preset displacement image corresponds to the specific displacement amount that occurs to the mobile target.

[0105] In the process of determining the displacement of the moving target according to the image displacement information, the displacement determination module 130 can be specifically used to: determine the contrast displacement of the moving target according to the position change, and multiply the contrast displacement by a correction coefficient to correct the contrast displacement.

[0106] The specific implementation method of obtaining the position change of the identifiable characteristic pattern and determining the comparison displacement of the moving target according to the position change may be similar to the specific implementation method described in the previous embodiment, and will not be described in detail here.

[0107] The method for determining the correction coefficient may include the following steps:

[0108] Step S110: Acquire a sample displacement image of the moving target, wherein the sample displacement image may include a recognizable characteristic pattern formed by characteristic marks on the moving target.

[0109] Step S120: Match the sample displacement image with a preset displacement image in the feature image library to determine a sample target image that is consistent with the sample displacement image.

[0110] In the above step S120, each preset active image corresponds to a displacement amount of the second end of the connecting member 230. In the process of matching the sample active image with the preset active images in the feature library, the preset active images corresponding to the displacement amounts can be matched in sequence from small to large or from large to small. If the match with the current preset active image is unsuccessful, the next preset active image is matched; if the match is successful, the current preset active image is determined as the sample target image.

[0111] Step S130: determining the specific displacement amount corresponding to the sample target image as the first sample displacement amount occurring in the moving target.

[0112] Step S140: Compare the sample displacement image with the reference displacement image of the moving target to obtain the position change of the identifiable characteristic pattern.

[0113] Step S150: Determine the second sample displacement of the moving target according to the position change.

[0114] The specific implementation method of the above-mentioned step S140 and step S150 may be similar to the second method for obtaining the position change amount described in the previous embodiment.

[0115] Step S160: determining the ratio of the first sample displacement to the second sample displacement as a correction coefficient.

[0116] The correction coefficient in step S160 can be expressed by the following formula:

[0117] A=M / X

[0118] Wherein, A represents the correction coefficient, M represents the displacement of the first sample, and X represents the displacement of the second sample.

[0119] In the subsequent process of using the correction coefficient to correct the displacement to obtain the comparison displacement, it can be calculated according to the following formula:

[0120] D1=D2×A

[0121] Where D1 represents the contrast displacement, and D2 represents the displacement.

[0122] The corresponding folding angle can be determined according to the comparison displacement.

[0123] In the above implementation process, the correction coefficient is determined by using the first sample displacement and the second sample displacement, and the comparison displacement is obtained by multiplying the correction coefficient and the displacement. On the basis of realizing the correction of the displacement, the algorithm also improves the accuracy of the displacement correction, and finally further improves the accuracy of the displacement of the acquired moving target.

[0124] In the processing methods for displacement recognition provided in the previous embodiments of the present application, there are: a method of presetting a preset identifiable feature pattern formed by different identifiable feature marks, a method of presetting a preset scale pattern of different sizes, a method of presetting a preset geometric pattern of different shapes, and a method of comparing with a reference displacement image to a pixel change amount, etc. In combination with the embodiment of the present application provided by configuring a selection module 140 for the optical sensor chip 100 to provide a corresponding selection function for the user, the specific selectable processing methods may include the aforementioned methods. The user may select one of the processing methods to improve processing efficiency; or may select at least two of the processing methods to improve accuracy.

[0125] Please combine Figures 2 to 4 Reference Fig.10 , Fig.10 1 is a three-dimensional diagram of a flexible display device provided in an embodiment of the present application. In some optional implementations, the optical sensor chip 100 is adapted to the flexible screen display device 10 .

[0126] The flexible screen display device 10 may include a flexible screen 300, an active mechanism 200, and a processor (not shown in the figure), the flexible screen 300 may be connected to the active mechanism 200, and the active mechanism 200 may be configured to drive the flexible screen 300. The processor may be electrically connected to the optical sensor chip 100 and the flexible screen 300, respectively. The active mechanism 200 may include a first flip member 210, a second flip member 220, and a connector 230, and the first flip member 210 may be rotatably connected to the second flip member 220. The moving target may be slidably connected to the first flip member 210, and the second end of the connector 230 may be rotatably connected to the second flip member 220. The moving target may include the second end of the connector 230.

[0127] The first folding member 210 and the second folding member 220 may be movable plates that can support the flexible screen 300, etc. The first folding member 210 may be provided with a rotating shaft parallel to the first rotating axis, and the second folding member 220 may be provided with a rotating pin hole that matches the rotating shaft. The rotational connection between the first folding member 210 and the second folding member 220 can be achieved by the cooperation between the rotating shaft and the rotating pin hole. Of course, the rotational connection between the first folding member 210 and the second folding member 220 can also be achieved by other methods known to those skilled in the art. The embodiments of the present application do not impose specific restrictions on this.

[0128] The first folding member 210 may be provided with a corresponding slide groove or slide rail, and the first end of the connecting member 230 may be provided with a slider matching the slide groove or slide rail. The rotatable connection between the second end of the connecting member 230 and the second folding member 220 may be achieved by the above-mentioned connection method between the first folding member 210 and the second folding member 220, or by other methods known to those skilled in the art.

[0129] During the folding process of the first folding member 210 and the second folding member 220, the second end of the connecting member 230 usually rotates accordingly on the second folding member 220, and the first end of the connecting member 230 usually slides accordingly on the first folding member 210. The folding angles of the first folding member 210 and the second folding member 220 usually correspond to the displacement of the slider. Therefore, by obtaining the displacement of the second end of the connecting member 230 through the optical sensor chip 100, the folding angles of the first folding member 210 and the second folding member 220 can be determined.

[0130] Regarding determining the folding angle of the first folding member 210 or the second folding member 220. The first folding member 210 or the second folding member 220 can be operated to fold at a certain angle, and the folding angle can be measured by an external tool and used as a specific folding angle. Then the displacement image collected by the optical sensor chip 100 is obtained and used as a preset active image. In this way, one set of corresponding preset active images and specific folding angles can be obtained. Those skilled in the art can obtain a corresponding number of preset active images and specific folding angles according to actual application requirements through the method described in the embodiment of the present application.

[0131] The processor can be used to determine the folding angle of the first folding member 210 and / or the second folding member 220 according to the displacement of the moving target, and control the working mode of the flexible screen 300 according to the folding angle.

[0132] Exemplarily, when the angle between the two parts that can be folded on the flexible screen display device 10 is 0°, the folding screen is off. When the angle between them is 90°, half screen display is performed. When the angle between them is 180°, full screen display is performed.

[0133] The above implementation process can have the same beneficial effects as the optical sensor chip 100 described above, which will not be described in detail here.

[0134] Please combine Figure 2 and Figure 3 , refer to Fig.11 , Fig.11 : is a partial structural stereogram of the movable mechanism provided in the embodiment of the present application. In some optional embodiments, the connecting member 230 may include a connecting member 230 body and a rack 232, the rack 232 may be arranged on the connecting member 230 body, and the length direction of the rack 232 may be parallel to the length direction of the connecting member 230 body. The first end of the connecting member 230 body may be slidably connected to the first folding member 210, and the second end of the connecting member 230 body may be rotatably connected to the second folding member 222 along the second rotation axis. Among them, the first rotation axis may be parallel to the second rotation axis. The second end of the connecting member 230 body may penetrate the second folding member 222, and a gear 2221 matching the rack 232 may be provided at the place where the second folding member 222 is penetrated. The rack 232 may mesh with the gear 2221. The optical sensor chip 100 may be specifically configured to obtain the angle at which the gear 2221 rotates during the folding process of the first folding member 210 and the second folding member 220.

[0135] In the embodiment of the present application, the connection between the first folding member 210 and the second folding member 220 can also be that the first folding member 210 can be provided with a rotation axis parallel to the first rotation axis, and the second folding member 220 can be provided with a rotation pin hole matching the rotation axis, and the rotation connection between the first folding member 210 and the second folding member 220 can be achieved by the cooperation between the rotation axis and the rotation pin hole. Of course, the rotation connection between the first folding member 210 and the second folding member 220 can also be achieved by other methods known to those skilled in the art. The embodiment of the present application does not impose specific restrictions on this.

[0136] The connection between the second end of the connecting member 230 and the second folding member 220 may be that the first folding member 210 may be provided with a corresponding slide groove or slide rail, and the first end of the connecting member 230 may be provided with a slider matching the slide groove or slide rail. The rotatable connection between the second end of the connecting member 230 and the second folding member 220 may be achieved by the above-mentioned connection between the first folding member 210 and the second folding member 220, or by other methods known to those skilled in the art.

[0137] The first folding member 210 may be provided with a through hole for the first end of the connecting member 230 to pass through, and the gear 2221 may be provided inside or near the through hole. During the folding process of the first folding member 210 and the second folding member 220, the second end of the connecting member 230 will also rotate accordingly on the second folding member 220, and the first end of the connecting member 230 will usually slide relative to the first folding member 210. During the sliding process, the rack 232 will drive the gear 2221 to rotate. The folding angles of the first folding member 210 and the second folding member 220 usually correspond to the rotation angles of the gear 2221. Therefore, by obtaining the rotation angle of the gear 2221 through the optical sensor chip 100, the folding angles of the first folding member 210 and the second folding member 220 can be determined.

[0138] In the above implementation process, a rack 232 is provided on the connecting member 230, and a gear 2221 is correspondingly provided on the second folding member 220, and the rotation of the gear 2221 is used as the target of the optical sensor chip 100 to collect images. Since the setting position of the gear 2221 determines the setting position of the optical sensor chip 100, and according to the position of the gear 2221, by setting the rack 232 of the corresponding length and the corresponding extension direction, the meshing of the rack 232 and the gear 2221 can be achieved. In other words, in a transmission mechanism such as a gear rack, the setting position of the gear 2221 is more flexible, and thus the selection of the setting position of the optical sensor chip 100 is also more flexible. Finally, the layout of the components in the movable mechanism 200 is made more flexible. For example: during the folding process of the movable mechanism 200, the connecting member 230 and other components therein will be blocked, resulting in a blind spot in the image collection performed by the optical sensor chip 100. Therefore, the optical sensor chip 100 can be arranged inside the overall frame of the movable mechanism 200 to more comprehensively identify the gear 2221. Furthermore, the optical sensor chip 100 is arranged inside the overall frame of the movable mechanism 200, which to a certain extent has the effect of preventing dust and water from being applied to the optical sensor chip 100, thereby better protecting the optical sensor chip 100.

[0139] Based on the same concept, an embodiment of the present application further provides a chip package, including a package body and the optical sensor chip described above.

[0140] The package body may be a package structure with a package space formed of materials such as ceramics and metals. Optionally, the chip package provided in the embodiment of the present application may also include a light-emitting component, etc. Those skilled in the art may configure the required parts and electronic components for the chip package according to actual needs.

[0141] The above implementation process may have the same beneficial effects as the optical sensor chip 100 described above, and will not be described in detail here.

[0142] In summary, the optical sensor chip 100 provided in each embodiment of the present application acquires the current displacement image of the moving target, processes it to obtain the image displacement information of the moving target, and then determines the displacement amount of the moving target according to the image displacement information. Through this image acquisition and image processing method, the displacement of the moving target is recognized, and the electromagnetic interference in the displacement recognition process is effectively reduced, thereby improving the accuracy of displacement recognition. By configuring the selection module 140 for the optical sensor chip 100, a corresponding selection function is provided for the user, so that the user can choose to use a variety of processing methods to comprehensively process the current displacement image or one of the multiple processing methods to process the current displacement image according to actual needs, thereby improving the flexibility and applicability of the optical sensor chip 100. First, a part of the preliminary screening image is screened out from the preset displacement image according to the brightness of the current displacement image, and then the current displacement image is feature matched with the preliminary screening image one by one, thereby improving the speed of determining the target image, that is, improving the efficiency of identifying the displacement amount of the moving target. By setting preset scale patterns and / or preset geometric patterns of different shapes and sizes at positions corresponding to specific displacements of the moving target, it is not necessary to identify other features of the pattern, thereby simplifying the matching complexity and ultimately improving the speed and accuracy of identifying the displacements of the moving target. By determining a correction coefficient using the first sample displacement and the second sample displacement, and obtaining a comparison displacement by multiplying the correction coefficient and the displacement, the accuracy of the displacement of the moving target obtained is further improved.

[0143] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An optical sensor chip, characterized in that: It includes an image acquisition module, an image processing module and a displacement determination module; The image acquisition module is used to acquire the current displacement image of the moving target; The image processing module is used to process the current displacement image to obtain the image displacement information of the moving target; The displacement determination module is used to determine the displacement amount of the moving target according to the image displacement information; In the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module is specifically used to: compare the current displacement image with a reference displacement image of the moving target to obtain a position change amount of a recognizable characteristic pattern; wherein the reference displacement image is a captured image corresponding to a position of the moving target before it passes the position corresponding to the current displacement image, and includes the recognizable characteristic pattern; In the process of determining the displacement amount of the moving target according to the image displacement information, the displacement determination module is specifically used to: determine the contrast displacement amount of the moving target according to the position change amount; and multiply the contrast displacement amount by a correction coefficient to correct the contrast displacement amount; The method for determining the correction coefficient includes the following steps: Collecting a sample displacement image of a moving target; wherein the sample displacement image includes a recognizable characteristic pattern formed by characteristic marks on the moving target; Matching the sample displacement image with a preset displacement image in a feature library to determine a sample target image that is consistent with the sample displacement image; Determining a specific displacement amount corresponding to the sample target image as a first sample displacement amount occurring to the moving target; Comparing the sample displacement image with a reference displacement image of the moving target to obtain a position change of the identifiable characteristic pattern; Determining a second sample displacement of the moving target according to the position change; and The ratio of the first sample displacement amount to the second sample displacement amount is determined as the correction coefficient.

2. The optical sensor chip according to claim 1, characterized in that: The optical sensor chip further includes a selection module; The selection module is used to determine a method for processing the current displacement image in response to a user's selection operation; wherein the method for processing the current displacement image includes using multiple processing methods to comprehensively process the current displacement image or using one of multiple processing methods to process the current displacement image to obtain image displacement information of the moving target.

3. The optical sensor chip according to claim 1, characterized in that: In the process of processing the current displacement image to obtain the image displacement information of the moving target, the image processing module is specifically used to: match the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image; wherein the preset displacement image corresponds to a specific displacement amount occurring to the moving target.

4. The optical sensor chip according to claim 3, characterized in that: In the process of matching the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image, the image processing module is specifically used to: Perform brightness matching between the current displacement image and a preset displacement image in a feature image library, and filter out at least one preliminary screening image corresponding to a brightness range that includes the brightness of the current displacement image; The current displacement image is feature matched with the preliminary screening image to determine the target image.

5. The optical sensor chip according to claim 3, characterized in that: in, The preset displacement image includes a preset identifiable characteristic pattern formed by different identifiable characteristic marks at positions corresponding to a specific displacement amount of the moving target; the current displacement image includes a current identifiable characteristic pattern formed by identifiable characteristic marks at a current position of the moving target; In the process of matching the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image, the image processing module is specifically used to: Performing identifiable feature matching between the current identifiable feature pattern and the preset identifiable feature pattern; A preset identifiable feature pattern whose identifiable feature difference with the current displacement image is less than a identifiable feature difference threshold is determined as a first target image.

6. The optical sensor chip according to claim 5, characterized in that: in, The preset displacement image includes preset scale patterns of different sizes at positions corresponding to specific displacements of the moving target; the current displacement image includes a current scale pattern at a current position of the moving target; In the process of matching the current displacement image with a preset displacement image in a feature library to determine a target image consistent with the current displacement image, the image processing module is specifically used to: match the current scale pattern with the preset scale pattern to determine a second target image in the preset scale pattern that is equal in size to the current scale pattern; and / or The preset displacement image includes preset geometric patterns of different shapes at positions corresponding to the specific displacement amount of the moving target; The current displacement image includes a current geometric pattern at the current position of the moving object; In the process of matching the current displacement image with the preset displacement image in the feature library to determine the target image consistent with the current displacement image, the image processing module is specifically used to: match the current geometric pattern with the preset geometric pattern to determine a third target image in the preset geometric pattern that is consistent with the shape of the current geometric pattern.

7. The optical sensor chip according to claim 6, characterized in that: In the process of determining the displacement amount of the moving target according to the image displacement information, the displacement determination module is specifically used to: Determining a specific displacement amount corresponding to the first target image as a first displacement amount occurring to the moving target; Determining the specific displacement amount corresponding to the second target image as the second displacement amount occurring to the moving target, and / or determining the specific displacement amount corresponding to the third target image as the third displacement amount occurring to the moving target; Determine whether the difference between the second displacement amount and / or the third displacement amount and the first displacement amount exceeds a displacement difference threshold; If it does not exceed, it is determined that the first displacement is accurate, and the first displacement is used as the displacement of the moving target.

8. The optical sensor chip according to claim 1, characterized in that: in, The current displacement image includes a current identifiable characteristic pattern formed by identifiable characteristic marks at the current position of the moving object; In the process of processing the current displacement image to obtain the image displacement information of the mobile target, the image processing module is specifically used to: compare the current displacement image with the reference displacement image of the mobile target to obtain the position change of the identifiable characteristic pattern; wherein the reference displacement image is a captured image corresponding to the position of the mobile target before it passes the position corresponding to the current displacement image, and includes the identifiable characteristic pattern; in the process of determining the displacement of the mobile target according to the image displacement information, the displacement determination module is specifically used to: determine the displacement of the mobile target according to the position change.

9. The optical sensor chip according to claim 8, characterized in that: In the process of comparing the current displacement image with the reference displacement image of the moving target to obtain the position change of the identifiable characteristic pattern, the image processing module is specifically used to: determine the number of pixels by which the position of the identifiable characteristic pattern in the current displacement image changes compared to the position in the reference displacement image; and determine the number of pixels as the position change.

10. The optical sensor chip according to claim 1, characterized in that: The optical sensor chip is suitable for a flexible screen display device; The flexible screen display device comprises a flexible screen, an active mechanism and a processor, wherein the flexible screen is connected to the active mechanism, and the active mechanism is configured to drive the flexible screen; The processor is electrically connected to the optical sensor chip and the flexible screen respectively; the movable mechanism comprises a first folding member, a second folding member and a connecting member, the first folding member is rotatably connected to the second folding member; the moving target is slidably connected to the first folding member, and the second end of the connecting member is rotatably connected to the second folding member; The moving target includes the second end of the connecting member; The processor is used to determine the folding angle of the first folding member and / or the second folding member according to the displacement of the moving target, and control the working mode of the flexible screen according to the folding angle.