WO2021046793A1 - Image acquisition method and apparatus, and storage medium - Google Patents

Image acquisition method and apparatus, and storage medium Download PDF

Info

Publication number
WO2021046793A1
WO2021046793A1 PCT/CN2019/105582 CN2019105582W WO2021046793A1 WO 2021046793 A1 WO2021046793 A1 WO 2021046793A1 CN 2019105582 W CN2019105582 W CN 2019105582W WO 2021046793 A1 WO2021046793 A1 WO 2021046793A1
Authority
WO
WIPO (PCT)
Prior art keywords
image acquisition
image
exposure time
distance
target object
Prior art date
Application number
PCT/CN2019/105582
Other languages
French (fr)
Chinese (zh)
Inventor
李明采
王波
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201980001904.7A priority Critical patent/CN113228622A/en
Priority to PCT/CN2019/105582 priority patent/WO2021046793A1/en
Publication of WO2021046793A1 publication Critical patent/WO2021046793A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene

Definitions

  • the embodiments of the present application relate to the field of image processing technology, and in particular to an image acquisition method, device, and storage medium.
  • images can display information more intuitively, the development of image acquisition is becoming more and more important, especially for image acquisition of some specific objects.
  • face image collection license plate image collection, etc.
  • the quality of the image will be affected by the photosensitive device (English: sensor) of the camera, the difference of the lens lens, and the exposure time.
  • face recognition builds a face model by acquiring face images.
  • the distance from which the images are collected, ambient light and other influencing factors are uncertain, and using a fixed exposure time often cannot guarantee the image.
  • the quality of the image will be over-exposed or under-exposed, and the details of the image will not be obvious.
  • one of the technical problems solved by the embodiments of the present application is to provide an image acquisition method, device, and storage medium to overcome the excessive or short exposure time caused by the distance of the image acquisition in the prior art. Defects in the quality of the captured image.
  • an image acquisition method which includes:
  • the target exposure time used by the image acquisition device for image acquisition of the target object is determined, and the exposure time determination model is used to indicate the correspondence between at least one image acquisition distance and at least one exposure time.
  • the exposure time to determine the image acquisition distance and exposure time corresponding to each other in the model when image acquisition of the target object the brightness of the target object in the acquired image is within the preset range;
  • the method further includes:
  • the exposure time corresponding to each image collection distance in the at least one image collection distance is determined, and an exposure time determination model is established according to the correspondence between the at least one image collection distance and the at least one exposure time.
  • determining the exposure time corresponding to each image collection distance in the at least one image collection distance includes:
  • a sample image in at least one sample image whose brightness of the target object is within a preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
  • using a preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image includes:
  • the preset range includes a range greater than or equal to the first threshold and less than or equal to the second threshold.
  • the method further includes:
  • the target object is a human face
  • the preset range is [900, 1000]
  • the value range of at least one image collection distance is greater than or equal to 300 mm and less than or equal to 1200 mm .
  • determining the image capture distance between the target object and the image capture device includes:
  • the target image acquisition distance is determined by calculating the time difference or phase difference between the light signal emission and reflection between the target object and the image acquisition device.
  • an embodiment of the present application provides an image acquisition device, including: a processor, a distance measurement component, and an image acquisition component; both the distance measurement component and the image acquisition component are electrically connected to the processor;
  • the distance measurement component is used to determine the target image acquisition distance between the target object and the image acquisition device;
  • the processor is configured to determine the target exposure time used by the image acquisition device for image acquisition of the target object according to the target image acquisition distance and the exposure time determination model, and the exposure time determination model is used to indicate one of the at least one image acquisition distance and the at least one exposure time Correspondence between the two, in which, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, the brightness of the target object in the acquired image is within the preset range when image acquisition is performed on the target object;
  • the image acquisition component is used for image acquisition of the target object according to the target image acquisition distance and target exposure time.
  • the processor is further configured to determine the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and according to the correspondence between the at least one image acquisition distance and the at least one exposure time The relationship establishes the exposure time to determine the model.
  • the processor is further configured to use a preset distance as the image acquisition distance to perform image acquisition of the target object according to at least one exposure time to obtain at least one sample image;
  • a sample image whose brightness of the target object is within a preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
  • the processor is further configured to use the preset distance as the image collection distance to perform image collection of the target object according to the preset exposure time to obtain a sample image; the brightness of the target object in the sample image When it is less than the first threshold, increase the preset exposure time to perform image acquisition again on the target object; when the brightness of the target object in the sample image is greater than the second threshold, reduce the preset exposure time to perform image acquisition again on the target object.
  • the preset range includes The range is greater than or equal to the first threshold and less than or equal to the second threshold.
  • the processor is further configured to calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
  • the distance measurement component is also used to determine the target image collection distance by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image collection device.
  • the distance measurement component includes a time-of-flight ranging module
  • the image acquisition component includes a structured light image acquisition component and/or an RGB image acquisition component.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the implementation is as described in the first aspect or any one of the embodiments of the first aspect. Methods.
  • the target exposure time corresponding to the target image acquisition distance between the target object and the image acquisition device is determined according to the exposure time determination model, and the target object is imaged according to the target image acquisition distance and the corresponding target exposure time.
  • the brightness of the target object in the acquired image will not be too bright or too dark, avoiding overexposure or underexposure, the display of the target object is clearer, improving the quality of the acquired image, and determining the model and target according to the exposure time
  • the image collection distance directly determines the corresponding target exposure time, which can quickly determine the appropriate exposure time and improve efficiency.
  • FIG. 1 is a flowchart of an image acquisition method provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of the relationship between exposure time and brightness provided by an embodiment of the application.
  • FIG. 3 is a structural diagram of a face recognition door lock provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of brightness distribution of target objects at different distances according to an embodiment of the application.
  • FIG. 5 is a flowchart of a mapping establishment method provided by an embodiment of the application.
  • FIG. 6 is a logical block diagram of a method for collecting sample images according to an embodiment of the application.
  • FIG. 7 is a structural diagram of an image acquisition device provided by an embodiment of the application.
  • FIG. 8 is a structural diagram of an image acquisition device provided by an embodiment of the application.
  • FIG. 1 is a flowchart of an image acquisition method provided by an embodiment of the application.
  • the image acquisition method can be applied to an image acquisition device.
  • the image acquisition device can be an infrared camera, a digital camera, a smart phone tablet computer, etc., which has an image acquisition function.
  • the image acquisition method includes the following steps:
  • Step 101 Determine the target image capture distance between the target object and the image capture device.
  • the target image acquisition distance is the distance between the target object and the image acquisition device.
  • the target object can be a human face, a license plate, etc., which is not limited in this application.
  • the term target is used to indicate a singular number and is not used for any limitation.
  • the target object refers to a collection object. This application uses this collection object as an example to describe the process of implementation of the solution, and does not have any limiting effect.
  • the target image collection distance also indicates any collection distance.
  • determining the image capture distance between the target object and the image capture device includes: calculating the time difference or phase difference between the light signal emission and reflection between the target object and the image capture device. Determine the target image collection distance.
  • the image acquisition device sends a light signal (such as infrared light) to the target object through the sensor, and is received by the sensor after being reflected by the target object, and determines the target object and the image acquisition by calculating the time difference or phase difference between the light signal emission and reflection The distance between the devices.
  • a light signal such as infrared light
  • the image acquisition device is an infrared camera, and the infrared camera itself has a sensor that receives infrared light, so there is no need to make much changes to the device itself, which is more convenient.
  • Step 102 Determine the target exposure time used by the image acquisition device for image acquisition of the target object according to the target image acquisition distance and exposure time determination model.
  • the exposure time determination model is used to indicate the correspondence between at least one image acquisition distance and at least one exposure time.
  • the image collection distance refers to the distance between the image collection device and the collection object.
  • the collection object is the target object.
  • the target exposure time is the exposure time corresponding to the target image collection distance in the exposure time determination model.
  • the target image collection distance belongs to at least one image collection distance.
  • the corresponding image collection distance and exposure time in the model are determined according to the exposure time.
  • the brightness of the target object in the acquired image is within a preset range.
  • the exposure time determination model may be a preset mapping, and the preset mapping may be expressed in the form of a list, a function, or an image, which is not limited in this application.
  • the corresponding exposure time is 10ms, which means that the brightness of the target object in the acquired image obtained by the image acquisition of the target object according to the distance between the image acquisition device and the target object is 500mm and the exposure time is 10ms Within the preset range.
  • the target object may be a human face
  • the preset range is [900, 1000]
  • the value range of at least one image collection distance is greater than or equal to 300 mm and less than or equal to 1200 mm.
  • the effective distance for image collection of a human face is between 300 mm and 1200 mm.
  • the preset range refer to FIG. 2.
  • the preset range is set between [900,1000] to ensure that the area where the target object is located in the image is fully exposed and displayed clearly, and it can also avoid overexposure. Exposure, of course, the preset range can also be flexibly adjusted. For example, it is possible to set the preset range between [800,900], or between [850,900], or between [900,950]. No restrictions.
  • the method further includes: determining the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and according to the correspondence between the at least one image acquisition distance and the at least one exposure time Create a default mapping.
  • Step 103 Perform image collection on the target object according to the target image collection distance and the target exposure time.
  • FIG. 3 is a structural diagram of a face recognition door lock provided by an embodiment of the application.
  • the face recognition door lock includes a processor, an infrared camera, a TOF distance sensor, and an infrared light supplement.
  • the processor is respectively connected with an infrared camera, a TOF (English: Time of Flight, time of flight distance measurement method) distance sensor, and an infrared light supplementer to realize the control of these components.
  • an infrared camera During use, the user needs to register on the face recognition door lock first, that is, enter his face image. After the registration is successful, the user can open the door lock through face recognition. Whether in the process of face registration or face recognition, face recognition door locks need to use an infrared camera to capture images of the user's face (that is, the target object).
  • the processor controls the TOF distance sensor to measure the distance between the infrared camera and the user's face as the target image acquisition distance.
  • the distance between the infrared camera and the user's face can represent the face recognition door lock to the user's person.
  • the processor determines the target exposure time corresponding to the target image collection distance according to the preset mapping.
  • the processor controls the infrared light supplementer to fill light according to the target exposure time, and controls the infrared camera to collect images of the user's face.
  • the exposure time determined according to the preset mapping can make the brightness of the user's face area in the collected image reach 900, making the user's face display clearer. Referring to FIG. 4, FIG.
  • FIG. 4 is a schematic diagram of the brightness distribution of a target object at different distances according to an embodiment of the application.
  • the abscissa represents the distance and the ordinate represents the brightness.
  • the preset range is ( 830,920) After automatic exposure according to the preset mapping, the brightness of the target object is between 830 and 920.
  • the target exposure time corresponding to the target image acquisition distance between the target object and the image acquisition device is determined according to the preset mapping, and the target object is imaged according to the target image acquisition distance and the corresponding target exposure time.
  • the brightness of the target object in the acquired captured image will not be too bright or too dark to avoid overexposure or underexposure, the display of the target object is clearer, and the quality of the captured image is improved.
  • the preset mapping and target image capture The distance directly determines the corresponding target exposure time, which can quickly determine the appropriate exposure time and improve efficiency.
  • FIG. 5 is a flowchart of a mapping establishment method provided by an embodiment of the application, and the method includes the following steps:
  • Step 501 Use the preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image.
  • the preset distance may be any length of at least one image collection distance, and the value range of the at least one image collection distance may be any distance between 300 mm and 1200 mm.
  • using a preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image includes:
  • the preset range includes a range greater than or equal to the first threshold and less than or equal to the second threshold. It should be noted that when increasing or decreasing the exposure time, it can be increased or decreased according to the preset step length. For example, the preset step length is 10ms.
  • the target object will be imaged according to the exposure time of 10ms.
  • the exposure time is increased by 10ms, and the image is re-acquired according to the exposure time of 30ms.
  • the exposure time is reduced by 10ms, According to the exposure time of 10ms, the target object is imaged.
  • the preset step length can also be 1ms, and the preset exposure time can be 8ms.
  • the first threshold may be 800 or 900
  • the second threshold may be 950 or 1000, which is not limited in this application.
  • Step 502 Calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
  • the brightness can be represented by a DN value or a gray value, which is not limited in this application.
  • the maximum or minimum value of the pixel brightness of the area where the target object is located can also be used as the brightness of the target object in each sample image, which is not limited in this application.
  • Step 503 Determine a sample image in at least one sample image whose brightness of the target object is within a preset range as the target sample image.
  • Step 504 Determine the exposure time of the target sample image as the exposure time corresponding to the preset distance.
  • Steps 501 to 504 determine the exposure time corresponding to the preset distance according to at least one sample image at the preset distance.
  • the preset mapping ie, the exposure time determination model
  • each image collection distance can be determined according to the method of step 501-step 504 The corresponding exposure time.
  • at least one image collection distance may include (300mm, 310mm, 320mm...1190mm, 1200mm), that is, increase from 300mm to 1200mm in steps of 10mm.
  • Step 505 Establish a preset mapping according to the correspondence between at least one image collection distance and at least one exposure time.
  • the target object is a human face as an example
  • the preset exposure time is 8ms
  • the step length of the exposure time is 1ms
  • the preset range is 900
  • at least one value of the image acquisition distance The range is (300mm, 310mm, 320mm...1190mm, 1200mm).
  • the sample image acquisition method of this example includes the following steps:
  • step 603 is executed, otherwise, the method ends.
  • the initial preset exposure time is 8ms.
  • step 606 is executed; otherwise, step 607 is executed.
  • step 608 is executed; otherwise, step 609 is executed.
  • the preset range only includes the value of 900.
  • an embodiment of the present application provides an image acquisition device for executing the methods described in the first to third embodiments.
  • the image acquisition device 70 Including: a processor 701, a distance measurement component 702, and an image acquisition component 703, and both the distance measurement component 702 and the image acquisition component 703 are electrically connected to the processor 701;
  • the distance measurement component 702 is used to determine the target image acquisition distance between the target object and the image acquisition device;
  • the processor 701 is configured to determine the target exposure time used by the image capture device for image capture of the target object according to the target image capture distance and a preset mapping, and the preset mapping is used to indicate a distance between at least one image capture distance and at least one exposure time Wherein, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, when the target object is imaged, the brightness of the target object in the acquired image is within a preset range;
  • the image acquisition component 703 is used for image acquisition of the target object according to the target image acquisition distance and the target exposure time.
  • the image acquisition device 70 may further include a memory 704, which is electrically connected to the processor 701, the memory 704 stores a computer program, and the processor 701 Executing the computer program implements the methods described in the first to third embodiments.
  • the computer program may also be stored on the processor 701, which is not limited in this application.
  • the processor 701 is further configured to determine the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and determine the exposure time corresponding to the at least one image acquisition distance and the at least one exposure time.
  • the corresponding relationship establishes a preset mapping, and the brightness of the target object is within the preset range in the images collected on the target object according to the corresponding image collection distance and exposure time.
  • the processor 701 is further configured to use a preset distance as the image collection distance to perform image collection of the target object according to at least one exposure time to obtain at least one sample image;
  • the sample image in which the brightness of the target object is within the preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
  • the processor 701 is further configured to use the preset distance as the image collection distance to perform image collection of the target object according to the preset exposure time to obtain a sample image;
  • the preset range Including the range greater than or equal to the first threshold and less than or equal to the second threshold.
  • the processor 701 is further configured to calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
  • the distance measurement component 702 is also used to determine the target image collection distance by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image collection device.
  • the distance measurement component 702 includes a time-of-flight ranging module
  • the image acquisition component 703 includes a structured light image acquisition component and/or an RGB image acquisition component.
  • the time-of-flight ranging module may include a TOF distance sensor
  • the structured light image acquisition component may include a speckle projector to obtain the depth information of the target object, RGB (English: Red Green Blue)
  • the image acquisition component may include a camera for acquiring a two-dimensional image of the target object, and the complete three-dimensional image information of the target object can be acquired through the structured light image acquisition component and the RGB image acquisition component.
  • the image acquisition component 703 may also only include a camera, for example, an infrared camera, a common camera, etc., which is not limited in this application.
  • the image acquisition device 70 can be a smart phone, an infrared camera, a face recognition door lock and other equipment.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the feature is that when the program is executed by a processor, the implementation is as in the first to third embodiments.
  • the image acquisition device of the embodiment of the present application may exist in various forms, including but not limited to:
  • Mobile communication equipment This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communications.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features.
  • Such terminals include: PDA, MID and UMPC devices, such as iPad.
  • Portable entertainment equipment This type of equipment can display and play multimedia content.
  • Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
  • Server A device that provides computing services.
  • the structure of a server includes a processor 810, hard disk, memory, system bus, etc.
  • the server is similar to a general computer architecture, but because it needs to provide highly reliable services, it is High requirements in terms of performance, reliability, security, scalability, and manageability.
  • the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method flow).
  • hardware improvements for example, improvements in circuit structures such as diodes, transistors, switches, etc.
  • software improvements improvements in method flow.
  • the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module.
  • a programmable logic device for example, a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor, and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic.
  • controller in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • this application can be provided as a method, a system, or a computer program product. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types.
  • the present application can also be practiced in distributed computing environments. In these distributed computing environments, transactions are executed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Abstract

An image acquisition method and apparatus, and a storage medium. The image acquisition method comprises: determining a target image acquisition distance between a target object and the image acquisition apparatus (S101); determining, according to the target image acquisition distance and an exposure time determining model, a target exposure time used when the image acquisition apparatus performs image acquisition on the target object, brightness of the target object in an acquired image obtained when image acquisition is performed on the target object according to an image acquisition distance and an exposure time corresponding to each other in the exposure time determining model falling within a preset range (S102); and performing image acquisition on the target object according to the target image acquisition distance and the target exposure time (S103). Brightness of a target object in an acquired image obtained by performing image acquisition on the target object according to a target image acquisition distance and a target exposure time corresponding thereto is not too high or too low, thereby avoiding overexposure or underexposure.

Description

图像采集方法、装置及存储介质Image acquisition method, device and storage medium 技术领域Technical field
本申请实施例涉及图像处理技术领域,尤其涉及图像采集方法、装置及存储介质。The embodiments of the present application relate to the field of image processing technology, and in particular to an image acquisition method, device, and storage medium.
背景技术Background technique
因为图像能够更加直观的展示信息,图像采集的发展越来越重要,尤其是对一些特定对象的图像采集。例如,人脸图像采集、车牌图像采集等。其中图像的质量会受到摄像头的感光器件(英文:sensor)、镜头lens的差异、以及曝光时间的影响。以人脸识别为例,人脸识别通过获取人脸图像构建人脸模型,在实际采集图像时,其采集图像的距离、环境光等影响因素是不确定的,使用固定曝光时间往往无法保证图像的质量,会出现过曝或者欠曝光现象,图像的细节信息也不明显。Because images can display information more intuitively, the development of image acquisition is becoming more and more important, especially for image acquisition of some specific objects. For example, face image collection, license plate image collection, etc. Among them, the quality of the image will be affected by the photosensitive device (English: sensor) of the camera, the difference of the lens lens, and the exposure time. Take face recognition as an example. Face recognition builds a face model by acquiring face images. When actually acquiring images, the distance from which the images are collected, ambient light and other influencing factors are uncertain, and using a fixed exposure time often cannot guarantee the image. The quality of the image will be over-exposed or under-exposed, and the details of the image will not be obvious.
发明内容Summary of the invention
有鉴于此,本申请实施例所解决的技术问题之一在于提供一种图像采集方法、装置及存储介质,用以克服现有技术中因为采集图像的距离导致曝光时间过长或过短,影响采集图像质量的缺陷。In view of this, one of the technical problems solved by the embodiments of the present application is to provide an image acquisition method, device, and storage medium to overcome the excessive or short exposure time caused by the distance of the image acquisition in the prior art. Defects in the quality of the captured image.
第一方面,本申请实施例提供了一种图像采集方法,该方法包括:In the first aspect, an embodiment of the present application provides an image acquisition method, which includes:
确定目标对象与图像采集装置之间的目标图像采集距离;Determine the target image capture distance between the target object and the image capture device;
根据目标图像采集距离和曝光时间确定模型确定图像采集装置对目标对象进行图像采集时使用的目标曝光时间,曝光时间确定模型用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系其中,按照曝光时间确定模型中相互对应的图像采集距离和曝光时间对目标对象进行图像采集时,得到的采集图像中目标对象的亮度在预设范围内;According to the target image acquisition distance and exposure time determination model, the target exposure time used by the image acquisition device for image acquisition of the target object is determined, and the exposure time determination model is used to indicate the correspondence between at least one image acquisition distance and at least one exposure time. , According to the exposure time to determine the image acquisition distance and exposure time corresponding to each other in the model when image acquisition of the target object, the brightness of the target object in the acquired image is within the preset range;
按照目标图像采集距离和目标曝光时间对目标对象进行图像采集。According to the target image acquisition distance and target exposure time, image acquisition of the target object is performed.
可选地,在本申请的一个实施例中,该方法还包括:Optionally, in an embodiment of the present application, the method further includes:
确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立曝光时间确定模型。The exposure time corresponding to each image collection distance in the at least one image collection distance is determined, and an exposure time determination model is established according to the correspondence between the at least one image collection distance and the at least one exposure time.
可选地,在本申请的一个实施例中,确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,包括:Optionally, in an embodiment of the present application, determining the exposure time corresponding to each image collection distance in the at least one image collection distance includes:
以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像;Use the preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image;
将至少一个样本图像中目标对象的亮度在预设范围内的样本图像确定为目标样本图像,并将目标样本图像的曝光时间确定为预设距离对应的曝光时间。A sample image in at least one sample image whose brightness of the target object is within a preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
可选地,在本申请的一个实施例中,以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像,包括:Optionally, in an embodiment of the present application, using a preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image includes:
以预设距离作为图像采集距离对目标对象按照预设曝光时间进行图像采集得到样本图像;Use the preset distance as the image collection distance to perform image collection on the target object according to the preset exposure time to obtain a sample image;
在样本图像中目标对象的亮度小于第一阈值时,增加预设曝光时间对目标对象重新进行图像采集;在样本图像中目标对象的亮度大于第二阈值时,减少预设曝光时间对目标对象重新进行图像采集,预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。When the brightness of the target object in the sample image is less than the first threshold, increase the preset exposure time to perform image acquisition again on the target object; when the brightness of the target object in the sample image is greater than the second threshold, reduce the preset exposure time to restore the target object For image acquisition, the preset range includes a range greater than or equal to the first threshold and less than or equal to the second threshold.
可选地,在本申请的一个实施例中,该方法还包括:Optionally, in an embodiment of the present application, the method further includes:
计算每一个样本图像中目标对象所在区域的像素亮度的平均值作为每一个样本图像中目标对象的亮度。Calculate the average value of the pixel brightness of the area where the target object in each sample image is located as the brightness of the target object in each sample image.
可选地,在本申请的一个实施例中,目标对象为人脸,预设范围为[900,1000],至少一个图像采集距离的取值范围为大于或等于300毫米,且小于或等于1200毫米。Optionally, in an embodiment of the present application, the target object is a human face, the preset range is [900, 1000], and the value range of at least one image collection distance is greater than or equal to 300 mm and less than or equal to 1200 mm .
可选地,在本申请的一个实施例中,确定目标对象与图像采集装置之间的图像采集距离,包括:Optionally, in an embodiment of the present application, determining the image capture distance between the target object and the image capture device includes:
通过计算目标对象与图像采集装置之间光信号发射和反射的时间差或相位差来确定目标图像采集距离。The target image acquisition distance is determined by calculating the time difference or phase difference between the light signal emission and reflection between the target object and the image acquisition device.
第二方面,本申请实施例提供了一种图像采集装置,包括:处理器、距离测量组件及图像采集组件;距离测量组件和图像采集组件均与处理器电连接;In the second aspect, an embodiment of the present application provides an image acquisition device, including: a processor, a distance measurement component, and an image acquisition component; both the distance measurement component and the image acquisition component are electrically connected to the processor;
其中,距离测量组件,用于确定目标对象与图像采集装置之间的目标图像采集距离;Among them, the distance measurement component is used to determine the target image acquisition distance between the target object and the image acquisition device;
处理器,用于根据目标图像采集距离和曝光时间确定模型确定图像采集装置对目标对象进行图像采集时使用的目标曝光时间,曝光时间确定模型用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系,其中,按照 曝光时间确定模型中相互对应的图像采集距离和曝光时间对目标对象进行图像采集时,得到的采集图像中目标对象的亮度在预设范围内;The processor is configured to determine the target exposure time used by the image acquisition device for image acquisition of the target object according to the target image acquisition distance and the exposure time determination model, and the exposure time determination model is used to indicate one of the at least one image acquisition distance and the at least one exposure time Correspondence between the two, in which, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, the brightness of the target object in the acquired image is within the preset range when image acquisition is performed on the target object;
图像采集组件,用于按照目标图像采集距离和目标曝光时间对目标对象进行图像采集。The image acquisition component is used for image acquisition of the target object according to the target image acquisition distance and target exposure time.
可选地,在本申请的一个实施例中,处理器,还用于确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立曝光时间确定模型。Optionally, in an embodiment of the present application, the processor is further configured to determine the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and according to the correspondence between the at least one image acquisition distance and the at least one exposure time The relationship establishes the exposure time to determine the model.
可选地,在本申请的一个实施例中,处理器,还用于以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像;将至少一个样本图像中目标对象的亮度在预设范围内的样本图像确定为目标样本图像,并将目标样本图像的曝光时间确定为预设距离对应的曝光时间。Optionally, in an embodiment of the present application, the processor is further configured to use a preset distance as the image acquisition distance to perform image acquisition of the target object according to at least one exposure time to obtain at least one sample image; A sample image whose brightness of the target object is within a preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
可选地,在本申请的一个实施例中,处理器,还用于以预设距离作为图像采集距离对目标对象按照预设曝光时间进行图像采集得到样本图像;在样本图像中目标对象的亮度小于第一阈值时,增加预设曝光时间对目标对象重新进行图像采集;在样本图像中目标对象的亮度大于第二阈值时,减少预设曝光时间对目标对象重新进行图像采集,预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。Optionally, in an embodiment of the present application, the processor is further configured to use the preset distance as the image collection distance to perform image collection of the target object according to the preset exposure time to obtain a sample image; the brightness of the target object in the sample image When it is less than the first threshold, increase the preset exposure time to perform image acquisition again on the target object; when the brightness of the target object in the sample image is greater than the second threshold, reduce the preset exposure time to perform image acquisition again on the target object. The preset range includes The range is greater than or equal to the first threshold and less than or equal to the second threshold.
可选地,在本申请的一个实施例中,处理器,还用于计算每一个样本图像中目标对象所在区域的像素亮度的平均值作为每一个样本图像中目标对象的亮度。Optionally, in an embodiment of the present application, the processor is further configured to calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
可选地,在本申请的一个实施例中,距离测量组件,还用于通过计算目标对象与图像采集装置之间光信号发射和反射的时间差或相位差来确定目标图像采集距离。Optionally, in an embodiment of the present application, the distance measurement component is also used to determine the target image collection distance by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image collection device.
可选地,在本申请的一个实施例中,距离测量组件包括飞行时间测距模块,图像采集组件包括结构光图像采集组件和/或RGB图像采集组件。Optionally, in an embodiment of the present application, the distance measurement component includes a time-of-flight ranging module, and the image acquisition component includes a structured light image acquisition component and/or an RGB image acquisition component.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如第一方面或第一方面的任意一个实施例中所描述的方法。In the third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the implementation is as described in the first aspect or any one of the embodiments of the first aspect. Methods.
本申请实施例中,根据曝光时间确定模型确定目标对象和图像采集装置之间的目标图像采集距离对应的目标曝光时间,按照目标图像采集距离和与之对应的目标曝光时间对目标对象进行图像采集,得到的采集图像中目标对象的 亮度不会太亮或太暗,避免出现过度曝光或者欠曝光的情况,目标对象的显示更加清晰,提高了采集图像的质量,而且,根据曝光时间确定模型和目标图像采集距离直接确定了与之对应的目标曝光时间,可以快速确定合适的曝光时间,提高了效率。In the embodiment of the present application, the target exposure time corresponding to the target image acquisition distance between the target object and the image acquisition device is determined according to the exposure time determination model, and the target object is imaged according to the target image acquisition distance and the corresponding target exposure time. , The brightness of the target object in the acquired image will not be too bright or too dark, avoiding overexposure or underexposure, the display of the target object is clearer, improving the quality of the acquired image, and determining the model and target according to the exposure time The image collection distance directly determines the corresponding target exposure time, which can quickly determine the appropriate exposure time and improve efficiency.
附图说明Description of the drawings
后文将参照附图以示例性而非限制性的方式详细描述本申请实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比例绘制的。附图中:Hereinafter, some specific embodiments of the embodiments of the present application will be described in detail in an exemplary but not restrictive manner with reference to the accompanying drawings. The same reference numerals in the drawings indicate the same or similar components or parts. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the attached picture:
图1为本申请实施例提供的一种图像采集方法的流程图;FIG. 1 is a flowchart of an image acquisition method provided by an embodiment of the application;
图2为本申请实施例提供的一种曝光时间与亮度的关系示意图;2 is a schematic diagram of the relationship between exposure time and brightness provided by an embodiment of the application;
图3为本申请实施例提供的一种人脸识别门锁的结构图;FIG. 3 is a structural diagram of a face recognition door lock provided by an embodiment of the application;
图4为本申请实施例提供的一种不同距离下目标对象的亮度分布示意图;4 is a schematic diagram of brightness distribution of target objects at different distances according to an embodiment of the application;
图5为本申请实施例提供的一种映射建立方法的流程图;FIG. 5 is a flowchart of a mapping establishment method provided by an embodiment of the application;
图6为本申请实施例提供的一种样本图像的采集方法的逻辑框图;FIG. 6 is a logical block diagram of a method for collecting sample images according to an embodiment of the application;
图7为本申请实施例提供的一种图像采集装置的结构图;FIG. 7 is a structural diagram of an image acquisition device provided by an embodiment of the application;
图8为本申请实施例提供的一种图像采集装置的结构图。FIG. 8 is a structural diagram of an image acquisition device provided by an embodiment of the application.
具体实施方式detailed description
实施本申请实施例的任一技术方案必不一定需要同时达到以上的所有优点。The implementation of any technical solution of the embodiments of the present application does not necessarily need to achieve all the above advantages at the same time.
为了使本领域的人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请实施例保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the description The embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art should fall within the protection scope of the embodiments of the present application.
下面结合本申请实施例附图进一步说明本申请实施例具体实现。The specific implementation of the embodiments of the present application will be further described below in conjunction with the drawings of the embodiments of the present application.
实施例一、Example one,
图1为本申请实施例提供的一种图像采集方法的流程图,该图像采集方法可以应用于图像采集装置,图像采集装置可以是红外相机、数码相机、智能手机平板电脑等具有图像采集功能的电子设备,如图1所示,该图像采集方法 包括以下步骤:Figure 1 is a flowchart of an image acquisition method provided by an embodiment of the application. The image acquisition method can be applied to an image acquisition device. The image acquisition device can be an infrared camera, a digital camera, a smart phone tablet computer, etc., which has an image acquisition function. For electronic equipment, as shown in Fig. 1, the image acquisition method includes the following steps:
步骤101、确定目标对象与图像采集装置之间的目标图像采集距离。Step 101: Determine the target image capture distance between the target object and the image capture device.
本申请实施例中,目标图像采集距离即为目标对象与图像采集装置之间的距离。目标对象可以是人脸、车牌等,本申请对此不作限制。在本申请中,目标一词用于表示单数,并不是用于任何限定,目标对象表示的是一个采集对象,本申请以这个采集对象为例描述方案实现的过程,并不具有任何限定作用,目标图像采集距离也表示的是任意一个采集距离。In the embodiment of the present application, the target image acquisition distance is the distance between the target object and the image acquisition device. The target object can be a human face, a license plate, etc., which is not limited in this application. In this application, the term target is used to indicate a singular number and is not used for any limitation. The target object refers to a collection object. This application uses this collection object as an example to describe the process of implementation of the solution, and does not have any limiting effect. The target image collection distance also indicates any collection distance.
可选地,在本申请的一个实施例中,确定目标对象与图像采集装置之间的图像采集距离,包括:通过计算目标对象与图像采集装置之间光信号发射和反射的时间差或相位差来确定目标图像采集距离。Optionally, in an embodiment of the present application, determining the image capture distance between the target object and the image capture device includes: calculating the time difference or phase difference between the light signal emission and reflection between the target object and the image capture device. Determine the target image collection distance.
例如,图像采集装置通过传感器向目标对象发出光信号(比如红外光),遇到目标对象被反射后又被传感器接收,通过计算光信号发射和反射的时间差或相位差来确定目标对象与图像采集装置之间的距离。在一些应用场景中,例如,图像采集装置是红外相机,红外相机自身就有接收红外光的传感器,不需要对设备本身进行太大的改变,更加便捷。For example, the image acquisition device sends a light signal (such as infrared light) to the target object through the sensor, and is received by the sensor after being reflected by the target object, and determines the target object and the image acquisition by calculating the time difference or phase difference between the light signal emission and reflection The distance between the devices. In some application scenarios, for example, the image acquisition device is an infrared camera, and the infrared camera itself has a sensor that receives infrared light, so there is no need to make much changes to the device itself, which is more convenient.
步骤102、根据目标图像采集距离和曝光时间确定模型确定图像采集装置对目标对象进行图像采集时使用的目标曝光时间。Step 102: Determine the target exposure time used by the image acquisition device for image acquisition of the target object according to the target image acquisition distance and exposure time determination model.
曝光时间确定模型用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系。图像采集距离指的是图像采集装置到采集对象之间的距离,在本申请中,采集对象即为目标对象。目标曝光时间为在曝光时间确定模型中与目标图像采集距离对应的曝光时间,目标图像采集距离属于至少一个图像采集距离,按照曝光时间确定模型中相互对应的图像采集距离和曝光时间对目标对象进行图像采集时,得到的采集图像中目标对象的亮度在预设范围内。曝光时间确定模型可以是一个预设映射,预设映射可以通过列表、函数、或图像的形式表现,本申请对此不作限制。例如,图像采集距离为500mm,对应的曝光时间为10ms,表示按照图像采集装置和目标对象之间的距离为500mm,曝光时间为10ms对目标对象进行图像采集得到的采集图像中,目标对象的亮度在预设范围内。The exposure time determination model is used to indicate the correspondence between at least one image acquisition distance and at least one exposure time. The image collection distance refers to the distance between the image collection device and the collection object. In this application, the collection object is the target object. The target exposure time is the exposure time corresponding to the target image collection distance in the exposure time determination model. The target image collection distance belongs to at least one image collection distance. The corresponding image collection distance and exposure time in the model are determined according to the exposure time. During image acquisition, the brightness of the target object in the acquired image is within a preset range. The exposure time determination model may be a preset mapping, and the preset mapping may be expressed in the form of a list, a function, or an image, which is not limited in this application. For example, if the image acquisition distance is 500mm, the corresponding exposure time is 10ms, which means that the brightness of the target object in the acquired image obtained by the image acquisition of the target object according to the distance between the image acquisition device and the target object is 500mm and the exposure time is 10ms Within the preset range.
需要说明的是,目标对象的亮度越大,目标对象就显示的越清楚,但是,如果亮度过大,也可能因为过度曝光导致目标对象不清晰,亮度可以由DN值(英文:Digital Number,遥感影像像元亮度值)或灰度值表示。可选地,在本 申请的一个实施例中,目标对象可以是人脸,预设范围为[900,1000],至少一个图像采集距离的取值范围为大于或等于300毫米,且小于或等于1200毫米。通常情况下,对人脸进行图像采集的有效距离在300毫米到1200毫米之间,当然,此处只是示例性说明。对于预设范围,参照图2所示,图2为本申请实施例提供的一种曝光时间与亮度的关系示意图,图2中,曝光时间在180ms以内时,亮度随着曝光时间的增加线性增加,曝光时间在超过180ms之后,亮度随着曝光时间的增加呈非线性增长,曝光时间在180ms时对应的亮度为900,因此,如果采集到的图像中目标对象的亮度超过900,再增加曝光时间进行图像采集,目标对象就会过度曝光,显示不清晰,因此,将预设范围设定在[900,1000]之间,既保证图像中目标对象所在区域充分曝光,显示清晰,又能避免过度曝光,当然,预设范围也可以灵活调整,例如,将预设范围设定在[800,900]之间,或者[850,900]之间,或者[900,950]之间,都是可以的,本申请对此不作限制。It should be noted that the greater the brightness of the target object, the clearer the target object will be displayed. However, if the brightness is too large, the target object may be unclear due to overexposure. The brightness can be determined by the DN value (English: Digital Number, remote sensing). Image pixel brightness value) or gray value representation. Optionally, in an embodiment of the present application, the target object may be a human face, the preset range is [900, 1000], and the value range of at least one image collection distance is greater than or equal to 300 mm and less than or equal to 1200 mm. Under normal circumstances, the effective distance for image collection of a human face is between 300 mm and 1200 mm. Of course, this is only an exemplary description. For the preset range, refer to FIG. 2. FIG. 2 is a schematic diagram of the relationship between exposure time and brightness provided by an embodiment of the application. In FIG. 2, when the exposure time is within 180ms, the brightness increases linearly with the increase of the exposure time. , After the exposure time exceeds 180ms, the brightness increases nonlinearly with the increase of the exposure time. When the exposure time is 180ms, the corresponding brightness is 900. Therefore, if the brightness of the target object in the captured image exceeds 900, increase the exposure time During image acquisition, the target object will be overexposed and the display is not clear. Therefore, the preset range is set between [900,1000] to ensure that the area where the target object is located in the image is fully exposed and displayed clearly, and it can also avoid overexposure. Exposure, of course, the preset range can also be flexibly adjusted. For example, it is possible to set the preset range between [800,900], or between [850,900], or between [900,950]. No restrictions.
可选地,在本申请的一个实施例中,该方法还包括:确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立预设映射。Optionally, in an embodiment of the present application, the method further includes: determining the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and according to the correspondence between the at least one image acquisition distance and the at least one exposure time Create a default mapping.
步骤103、按照目标图像采集距离和目标曝光时间对目标对象进行图像采集。Step 103: Perform image collection on the target object according to the target image collection distance and the target exposure time.
结合步骤101-103所描述的图像采集方法,此处,以一个具体的应用场景为例说明本申请实施例提供的图像采集方法的实现过程。该应用场景以人脸识别门锁为例,在该场景中,目标对象为人脸,图像采集装置可以是人脸识别门锁的一部分或者全部。参照图3所示,图3为本申请实施例提供的一种人脸识别门锁的结构图,图3中,人脸识别门锁包括处理器、红外摄像头、TOF距离传感器、红外补光器以及门锁,处理器分别与红外摄像头、TOF(英文:Time of flight,飞行时间测距法)距离传感器以及红外补光器连接,以实现对这些元件的控制。在使用过程中,用户需要先在人脸识别门锁上进行注册,即录入自己的人脸图像,注册成功后,用户通过人脸识别即可打开门锁。无论是在人脸注册或人脸识别过程中,人脸识别门锁都需要通过红外摄像头对用户人脸(即目标对象)进行图像采集。With reference to the image acquisition method described in steps 101-103, here, a specific application scenario is taken as an example to illustrate the implementation process of the image acquisition method provided in the embodiment of the present application. This application scenario takes a face recognition door lock as an example. In this scenario, the target object is a face, and the image acquisition device may be a part or all of the face recognition door lock. Referring to Figure 3, Figure 3 is a structural diagram of a face recognition door lock provided by an embodiment of the application. In Figure 3, the face recognition door lock includes a processor, an infrared camera, a TOF distance sensor, and an infrared light supplement. As well as the door lock, the processor is respectively connected with an infrared camera, a TOF (English: Time of Flight, time of flight distance measurement method) distance sensor, and an infrared light supplementer to realize the control of these components. During use, the user needs to register on the face recognition door lock first, that is, enter his face image. After the registration is successful, the user can open the door lock through face recognition. Whether in the process of face registration or face recognition, face recognition door locks need to use an infrared camera to capture images of the user's face (that is, the target object).
在图像采集过程中,处理器控制TOF距离传感器测量红外摄像头到用户人脸之间的距离作为目标图像采集距离,红外摄像头到用户人脸之间的距离就可以代表人脸识别门锁到用户人脸的距离,处理器根据预设映射确定目标图像 采集距离对应的目标曝光时间,处理器根据目标曝光时间控制红外补光器补光,并控制红外摄像头对用户人脸进行图像采集。根据预设映射确定的曝光时间,可以使得采集图像中用户人脸区域的亮度达到900,使得用户人脸显示更加清晰。参照图4所示,图4为本申请实施例提供的一种不同距离下目标对象的亮度分布示意图,图4中,横坐标表示距离,纵坐标表示亮度,图4中,预设范围是(830,920)根据预设映射自动曝光后,目标对象的亮度在830到920之间。In the image acquisition process, the processor controls the TOF distance sensor to measure the distance between the infrared camera and the user's face as the target image acquisition distance. The distance between the infrared camera and the user's face can represent the face recognition door lock to the user's person. For the distance of the face, the processor determines the target exposure time corresponding to the target image collection distance according to the preset mapping. The processor controls the infrared light supplementer to fill light according to the target exposure time, and controls the infrared camera to collect images of the user's face. The exposure time determined according to the preset mapping can make the brightness of the user's face area in the collected image reach 900, making the user's face display clearer. Referring to FIG. 4, FIG. 4 is a schematic diagram of the brightness distribution of a target object at different distances according to an embodiment of the application. In FIG. 4, the abscissa represents the distance and the ordinate represents the brightness. In FIG. 4, the preset range is ( 830,920) After automatic exposure according to the preset mapping, the brightness of the target object is between 830 and 920.
本申请实施例中,根据预设映射确定目标对象和图像采集装置之间的目标图像采集距离对应的目标曝光时间,按照目标图像采集距离和与之对应的目标曝光时间对目标对象进行图像采集,得到的采集图像中目标对象的亮度不会太亮或太暗,避免出现过度曝光或者欠曝光的情况,目标对象的显示更加清晰,提高了采集图像的质量,而且,根据预设映射和目标图像采集距离直接确定了与之对应的目标曝光时间,可以快速确定合适的曝光时间,提高了效率。In the embodiment of the present application, the target exposure time corresponding to the target image acquisition distance between the target object and the image acquisition device is determined according to the preset mapping, and the target object is imaged according to the target image acquisition distance and the corresponding target exposure time. The brightness of the target object in the acquired captured image will not be too bright or too dark to avoid overexposure or underexposure, the display of the target object is clearer, and the quality of the captured image is improved. Moreover, according to the preset mapping and target image capture The distance directly determines the corresponding target exposure time, which can quickly determine the appropriate exposure time and improve efficiency.
实施例二、Embodiment two
基于上述实施例一所描述的图像采集方法,本申请实施例二提供一种映射建立方法,本实施例以预设映射为例对曝光时间确定模型进行说明,并不代表本申请局限于此。参照图5所示,图5为本申请实施例提供的一种映射建立方法的流程图,该方法包括以下步骤:Based on the image acquisition method described in the first embodiment, the second embodiment of the present application provides a mapping establishment method. This embodiment uses a preset mapping as an example to illustrate the exposure time determination model, which does not mean that the application is limited to this. Referring to FIG. 5, FIG. 5 is a flowchart of a mapping establishment method provided by an embodiment of the application, and the method includes the following steps:
步骤501、以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像。Step 501: Use the preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image.
需要说明的是,预设距离可以是至少一个图像采集距离中任意一个距离长度,至少一个图像采集距离的取值范围可以是300毫米到1200毫米之间的任意一个距离。It should be noted that the preset distance may be any length of at least one image collection distance, and the value range of the at least one image collection distance may be any distance between 300 mm and 1200 mm.
可选地,在本申请的一个实施例中,以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像,包括:Optionally, in an embodiment of the present application, using a preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image includes:
以预设距离作为图像采集距离对目标对象按照预设曝光时间进行图像采集得到样本图像;在样本图像中目标对象的亮度小于第一阈值时,增加预设曝光时间对目标对象重新进行图像采集;在样本图像中目标对象的亮度大于第二阈值时,减少预设曝光时间对目标对象重新进行图像采集,预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。需要说明的是,增加或减小曝光时间时可以按照预设步长增加或减小,例如,预设步长为10ms,如果预设曝光时间为20ms,按照10ms的曝光时间对目标对象进行图像采集,得到的 图像中如果目标对象的亮度小于第一阈值,则将曝光时间增加10ms,按照30ms的曝光时间重新采集图像,如果目标对象的亮度大于第二阈值,则将曝光时间减小10ms,按照10ms的曝光时间对目标对象进行图像采集。当然,此处只是示例性说明。预设步长也可以是1ms,预设曝光时间可以是8ms。第一阈值可以是800或900,第二阈值可以是950或1000,本申请对此不作限制。Using the preset distance as the image collection distance, perform image collection of the target object according to the preset exposure time to obtain a sample image; when the brightness of the target object in the sample image is less than the first threshold, increase the preset exposure time to perform image collection again on the target object; When the brightness of the target object in the sample image is greater than the second threshold, reduce the preset exposure time to perform image acquisition again on the target object. The preset range includes a range greater than or equal to the first threshold and less than or equal to the second threshold. It should be noted that when increasing or decreasing the exposure time, it can be increased or decreased according to the preset step length. For example, the preset step length is 10ms. If the preset exposure time is 20ms, the target object will be imaged according to the exposure time of 10ms. In the acquired image, if the brightness of the target object is less than the first threshold, the exposure time is increased by 10ms, and the image is re-acquired according to the exposure time of 30ms. If the brightness of the target object is greater than the second threshold, the exposure time is reduced by 10ms, According to the exposure time of 10ms, the target object is imaged. Of course, this is only an exemplary description. The preset step length can also be 1ms, and the preset exposure time can be 8ms. The first threshold may be 800 or 900, and the second threshold may be 950 or 1000, which is not limited in this application.
步骤502、计算每一个样本图像中目标对象所在区域的像素亮度的平均值作为每一个样本图像中目标对象的亮度。Step 502: Calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
亮度可以用DN值或者灰度值表示,本申请对此不作限制。The brightness can be represented by a DN value or a gray value, which is not limited in this application.
需要说明的是,也可以将目标对象所在区域的像素亮度的最大值或最小值作为每一个样本图像中目标对象的亮度,本申请对此不作限制。It should be noted that the maximum or minimum value of the pixel brightness of the area where the target object is located can also be used as the brightness of the target object in each sample image, which is not limited in this application.
步骤503、将至少一个样本图像中目标对象的亮度在预设范围内的样本图像确定为目标样本图像。Step 503: Determine a sample image in at least one sample image whose brightness of the target object is within a preset range as the target sample image.
步骤504、将目标样本图像的曝光时间确定为预设距离对应的曝光时间。Step 504: Determine the exposure time of the target sample image as the exposure time corresponding to the preset distance.
步骤501-步骤504根据预设距离的至少一个样本图像确定了预设距离对应的曝光时间。预设映射(即曝光时间确定模型)指示至少一个图像采集距离与至少一个曝光时间之间的对应关系,至少一个图像采集距离中,每一个图像采集距离都可以按照步骤501-步骤504的方法确定对应的曝光时间。例如,至少一个图像采集距离可以包括(300mm、310mm、320mm……1190mm、1200mm),即以10mm为步长从300mm增加到1200mm,当然,此处只是示例性说明,至少一个图像采集距离也可以包含更多数值。 Steps 501 to 504 determine the exposure time corresponding to the preset distance according to at least one sample image at the preset distance. The preset mapping (ie, the exposure time determination model) indicates the correspondence between at least one image collection distance and at least one exposure time. In the at least one image collection distance, each image collection distance can be determined according to the method of step 501-step 504 The corresponding exposure time. For example, at least one image collection distance may include (300mm, 310mm, 320mm...1190mm, 1200mm), that is, increase from 300mm to 1200mm in steps of 10mm. Of course, this is only an exemplary description, and at least one image collection distance can also be Include more values.
步骤505、根据至少一个图像采集距离和至少一个曝光时间的对应关系建立预设映射。Step 505: Establish a preset mapping according to the correspondence between at least one image collection distance and at least one exposure time.
实施例三、Embodiment three
基于实施例二中步骤501-步骤505所描述的映射建立方法,此处,列举一个具体示例对样本图像的采集过程进行说明,如图6所示,图6为本申请实施例提供的一种样本图像的采集方法的逻辑框图,此处,以目标对象是人脸为例,预设曝光时间为8ms,曝光时间的步长为1ms,预设范围是900,至少一个图像采集距离的取值范围为(300mm、310mm、320mm……1190mm、1200mm),参照图6,该示例的样本图像的采集方法包括以下步骤:Based on the mapping establishment method described in step 501 to step 505 in the second embodiment, here, a specific example is cited to illustrate the collection process of the sample image, as shown in FIG. 6, which is a method provided by an embodiment of this application. The logical block diagram of the sample image acquisition method. Here, the target object is a human face as an example, the preset exposure time is 8ms, the step length of the exposure time is 1ms, the preset range is 900, and at least one value of the image acquisition distance The range is (300mm, 310mm, 320mm...1190mm, 1200mm). Referring to Figure 6, the sample image acquisition method of this example includes the following steps:
601、设置图像采集距离d为300ms,即d=300ms;601. Set the image collection distance d to 300ms, that is, d=300ms;
602、判断图像采集距离是否小于或等于1200ms;602. Determine whether the image collection distance is less than or equal to 1200 ms;
如果图像采集距离小于或等于1200,则执行步骤603,否则,方法结束。If the image collection distance is less than or equal to 1200, step 603 is executed, otherwise, the method ends.
603、采用预设曝光时间采集一帧人脸图像。603. Acquire a frame of face image by using a preset exposure time.
需要说明的是,初始的预设曝光时间为8ms。It should be noted that the initial preset exposure time is 8ms.
604、计算人脸区域的DN值均值(即目标对象所在区域的像素亮度平均值)。604. Calculate the average value of the DN value of the face area (that is, the average value of the pixel brightness of the area where the target object is located).
605、判断DN值均值是否小于900。605. Determine whether the average DN value is less than 900.
在DN值均值小于900时,执行步骤606,否则执行步骤607。When the average DN value is less than 900, step 606 is executed; otherwise, step 607 is executed.
606、将曝光时间增加1ms,并执行步骤603。606. Increase the exposure time by 1 ms, and execute step 603.
607、判断DN值均值是否大于900。607. Determine whether the average DN value is greater than 900.
在DN值均值大于900时,执行步骤608,否则执行步骤609。When the average DN value is greater than 900, step 608 is executed; otherwise, step 609 is executed.
608、将曝光时间减小1ms,并执行步骤603。608. Reduce the exposure time by 1 ms, and execute step 603.
以8ms为曝光时间采集一帧人脸图像(即样本图像),计算人脸图像中人脸区域的DN值均值,判断DN值均值是否小于900,在DN值均值小于900时,将曝光时间增加1ms,重新采集人脸图像进行判断,在DN值均值不小于900时,判断DN值均值是否大于900,如果DN值均值,记录DN值达到900的曝光时间作为300mm对应的曝光时间;通过调整曝光时间使人脸区域的DN值均值达到900,此处,预设范围只包含900这一个值。Collect a frame of face image (ie sample image) with 8ms as the exposure time, calculate the average DN value of the face area in the face image, determine whether the average DN value is less than 900, when the average DN value is less than 900, increase the exposure time 1ms, re-acquire the face image for judgment. When the average DN value is not less than 900, judge whether the average DN value is greater than 900. If the average DN value, record the exposure time when the DN value reaches 900 as the exposure time corresponding to 300mm; adjust the exposure Time makes the average DN value of the face area reach 900. Here, the preset range only includes the value of 900.
609、记录当前的图像采集距离与曝光时间的映射对。609. Record the mapping pair of the current image collection distance and exposure time.
610、将图像采集距离增加10mm,并返回步骤602。610: Increase the image collection distance by 10 mm, and return to step 602.
循环执行步骤602-610,即可确定每一个图像采集距离对应的曝光时间,并建立预设映射。Repeat steps 602-610 to determine the exposure time corresponding to each image collection distance, and establish a preset mapping.
实施例四、Embodiment four
基于上述实施例一至实施例三所描述的方法,本申请实施例提供了一种图像采集装置,用于执行实施例一至实施例三所描述的方法,如图7所示,该图像采集装置70包括:处理器701、距离测量组件702及图像采集组件703,距离测量组件702和图像采集组件703均与处理器701电连接;Based on the methods described in the first to third embodiments above, an embodiment of the present application provides an image acquisition device for executing the methods described in the first to third embodiments. As shown in FIG. 7, the image acquisition device 70 Including: a processor 701, a distance measurement component 702, and an image acquisition component 703, and both the distance measurement component 702 and the image acquisition component 703 are electrically connected to the processor 701;
其中,距离测量组件702,用于确定目标对象与图像采集装置之间的目标图像采集距离;Wherein, the distance measurement component 702 is used to determine the target image acquisition distance between the target object and the image acquisition device;
处理器701,用于根据目标图像采集距离和预设映射确定图像采集装置对目标对象进行图像采集时使用的目标曝光时间,预设映射用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系其中,按照曝光时间确定模 型中相互对应的图像采集距离和曝光时间对目标对象进行图像采集时,得到的采集图像中目标对象的亮度在预设范围内;The processor 701 is configured to determine the target exposure time used by the image capture device for image capture of the target object according to the target image capture distance and a preset mapping, and the preset mapping is used to indicate a distance between at least one image capture distance and at least one exposure time Wherein, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, when the target object is imaged, the brightness of the target object in the acquired image is within a preset range;
图像采集组件703,用于按照目标图像采集距离和目标曝光时间对目标对象进行图像采集。The image acquisition component 703 is used for image acquisition of the target object according to the target image acquisition distance and the target exposure time.
可选地,在本申请的一个实施例中,如图8所示,图像采集装置70还可以包括存储器704,存储器704和处理器701电连接,该存储器704上存储有计算机程序,处理器701执行该计算机程序实现如实施例一至实施例三所描述的方法。当然,此处只是示例性说明,计算机程序也可以存储在处理器701上,本申请对此不作限制。Optionally, in an embodiment of the present application, as shown in FIG. 8, the image acquisition device 70 may further include a memory 704, which is electrically connected to the processor 701, the memory 704 stores a computer program, and the processor 701 Executing the computer program implements the methods described in the first to third embodiments. Of course, this is only an exemplary description, and the computer program may also be stored on the processor 701, which is not limited in this application.
可选地,在本申请的一个实施例中,处理器701,还用于确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立预设映射,按照相互对应的图像采集距离和曝光时间对目标对象采集的图像中,目标对象的亮度在预设范围内。Optionally, in an embodiment of the present application, the processor 701 is further configured to determine the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and determine the exposure time corresponding to the at least one image acquisition distance and the at least one exposure time. The corresponding relationship establishes a preset mapping, and the brightness of the target object is within the preset range in the images collected on the target object according to the corresponding image collection distance and exposure time.
可选地,在本申请的一个实施例中,处理器701,还用于以预设距离作为图像采集距离对目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像;将至少一个样本图像中目标对象的亮度在预设范围内的样本图像确定为目标样本图像,并将目标样本图像的曝光时间确定为预设距离对应的曝光时间。Optionally, in an embodiment of the present application, the processor 701 is further configured to use a preset distance as the image collection distance to perform image collection of the target object according to at least one exposure time to obtain at least one sample image; The sample image in which the brightness of the target object is within the preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
可选地,在本申请的一个实施例中,处理器701,还用于以预设距离作为图像采集距离对目标对象按照预设曝光时间进行图像采集得到样本图像;在样本图像中目标对象的亮度小于第一阈值时,增加预设曝光时间对目标对象重新进行图像采集;在样本图像中目标对象的亮度大于第二阈值时,减少预设曝光时间对目标对象重新进行图像采集,预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。Optionally, in an embodiment of the present application, the processor 701 is further configured to use the preset distance as the image collection distance to perform image collection of the target object according to the preset exposure time to obtain a sample image; When the brightness is less than the first threshold, increase the preset exposure time to perform image acquisition again on the target object; when the brightness of the target object in the sample image is greater than the second threshold, reduce the preset exposure time to perform image acquisition again on the target object, the preset range Including the range greater than or equal to the first threshold and less than or equal to the second threshold.
可选地,在本申请的一个实施例中,处理器701,还用于计算每一个样本图像中目标对象所在区域的像素亮度的平均值作为每一个样本图像中目标对象的亮度。Optionally, in an embodiment of the present application, the processor 701 is further configured to calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
可选地,在本申请的一个实施例中,距离测量组件702,还用于通过计算目标对象与图像采集装置之间光信号发射和反射的时间差或相位差来确定目标图像采集距离。Optionally, in an embodiment of the present application, the distance measurement component 702 is also used to determine the target image collection distance by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image collection device.
可选地,在本申请的一个实施例中,距离测量组件702包括飞行时间测 距模块,图像采集组件703包括结构光图像采集组件和/或RGB图像采集组件。Optionally, in an embodiment of the present application, the distance measurement component 702 includes a time-of-flight ranging module, and the image acquisition component 703 includes a structured light image acquisition component and/or an RGB image acquisition component.
需要说明的是,该飞行时间测距模块可以包括TOF距离传感器,结构光图像采集组件可以包括散斑投射器,用于获取目标对象的深度信息,RGB(英文:Red Green Blue,红绿蓝)图像采集组件可以包括摄像头,用于获取目标对象的二维图像,通过结构光图像采集组件和RGB图像采集组件可以获取目标对象完整的三维图像信息。当然,此处只是示例性说明,图像采集组件703也可以只包含摄像头,例如,红外摄像头、普通摄像头等,本申请对此不作限制。It should be noted that the time-of-flight ranging module may include a TOF distance sensor, and the structured light image acquisition component may include a speckle projector to obtain the depth information of the target object, RGB (English: Red Green Blue) The image acquisition component may include a camera for acquiring a two-dimensional image of the target object, and the complete three-dimensional image information of the target object can be acquired through the structured light image acquisition component and the RGB image acquisition component. Of course, this is only an exemplary description, and the image acquisition component 703 may also only include a camera, for example, an infrared camera, a common camera, etc., which is not limited in this application.
该图像采集装置70可以是智能手机、红外相机、人脸识别门锁等设备。The image acquisition device 70 can be a smart phone, an infrared camera, a face recognition door lock and other equipment.
实施例五、Embodiment five
基于上述实施例一至实施例三所描述的方法,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如实施例一至实施例三所描述的方法。Based on the methods described in the first to third embodiments above, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. The feature is that when the program is executed by a processor, the implementation is as in the first to third embodiments. The method described in the third embodiment.
本申请实施例的图像采集装置可以以多种形式存在,包括但不限于:The image acquisition device of the embodiment of the present application may exist in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communications. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features. Such terminals include: PDA, MID and UMPC devices, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器810、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The structure of a server includes a processor 810, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it is High requirements in terms of performance, reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
至此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中, 多任务处理和并行处理可以是有利的。So far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired result. In certain embodiments, multitasking and parallel processing may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method flow). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (for example, a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD, without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized with "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description), etc., currently most commonly used It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logic programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制 器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor, and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in the same one or more software and/or hardware.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个 流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in a computer readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or they also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定事务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备 来执行事务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application can also be practiced in distributed computing environments. In these distributed computing environments, transactions are executed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing descriptions are only examples of the present application, and are not used to limit the present application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (15)

  1. 一种图像采集方法,其特征在于,应用于图像采集装置,包括:An image acquisition method, characterized in that it is applied to an image acquisition device, and includes:
    确定目标对象与图像采集装置之间的目标图像采集距离;Determine the target image capture distance between the target object and the image capture device;
    根据所述目标图像采集距离和曝光时间确定模型确定所述图像采集装置对所述目标对象进行图像采集时使用的目标曝光时间,所述曝光时间确定模型用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系,其中,按照所述曝光时间确定模型中相互对应的图像采集距离和曝光时间对所述目标对象进行图像采集时,得到的采集图像中所述目标对象的亮度在预设范围内;According to the target image acquisition distance and the exposure time determination model, the target exposure time used by the image acquisition device for image acquisition of the target object is determined, and the exposure time determination model is used to indicate at least one image acquisition distance and at least one Correspondence between exposure time, wherein, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, the brightness of the target object in the acquired image is determined in advance. Set within
    按照所述目标图像采集距离和所述目标曝光时间对所述目标对象进行图像采集。Image acquisition is performed on the target object according to the target image acquisition distance and the target exposure time.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立所述曝光时间确定模型。The exposure time corresponding to each image collection distance in the at least one image collection distance is determined, and the exposure time determination model is established according to the corresponding relationship between the at least one image collection distance and the at least one exposure time.
  3. 根据权利要求2所述的方法,其特征在于,确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,包括:The method according to claim 2, wherein determining the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance comprises:
    以预设距离作为图像采集距离对所述目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像;Use the preset distance as the image collection distance to perform image collection on the target object according to at least one exposure time to obtain at least one sample image;
    将所述至少一个样本图像中所述目标对象的亮度在所述预设范围内的样本图像确定为目标样本图像,并将所述目标样本图像的曝光时间确定为所述预设距离对应的曝光时间。Determine a sample image in the at least one sample image in which the brightness of the target object is within the preset range as a target sample image, and determine the exposure time of the target sample image as the exposure corresponding to the preset distance time.
  4. 根据权利要求3所述的方法,其特征在于,以预设距离作为图像采集距离对所述目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像,包括:The method according to claim 3, wherein the image acquisition of the target object according to at least one exposure time by using the preset distance as the image acquisition distance to obtain at least one sample image comprises:
    以预设距离作为图像采集距离对所述目标对象按照预设曝光时间进行图像采集得到样本图像;Using the preset distance as the image collection distance to perform image collection on the target object according to the preset exposure time to obtain a sample image;
    在所述样本图像中所述目标对象的亮度小于第一阈值时,增加所述预设曝光时间对所述目标对象重新进行图像采集;在所述样本图像中所述目标对象的亮度大于第二阈值时,减少所述预设曝光时间对所述目标对象重新进行图像采集,所述预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。When the brightness of the target object in the sample image is less than the first threshold, increase the preset exposure time to re-image the target object; the brightness of the target object in the sample image is greater than the second When the threshold is set, the preset exposure time is reduced to perform image acquisition again on the target object, and the preset range includes a range greater than or equal to the first threshold and less than or equal to the second threshold.
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    计算每一个样本图像中所述目标对象所在区域的像素亮度的平均值作为所 述每一个样本图像中所述目标对象的亮度。The average value of the pixel brightness of the area where the target object is located in each sample image is calculated as the brightness of the target object in each sample image.
  6. 根据权利要求1所述的方法,其特征在于,所述目标对象为人脸,所述预设范围为[900,1000],所述至少一个图像采集距离的取值范围为大于或等于300毫米,且小于或等于1200毫米。The method according to claim 1, wherein the target object is a human face, the preset range is [900, 1000], and the value range of the at least one image collection distance is greater than or equal to 300 mm, And less than or equal to 1200 mm.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,确定目标对象与图像采集装置之间的目标图像采集距离,包括:The method according to any one of claims 1 to 6, wherein determining the target image collection distance between the target object and the image collection device comprises:
    通过计算所述目标对象与所述图像采集装置之间光信号发射和反射的时间差或相位差来确定所述目标图像采集距离。The target image acquisition distance is determined by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image acquisition device.
  8. 一种图像采集装置,其特征在于,包括:处理器、距离测量组件及图像采集组件;所述距离测量组件和所述图像采集组件均与所述处理器电连接;An image acquisition device, characterized by comprising: a processor, a distance measurement component, and an image acquisition component; both the distance measurement component and the image acquisition component are electrically connected to the processor;
    其中,所述距离测量组件,用于确定目标对象与图像采集装置之间的目标图像采集距离;Wherein, the distance measurement component is used to determine the target image acquisition distance between the target object and the image acquisition device;
    所述处理器,用于根据所述目标图像采集距离和曝光时间确定模型确定图像采集装置对所述目标对象进行图像采集时使用的目标曝光时间,所述曝光时间确定模型用于指示至少一个图像采集距离和至少一个曝光时间之间的对应关系,其中,按照所述曝光时间确定模型中相互对应的图像采集距离和曝光时间对所述目标对象进行图像采集时,得到的采集图像中所述目标对象的亮度在预设范围内;The processor is configured to determine the target exposure time used by the image acquisition device for image acquisition of the target object according to the target image acquisition distance and the exposure time determination model, and the exposure time determination model is used to indicate at least one image Correspondence between the acquisition distance and at least one exposure time, wherein, when the image acquisition distance and exposure time corresponding to each other in the model are determined according to the exposure time, the target object in the acquired image The brightness of the object is within the preset range;
    所述图像采集组件,用于按照所述目标图像采集距离和所述目标曝光时间对所述目标对象进行图像采集。The image acquisition component is used for image acquisition of the target object according to the target image acquisition distance and the target exposure time.
  9. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, wherein:
    所述处理器,还用于确定至少一个图像采集距离中每个图像采集距离对应的曝光时间,并根据至少一个图像采集距离和至少一个曝光时间的对应关系建立所述曝光时间确定模型。The processor is further configured to determine the exposure time corresponding to each image acquisition distance in the at least one image acquisition distance, and establish the exposure time determination model according to the corresponding relationship between the at least one image acquisition distance and the at least one exposure time.
  10. 根据权利要求9所述的装置,其特征在于,The device according to claim 9, wherein:
    所述处理器,还用于以预设距离作为图像采集距离对所述目标对象按照至少一个曝光时间进行图像采集得到至少一个样本图像;将所述至少一个样本图像中所述目标对象的亮度在所述预设范围内的样本图像确定为目标样本图像,并将所述目标样本图像的曝光时间确定为所述预设距离对应的曝光时间。The processor is further configured to use a preset distance as the image acquisition distance to perform image acquisition of the target object according to at least one exposure time to obtain at least one sample image; and to set the brightness of the target object in the at least one sample image at The sample image within the preset range is determined as the target sample image, and the exposure time of the target sample image is determined as the exposure time corresponding to the preset distance.
  11. 根据权利要求10所述的装置,其特征在于,The device of claim 10, wherein:
    所述处理器,还用于以预设距离作为图像采集距离对所述目标对象按照预 设曝光时间进行图像采集得到样本图像;在所述样本图像中所述目标对象的亮度小于第一阈值时,增加所述预设曝光时间对所述目标对象重新进行图像采集;在所述样本图像中所述目标对象的亮度大于第二阈值时,减少所述预设曝光时间对所述目标对象重新进行图像采集,所述预设范围包括大于或等于第一阈值,并且小于或等于第二阈值的范围。The processor is further configured to use the preset distance as the image collection distance to perform image collection of the target object according to the preset exposure time to obtain a sample image; when the brightness of the target object in the sample image is less than a first threshold , Increase the preset exposure time to perform image acquisition again on the target object; when the brightness of the target object in the sample image is greater than a second threshold, reduce the preset exposure time to perform image acquisition again on the target object For image acquisition, the preset range includes a range greater than or equal to a first threshold and less than or equal to a second threshold.
  12. 根据权利要求10所述的装置,其特征在于,The device of claim 10, wherein:
    所述处理器,用于计算每一个样本图像中所述目标对象所在区域的像素亮度的平均值作为所述每一个样本图像中所述目标对象的亮度。The processor is configured to calculate the average value of the pixel brightness of the area where the target object is located in each sample image as the brightness of the target object in each sample image.
  13. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, wherein:
    所述距离测量组件,还用于通过计算所述目标对象与所述图像采集装置之间光信号发射和反射的时间差或相位差来确定所述目标图像采集距离。The distance measurement component is also used to determine the target image acquisition distance by calculating the time difference or phase difference between the emission and reflection of the optical signal between the target object and the image acquisition device.
  14. 根据权利要求8-13任一项所述的装置,其中,所述距离测量组件包括飞行时间测距模块,所述图像采集组件包括结构光图像采集组件和/或RGB图像采集组件。The device according to any one of claims 8-13, wherein the distance measurement component includes a time-of-flight ranging module, and the image acquisition component includes a structured light image acquisition component and/or an RGB image acquisition component.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7任一项所述的方法。A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1-7.
PCT/CN2019/105582 2019-09-12 2019-09-12 Image acquisition method and apparatus, and storage medium WO2021046793A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980001904.7A CN113228622A (en) 2019-09-12 2019-09-12 Image acquisition method, image acquisition device and storage medium
PCT/CN2019/105582 WO2021046793A1 (en) 2019-09-12 2019-09-12 Image acquisition method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/105582 WO2021046793A1 (en) 2019-09-12 2019-09-12 Image acquisition method and apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2021046793A1 true WO2021046793A1 (en) 2021-03-18

Family

ID=74866887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/105582 WO2021046793A1 (en) 2019-09-12 2019-09-12 Image acquisition method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN113228622A (en)
WO (1) WO2021046793A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240428A (en) * 2021-05-27 2021-08-10 支付宝(杭州)信息技术有限公司 Payment processing method and device
CN113627923A (en) * 2021-07-02 2021-11-09 支付宝(杭州)信息技术有限公司 Offline payment method, device and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374801A (en) * 2021-12-28 2022-04-19 苏州凌云视界智能设备有限责任公司 Method, device and equipment for determining exposure time and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6426775B1 (en) * 1995-09-20 2002-07-30 Canon Kabushiki Kaisha Image pickup apparatus with distance measurement dependent on object lighting condition
CN101038624A (en) * 2003-03-28 2007-09-19 富士通株式会社 Photographic apparatus
CN101631201A (en) * 2003-03-28 2010-01-20 富士通株式会社 Camera
CN103905739A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic equipment control method and electronic equipment
CN104573603A (en) * 2013-10-09 2015-04-29 Opto电子有限公司 Optical information reader and illumination control method
CN104580929A (en) * 2015-02-02 2015-04-29 南通莱奥电子科技有限公司 Adaptive exposure type digital image processing system
CN105635565A (en) * 2015-12-21 2016-06-01 华为技术有限公司 Shooting method and equipment
CN107181918A (en) * 2016-08-09 2017-09-19 深圳市瑞立视多媒体科技有限公司 A kind of dynamic filming control method and system for catching video camera of optics

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140037135A1 (en) * 2012-07-31 2014-02-06 Omek Interactive, Ltd. Context-driven adjustment of camera parameters
CN109413326A (en) * 2018-09-18 2019-03-01 Oppo(重庆)智能科技有限公司 Camera control method and Related product
CN109903324B (en) * 2019-04-08 2022-04-15 京东方科技集团股份有限公司 Depth image acquisition method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6426775B1 (en) * 1995-09-20 2002-07-30 Canon Kabushiki Kaisha Image pickup apparatus with distance measurement dependent on object lighting condition
CN101038624A (en) * 2003-03-28 2007-09-19 富士通株式会社 Photographic apparatus
CN101631201A (en) * 2003-03-28 2010-01-20 富士通株式会社 Camera
CN103905739A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Electronic equipment control method and electronic equipment
CN104573603A (en) * 2013-10-09 2015-04-29 Opto电子有限公司 Optical information reader and illumination control method
CN104580929A (en) * 2015-02-02 2015-04-29 南通莱奥电子科技有限公司 Adaptive exposure type digital image processing system
CN105635565A (en) * 2015-12-21 2016-06-01 华为技术有限公司 Shooting method and equipment
CN107181918A (en) * 2016-08-09 2017-09-19 深圳市瑞立视多媒体科技有限公司 A kind of dynamic filming control method and system for catching video camera of optics

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113240428A (en) * 2021-05-27 2021-08-10 支付宝(杭州)信息技术有限公司 Payment processing method and device
CN113240428B (en) * 2021-05-27 2023-09-08 支付宝(杭州)信息技术有限公司 Payment processing method and device
CN113627923A (en) * 2021-07-02 2021-11-09 支付宝(杭州)信息技术有限公司 Offline payment method, device and equipment

Also Published As

Publication number Publication date
CN113228622A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US20200160040A1 (en) Three-dimensional living-body face detection method, face authentication recognition method, and apparatuses
WO2019148978A1 (en) Image processing method and apparatus, storage medium and electronic device
WO2021046715A1 (en) Exposure time calculation method, device, and storage medium
AU2014374638B2 (en) Image processing apparatus and method
US11048913B2 (en) Focusing method, device and computer apparatus for realizing clear human face
WO2021046793A1 (en) Image acquisition method and apparatus, and storage medium
CN105227838B (en) A kind of image processing method and mobile terminal
US20200167582A1 (en) Liveness detection method, apparatus and computer-readable storage medium
WO2019071613A1 (en) Image processing method and device
US20170213105A1 (en) Method and apparatus for event sampling of dynamic vision sensor on image formation
RU2628494C1 (en) Method and device for generating image filter
KR102263537B1 (en) Electronic device and control method of the same
RU2612892C2 (en) Method and device of auto focus
US11289078B2 (en) Voice controlled camera with AI scene detection for precise focusing
CN109903324B (en) Depth image acquisition method and device
CN106249508B (en) Atomatic focusing method and system, filming apparatus
US9471979B2 (en) Image recognizing apparatus and method
CN108200335A (en) Photographic method, terminal and computer readable storage medium based on dual camera
CN109714539B (en) Image acquisition method and device based on gesture recognition and electronic equipment
US20230336878A1 (en) Photographing mode determination method and apparatus, and electronic device and storage medium
TWI676113B (en) Preview method and device in iris recognition process
WO2023273498A1 (en) Depth detection method and apparatus, electronic device, and storage medium
US8804029B2 (en) Variable flash control for improved image detection
WO2018219304A1 (en) Picture processing method and apparatus, computer readable storage medium, and electronic device
CN114267041A (en) Method and device for identifying object in scene

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19944815

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19944815

Country of ref document: EP

Kind code of ref document: A1