CN111582244A - Data transfer method, system, computer readable storage medium and terminal equipment - Google Patents

Data transfer method, system, computer readable storage medium and terminal equipment Download PDF

Info

Publication number
CN111582244A
CN111582244A CN202010513435.1A CN202010513435A CN111582244A CN 111582244 A CN111582244 A CN 111582244A CN 202010513435 A CN202010513435 A CN 202010513435A CN 111582244 A CN111582244 A CN 111582244A
Authority
CN
China
Prior art keywords
resolution
color image
data transfer
image
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010513435.1A
Other languages
Chinese (zh)
Other versions
CN111582244B (en
Inventor
王军
王少鸣
郭润增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010513435.1A priority Critical patent/CN111582244B/en
Publication of CN111582244A publication Critical patent/CN111582244A/en
Application granted granted Critical
Publication of CN111582244B publication Critical patent/CN111582244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a data transfer method, a data transfer system, a computer readable storage medium and terminal equipment, which are applied to the technical field of artificial intelligence information processing. When the switching of the data transfer mode is received, the current first resolution ratio is not switched, the color image of the user is collected according to the current first resolution ratio, the depth image of the user is obtained according to the second resolution ratio, the color image is subjected to down-sampling, the resolution ratio of the sampled color image is enabled to be consistent with the second resolution ratio, and then the face detection of the user is carried out according to the depth image and the sampled color image, so that the data transfer is completed. In the switching process of data transfer, the resolution of the acquired image is not switched, and the down-sampling is performed after the color image of the user is acquired, so that the time for resetting the resolution in the switching process is reduced, the time consumed for switching the data transfer mode is also reduced, the waiting time of the user is reduced, and the user experience is improved.

Description

Data transfer method, system, computer readable storage medium and terminal equipment
Technical Field
The present invention relates to the field of artificial intelligence information processing technologies, and in particular, to a data transfer method, a data transfer system, a computer-readable storage medium, and a terminal device.
Background
With the research and progress of artificial intelligence technology, the artificial intelligence technology develops research and application in a plurality of fields, such as common intelligent payment, intelligent home, intelligent wearable equipment, virtual assistant, automatic driving and the like. Wherein, in the intelligent payment field, mainly including sweep a yard payment and brush multiple payment forms such as face payment.
When a user uses the terminal equipment to carry out code scanning payment, the resolution of an image acquisition device in the terminal equipment needs to be set to be higher, so that the details of a payment code can be obtained, and the code scanning effect is ensured; and when the user uses the terminal equipment to brush face payment, the terminal equipment needs to identify the face of the user, so that the resolution of the image acquisition device in the terminal equipment needs to be set to be lower, and therefore when the terminal equipment is switched between two payment modes, the resolution of the image acquisition device in the terminal equipment needs to be reset, then payment is carried out according to the switched payment mode, the consumed time is long, and the user experience is poor.
Disclosure of Invention
Embodiments of the present invention provide a data transfer method, a data transfer system, a computer-readable storage medium, and a terminal device, which implement that resolution does not need to be reconfigured during a data transfer mode switching process.
An embodiment of the present invention provides a data transfer method, including:
receiving a switching request of a data transfer mode, wherein the switching request is used for requesting to switch a first data transfer mode into a second data transfer mode;
acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request;
sampling the color image so that the resolution of the sampled color image is consistent with the second resolution;
and carrying out face detection on the user according to the depth image and the sampled color image so as to complete data transfer.
Another aspect of the embodiments of the present invention further provides a data transfer system, including:
a switching request unit, configured to receive a switching request of a data transfer manner, where the switching request is used to request to switch a first data transfer manner to a second data transfer manner;
the image acquisition unit is used for acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request;
the sampling unit is used for sampling the color image so that the resolution of the sampled color image is consistent with the second resolution;
and the detection transfer unit is used for detecting the face of the user according to the depth image and the sampled color image so as to complete data transfer.
In an implementation manner of another aspect of the embodiment of the present invention, the sampling unit is specifically configured to sample the color image with the first resolution according to a preset sampling policy to obtain the color image with the second resolution.
In another implementation manner of another aspect of the embodiment of the present invention, the system further includes:
the device comprises a presetting unit, a color image acquisition unit and a display unit, wherein the presetting unit is used for determining a first position of a first pixel point in a first row in a depth image acquired by an image acquisition device in the color image acquired by the image acquisition device and determining a second position of a last pixel point in a last row in the depth image acquired by the image acquisition device in the color image acquired by the image acquisition device; determining the scaling of horizontal scaling and vertical scaling of the color image according to the difference value of the second position and the first position; storing a sampling strategy, wherein the sampling strategy comprises the scaling.
In another implementation manner of another aspect of the embodiment of the present invention, in the system:
a first sensor in an image acquisition device acquires a color image of a user according to a first resolution, a second sensor in the image acquisition device acquires a depth image of the user according to a second resolution, and the color image and the depth image are transmitted to an application layer; the sampling unit is specifically configured to sample the color image through the application layer, so that the resolution of the sampled color image is consistent with the second resolution.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are adapted to be loaded by a processor and execute the data transfer method according to an embodiment of the present invention.
In another aspect, an embodiment of the present invention further provides a terminal device, including a processor and a memory;
the memory is used for storing a plurality of computer programs, and the computer programs are used for being loaded by the processor and executing the data transfer method according to the aspect of the embodiment of the invention; the processor is configured to implement each of the plurality of computer programs.
As can be seen, in the method of this embodiment, when the switching of the data transfer mode is received, the current first resolution is not switched, but the color image of the user is collected according to the current first resolution and the depth image of the user is obtained according to the second resolution, and the color image is downsampled, so that the resolution of the sampled color image is consistent with the second resolution, and then the face detection of the user is performed according to the depth image and the sampled color image, so as to complete the data transfer. In the switching process of data transfer, the resolution of the acquired image is not switched, and the down-sampling is performed after the color image of the user is acquired, so that the time for resetting the resolution in the switching process is reduced, the time consumed for switching the data transfer mode is also reduced, the waiting time of the user is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a data transfer method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data transfer method provided by an embodiment of the invention;
FIG. 3a is a schematic illustration of a color image captured in one embodiment of the present invention;
FIG. 3b is a schematic illustration of an infrared image captured in one embodiment of the present invention;
FIG. 4a is a schematic diagram of an architecture of a system to which a data transfer method is applied in accordance with an embodiment of the present invention;
FIG. 4b is a schematic diagram of another configuration of a system to which the data transfer method is applied in one embodiment of the present invention;
FIG. 5 is a diagram illustrating a data transfer method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a data transfer system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the present invention provides a data transfer method, which does not switch the resolution of an acquired planar image mainly in the process of switching a data transfer mode, and specifically, as shown in fig. 1, a data transfer system may implement data transfer according to the following steps:
receiving a switching request of a data transfer mode, wherein the switching request is used for requesting to switch a first data transfer mode into a second data transfer mode; acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request; sampling the color image so that the resolution of the sampled color image is consistent with the second resolution; and carrying out face detection on the user according to the depth image and the sampled color image so as to complete data transfer.
In the switching process of data transfer, the resolution of the acquired image is not switched, and the down-sampling is performed after the color image of the user is acquired, so that the time for resetting the resolution in the switching process is reduced, the time consumed for switching the data transfer mode is also reduced, the waiting time of the user is reduced, and the user experience is improved.
The embodiment of the present invention provides a data transfer method, which is mainly a method executed by a data transfer system, where the data transfer system in this embodiment includes an image acquisition device, and a flowchart is shown in fig. 2, and includes:
step 101, receiving a switching request of a data transfer mode, where the switching request is used to request to switch a first data transfer mode to a second data transfer mode.
It can be understood that a user may operate the data transfer system to initiate a switching request to the data transfer system, which is mainly used to switch the current first data transfer mode to the second data transfer mode, where the resolution required by the image capture device in the data transfer system in the first data transfer mode is higher, such as a code scanning payment mode, and the resolution required by the image capture device in the data transfer system in the second data transfer mode is lower, such as a face brushing payment mode.
And step 102, acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request.
Because the resolution required by the image acquisition device is higher in the first data transfer mode, and the depth image does not need to be acquired, the image acquisition device only acquires the plane image according to the first resolution in the first data transfer mode, and the first resolution is higher.
The image acquisition device in the data transfer system can comprise a first sensor for acquiring a planar color image and a second sensor for acquiring a depth image, wherein in the embodiment, the first sensor acquires the color image of a user according to a first resolution; and the second sensor acquires the infrared image of the user according to the second resolution, so that the depth image can be obtained according to the infrared image. The second resolution is lower than the first resolution, and the depth image can describe the actual depth from each pixel point in the color image acquired by the first sensor to the plane.
And 103, sampling the color image to ensure that the resolution of the sampled color image is consistent with the second resolution.
Specifically, the data transfer system can sample the color image with the first resolution ratio according to a preset sampling strategy to obtain the color image with the second resolution ratio, and thus, each pixel point in the sampled color image can find the corresponding pixel point in the depth image, so that each pixel point has depth information. Since a color image with a low resolution is obtained by sampling, this is called down-sampling.
The sampling strategy is pre-stored in the data transfer system, and specifically in the presetting process, a first position of a first pixel point of a first row in the depth image acquired from the second sensor in the color image acquired by the first sensor, such as coordinate information (x1, y1), may be determined first; and determining a second position of a last pixel point of a last line in the depth image in the color image, such as (x2, y 2); and determining the scaling of horizontal scaling and vertical scaling of the color image according to the difference value between the second position and the first position, and storing a sampling strategy, wherein the sampling strategy comprises the scaling.
The scaling of the horizontal scaling may be a ratio of a difference between the abscissa in the second position and the abscissa in the first position to a certain constant C, i.e., (x2-x1)/C, and the scaling of the vertical scaling may be a ratio of a difference between the ordinate in the second position and the ordinate in the first position to another constant D, i.e., (y2-y1)/D, wherein the second resolution of the depth image is a certain constant multiplied by another constant, i.e., cxd.
It should be noted that, when the data transfer system is shipped from the factory, the acquisition policy may be preset in the data transfer system, and the first sensor and the second sensor respectively acquire the color image and the infrared image under the condition that the positions of the camera and the reference surface are kept unchanged, which may be different from the color image and the depth image obtained in step 102. For example, fig. 3a shows a color image taken by a first sensor, while fig. 3b shows an infrared image taken by a second sensor.
And step 104, carrying out face detection on the user according to the depth image and the sampled color image so as to complete data transfer.
Specifically, the data transfer system performs face recognition according to the depth image and the sampled color image to obtain feature information of a user face, and matches the feature information with preset face feature information, if the feature information is not matched with the preset face feature information, face detection is unsuccessful, and the user is prompted that the face detection is unsuccessful; if the matching is successful, the face detection is successful, and the data transfer can be continued.
It should be noted that, in one case, the method of the embodiment of the present invention may be applied to a data transfer system as shown in fig. 4a, an image acquisition device in the system may specifically include a camera control end, a first sensor (sensor) for acquiring a color image, and a second sensor for acquiring an infrared image, and the data transfer system may further include an application layer control end, an application layer, and the like. In this case, the color image is sampled by the application layer, wherein:
the camera control end configures the first sensor and the second sensor through an Image Signal Processor (ISP), for example, configures the resolution of the sensor when acquiring an Image and when the sensor starts to acquire an Image.
When the current data transfer mode is the first data transfer mode, the camera control end configures the first sensor to acquire an image according to the first resolution through the ISP, and after the application layer receives the switching request of the data transfer mode, the camera control end starts the second sensor through the ISP and acquires the image according to the second resolution. The first sensor and the second sensor respectively collect color images and infrared images of a user and send the color images and the infrared images to the application layer through the ISP, the control end of the application layer can control the application layer to sample the color images to obtain color images with a second resolution, then depth images of the user are obtained according to the infrared images, and face detection and data transfer are completed by combining the sampled color images.
In another case, the method of the embodiment of the present invention may also be applied to a data transfer system as shown in fig. 4b, where an image acquisition device in the system may specifically include an integration of a camera control end and an ISP, a first sensor (sensor) for acquiring a color image, and a second sensor for acquiring an infrared image, and the data transfer system may further include an application layer control end and an application layer, in which case, the image acquisition device samples the color image, where:
the integration of the camera control end and the ISP configures the camera configuration of the first sensor and the second sensor, such as the resolution of the sensor when acquiring images and when the sensor starts to acquire images.
When the current data transfer mode is the first data transfer mode, the integration of the camera control end and the ISP configures the first sensor to acquire an image according to the first resolution, and after the application layer receives a switching request of the data transfer mode, the integration of the camera control end and the ISP starts the second sensor and acquires the image according to the second resolution. The first sensor and the second sensor respectively acquire a color image and an infrared image of the user and transmit the color image and the infrared image to the integration of the camera control end and the ISP, the integration of the camera control end and the ISP samples the color image of the user to obtain a color image with a second resolution, and the color image and the infrared image are transmitted to the application layer; the application layer control end can control the application layer to obtain a depth image of the user according to the infrared image, and the face detection and data transfer are completed by combining the sampled color image.
As can be seen, in the method of this embodiment, when the switching of the data transfer mode is received, the current first resolution is not switched, but the color image of the user is collected according to the current first resolution and the depth image of the user is obtained according to the second resolution, and the color image is downsampled, so that the resolution of the sampled color image is consistent with the second resolution, and then the face detection of the user is performed according to the depth image and the sampled color image, so as to complete the data transfer. In the switching process of data transfer, the resolution of the acquired image is not switched, and the down-sampling is performed after the color image of the user is acquired, so that the time for resetting the resolution in the switching process is reduced, the time consumed for switching the data transfer mode is also reduced, the waiting time of the user is reduced, and the user experience is improved.
The data transfer method according to the embodiment of the present invention is specifically described as a payment method, where the data transfer system is mainly a scanning terminal of a merchant, and the scanning terminal is specifically applied to the system shown in fig. 4a, the first data transfer mode is code scanning payment, and the second data transfer mode is face brushing payment. Specifically, as shown in fig. 5, the method of the present embodiment includes:
step 201, the scanning terminal is currently in a code scanning payment state, the application layer displays a code scanning payment interface, and if the scanning terminal needs to be switched to a face brushing payment state, a user clicks a switching control, so that the user can select face brushing payment information.
When the scanning terminal is in a code scanning payment state, the camera control end configures the first sensor to acquire an image according to the first resolution through the ISP, and the second sensor cannot be started.
In step 202, the application layer of the scanning terminal receives a request for switching the payment mode, and the user requests to switch the code scanning payment mode to the face payment mode.
Step 203, the camera control end of the scanning terminal starts a second sensor through the ISP, and acquires an image according to a second resolution, and the first sensor and the second sensor respectively acquire a color image and an infrared image of the user and transmit the color image and the infrared image to the application layer through the ISP.
And step 204, after the application layer receives the color image and the infrared image of the user, the control end of the application layer controls the application layer to sample the color image to obtain a color image with a second resolution, further obtains a depth image of the user according to the infrared image, and completes face detection and face payment by combining the sampled color image.
As can be seen, in this embodiment, for a camera architecture in which the resolution cannot be adjusted by software inside the camera, a color image with high resolution (i.e., the first resolution) is used during code scanning payment; when brushing face payment, the color image with the same low resolution (namely the second resolution) as the depth image is realized through the sampling process, so that the user can obtain good code scanning experience when scanning code payment, and the color image with the same resolution as the depth image is used when brushing face payment, so that the face brushing payment is completed, the user experience is ensured, and seamless switching is realized.
An embodiment of the present invention further provides a data transfer system, a schematic structural diagram of which is shown in fig. 6, and the data transfer system specifically includes:
a switching request unit 10, configured to receive a switching request of a data transfer manner, where the switching request is used to request to switch a first data transfer manner to a second data transfer manner.
An image collecting unit 11, configured to collect, according to the switching request received by the switching request unit 10, a color image of the user according to the current first resolution and obtain a depth image of the user according to the second resolution;
a sampling unit 12, configured to sample the color image acquired by the image acquisition unit 11, so that the resolution of the sampled color image is consistent with the second resolution.
The sampling unit 12 is specifically configured to sample the color image with the first resolution according to a preset sampling strategy to obtain a color image with a second resolution.
And the detection transfer unit 13 is configured to perform face detection on the user according to the depth image and the color image sampled by the sampling unit 12, so as to complete data transfer.
Further, the data transfer system of the present embodiment may further include: the preset unit 14 is configured to determine a first position of a first pixel point in a first row in the depth image acquired by the image acquisition device in the color image acquired by the image acquisition device, and determine a second position of a last pixel point in a last row in the depth image acquired by the image acquisition device in the color image acquired by the image acquisition device; determining the scaling of horizontal scaling and vertical scaling of the color image according to the difference value of the second position and the first position; storing a sampling strategy, wherein the sampling strategy comprises the scaling. Thus, the sampling unit 12 samples the color image according to the sampling strategy stored in the presetting unit 14.
Wherein the first location comprises an abscissa and an ordinate, the second location comprises an abscissa and an ordinate, and the second resolution is a constant multiplied by another constant; the horizontal scaling is the ratio of the difference between the abscissa in the second position and the abscissa in the first position to a constant, and the vertical scaling is the ratio of the difference between the ordinate in the second position and the ordinate in the first position to another constant.
As can be seen, in the system of this embodiment, when the switching request unit 10 receives the switching of the data transfer mode, the current first resolution is not switched, the image acquisition unit 11 acquires the color image of the user according to the current first resolution and acquires the depth image of the user according to the second resolution, the sampling unit 12 performs downsampling on the color image, so that the resolution of the sampled color image is consistent with the second resolution, and the detection transfer unit 13 performs face detection on the user according to the depth image and the sampled color image, so as to complete data transfer. In the switching process of data transfer, the resolution of the acquired image is not switched, and the down-sampling is performed after the color image of the user is acquired, so that the time for resetting the resolution in the switching process is reduced, the time consumed for switching the data transfer mode is also reduced, the waiting time of the user is reduced, and the user experience is improved.
The present invention further provides a terminal device, a schematic structural diagram of which is shown in fig. 7, where the terminal device may generate a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 20 (e.g., one or more processors) and a memory 21, and one or more storage media 22 (e.g., one or more mass storage devices) storing the application programs 221 or the data 222. Wherein the memory 21 and the storage medium 22 may be a transient storage or a persistent storage. The program stored in the storage medium 22 may include one or more modules (not shown), each of which may include a series of instruction operations for the terminal device. Still further, the central processor 20 may be arranged to communicate with the storage medium 22, and to execute a series of instruction operations in the storage medium 22 on the terminal device.
Specifically, the application program 221 stored in the storage medium 22 includes an application program for data transfer, and the program may include the switching request unit 10, the image acquisition unit 11, the sampling unit 12, the detection transfer unit 13, and the preset unit 14 in the data transfer system, which will not be described in detail herein. Further, the central processor 20 may be configured to communicate with the storage medium 22, and execute a series of operations corresponding to the application program of data transfer stored in the storage medium 22 on the terminal device.
The terminal equipment may also include one or more power supplies 23, one or more wired or wireless network interfaces 24, one or more input-output interfaces 25, and/or one or more operating systems 223, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
The steps performed by the data transfer system in the above-described method embodiment may be based on the structure of the terminal device shown in fig. 7.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a plurality of computer programs, where the computer programs are suitable for being loaded by a processor and executing the data transfer method executed by the data transfer system.
The embodiment of the invention also provides terminal equipment, which comprises a processor and a memory; the memory is used for storing a plurality of computer programs for being loaded by the processor and executing the data transfer method as performed by the data transfer system as described above; the processor is configured to implement each of the plurality of computer programs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The data transfer method, system, computer readable storage medium and terminal device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data transfer, comprising:
receiving a switching request of a data transfer mode, wherein the switching request is used for requesting to switch a first data transfer mode into a second data transfer mode;
acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request;
sampling the color image so that the resolution of the sampled color image is consistent with the second resolution;
and carrying out face detection on the user according to the depth image and the sampled color image so as to complete data transfer.
2. The method according to claim 1, wherein said sampling the color image comprises:
and sampling the color image with the first resolution ratio according to a preset sampling strategy to obtain a color image with a second resolution ratio.
3. The method of claim 1, wherein prior to sampling the color image, the method further comprises:
determining a first position of a first pixel point of a first row in a depth image acquired by an image acquisition device in a color image acquired by the image acquisition device, and determining a second position of a last pixel point of a last row in the depth image acquired by the image acquisition device in the color image acquired by the image acquisition device;
determining the scaling of horizontal scaling and vertical scaling of the color image according to the difference value of the second position and the first position;
storing a sampling strategy, wherein the sampling strategy comprises the scaling.
4. The method of claim 3, wherein the first location comprises an abscissa and an ordinate, the second resolution is a constant multiplied by another constant;
the horizontal scaling is the ratio of the difference between the abscissa in the second position and the abscissa in the first position to a constant, and the vertical scaling is the ratio of the difference between the ordinate in the second position and the ordinate in the first position to another constant.
5. The method according to any one of claims 1 to 3, wherein said acquiring a color image of the user at a current first resolution and acquiring a depth image of the user at a second resolution comprises: a first sensor in an image acquisition device acquires a color image of a user according to a first resolution, a second sensor in the image acquisition device acquires a depth image of the user according to a second resolution, and the color image and the depth image are transmitted to an application layer;
then, the sampling the color image so that the resolution of the sampled color image is consistent with the second resolution specifically includes: the application layer samples the color image so that the resolution of the sampled color image is consistent with the second resolution.
6. The method according to any one of claims 1 to 3, wherein said acquiring a color image of the user at a current first resolution and acquiring a depth image of the user at a second resolution comprises: a first sensor in the image acquisition device acquires a color image of a user according to a first resolution, and a second sensor in the image acquisition device acquires a depth image of the user according to a second resolution;
then, the sampling the color image so that the resolution of the sampled color image is consistent with the second resolution specifically includes: and the image acquisition device samples the color image, so that the resolution of the sampled color image is consistent with the second resolution, and the sampled color image and the depth image are transmitted to an application layer.
7. A data transfer system, comprising:
a switching request unit, configured to receive a switching request of a data transfer manner, where the switching request is used to request to switch a first data transfer manner to a second data transfer manner;
the image acquisition unit is used for acquiring a color image of the user according to the current first resolution and acquiring a depth image of the user according to the second resolution according to the switching request;
the sampling unit is used for sampling the color image so that the resolution of the sampled color image is consistent with the second resolution;
and the detection transfer unit is used for detecting the face of the user according to the depth image and the sampled color image so as to complete data transfer.
8. The system according to claim 7, wherein the sampling unit is specifically configured to sample the color image of the first resolution according to a preset sampling strategy to obtain the color image of the second resolution.
9. A computer-readable storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor and to execute the data transfer method according to any one of claims 1 to 6.
10. A terminal device comprising a processor and a memory;
the memory is used for storing a plurality of computer programs for being loaded by the processor and for executing the data transfer method according to any one of claims 1 to 6; the processor is configured to implement each of the plurality of computer programs.
CN202010513435.1A 2020-06-08 2020-06-08 Data transfer method, system, computer readable storage medium and terminal device Active CN111582244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010513435.1A CN111582244B (en) 2020-06-08 2020-06-08 Data transfer method, system, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010513435.1A CN111582244B (en) 2020-06-08 2020-06-08 Data transfer method, system, computer readable storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN111582244A true CN111582244A (en) 2020-08-25
CN111582244B CN111582244B (en) 2024-03-29

Family

ID=72125728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010513435.1A Active CN111582244B (en) 2020-06-08 2020-06-08 Data transfer method, system, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN111582244B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895821A (en) * 2022-04-29 2022-08-12 苏州浪潮智能科技有限公司 BIOS icon updating method, system and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090067707A1 (en) * 2007-09-11 2009-03-12 Samsung Electronics Co., Ltd. Apparatus and method for matching 2D color image and depth image
KR20130116799A (en) * 2012-04-16 2013-10-24 삼성전자주식회사 Image processing apparatus and method for determining distortion of synthesized image
US20150015569A1 (en) * 2013-07-15 2015-01-15 Samsung Electronics Co., Ltd. Method and apparatus for processing depth image
KR20150054656A (en) * 2013-11-12 2015-05-20 엘지전자 주식회사 Digital device and method for processing three dimensional image thereof
CN111526342A (en) * 2020-04-27 2020-08-11 腾讯科技(深圳)有限公司 Image processing method and device, camera, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090067707A1 (en) * 2007-09-11 2009-03-12 Samsung Electronics Co., Ltd. Apparatus and method for matching 2D color image and depth image
KR20130116799A (en) * 2012-04-16 2013-10-24 삼성전자주식회사 Image processing apparatus and method for determining distortion of synthesized image
US20150015569A1 (en) * 2013-07-15 2015-01-15 Samsung Electronics Co., Ltd. Method and apparatus for processing depth image
KR20150054656A (en) * 2013-11-12 2015-05-20 엘지전자 주식회사 Digital device and method for processing three dimensional image thereof
CN111526342A (en) * 2020-04-27 2020-08-11 腾讯科技(深圳)有限公司 Image processing method and device, camera, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895821A (en) * 2022-04-29 2022-08-12 苏州浪潮智能科技有限公司 BIOS icon updating method, system and device and readable storage medium
CN114895821B (en) * 2022-04-29 2023-08-11 苏州浪潮智能科技有限公司 BIOS icon updating method, system, device and readable storage medium

Also Published As

Publication number Publication date
CN111582244B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN104102335B (en) A kind of gestural control method, device and system
US8666145B2 (en) System and method for identifying a region of interest in a digital image
CN107392189B (en) Method and device for determining driving behavior of unmanned vehicle
JP6808358B2 (en) Image processing equipment, image processing methods and programs
WO2016165379A1 (en) Projection method, device, apparatus and computer storage medium
CN105262991A (en) Two-dimensional code based substation equipment object recognition method
CN111091584B (en) Target tracking method, device, equipment and storage medium
CN111008540A (en) Bar code identification method and equipment and computer storage medium
CN109118811A (en) Method, equipment and the computer readable storage medium of vehicle positioning stop position
CN109413760B (en) Wireless connection method and device
WO2018024249A1 (en) Systems and methods for video processing
CN111582244A (en) Data transfer method, system, computer readable storage medium and terminal equipment
JP2019176378A (en) Control device, monitoring system, and monitoring camera control method
CN110163914B (en) Vision-based positioning
CN109313708B (en) Image matching method and vision system
CN113079342A (en) Target tracking method and system based on high-resolution image device
CN107633012A (en) A kind of inquiry processing method, server and storage medium
CN113496176A (en) Motion recognition method and device and electronic equipment
CN111510714B (en) Reproduction rate determination method, reproduction rate determination device, terminal and storage medium
CN111124862B (en) Intelligent device performance testing method and device and intelligent device
CN112308809B (en) Image synthesis method, device, computer equipment and storage medium
CN111913574A (en) Method, apparatus, electronic device and computer readable medium for controlling device
CN111510635B (en) Cloud deck fault determination method and device, storage medium and electronic device
CN109274888B (en) Photographing method, storage medium and mobile terminal
WO2023185247A1 (en) Region cleaning control method and apparatus, and storage medium and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40027455

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant