Image processing device, image processing program, and image processing method
The video processing device simplifies the alignment of multiple video inputs by automatically aligning sides based on specified positions and edge detection, enhancing user experience and efficiency.
Patent Information
- Application Number
- JP2023026294
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-09-03
AI Technical Summary
Existing video mixers require users to manually align multiple input videos, which is time-consuming and burdensome, especially when aligning sides of side-by-side videos.
A video processing device that automatically aligns sides of content in a composite video by specifying a position, acquiring edges within a search range, and arranging them based on similar angles, using touch panels and CPUs to facilitate easy alignment.
Enables quick and intuitive alignment of video sides, reducing user effort and preventing distortion, while maintaining aspect ratios and improving operational efficiency.
Smart Images

Figure 2024119410000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a video processing device, a video processing program, and a video processing method. [Background technology]
[0002] Patent Document 1 discloses a video mixer that has multiple video input channels and outputs an output video in which input videos input from each video input channel are arranged. The video mixer is configured so that the user can set the size and position of each input video in the output video as desired. This makes it possible to output an output video in which input videos of a size desired by the user are arranged in a position desired by the user. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2002-262179 A (for example, paragraphs 0016-0019, Figures 1-4) Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the video mixer of Patent Document 1, when aligning the positions of multiple input videos, such as aligning the horizontal sides of side-by-side input videos in the output video, the user must become thoroughly familiar with how to operate the video mixer and then operate the target input videos one by one in accordance with that. This poses the problem of taking a long time to create the output video.
[0005] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a video processing device, a video processing program, and a video processing method that can easily align edges of content placed in a composite image that are near a specified position. [Means for solving the problem]
[0006] In order to achieve this object, the video processing device of the present invention is a device that outputs a video (composite video) in which multiple content consisting of images and videos are arranged, and is equipped with a position acquisition means that acquires a specified position (specified position) in the composite video from an input means, an edge acquisition means that acquires an edge of the content included in a search range in the composite video formed near the specified position acquired by the position acquisition means, an edge identification means that identifies multiple edges having the same or similar angles as specific edges from among the edges acquired by the edge acquisition means, and an alignment means that aligns the specific edges identified by the edge identification means in the content arranged in the composite video.
[0007] The video processing program of the present invention is a program that causes a computer equipped with an input unit to execute a process of outputting a composite video, which is an image (composite video) in which multiple content consisting of images and videos is arranged, and causes the computer to execute the following steps: a position acquisition step of acquiring a specified position (specified position) in the composite video from the input unit; an edge acquisition step of acquiring edges of the content in the composite video that are included in a search range formed in the vicinity of the specified position acquired in the position acquisition step; an edge identification step of identifying multiple edges having the same or similar angles as specific edges from among the edges acquired in the edge acquisition step; and an alignment step of aligning the specific edges identified in the edge identification step in the content arranged in the composite video.
[0008] The video processing method of the present invention also includes a position acquisition step of acquiring from an input unit a specified position (designated position) in a composite video in which a plurality of contents composed of images and videos are arranged, an edge acquisition step of acquiring an edge of the content included in a search range in the composite video formed in the vicinity of the designated position acquired in the position acquisition step, an edge identification step of identifying multiple edges having the same or similar angles from among the edges acquired in the edge acquisition step as specific edges, and an alignment step of aligning the specific edges identified in the edge identification step in the content arranged in the composite video. [Brief description of the drawings]
[0009] [Figure 1] 1 is a diagram showing an external view of a video switcher, which is an example of a video processing device, and illustrating its peripheral system. [Diagram 2] (a1) is a diagram showing a composite image, (a2) is a diagram showing the case where a user touches the composite image of (a1), (a3) is a diagram showing the composite image after alignment, (b1) is a diagram showing another composite image, (b2) is a diagram showing the case where a user touches the composite image, and (b3) is a diagram showing the composite image after alignment. [Diagram 3] (a1) is a diagram showing yet another composite image, (a2) is a diagram showing the case where a user touches the composite image of (a1), (a3) is a diagram showing the composite image after alignment, (b1) is a diagram showing the composite image before a specific edge is moved in the horizontal direction, and (b2) is a diagram showing the composite image after the specific edge is moved. [Figure 4] (a1) is a diagram showing the composite image before a specific edge is moved in the vertical direction, (a2) is a diagram showing the composite image after the specific edge is moved, (b1) is a diagram showing the composite image before an edge other than the specific edge is moved, (b2) is a diagram showing the composite image after an edge other than the specific edge is moved, (c1) is a diagram showing the composite image before the specific edge is released, and (c2) is a diagram showing the composite image after the specific edge is released. [Diagram 5] FIG. 2 is a functional block diagram of a video switcher. [Figure 6] FIG. 2 is a block diagram showing a signal processing configuration of a video switcher. [Figure 7] 13 is a flowchart of a main process. [Figure 8] 13 is a flowchart of a drag process. [Figure 9] 13(a) to 13(d) are diagrams showing search ranges in modified examples. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] A preferred embodiment will be described below with reference to the accompanying drawings. An overview of a video switcher 1 of this embodiment will be described using Fig. 1 and with reference to Fig. 2. Fig. 1 includes an external view of the video switcher 1, which is an example of a video processing device, and is a diagram showing its peripheral system. The video switcher 1 is a device (video processing device) that outputs a composite video Sc in which input images and videos are arranged into a single video.
[0011] A video camera 20 and a PC 21 for presentation (hereinafter abbreviated as "presentation PC 21") to which images and videos to be arranged in the composite video Sc are input, and a projector 22 and a PC 23 for distribution (hereinafter abbreviated as "distribution PC 23") to which the composite video Sc is output are connected to the video switcher 1. The video camera 20 (two in this example) is a photographing device that inputs captured images or videos to the video switcher 1, and the presentation PC 21 is an information processing device that inputs images or videos created by a user H (simulatedly indicating the position of the user H's finger) using installed application software to the video switcher 1.
[0012] The projector 22 is an output device that projects the composite video Sc from the video switcher 1 onto a large screen, and the distribution PC 23 is an information processing device that distributes the composite video Sc output from the video switcher 1 via the Internet W. The composite video Sc distributed from the distribution PC 23 via the Internet W can be viewed on a plurality of destination PCs 24 (hereinafter abbreviated as "destination PCs 24") connected to the Internet W. Note that the video switcher 1 may be connected to the Internet W and distributed directly from the video switcher 1 to the destination PCs 24. In this case, the distribution PC 23 may be omitted.
[0013] The video switcher 1 is provided with a "layer" (division) for each input source, i.e., video cameras 20a, 20b and presentation PC 21, on which images and videos input from the corresponding input sources are arranged, and on each layer, the images and videos input from the corresponding input sources are arranged with a size and position specified by user H. A composite image Sc is created by superimposing such layers. Hereinafter, the images and videos arranged on the layers are collectively referred to as "contents."
[0014] The video switcher 1 is provided with various setting buttons 2 for inputting instructions from a user H, a left touch panel 3a, a left LCD 3b, and a right touch panel 4a, and a right LCD 4b. The left touch panel 3a is an input device for inputting a touched position signal in response to a touch operation by the user H. The left LCD 3b is a display device for displaying the layout, etc., of the composite video Sc to be output. The left touch panel 3a and the left LCD 3b are disposed on the left side of the front of the video switcher 1, and the left touch panel 3a is provided overlapping the left LCD 3b.
[0015] Similarly, the right touch panel 4a is an input device for inputting a signal related to a touched position in response to a touch operation by the user H, and the right LCD 4b is a display device for displaying the layout of the output composite video Sc, etc. The right touch panel 4a and the right LCD 4b are each disposed on the right side of the front of the video switcher 1, and the right touch panel 4a is provided overlapping the right LCD 4b.
[0016] The video switcher 1 of this embodiment is configured to output different composite videos Sc to the projector 22 and the distribution PC 23. The left LCD 3b displays a screen for setting and editing the composite video Sc to be output to the projector 22, and the right LCD 4b displays a screen for setting and editing the composite video Sc to be output to the distribution PC 23.
[0017] While visually checking the layout of the composite image Sc displayed on the LCDs 3b and 4b, the user H can freely specify and set the size and arrangement of the content in the composite image Sc by touching the touch panels 3a and 3b arranged on the LCDs 3b and 4b, respectively, and construct a composite image Sc with a desired layout.
[0018] In constructing such a composite image Sc, parallel sides of contents arranged horizontally or vertically may be aligned to the same position. Conventionally, in order to align the sides of multiple contents arranged horizontally or vertically, it was necessary to select and move the target contents one by one to match each side, etc. This required a lot of time to construct a composite image Sc in which the sides of the contents were aligned, and placed a heavy burden on the user H who performed such an operation.
[0019] Therefore, in this embodiment, the sides of the content in the compound image Sc near the designated position, which is the position designated by the user H on the touch panels 3a and 3b, are identified, and the identified sides are aligned. The method of aligning the content in the compound image Sc will be described in detail with reference to Figs.
[0020] Figure 2(a1) is a diagram showing a composite image Sc, Figure 2(a2) is a diagram showing the case where a user H performs a touch operation on the composite image Sc of Figure 2(a1), and Figure 2(a3) is a diagram showing the composite image Sc after alignment.
[0021] The contents C1 to C3 input from the video camera 20 and the presentation PC 21 are arranged in the composite video Sc. The contents C1 to C3 arranged in the composite video Sc are displayed by cropping the input image or video according to the size of the corresponding display area in the composite video Sc. This allows the input image or video to be displayed in the composite video Sc without distortion.
[0022] In Fig. 2(a1), when it is desired to align the vertical (longitudinal) sides of the contents C1 and C2, that is, to move the parallel sides of the contents C1 and C2 to the same position, the user H performs a touch operation between the contents C1 and C2 as shown in Fig. 2(a2). In Fig. 2(a1), for example, the user H performs a touch operation by touching the touch panels 3a and 4a with his index finger, so the position (information) of the index finger is set as the "designated position" (information). In this embodiment, "parallel sides" refers to sides of the same angle between the target sides in the vertical direction, horizontal direction, etc., but may also include sides of similar angles, for example, the difference in angle being within ±3 degrees.
[0023] When a designated position is acquired from the user H via the touch panels 3a and 4a, the video switcher 1 forms a search range Se, which is an area for acquiring sides of the contents C1 to C3 in the vicinity of the designated position. In this embodiment, the search range Se is formed in the vertical and horizontal directions of the acquired designated position.
[0024] Specifically, first, a left boundary line SeL is formed between the top and bottom ends of the composite image Sc at a position shifted 50 pixels to the left from the designated position acquired in the composite image Sc, and a right boundary line SeR is formed between the top and bottom ends of the composite image Sc at a position shifted 50 pixels to the right from the acquired designated position. The area formed between the left boundary line SeL and the right boundary line SeR (i.e., the area sandwiched between the left boundary line SeL and the right boundary line SeR) is set as the vertical search range Se.
[0025] Similarly, an upper boundary line SeP is formed between the left end and the right end of the composite image Sc at a position 50 pixels above the acquired designated position in the composite image Sc, and a lower boundary line SeD is formed between the left end and the right end of the composite image Sc at a position 50 pixels below the acquired designated position. The area formed between the upper boundary line SeP and the lower boundary line SeD (i.e., the area sandwiched between the upper boundary line SeP and the lower boundary line SeD) is set as the horizontal search range Se.
[0026] The width of the vertical or horizontal search range Se is not limited to 100 pixels left and right or top and bottom, and may be more than 100 pixels or less than 100 pixels, and the width of the search range Se may be set in advance on the LCDs 3b, 4b by the user H using the setting button 2 or the like. The widths of the vertical search range Se and the horizontal search range Se are not limited to being the same, and the width of the vertical search range Se may be wider or narrower than the horizontal search range Se.
[0027] The sides of the contents C1 to C3 included in the vertical and horizontal cross-shaped search range Se centered on the designated position touched by the user H are searched for. In Fig. 2(a2), the horizontal search range Se includes the side of the content C1 (more specifically, the right side of the content C1 closest to the designated position) and the side of the content C2 (more specifically, the left side of the content C2 closest to the designated position). The left side of the content C1 and the right side of the content C2, which have the same or similar angles, are each specified as the specific side Ss to be the side to be aligned.
[0028] The vertical search range Se includes the area from the top to the bottom of the composite image Sc, and the horizontal search range Se includes the area from the top to the bottom of the composite image Sc. This makes it possible to identify the specific side Ss without missing any of the sides of the contents C1 to C3 that are vertically and horizontally adjacent to the specified position.
[0029] On the other hand, by limiting the width of the vertical or horizontal search range Se to 100 pixels, it is possible to prevent a side of the contents C1 to C3 located away from the specified position from being unnecessarily identified as the specific side Ss.
[0030] Then, the sides identified by the specific side Ss are aligned. Specifically, as shown in FIG. 2(a3), the right side of content C1 identified by the specific side Ss is moved to a specified position, and the left side of content C2 identified by the specific side Ss is also moved to a specified position. This aligns the right side of content C1 and the left side of content C2. Note that the alignment method may be based on the specified position, based on the side of content C1, or based on the midpoint of each side of content C1 and C2, but any of these methods may be used.
[0031] That is, the position where the specific side Ss is aligned is set to the designated position of the composite image Sc designated by the user H via the touch panels 3a and 4a. As a result, since the specific side Ss is aligned to the position touched by the user H, it becomes easier for the user H to predict where the specific side Ss will be in the composite image Sc after alignment, and alignment of the specific side Ss to the position intended by the user H can be easily realized.
[0032] Incidentally, when the specific sides Ss of the contents C1 and C2 are aligned, as shown in Fig. 2(a3), the shapes of the display areas of the contents C1 and C2 in the composite image Sc are deformed compared to the shapes before the alignment of the specific sides Ss (Figs. 2(a1), (a2)). At this time, even if the display areas of the contents C1 and C2 are deformed after the alignment of the specific sides Ss, processing is performed so that the aspect ratios of the display contents are the same as those before the alignment of the specific sides Ss.
[0033] Specifically, when the specific side Ss is aligned, the image or video input from the input source is trimmed again according to the size of the display area of the contents C1 and C2 of the aligned composite video Sc, and is displayed in the aligned display area. This makes it possible to prevent the contents C1 and C2 displayed after the alignment of the specific side Ss from being distorted compared to the image or video originally input from the input source, thereby reducing the sense of incongruity felt by the viewer of the composite video Sc.
[0034] The method of maintaining the aspect ratio of the display contents of the contents C1 and C2 after the alignment of the specific side Ss is not limited to the above-mentioned trimming method. For example, the contents C1 and C2 displayed before the alignment may be enlarged or reduced according to a magnification corresponding to the ratio (magnification ratio) between the size of the display area of the contents C1 and C2 before the alignment and the size of the display area of the contents C1 and C2 after the alignment, and displayed in the corresponding display area after the alignment, or another method may be used.
[0035] In Fig. 2(a1)-(a3), the case where the vertical sides of the contents C1 and C2 are aligned has been described, but as shown in Fig. 2(b1)-(b3), the case where the horizontal sides are aligned is similar. Fig. 2(b1) is a diagram showing another composite image Sc, Fig. 2(b2) is a diagram showing the case where the user performs a touch operation on the composite image Sc in Fig. 2(b1), and Fig. 2(b3) is a diagram showing the composite image Sc after alignment.
[0036] In Fig. 2(b2), when the user H performs a touch operation between the content C1 and the content C3 displayed below the content C1, the search range Se formed includes the lower side of the content C1 and the upper side of the content C3. As a result, these horizontal sides are identified as specific sides Ss, and the identified specific sides Ss are aligned as shown in Fig. 2(b3).
[0037] Next, a case where vertical and horizontal sides are aligned simultaneously will be described with reference to Fig. 3(a1) to (a3). Fig. 3(a1) is a diagram showing yet another composite image Sc, Fig. 3(b2) is a diagram showing a case where a user H performs a touch operation on the composite image Sc of Fig. 3(b1), and Fig. 3(b3) is a diagram showing the composite image Sc after alignment.
[0038] As shown in FIG. 3(b2), when user H is between contents C1 and C2 and touches above content C3, the search range Se formed as a result includes the right and bottom edges of content C1, the left and bottom edges of content C2, and the right and top edges of content C3.
[0039] As a result, the specific sides Ss in the horizontal and vertical directions are specified. Specifically, the lower side of the content C1, the lower side of the content C2, and the upper side of the content C3 are specified as the specific horizontal side Ss. Furthermore, the right side of the content C1, the left side of the content C2, and the right side of the content C3 are specified as the specific vertical side Ss. Then, as shown in FIG. 3(b3), the specified specific horizontal side Ss and specific vertical side Ss are aligned. Note that as an alignment method, a designated position may be used as a reference, a side of the content C1 may be used as a reference, or a midpoint between the sides of the contents C1, C2, and C3 may be used as a reference, and any of these may be used.
[0040] In this way, in the video switcher 1, the designated position designated by the user H in the composite video Sc is acquired via the touch panels 3a and 4a, and the search range Se is formed based on the acquired designated position. The sides of the contents C1 to C3 included in the search range Se are identified as specific sides Ss, and the identified specific sides Ss are aligned. This allows the user H to easily align the sides of the contents C1 to C3 arranged in the composite video Sc near the designated position, simply by specifying the designated position in the composite video Sc.
[0041] Next, the movement of the specific side Ss will be described with reference to Fig. 3(b1), (b2) and Fig. 4(a1), (a2). Fig. 3(b1) is a diagram showing the composite image Sc before the specific side Ss is moved in the horizontal direction, Fig. 3(b2) is a diagram showing the composite image Sc after the specific side Ss is moved, Fig. 4(a1) is a diagram showing the composite image Sc before the specific side Ss is moved in the vertical direction, and Fig. 4(a1) is a diagram showing the composite image Sc after the specific side Ss is moved.
[0042] First, the movement of the specific horizontal side Ss will be described. In Fig. 3(b1), the lower side of each of the contents C1 and C2 and the upper side of the content C3 are specified as the specific horizontal side Ss. In this state, when the user H drags the specific horizontal side Ss downward, as shown in Fig. 3(b2), the lower side of each of the contents C1 and C2 specified as the specific side Ss and the upper side of the content C3 are moved downward while maintaining their horizontal alignment.
[0043] Next, the movement of the specific vertical side Ss will be described. In Fig. 4(a1), the right side of each of the contents C1 and C3 and the left side of the content C2 are specified as the specific vertical side Ss. In this state, when the user H drags the specific vertical side Ss to the right, as shown in Fig. 4(a2), the right side of each of the contents C1 and C3 specified as the specific side Ss and the left side of the content C2 are moved downward while maintaining the vertical alignment.
[0044] In this way, the aligned specific side Ss can be moved while maintaining its aligned state simply by dragging the identified horizontal or vertical specific side Ss, thereby improving the operability when moving the specific side Ss of the user H.
[0045] Next, the movement of the sides other than the specific side Ss in the contents C1 to C3 will be described. Fig. 4(b1) is a diagram showing the composite image Sc before the movement of the sides other than the specific side Ss, and Fig. 4(b2) is a diagram showing the composite image Sc after the movement of the sides other than the specific side Ss. As shown in Figs. 4(b1) and (b2), when the user H designates the upper side of the content C1, which is not specified as the specific side Ss, and performs an upward drag operation, only the upper side of the content C1 is moved upward while maintaining the alignment state of the specific side Ss.
[0046] This allows the user H to freely move sides other than the specific side Ss in the contents C1 to C3 while maintaining the alignment of the specific side Ss, thereby enabling the area of the contents C1 to C3 to be enlarged or reduced to a shape that is optimal for the situation at hand, and displayed on the composite image Sc.
[0047] Next, a method for canceling the alignment state of the specific side Ss will be described in detail with reference to Fig. 4(c1) and (c2). Fig. 4(c1) is a diagram showing the composite image Sc before the specific side Ss is released, and Fig. 4(c2) is a diagram showing the composite image Sc after the specific side Ss is released. In this embodiment, the contents C1 to C3 having the side specified by the specific side Ss are released from the specific side Ss by dragging the display area of the target contents C1 to C3.
[0048] 4(c1), the lower side of the contents C1 and C2 and the upper side of the content C3 are specified as the horizontal specific side Ss, and the left side of the contents C1 and C3 and the right side of the content C2 are specified as the vertical specific side Ss. In this state, the user H specifies the display area of the content C3, specifically, the area inside the boundary between the content C3 and other areas, and performs a drag operation in the downward left direction.
[0049] As a result, the edges of content C3 are deleted from the specific edges Ss in the horizontal and vertical directions, respectively, and all edges of content C3 are released from the specific edges Ss. At the same time, only content C3 is moved diagonally downward to the left in response to the drag operation of user H. That is, the edges of content C3 are released from the specific edges Ss by user H's intentional operation to move only content C3 independently, that is, by dragging only the display area of content C3 among contents C1 to C3 specified by the specific edges Ss. As a result, user H can intuitively release the specific edges Ss.
[0050] Next, main functions of the video switcher 1 will be described with reference to Fig. 5. Fig. 5 is a functional block diagram of the video switcher 1. As shown in Fig. 5, the video switcher 1 has a position acquisition means 201, a side acquisition means 202, a side identification means 203, and an alignment means 204.
[0051] The position acquiring means 201 is a means for acquiring a designated position, which is a position designated in the compound image Sc, from the input means 200, and is realized by the CPU 10 described later in Fig. 6. The input means 200 is realized by the above-mentioned touch panels 3a and 4a. The side acquiring means 202 is a means for acquiring a side of a content included in a search range formed in the compound image Sc near the designated position acquired by the position acquiring means 201, and is realized by the CPU 10.
[0052] The side identifying means 203 is a means for identifying a plurality of sides having the same or similar angles as specific sides Ss among the sides acquired by the side acquiring means 202, and is realized by the CPU 10. The alignment means 204 is a means for aligning or canceling the specific sides Ss identified by the side identifying means 203 in the content arranged in the composite video Sc, and is realized by the CPU 10.
[0053] In the video switcher 1, a designated position is acquired in the composite video Sc, and the sides of the content included in a search range formed in the vicinity of the acquired designated position are acquired. Among the acquired sides, a side having the same or similar angle is identified as a specific side Ss, and the identified specific side Ss in the content arranged in the composite video Sc is aligned. This allows the user H to easily align the sides in the vicinity of the designated position among the sides of the content arranged in the composite video Sc, simply by performing an operation of designating the designated position in the composite video Sc.
[0054] Next, signal processing of a video switcher 1, which is an example of a video processing device, will be described with reference to Fig. 6. Fig. 6 is a block diagram showing the signal processing configuration of the video switcher 1. As shown in Fig. 6, the video switcher 1 has a CPU 10, a flash ROM 11, and a RAM 12, which are each connected to an input / output port 14 via a bus line 13. The input / output port 14 is further connected to the above-mentioned various setting buttons 2, left touch panel 3a, left LCD 3b, right touch panel 4a, and right LCD 4b, a video processing device 15, and a communication device 18.
[0055] The CPU 10 is a calculation device that controls each part connected by a bus line 13. The flash ROM 11 is a rewritable non-volatile storage device that stores programs executed by the CPU 10, fixed value data, etc., and stores a video processing program 11a. When the video processing program 11a is executed by the CPU 10, the main processing of Fig. 7 is executed. The RAM 12 is a memory for rewritably storing various work data, flags, etc. when the CPU 10 executes the program, and is provided with a specific side memory 12a in which the specific side Ss is stored.
[0056] The video processing device 15 is an arithmetic device that performs image processing in response to instructions from the CPU 10. The video processing device 15 is connected to a first input terminal 16a to a third input terminal 16c that input images and videos to be image-processed by the video processing device 15, and a video output device 17 that outputs images and videos such as a composite video Sc that has been image-processed by the video processing device 15.
[0057] The above-mentioned video camera 20 and presentation PC 21 are connected to the first input terminal 16a to the third input terminal 16c, and images and videos from these are input to the video processing device 15 via the first input terminal 16a to the third input terminal 16c. A projector 22 is also connected to the video output device 17, and corresponding images are output to the projector 22 via the video output device 17. At least a part of the video processing device 15 and the video output device 17 may be configured with electronic circuits such as an FPGA (field-programmable gate array) or a dedicated LSI.
[0058] The communication device 18 is a device for communicating with external devices, and is communicatively connected in particular to the above-mentioned delivery PC 23. The delivery PC 23 is connected to the Internet W, and the above-mentioned delivery destination PC 24 is connected to the Internet W.
[0059] Next, the process executed by the CPU 10 of the video switcher 1, which is an example of a video processing device, will be described with reference to Fig. 7 and Fig. 8. Fig. 7 is a flowchart of the main process. The main process is executed when the power of the video switcher 1 is turned on.
[0060] The main process first checks whether the touch panel 3a, 4a has been touched (S1). In the process of S1, if the touch panel 3a, 4a has been touched (S1: Yes), the touched position, i.e., the designated position, is acquired (S2). After the process of S2, it is checked whether the specific side Ss is stored in the specific side memory 12a (S3).
[0061] In the process of S3, if the specific side Ss is not stored in the specific side memory 12a (S3: No), a search range Se described with reference to FIG. 2(a2) etc. is created with the specified position acquired in the process of S2 as its center (S4). After the process of S4, the vertical sides of the content included in the search range Se are added to the specific side memory 12a as vertical specific sides Ss (S5). In addition, after the process of S5, the horizontal sides of the content included in the search range Se are added to the specific side memory 12a as horizontal specific sides Ss (S6).
[0062] After the process of S6, the specific vertical side Ss stored in the specific side memory 12a is aligned to the designated positions acquired in the process of S2, as described in Figs. 2(a2) and (a3) (S7). After the process of S7, the specific horizontal side Ss stored in the specific side memory 12a is aligned to the designated positions acquired in the process of S2, as described in Figs. 2(b2) and (b3) (S8). As a result, the specific vertical side Ss and the specific horizontal side Ss are aligned.
[0063] In the process of S3, if the specific side Ss is stored in the specific side memory 12a (S3: Yes), the processes of S4 to S8 are skipped. After the processes of S3 and S8, the process for when the other touch panels 3a and 4a are touched is performed (S9).
[0064] In the process of S1, if the touch panel 3a, 4a has not been touched (S1: No), the processes of S2 to S9 are skipped. After the processes of S1 and S9, it is confirmed whether the touch panel 3a, 4a has been dragged (S10). In the process of S10, if the touch panel 3a, 4a has been dragged (S10: Yes), the drag process of S11 is executed. The drag process will now be described with reference to FIG. 8.
[0065] FIG. 8 is a flow chart of the drag process. In the drag process, first, it is confirmed whether or not the start point of the drag operation is on any of the specific sides Ss stored in the specific side memory 12a (S20). In the process of S20, if the start point of the drag operation is on any of the specific sides Ss stored in the specific side memory 12a (S20: Yes), as described in FIG. 3(b2), the specified specific sides Ss are moved together. In such a case, first, the specific side Ss that is the start point of the drag operation among the specific sides Ss stored in the specific side memory 12a is obtained (S21). After the process of S21, the obtained specific sides Ss are moved to the end points of the drag operation, respectively, as shown in FIG. 3(b2) (S22).
[0066] On the other hand, in the process of S20, if the starting point of the drag operation is not on any of the specific sides Ss stored in the specific side memory 12a (S20: No), the processes of S21 and S22 are skipped. After the processes of S20 and S22, it is confirmed whether the starting point of the drag operation is on an edge of the content other than the specific side Ss stored in the specific side memory 12a (S23).
[0067] In the process of S23, if the starting point of the drag operation is on an edge other than the specific edge Ss stored in the specific edge memory 12a in the content (S23: Yes), only edges that are not specified as the specific edge Ss are moved. In such a case, first, the edge of the starting point of the drag operation is obtained (S24), and the obtained edge is moved to the end point of the drag operation (S25).
[0068] On the other hand, in the process of S23, if the starting point of the drag operation is not on any side of the content other than the specific side Ss stored in the specific side memory 12a (S23: No), the processes of S24 and S25 are skipped. After the processes of S23 and S25, it is confirmed whether the starting point of the drag operation is within the area of the content having the specific side Ss stored in the specific side memory 12a (S26).
[0069] In the process of S26, if the start point of the drag operation is present within the display area of the content having the specific side Ss stored in the specific side memory 12a (S26: Yes), the side of the target content is released from the specific side Ss and the target content is moved, as described in Fig. 4(c2). In such a case, first, the content whose display area includes the start point of the drag operation is obtained (S27). After the process of S27, the side of the content obtained in the process of S26 is deleted (released) from the specific side of the specific side memory 12a (S28), and the display area of the content is moved to the end point of the drag operation (S29).
[0070] On the other hand, in the process of S26, if the start point of the drag operation is not within the display area of the content having the specific side Ss stored in the specific side memory 12a (S26: No), the processes of S27 to S29 are skipped. After the processes of S26 and S29, the process when the other touch panels 3a and 4a are subjected to a drag operation is performed (S30), and the drag process ends.
[0071] Returning to FIG. 7, in the process of S10, if the touch panels 3a and 4a are not dragged (S10: No), the drag process of S11 is skipped. After the processes of S10 and S11, other processes of the video switcher 1 are executed (S12), and the processes from S1 onwards are repeated.
[0072] Although the above description is based on the above embodiment, it can be easily imagined that various improvements and modifications are possible.
[0073] In the above embodiment, images and videos (moving images, still images, etc.) are input to the video switcher 1 from the video camera 20 and the presentation PC 21, but this is not limited to the above. For example, images and videos may be input from other devices such as a hard disk recorder or a game machine. Images and videos may also be input from the Internet W or the like via the communication device 18. Alternatively, images and videos pre-stored in the flash ROM 11 of the video switcher 1 may be used. Images and videos input from outside in this way may be stored in the flash ROM 11 of the video switcher 1.
[0074] Furthermore, in the above embodiment, the input sources for inputting images and videos to the video switcher 1 are three types, namely, the video cameras 20a and 20b and the presentation PC 21, but the present invention is not limited to this, and the input sources may be three or less types or more types. For example, images and videos may be input from two video cameras 20a and 20b, one presentation PC 21, one game machine, and the Internet W.
[0075] Moreover, the output destination of the composite video Sc from the video switcher 1 is not limited to the projector 22 or the distribution PC 23. For example, the composite video Sc may be output to another device such as a television connected to the first input terminal 16a (see FIG. 7) of the video switcher 1 or a smartphone connected via the Internet W.
[0076] Furthermore, in the above embodiment, the composite video Sc from the video switcher 1 is output to two destinations, the projector 22 and the distribution PC 23, but this is not limited thereto, and the number of destinations may be less than two or more than two. For example, the composite video Sc may be output to two projectors 22, one television, and the distribution PC 23.
[0077] In the above embodiment, the network to which the delivery PC 23 and the delivery destination PC 24 are connected is the Internet W, but this is not limited to this. For example, it may be an intranet in which the connected delivery destination PC 24 is limited, or any other network constructed by any other communication system.
[0078] In the above embodiment, the video switcher 1 is provided with two combinations of touch panels and LCDs, the left touch panel 3a and the left LCD 3b, and the right touch panel 4a and the right LCD 4b, but this is not limited to the above. The number of combinations of touch panels and LCDs provided in the video switcher 1 may be one or three or more. Alternatively, the video switcher 1 may be provided with one combination of touch panels and LCDs, and the area of the one combination of touch panel and LCD may be divided into two or more areas, and the setting mode and output destination may be specified for each divided area to set the composite video Sc.
[0079] In the above embodiment, both the vertical search range Se and the horizontal search range Se are used as the search range Se, but this is not limited to this. For example, as shown in Fig. 9(a), the search range Se may be only the horizontal search range Se, or as shown in Fig. 9(b), the search range Se may be only the vertical search range Se.
[0080] Also, the search range Se is defined as an end-to-end area, such as from the top to bottom or from the left to right of the composite image Sc, but is not limited to this. For example, as shown in Fig. 9(c), the search range Se may be a rectangular area of a predetermined size (for example, 100 pixels horizontally and 80 pixels vertically) on the top, bottom, left, and right sides of the specified position.
[0081] Furthermore, the search range Se is not limited to a rectangular area as described above, but may be, for example, an elliptical area centered on the specified position as shown in Figure 9(d), or an area of other shape such as a circle or a polygon.
[0082] In the above embodiment, both the vertical side and the horizontal side of the content included in the search range Se are specified as the specific side Ss, but this is not limited to this. For example, only the vertical side of the content included in the search range Se may be specified as the specific side Ss, or only the horizontal side of the content included in the search range Se may be specified as the specific side Ss.
[0083] In these cases, in a horizontal search range Se as shown in Fig. 9(a), only the horizontal sides may be specified as the specific sides Ss, and in a vertical search range Se as shown in Fig. 9(b), only the vertical sides may be specified as the specific sides Ss. Also, which of the vertical and horizontal sides of the content is to be specified as the specific side Ss may be selected using various setting buttons 2 for inputting instructions from the user H, or the search range Se may be defined and set by the user H through a touch operation using the left touch panel 3a or the right touch panel 4a.
[0084] In the above embodiment, the specific side Ss is aligned to a specified position as shown in Fig. 2(a3), but the invention is not limited to this and the specific side Ss may be aligned to any position. For example, when the left side of the content C1 and the right side of the content C2 are set as the specific side Ss as shown in Fig. 2(a3), the left side of the content C1 may be moved to the position of the right side of the content C2, or conversely, the right side of the content C2 may be moved to the position of the left side of the content C1.
[0085] In the above embodiment, the display areas of the contents C1 to C3 are dragged as shown in Fig. 4(c2) to release the contents C1 to C3 from the specific side Ss, but this is not limited to this. For example, the contents C1 to C3 may be released from the specific side Ss by an operation other than a drag operation, such as a touch operation (double tap) twice in succession on the display areas of the contents C1 to C3.
[0086] In the above embodiment, the video switcher 1 is exemplified as a device that executes the video processing program 11a, but this is not limiting. For example, the video processing program 11a may be executed by an information processing device such as a PC, a smartphone, or a tablet terminal. [Explanation of symbols]
[0087] 1 Video switcher (video processing device) 11a Video processing program Sc composite video C1~C3 Contents Ss specific side 3a, 4a Touch panel (input means, input unit) S2 Position acquisition means, position acquisition step S5, S6: Edge acquisition means, edge specification means, edge acquisition step, edge specification step S7, S8 Alignment means, alignment step S25 Specific side movement method S28 Specific side release method S29 Content transfer method
Claims
1. A video processing device that outputs a composite video, which is a video in which a plurality of content items each consisting of an image or video are arranged, a position acquisition means for acquiring a designated position, which is a position designated in the composite image, from an input means; a side acquisition means for acquiring a side of the content included in a search range formed in the vicinity of the designated position acquired by the position acquisition means in the compound image; a side specifying means for specifying a plurality of sides having the same or similar angles as specific sides from among the sides acquired by the side acquisition means; and aligning means for aligning the specific sides identified by the side identifying means in the content arranged in the composite image.
2. 2. The image processing apparatus according to claim 1, wherein the alignment means aligns the specific side identified by the side identification means based on the designated position acquired by the position acquisition means.
3. 2. The video processing apparatus according to claim 1, wherein the aspect ratio of the content after being aligned by said alignment means is maintained the same as the aspect ratio of the content before being aligned.
4. 2. The image processing device according to claim 1, wherein the search range is an area of a predetermined width centered on the specified position acquired by the position acquisition means in the vertical direction, and an area extending from the left end to the right end of the composite image in the horizontal direction.
5. The image processing device according to claim 1 or 4, characterized in that the search range is an area of a predetermined width centered on the specified position acquired by the position acquisition means in the left-right direction, and an area extending from the top to the bottom of the composite image in the up-down direction.
6. a post-movement position acquisition means for acquiring a post-movement position of the specific side from the input means; 2. The image processing device according to claim 1, further comprising: a specific side moving means for moving the specific side aligned by the alignment means to the position acquired by the post-movement position acquisition means while keeping the specific side aligned.
7. 7. The video processing device according to claim 6, wherein the aspect ratio of the content after the specific side has been moved by said specific side moving means is maintained the same as the aspect ratio of the content before the movement.
8. a move instruction acquisition means for acquiring an instruction to move the content having the specific side from the input means; a specific side release means for releasing a specific side of the content corresponding to the instruction acquired by the movement instruction acquisition means from the specific side; 2. The video processing apparatus according to claim 1, further comprising: a content moving unit that moves the content corresponding to the instruction acquired by the movement instruction acquiring unit.
9. 2. The image processing apparatus according to claim 1, wherein the input means comprises a touch panel.
10. A video processing program for causing a computer having an input unit to execute a process of outputting a composite video, which is a video in which a plurality of content items each consisting of an image or video is arranged, a position acquisition step of acquiring, from the input unit, a designated position that is a position designated in the composite image; a side acquisition step of acquiring a side of the content included in a search range formed in the vicinity of the designated position acquired in the position acquisition step in the compound image; a side identifying step of identifying a plurality of sides having the same or similar angles as specific sides from among the sides acquired in the side acquiring step; an alignment step of aligning the specific sides identified in the side identification step in the content arranged in the composite image,
11. a position acquisition step of acquiring, from an input unit, a designated position that is a designated position in a composite video in which a plurality of content items each composed of an image or video is arranged; a side acquisition step of acquiring a side of the content included in a search range formed in the vicinity of the designated position acquired in the position acquisition step in the compound image; a side identifying step of identifying a plurality of sides having the same or similar angles as specific sides from among the sides acquired in the side acquiring step; an alignment step of aligning the specific sides identified in the side identification step in the content arranged in the composite image.
Citation Information
Patent Citations
Video mixer
JP2002262179A
