WO2021217349A1 - Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium - Google Patents

Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium Download PDF

Info

Publication number
WO2021217349A1
WO2021217349A1 PCT/CN2020/087270 CN2020087270W WO2021217349A1 WO 2021217349 A1 WO2021217349 A1 WO 2021217349A1 CN 2020087270 W CN2020087270 W CN 2020087270W WO 2021217349 A1 WO2021217349 A1 WO 2021217349A1
Authority
WO
WIPO (PCT)
Prior art keywords
focus
distance
target
infrared device
image set
Prior art date
Application number
PCT/CN2020/087270
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 PCT/CN2020/087270 priority Critical patent/WO2021217349A1/en
Publication of WO2021217349A1 publication Critical patent/WO2021217349A1/en

Links

Images

Classifications

    • 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
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/33Transforming infrared radiation

Definitions

  • the present invention relates to the field of control technology, in particular to a focus processing method, terminal, infrared equipment, system, unmanned aerial vehicle and medium.
  • Infrared imaging equipment is expensive. In many cases, it has a fixed focal length and does not support autofocus. After the device leaves the factory, the focal length is fixed, which brings inconvenience to users. For example, some users need to focus to infinity, while some users do It needs to focus to a short distance such as 1m, and the fixed focal length brings inconvenience and restriction to users. For the sake of temperature measurement accuracy, the infrared device will confirm the focus distance and lock it before leaving the factory.
  • the embodiment of the present invention provides a focusing processing method, terminal, infrared equipment, system, drone, and medium, which optimizes the focusing effect and improves the efficiency and accuracy of focusing.
  • an embodiment of the present invention provides a focus processing method, which is applied to a terminal, and the method includes:
  • Target image set sent by an infrared device, where the target image set includes multiple images, the multiple images being generated by the infrared device when the user adjusts the focus distance of the infrared device;
  • the images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  • an embodiment of the present invention provides another focus processing method, which is applied to an infrared device, and the method includes:
  • the terminal send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
  • an embodiment of the present invention provides a terminal, including a memory, a processor, and a communication interface;
  • the memory is used to store program instructions
  • the processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
  • Target image set sent by an infrared device through a communication interface, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device;
  • the images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  • an embodiment of the present invention provides an infrared device, including a memory, a processor, and a communication interface;
  • the memory is used to store program instructions
  • the processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
  • the target image set is sent to the terminal through the communication interface, so that the terminal analyzes the images in the target image set and generates a focus definition curve, which is used by the user according to the focus
  • the sharpness curve adjusts the focusing distance of the infrared device.
  • an embodiment of the present invention provides a focus processing system, including a terminal and an infrared device;
  • the infrared device is configured to obtain a target image set generated when a user adjusts the focus distance of the infrared device, the target image set includes multiple images, and the target image set is sent to a terminal;
  • the terminal is configured to receive a target image set sent by an infrared device, and analyze the images in the target image set to generate a focus sharpness curve, and the focus sharpness curve is used for the user according to the focus sharpness
  • the degree curve adjusts the focusing distance of the infrared device.
  • an embodiment of the present invention provides a drone, including:
  • the power system configured on the fuselage is used to provide the moving power for the UAV
  • Infrared equipment mounted on the UAV mounted on the UAV
  • the terminal send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
  • an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned first or second aspect is implemented. Focus processing method.
  • the target image set sent by the infrared device is received, and the target image set includes multiple images generated by the infrared device when the user adjusts the focus distance of the infrared device, and the images in the target image set are analyzed to A focus definition curve is generated for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
  • FIG. 1 is a schematic structural diagram of a focus processing system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a focus processing method provided by an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a focus sharpness curve provided by an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another focus processing method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present invention.
  • Fig. 6 is a schematic structural diagram of an infrared device provided by an embodiment of the present invention.
  • the focus processing method provided in the embodiment of the present invention may be executed by a focus processing system.
  • the focus processing system includes a terminal and an infrared device.
  • the infrared device includes, but is not limited to, infrared thermal imaging devices, infrared cameras, thermometers, detectors, etc.;
  • the terminal includes, but is not limited to, one or more of a remote control device, a smart phone, a tablet computer, a laptop computer, and a wearable device.
  • a communication connection is established between the infrared device and the terminal.
  • FIG. 1 is a schematic structural diagram of a focus processing system according to an embodiment of the present invention.
  • the focus processing system includes: an infrared device 11, a terminal 12, and an external scene 13.
  • the infrared device 11 and the terminal 12 may establish a communication connection through a wireless communication connection.
  • the infrared device 11 and the terminal 12 may also be connected through a wired communication connection. Establish a communication connection.
  • the infrared device 11 can receive the heat radiation signal emitted by the external scene 13.
  • the terminal 12 may include one or more of a remote control device, a smart phone, a tablet computer, a laptop computer, a wearable device, and the like.
  • the infrared device 11 includes, but is not limited to, one or more of an infrared thermal imaging device, an infrared camera, a thermometer, a detector, and the like.
  • the external scene 13 may include any one or more of a focus plate, an object with infrared texture, and an object with edge information; in some embodiments, the focus plate may be Temperature-controllable focus chart board; in some embodiments, the focus chart board can be a four-bar target, a half-moon target, a blade edge target and other various objects with high-frequency information shapes.
  • the target image set sent by the infrared device is received through the terminal.
  • the target image set includes multiple images generated by the infrared device when the user adjusts the focus distance of the infrared device, and the images in the target image set are analyzed to generate
  • the focus definition curve allows the user to adjust the focus distance of the infrared device according to the focus definition curve, so as to optimize the focus effect and improve the accuracy of focus.
  • the user can select the focus mode through a remote control, a computer, and other terminals, and find any one or more of a fixed focus plate, an object with infrared texture, and an object with edge information as an external scene.
  • the infrared device and the external scene can be adjusted to a proper distance according to the focus distance requirements.
  • the focus distance of the infrared device can be adjusted by screwing the thread structure of the infrared device.
  • the infrared device can process the thermal radiation signal received from the external scene, and
  • the processed target images are combined and sent to the terminal, and the terminal analyzes the images in the target image set through focus evaluation software to generate a focus definition curve for the user to adjust the infrared device's performance according to the focus definition curve. Focus distance, when the focus sharpness curve reaches the peak, it is determined that the focus is completed.
  • the focus evaluation software to process the image, the error caused by the focus of the human eye is solved, the focus is more accurate, and the focus distance can be accurately quantified.
  • FIG. 2 is a schematic flowchart of a focus processing method according to an embodiment of the present invention.
  • the method may be executed by a terminal in the focus processing system, wherein the specific explanation of the terminal is as described above.
  • the method of the embodiment of the present invention includes the following steps.
  • S201 Receive a target image set sent by an infrared device, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device.
  • the terminal may receive a target image set sent by an infrared device, the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the focusing distance of the infrared device refers to the distance from the lens of the infrared device to the infrared focal plane at right angles, which is the distance inside the camera.
  • the focus distance of the infrared device here refers to the image distance. For example, if the user's focus distance requirement is from 5 meters to infinity, the shooting object is clear, then the lens of the infrared device can be adjusted through the threaded structure.
  • the distance to the infrared focal plane (for example, mm, um or cm level).
  • the method of adjusting the distance between the lens of the infrared device and the infrared focal plane may be to adjust the focus distance by screwing the thread structure of the lens of the infrared device according to the focus distance requirement.
  • the terminal before receiving the target image set sent by the infrared device, the terminal may obtain the target focus mode determined on the terminal, and in the target focus mode, execute the receiving of the target image set sent by the infrared device. step.
  • the terminal when acquiring the target focus mode determined on the terminal, may acquire the selection operation of the focus mode on the user interface of the terminal, and determine the target focus mode according to the selection operation.
  • the selection operation includes, but is not limited to, any one or more of click operations, pressing operations, and sliding operations.
  • each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  • the external scene may be a temperature-controllable focusing plate.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; for example, assuming that the focusing distance required by the user is 5 meters to infinity, the calculated placement distance between the infrared device and the external scene can be 9.5 meters.
  • the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the hyperfocal distance formula is:
  • the external scene includes any one or more of a focus plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of a four-bar target, a half moon target, and an edge target.
  • S202 Analyze the images in the target image set to generate a focus definition curve, where the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  • the terminal may analyze the images in the target image set to generate a focus definition curve, and the focus definition curve is used for the user to adjust the infrared device according to the focus definition curve The focusing distance.
  • the focus evaluation software running on the terminal may perform the evaluation on each image in the target image set. Analyze to determine the sharpness of each image, wherein each image corresponds to a sharpness, and the focus sharpness curve is generated according to the sharpness of each image.
  • the specific evaluation algorithm of the focus evaluation software may include, but is not limited to, an algorithm for judging sharpness or contrast based on modulation transfer function (Modulation Transfer Function, MTF), contrast, and the like.
  • the peak of the focus sharpness curve is used to characterize that the focusing distance of the infrared device is adjusted to the target focusing distance, where the peak refers to the point with the highest sharpness in the focus sharpness curve .
  • the focus definition curve changes as the user adjusts the focus distance between the infrared device and the infrared focal plane, as shown in FIG. 3, which is a kind of image provided by an embodiment of the present invention.
  • the schematic diagram of the focus definition curve is shown in FIG. 3, the focus definition curve changes with the change of the focus distance, where the peak corresponds to the point with the highest definition.
  • the infrared device first, adjust the distance between the infrared device and the external scene according to the required focus distance, and then adjust the infrared device lens and the infrared focal plane to be in extreme positions (the farthest or the closest), and the user sets the infrared device lens and infrared
  • the distance of the focal plane is adjusted to the other extreme position (closest or farthest).
  • the image acquired by the terminal undergoes three stages from blur to clear and then to blur.
  • the focus definition curve drawn by the focus evaluation software It is manifested as climbing from the trough to the crest and then falling to the bottom of the wave. When the sharpness curve passes the crest and shows a downward trend, the user stops the current focusing direction and calls back in the opposite direction.
  • the sharpness value When the sharpness value is adjusted back to within a certain range from the peak value, the adjustment is stopped. At this time, it is considered The current sharpness value has reached the peak, and the image has reached sharpness. By introducing the sharpness curve to climb from the trough to the crest, and then adjust back to the crest during the fall, it is ensured that the focusing process can be adjusted to the clearest position of the image, avoiding the stop before reaching the sharpest point. Focusing situation.
  • the terminal can receive a target image set sent by an infrared device.
  • the target image set includes multiple images.
  • the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
  • FIG. 4 is a schematic flowchart of another focus processing method according to an embodiment of the present invention.
  • the method may be executed by an infrared device in the focus processing system, wherein the specific explanation of the infrared device is as described above.
  • the method of the embodiment of the present invention includes the following steps.
  • S401 Acquire a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images.
  • the infrared device may obtain a target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the infrared device when the infrared device obtains the target image set generated when the user adjusts the focus distance of the infrared device, it may obtain the heat radiation signal emitted by the external scene when the user adjusts the focus distance of the infrared device.
  • the device is at a target distance from the focus plane, and processes the heat radiation signal to generate a target image set including multiple images.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; or, the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the external scene includes any one or more of a focus plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of a four-bar target, a half moon target, and an edge target.
  • S402 Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used for the user according to the focus clarity The degree curve adjusts the focusing distance of the infrared device.
  • the infrared device may send the target image set to the terminal, so that the terminal analyzes the images in the target image set and generates a focus definition curve, and the focus definition curve is used for For the user to adjust the focusing distance of the infrared device according to the focusing sharpness curve.
  • the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image
  • the image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal in this embodiment as shown in the figure may include: one or more processors 501; one or more communication interfaces 502 and a memory 503.
  • the aforementioned processor 501, communication interface 502, and memory 503 are connected through a bus 504.
  • the memory 503 is used to store instructions
  • the processor 501 is used to execute instructions stored in the memory 503.
  • the processor 501 is configured to execute the following steps:
  • Target image set sent by an infrared device through the communication interface 502, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device;
  • the images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the processor 501 analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
  • the in-focus sharpness curve is generated according to the sharpness of each image.
  • the peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
  • the processor 501 receives the target image collection sent by the infrared device, it is further configured to:
  • the step of receiving the target image set sent by the infrared device is executed.
  • the processor 501 is specifically configured to: when acquiring the target focus mode determined on the terminal:
  • the target focus mode is determined according to the selection operation.
  • each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; or,
  • the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
  • the processor 501 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 503 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501.
  • a part of the memory 503 may also include a non-volatile random access memory.
  • the memory 503 may also store device type information.
  • the terminal can receive a target image set sent by an infrared device.
  • the target image set includes multiple images.
  • the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
  • FIG. 6 is a schematic structural diagram of an infrared device according to an embodiment of the present invention.
  • the terminal in this embodiment as shown in the figure may include: one or more processors 601; one or more communication interfaces 602 and a memory 603.
  • the aforementioned processor 601, communication interface 602, and memory 603 are connected through a bus 604.
  • the memory 603 is used to store instructions
  • the processor 601 is used to execute instructions stored in the memory 603.
  • the processor 601 is configured to execute the following steps:
  • the target image set is sent to the terminal through the communication interface 602, so that the terminal analyzes the images in the target image set and generates a focus definition curve, which is used by the user according to the The focus definition curve adjusts the focus distance of the infrared device.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the processor 601 obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
  • the thermal radiation signal is processed to generate a target image set including a plurality of images.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; or,
  • the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
  • the processor 601 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 603 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A part of the memory 603 may also include a non-volatile random access memory. For example, the memory 603 may also store device type information.
  • the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image
  • the image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
  • the embodiment of the present invention provides a focus processing system, the system includes: a terminal and an infrared device,
  • the infrared device is configured to obtain a target image set generated when a user adjusts the focus distance of the infrared device, the target image set includes multiple images, and the target image set is sent to a terminal;
  • the terminal is configured to receive a target image set sent by an infrared device, and analyze the images in the target image set to generate a focus sharpness curve, and the focus sharpness curve is used for the user according to the focus sharpness
  • the degree curve adjusts the focusing distance of the infrared device.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the terminal analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
  • the in-focus sharpness curve is generated according to the sharpness of each image.
  • the peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
  • the terminal receives the target image collection sent by the infrared device, it is also used to:
  • the step of receiving the target image set sent by the infrared device is executed.
  • the terminal acquires the target focus mode determined on the terminal it is specifically used to:
  • the target focus mode is determined according to the selection operation.
  • each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; or,
  • the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
  • the infrared device acquires the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
  • the thermal radiation signal is processed to generate a target image set including a plurality of images.
  • the terminal can receive a target image set sent by an infrared device.
  • the target image set includes multiple images.
  • the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
  • the embodiment of the present invention also provides an unmanned aerial vehicle, which includes: a fuselage; a power system configured on the fuselage to provide moving power for the unmanned aerial vehicle; an infrared device mounted on the unmanned aerial vehicle; a processor, It is used to obtain a set of target images generated when the user adjusts the focus distance of the infrared device, the set of target images includes multiple images; and the set of target images is sent to the terminal so that the terminal can compare the set of target images
  • the image in the image is analyzed, and a focus definition curve is generated, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  • the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  • the processor obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
  • the thermal radiation signal is processed to generate a target image set including a plurality of images.
  • the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances.
  • the placement distance is the distance between the infrared device and the external scene; or,
  • the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  • the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  • the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory may include a read-only memory and a random access memory, and provides instructions and data to the processor.
  • a part of the memory may also include a non-volatile random access memory.
  • the memory can also store device type information.
  • the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image
  • the image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements
  • the described focusing processing method can also be implemented in the terminal corresponding to the embodiment of the present invention described in FIG. 5 or the infrared device in the corresponding embodiment of the present invention described in FIG. 6, and will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium can be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Abstract

Disclosed are a focusing processing method, a terminal, an infrared device, a system, an unmanned aerial vehicle, and a medium. The method comprises: receiving a target image set sent by an infrared device, wherein the target image set comprises multiple images, and the multiple images are generated by the infrared device when a user adjusts the focusing distance of the infrared device; and analyzing images in the target image set to generate a focusing sharpness curve, wherein the focusing sharpness curve is used for a user to adjust the focusing distance of the infrared device according to the focusing sharpness curve. By means of the embodiments, the focusing effect is optimized and the focusing accuracy is improved.

Description

对焦处理方法、终端、红外设备、系统、无人机及介质Focus processing method, terminal, infrared equipment, system, drone and medium 技术领域Technical field
本发明涉及控制技术领域,尤其涉及一种对焦处理方法、终端、红外设备、系统、无人机及介质。The present invention relates to the field of control technology, in particular to a focus processing method, terminal, infrared equipment, system, unmanned aerial vehicle and medium.
背景技术Background technique
红外成像设备价格较高,很多时候是固定焦距的,不支持自动对焦,设备出厂后,焦距固定,给用户带来使用的不便,例如,有的用户需要对焦到无穷远,而有的用户则需要对焦到近距离如1m,固定的焦距给用户带来使用不便和限制。出于测温精度的考虑,红外设备会在出厂前确认对焦距离并进行锁定。Infrared imaging equipment is expensive. In many cases, it has a fixed focal length and does not support autofocus. After the device leaves the factory, the focal length is fixed, which brings inconvenience to users. For example, some users need to focus to infinity, while some users do It needs to focus to a short distance such as 1m, and the fixed focal length brings inconvenience and restriction to users. For the sake of temperature measurement accuracy, the infrared device will confirm the focus distance and lock it before leaving the factory.
目前,确认红外设备是否对焦清楚主要依靠人眼判断,而主观的判断往往不够准确,会导致红外设备出图模糊,对焦距离难以准确量化,用户自定义对焦距离更不准确。At present, the determination of whether an infrared device is focused clearly depends on human eyes, and subjective judgments are often not accurate enough, which will cause the infrared device to produce blurry images, difficult to accurately quantify the focus distance, and user-defined focus distances are even more inaccurate.
发明内容Summary of the invention
本发明实施例提供了一种对焦处理方法、终端、红外设备、系统、无人机及介质,优化了对焦效果,提高了对焦的效率和准确性。The embodiment of the present invention provides a focusing processing method, terminal, infrared equipment, system, drone, and medium, which optimizes the focusing effect and improves the efficiency and accuracy of focusing.
第一方面,本发明实施例提供了一种对焦处理方法,应用于终端,所述方法包括:In the first aspect, an embodiment of the present invention provides a focus processing method, which is applied to a terminal, and the method includes:
接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的;Receiving a target image set sent by an infrared device, where the target image set includes multiple images, the multiple images being generated by the infrared device when the user adjusts the focus distance of the infrared device;
对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
第二方面,本发明实施例提供了另一种对焦处理方法,应用于红外设备,所述方法包括:In the second aspect, an embodiment of the present invention provides another focus processing method, which is applied to an infrared device, and the method includes:
获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
第三方面,本发明实施例提供了一种终端,包括存储器、处理器和通信接口;In the third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a communication interface;
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
通过通信接口接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的;Receiving a target image set sent by an infrared device through a communication interface, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device;
对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
第四方面,本发明实施例提供了一种红外设备,包括存储器、处理器和通信接口;In a fourth aspect, an embodiment of the present invention provides an infrared device, including a memory, a processor, and a communication interface;
所述存储器,用于存储程序指令;The memory is used to store program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
通过通信接口向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The target image set is sent to the terminal through the communication interface, so that the terminal analyzes the images in the target image set and generates a focus definition curve, which is used by the user according to the focus The sharpness curve adjusts the focusing distance of the infrared device.
第五方面,本发明实施例提供了一种对焦处理系统,包括终端和红外设备;In a fifth aspect, an embodiment of the present invention provides a focus processing system, including a terminal and an infrared device;
所述红外设备,用于获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送所述目标图像集合;The infrared device is configured to obtain a target image set generated when a user adjusts the focus distance of the infrared device, the target image set includes multiple images, and the target image set is sent to a terminal;
所述终端,用于接收红外设备发送的目标图像集合,并对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The terminal is configured to receive a target image set sent by an infrared device, and analyze the images in the target image set to generate a focus sharpness curve, and the focus sharpness curve is used for the user according to the focus sharpness The degree curve adjusts the focusing distance of the infrared device.
第六方面,本发明实施例提供了一种无人机,包括:In a sixth aspect, an embodiment of the present invention provides a drone, including:
机身;body;
配置在机身上的动力系统,用于为所述无人机提供移动的动力;The power system configured on the fuselage is used to provide the moving power for the UAV;
搭载在无人机上的红外设备;Infrared equipment mounted on the UAV;
处理器,用于:Processor for:
获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析, 并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
第七方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面或第二方面所述的对焦处理方法。In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned first or second aspect is implemented. Focus processing method.
本发明实施例中,通过接收红外设备发送的目标图像集合,目标图像集合中包括红外设备在用户调节红外设备的对焦距离时生成的多张图像,并对目标图像集合中的图像进行分析,以生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the target image set sent by the infrared device is received, and the target image set includes multiple images generated by the infrared device when the user adjusts the focus distance of the infrared device, and the images in the target image set are analyzed to A focus definition curve is generated for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the embodiments. Obviously, the drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1是本发明实施例提供的一种对焦处理系统的结构示意图;FIG. 1 is a schematic structural diagram of a focus processing system provided by an embodiment of the present invention;
图2是本发明实施例提供的一种对焦处理方法的示意流程图;2 is a schematic flowchart of a focus processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种对焦清晰度曲线的示意图;3 is a schematic diagram of a focus sharpness curve provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种对焦处理方法的流程示意图;4 is a schematic flowchart of another focus processing method provided by an embodiment of the present invention;
图5是本发明实施例提供的一种终端的结构示意图;FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;
图6是本发明实施例提供的一种红外设备的结构示意图。Fig. 6 is a schematic structural diagram of an infrared device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。In the following, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
在本发明实施例提供的对焦处理方法可以由一种对焦处理系统执行,在某些实施例中, 所述对焦处理系统包括终端和红外设备。在某些实施例中,所述红外设备包括但不限于红外热成像设备、红外相机、测温仪、探测器等;在某些实施例中,所述红外设备可以设置在终端设备、无人机、无人车等设备上;在某些实施例中,所述终端包括但不限于包括遥控设备、智能手机、平板电脑、膝上型电脑和穿戴式设备中的一种或者多种。在某些实施例中,所述红外设备和终端之间建立通信连接。The focus processing method provided in the embodiment of the present invention may be executed by a focus processing system. In some embodiments, the focus processing system includes a terminal and an infrared device. In some embodiments, the infrared device includes, but is not limited to, infrared thermal imaging devices, infrared cameras, thermometers, detectors, etc.; In some embodiments, the terminal includes, but is not limited to, one or more of a remote control device, a smart phone, a tablet computer, a laptop computer, and a wearable device. In some embodiments, a communication connection is established between the infrared device and the terminal.
下面结合附图1对本发明实施例提供的对焦处理系统进行示意性说明。The focus processing system provided by the embodiment of the present invention will be schematically described below with reference to FIG. 1.
请参见图1,图1是本发明实施例提供的一种对焦处理系统的结构示意图。所述对焦处理系统包括:红外设备11、终端12和外界场景13。在某些实施例中,红外设备11和终端12之间可以通过无线通信连接方式建立通信连接,其中,在某些场景下,所述红外设备11和终端12之间也可以通过有线通信连接方式建立通信连接。在某些实施例中,红外设备11可以接收外界场景13发出的热辐射信号。在某些实施例中,所述终端12可以包括遥控设备、智能手机、平板电脑、膝上型电脑、穿戴式设备等中的一种或者多种。在某些实施例中,所述红外设备11包括但不限于红外热成像设备、红外相机、测温仪、探测器等中的一种或者多种。在某些实施例中,所述外界场景13可以包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种;在某些实施例中,所述对焦板可以是温度可控的对焦chart板;在某些实施例中,对焦chart板可以为四杆靶,半月靶,刃边靶等各种具有高频信息的形状的物体。Please refer to FIG. 1, which is a schematic structural diagram of a focus processing system according to an embodiment of the present invention. The focus processing system includes: an infrared device 11, a terminal 12, and an external scene 13. In some embodiments, the infrared device 11 and the terminal 12 may establish a communication connection through a wireless communication connection. Among them, in some scenarios, the infrared device 11 and the terminal 12 may also be connected through a wired communication connection. Establish a communication connection. In some embodiments, the infrared device 11 can receive the heat radiation signal emitted by the external scene 13. In some embodiments, the terminal 12 may include one or more of a remote control device, a smart phone, a tablet computer, a laptop computer, a wearable device, and the like. In some embodiments, the infrared device 11 includes, but is not limited to, one or more of an infrared thermal imaging device, an infrared camera, a thermometer, a detector, and the like. In some embodiments, the external scene 13 may include any one or more of a focus plate, an object with infrared texture, and an object with edge information; in some embodiments, the focus plate may be Temperature-controllable focus chart board; in some embodiments, the focus chart board can be a four-bar target, a half-moon target, a blade edge target and other various objects with high-frequency information shapes.
本发明实施例,通过终端接收红外设备发送的目标图像集合,目标图像集合中包括红外设备在用户调节红外设备的对焦距离时生成的多张图像,并对目标图像集合中的图像进行分析,生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,从而实现优化了对焦效果,提高了对焦的准确性。In the embodiment of the present invention, the target image set sent by the infrared device is received through the terminal. The target image set includes multiple images generated by the infrared device when the user adjusts the focus distance of the infrared device, and the images in the target image set are analyzed to generate The focus definition curve allows the user to adjust the focus distance of the infrared device according to the focus definition curve, so as to optimize the focus effect and improve the accuracy of focus.
在一个实施例中,用户可以通过遥控器、电脑等终端选取对焦模式,并找到一个固定的对焦板、具有红外纹理的物体、具有边缘信息的物体中任意一种或多种为外界场景,用户可以根据对焦距离需求将红外设备和外界场景调整至合适的距离,通过拧动红外设备的螺纹结构调整红外设备的对焦距离,红外设备可以对接收到的外界场景发出的热辐射信号进行处理,并将处理得到的目标图像结合发送给终端,终端通过对焦评价软件对所述目标图像集合中的图像进行分析,生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,当对焦清晰度曲线到达波峰时确定完成对焦。通过使用对焦评价软件对图像进行处理,解决了人眼对焦导致的误差,使对焦更准确,对焦距离可以准 确量化。In one embodiment, the user can select the focus mode through a remote control, a computer, and other terminals, and find any one or more of a fixed focus plate, an object with infrared texture, and an object with edge information as an external scene. The infrared device and the external scene can be adjusted to a proper distance according to the focus distance requirements. The focus distance of the infrared device can be adjusted by screwing the thread structure of the infrared device. The infrared device can process the thermal radiation signal received from the external scene, and The processed target images are combined and sent to the terminal, and the terminal analyzes the images in the target image set through focus evaluation software to generate a focus definition curve for the user to adjust the infrared device's performance according to the focus definition curve. Focus distance, when the focus sharpness curve reaches the peak, it is determined that the focus is completed. By using the focus evaluation software to process the image, the error caused by the focus of the human eye is solved, the focus is more accurate, and the focus distance can be accurately quantified.
下面结合附图2-附图4对本发明实施例提出的对焦处理方法进行说明。The focus processing method proposed by the embodiment of the present invention will be described below with reference to FIG. 2 to FIG. 4.
请参见图2,图2是本发明实施例提供的一种对焦处理方法的示意流程图,所述方法可以由对焦处理系统中的终端执行,其中,所述终端的具体解释如前所述。具体的,本发明实施例的所述方法包括如下步骤。Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a focus processing method according to an embodiment of the present invention. The method may be executed by a terminal in the focus processing system, wherein the specific explanation of the terminal is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
S201:接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的。S201: Receive a target image set sent by an infrared device, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device.
本发明实施例中,终端可以接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的。In the embodiment of the present invention, the terminal may receive a target image set sent by an infrared device, the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device.
在一个实施例中,所述调节红外设备的对焦距离是通过调节红外设备的镜头与红外焦平面之间的距离实现的。在某些实施例中,所述红外设备的对焦距离是指红外设备的镜头到红外焦平面直角的距离,是相机内部的距离。在某些实施例中,此处红外设备的对焦距离是指像距,例如,用户的对焦距离需求是5米到无穷远处的拍摄物体是清晰的,那么可以通过螺纹结构调节红外设备的镜头到红外焦平面之间的距离(例如mm、um或者cm级)来实现。In one embodiment, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane. In some embodiments, the focusing distance of the infrared device refers to the distance from the lens of the infrared device to the infrared focal plane at right angles, which is the distance inside the camera. In some embodiments, the focus distance of the infrared device here refers to the image distance. For example, if the user's focus distance requirement is from 5 meters to infinity, the shooting object is clear, then the lens of the infrared device can be adjusted through the threaded structure. The distance to the infrared focal plane (for example, mm, um or cm level).
在一个实施例中,所述调节所述红外设备的镜头与红外焦平面之间的距离方式可以是根据对焦距离需求通过用户拧动红外设备的镜头的螺纹结构调整对焦距离。In one embodiment, the method of adjusting the distance between the lens of the infrared device and the infrared focal plane may be to adjust the focus distance by screwing the thread structure of the lens of the infrared device according to the focus distance requirement.
在一个实施例中,终端在接收红外设备发送的目标图像集合之前,可以获取在终端上确定的目标对焦模式,并在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In one embodiment, before receiving the target image set sent by the infrared device, the terminal may obtain the target focus mode determined on the terminal, and in the target focus mode, execute the receiving of the target image set sent by the infrared device. step.
在一个实施例中,终端在获取在终端上确定的目标对焦模式时,可以获取在终端的用户界面上的关于对焦模式的选取操作,并根据所述选取操作确定所述目标对焦模式。在某些实施例中,所述选取操作包括但不限于点击操作、按压操作、滑动操作等任意一种或多种。In one embodiment, when acquiring the target focus mode determined on the terminal, the terminal may acquire the selection operation of the focus mode on the user interface of the terminal, and determine the target focus mode according to the selection operation. In some embodiments, the selection operation includes, but is not limited to, any one or more of click operations, pressing operations, and sliding operations.
在一个实施例中,所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。在某些实施例中,所述外界场景可以是温度可控的对焦板。通过引入温度可控的对焦板,可保证同一批次的红外设备接收到的热辐射的一致性,进而保证红外设备输出的对焦板图像的对比度、锐度等特征的一致性,最终保证了同一批次红外热成像设备的清晰度一致性。In one embodiment, each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene. In some embodiments, the external scene may be a temperature-controllable focusing plate. By introducing a temperature-controllable focusing plate, the consistency of the thermal radiation received by the same batch of infrared devices can be ensured, and the contrast, sharpness and other characteristics of the focusing plate images output by the infrared devices can be guaranteed to be consistent. Consistency of the clarity of batches of infrared thermal imaging equipment.
在一个实施例中,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;例如,假设用户所需的对焦距离是5米到无穷远,则计算得到红外设备与外界场景之间的放置距离可以是9.5米。In one embodiment, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. , The placement distance is the distance between the infrared device and the external scene; for example, assuming that the focusing distance required by the user is 5 meters to infinity, the calculated placement distance between the infrared device and the external scene can be 9.5 meters.
在一个实施例中,所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。在某些实施例中,所述超焦距公式为:In one embodiment, the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula. In some embodiments, the hyperfocal distance formula is:
Figure PCTCN2020087270-appb-000001
Figure PCTCN2020087270-appb-000001
在一个实施例中,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。在某些实施例中,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。通过引入外界场景,相比对着真实场景调焦,更少受到环境的影响,更能保证对焦的准确性。In an embodiment, the external scene includes any one or more of a focus plate, an object with infrared texture, and an object with edge information. In some embodiments, the focusing plate includes any one or more of a four-bar target, a half moon target, and an edge target. By introducing external scenes, compared to focusing on the real scene, it is less affected by the environment and can more guarantee the accuracy of focusing.
S202:对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。S202: Analyze the images in the target image set to generate a focus definition curve, where the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
在本发明实施例中,终端可以对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。In the embodiment of the present invention, the terminal may analyze the images in the target image set to generate a focus definition curve, and the focus definition curve is used for the user to adjust the infrared device according to the focus definition curve The focusing distance.
在一个实施例中,终端在对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线时,可以通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度,并根据所述每张图像的清晰度生成所述对焦清晰度曲线。在某些实施例中,对焦评价软件的具体评价算法可以包括但不限于基于调制传递函数(Modulation Transfer Function,MTF)、对比度等判断锐度或对比度的算法。In one embodiment, when the terminal analyzes the images in the target image set to generate a focus definition curve, the focus evaluation software running on the terminal may perform the evaluation on each image in the target image set. Analyze to determine the sharpness of each image, wherein each image corresponds to a sharpness, and the focus sharpness curve is generated according to the sharpness of each image. In some embodiments, the specific evaluation algorithm of the focus evaluation software may include, but is not limited to, an algorithm for judging sharpness or contrast based on modulation transfer function (Modulation Transfer Function, MTF), contrast, and the like.
可见,通过引入终端上的对焦评价软件,相比人眼主观感受到的图像由模糊变清晰,清晰度曲线的波谷到波峰的变化更为客观真实,保证了对焦的准确性。It can be seen that by introducing the focus evaluation software on the terminal, the change from the trough to the peak of the sharpness curve is more objective and true than the image subjectively felt by the human eye, which ensures the accuracy of focusing.
在一个实施例中,所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。In one embodiment, the peak of the focus sharpness curve is used to characterize that the focusing distance of the infrared device is adjusted to the target focusing distance, where the peak refers to the point with the highest sharpness in the focus sharpness curve .
在一个实施例中,所述对焦清晰度曲线是随着用户调节红外设设备与红外焦平面之间的对焦距离而变化的,如图3所示,图3是本发明实施例提供的一种对焦清晰度曲线的示意图,如图3所示,对焦清晰度曲线随着对焦距离的变化而变化,其中,波峰对应清晰度 最高的点。In an embodiment, the focus definition curve changes as the user adjusts the focus distance between the infrared device and the infrared focal plane, as shown in FIG. 3, which is a kind of image provided by an embodiment of the present invention. The schematic diagram of the focus definition curve is shown in FIG. 3, the focus definition curve changes with the change of the focus distance, where the peak corresponds to the point with the highest definition.
在一个实施例中,首先,根据需要的对焦距离调整红外设备与外界场景的距离,然后调节红外设备的镜头与红外焦平面处于极端位置(最远或最近),用户将红外设备的镜头与红外焦平面的距离往另一极端位置进行调节(最近或最远),在调节的过程中,终端获取到的图像经历由模糊到清晰再到模糊三个阶段,对焦评价软件绘制的对焦清晰度曲线则表现为由波谷爬升到波峰再跌落至波底。当清晰度曲线经过波峰并表现出下跌趋势时,用户停止当前的调焦方向,并向相反的方向回调,当回调至当前清晰度值与波峰值相差在一定区间时,停止调节,此时认为当前清晰度值已到达波峰,图像已达到清晰。通过引入清晰度曲线由波谷爬升到波峰,然后在下跌过程中往回调,再调节至波峰的操作方式,保证了对焦过程一定能调节至图像最清晰的位置,避免了未到达最清晰点即停止调焦的情况。In one embodiment, first, adjust the distance between the infrared device and the external scene according to the required focus distance, and then adjust the infrared device lens and the infrared focal plane to be in extreme positions (the farthest or the closest), and the user sets the infrared device lens and infrared The distance of the focal plane is adjusted to the other extreme position (closest or farthest). During the adjustment, the image acquired by the terminal undergoes three stages from blur to clear and then to blur. The focus definition curve drawn by the focus evaluation software It is manifested as climbing from the trough to the crest and then falling to the bottom of the wave. When the sharpness curve passes the crest and shows a downward trend, the user stops the current focusing direction and calls back in the opposite direction. When the sharpness value is adjusted back to within a certain range from the peak value, the adjustment is stopped. At this time, it is considered The current sharpness value has reached the peak, and the image has reached sharpness. By introducing the sharpness curve to climb from the trough to the crest, and then adjust back to the crest during the fall, it is ensured that the focusing process can be adjusted to the clearest position of the image, avoiding the stop before reaching the sharpest point. Focusing situation.
本发明实施例中,终端可以接收红外设备发送的目标图像集合,目标图像集合中包括多张图像,多张图像是红外设备在用户调节红外设备的对焦距离时生成的,并对目标图像集合中的图像进行分析,以生成对焦清晰度曲线,用于供用户根据对焦清晰度曲线调整红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the terminal can receive a target image set sent by an infrared device. The target image set includes multiple images. The multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
请参见图4,图4是本发明实施例提供的另一种对焦处理方法的流程示意图,所述方法可以由对焦处理系统中的红外设备执行,其中,红外设备的具体解释如前所述。本发明实施例的所述方法包括如下步骤。Please refer to FIG. 4, which is a schematic flowchart of another focus processing method according to an embodiment of the present invention. The method may be executed by an infrared device in the focus processing system, wherein the specific explanation of the infrared device is as described above. The method of the embodiment of the present invention includes the following steps.
S401:获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像。S401: Acquire a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images.
本发明实施例中,红外设备可以获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像。In the embodiment of the present invention, the infrared device may obtain a target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images.
在一个实施例中,所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。In one embodiment, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
在一个实施例中,红外设备在获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,可以获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离,并对所述热辐射信号进行处理生成包括多张图像的目标图像集合。In one embodiment, when the infrared device obtains the target image set generated when the user adjusts the focus distance of the infrared device, it may obtain the heat radiation signal emitted by the external scene when the user adjusts the focus distance of the infrared device. The device is at a target distance from the focus plane, and processes the heat radiation signal to generate a target image set including multiple images.
在一个实施例中,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所 述放置距离为所述红外设备与所述外界场景相距的距离;或者,所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。In one embodiment, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. The placement distance is the distance between the infrared device and the external scene; or, the target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
在一个实施例中,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。在某些实施例中,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。In an embodiment, the external scene includes any one or more of a focus plate, an object with infrared texture, and an object with edge information. In some embodiments, the focusing plate includes any one or more of a four-bar target, a half moon target, and an edge target.
S402:向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。S402: Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used for the user according to the focus clarity The degree curve adjusts the focusing distance of the infrared device.
本发明实施例中,红外设备可以向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。In the embodiment of the present invention, the infrared device may send the target image set to the terminal, so that the terminal analyzes the images in the target image set and generates a focus definition curve, and the focus definition curve is used for For the user to adjust the focusing distance of the infrared device according to the focusing sharpness curve.
本发明实施例中,红外设备可以获取用户调节红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送目标图像集合,以使终端对目标图像集合中的图像进行分析,并生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image The image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
请参见图5,图5是本发明实施例提供的一种终端的结构示意图。具体的,如图所示的本实施例中的终端可以包括:一个或多个处理器501;一个或多个通信接口502和存储器503。上述处理器501、通信接口502和存储器503通过总线504连接。存储器503用于存储指令,处理器501用于执行存储器503存储的指令。其中,当程序指令被执行时,处理器501用于执行如下步骤:Please refer to FIG. 5, which is a schematic structural diagram of a terminal according to an embodiment of the present invention. Specifically, the terminal in this embodiment as shown in the figure may include: one or more processors 501; one or more communication interfaces 502 and a memory 503. The aforementioned processor 501, communication interface 502, and memory 503 are connected through a bus 504. The memory 503 is used to store instructions, and the processor 501 is used to execute instructions stored in the memory 503. Wherein, when the program instructions are executed, the processor 501 is configured to execute the following steps:
通过通信接口502接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的;Receiving a target image set sent by an infrared device through the communication interface 502, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device;
对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
进一步地,所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。Further, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
进一步地,所述处理器501对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线时,具体用于:Further, when the processor 501 analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确 定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度;Analyze each image in the target image set by focusing evaluation software running on the terminal to determine the sharpness of each image, wherein each image corresponds to a sharpness;
根据所述每张图像的清晰度生成所述对焦清晰度曲线。The in-focus sharpness curve is generated according to the sharpness of each image.
进一步地,所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。Further, the peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
进一步地,所述处理器501接收红外设备发送的目标图像集合之前,还用于:Further, before the processor 501 receives the target image collection sent by the infrared device, it is further configured to:
获取在终端上确定的目标对焦模式;Acquiring the target focus mode determined on the terminal;
在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In the target focus mode, the step of receiving the target image set sent by the infrared device is executed.
进一步地,所述处理器501获取在终端上确定的目标对焦模式时具体用于:Further, the processor 501 is specifically configured to: when acquiring the target focus mode determined on the terminal:
获取在所述终端的用户界面上的关于对焦模式的选取操作;Acquiring the selection operation of the focus mode on the user interface of the terminal;
根据所述选取操作确定所述目标对焦模式。The target focus mode is determined according to the selection operation.
进一步地,所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。Further, each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
进一步地,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,Further, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. The placement distance is the distance between the infrared device and the external scene; or,
所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
进一步地,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。Further, the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
进一步地,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。Further, the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
应当理解,在本发明实施例中,所述处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the processor 501 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
该存储器503可以包括只读存储器和随机存取存储器,并向处理器501提供指令和数据。存储器503的一部分还可以包括非易失性随机存取存储器。例如,存储器503还可以存储设备类型的信息。The memory 503 may include a read-only memory and a random access memory, and provides instructions and data to the processor 501. A part of the memory 503 may also include a non-volatile random access memory. For example, the memory 503 may also store device type information.
本发明实施例的所述处理器501的具体实现可参考上述各个实施例中相关内容的描述,在此不赘述。For the specific implementation of the processor 501 in the embodiment of the present invention, reference may be made to the description of the relevant content in the foregoing embodiments, which is not repeated here.
本发明实施例中,终端可以接收红外设备发送的目标图像集合,目标图像集合中包括多张图像,多张图像是红外设备在用户调节红外设备的对焦距离时生成的,并对目标图像集合中的图像进行分析,以生成对焦清晰度曲线,用于供用户根据对焦清晰度曲线调整红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the terminal can receive a target image set sent by an infrared device. The target image set includes multiple images. The multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
请参见图6,图6是本发明实施例提供的一种红外设备的结构示意图。具体的,如图所示的本实施例中的终端可以包括:一个或多个处理器601;一个或多个通信接口602和存储器603。上述处理器601、通信接口602和存储器603通过总线604连接。存储器603用于存储指令,处理器601用于执行存储器603存储的指令。其中,当程序指令被执行时,处理器601用于执行如下步骤:Please refer to FIG. 6, which is a schematic structural diagram of an infrared device according to an embodiment of the present invention. Specifically, the terminal in this embodiment as shown in the figure may include: one or more processors 601; one or more communication interfaces 602 and a memory 603. The aforementioned processor 601, communication interface 602, and memory 603 are connected through a bus 604. The memory 603 is used to store instructions, and the processor 601 is used to execute instructions stored in the memory 603. Wherein, when the program instructions are executed, the processor 601 is configured to execute the following steps:
获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
通过通信接口602向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The target image set is sent to the terminal through the communication interface 602, so that the terminal analyzes the images in the target image set and generates a focus definition curve, which is used by the user according to the The focus definition curve adjusts the focus distance of the infrared device.
进一步地,所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。Further, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
进一步地,所述处理器601获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:Further, when the processor 601 obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
进一步地,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,Further, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. The placement distance is the distance between the infrared device and the external scene; or,
所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
进一步地,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。Further, the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
进一步地,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。Further, the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
应当理解,在本发明实施例中,所述处理器601可以是中央处理单元(Central Processing  Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 601 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors or digital signal processors (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
该存储器603可以包括只读存储器和随机存取存储器,并向处理器601提供指令和数据。存储器603的一部分还可以包括非易失性随机存取存储器。例如,存储器603还可以存储设备类型的信息。The memory 603 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A part of the memory 603 may also include a non-volatile random access memory. For example, the memory 603 may also store device type information.
本发明实施例的所述处理器601的具体实现可参考上述各个实施例中相关内容的描述,在此不赘述。For the specific implementation of the processor 601 in the embodiment of the present invention, reference may be made to the description of related content in the foregoing embodiments, which is not repeated here.
本发明实施例中,红外设备可以获取用户调节红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送目标图像集合,以使终端对目标图像集合中的图像进行分析,并生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image The image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
本发明实施例提供了一种对焦处理系统,所述系统包括:终端和红外设备,The embodiment of the present invention provides a focus processing system, the system includes: a terminal and an infrared device,
所述红外设备,用于获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送所述目标图像集合;The infrared device is configured to obtain a target image set generated when a user adjusts the focus distance of the infrared device, the target image set includes multiple images, and the target image set is sent to a terminal;
所述终端,用于接收红外设备发送的目标图像集合,并对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The terminal is configured to receive a target image set sent by an infrared device, and analyze the images in the target image set to generate a focus sharpness curve, and the focus sharpness curve is used for the user according to the focus sharpness The degree curve adjusts the focusing distance of the infrared device.
进一步地,所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。Further, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
进一步地,所述终端对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线时,具体用于:Further, when the terminal analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度;Analyzing each image in the target image set by focusing evaluation software running on the terminal to determine the sharpness of each image, wherein each image corresponds to a sharpness;
根据所述每张图像的清晰度生成所述对焦清晰度曲线。The in-focus sharpness curve is generated according to the sharpness of each image.
进一步地,所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。Further, the peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
进一步地,所述终端接收红外设备发送的目标图像集合之前,还用于:Further, before the terminal receives the target image collection sent by the infrared device, it is also used to:
获取在终端上确定的目标对焦模式;Acquiring the target focus mode determined on the terminal;
在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In the target focus mode, the step of receiving the target image set sent by the infrared device is executed.
进一步地,所述终端获取在终端上确定的目标对焦模式时,具体用于:Further, when the terminal acquires the target focus mode determined on the terminal, it is specifically used to:
获取在所述终端的用户界面上的关于对焦模式的选取操作;Acquiring the selection operation of the focus mode on the user interface of the terminal;
根据所述选取操作确定所述目标对焦模式。The target focus mode is determined according to the selection operation.
进一步地,所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。Further, each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
进一步地,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,Further, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. The placement distance is the distance between the infrared device and the external scene; or,
所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
进一步地,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。Further, the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
进一步地,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。Further, the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
进一步地,所述红外设备获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:Further, when the infrared device acquires the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
本发明实施例中,终端可以接收红外设备发送的目标图像集合,目标图像集合中包括多张图像,多张图像是红外设备在用户调节红外设备的对焦距离时生成的,并对目标图像集合中的图像进行分析,以生成对焦清晰度曲线,用于供用户根据对焦清晰度曲线调整红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the terminal can receive a target image set sent by an infrared device. The target image set includes multiple images. The multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device. Analyze the image to generate a focus definition curve for the user to adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focus effect and improving the efficiency and accuracy of focusing.
本发明实施例还提供了一种无人机,包括:机身;配置在机身上的动力系统,用于为无人机提供移动的动力;搭载在无人机上的红外设备;处理器,用于获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备 的对焦距离。The embodiment of the present invention also provides an unmanned aerial vehicle, which includes: a fuselage; a power system configured on the fuselage to provide moving power for the unmanned aerial vehicle; an infrared device mounted on the unmanned aerial vehicle; a processor, It is used to obtain a set of target images generated when the user adjusts the focus distance of the infrared device, the set of target images includes multiple images; and the set of target images is sent to the terminal so that the terminal can compare the set of target images The image in the image is analyzed, and a focus definition curve is generated, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
进一步地,所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。Further, the adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
进一步地,所述处理器获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:Further, when the processor obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used to:
获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
进一步地,所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,Further, the target distance is determined according to the target focus distance required by the user and a preset focus distance table, and the preset focus distance table includes a mapping relationship between different focus distances and different placement distances. The placement distance is the distance between the infrared device and the external scene; or,
所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
进一步地,所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。Further, the external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
进一步地,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。Further, the focusing plate includes any one or more of four-bar targets, half-moon targets, and edge-edge targets.
应当理解,在本发明实施例中,所述处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
该存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。The memory may include a read-only memory and a random access memory, and provides instructions and data to the processor. A part of the memory may also include a non-volatile random access memory. For example, the memory can also store device type information.
本发明实施例的所述处理器的具体实现可参考上述各个实施例中相关内容的描述,在此不赘述。For the specific implementation of the processor in the embodiment of the present invention, reference may be made to the description of the relevant content in the foregoing embodiments, which is not repeated here.
本发明实施例中,红外设备可以获取用户调节红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送目标图像集合,以使终端对目标图像集合中的图像进行分析,并生成对焦清晰度曲线,以供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离,从而优化了对焦效果,提高了对焦的效率和准确性。In the embodiment of the present invention, the infrared device can obtain the target image set generated when the user adjusts the focus distance of the infrared device, and the target image set includes multiple images, and sends the target image set to the terminal so that the terminal can collect the target image The image in the image is analyzed, and a focus definition curve is generated, so that the user can adjust the focus distance of the infrared device according to the focus definition curve, thereby optimizing the focusing effect and improving the efficiency and accuracy of focusing.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图2或图4所对应实施例中描述的对焦处理方法方式,也可实现图5所述本发明所对应实施例的终端或图6所述本发明所对应实施例的红外设备,在此不再赘述。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements The described focusing processing method can also be implemented in the terminal corresponding to the embodiment of the present invention described in FIG. 5 or the infrared device in the corresponding embodiment of the present invention described in FIG. 6, and will not be repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device. The computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium can be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above-disclosed are only the preferred embodiments of the present invention, which of course cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (50)

  1. 一种对焦处理方法,其特征在于,应用于终端,所述方法包括:A focus processing method, characterized in that it is applied to a terminal, and the method includes:
    接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的;Receiving a target image set sent by an infrared device, where the target image set includes multiple images, the multiple images being generated by the infrared device when the user adjusts the focus distance of the infrared device;
    对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  3. 根据权利要求1所述的方法,其特征在于,所述对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,包括:The method according to claim 1, wherein the analyzing the images in the target image set to generate a focus definition curve comprises:
    通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度;Analyzing each image in the target image set by focusing evaluation software running on the terminal to determine the sharpness of each image, wherein each image corresponds to a sharpness;
    根据所述每张图像的清晰度生成所述对焦清晰度曲线。The in-focus sharpness curve is generated according to the sharpness of each image.
  4. 根据权利要求3所述的方法,其特征在于,The method of claim 3, wherein:
    所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。The peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
  5. 根据权利要求1所述的方法,其特征在于,所述接收红外设备发送的目标图像集合之前,还包括:The method according to claim 1, wherein before the receiving the target image set sent by the infrared device, the method further comprises:
    获取在终端上确定的目标对焦模式;Acquiring the target focus mode determined on the terminal;
    在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In the target focus mode, the step of receiving the target image set sent by the infrared device is executed.
  6. 根据权利要求5所述的方法,其特征在于,所述获取在终端上确定的目标对焦模式,包括:The method according to claim 5, wherein said acquiring the target focus mode determined on the terminal comprises:
    获取在所述终端的用户界面上的关于对焦模式的选取操作;Acquiring the selection operation of the focus mode on the user interface of the terminal;
    根据所述选取操作确定所述目标对焦模式。The target focus mode is determined according to the selection operation.
  7. 根据权利要求5所述的方法,其特征在于,The method of claim 5, wherein:
    所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。Each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  8. 根据权利要求7所述的方法,其特征在于,The method according to claim 7, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  9. 根据权利要求7所述的方法,其特征在于,The method according to claim 7, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  10. 根据权利要求9所述的方法,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The method according to claim 9, wherein the focusing plate comprises any one or more of a four-bar target, a half-moon target, and an edge target.
  11. 一种对焦处理方法,其特征在于,应用于红外设备,所述方法包括:A focus processing method, characterized in that it is applied to an infrared device, and the method includes:
    获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
    向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
  12. 根据据权利要求11所述的方法,其特征在于,The method according to claim 11, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  13. 根据据权利要求11所述的方法,其特征在于,所述获取用户调节所述红外设备的对焦距离时生成的目标图像集合,包括:The method according to claim 11, wherein said acquiring a set of target images generated when a user adjusts the focus distance of the infrared device comprises:
    获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
    对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
  14. 根据权利要求13所述的方法,其特征在于,The method of claim 13, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  15. 根据权利要求13所述的方法,其特征在于,The method of claim 13, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  16. 根据权利要求15所述的方法,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The method according to claim 15, wherein the focusing plate comprises any one or more of a four-bar target, a half moon target, and an edge target.
  17. 一种终端,其特征在于,包括存储器、处理器和通信接口;A terminal, characterized in that it comprises a memory, a processor and a communication interface;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
    通过通信接口接收红外设备发送的目标图像集合,所述目标图像集合中包括多张图像,所述多张图像是所述红外设备在用户调节红外设备的对焦距离时生成的;Receiving a target image set sent by an infrared device through a communication interface, where the target image set includes multiple images, and the multiple images are generated by the infrared device when the user adjusts the focus distance of the infrared device;
    对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The images in the target image set are analyzed to generate a focus definition curve, and the focus definition curve is used for the user to adjust the focus distance of the infrared device according to the focus definition curve.
  18. 根据权利要求17所述的终端,其特征在于,The terminal according to claim 17, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距 离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  19. 根据权利要求17所述的终端,其特征在于,所述处理器对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线时,具体用于:The terminal according to claim 17, wherein when the processor analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
    通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度;Analyzing each image in the target image set by focusing evaluation software running on the terminal to determine the sharpness of each image, wherein each image corresponds to a sharpness;
    根据所述每张图像的清晰度生成所述对焦清晰度曲线。The in-focus sharpness curve is generated according to the sharpness of each image.
  20. 根据权利要求19所述的终端,其特征在于,The terminal according to claim 19, wherein:
    所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。The peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
  21. 根据权利要求17所述的终端,其特征在于,所述处理器接收红外设备发送的目标图像集合之前,还用于:The terminal according to claim 17, wherein before the processor receives the target image collection sent by the infrared device, it is further configured to:
    获取在终端上确定的目标对焦模式;Acquiring the target focus mode determined on the terminal;
    在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In the target focus mode, the step of receiving the target image set sent by the infrared device is executed.
  22. 根据权利要求21所述的终端,其特征在于,所述处理器获取在终端上确定的目标对焦模式时,具体用于:The terminal according to claim 21, wherein when the processor acquires the target focus mode determined on the terminal, it is specifically configured to:
    获取在所述终端的用户界面上的关于对焦模式的选取操作;Acquiring the selection operation of the focus mode on the user interface of the terminal;
    根据所述选取操作确定所述目标对焦模式。The target focus mode is determined according to the selection operation.
  23. 根据权利要求21所述的终端,其特征在于,The terminal according to claim 21, wherein:
    所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。Each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  24. 根据权利要求23所述的终端,其特征在于,The terminal according to claim 23, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  25. 根据权利要求23所述的终端,其特征在于,The terminal according to claim 23, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  26. 根据权利要求25所述的终端,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The terminal according to claim 25, wherein the focusing plate comprises any one or more of a four-bar target, a half-moon target, and an edge target.
  27. 一种红外设备,其特征在于,包括存储器、处理器和通信接口;An infrared device, characterized in that it comprises a memory, a processor and a communication interface;
    所述存储器,用于存储程序指令;The memory is used to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes the program instructions stored in the memory, and when the program instructions are executed, the processor is configured to execute the following steps:
    获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
    通过通信接口向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The target image set is sent to the terminal through the communication interface, so that the terminal analyzes the images in the target image set and generates a focus definition curve, which is used by the user according to the focus The sharpness curve adjusts the focusing distance of the infrared device.
  28. 根据据权利要求27所述的红外设备,其特征在于,The infrared device according to claim 27, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  29. 根据据权利要求27所述的红外设备,其特征在于,所述处理器获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:The infrared device according to claim 27, wherein when the processor obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically configured to:
    获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
    对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
  30. 根据权利要求29所述的红外设备,其特征在于,The infrared device of claim 29, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  31. 根据权利要求29所述的红外设备,其特征在于,The infrared device of claim 29, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  32. 根据权利要求31所述的红外设备,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The infrared device according to claim 31, wherein the focusing plate comprises any one or more of a four-bar target, a half-moon target, and an edge target.
  33. 一种对焦处理系统,其特征在于,包括:终端和红外设备,A focus processing system, which is characterized by comprising: a terminal and an infrared device,
    所述红外设备,用于获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像,并向终端发送所述目标图像集合;The infrared device is configured to obtain a target image set generated when a user adjusts the focus distance of the infrared device, the target image set includes multiple images, and the target image set is sent to a terminal;
    所述终端,用于接收红外设备发送的目标图像集合,并对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。The terminal is configured to receive a target image set sent by an infrared device, and analyze the images in the target image set to generate a focus sharpness curve, and the focus sharpness curve is used for the user according to the focus sharpness The degree curve adjusts the focusing distance of the infrared device.
  34. 根据权利要求33所述的系统,其特征在于,The system of claim 33, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  35. 根据权利要求33所述的系统,其特征在于,所述终端对所述目标图像集合中的图像进行分析,以生成对焦清晰度曲线时,具体用于:The system according to claim 33, wherein when the terminal analyzes the images in the target image set to generate a focus definition curve, it is specifically used for:
    通过运行在终端上的对焦评价软件对所述目标图像集合中的每张图像进行分析,以确定所述每张图像的清晰度,其中,所述每张图像对应一个清晰度;Analyzing each image in the target image set by focusing evaluation software running on the terminal to determine the sharpness of each image, wherein each image corresponds to a sharpness;
    根据所述每张图像的清晰度生成所述对焦清晰度曲线。The in-focus sharpness curve is generated according to the sharpness of each image.
  36. 根据权利要求35所述的系统,其特征在于,The system of claim 35, wherein:
    所述对焦清晰度曲线到达波峰用于表征所述红外设备的对焦距离调整至目标对焦距离,其中,所述波峰是指在所述对焦清晰度曲线中清晰度最高的点。The peak of the focus definition curve is used to indicate that the focus distance of the infrared device is adjusted to the target focus distance, where the peak refers to the point with the highest definition in the focus definition curve.
  37. 根据权利要求33所述的系统,其特征在于,所述终端接收红外设备发送的目标图像集合之前,还用于:The system according to claim 33, wherein before the terminal receives the target image set sent by the infrared device, it is further used for:
    获取在终端上确定的目标对焦模式;Acquiring the target focus mode determined on the terminal;
    在所述目标对焦模式下,执行所述接收红外设备发送的目标图像集合的步骤。In the target focus mode, the step of receiving the target image set sent by the infrared device is executed.
  38. 根据权利要求37所述的系统,其特征在于,所述终端获取在终端上确定的目标对焦模式时,具体用于:The system according to claim 37, wherein when the terminal acquires the target focus mode determined on the terminal, it is specifically used to:
    获取在所述终端的用户界面上的关于对焦模式的选取操作;Acquiring the selection operation of the focus mode on the user interface of the terminal;
    根据所述选取操作确定所述目标对焦模式。The target focus mode is determined according to the selection operation.
  39. 根据权利要求37所述的系统,其特征在于,The system of claim 37, wherein:
    所述目标图像集合中的每张图像是所述红外设备对外界场景发出的热辐射信号进行处理得到的,所述红外设备与所述外界场景相距目标距离。Each image in the target image set is obtained by processing the thermal radiation signal emitted by the external scene by the infrared device, and the infrared device is at a target distance from the external scene.
  40. 根据权利要求39所述的系统,其特征在于,The system of claim 39, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  41. 根据权利要求39所述的系统,其特征在于,The system of claim 39, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  42. 根据权利要求41所述的系统,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The system according to claim 41, wherein the focusing plate comprises any one or more of a four-bar target, a half-moon target, and an edge target.
  43. 根据权利要求33所述的系统,其特征在于,所述红外设备获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:The system according to claim 33, wherein when the infrared device acquires the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used for:
    获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
    对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
  44. 一种无人机,其特征在于,包括:An unmanned aerial vehicle, characterized in that it includes:
    机身;body;
    配置在机身上的动力系统,用于为所述无人机提供移动的动力;The power system configured on the fuselage is used to provide the moving power for the UAV;
    搭载在无人机上的红外设备;Infrared equipment mounted on the UAV;
    处理器,用于:Processor for:
    获取用户调节所述红外设备的对焦距离时生成的目标图像集合,所述目标图像集合中包括多张图像;Acquiring a target image set generated when the user adjusts the focus distance of the infrared device, where the target image set includes multiple images;
    向终端发送所述目标图像集合,以使所述终端对所述目标图像集合中的图像进行分析,并生成对焦清晰度曲线,所述对焦清晰度曲线用于供用户根据所述对焦清晰度曲线调整所述红外设备的对焦距离。Send the target image set to the terminal, so that the terminal analyzes the images in the target image set, and generates a focus definition curve, where the focus definition curve is used by the user according to the focus definition curve Adjust the focus distance of the infrared device.
  45. 根据据权利要求44所述的无人机,其特征在于,The drone according to claim 44, wherein:
    所述调节红外设备的对焦距离是通过调节所述红外设备的镜头与红外焦平面之间的距离实现的。The adjustment of the focusing distance of the infrared device is achieved by adjusting the distance between the lens of the infrared device and the infrared focal plane.
  46. 根据据权利要求44所述的无人机,其特征在于,所述处理器获取用户调节所述红外设备的对焦距离时生成的目标图像集合时,具体用于:The drone according to claim 44, wherein when the processor obtains the target image set generated when the user adjusts the focus distance of the infrared device, it is specifically used for:
    获取用户调节所述红外设备的对焦距离时外界场景发出的热辐射信号,所述红外设备与所述对焦平面相距目标距离;Acquiring a thermal radiation signal emitted by an external scene when the user adjusts the focusing distance of the infrared device, and the infrared device is at a target distance from the focusing plane;
    对所述热辐射信号进行处理生成包括多张图像的目标图像集合。The thermal radiation signal is processed to generate a target image set including a plurality of images.
  47. 根据权利要求46所述的无人机,其特征在于,The drone of claim 46, wherein:
    所述目标距离是根据用户所需的目标对焦距离以及预设的对焦距离表确定的,所述预设的对焦距离表包括不同的对焦距离与不同的放置距离的映射关系,所述放置距离为所述 红外设备与所述外界场景相距的距离;或者,The target distance is determined according to the target focus distance required by the user and a preset focus distance table. The preset focus distance table includes a mapping relationship between different focus distances and different placement distances, and the placement distance is The distance between the infrared device and the external scene; or,
    所述目标距离是根据用户所需的目标对焦距离以及预设的超焦距公式计算得到的。The target distance is calculated according to the target focus distance required by the user and a preset hyperfocal distance formula.
  48. 根据权利要求46所述的无人机,其特征在于,The drone of claim 46, wherein:
    所述外界场景包括对焦板、具有红外纹理的物体、具有边缘信息的物体中的任意一种或多种。The external scene includes any one or more of a focusing plate, an object with infrared texture, and an object with edge information.
  49. 根据权利要求48所述的无人机,其特征在于,所述对焦板包括四杆靶、半月靶、刃边靶中的任意一种或多种。The UAV according to claim 48, wherein the focusing plate includes any one or more of a four-bar target, a half-moon target, and an edge target.
  50. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program implements the method according to any one of claims 1 to 16 when the computer program is executed by a processor.
PCT/CN2020/087270 2020-04-27 2020-04-27 Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium WO2021217349A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/087270 WO2021217349A1 (en) 2020-04-27 2020-04-27 Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/087270 WO2021217349A1 (en) 2020-04-27 2020-04-27 Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium

Publications (1)

Publication Number Publication Date
WO2021217349A1 true WO2021217349A1 (en) 2021-11-04

Family

ID=78373935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087270 WO2021217349A1 (en) 2020-04-27 2020-04-27 Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium

Country Status (1)

Country Link
WO (1) WO2021217349A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120002045A1 (en) * 2007-08-08 2012-01-05 Mayer Tony Non-retro-reflective license plate imaging system
CN103414849A (en) * 2013-06-09 2013-11-27 上海博锐特光电科技有限公司 Infrared thermal imager focusing method and device
CN103997610A (en) * 2014-04-30 2014-08-20 辽宁卓异装备制造股份有限公司 Night-vision camera device and focusing method thereof
CN105306825A (en) * 2015-11-18 2016-02-03 成都中昊英孚科技有限公司 Novel infrared image focusing system and use method thereof
CN106534676A (en) * 2016-11-02 2017-03-22 西安电子科技大学 Automatic focus adjustment method for zoom camera systems
WO2018159896A1 (en) * 2017-03-02 2018-09-07 주식회사 에스카 Surveillance camera having complex filtering-based autofocusing function robust to change in visibility state, and image surveillance system having same applied thereto

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120002045A1 (en) * 2007-08-08 2012-01-05 Mayer Tony Non-retro-reflective license plate imaging system
CN103414849A (en) * 2013-06-09 2013-11-27 上海博锐特光电科技有限公司 Infrared thermal imager focusing method and device
CN103997610A (en) * 2014-04-30 2014-08-20 辽宁卓异装备制造股份有限公司 Night-vision camera device and focusing method thereof
CN105306825A (en) * 2015-11-18 2016-02-03 成都中昊英孚科技有限公司 Novel infrared image focusing system and use method thereof
CN106534676A (en) * 2016-11-02 2017-03-22 西安电子科技大学 Automatic focus adjustment method for zoom camera systems
WO2018159896A1 (en) * 2017-03-02 2018-09-07 주식회사 에스카 Surveillance camera having complex filtering-based autofocusing function robust to change in visibility state, and image surveillance system having same applied thereto

Similar Documents

Publication Publication Date Title
US10269130B2 (en) Methods and apparatus for control of light field capture object distance adjustment range via adjusting bending degree of sensor imaging zone
CN107361748B (en) Body temperature testing method and device
US9215381B2 (en) Image blurring method and apparatus, and electronic devices
US20180131869A1 (en) Method for processing image and electronic device supporting the same
CN108076278B (en) Automatic focusing method and device and electronic equipment
US9948864B2 (en) Photography illumination compensation method, compensation apparatus, and user equipment
US9986171B2 (en) Method and apparatus for dual exposure settings using a pixel array
JP5988068B2 (en) System and method for performing depth estimation by utilizing an adaptive kernel
CN107888904B (en) Method for processing image and electronic device supporting the same
US8810712B2 (en) Camera system and auto focus method
WO2018121385A1 (en) Information processing method and apparatus, and computer storage medium
CN106161910B (en) Imaging control method and device and imaging equipment
WO2020042581A1 (en) Focusing method and device for image acquisition apparatus
CN111311533A (en) Apparatus and method for determining image sharpness
WO2018133322A1 (en) Phase-detection auto focus method and device therefor
US9838594B2 (en) Irregular-region based automatic image correction
WO2022135581A1 (en) Image testing method, apparatus and system, and device and storage medium
CN106791451B (en) Photographing method of intelligent terminal
CN111970437B (en) Text shooting method, wearable device and storage medium
CN106303267A (en) Image capture device and method
WO2020042000A1 (en) Camera device and focusing method
US11523056B2 (en) Panoramic photographing method and device, camera and mobile terminal
WO2016197494A1 (en) Method and device for adjusting focusing area
CN114363522A (en) Photographing method and related device
WO2021217349A1 (en) Focusing processing method, terminal, infrared device, system, unmanned aerial vehicle, and medium

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: 20934212

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: 20934212

Country of ref document: EP

Kind code of ref document: A1