Distance detection method and apparatus, device, and storage medium
Abstract
A method for detecting a distance of a palm relative to an information acquisition device is performed by a computer device and the method includes: obtaining an image of a palm and at least one distance value of the palm acquired by the information acquisition device having a camera module and a plurality of distance sensors; determining position information of an identity marker in the image; determining, according to the at least one distance value, calibration positions corresponding to the plurality of distance sensors in the image; determining, according to the position information and the calibration positions corresponding to the plurality of distance sensors in the image, at least one target distance sensor detecting the identity marker in the plurality of distance sensors; and determining a distance between the identity marker and the information acquisition device according to the distance value acquired by the at least one target distance sensor.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A method for detecting a distance of a palm relative to an information acquisition device performed by a computer device, the method comprising: obtaining an image of a palm and at least one distance value of the palm acquired by the information acquisition device that includes a camera module and a plurality of distance sensors uniformly distributed with the camera module as a center; determining position information of an identity marker in the image; determining, according to the at least one distance value, calibration positions corresponding to the plurality of distance sensors in the image; determining, according to the position information and the calibration positions corresponding to the plurality of distance sensors in the image, at least one target distance sensor detecting the identity marker in the plurality of distance sensors; and determining a distance between the identity marker and the information acquisition device according to the distance value acquired by the at l
- Claim 2Depends on #1
The method according to claim 1, wherein the determining, according to the at least one distance value, calibration positions corresponding to the plurality of distance sensors in the image comprises: separately determining, for each distance sensor in the plurality of distance sensors, the calibration position corresponding to the distance sensor in the image according to the distance value acquired by the distance sensor and a position calibration policy of the distance sensor.
- Claim 3Depends on #2
The method according to claim 2, wherein the method further comprises: obtaining a field of view and a focal length of the camera module; determining a position relationship between each distance sensor in the plurality of distance sensors and the camera module; separately determining at least two mapping relationships of each distance sensor according to the position relationship between each distance sensor and the camera module, the field of view, and the focal length, wherein the mapping relationship is a correspondence between the distance value and the calibration position; and determining a position calibration policy of each distance sensor according to the at least two mapping relationships of the distance sensor.
- Claim 4Depends on #2
The method according to claim 2, wherein the plurality of distance sensors comprise n distance sensors, n is an integer greater than 1, and the separately determining, for each distance sensor in the plurality of distance sensors, the calibration position corresponding to the distance sensor in the image according to the distance value acquired by the distance sensor and a position calibration policy of the distance sensor comprises: determining, for an i th distance sensor in the n distance sensors, the calibration position corresponding to the i th distance sensor in the image according to the distance value acquired by the i th distance sensor and the position calibration policy of the i th distance sensor, wherein i is a positive integer less than or equal to n; and the position calibration policy of the i th distance sensor is configured for describing a mapping relationship between the distance value acquired by the i th distance sensor and the calibration position corresponding
- Claim 5Depends on #1
The method according to claim 1, wherein the determining, according to the position information and the calibration positions corresponding to the plurality of distance sensors in the image, at least one target distance sensor detecting the identity marker in the plurality of distance sensors comprises: determining a region occupied by the identity marker in the image according to the position information; selecting at least one calibration position located in the region from the calibration positions corresponding to the plurality of distance sensors in the image; and determining each distance sensor corresponding to the selected at least one calibration position as the at least one target distance sensor detecting the identity marker in the plurality of distance sensors.
- Claim 6Depends on #1
The method according to claim 1, wherein the determining a distance between the identity marker and the information acquisition device according to the distance value acquired by the at least one target distance sensor comprises: determining, when a plurality of target distance sensors exist, an average value of the distance values respectively acquired by the corresponding plurality of target distance sensors as the distance between the identity marker and the information acquisition device.
- Claim 7Depends on #1
The method according to claim 1, further comprising: performing, when a quantity of the target distance sensors is greater than or equal to a preset quantity threshold, the operation of determining a distance between the identity marker and the information acquisition device according to the distance value acquired by the at least one target distance sensor.
- Claim 8Depends on #1
The method according to claim 1, further comprising: obtaining a first distance corresponding to a first image of the palm and a second distance corresponding to a second image of the palm, an image acquisition moment of the second image being different from an image acquisition moment of the first image; determining a distance difference between the first distance and the second distance; obtaining a time difference between the image acquisition moment of the first image and the image acquisition moment of the second image; determining a movement speed of the identity marker according to the distance difference and the time difference; and determining that the identity marker meets the verification condition when the movement speed is less than or equal to a preset speed threshold within a preset duration.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation application of PCT Patent Application No. PCT/CN2023/118002, published as WO2024103932A1, entitled “ DISTANCE DETECTION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM ” , filed on Sep. 11, 2023, which claims priority to Chinese Patent Application No. 2022114580721, entitled “ DISTANCE DETECTION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM ” , filed on Nov. 16, 2022, both of which are incorporated herein by reference in their entirety. FIELD OF THE TECHNOLOGY Embodiments of this application relate to the field of machine learning technologies, further to the field of computer security technologies, and in particular, to a distance detection method and apparatus, a device, and a storage medium. BACKGROUND OF THE DISCLOSURE In a palm verification payment scenario, a payment verification device acquires a palm print of a user to perform palm verification payment according to the palm print. During payment, in order to avoid unintentional triggering of palm verification, a distance between a palm and a palm information acquisition device needs to be detected, and palm print verification is performed when the palm meets a payment distance requirement. In the related art, a distance detection method is provided. In the method, a mapping relationship between a distance between a palm and a palm information acquisition device and a position of the palm in an image is pre-calibrated, the position of the palm in the image and palm key points are detected, and the distance between the palm and the palm information acquisition device is estimated according to distances between the palm key points in combination with the position of the palm in the image. However, the distance between the palm and the palm information acquisition device estimated according to the foregoing method is not accurate enough, leading to security risks in palm verification. SUMMARY According to various embodiments of this a
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (2)
- Tencent Technology, ISR/ PCT/CN2023/118002, Dec. 26, 2023, 2 pgs.
- Tencent Technology, WO+IPRP, PCT/CN2023/118002, Apr. 29, 2025, 6 pgs.