WO2018177105A1 - 一种测试摄像头延时的方法、装置及存储介质 - Google Patents

一种测试摄像头延时的方法、装置及存储介质 Download PDF

Info

Publication number
WO2018177105A1
WO2018177105A1 PCT/CN2018/078390 CN2018078390W WO2018177105A1 WO 2018177105 A1 WO2018177105 A1 WO 2018177105A1 CN 2018078390 W CN2018078390 W CN 2018078390W WO 2018177105 A1 WO2018177105 A1 WO 2018177105A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
camera
display interface
clock
time
Prior art date
Application number
PCT/CN2018/078390
Other languages
English (en)
French (fr)
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 腾讯科技(深圳)有限公司
Publication of WO2018177105A1 publication Critical patent/WO2018177105A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to a method, device, and storage medium for testing camera delay.
  • a time delay measurement is usually performed on the camera to be tested of the imaging device.
  • common methods for testing camera delays can generally include the following two types:
  • the first way to press the stopwatch That is, at the same time when the camera is used for shooting, the stopwatch is pressed to start timing, and at the same time when the camera to be tested outputs the image captured by the camera to be tested, the stopwatch is pressed again to stop the timing, and then the timing is stopped. , reading the time in the stopwatch, and using the read time as the delay of the camera to be tested.
  • the embodiment of the present application provides a method, a device, and a storage medium for testing a camera delay, which are used to solve the existing method for delaying the test camera, such as low accuracy, low efficiency, and serious waste of resources. problem.
  • the embodiment of the present application provides a method for testing a camera delay, which is applied to a computing device, including:
  • the first image is an image obtained by performing image acquisition on the clock display interface by using a camera to be tested;
  • the embodiment of the present application further provides a device for testing a camera delay, including:
  • processor coupled to the processor, the memory having machine readable instructions executable by the processor, the processor executing the machine readable instructions to:
  • the first image is an image obtained by performing image acquisition on the clock display interface by using a camera to be tested;
  • the embodiment of the present application further provides a non-transitory computer readable storage medium storing machine readable instructions, the machine readable instructions being executable by a processor to perform the following operations:
  • the first image is an image obtained by performing image acquisition on the clock display interface by using a camera to be tested;
  • FIG. 1 is a schematic flowchart diagram of a method for testing a camera delay according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a display screen of a display device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a collection process of a current time and a shooting time provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram showing the placement of a camera to be tested and a display device according to an embodiment of the present application
  • FIG. 5 is a schematic diagram showing a first possible display of a first image provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram showing a second possible display of the first image provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of information transmission between a camera to be tested and a display device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of placement of an image capturing unit and a display device according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram showing a first possible display of a second image provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram showing a second possible display of a second image provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of information transmission between an image capturing unit and an arithmetic processing unit according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram showing a first possible position of an image pickup unit according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram showing a second possible location of an image capturing unit according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram showing the relationship between delay and time of a camera to be tested according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of an apparatus for testing a camera delay according to an embodiment of the present application.
  • FIG. 15b is a schematic structural diagram of an apparatus for testing a camera delay according to an embodiment of the present application.
  • FIG. 15c is a schematic structural diagram of an apparatus for testing a camera delay according to an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of a computing device provided by an embodiment of the present application.
  • the existing method of testing camera delay has the problems of low accuracy, low efficiency and serious waste of resources.
  • the embodiment of the present application provides a method, a device, and a storage medium for testing a camera delay, which may obtain a first image of a clock display interface, where the first image is a camera pair to be tested. Displaying an image obtained by image acquisition by an interface; and acquiring a current time presented in the clock display interface when the first image is output by the camera to be tested, and collecting a clock display interface from the first image The time instant represented in the pattern is determined as the shooting time; afterwards, the delay of the camera to be tested may be determined according to the current time and the shooting time.
  • the embodiment of the present application it is not necessary to manually determine the shooting time at which the shooting is performed and the current time at which the camera to be tested outputs the captured image, and it is not necessary to manually press the corresponding stopwatch, and it is not necessary to manually calculate the time difference between the current time and the shooting time. Therefore, there is no problem of low accuracy and low efficiency due to human visual errors and reaction errors; and, in the embodiment of the present application, camera delay can be realized without using more human resources. The precise determination of time can also reduce the waste of resources and reduce the cost of camera delay determination. Therefore, the embodiment of the present application solves the problems of low accuracy, low efficiency, and serious waste of resources in the existing method for testing camera delay.
  • the embodiment of the present application provides a method for testing a camera delay, as shown in FIG. 1 , which is a schematic flowchart of a method for testing a camera delay according to an embodiment of the present application.
  • the method for testing the camera delay described in the embodiment of the present application can be performed by a computing device, and can be generally applied to any occasion where the camera delay is required to be clear, such as a camera self-test.
  • the method for testing the camera delay described in the embodiment of the present application may include the following steps:
  • Step 101 Acquire a first image of a clock display interface, where the first image is an image obtained by performing image acquisition on the clock display interface by using a camera to be tested;
  • Step 102 When the camera to be tested outputs the first image, collect a current time presented in the clock display interface, and collect a time presented in a clock display interface pattern from the first image and The moment is determined as the shooting time;
  • Step 103 Determine a delay of the camera to be tested according to the current time and the shooting time.
  • the clock display interface can generally be a display screen of any clock, such as a display screen that can be a pointer clock and/or a display screen of a digital clock.
  • the pointer clock can be any clock capable of presenting time by a pointer, such as a quartz clock, a wall clock, a pendulum clock, etc.
  • the digital clock can be any clock capable of presenting time information in digital form, such as an electronic timepiece or a smart watch.
  • the clock display interface may also be part of a display screen of any clock, such as an area in the clock display screen, etc., as long as the corresponding time information can be obtained based on the clock display interface.
  • the clock can be an integrated clock that is integrated in the corresponding electronic device, in addition to an independent clock that is independently set, such as an integrated clock integrated in other electronic devices such as mobile phones, tablets, computers, and the like.
  • an integrated clock integrated in other electronic devices such as mobile phones, tablets, computers, and the like.
  • the camera to be tested is a camera to be tested for delay, such as a camera on a shooting device such as a camera or a video camera.
  • a camera on a shooting device such as a camera or a video camera.
  • the camera to be tested may also be a camera on other electronic devices such as a mobile phone, a tablet computer, a computer, a smart watch, etc., as long as the basic image acquisition function (ie, the shooting function) is provided, for example,
  • the clock display interface performs the photographing and the like; the image acquisition described in the embodiment of the present application may generally refer to a corresponding photographing action, which is not limited in this embodiment of the present application.
  • the first image of the clock display interface may be acquired, where the first image is an image obtained by image capturing the clock display interface by using a camera to be tested;
  • the camera to be tested outputs the first image, collecting a current time presented in the clock display interface, and collecting a time presented in the clock display interface pattern from the first image and determining the time as a shooting time
  • the delay of the camera to be tested may be determined according to the current moment and the shooting moment.
  • the execution body of the test camera delay method described in the embodiment of the present application may generally be a corresponding test camera delay device, as long as the device can determine the test to be tested with the corresponding camera to be tested.
  • the delay of the camera is sufficient, and the embodiment of the present application does not limit this.
  • the first image captured by the camera to be tested is displayed in a first display screen corresponding to the camera to be tested.
  • the first display screen corresponding to the camera to be tested may be any display screen connected to the camera to be tested by wired communication and/or wireless communication, and the wired communication described herein
  • the method includes but is not limited to a communication cable.
  • the wireless communication method described herein includes but is not limited to WiFi (Wireless Fidelity), Bluetooth, infrared, Zigbee or NFC (Near Field Communication). Waiting for the way.
  • the camera to be tested when the camera to be tested is connected to the corresponding first display screen by wireless communication, the camera to be tested and the corresponding first display screen may further have a corresponding wireless transmission unit, Realizing information transmission between the camera to be tested and the first display screen.
  • the first display screen corresponding to the camera to be tested may be a photographing device such as the camera or the camera.
  • the self-contained display screen for example, assuming that the camera to be tested is a camera on the camera, the first display screen corresponding to the camera to be tested may be the display screen of the camera.
  • the first display screen may also be another display screen connected to the camera, such as a display screen of an electronic device such as a mobile phone, a tablet computer, a computer connected to the camera, for example, assuming that the camera to be tested is A camera on the camera, and the camera is connected to a computer, and the first display screen corresponding to the camera to be tested may also be a display screen of the computer.
  • the first display screen corresponding to the camera to be tested may be the mobile phone
  • a display screen on an electronic device such as a tablet computer or a computer for example, assuming that the camera to be tested is a camera on the mobile phone, the first display screen corresponding to the camera to be tested may be a display screen of the mobile phone.
  • the display screen may also be a display screen of other mobile phones, other tablet computers, other computers, and the like connected to the electronic device such as the mobile phone, the tablet computer, the computer, and the like, as long as the camera to be tested can be photographed.
  • the first image that is displayed may be displayed.
  • the camera to be tested is a camera on the mobile phone and the mobile phone is connected to a certain computer
  • the first display screen corresponding to the camera to be tested may also be
  • the embodiment of the present application does not limit this.
  • the shooting moment refers to a moment presented in a clock display interface pattern in the first image, and generally may also perform a corresponding shooting action for the camera to be tested.
  • the moment that is, the moment when the shutter of the camera to be tested is pressed, for example, assuming that the moment of pressing the shutter of the camera to be tested is 01:12:23 (ie, 1:12:23), the corresponding The shooting time is 01:12:23.
  • the current time refers to a time at which the camera to be tested outputs the first image, and may also be a time at which the first image appears in a first display screen corresponding to the camera to be tested, for example, assuming After the photographing of the camera to be tested is completed, the time when the corresponding first image appears in the first display screen corresponding to the camera to be tested is 01:23:45, and the corresponding current time is determined to be 01:23. :45.
  • the time at which the camera to be tested outputs the first image can be determined in the following manners:
  • Manner 1 At the same time as or after the camera to be tested captures the clock display interface, the continuous shooting function or the recording function of the corresponding filming device is turned on to obtain a series of image frames, and the series of image frames are The filming time corresponding to the image frame of the first image pattern appears for the first time as the time when the camera to be tested outputs the first image.
  • the filming device may be a camera, and the filming device may be the same as or different from the camera to be tested; the time interval of the continuous shooting and/or the time interval between two consecutive frames in the recording It can be flexibly set according to the actual situation, for example, it can be set at 0.1 second, etc.
  • the time interval of the continuous shooting and/or the time interval between two consecutive frames in the recording can be set as small as possible.
  • the time interval of the continuous shooting and/or the setting of the time interval between two consecutive frames in the recording need to be based on the computing power of the corresponding device.
  • Manner 2 acquiring a brightness change value of the first display screen at the same time as or after the clock display interface of the camera to be tested, and changing a brightness change value of the first display screen to a set value
  • the time presented in the clock display interface is used as the time when the camera to be tested outputs the first image; for example, the first display screen may be collected in real time or every first set time period Brightness, and when determining that the brightness change value of the first display screen is not less than the set brightness change threshold, the time presented in the clock display interface at this time is used as the time at which the camera to be tested outputs the first image
  • the first set duration may be flexibly set according to actual conditions, for example, in a case where the accuracy requirement is high, the value may be set to a value as small as possible, and in a case where the accuracy requirement is low, it may be set to be larger. value.
  • Manner 3 acquiring a contrast change value of the first display screen while the camera to be tested captures the clock display interface, and comparing a contrast change value of the first display screen to a set value
  • the time presented in the clock display interface is used as the time when the camera to be tested outputs the first image; for example, the first display interface screen may be collected in real time or every second set duration Contrast, and when determining that the contrast change value of the first display interface screen exceeds the set contrast change threshold, outputting the time presented in the clock display interface as the camera to be tested to output the first image
  • the time of the second setting may be flexibly set according to actual conditions.
  • the value may be set as small as possible, and in the case where the precision requirement is low, the time may be set to be Big value. It should be noted that the first set duration and the second set duration may be set to be the same or different.
  • the brightness change threshold and the contrast change threshold may be flexibly set according to actual conditions, as long as the first shot of the camera to be tested is detected in the first display screen.
  • An image may be used; furthermore, in addition to determining whether the first image appears in the first display screen according to the brightness change value and the contrast change value, the determination may be performed according to other parameters, such as a gray value.
  • the embodiments of the present application are not described herein.
  • a brightness change value or the like of the set area in the first display screen may be determined, wherein the set area may be It is arbitrarily set according to the actual situation.
  • the middle portion of the first display screen can be used as the setting area, etc., which is not described in detail in this embodiment of the present application.
  • the current time and the accuracy level of the shooting time may be flexibly set according to actual conditions, such as the current time and the location.
  • the accuracy of the shooting time is set to the millisecond level or the microsecond level, and the like is not described in detail in the embodiment of the present application.
  • acquiring a current time presented in the clock display interface, and collecting a time represented in the clock display interface pattern from the first image and determining the time as a shooting time may include :
  • the second image is an image obtained by performing image acquisition on a current time presented in the clock display interface and a shooting time presented in a clock display interface pattern in the first image ;
  • the current time and the shooting time are acquired from the second image based on image processing.
  • the acquisition operation of the second image can generally be performed by an imaging unit disposed inside the device with the test camera delay.
  • the camera unit may be any camera, such as the camera itself to be tested or other camera different from the camera to be tested. When the camera unit is not the camera to be tested, its specification parameters It may be the same as or different from the camera to be tested.
  • the camera unit when the camera unit is not the camera to be tested, the camera unit may be disposed in an acquisition module of the device for delaying the test camera for presenting in the clock display interface. The current time, and capturing the shooting time presented in the clock display interface pattern in the first image, after which the first display screen may be displayed in a second display screen corresponding to the image capturing unit Two images.
  • the camera unit and the second display screen may also be connected by wire and/or wirelessly, and when the camera unit and the second display screen are wirelessly connected,
  • the camera unit and the second display screen may also be provided with a corresponding wireless transmission unit, which is not described in detail in this embodiment of the present application.
  • the clock in order to be able to simultaneously capture the current time presented in the clock display interface and the shooting time presented in the clock display interface pattern in the first image by the camera unit, and To ensure the sharpness of the second image, the clock can usually be placed with the first image, such as juxtaposed or the like.
  • the clock and the first display screen may be integrated to form a corresponding display device.
  • the display screen of the display device may be divided into two regions to respectively correspond to the clock and the first display screen.
  • the method before acquiring the first image of the clock display interface, the method may further include:
  • Dividing a display screen of the display device into a plurality of display areas the plurality of display areas may include a first display area and a second display area;
  • the first display area can be used to display the clock display interface, and the second display area can be used to display the first image.
  • the relative positions of the plurality of display areas may be flexibly set according to actual conditions, for example, may be set to be adjacent to each other, adjacent to each other, or not adjacent to each other, and the like, which is not described herein.
  • the display screen of the display device is divided into two display areas, that is, the display screen of the display device is divided into a first display area and a second display area, wherein the first The display area may be the left half (shown in FIG. 2), the right half, the upper half, the lower half, or any other part of the display screen of the display device, and the second display area may be the display The right half of the display screen of the device (shown in Figure 2), the left half, the upper half, the lower half, or any other portion as long as the information in the second display area is not guaranteed to be the first The information in the display area can be occluded from each other.
  • first display area may be used to display the clock display interface
  • second display area may be used to display the first image, that is, as the first display screen.
  • first display area may also be used to display the first image
  • the second display area may also be used to display the clock display interface, which is not described in this embodiment of the present application.
  • the display screen of the display device may be divided into a plurality of display areas according to actual conditions to respectively display a plurality of clocks and the first display screen. It should be noted that, at this time, the current time may be determined according to the current time of multiple clocks, for example, an average value of a plurality of current moments may be used, which is not described in detail in this embodiment of the present application.
  • the display screen of the display device is further divided into a first display area and a second display area, and the first area is a left half of a display screen of the display device, and the second display area is The right half of the display screen of the display device is taken as an example, and the current moment and the collection time of the shooting moment described in the embodiment of the present application are described in detail:
  • the first display area is used to display a clock display interface of a certain clock
  • the second display area is used to display the first image
  • S31 Perform image acquisition on the first display area of the display device by using the camera to be tested.
  • FIG. 4 it is a schematic diagram of the placement of the camera to be tested and the display device described in the embodiment of the present application.
  • the camera to be tested can be placed directly in front of the first display area of the display screen of the display device, so that the camera to be tested can completely and clearly capture the display device.
  • the first display area of the display screen for example, assuming that the time at which the camera to be tested performs the shooting action is 01:12:23, the first image captured by the camera to be tested may be as shown in FIG. 5.
  • the clock is an analog clock
  • the first image may also be as shown in FIG. 6.
  • the camera to be tested may not be completely placed directly in front of the first display area of the display screen of the display device, as long as the clock display in the first display area can be clearly and completely captured.
  • the time information presented in the interface may be omitted, which is not described in this embodiment of the present application.
  • the camera to be tested transmits the captured first image to the display device, so that the display device outputs the first image through a second display area of a display screen of the display device.
  • FIG. 7 it is a schematic diagram of information transmission between the camera to be tested and the display device described in the embodiment of the present application.
  • the clock as a digital clock
  • the camera to be tested and the display device can be connected by wired communication and/or wireless communication, wherein FIG. 7 is connected by wired communication.
  • the display device may display the first image captured by the camera to be tested through its second display area. It should be noted that, at this time, the time in the first display area of the display device has changed, as shown in FIG. 7 , which can be changed to 01:23:45, which is not described in this embodiment of the present application. .
  • S33 Perform image acquisition on the first display area and the second display area of the display device by the camera unit.
  • FIG. 8 it is a schematic diagram of the placement of the camera unit and the display device in the embodiment of the present application.
  • the camera unit can be placed facing the display screen of the display device to enable the camera unit to capture the entire display screen of the display device in a complete and clear manner.
  • the shooting time displayed on the display device is 01:12:23, and the current time is 01:23:45
  • the second captured by the camera unit The image can be as shown in Figure 9.
  • the clock is a pointer clock
  • the second image captured by the camera unit may also be as shown in FIG. 10 , which is not described in detail in this embodiment of the present application.
  • the imaging unit sends the captured second image to a corresponding operation processing unit.
  • the operation processing unit may generally include two sub-units, such as an extraction sub-unit and an operation sub-unit.
  • the extracting subunit may be generally disposed in an acquisition module of the device for delaying the test camera, for extracting a corresponding current time and a shooting time; the operation subunit may be generally disposed in the test camera.
  • the determining module of the device is configured to calculate a time difference between the current time and the shooting time.
  • the operation processing unit may further include a corresponding display sub-unit (ie, a display screen) for displaying the calculated delay, which is not described in this embodiment of the present application.
  • the second image may be generally displayed through a second display screen corresponding to the image capturing unit, wherein the second display screen may be set independently of the display device, or may be integrated in the Display device.
  • the display screen of the display device may also be divided into three display areas, such as a corresponding clock, a first display screen, and a second display, respectively. The screen is not described in detail in this embodiment of the present application.
  • the image capturing unit may not perform the display of the second image, but directly send the second image to the operation processing unit to The second image is displayed by the arithmetic processing unit through a corresponding display subunit.
  • FIG. 11 it is a schematic diagram of information transmission between the camera unit and the operation processing unit described in the embodiment of the present application.
  • the camera unit and the operation processing unit may also be connected by wired communication and/or wireless communication, wherein FIG. 11 is connected by wired communication.
  • the operation processing unit may also be integrated in the display device.
  • the display screen of the display device may also be divided into four display areas, which respectively correspond to a clock, a first display screen, a second display screen, and an operation processing unit.
  • the second display screen and the display sub-unit of the operation processing unit may also be the same display area, which is not described in detail in this embodiment of the present application.
  • the area of the plurality of display areas of the display device may be flexibly set according to actual conditions, such as may be set to be all the same, or may be set to be different.
  • the different display areas may overlap each other or may not overlap, as long as the corresponding shooting time and the current time need to be extracted, the extraction can be performed normally, which is not described in detail in the embodiment of the present application.
  • the operation processing unit collects the current time and the shooting time from the second image based on image processing.
  • the operation processing unit may collect the shooting time from 01:12:23 and the current time as 01:23:45 from FIG. 9 based on image processing.
  • the image processing may include a HOG (Histogram of Oriented Gradient) technology and an SVM (Support Vector Machine) technology.
  • HOG Hemogram of Oriented Gradient
  • SVM Serial Vector Machine
  • the image processing may further include Any other technique that can extract information from an image.
  • the second image may be analyzed based on the HOG+SVM technology, and the corresponding picture information may be extracted from the second image, and then the digital information model may be matched to calculate the required image. The moment of shooting and the current moment.
  • the device of the present application may include a clock, a first display screen, a camera unit, a second display screen, and an operation processing unit, and Generally, the clock, the first display screen, the second display screen, and the operation processing unit can be integrated in the corresponding display device. Therefore, the actually required device can include the camera unit and the corresponding display device, which ensures Measuring the low cost of camera delay.
  • the display device may be an electronic device such as a mobile phone, a tablet computer, a computer, or the like having a clock display function and a screen display function.
  • the electronic clock in the computer That is, the clock may be, the display screen of the computer may be the first display screen and/or the second display screen, and the CPU (Central Processing Unit) in the computer may be the Operation processing unit.
  • the CPU Central Processing Unit
  • the electronic device such as a mobile phone, a tablet computer, or a computer usually has a corresponding screenshot unit or a screen capture unit
  • a screenshot unit or a screen capture unit on an electronic device such as a computer can also be used as the camera unit.
  • the embodiment of the present application can be implemented by further reducing the device required for implementing the embodiment of the present application, that is, a computer with a display and having a computing capability and a screenshot function.
  • the acquiring the current time presented in the clock display interface and the shooting time presented in the clock display interface pattern in the first image may further include:
  • the second image is an image obtained by performing image acquisition on a current moment presented in the clock display interface
  • the current time is acquired from the second image based on image processing, and the shooting time is acquired from the first image.
  • FIG. 13 is a schematic diagram of a second possible location of the camera unit described in the embodiment of the present application. Specifically, as can be seen from FIG. 13, in order to ensure the sharpness of the second image, the imaging unit can usually be placed directly in front of the display device. Wherein, the display device described in FIG. 13 integrates a corresponding clock, a first display screen, and an operation processing unit.
  • the data used to calculate the delay of the camera to be tested is the shooting time and the current time
  • the first image may be directly processed by the operation processing unit to obtain a corresponding shooting time without performing image acquisition on the shooting moment presented in the clock display interface pattern in the first image. . Therefore, at this time, image acquisition may be performed on the current time presented in the clock display interface only by the image capturing unit, so that the operation processing unit performs image processing on the second image to obtain a corresponding current time. , thereby reducing the range of shooting of the camera unit, saving the internal storage space of the camera unit and the corresponding display device.
  • the image capturing unit may capture only the first of the display device in addition to the first display area and the second display area of the display screen of the display device. Display areas to further reduce costs and save resources.
  • the acquiring the current time presented in the clock display interface and the shooting time presented in the clock display interface pattern in the first image may further include:
  • the current time is acquired from an electronic clock internal to the clock, and the shooting time is acquired from the first image based on image processing.
  • the collecting the current time from the electronic clock inside the clock may include:
  • the image processing may be directly performed by the operation processing unit to obtain a corresponding shooting moment. And not need to perform image acquisition on the shooting moment presented in the clock display interface pattern in the first image again; and, since the operation processing unit can also directly acquire the image presented in the clock display interface
  • the current time, and thus the corresponding image capturing unit is not required to capture the first display area of the display device, that is, the image capturing of the current time presented in the clock display interface is not required by the corresponding camera unit.
  • an image acquisition may be performed on the current time presented in the clock display interface to obtain a corresponding second image, and the operation is performed by the operation.
  • the processing unit acquires the current time represented in the clock display interface directly by the operation processing unit, instead of setting a corresponding image capturing unit, based on the image processing, and collecting the corresponding current time from the second image. Not only reduces the number of shots, but also saves the internal storage space of the camera unit and the corresponding display device, and also improves the test efficiency of the camera delay, reduces the cost, and saves resources.
  • determining a delay of the camera to be tested according to the current time and the shooting time may include:
  • the difference is used as the delay of the camera to be tested.
  • the delay of the camera to be tested can be obtained as 11 minutes and 22 seconds.
  • the reading time of the display device and the reading of the current time may be implemented by using a reading function of the display device, and the calculation may be implemented by using a computing function of the display device.
  • the delay of the camera is determined, so there is no problem of low accuracy and low efficiency due to visual errors and reaction errors; and, because the entire process does not require any manpower, it can also reduce the camera delay. Determine costs and save human resources.
  • the delay may also be displayed according to the set requirement.
  • the delay may be performed on the display screen of the operation processing unit. Displaying or the like, or the delay may be displayed through the display screen of the display device or the like.
  • the delay may also be played out through a corresponding voice playing unit, wherein the voice playing unit may be independently disposed outside the display device, and may be performed with the operation processing unit.
  • the connection and the connection may include a wired communication mode and/or a wireless communication mode.
  • the voice playback unit may also be integrated in the display device, and details are not described herein.
  • the delay of the camera to be tested may be determined according to the delay, as shown in FIG. 14 .
  • FIG. 14 It is a schematic diagram of the relationship between the delay and the time of the camera to be tested described in the embodiment of the present application.
  • the ordinate Delay represents a delay
  • the abscissa Time represents time
  • each point on the abscissa represents one hour.
  • the delay of the camera to be tested gradually becomes larger, so that the user can be provided with a corresponding reference and basis for selecting the camera.
  • the user when the user purchases the camera, if the camera delay of the camera is found to increase greatly with the increase of the use time, the user can determine that the performance of the camera is not good; otherwise, if the camera of the camera is found The user can determine that the performance of the camera is better, which is not described in detail in the embodiment of the present application.
  • the first embodiment of the present application provides a method for testing a camera delay, and the first image of the clock display interface is obtained.
  • the first image is an image obtained by using the image to be tested to acquire the clock display interface. And acquiring the current time presented in the clock display interface when the first image is output by the camera to be tested, and collecting the time presented in the clock display interface pattern from the first image and The time is determined as the shooting time; afterwards, the delay of the camera to be tested may be determined according to the current time and the shooting time.
  • some embodiments of the present application provide a device for testing camera delay, as shown in FIG. 15a, which is the structure of the device for testing the camera delay described in the embodiment of the present application.
  • schematic diagram As shown in FIG. 15a, the device for testing the camera delay described in the embodiment of the present application may include:
  • the obtaining module 151 is configured to obtain a first image of the clock display interface, where the first image is an image obtained by performing image acquisition on the clock display interface by using a camera to be tested;
  • the collecting module 152 is configured to: when the first image is output by the camera to be tested, collect a current time presented in the clock display interface, and collect a clock display interface pattern from the first image The moment and determine the moment as the shooting moment;
  • the determining module 153 is configured to determine a delay of the camera to be tested according to the current moment and the shooting moment.
  • the collection module 152 may include an extraction subunit 1521 for extracting the current time from the clock display interface, and extracting from the first image.
  • the determining module 153 may include an operation subunit 1531 for calculating a corresponding delay according to the current time and the shooting time.
  • the determining module 153 may further include a display subunit 1532 for displaying the delay. It should be noted that the extraction sub-unit 1521, the operation sub-unit 1531, and the display sub-unit 1532 can be integrated into the corresponding control logic, which is not described in detail in this embodiment of the present application.
  • the acquiring module may be configured to obtain a first image of the clock display interface, where the first image is obtained by performing image acquisition on the clock display interface by using a camera to be tested.
  • An image configured to: when the first image is output by the camera to be tested, acquire a current time presented in the clock display interface, and collect a time presented in a clock display interface pattern from the first image and Determining the time as the acquisition module of the shooting time; and determining means for determining the delay of the camera to be tested according to the current time and the shooting time.
  • the acquiring module 152 may be configured to acquire a second image, and collect the current moment and the shooting moment from the second image based on image processing, where the second The image is an image obtained by image acquisition of a current time presented in the clock display interface and a shooting time presented in a clock display interface pattern in the first image.
  • the acquisition module 152 can generally perform an acquisition operation on the second image based on the imaging unit 1522 (as shown in FIG. 15b) in the acquisition module 152.
  • the camera unit 1522 can be any camera different from the camera to be tested, and the specification parameter thereof can be the same as or different from the camera to be tested.
  • the acquisition module 152 is further configured to acquire a second image, and collect the current time from the second image based on image processing, and collect from the first image.
  • the photographing moment, wherein the second image is an image obtained by performing image acquisition on a current moment presented in the clock display interface.
  • the collecting module 152 is further configured to collect the current moment from an electronic clock inside the clock, and collect the shooting moment from the first image based on image processing. .
  • the determining module 153 may be specifically configured to calculate a difference between the current time and the shooting time, and use the difference as a delay of the camera to be tested.
  • the apparatus for testing camera delay may further include a dividing module 154:
  • the dividing module 154 is configured to divide the display screen of the display device into a plurality of display areas, where the plurality of display areas include the first display area and the second display area, before acquiring the first image of the clock display interface;
  • the first display area is used to display the clock display interface
  • the second display area is used to display the first image
  • the embodiment of the present application provides an apparatus for testing a camera delay, which may include an acquiring module for acquiring a first image of a clock display interface, where the first image is performed by using a camera to be tested to perform the clock display interface. Obtaining an image obtained by the image; when the first image is output by the camera to be tested, acquiring a current time presented in the clock display interface, and collecting a clock display interface pattern from the first image And a determining module for determining a time delay of the camera to be tested according to the current time and the shooting time.
  • FIG. 16 is a schematic structural diagram of a computing device according to an embodiment of the present application.
  • the computing device can be a desktop computer, a portable computer, a smart phone, a tablet, a Personal Digital Assistant (PDA), or the like.
  • the computing device in the embodiment of the present application may include a central processing unit (CPU) 1601, a memory 1602, an input device 1603, and an output device 1604.
  • the input device 1603 may include a keyboard, a mouse, a touch screen, and the like.
  • the output device 1604 can include a display device such as a liquid crystal display (LCD), a cathode ray tube (CRT), or the like.
  • LCD liquid crystal display
  • CRT cathode ray tube
  • Memory 1602 can include read only memory (ROM) and random access memory (RAM) and provides machine readable instructions and data stored in memory 1602 to central processor 1601.
  • the machine readable instructions stored in the memory 1602 include a program for testing a method of camera delay.
  • the central processor 1601 is configured to execute the machine readable instructions stored in the memory 1602, and the central processor 1601 is configured to perform, according to the obtained machine readable instructions, a first image of the clock display interface, wherein the first image is utilized for testing An image obtained by the camera acquiring the image on the clock display interface; collecting the current time presented in the clock display interface when the first image is output by the camera to be tested, and collecting from the first image
  • the clock displays the time presented in the interface pattern and determines the time as the shooting time; and determines the delay of the camera to be tested according to the current time and the shooting time.
  • Some embodiments of the present application provide a computer storage medium for storing computer program instructions for use with the computing device described above, including a program for performing the method of testing camera latency described above.
  • the computer storage medium can be any available media or data storage device accessible by a computer, including but not limited to magnetic storage (eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (eg, CD, DVD, BD, HVD, etc.), and semiconductor memories (for example, ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state hard disk (SSD)).
  • magnetic storage eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.
  • optical storage eg, CD, DVD, BD, HVD, etc.
  • semiconductor memories for example, ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state hard disk (SSD)).
  • embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the embodiments of the present application are described in terms of flowcharts and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or ⁇ RTIgt;
  • the computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine readable by a processor executed by a computer or other programmable data processing device
  • the instructions generate means for implementing the functions specified in one or more of the blocks or blocks of a flow or a plurality of flows and/or block diagrams in the flowcharts provided in the embodiments of the present application.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

本申请实施例公开了一种测试摄像头延时的方法、装置及存储介质,该方法包括:获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。

Description

一种测试摄像头延时的方法、装置及存储介质
本申请要求于2017年3月31日提交中国专利局、申请号为201710211543.1,申请名称为“一种测试摄像头延时的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及图像处理技术领域,尤其涉及一种测试摄像头延时的方法、装置及存储介质。
背景技术
目前,为了提升摄像机、照相机等拍摄设备的拍摄效果,通常会对摄像设备的待测摄像头进行延时测量。具体地,常见的测试摄像头延时的方式通常可包括以下两种:
第一种、按压秒表的方式。即,在使用摄像头进行拍摄的同一时刻,按下秒表,以开始计时,并在所述待测摄像头输出该待测摄像头所拍摄到的图像的同一时刻,再次按下秒表,以停止计时,之后,读取秒表中的时间,并将读取到的时间作为所述待测摄像头的延时。
第二种,人工计算的方式。即,通过摄像头拍摄某一时钟显示界面,得到图像,并在所述摄像头输出该图像时,人工读取该时钟显示界面中所呈现的当前时刻以及该图像中的时钟显示界面图案中所呈现的拍摄时刻,以及,人工计算这两个时刻的时间差,并将人工计算得到的时间差作为所述摄像头的延时。
发明内容
本申请实施例提供了一种测试摄像头延时的方法、装置及存储介质, 用以解决现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重等的问题。
本申请实施例提供了一种测试摄像头延时的方法,应用于计算设备,包括:
获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
本申请实施例还提供了一种测试摄像头延时的装置,包括:
处理器以及与所述处理器相连接的存储器,所述存储器中存储有可由所述处理器执行的机器可读指令,所述处理器执行所述机器可读指令完成以下操作:
获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
本申请实施例还提供了一种非易失性计算机可读存储介质,所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成以下操作:
获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1所示为本申请实施例提供的测试摄像头延时的方法的流程示意图;
图2所示为本申请实施例提供的显示设备的显示屏幕示意图;
图3所示为本申请实施例提供的当前时刻以及拍摄时刻的采集流程示意图;
图4所示为本申请实施例提供的待测摄像头与显示设备的放置示意图;
图5所示为本申请实施例提供的第一图像的第一种可能的显示示意图;
图6所示为本申请实施例提供的第一图像的第二种可能的显示示意图;
图7所示为本申请实施例提供的待测摄像头与显示设备之间的信息传输示意图;
图8所示为本申请实施例提供的摄像单元与显示设备的放置示意图;
图9所示为本申请实施例提供的第二图像的第一种可能的显示示意图;
图10所示为本申请实施例提供的第二图像的第二种可能的显示示意图;
图11所示为本申请实施例提供的摄像单元与运算处理单元之间的信息传输示意图;
图12所示为本申请实施例提供的摄像单元的第一种可能的位置示意图;
图13所示为本申请实施例提供的摄像单元的第二种可能的位置示意图;
图14所示为本申请实施例提供的待测摄像头的延时与时间的关系示意图;
图15a所示为本申请实施例提供的测试摄像头延时的装置的结构示意图;
图15b所示为本申请实施例提供的测试摄像头延时的装置的结构示意图;
图15c所示为本申请实施例提供的测试摄像头延时的装置的结构示意图;
图16所示为本申请实施例提供的计算设备的结构示意图。
具体实施方式
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施 例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请实施例保护的范围。
在通过按压秒表来测试摄像头延时的方式中,不仅需要人工确定进行拍摄的拍摄时刻以及待测摄像头输出拍摄的图像的当前时刻,还需要人工按压秒表,因而很容易出现由于视觉误差以及反应误差所导致的准确性较低以及效率较低的问题;而且,为了提升准确性,这种方式还需要较多的人员参与,因此还会出现资源浪费较严重的问题。
在通过人工计算来测试摄像头延时的方式中,不仅需要人工确定所述摄像头是否输出了该图像,还需要人工读取相应的当前时刻以及拍摄时刻,因而仍会存在由于视觉误差以及反应误差所导致的准确性较低以及效率较低的问题;而且,为了提升准确性,这种方式也需要较多的人员参与,因此还是存在资源浪费较严重的问题。
也就是说,现有的测试摄像头延时的方法存在准确性较低、效率较低以及资源浪费较严重的问题。
有鉴于此,本申请实施例提供了一种测试摄像头延时的方法、装置及存储介质,可获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;并可在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;之后,可根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。在本申请实施例中,无需人工确定进行拍摄的拍摄时刻以及待测摄像头输出所拍摄到的图像的当前时刻,也无需人工按压相应的秒表,更无需人工计算当前时刻与拍摄时刻之间的时间差,因而不会存在由于人的视觉误差以及反应误差所带来的准确性较低以及效率较低的问题;且,在本申请实施例中,由于无需 使用较多的人力资源即可实现摄像头延时的精确确定,因而还能减少资源的浪费,降低摄像头延时确定的成本。因此,本申请实施例解决了现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重的问题。
本申请实施例提供了一种测试摄像头延时的方法,如图1所示,其为本申请实施例中所述的测试摄像头延时的方法的流程示意图。本申请实施例中所述的测试摄像头延时的方法可由计算设备执行,且通常可被应用在摄像头出厂自检等任意需要明确摄像头延时的场合。具体地,由图1可知,本申请实施例中所述的测试摄像头延时的方法可包括以下步骤:
步骤101:获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
步骤102:在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
步骤103:根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
需要说明的是,所述时钟显示界面通常可为任意时钟的显示屏幕,如可为指针式时钟的显示屏幕和/或数字式时钟的显示屏幕。其中,所述指针式时钟可为石英钟表、挂钟、摆钟等任意能够通过指针形式呈现时间的时钟,所述数字式时钟可为电子钟表、智能手表等任意能够通过数字形式呈现时间信息的时钟,只要能够表示相应时区的正确时间即可,例如能够表示东八区的正确时间等。再有,所述时钟显示界面也可为任意时钟的显示屏幕的一部分,如所述时钟显示屏幕中的某一区域等,只要能够基于所述时钟显示界面得到相应的时间信息即可。
另外,所述时钟除了可为独立设置的独立时钟之外,还可为集成设置在相应的电子设备中的集成时钟,如可为集成在手机、平板电脑、电脑等其它电子设备中的集成时钟,本申请实施例对此不作任何限定。
在本申请实施例中,所述待测摄像头为待测试延时的摄像头,如可为照相机、摄像机等拍摄设备上的摄像头。当然,需要说明的是,所述待测摄像头还可为手机、平板电脑、电脑、智能手表等其它电子设备上的摄像头,只要具备基本的图像获取功能(即拍摄功能)即可,例如可对时钟显示界面进行拍摄等;本申请实施例中所述的图像获取通常可指相应的拍摄动作,本申请实施例对此不作任何限定。
也就是说,本申请实施例中,可获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;并可在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;之后,可根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。在本申请实施例中,无需人工确定进行拍摄的拍摄时刻以及待测摄像头输出所拍摄到的图像的当前时刻,也无需人工按压相应的秒表,更无需人工计算当前时刻与拍摄时刻之间的时间差,因而不会存在由于人的视觉误差以及反应误差所带来的准确性较低以及效率较低的问题;且,在本申请实施例中,由于无需使用较多的人力资源即可实现摄像头延时的精确确定,因而还能减少资源的浪费,降低延时确定的成本。解决了现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重的问题。
需要说明的是,本申请实施例中所述的测试摄像头延时的方法的执行主体通常可为相应的测试摄像头延时的装置,只要该装置能够配合相 应的待测摄像头确定出所述待测摄像头的延时即可,本申请实施例对此不作任何限定。
其中,“在所述待测摄像头输出所述第一图像时”是指在与所述待测摄像头相对应的第一显示屏幕中显示出所述待测摄像头所拍摄到的所述第一图像的时刻。需要说明的是,与所述待测摄像头相对应的第一显示屏幕可为与所述待测摄像头通过有线通信方式和/或无线通信方式连接的任一显示屏幕,此处所述的有线通信方式包括但不限于通信线缆等方式,此处所述的无线通信方式包括但不限于WiFi(WirelessFidelity,无线保真)、蓝牙、红外、紫蜂或者NFC(Near Field Communication,近距离无线通信)等方式。再者,需要说明的是,当所述待测摄像头与相应的第一显示屏幕通过无线通信方式连接时,所述待测摄像头与相应的第一显示屏幕还可具备相应的无线传输单元,以实现所述待测摄像头与所述第一显示屏幕之间的信息传输。
在本申请一些实施例中,当所述待测摄像头为照相机或者摄像机等拍摄设备上的摄像头时,与所述待测摄像头相对应的第一显示屏幕即可为所述照相机或者摄像机等拍摄设备自带的显示屏幕,例如,假设所述待测摄像头为照相机上的摄像头,则与所述待测摄像头相对应的第一显示屏幕即可为所述照相机的显示屏幕。当然,所述第一显示屏幕也可为与所述照相机相连的其它显示屏幕,如与所述照相机相连的手机、平板电脑、电脑等电子设备的显示屏幕,例如,假设所述待测摄像头为照相机上的摄像头、且所述照相机与某一电脑相连,则与所述待测摄像头相对应的第一显示屏幕还可为所述电脑的显示屏幕。
在本申请另外一些实施例中,当所述待测摄像头为手机、平板电脑、电脑等电子设备上的摄像头时,与所述待测摄像头相对应的第一显示屏幕即可为所述手机、平板电脑、电脑等电子设备上的显示屏幕,例如, 假设所述待测摄像头为手机上的摄像头,则与所述待测摄像头相对应的第一显示屏幕即可为所述手机的显示屏幕。当然,所述显示屏幕也可为与所述手机、平板电脑、电脑等电子设备相连的其它手机、其它平板电脑、其它电脑等其它电子设备的显示屏幕,只要能够将所述待测摄像头所拍摄到的第一图像显示出来即可,例如,假设所述待测摄像头为手机上的摄像头、且所述手机与某一电脑相连,则与所述待测摄像头相对应的第一显示屏幕还可为所述电脑的显示屏幕,本申请实施例对此不作任何限定。
需要说明的是,在本申请实施例中,所述拍摄时刻是指所述第一图像中的时钟显示界面图案中所呈现的时刻,通常也可为所述待测摄像头执行相应的拍摄动作的时刻,即按下所述待测摄像头的快门的时刻,例如,假设按下所述待测摄像头的快门的时刻为01:12:23(即1时12分23秒),则可确定相应的拍摄时刻为01:12:23。所述当前时刻是指所述待测摄像头输出所述第一图像的时刻,通常也可为与所述待测摄像头相对应的第一显示屏幕中出现所述第一图像的时刻,例如,假设在所述待测摄像头拍摄完成之后,与所述待测摄像头相对应的第一显示屏幕中出现相应的第一图像的时刻为01:23:45,即可确定相应的当前时刻为01:23:45。
需要说明的是,所述待测摄像头输出所述第一图像的时刻(即当前时刻)通常可通过以下几种方式进行确定:
方式一:在所述待测摄像头拍摄了所述时钟显示界面的同时或之后,开启相应的摄制设备的连拍功能或者录像功能,以得到一系列图像帧,并将所述一系列图像帧中首次出现了所述第一图像图案的图像帧所对应的摄制时刻作为所述待测摄像头输出所述第一图像的时刻。其中,所述摄制设备可为一摄像头,且所述摄制设备可与所述待测摄像头相同或 不同;所述连拍的时间间隔和/或所述录像中连续两帧之间的时间间隔均可根据实际情况灵活设置,如可设置在0.1秒等,通常情况下,所述连拍的时间间隔和/或所述录像中连续两帧之间的时间间隔可尽量设置为较小的数值。当然,所述连拍的时间间隔和/或所述录像中连续两帧之间的时间间隔的设置还需要依据相应设备的运算能力。
方式二:在所述待测摄像头拍摄了所述时钟显示界面的同时或之后,采集所述第一显示屏幕的亮度变化值,并将所述第一显示屏幕的亮度变化值不小于设定的亮度变化阈值时,所述时钟显示界面中所呈现的时间作为所述待测摄像头输出所述第一图像的时刻;例如,可实时或者每隔第一设定时长采集所述第一显示屏幕的亮度,并在确定所述第一显示屏幕的亮度变化值不小于设定的亮度变化阈值时,将此时时钟显示界面中所呈现的时间作为所述待测摄像头输出所述第一图像的时刻,其中,所述第一设定时长可根据实际情况灵活设置,如在精度要求较高的场合中,可设置为尽量小的值,在精度要求较低的场合中,可设置为较大的值。
方式三:在所述待测摄像头拍摄了所述时钟显示界面的同时或之后,采集所述第一显示屏幕的对比度变化值,并将所述第一显示屏幕的对比度变化值不小于设定的对比度变化阈值时,所述时钟显示界面中所呈现的时间作为所述待测摄像头输出所述第一图像的时刻;例如,可实时或者每隔第二设定时长采集所述第一显示界面幕的对比度,并在确定所述第一显示界面幕的对比度变化值超过了设定的对比度变化阈值时,将此时时钟显示界面中所呈现的时间作为所述待测摄像头输出所述第一图像的时刻,其中,所述第二设定时长可根据实际情况灵活设置,如在精度要求较高的场合中,可设置为尽量小的值,在精度要求较低的场合中,可设置为较大的值。需要说明的是,所述第一设定时长以及所述第二设定时长可设置为相同或者不同。
需要说明的是,所述亮度变化阈值以及所述对比度变化阈值均可根据实际情况灵活设置,只要能够精确判断所述第一显示屏幕中是否出现了所述待测摄像头所拍摄到的所述第一图像即可;再者,除了可根据亮度变化值以及对比度变化值来确定所述第一显示屏幕中是否出现了所述第一图像之外,还可根据其它参数进行判断,如灰度值等,本申请实施例在此不作赘述。
另外,需要说明的是,除了可确定所述第一显示屏幕中的亮度变化值,还可确定所述第一显示屏幕中的设定区域的亮度变化值等,其中,所述设定区域可根据实际情况灵活设置,如可将第一显示屏幕中的中间部分作为所述设定区域等,本申请实施例对此不作赘述。
在本申请一些实施例中,为了提升确定出的摄像头延时的准确性以及精度,还可根据实际情况灵活设置所述当前时刻以及所述拍摄时刻的精度级别,如将所述当前时刻以及所述拍摄时刻的精度设置为毫秒级或者微秒级等,本申请实施例对此也不作赘述。
在本申请一些实施例中,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,可包括:
获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻以及对所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取得到的图像;
基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻。
需要说明的是,通常可通过设置在所述测试摄像头延时的装置内部的摄像单元来执行对所述第二图像的采集操作。其中,所述摄像单元可为任一摄像头,如可为所述待测摄像头本身或者与所述待测摄像头不同 的其它摄像头,当所述摄像单元不为所述待测摄像头时,其规格参数可与所述待测摄像头相同或者不同。具体地,当所述摄像单元不为所述待测摄像头时,所述摄像单元可被设置在所述测试摄像头延时的装置的采集模块中,用以对所述时钟显示界面中所呈现的所述当前时刻,以及对所述第一图像中的时钟显示界面图案中所呈现的所述拍摄时刻进行拍摄,之后,可在与所述摄像单元相对应的第二显示屏幕中显示所述第二图像。类似地,所述摄像单元与所述第二显示屏幕也可通过有线方式和/或无线方式进行连接,且,当所述摄像单元与所述第二显示屏幕通过无线方式进行连接时,所述摄像单元以及所述第二显示屏幕还可具备相应的无线传输单元,本申请实施例对此不作赘述。
通常情况下,为了能够通过所述摄像单元同时拍摄到所述时钟显示界面中所呈现的所述当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的所述拍摄时刻,并且能够保证所述第二图像的清晰度,通常可将所述时钟与所述第一图像放置在一起,如并列放置等。
在本申请一些实施例中,为了进一步提升所述摄像单元拍摄到的第二图像的清晰性以及直观性,还可将所述时钟以及所述第一显示屏幕集成在一起,组成相应的显示设备。此时,所述显示设备的显示屏幕可被分为两个区域,以分别对应所述时钟以及所述第一显示屏幕。
在本申请一些实施例中,在获取时钟显示界面的第一图像之前,所述方法还可包括:
将显示设备的显示屏幕划分为多个显示区域,所述多个显示区域可包括第一显示区域以及第二显示区域;
其中,所述第一显示区域可用于展示所述时钟显示界面,所述第二显示区域可用于展示所述第一图像。
需要说明的是,所述多个显示区域的相对位置可根据实际情况灵活 设置,如可设置为左右相邻、上下相邻、或者互不相邻等,本申请实施例对此不作赘述。
例如,如图2所示,假设将所述显示设备的显示屏幕划分为两个显示区域,即将所述显示设备的显示屏幕划分为第一显示区域以及第二显示区域,其中,所述第一显示区域可为所述显示设备的显示屏幕的左半部分(图2所示)、右半部分、上半部分、下半部分或者其它任意的一部分,所述第二显示区域可为所述显示设备的显示屏幕的右半部分(图2所示)、左半部分、上半部分、下半部分或者其它任意的一部分,只要能够保证所述第二显示区域中的信息不与所述第一显示区域中的信息相互遮挡即可。需要说明的是,所述第一显示区域可用于展示所述时钟显示界面,所述第二显示区域可用于展示所述第一图像,即可作为所述第一显示屏幕。当然,所述第一显示区域还可用于展示所述第一图像,所述第二显示区域还可用于展示所述时钟显示界面,本申请实施例对此不作赘述。
为了提升确定出的摄像头延时的精确性,还可根据实际情况将所述显示设备的显示屏幕划分为多个显示区域,以分别展示多个时钟以及所述第一显示屏幕。需要说明的是,此时,所述当前时刻还可根据多个时钟的当前时刻来确定,如可取多个当前时刻的平均值等,本申请实施例对此不作赘述。
下面,仍以所述显示设备的显示屏幕被分为第一显示区域以及第二显示区域、且所述第一区域为所述显示设备的显示屏幕的左半部分,所述第二显示区域为所述显示设备的显示屏幕的右半部分为例,对本申请实施例中所述的当前时刻以及拍摄时刻的采集过程进行详细地介绍:
假设,所述第一显示区域用于展示某一时钟的时钟显示界面,所述第二显示区域用于展示所述第一图像,则整个采集过程可分为以下几个 步骤,如图3所示:
S31:通过待测摄像头对所述显示设备的第一显示区域进行图像获取。
如图4所示,其为本申请实施例中所述的待测摄像头与显示设备的放置示意图。具体地,由图4可知,所述待测摄像头可放置在所述显示设备的显示屏幕的第一显示区域的正前方,以使得所述待测摄像头能够完整且清晰地拍摄所述显示设备的显示屏幕的第一显示区域,例如,假设所述待测摄像头执行拍摄动作的时刻为01:12:23,则所述待测摄像头所拍摄到的所述第一图像可如图5所示。再例如,当所述时钟为指针式时钟,则所述第一图像还可如图6所示。
当然,需要说明的是,所述待测摄像头也可不完全放置在所述显示设备的显示屏幕的第一显示区域的正前方,只要能够清晰完整地拍摄到所述第一显示区域中的时钟显示界面中所呈现的时间信息即可,本申请实施例对此不作赘述。
S32:待测摄像头将拍摄到的所述第一图像传输给所述显示设备,以使得所述显示设备通过所述显示设备的显示屏幕的第二显示区域输出所述第一图像。
如图7所示,其为本申请实施例中所述的待测摄像头以及显示设备之间的信息传输示意图。具体地,以所述时钟为数字时钟为例,所述待测摄像头以及所述显示设备之间可通过有线通信方式和/或无线通信方式进行连接,其中,图7中是以有线通信方式连接的,此时,所述显示设备可通过其第二显示区域将所述待测摄像头所拍摄到的所述第一图像显示出来。其中,需要说明的是,此时,所述显示设备的第一显示区域中的时间已经发生了变化,如图7所示,可变为01:23:45,本申请实施例对此不作赘述。
S33:通过摄像单元对所述显示设备的第一显示区域以及第二显示区域进行图像获取.
如图8所示,其为本申请实施例中所述摄像单元以及显示设备的放置示意图。具体地,由图8可知,所述摄像单元可正对着所述显示设备的显示屏幕放置,以使所述摄像单元能够完整且清晰地拍摄所述显示设备的整个显示屏幕。例如,假设在所述拍摄单元执行拍摄动作时所述显示设备上显示的拍摄时刻为01:12:23、当前时刻为01:23:45,则所述摄像单元所拍摄到的所述第二图像可如图9所示。再例如,当所述时钟为指针式时钟,则所述摄像单元所拍摄到的所述第二图像还可如图10所示,本申请实施例对此不作赘述。
S34:摄像单元将拍摄到的所述第二图像发送至相应的运算处理单元。
其中,所述运算处理单元通常可包括两个子单元,如可包括提取子单元以及运算子单元。其中,所述提取子单元通常可设置在所述测试摄像头延时的装置的采集模块中,用于提取出相应的当前时刻以及拍摄时刻;所述运算子单元通常可设置在所述测试摄像头延时的装置的确定模块中,用于计算所述当前时刻以及所述拍摄时刻之间的时间差。当然,所述运算处理单元还可包括相应的显示子单元(即显示屏幕),用于将计算得到的延时进行显示,本申请实施例对此不作赘述。
需要说明的是,所述第二图像通常可通过与所述摄像单元相对应的第二显示屏幕显示,其中,所述第二显示屏幕可独立于所述显示设备设置,也可集成在所述显示设备中。当所述第二显示屏幕为集成在所述显示设备中的集成单元时,所述显示设备的显示屏幕还可被划分成三个显示区域,如分别对应时钟、第一显示屏幕以及第二显示屏幕,本申请实施例对此不作赘述。
根据本申请一些实施例,所述摄像单元在拍摄到相应的第二图像时,也可不进行所述第二图像的显示,而是直接将所述第二图像发送至所述运算处理单元,以由所述运算处理单元通过相应的显示子单元将所述第二图像进行显示。
如图11所示,其为本申请实施例中所述的摄像单元与运算处理单元之间的信息传输示意图。具体地,所述摄像单元与所述运算处理单元之间也可通过有线通信方式和/或无线通信方式进行连接,其中,图11中是以有线通信方式连接的。
需要说明的是,如图12所示,其为本申请实施例中所述的摄像单元的第一种可能的位置示意图,所述运算处理单元还可被集成在所述显示设备中,此时,所述显示设备的显示屏幕还可被分为四个显示区域,分别对应时钟、第一显示屏幕、第二显示屏幕以及运算处理单元。其中,所述第二显示屏幕与所述运算处理单元的显示子单元还可为同一个显示区域,本申请实施例对此不作赘述。
当然,还需要说明的是,所述显示设备的多个显示区域的面积可根据实际情况灵活设置,如可设置为全部相同,也可设置为各不相同。且,不同显示区域之间可互相重叠或者不重叠,只要在需要提取相应的拍摄时刻以及当前时刻时,能够正常提取即可,本申请实施例对此不作赘述。
S35:所述运算处理单元基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻。
例如,仍以图9为例,则所述运算处理单元可基于图像处理,从图9中采集到所述拍摄时刻为01:12:23以及所述当前时刻为01:23:45。
具体地,所述图像处理通常可包括HOG(Histogram of Oriented Gradient,方向梯度直方图)技术以及SVM(Support Vector Machine,支持向量机)技术,当然,需要说明的是,所述图像处理还可包括其它 任意能够对图像中的信息进行提取的技术。
也就是说,在本申请实施例中,可基于HOG+SVM技术分析第二图像,并可从所述第二图像中提取出相应的图片信息,之后,可配合数字信息模型,计算得到所需要的拍摄时刻以及当前时刻。
由上述内容可知,除了待确定延时的待测摄像头之外,要实现本申请实施例,实际需求的设备可包括时钟、第一显示屏幕、摄像单元、第二显示屏幕以及运算处理单元,且,通常情况下,时钟、第一显示屏幕、第二显示屏幕以及运算处理单元均可集成在相应的显示设备中,因此,实际需求的设备可包括摄像单元以及相应的显示设备,这就保证了测量摄像头延时的低成本。其中,需要说明的是,所述显示设备可为具备时钟显示功能以及屏幕显示功能的手机、平板电脑、电脑等电子设备,例如,假设所述显示设备为电脑,则所述电脑中的电子钟即可为所述时钟,所述电脑的显示屏幕即可为所述第一显示屏幕和/或第二显示屏幕,所述电脑中的CPU(Central Processing Unit,中央处理器)即可为所述运算处理单元。
进一步地,由于手机、平板电脑、电脑等电子设备中通常还具备相应的截图单元或者截屏单元,因此,还可将电脑等电子设备上的截图单元或者截屏单元作为所述摄像单元,这就能够进一步减少实现本申请实施例所需要的设备,即,一台带有显示器的、具备运算能力和截图功能的电脑即可实现本申请实施例,对此不作赘述。
在本申请一些实施例中,采集所述时钟显示界面中所呈现的当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻,还可包括:
获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻进行图像获取得到的图像;
基于图像处理,从所述第二图像中采集所述当前时刻,以及,从所述第一图像中采集所述拍摄时刻。
如图13所示,其为本申请实施例中所述的摄像单元的第二种可能的位置示意图。具体地,由图13可知,为了保证所述第二图像的清晰度,通常可将所述摄像单元放置在所述显示设备的正前方。其中,图13中所述的显示设备集成了相应的时钟、第一显示屏幕以及运算处理单元。
需要说明的是,在本申请实施例中,用以计算待测摄像头延时的数据为拍摄时刻以及当前时刻,且,由于之前已经通过所述待测摄像头得到了所述第一图像,因而,可直接通过所述运算处理单元对所述第一图像进行图像处理,即可得到相应的拍摄时刻,而无需再次对所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取。因此,此时可仅通过所述摄像单元对所述时钟显示界面中所呈现的当前时刻进行图像获取,以使得所述运算处理单元对所述第二图像进行图像处理,以得到相应的当前时刻,从而减少了摄像单元拍摄的范围,节省了摄像单元以及相应显示设备的内部存储空间。
也就是说,在本申请实施例中,所述摄像单元除了可同时拍摄所述显示设备的显示屏幕的第一显示区域以及第二显示区域之外,还可仅拍摄所述显示设备的第一显示区域,从而能够进一步降低成本,节省资源。
在本申请一些实施例中,采集所述时钟显示界面中所呈现的当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻,还可包括:
从所述时钟内部的电子钟中采集所述当前时刻,以及,基于图像处理,从所述第一图像中采集所述拍摄时刻。
其中,从所述时钟内部的电子钟中采集所述当前时刻,可包括:
向所述时钟发送当前时刻获取指令,并接收所述时钟返回的所述时 钟内部的电子钟中的当前时刻;和/或,
直接访问所述时钟内部的电子钟,并获取所述电子钟中的当前时刻。
在本申请实施例中,由于之前已经通过所述待测摄像头得到了所述第一图像,因而可直接通过所述运算处理单元对所述第一图像进行图像处理,即可得到相应的拍摄时刻,而无需再次对所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取;且,由于此时所述运算处理单元还可直接获取到所述时钟显示界面中所呈现的所述当前时刻,因而也无需采用相应的摄像单元对所述显示设备的第一显示区域进行拍摄,即无需通过相应的摄像单元对所述时钟显示界面中所呈现的当前时刻进行图像获取。
也就是说,在本申请实施例中,除了可设置相应的摄像单元来对所述时钟显示界面中所呈现的所述当前时刻进行图像获取,以得到相应的第二图像,并由所述运算处理单元基于图像处理,从所述第二图像中采集出相应的当前时刻之外,还可不设置相应的摄像单元,直接通过所述运算处理单元获取所述时钟显示界面中所呈现当前时刻,因而不仅减少了拍摄次数,节省了摄像单元以及相应显示设备的内部存储空间,还提升了摄像头延时的测试效率,降低了成本,节省了资源。
在本申请一些实施例中,根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时,可包括:
计算所述当前时刻以及所述拍摄时刻之间的差值;
将所述差值作为所述待测摄像头的延时。
仍以上述例子为例,假设所述运算处理单元采集到的所述拍摄时刻为01:12:23、所述当前时刻为01:23:45,则可得到所述待测摄像头的延时为11分22秒。
需要说明的是,由于在本申请实施例中,可利用显示设备的读取功 能实现所述拍摄时刻以及所述当前时刻的读取,并可利用所述显示设备的计算功能实现所述待测摄像头的延时的确定,因而不会存在由于视觉误差以及反应误差所导致的准确性较低以及效率较低的问题;且,由于整个过程不需要依靠任何人力,因此还能降低摄像头延时的确定成本,节省人力资源。
另外,本申请实施例中,在计算得到相应的延时之后,还可将所述延时按照设定的要求进行显示,例如,可将所述延时通过所述运算处理单元的显示屏幕进行显示等,或者,可将所述延时通过所述显示设备的显示屏幕进行显示等。当然,需要说明的是,还可将所述延时通过相应的语音播放单元播放出来,其中,所述语音播放单元可独立设置在所述显示设备之外,且可与所述运算处理单元进行连接,连接的方式可包括有线通信方式和/或无线通信方式;在本申请另外一些实施例中,所述语音播放单元,还可被集成在所述显示设备中,对此不作赘述。
在本申请一些实施例中,在确定了所述待测摄像头的延时之后,还可基于所述延时,确定所述待测摄像头的延时随着时间的变化趋势,如图14所示,其为本申请实施例中所述的待测摄像头的延时与时间的关系示意图。在图14中,纵坐标Delay表示延时,横坐标Time表示时间,横坐标上的每个点代表一个小时。具体地,由图14可知,随着时间的不断增加,所述待测摄像头的延时逐渐变大,因而就能够为用户挑选摄像头提供相应的参考和依据。例如,用户在购买相机时,如果发现该相机的摄像头延时随着使用时间的增加发生了大幅度地增加,则该用户可确定该相机的性能并不佳;反之,如果发现该相机的摄像头延时随着使用时间的增加发生了较小幅度地增加,则该用户可确定该相机的性能较好,本申请实施例对此不作赘述。
本申请实施例一提供了一种测试摄像头延时的方法,可获取时钟显 示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;并可在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;之后,可根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。在本申请实施例中,无需人工确定进行拍摄的拍摄时刻以及待测摄像头输出所拍摄到的图像的当前时刻,也无需人工按压相应的秒表,更无需人工计算当前时刻与拍摄时刻之间的时间差,因而不会存在由于人的视觉误差以及反应误差所带来的准确性较低以及效率较低的问题;且,在本申请实施例中,由于无需使用较多的人力资源即可实现摄像头延时的精确确定,因而还能减少资源的浪费,降低延时确定的成本。解决了现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重的问题。
基于与前述方法实施例相同的构思,本申请一些实施例提供了一种测试摄像头延时的装置,如图15a所示,其为本申请实施例中所述的测试摄像头延时的装置的结构示意图。具体地,由图15a可知,本申请实施例中所述的测试摄像头延时的装置可包括:
获取模块151,可用于获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
采集模块152,可用于在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
确定模块153,可用于根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
在本申请一些实施例中,如图15b所示,所述采集模块152中可包括提取子单元1521,用于从所述时钟显示界面提取所述当前时刻,以及从所述第一图像中提取所述拍摄时刻;所述确定模块153中可包括运算子单元1531,用于根据所述当前时刻以及所述拍摄时刻,计算相应的延时。当然,所述确定模块153中还可包括显示子单元1532,用于将所述延时进行显示。需要说明的是,所述提取子单元1521、所述运算子单元1531以及所述显示子单元1532通常可集成在相应的控制逻辑中,本申请实施例对此不作赘述。
也就是说,在本申请实施例中,可包括用于获取时钟显示界面的第一图像的获取模块,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;用于在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻的采集模块;以及,用于根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时的确定模块。在本申请实施例中,无需人工确定进行拍摄的拍摄时刻以及待测摄像头输出所拍摄到的图像的当前时刻,也无需人工按压相应的秒表,更无需人工计算当前时刻与拍摄时刻之间的时间差,因而不会存在由于人的视觉误差以及反应误差所带来的准确性较低以及效率较低的问题;且,在本申请实施例中,由于无需使用较多的人力资源即可实现摄像头延时的精确确定,因而还能减少资源的浪费,降低延时确定的成本。解决了现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重的问题。
在本申请一些实施例中,所述采集模块152,可用于获取第二图像,并基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻以 及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取得到的图像。
其中,需要说明的是,所述采集模块152通常可基于所述采集模块152中的摄像单元1522(如图15b中所示)来执行对所述第二图像的采集操作。其中,所述摄像单元1522可为任一不同于所述待测摄像头的摄像头,其规格参数可与所述待测摄像头相同或者不同。
在本申请一些实施例中,所述采集模块152,还可用于获取第二图像,并基于图像处理,从所述第二图像中采集所述当前时刻,以及,从所述第一图像中采集所述拍摄时刻,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻进行图像获取得到的图像。
在本申请一些实施例中,所述采集模块152,还可用于从所述时钟内部的电子钟中采集所述当前时刻,以及,基于图像处理,从所述第一图像中采集所述拍摄时刻。
在本申请一些实施例中,所述确定模块153,可具体用于计算所述当前时刻以及所述拍摄时刻之间的差值,并将所述差值作为所述待测摄像头的延时。
在本申请一些实施例中,如图15c所示,所述测试摄像头延时的装置还可包括划分模块154:
所述划分模块154,可用于在获取时钟显示界面的第一图像之前,将显示设备的显示屏幕划分为多个显示区域,所述多个显示区域包括第一显示区域以及第二显示区域;
其中,所述第一显示区域用于展示所述时钟显示界面,所述第二显示区域用于展示所述第一图像。
本申请实施例提供了一种测试摄像头延时的装置,可包括用于获取时钟显示界面的第一图像的获取模块,其中,所述第一图像为利用待测 摄像头对所述时钟显示界面进行图像获取得到的图像;用于在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻的采集模块;以及,用于根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时的确定模块。在本申请实施例中,无需人工确定进行拍摄的拍摄时刻以及待测摄像头输出所拍摄到的图像的当前时刻,也无需人工按压相应的秒表,更无需人工计算当前时刻与拍摄时刻之间的时间差,因而不会存在由于人的视觉误差以及反应误差所带来的准确性较低以及效率较低的问题;且,在本申请实施例中,由于无需使用较多的人力资源即可实现摄像头延时的精确确定,因而还能减少资源的浪费,降低延时确定的成本。解决了现有的测试摄像头延时的方法所存在的准确性较低、效率较低以及资源浪费较严重的问题。
本申请一些实施例提供了一种计算设备,如图16所示,其为本申请实施例中所述的计算设备的结构示意图。该计算设备可以为桌面计算机、便携式计算机、智能手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)等。具体地,本申请实施例中所述的计算设备可以包括中央处理器(Center Processing Unit,CPU)1601、存储器1602、输入设备1603以及输出设备1604等,输入设备1603可以包括键盘、鼠标、触摸屏等,输出设备1604可以包括显示设备,如液晶显示器(Liquid Crystal Display,LCD)、阴极射线管(Cathode Ray Tube,CRT)等。
存储器1602可以包括只读存储器(ROM)和随机存取存储器(RAM),并向中央处理器1601提供存储器1602中存储的机器可读指令和数据。在本申请实施例中,存储器1602中存储的机器可读指令包括测试摄像头延时的方法的程序。
中央处理器1601通过调用存储器1602存储的机器可读指令,中央处理器1601可用于按照获得的机器可读指令执行:获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
在本申请实施例中,上述测试摄像头延时的方法的程序的具体功能可参照前述方法实施例中所述,本申请实施例在此不再赘述。
本申请一些实施例提供了一种计算机存储介质,用于储存为上述计算设备所用的计算机程序指令,其包含用于执行上述测试摄像头延时的方法的程序。
所述计算机存储介质可以是计算机能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器(例如软盘、硬盘、磁带、磁光盘(MO)等)、光学存储器(例如CD、DVD、BD、HVD等)、以及半导体存储器(例如ROM、EPROM、EEPROM、非易失性存储器(NANDFLASH)、固态硬盘(SSD))等。
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请实施例是根据本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实 现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的机器可读指令产生用于实现在本申请实施例提供的流程图中一个流程或多个流程和/或方框图中一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请的一些实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括本申请提供的实施例以及落入本申请实施例范围的所有变更和修改。
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请实施例也意图包含这些改动和变型在内。

Claims (18)

  1. 一种测试摄像头延时的方法,应用于计算设备,包括:
    获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
    在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
    根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
  2. 如权利要求1所述的测试摄像头延时的方法,所述采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取得到的图像;
    基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻。
  3. 如权利要求1所述的测试摄像头延时的方法,所述采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻进行图像获取得到的图像;
    基于图像处理,从所述第二图像中采集所述当前时刻,以及,从所述第一图像中采集所述拍摄时刻。
  4. 如权利要求1所述的测试摄像头延时的方法,所述采集所述时 钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    从所述时钟内部的电子钟中采集所述当前时刻,以及,基于图像处理,从所述第一图像中采集所述拍摄时刻。
  5. 如权利要求1所述的测试摄像头延时的方法,所述根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时,包括:
    计算所述当前时刻以及所述拍摄时刻之间的差值;
    将所述差值作为所述待测摄像头的延时。
  6. 如权利要求1~5任一项所述的测试摄像头延时的方法,在获取时钟显示界面的第一图像之前,所述方法还包括:
    将显示设备的显示屏幕划分为多个显示区域,所述多个显示区域包括第一显示区域以及第二显示区域;
    其中,所述第一显示区域用于展示所述时钟显示界面,所述第二显示区域用于展示所述第一图像。
  7. 一种测试摄像头延时的装置,包括:
    处理器以及与所述处理器相连接的存储器,所述存储器中存储有可由所述处理器执行的机器可读指令,所述处理器执行所述机器可读指令完成以下操作:
    获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
    在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
    根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
  8. 如权利要求7所述的测试摄像头延时的装置,所述处理器执行所 述机器可读指令完成以下操作:
    获取第二图像,并基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取得到的图像。
  9. 如权利要求7所述的测试摄像头延时的装置,所述处理器执行所述机器可读指令完成以下操作:
    获取第二图像,并基于图像处理,从所述第二图像中采集所述当前时刻,以及,从所述第一图像中采集所述拍摄时刻,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻进行图像获取得到的图像。
  10. 如权利要求7所述的测试摄像头延时的装置,所述处理器执行所述机器可读指令完成以下操作:
    从所述时钟内部的电子钟中采集所述当前时刻,以及,基于图像处理,从所述第一图像中采集所述拍摄时刻。
  11. 如权利要求7所述的测试摄像头延时的装置,所述处理器执行所述机器可读指令完成以下操作:
    计算所述当前时刻以及所述拍摄时刻之间的差值,并将所述差值作为所述待测摄像头的延时。
  12. 如权利要求7~11任一项所述的测试摄像头延时的装置,所述处理器执行所述机器可读指令完成以下操作:
    在获取时钟显示界面的第一图像之前,将显示设备的显示屏幕划分为多个显示区域,所述多个显示区域包括第一显示区域以及第二显示区域;
    其中,所述第一显示区域用于展示所述时钟显示界面,所述第二显 示区域用于展示所述第一图像。
  13. 一种非易失性计算机可读存储介质,所述存储介质中存储有机器可读指令,所述机器可读指令可以由处理器执行以完成以下操作:
    获取时钟显示界面的第一图像,其中,所述第一图像为利用待测摄像头对所述时钟显示界面进行图像获取得到的图像;
    在所述待测摄像头输出所述第一图像时,采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻;
    根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时。
  14. 如权利要求13所述的非易失性计算机可读存储介质,所述采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻以及所述第一图像中的时钟显示界面图案中所呈现的拍摄时刻进行图像获取得到的图像;
    基于图像处理,从所述第二图像中采集所述当前时刻以及所述拍摄时刻。
  15. 如权利要求13所述的非易失性计算机可读存储介质,所述采集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    获取第二图像,其中,所述第二图像为对所述时钟显示界面中所呈现的当前时刻进行图像获取得到的图像;
    基于图像处理,从所述第二图像中采集所述当前时刻,以及,从所述第一图像中采集所述拍摄时刻。
  16. 如权利要求13所述的非易失性计算机可读存储介质,所述采 集所述时钟显示界面中所呈现的当前时刻,以及从所述第一图像中采集时钟显示界面图案中所呈现的时刻并将该时刻确定为拍摄时刻,包括:
    从所述时钟内部的电子钟中采集所述当前时刻,以及,基于图像处理,从所述第一图像中采集所述拍摄时刻。
  17. 如权利要求13所述的非易失性计算机可读存储介质,所述根据所述当前时刻以及所述拍摄时刻,确定所述待测摄像头的延时,包括:
    计算所述当前时刻以及所述拍摄时刻之间的差值;
    将所述差值作为所述待测摄像头的延时。
  18. 如权利要求13~17任一项所述的非易失性计算机可读存储介质,所述机器可读指令可以由处理器执行以完成以下操作:
    在获取时钟显示界面的第一图像之前,将显示设备的显示屏幕划分为多个显示区域,所述多个显示区域包括第一显示区域以及第二显示区域;
    其中,所述第一显示区域用于展示所述时钟显示界面,所述第二显示区域用于展示所述第一图像。
PCT/CN2018/078390 2017-03-31 2018-03-08 一种测试摄像头延时的方法、装置及存储介质 WO2018177105A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710211543.1 2017-03-31
CN201710211543.1A CN107094249A (zh) 2017-03-31 2017-03-31 一种测试摄像头延时的方法及装置

Publications (1)

Publication Number Publication Date
WO2018177105A1 true WO2018177105A1 (zh) 2018-10-04

Family

ID=59648954

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078390 WO2018177105A1 (zh) 2017-03-31 2018-03-08 一种测试摄像头延时的方法、装置及存储介质

Country Status (2)

Country Link
CN (1) CN107094249A (zh)
WO (1) WO2018177105A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11032447B2 (en) * 2019-07-08 2021-06-08 Sling Media Pvt. Ltd. Method and system for automatically synchronizing audio-video inputs in a multi camera environment

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094249A (zh) * 2017-03-31 2017-08-25 腾讯科技(上海)有限公司 一种测试摄像头延时的方法及装置
CN111355947A (zh) * 2018-12-24 2020-06-30 清华大学 相机启动时间的测量方法
CN110049379B (zh) * 2019-05-09 2020-03-24 集美大学 一种视频延时检测方法及系统
CN110248088A (zh) * 2019-05-30 2019-09-17 努比亚技术有限公司 一种图像的拍摄显示方法、设备和计算机可读存储介质
CN110753167B (zh) * 2019-11-13 2022-04-08 广州文远知行科技有限公司 时间同步方法、装置、终端设备及存储介质
CN114071120A (zh) * 2020-08-03 2022-02-18 炬才微电子(深圳)有限公司 摄像头测试系统、方法、存储介质及电子设备
CN112153373A (zh) * 2020-09-23 2020-12-29 平安国际智慧城市科技股份有限公司 明厨亮灶设备的故障识别方法、装置及存储介质
CN114554181A (zh) * 2020-11-27 2022-05-27 中国联合网络通信集团有限公司 一种时延检测方法和系统
CN112770066A (zh) * 2020-12-29 2021-05-07 江南大学 一种用于多传感器融合图像拼接技术的时间同步方法
CN113329176A (zh) * 2021-05-25 2021-08-31 海信电子科技(深圳)有限公司 应用于智能终端的相机的图像处理方法及相关装置
CN113824902A (zh) * 2021-09-30 2021-12-21 杭州海康汽车软件有限公司 红外摄像机系统时延确定方法、装置、系统、设备及介质
CN113891070B (zh) * 2021-10-29 2023-12-15 北京环境特性研究所 一种网络摄像机延迟时间的测量方法和装置
CN115022204B (zh) * 2022-05-26 2023-12-05 阿里巴巴(中国)有限公司 Rtc的传输时延检测方法、装置以及设备
CN115767075A (zh) * 2022-10-31 2023-03-07 宜宾市天珑通讯有限公司 测试方法、电子设备以及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005315643A (ja) * 2004-04-27 2005-11-10 Sony Corp 時刻設定システム,時刻設定方法
CN105791986A (zh) * 2014-12-23 2016-07-20 中国移动通信集团公司 视频时延的检测方法及装置
CN106454335A (zh) * 2016-11-20 2017-02-22 中国航空工业集团公司洛阳电光设备研究所 一种光电产品红外成像延迟测试装置
CN106791815A (zh) * 2016-12-26 2017-05-31 百度在线网络技术(北京)有限公司 用于确定图像的采集时间的方法和装置
CN107094249A (zh) * 2017-03-31 2017-08-25 腾讯科技(上海)有限公司 一种测试摄像头延时的方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100551086C (zh) * 2005-12-08 2009-10-14 中兴通讯股份有限公司 一种测试图像时延的系统和方法
CN102169664B (zh) * 2011-01-28 2013-08-21 北京视博云科技有限公司 一种显示装置时延检测方法及装置
US9154733B2 (en) * 2013-03-15 2015-10-06 Alcatel Lucent External roundtrip latency measurement for a communication system
US9841839B2 (en) * 2013-10-07 2017-12-12 Tactual Labs Co. System for measuring latency on a touch device
CN103826117A (zh) * 2014-01-17 2014-05-28 浙江大学 一种测量手机视频通讯应用端到端延时的方法
CN106210708B (zh) * 2015-04-30 2019-02-01 杭州海康威视数字技术股份有限公司 一种图像延迟的检测方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005315643A (ja) * 2004-04-27 2005-11-10 Sony Corp 時刻設定システム,時刻設定方法
CN105791986A (zh) * 2014-12-23 2016-07-20 中国移动通信集团公司 视频时延的检测方法及装置
CN106454335A (zh) * 2016-11-20 2017-02-22 中国航空工业集团公司洛阳电光设备研究所 一种光电产品红外成像延迟测试装置
CN106791815A (zh) * 2016-12-26 2017-05-31 百度在线网络技术(北京)有限公司 用于确定图像的采集时间的方法和装置
CN107094249A (zh) * 2017-03-31 2017-08-25 腾讯科技(上海)有限公司 一种测试摄像头延时的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11032447B2 (en) * 2019-07-08 2021-06-08 Sling Media Pvt. Ltd. Method and system for automatically synchronizing audio-video inputs in a multi camera environment
US11606480B2 (en) 2019-07-08 2023-03-14 Dish Network Technologies India Private Limited Method and system for automatically synchronizing audio-video inputs in a multi-camera environment

Also Published As

Publication number Publication date
CN107094249A (zh) 2017-08-25

Similar Documents

Publication Publication Date Title
WO2018177105A1 (zh) 一种测试摄像头延时的方法、装置及存储介质
US10715761B2 (en) Method for providing video content and electronic device for supporting the same
KR102445699B1 (ko) 전자 장치 및 그의 동작 방법
CN107800959A (zh) 电子设备及其控制方法
EP3188473B1 (en) Photographing device and control method thereof
TWI620547B (zh) Information processing device, information processing method and information processing system
KR20160146281A (ko) 전자 장치 및 전자 장치에서 이미지 표시 방법
US10937287B2 (en) Sensor for capturing image and method for controlling the same
KR20170019823A (ko) 이미지 처리 방법 및 이를 지원하는 전자장치
US10477096B2 (en) Object or area based focus control in video
KR20170097860A (ko) 디스플레이를 이용하여 이미지를 촬영하는 전자 장치 및 이미지 촬영 방법
WO2019091411A1 (zh) 拍摄图像的方法、装置、终端和存储介质
CN107888904B (zh) 用于处理图像的方法和支持该方法的电子装置
US10511765B2 (en) Electronic apparatus and method of extracting still images
KR20170084118A (ko) 레이턴시를 최소화하기 위해 입력 센싱, 렌더링, 및 디스플레이할 시기를 정하는 시스템 및 방법
WO2016206347A1 (zh) 一种程序图标排序方法和装置
WO2021046793A1 (zh) 图像采集方法、装置及存储介质
KR20170098102A (ko) 복수의 영상들을 제공하기 위한 방법, 저장 매체 및 전자 장치
KR20170014556A (ko) 이동체를 촬영하는 방법 및 촬영 장치.
US10009545B2 (en) Image processing apparatus and method of operating the same
KR102407624B1 (ko) 전자 장치의 영상 처리 방법 및 그 전자 장치
WO2018219304A1 (zh) 照片处理方法、装置、计算机可读存储介质及电子设备
US10257586B1 (en) System and method for timing events utilizing video playback on a mobile device
KR20180083593A (ko) 이미지 처리 방법 및 이를 구현하는 전자 장치
JP6756103B2 (ja) 電子機器、表示システム、表示装置、撮像装置、表示制御方法及びプログラム

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

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

Country of ref document: EP

Kind code of ref document: A1