WO2016000572A1 - 一种图像处理方法和摄像机 - Google Patents
一种图像处理方法和摄像机 Download PDFInfo
- Publication number
- WO2016000572A1 WO2016000572A1 PCT/CN2015/082535 CN2015082535W WO2016000572A1 WO 2016000572 A1 WO2016000572 A1 WO 2016000572A1 CN 2015082535 W CN2015082535 W CN 2015082535W WO 2016000572 A1 WO2016000572 A1 WO 2016000572A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- rule
- coordinates
- image
- reference point
- calculating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/445—Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
- H04N5/44504—Circuit details of the additional information generator, e.g. details of the character or graphics signal generator, overlay mixing circuits
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/60—Rotation of whole images or parts thereof
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING SYSTEMS, e.g. PERSONAL CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B13/00—Burglar, theft or intruder alarms
- G08B13/18—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
- G08B13/189—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
- G08B13/194—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
- G08B13/196—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
- G08B13/19617—Surveillance camera constructional details
- G08B13/1963—Arrangements allowing camera rotation to change view, e.g. pivoting camera, pan-tilt and zoom [PTZ]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/69—Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Definitions
- the present invention relates to the field of video surveillance, and in particular, to an image processing method and a video camera.
- Intelligent analysis is generally applied to fixed digital cameras, that is, the rules of relevant intelligent analysis are set in fixed digital cameras, and then the intelligent analysis function is normally used.
- PTZ Pan Tilt Zoom, pan/tilt (up and down, left and right) movement and lens zoom, zoom control
- Intelligent analysis capabilities but this is obviously a waste of resources. If such a digital camera is not fixed, then when such a camera is rotated or zoomed, the previously set intelligent analysis rule will be invalid and will not work.
- Embodiments of the present invention provide a method and a camera for image processing, which are capable of maintaining a relative position of an intelligent analysis rule and a corresponding reference object when a camera having a PTZ function is rotated and/or zoomed.
- an image processing method comprising:
- the image operation instruction including performing at least one of a rotation operation and a magnification operation
- the rule is displayed on the image after the operation such that the relative position of the rule to the reference remains unchanged before and after the operation.
- the displaying the rule on the processed image such that the relative position of the rule and the reference object remains unchanged before and after the operation includes:
- the rule is displayed on the image after the operation according to the coordinates of the rule after the operation, so that the relative position of the rule and the reference remains unchanged before and after the operation.
- the calculating, after the operation, the coordinates of the rule include:
- the operation parameter including at least one of a rotation angle and a variable magnification
- the image operation instruction is a rotation operation
- the calculating operation parameters include: calculating a rotation angle
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated rotation angle.
- the determining, according to the calculated rotation angle, the coordinates of the rule after the operation comprises:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the image operation instruction is performing a zoom operation
- the calculating operation parameters include: calculating a variable multiple;
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated variable multiple.
- the image operation instruction is performing a rotation operation and a zoom operation
- the calculating operation parameters include: calculating a rotation angle and a variable multiple;
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated rotation angle and the variable multiple.
- the determining, according to the calculated rotation angle and the variable multiple, the coordinates of the rule after the operation comprises:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the method further includes:
- the method further includes:
- the effective condition includes an effective time.
- a camera comprising:
- a central processing unit configured to receive an image operation instruction, where the image operation instruction includes at least one of performing a rotation operation and a zoom operation;
- the central processing unit is further configured to operate an image according to the image operation instruction, wherein a rule of a line or a geometric area is superimposed on the image and has a reference object for the rule;
- An encoding processor for displaying the rule on an image after operation of the central processor, such that The relative position of the rule to the reference remains unchanged before and after the operation.
- the central processing unit is further configured to: calculate coordinates of the rule in a pre-established coordinate system after the operation is performed;
- the encoding processor is specifically configured to display the rule on the image after the operation according to the coordinates of the rule after the operation, so that the relative position of the rule and the reference object remains unchanged before and after the operation.
- the central processing unit is specifically configured to:
- an operation parameter including at least one of a rotation angle and a variable magnification
- the camera further includes an electromechanical board.
- the electromechanical board is configured to: calculate a rotation angle, and notify the central processing unit of the calculated rotation angle;
- the central processor is specifically configured to: calculate coordinates of the rule in a pre-established coordinate system after the operation according to the rotation angle notified by the electromechanical board.
- the central processing unit is specifically configured to:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the encoding processor is further configured to:
- the central processor is specifically configured to: calculate coordinates of the rule after the operation according to the variable multiple calculated by the encoding processor.
- the camera further includes an electromechanical board
- the electromechanical board is configured to: calculate a rotation angle when the image operation instruction is a rotation operation plus a zoom operation;
- the encoding processor is further configured to: calculate a variable multiple when the image operation instruction is a rotation operation plus a zoom operation;
- the central processor is specifically configured to calculate coordinates of the rule after the operation according to the rotation angle calculated by the electromechanical board and the variable multiple calculated by the encoding processor.
- the central processing unit is specifically configured to:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the central processing unit is further configured to:
- the image processing method and the camera when receiving an image operation instruction to perform corresponding operations on the image, adjust the rules on the image to make the rule displayed on the image after operation relative to the reference.
- the position of the object remains unchanged before and after the operation
- FIG. 1 is a flowchart of an image processing method according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of an effect of applying an image processing method according to an embodiment of the present invention.
- Figure 3 is a schematic diagram of the effect when the effective condition is set
- FIG. 4 is a control logic flow chart of an image processing method according to an embodiment of the present invention.
- Figure 5 is an optical imaging diagram
- FIG. 6 is a structural block diagram of a camera according to an embodiment of the present invention.
- 6B is a structural block diagram of another camera according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of a hardware logical architecture of a camera according to an embodiment of the present invention.
- FIG. 1 is a flowchart of an image processing method according to an embodiment of the present invention.
- an embodiment of the present invention provides an image processing method, which is described based on a camera, and the method includes:
- Step 11 Receive an image operation instruction, where the image operation instruction includes performing at least one of a rotation operation and a zoom operation.
- the image manipulation instructions are for instructing operation of an image in a camera lens.
- the image operation instruction may be a rotation operation instruction for performing a rotation operation on the image and a magnification operation instruction for performing a magnification operation on the image.
- the rotating operation of the image refers to rotating the camera lens to drive the image to rotate.
- the image operation instruction may be issued by the user according to actual needs.
- Step 12 The image is operated according to the image operation instruction, wherein a rule of a line or a geometric area is superimposed on the image and has a reference object for the rule.
- the camera When the user instructs the camera to perform the turning operation, the camera performs a corresponding turning operation on the image after receiving the rotating operation command.
- the rotation operation may be, for example, a leftward rotation, a rightward rotation, a downward rotation, or an upward rotation.
- the leftward rotation when the user instructs the camera to rotate to the left, the camera controls the lens to rotate to the left accordingly, and the image displayed in the lens also changes accordingly.
- the image displayed in the camera lens also changes, that is, the image undergoes corresponding zoom adjustment.
- an intelligent analysis rule (hereinafter referred to as "rules") is superimposed on an image displayed in a camera lens, and the intelligent analysis rule may be a line rule or a geometric area rule.
- the "reference object” in the embodiment of the present invention is relative to the rule, and refers to a person or object on the image captured by the camera lens, that is, a person who follows a certain image on the captured image. Or as a reference.
- the reference object is associated with an intelligent analysis rule superimposed on the image for the reference object. At the same time, different intelligent analysis rules can be set separately for different reference objects on the image.
- Step 13 Display the rule on the image after the operation such that the relative position of the rule and the reference object remains unchanged before and after the operation.
- the reference object and the rule related to the reference object still exist in the image after the operation after the operation, the reference object and the object are displayed in the image after the operation.
- the reference-related rules are such that the relative position of the rule to the reference remains unchanged before and after the operation.
- FIG. 2 is a schematic diagram of the effect of the image processing method provided by the embodiment of the present invention.
- the rule is taken as an example.
- the reference objects in FIG. 2 are 101 and 102, and the line rule for the reference objects 101 and 102 is 103.
- the relative position of the line rule 103 with respect to the reference objects 101 and 102 can be kept unchanged.
- Fig. 2-(1) shows an original image including a line rule before the start of the turning operation
- the pre-rotation line rule 103 is disposed between the reference objects 101 and 102.
- Fig. 2-(2) shows an image after the original image is rotated to the left by a certain angle (assuming 30 degrees) without using the technical solution of the present invention.
- the line rule 103 is not located between the reference objects 101 and 102, i.e., the relative positions of the line rule 103 and the reference objects 101 and 102 have changed.
- Fig. 2-(2) shows an original image including a line rule before the start of the turning operation
- the pre-rotation line rule 103 is disposed between the reference objects 101 and 102.
- Fig. 2-(2) shows an image after the original image is rotated to the left by a certain angle (assuming 30 degrees) without using the technical solution of the present invention.
- the line rule 103 is not located between the reference objects 101 and 102, i.e., the relative positions of the line rule 103 and the reference objects 101
- FIG. 2-(3) shows an image after the original image is rotated to the left by a certain angle (assuming 30 degrees) by the technical solution of the present invention.
- the line rule 103 is still located between the reference objects 101 and 102, that is, the relative position of the line rule 103 and the reference objects 101 and 102 is maintained before and after the operation. constant.
- the rule corresponding to the reference object may be adjusted first.
- the adjusting may be, for example, clearing a rule corresponding to the reference object before the operation, and calculating a rule of the reference object after the operation, and displaying the calculated rule of the reference object on the operated image, so that the calculated The relative position of the rule of the reference object and the reference object remains unchanged before and after the operation; or The rule corresponding to the reference object before the operation is not cleared, but the rule corresponding to the reference object before the operation is moved to an appropriate position on the image after the operation, so that the relative position of the reference object before and after the operation is before and after the operation. constant.
- the image processing method provided by the embodiment of the invention maintains the rules on the image by adjusting the rules on the image when the image operation instruction receives the corresponding operation on the image, so that the position of the rule displayed on the image after the operation remains unchanged before and after the operation. .
- the step of displaying the rule on the processed image in step 13 such that the relative position of the rule and the reference object remains unchanged before and after the operation may include:
- the rule is displayed on the image after the operation according to the coordinates of the rule after the operation, so that the relative position of the rule and the reference remains unchanged before and after the operation.
- the coordinate system may be a two-dimensional coordinate system, and the two dimensions may be a horizontal direction and a vertical direction, respectively.
- the sensor center ie, the center of the screen
- the origin in the two-dimensional coordinate system may be used as the origin in the two-dimensional coordinate system.
- only some representative points on the rule may be selected instead of the rule.
- the coordinates of the two end points of the line may be selected instead of selecting all points on the entire line. coordinate of.
- geometric region rules such as rectangular rules
- only the coordinates of the four endpoints of the rectangle can be selected
- for example, for a triangle rule only the coordinates of the three endpoints of the triangle can be selected.
- Other geometric region rule coordinate points are selected in a manner similar to that described above, and are not described herein again.
- the rules before and after the operation and the coordinates of each point on the image can be uniquely determined, so that the rule can be displayed on the image after the operation, so that the relative position of the rule and its related reference object is operated. Stays the same before and after.
- the calculating the coordinates of the rule after the operation may include:
- the operation parameter including at least one of a rotation angle and a variable magnification
- the image operation instructions are different, and the corresponding operation parameters are also different, that is, the operation parameters are correspondingly changed according to the image operation instructions.
- the image operation instruction may include the following three types: a rotation operation instruction, a zoom operation instruction, and a rotation operation plus a magnification operation instruction. The following three cases are described separately.
- the image operation instruction is a rotation operation.
- the calculating the operation parameter includes: calculating a rotation angle
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated rotation angle.
- the image operation instruction is to perform a zoom operation.
- the calculating operation parameters include: calculating a variable multiple;
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated variable multiple.
- the image operation instruction is a rotation operation and a zoom operation.
- the calculating operation parameters include: calculating a rotation angle and a variable multiple;
- calculating, according to the operation parameter, the coordinates of the rule after the operation comprises: calculating coordinates of the rule after the operation according to the calculated rotation angle and the variable multiple.
- the specific operation parameters are calculated by the above manner, and then the coordinates of the rule in the coordinate system can be calculated according to the specific operation parameters, and finally the relative position of the rule and the reference object is kept unchanged before and after the operation.
- an effective condition may be set for the image displayed after the operation after each operation, and the image is displayed again when the effective condition is reached.
- the image after the operation may be referred to as a first image
- the image after the operation of the first image may be referred to as a second image
- the operation of the second image The image is called the third image, and so on.
- the method for image processing provided by the embodiment of the present invention may include, in addition to steps 11 to 13, a method:
- an effective condition may also be set, and when the effective condition is satisfied, the second image or the third image may be redisplayed.
- an image corresponding to the subsequent operation is displayed. Specifically, if an effective condition is set for the first image, when the first image does not reach the effective condition, and the first image is operated according to the image operation instruction, the image corresponding to the current operation is directly displayed. When the operation is subsequently performed according to the image operation instruction, once the effective condition of the first image is satisfied, the first image is directly returned.
- FIG. 3-(1) shows the original image and the rule of the line superimposed on the image, and the effective condition 1 for the image to be displayed again is set in FIG. 3-(1).
- Fig. 3-(2) shows the image after the rotation of the image of Fig. 3-(1), and the effective condition 2 for the image to be displayed again is also set in Fig. 3-(2).
- Figure 3-(3) shows that when the effective condition 1 set in Figure 3-(1) is satisfied, the image of Figure 3-(1) is displayed again, and the relative position of the rule superimposed on the image and the reference object is not maintained. Change (ie, Figure 3-(3) is identical to Figure 3-(1)).
- Figure 3-(4) shows that when the effective condition 2 set in Figure 3-(2) is satisfied, the image of Figure 3-(2) is displayed again, and the relative position of the rule superimposed on the image and the reference object is not maintained. Change (ie, Figure 3-(4) is the same as Figure 3-(2)).
- the effective conditions include, but are not limited to, an effective time.
- the effective time may be a duration from the current time, a display current image exceeding a preset duration, and the like.
- an effective time may be set for each image after operation (for example, FIG. 3-(1), FIG. 3-(2)), and each image is correspondingly displayed when the effective time is satisfied, and the image is superimposed on the image.
- the relative position of the upper rule and the reference object remains unchanged (Fig. 3-(3), Fig. 3-(4)). In this way, different rules can be used under different conditions.
- Embodiments of the present invention provide a method for image processing based on a camera having a PTZ function.
- the camera may include a lens, a sensor, an encoding processor, a central processing unit, an electromechanical board, and a control motor.
- the control motor includes at least one of left, right, up, and down control motors.
- the electromechanical board controls (or is directly controlled by the central processing unit) to control the motor, the relevant coordinates are recorded and calculated by the electromechanical board (or the central processing unit), and are fed back to the processor in time; and the encoding processor can obtain the variable magnification of the control lens. , can be timely feedback to the central processor.
- the encoding processor shown in the flowchart of the embodiment includes a lens, a sensor, and an encoding processor, that is, the zoom can be uniformly processed.
- Embodiments of the present invention provide a flowchart of a method for image processing. Referring to Figure 4, the method includes:
- Step 21 The user sets a line or a geometric rule to a central processing unit (CPU) through a client of the management server or a client of the digital camera.
- CPU central processing unit
- Step 22 The CPU stores the corresponding rule on the memory and sets it into the encoding processor.
- Step 23 The encoding processor superimposes the rule on the image and returns a setting success message to the processor.
- the rule superimposed on the image is relative to the reference object.
- the image has a reference associated with the rule.
- Step 24 The user issues an image operation instruction for rotating and adding an image by using a client of the management server or a client of the digital camera.
- an image operation instruction that rotates and multiplies is taken as an example for description.
- it may also be only a rotating operation or just a zooming operation.
- the coordinate system may be established in advance, that is, the sensor center is used as the origin in the two-dimensional coordinate system to establish two-dimensional coordinates, and the variable magnification and the initial angle of the camera are simultaneously recorded and determined.
- the initial angle and the variable are notified to the CPU storage process by the electromechanical board and the encoding processor, respectively.
- Step 25 After receiving the corresponding command, the processor separately notifies the electromechanical board and the encoding processor.
- Step 26 The electromechanical board controls the motor to rotate at a certain scale, and calculates a new coordinate of the rule on the image while controlling the motor to rotate at a certain scale, and feeds back to the processor in real time.
- the coordinates of the rules are relative to the pre-established two-dimensional coordinates.
- the manner in which the coordinate system is established includes, but is not limited to, the spherical center point in the spherical shape formed by the rotation of the camera as the origin in the two-dimensional coordinate system.
- Step 27 The encoding processor performs a zooming process, and simultaneously calculates a variable multiple, and feeds back to the processor in real time.
- Step 28 After acquiring the coordinates and the variable of the rule, the processor calculates the final coordinate of the rule after the operation is performed according to the coordinate and the variable, and notifies the setting to the encoding processor.
- Step 29 The encoding processor displays the rule on the processed image such that the relative position of the rule and the reference object remains unchanged before and after the operation.
- the coordinates of the dome camera are the concept of relative coordinates, and specifically, the spherical center point in the shape of the ball formed by the rotation of the camera is taken as the origin, and the ball machine is used.
- the coordinates of the reference point refer to the two-dimensional coordinates established with the center of the screen as the origin.
- the detailed algorithm for keeping the rule (including lines, regions) and the relative position of the reference object for the rule can be considered in two parts, that is, the case of the turning operation and the case of the zooming operation.
- some specific reference points on the rule may be selected instead of the entire rule, and the coordinates of the rule may be determined by determining the coordinates of the reference point.
- the algorithm in the case of the rotational operation includes a detailed algorithm for moving the reference point to the center of the screen (sensor center) and a detailed algorithm for the coordinates after the reference point is moved after rotating the dome.
- the movement can be divided into vertical and horizontal parts. We can process the vertical part first.
- the horizontal part processing method is similar to the vertical part processing method. When the angle that needs to be rotated is obtained, the movement is notified to the corresponding angle.
- h k1*W, where W represents the physical width of the sensor (sensor_width), and k1 represents the ratio of the distance of the reference point from the center of the screen in the horizontal direction to the width of the picture.
- H is the physical height of the sensor
- k2 is the ratio of the distance of the reference point from the center of the screen in the vertical direction to the height of the picture.
- the detailed algorithm for the position after the reference point is moved after rotating the ball machine includes: calculating the coordinates of the ball machine when the reference point is rotated to the center of the sensor; and calculating the reference point according to the coordinates of the ball machine when the reference point is rotated to the center of the sensor The coordinates on the sensor after rotation.
- p1 in the above is a horizontal angle coordinate
- q1 is a vertical angle coordinate
- a focal length corresponding to the coordinate (p1, q1) is f1
- a focal length corresponding to (p2, q2) is f2.
- the reference point (x1, y1) can be first considered to be transferred to the sensor center.
- the coordinate of the sensor center is (x0, y0), and when the reference point is turned to the sensor center, When the horizontal angle of the dome is (p0, q0), the detailed algorithm from the above reference point to the center of the sensor can be:
- the (x1-x0)/ picture horizontal total pixel is the above mentioned k1.
- the focal length f1 corresponding to the coordinates (p1, q1) can be determined according to the magnification, the coordinates (p0, q0) of the dome can be calculated.
- the focal length f2 corresponding to the coordinates (p2, q2) can be determined according to the variable magnification.
- (x2, y2) can be calculated, that is, the coordinate position of the reference point on the sensor after being rotated.
- the coordinates of the reference point after the operation can be directly determined by the above algorithm.
- the image manipulation instruction is only a zoom operation, it is only necessary to multiply the corresponding multiple difference when calculating the area or the vertex of the line.
- the rule is a square area: the calculated (x2, y2) is (50, 50), the original multiple is 1 time, the long width is 10, and the original four vertex coordinates are (45, 45), ( 45, 55), (55, 45), (55, 55), now the multiple is 2 times, then the coordinates of the four vertices are now (40, 40), (40, 60), (60, 40) , (60, 60). That is, the length and width are twice the original.
- the coordinates of the reference point after the operation can be determined, and then the coordinates of the rule are determined and displayed on the image after the operation, so that the relative position of the rule and the reference object is maintained before and after the operation. constant.
- FIG. 6A is a structural block diagram of a camera according to an embodiment of the present invention.
- the camera includes a central processing unit 61 and an encoding processor 62. among them:
- the central processing unit 61 is configured to receive an image operation instruction, where the image operation instruction includes at least one of performing a rotation operation and a zoom operation;
- the central processing unit 61 is further configured to operate an image according to the image operation instruction, wherein a rule of a line or a geometric area is superimposed on the image and has a reference object for the rule;
- the encoding processor 62 is configured to display the rule on the image after the operation of the central processor 61 such that the relative position of the rule and the reference object remains unchanged before and after the operation.
- the central processing unit 61 is further configured to: calculate coordinates of the rule in a pre-established coordinate system after the operation;
- the encoding processor 62 is specifically configured to display the rule on the processed image according to the coordinates of the rule after the operation, so that the relative position of the rule and the reference object remains unchanged before and after the operation. .
- the central processing unit 61 may be specifically configured to:
- an operation parameter including at least one of a rotation angle and a variable magnification
- the camera further includes an electromechanical board 63.
- the electromechanical board 63 is configured to: calculate a rotation angle, and notify the central processing unit of the calculated rotation angle;
- the central processing unit 61 is specifically configured to calculate coordinates of the rule in a pre-established coordinate system after the operation according to the rotation angle notified by the electromechanical board 63.
- the central processing unit 61 may be specifically configured to:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the encoding processor 62 is further configured to:
- the central processing unit 61 may be specifically configured to: calculate coordinates of the rule after the operation according to the variable multiple calculated by the encoding processor 62.
- the camera further includes an electromechanical board 63.
- the electromechanical board 63 is configured to: calculate a rotation angle
- the encoding processor 62 is further configured to: calculate a variable multiple when the image operation instruction is a rotation operation plus a zoom operation;
- the central processing unit 61 is specifically configured to calculate coordinates of the rule after the operation according to the rotation angle calculated by the electromechanical board 63 and the variable multiple calculated by the encoding processor 62.
- the central processing unit 61 may be specifically configured to:
- the coordinates of the rule after the operation is determined according to the coordinates of the reference point after the operation.
- the central processing unit 61 is further configured to:
- FIG. 6A and FIG. 6B only some key components of the present invention, which are mainly related to the present invention, are shown.
- the display is for better highlighting the focus of the present invention, and does not represent that only the camera has a map. Those components shown in .
- the camera 70 may include a central processing unit 71, an encoding processor 72, an electromechanical board 73, and a motor 74.
- the central processing unit 71 receives the image operation instructions and notifies the encoding processor 72 and/or the electromechanical board 73 to perform corresponding operations in accordance with the image operation instructions. For example, when the image operation command is to perform the rotation plus magnification operation, the central processing unit 71 notifies the electromechanical board 73 of the rotation instruction, and notifies the coding processor 72 of the variable magnification instruction.
- the electromechanical board 73 controls the motor 74 to rotate; the motor 74 may include at least one of the left, right, upper, and lower control motors for controlling the rotation of the camera lens to achieve the lens image. Transfer.
- the encoding processor 72 controls the lens to perform a magnification process.
- the electromechanical board 73 controls (or is directly controlled by the central processing unit 71) to control the motor 74, and the relevant coordinates are recorded and calculated by the electromechanical board 73 (or the central processing unit 71), and are fed back to the central processing in time.
- the encoding processor 72 can acquire the variable of the control lens and can feed back to the central processing unit 71 in time.
- the central processor 71 is configured to calculate the coordinates of the post-operation rule according to the coordinates fed back by the electromechanical board 73 and the variable multiple fed back by the encoding processor 72, and notify the encoding processor 72 to display the rule after the operation on the lens.
- the camera in the embodiment of the present invention may further include other components, such as a lens and a sensor. Since these other components play their normal role, they will not be described here.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (20)
- 一种图像处理方法,其特征在于,所述方法包括:接收图像操作指令,所述图像操作指令包括进行转动操作和变倍操作中的至少一者;根据所述图像操作指令,对图像进行操作,其中,所述图像上叠加有为线条或几何区域的规则且具有针对所述规则的参照物;在操作后的图像上显示所述规则,使得所述规则与所述参照物的相对位置在操作前后保持不变。
- 根据权利要求1所述的方法,其特征在于,所述在操作后的图像上显示所述规则,使得所述规则与所述参照物的相对位置在操作前后保持不变包括:建立坐标系,计算在经过操作后所述规则在所述坐标系中的坐标;根据在经过操作后所述规则的坐标,在操作后的图像上显示所述规则,使得所述规则与所述参照物的相对位置在操作前后保持不变。
- 根据权利要求2所述的方法,其特征在于,所述计算在经过操作后所述规则的坐标包括:计算操作参数,所述操作参数包括转动角度和变倍数中的至少一个;根据所述操作参数,计算经过操作后所述规则的坐标。
- 根据权利要求3所述的方法,其特征在于,所述图像操作指令为进行转动操作,所述计算操作参数包括:计算转动角度;所述根据所述操作参数,计算经过操作后所述规则的坐标包括:根据计算的所述转动角度,计算经过操作后所述规则的坐标。
- 根据权利要求4所述的方法,其特征在于,所述根据计算的所述转动角度,计算经过操作后所述规则的坐标包括:在所述规则中选取参考点,并确定所述参考点在操作前的坐标;根据计算的所述转动角度以及所述参考点在操作前的坐标,计算所述参考点转到画面中心时,球机在当前画面下的坐标;根据所述参考点转到画面中心时所述球机在当前画面下的坐标,计算经过 操作后所述参考点的坐标;根据经过操作后所述参考点的坐标,确定经过操作后所述规则的坐标。
- 根据权利要求3所述的方法,其特征在于,所述图像操作指令为进行变倍操作,所述计算操作参数包括:计算变倍数;所述根据所述操作参数,计算经过操作后所述规则的坐标包括:根据计算的所述变倍数,计算经过操作后所述规则的坐标。
- 根据权利要求3所述的方法,其特征在于,所述图像操作指令为进行转动操作和变倍操作,所述计算操作参数包括:计算转动角度和变倍数;所述根据所述操作参数,计算经过操作后所述规则的坐标包括:根据计算的所述转动角度和所述变倍数,计算经过操作后所述规则的坐标。
- 根据权利要求7所述的方法,其特征在于,所述根据计算的所述转动角度和所述变倍数,计算经过操作后所述规则的坐标包括:在所述规则中选取参考点,并确定所述参考点在操作前的坐标;根据计算的所述转动角度和所述变倍数以及所述参考点在操作前的坐标,计算所述参考点转到画面中心时,球机在当前画面下的坐标;根据所述参考点转到画面中心时所述球机在当前画面下的坐标,计算经过操作后所述参考点的坐标;根据经过操作后所述参考点的坐标,确定经过操作后所述规则的坐标。
- 根据权利要求1所述的方法,其特征在于,所述操作后的图像为第一图像,所述方法还包括:为所述第一图像设置生效条件;在达到所述生效条件时,重新显示所述第一图像。
- 根据权利要求9所述的方法,其特征在于,所述方法还包括:在未达到所述生效条件,且后续又对图像进行操作时,显示与后续操作对应的图像。
- 根据权利要求9或10所述的方法,其特征在于,所述生效条件包括生效时间。
- 一种摄像机,其特征在于,所述摄像机包括:中央处理器,用于接收图像操作指令,所述图像操作指令包括进行转动操作和变倍操作中的至少一者;所述中央处理器,还用于根据所述图像操作指令,对图像进行操作,其中,所述图像上叠加有为线条或几何区域的规则且具有针对所述规则的参照物;编码处理器,用于在所述中央处理器操作后的图像上显示所述规则,使得所述规则与所述参照物的相对位置在操作前后保持不变。
- 根据权利要求12所述的摄像机,其特征在于,所述中央处理器还用于:计算在经过操作后所述规则在预先建立的坐标系中的坐标;所述编码处理器具体用于:根据在经过操作后所述规则的坐标,在操作后的图像上显示所述规则,使得所述规则与所述参照物的相对位置在操作前后保持不变。
- 根据权利要求13所述的摄像机,其特征在于,所述中央处理器具体用于:获取操作参数,所述操作参数包括转动角度和变倍数中的至少一个;根据所述操作参数,计算经过操作后所述规则在预先建立的坐标系中的坐标。
- 根据权利要求14所述的摄像机,其特征在于,所述摄像机还包括机电板,在所述图像操作指令为进行转动操作时,所述机电板用于:计算转动角度,并将计算的所述转动角度通知给所述中央处理器;所述中央处理器具体用于:根据所述机电板通知的所述转动角度,计算经过操作后所述规则在预先建立的坐标系中的坐标。
- 根据权利要求15所述的摄像机,其特征在于,所述中央处理器具体用于:确定在所述规则中预先选取的参考点在操作前的坐标;根据计算的所述转动角度以及所述参考点在操作前的坐标,计算所述参考点转到画面中心时,球机在当前画面下的坐标;根据所述参考点转到画面中心时所述球机在当前画面下的坐标,计算经过操作后所述参考点的坐标;根据经过操作后所述参考点的坐标,确定经过操作后所述规则的坐标。
- 根据权利要求14所述的摄像机,其特征在于,所述编码处理器还用于:计算变倍数;所述中央处理器具体用于:根据所述编码处理器计算的所述变倍数,计算经过操作后所述规则的坐标。
- 根据权利要求14所述的摄像机,其特征在于,所述摄像机还包括机电板,在所述图像操作指令为进行转动操作加变倍操作时,所述机电板用于:计算转动角度;在所述图像操作指令为进行转动操作加变倍操作时,所述编码处理器还用于:计算变倍数;所述中央处理器具体用于:根据所述机电板计算的所述转动角度和所述编码处理器计算的所述变倍数,计算经过操作后所述规则的坐标。
- 根据权利要求18所述的摄像机,其特征在于,所述中央处理器具体用于:在所述规则中选取参考点,并确定所述参考点在操作前的坐标;根据计算的所述转动角度和所述变倍数以及所述参考点在操作前的坐标,计算所述参考点转到画面中心时,球机在当前画面下的坐标;根据所述参考点转到画面中心时所述球机在当前画面下的坐标,计算经过操作后所述参考点的坐标;根据经过操作后所述参考点的坐标,确定经过操作后所述规则的坐标。
- 根据权利要求12所述的摄像机,其特征在于,所述中央处理器还用于:为操作后的图像设置生效条件;在达到所述生效条件时,重新显示所述第一图像。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP15815512.7A EP3148180B1 (en) | 2014-06-30 | 2015-06-26 | Image processing method and video camera |
| KR1020177001139A KR101932670B1 (ko) | 2014-06-30 | 2015-06-26 | 이미지 처리 방법 및 카메라 |
| JP2017519769A JP6608920B2 (ja) | 2014-06-30 | 2015-06-26 | 画像処理方法およびカメラ |
| US15/392,636 US10425608B2 (en) | 2014-06-30 | 2016-12-28 | Image processing method and camera |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410305120.2A CN105450918B (zh) | 2014-06-30 | 2014-06-30 | 一种图像处理方法和摄像机 |
| CN201410305120.2 | 2014-06-30 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/392,636 Continuation US10425608B2 (en) | 2014-06-30 | 2016-12-28 | Image processing method and camera |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016000572A1 true WO2016000572A1 (zh) | 2016-01-07 |
Family
ID=55018445
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/082535 Ceased WO2016000572A1 (zh) | 2014-06-30 | 2015-06-26 | 一种图像处理方法和摄像机 |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US10425608B2 (zh) |
| EP (1) | EP3148180B1 (zh) |
| JP (1) | JP6608920B2 (zh) |
| KR (1) | KR101932670B1 (zh) |
| CN (1) | CN105450918B (zh) |
| WO (1) | WO2016000572A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110719403A (zh) * | 2019-09-27 | 2020-01-21 | 北京小米移动软件有限公司 | 图像处理方法、装置及存储介质 |
| CN111246097B (zh) * | 2020-01-19 | 2021-06-04 | 成都依能科技股份有限公司 | 基于图形感知的ptz扫描路径生成方法 |
| CN113313634B (zh) * | 2020-02-26 | 2023-06-09 | 杭州海康威视数字技术股份有限公司 | 监控图像处理方法、装置、监控系统和存储介质 |
| CN116614619A (zh) * | 2023-05-18 | 2023-08-18 | 浙江华感科技有限公司 | 视频检测方法、装置、电子设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070115355A1 (en) * | 2005-11-18 | 2007-05-24 | Mccormack Kenneth | Methods and apparatus for operating a pan tilt zoom camera |
| CN101266710A (zh) * | 2007-03-14 | 2008-09-17 | 中国科学院自动化研究所 | 一种基于规则的全天候智能视频分析监控方法 |
| WO2011031128A1 (en) * | 2009-09-08 | 2011-03-17 | Mimos Berhad | Control mechanism for automated surveillance system |
| CN103209290A (zh) * | 2012-01-12 | 2013-07-17 | 鸿富锦精密工业(深圳)有限公司 | Ptz摄像装置控制系统及方法 |
| CN103544806A (zh) * | 2013-10-31 | 2014-01-29 | 江苏物联网研究发展中心 | 基于视频绊线规则的重要物资运输车辆监控预警系统 |
Family Cites Families (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5363297A (en) * | 1992-06-05 | 1994-11-08 | Larson Noble G | Automated camera-based tracking system for sports contests |
| US5729471A (en) * | 1995-03-31 | 1998-03-17 | The Regents Of The University Of California | Machine dynamic selection of one video camera/image of a scene from multiple video cameras/images of the scene in accordance with a particular perspective on the scene, an object in the scene, or an event in the scene |
| JPH0981758A (ja) * | 1995-09-19 | 1997-03-28 | Toshiba Corp | 車両検出装置 |
| US6727938B1 (en) * | 1997-04-14 | 2004-04-27 | Robert Bosch Gmbh | Security system with maskable motion detection and camera with an adjustable field of view |
| US6696945B1 (en) * | 2001-10-09 | 2004-02-24 | Diamondback Vision, Inc. | Video tripwire |
| US6970083B2 (en) * | 2001-10-09 | 2005-11-29 | Objectvideo, Inc. | Video tripwire |
| JP2004129131A (ja) * | 2002-10-07 | 2004-04-22 | Matsushita Electric Ind Co Ltd | 監視カメラシステム |
| GB2413720B (en) * | 2003-03-14 | 2006-08-02 | British Broadcasting Corp | Video processing |
| US7889232B2 (en) * | 2004-06-22 | 2011-02-15 | Stratech Systems Limited | Method and system for surveillance of vessels |
| KR100664350B1 (ko) * | 2004-12-03 | 2007-01-02 | 엘지전자 주식회사 | 프라이버시 마스크 표시 제어방법 |
| JP4457358B2 (ja) | 2006-05-12 | 2010-04-28 | 富士フイルム株式会社 | 顔検出枠の表示方法、文字情報の表示方法及び撮像装置 |
| EP2036059A1 (en) * | 2006-06-30 | 2009-03-18 | Ultrawaves design holding B. V. | Surveillance method and system using object based rule checking |
| JP5002506B2 (ja) * | 2008-03-26 | 2012-08-15 | 株式会社エルモ社 | カメラシステム |
| JP4640470B2 (ja) * | 2008-08-18 | 2011-03-02 | ソニー株式会社 | 画像処理装置、画像処理方法、プログラム、および撮像装置 |
| JP5195156B2 (ja) * | 2008-08-25 | 2013-05-08 | ソニー株式会社 | 監視装置、監視システム及びフィルタ設定方法 |
| JP4751939B2 (ja) * | 2009-03-31 | 2011-08-17 | アイシン精機株式会社 | 車載カメラの校正装置 |
| JP5235910B2 (ja) * | 2010-01-06 | 2013-07-10 | キヤノン株式会社 | カメラ雲台システム |
| JP5526984B2 (ja) * | 2010-04-28 | 2014-06-18 | 富士通株式会社 | 画像処理装置、画像処理方法及び画像処理用コンピュータプログラムならびに撮像装置 |
| US8890936B2 (en) * | 2010-10-12 | 2014-11-18 | Texas Instruments Incorporated | Utilizing depth information to create 3D tripwires in video |
| CN102098499B (zh) * | 2011-03-24 | 2013-01-30 | 杭州华三通信技术有限公司 | 一种云台摄像机控制方法及其装置和系统 |
| US20130178257A1 (en) * | 2012-01-06 | 2013-07-11 | Augaroo, Inc. | System and method for interacting with virtual objects in augmented realities |
| JP6057562B2 (ja) * | 2012-06-28 | 2017-01-11 | キヤノン株式会社 | 情報処理装置およびその制御方法 |
| CN103024276A (zh) * | 2012-12-17 | 2013-04-03 | 沈阳聚德视频技术有限公司 | 一种云台摄像机的定位、变焦方法 |
-
2014
- 2014-06-30 CN CN201410305120.2A patent/CN105450918B/zh active Active
-
2015
- 2015-06-26 WO PCT/CN2015/082535 patent/WO2016000572A1/zh not_active Ceased
- 2015-06-26 JP JP2017519769A patent/JP6608920B2/ja active Active
- 2015-06-26 EP EP15815512.7A patent/EP3148180B1/en active Active
- 2015-06-26 KR KR1020177001139A patent/KR101932670B1/ko not_active Expired - Fee Related
-
2016
- 2016-12-28 US US15/392,636 patent/US10425608B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070115355A1 (en) * | 2005-11-18 | 2007-05-24 | Mccormack Kenneth | Methods and apparatus for operating a pan tilt zoom camera |
| CN101266710A (zh) * | 2007-03-14 | 2008-09-17 | 中国科学院自动化研究所 | 一种基于规则的全天候智能视频分析监控方法 |
| WO2011031128A1 (en) * | 2009-09-08 | 2011-03-17 | Mimos Berhad | Control mechanism for automated surveillance system |
| CN103209290A (zh) * | 2012-01-12 | 2013-07-17 | 鸿富锦精密工业(深圳)有限公司 | Ptz摄像装置控制系统及方法 |
| CN103544806A (zh) * | 2013-10-31 | 2014-01-29 | 江苏物联网研究发展中心 | 基于视频绊线规则的重要物资运输车辆监控预警系统 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3148180A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| KR101932670B1 (ko) | 2018-12-26 |
| JP6608920B2 (ja) | 2019-11-20 |
| CN105450918A (zh) | 2016-03-30 |
| KR20170020864A (ko) | 2017-02-24 |
| JP2017520215A (ja) | 2017-07-20 |
| EP3148180A1 (en) | 2017-03-29 |
| US20170111604A1 (en) | 2017-04-20 |
| CN105450918B (zh) | 2019-12-24 |
| EP3148180A4 (en) | 2017-07-19 |
| EP3148180B1 (en) | 2019-12-04 |
| US10425608B2 (en) | 2019-09-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103905761B (zh) | 图像处理系统和图像处理方法 | |
| JP6515985B2 (ja) | 三次元画像結合方法及び三次元画像結合装置 | |
| KR102096730B1 (ko) | 이미지 디스플레이 방법, 곡면을 가지는 불규칙 스크린을 제조하기 위한 방법 및 헤드-장착 디스플레이 장치 | |
| US20160077422A1 (en) | Collaborative synchronized multi-device photography | |
| CN104184985B (zh) | 图像获取的方法及装置 | |
| US20180007352A1 (en) | Method and apparatus for rotation and switching of video content | |
| CN114286066B (zh) | 投影校正方法、装置、存储介质以及投影设备 | |
| WO2018120011A1 (zh) | 投影图像校正方法、校正装置及机器人 | |
| AU2012352520A1 (en) | Multiple-angle imagery of physical objects | |
| WO2016119301A1 (zh) | 一种终端、图像拍摄方法及装置 | |
| US20190208174A1 (en) | Virtual reality-based viewing method, device, and system | |
| WO2016000572A1 (zh) | 一种图像处理方法和摄像机 | |
| US8648916B2 (en) | Control of an image capturing device | |
| CN117083871A (zh) | 控制相机的方法 | |
| JP6269014B2 (ja) | フォーカス制御装置およびフォーカス制御方法 | |
| JP6128966B2 (ja) | 画像処理装置、画像処理方法、及び、プログラム | |
| JP6504793B2 (ja) | 画像処理装置、画像処理方法、及びプログラム | |
| JP2014165866A (ja) | 画像処理装置及びその制御方法、プログラム | |
| CN105933609B (zh) | 调动可旋转摄像机的方法及装置 | |
| JP6239023B2 (ja) | 情報処理装置、情報処理方法及びプログラム | |
| JP2013085041A (ja) | 情報処理装置、その処理方法及びプログラム | |
| JP2019191509A (ja) | 映像表示装置、映像表示方法、コンピュータプログラム、記憶媒体 | |
| US12526514B2 (en) | Image capturing system, control apparatus, image capturing apparatus, and display apparatus constituting the system, control method, and display method | |
| KR102209908B1 (ko) | 소프트웨어로 벨로우즈(Bellows) 카메라를 구현하는 영상 변환 카메라 장치 및 그 동작 방법 | |
| CN117395500A (zh) | 摄像系统、控制设备、摄像设备和控制方法 |
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: 15815512 Country of ref document: EP Kind code of ref document: A1 |
|
| REEP | Request for entry into the european phase |
Ref document number: 2015815512 Country of ref document: EP |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2015815512 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2017519769 Country of ref document: JP Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 20177001139 Country of ref document: KR Kind code of ref document: A |