Method, device and medium for realizing partial imaging of selected area
By obtaining the frame selection trajectory and imaging data in the convenient mobile monitoring device, determining the coordinates of the photosensitive pixel point and setting the photosensitive display area, the problem of increasing power consumption and shortening of standby time caused by the full opening of the image sensor is solved, and the optimization of partial imaging and power consumption of the selected area is achieved.
Patent Information
- Application Number
- CN202211230440.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-09-30
AI Technical Summary
When a convenient mobile monitoring device implements camera behavior, the full image sensor is turned on, resulting in increased power consumption and shortened standby time.
By acquiring the frame selection track and track pixel coordinate information in the first terminal display screen, combining the imaging data of the first and second terminals, the photosensitive pixel coordinate information in the second terminal imaging plane is determined, the photosensitive display area is set, and the photosensitive switch in the area is turned on, and the photosensitive switch in the external area is turned off.
Partial imaging of selected areas is realized, the image sensor power consumption of non-essential display areas is reduced, and the standby time of the mobile monitoring device is improved.
Smart Images

Figure CN115562603B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video imaging processing, and in particular to a method, device and medium for realizing partial imaging of a selected area. Background Art
[0002] With the continuous improvement of contemporary home network environment and the enhancement of users' security awareness, domestic household civilian monitoring equipment has quietly emerged. The security industry has ushered in a new era of digital monitoring. The video monitoring platform has also entered the fast lane of development. At the same time, video monitoring equipment has begun to move towards intelligence and convenience. Now there are convenient mobile monitoring devices with built-in power supply batteries and no wiring installation required on the market.
[0003] However, the image sensor of the camera of a portable mobile monitoring device that acquires the image of the real object is generally in full-pixel imaging mode, that is, it is fully opened to acquire the entire viewing angle or fully closed to abandon the entire viewing angle. When performing video recording, if the entire viewing angle is fully opened to acquire the entire viewing angle, it is easy to increase the power consumption of the mobile monitoring device and shorten the standby time of the mobile monitoring device. Summary of the invention
[0004] The present application provides a method, device and medium for realizing partial imaging of a selected area, aiming to solve the problem in the prior art that when the image sensor is fully turned on during video recording, the power consumption of the mobile monitoring device is easily increased and the standby time of the mobile monitoring device is shortened.
[0005] In order to solve the above technical problems, in a first aspect, the present application provides a method for realizing partial imaging of a selected area, comprising:
[0006] Acquire a frame selection track on a display screen of the first terminal, and acquire track pixel point coordinate information corresponding to the frame selection track on the display screen;
[0007] Acquire first imaging data of the first terminal and second imaging data of the second terminal;
[0008] Determine, according to a linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data, and the second imaging data, photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in an imaging plane of the second terminal;
[0009] Setting the area enclosed based on the photosensitive pixel coordinate information as a photosensitive display area;
[0010] The photosensitive switches corresponding to the pixel points within the photosensitive display area are turned on, and the photosensitive switches corresponding to the pixel points outside the photosensitive display area are turned off.
[0011] Preferably, the step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data comprises:
[0012] Calculate the corresponding relationship between pixel rows and columns of the first terminal and the second terminal according to the pixel information of the first terminal and the size data of the photosensitive chip, and the pixel information of the second terminal and the screen size information;
[0013] According to the pixel row and column correspondence between the first terminal and the second terminal, and in conjunction with the proportional compression relationship between the first terminal and the second terminal, the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal is calculated.
[0014] Preferably, the step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data comprises:
[0015] Obtaining a first coordinate (a, b) of any first pixel point in the first imaging data and a second coordinate (X, Y) of any second pixel point in the second imaging data, wherein the first coordinate (a, b) is a coordinate in a first coordinate system established by the display screen of the first terminal; and the second coordinate (X, Y) is a coordinate in a second coordinate system established by the imaging plane of the second terminal;
[0016] The row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y) is calculated according to the second coordinate (X, Y), the number of first pixels M1*N1 contained in the second terminal imaging plane, and the size M2*N2 of the photosensitive chip, wherein:
[0017]
[0018] According to the first coordinate (a, b), the maximum resolution M3*N3 of the display screen in the first terminal, and the size of the display screen M4*N4, the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b) is calculated, where:
[0019]
[0020] According to the row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y), and the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b), in conjunction with the proportional compression relationship between the first terminal display screen and the second terminal imaging plane, the second coordinate (X, Y) of the second pixel point is calculated; wherein the proportional compression relationship is:
[0021]
[0022] Then, the second coordinate (X, Y) of the second pixel is:
[0023]
[0024] Preferably, the step of turning on the photosensitive switches corresponding to the pixels in the photosensitive display area includes:
[0025] Divide a full pixel area containing a plurality of second pixel points in the imaging plane of the second terminal into a plurality of photosensitive areas; wherein the photosensitive area contains at least one second pixel point, and each of the photosensitive areas is controlled by a photosensitive switch;
[0026] Label the photosensitive areas in row and column order to obtain row and column information of each photosensitive area;
[0027] Obtaining row and column information of corresponding photosensitive switches in the photosensitive display area according to the first coordinate information of the pixel points in the photosensitive display area and the proportional compression relationship;
[0028] The photosensitive switch corresponding to the photosensitive area in the photosensitive display area is turned on according to the row and column information of the photosensitive switch corresponding to the photosensitive area.
[0029] Preferably, the step of obtaining the frame selection trajectory in the display screen of the first terminal and obtaining the trajectory pixel point coordinate information corresponding to the frame selection trajectory in the display screen includes:
[0030] An image edge detection algorithm is used to calculate the first pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen, so as to obtain edge pixel points;
[0031] Obtain the coordinate information of all the edge pixels corresponding to the first coordinate system to obtain the coordinate information of the track pixel points.
[0032] Preferably, the step of using an image edge detection algorithm to calculate all second pixel points at the outermost edges of the frame selection track left by the user when selecting the frame on the display screen to obtain edge pixel points includes:
[0033] Use the edge detection function f(x) to calculate the edge detection function f(x) on all adjacent pixel points a on the selected trajectory i and a i+1 The first-order derivative value at , and the edge detection function f(x) is calculated on all adjacent pixel points a on the selected trajectory. i and a i+1 The second-order derivative value at , where i∈N;
[0034] All points where the first-order derivative value is an extreme value and the second-order derivative value is zero are obtained to obtain the edge pixel points.
[0035] Preferably, after the step of setting the area enclosed based on the photosensitive pixel point coordinate information as the photosensitive display area, the method further comprises:
[0036] Marking all the edge pixels to generate marked edge lines;
[0037] Determining whether the photosensitive display area enclosed by the mark edge line is a closed area;
[0038] When the photosensitive display area is a closed area, the steps of: turning on the photosensitive switches corresponding to the pixels in the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area;
[0039] When the photosensitive display area is a non-closed area;
[0040] Obtain pixel points of at least two sides of the edge pixel points at the endpoints of the marked edge line that are not in contact with adjacent edge pixel points in the frame selection trajectory to obtain a plurality of edge marked pixel points;
[0041] Calculating the width of the marking edge line;
[0042] Taking any one of the edge marking pixel points as a starting point, respectively calculating the distance between the remaining plurality of edge marking pixel points, and taking the pixel points in the line between any two points whose distance is not equal to the width of the marking edge line as filling pixel points;
[0043] Connect all edge marking pixels and the filling pixels until the photosensitive display area is closed, and then execute the steps of: turning on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area.
[0044] Preferably, the step of determining whether the photosensitive display area enclosed by the mark edge line is a closed area includes:
[0045] Determine whether there is an edge marking pixel point in the marked edge line whose at least two sides are not in contact with adjacent edge marking pixel points;
[0046] When at least two sides of all edge marking pixel points in the marking edge line are not in contact with adjacent edge marking pixel points, the photosensitive display area is determined to be a non-closed area; otherwise, the photosensitive display area is determined to be a closed area.
[0047] In a second aspect, the present application further provides a device for realizing partial imaging of a selected area, comprising:
[0048] A frame selection trajectory acquisition module, used to acquire a frame selection trajectory in the display screen of the first terminal, and acquire the trajectory pixel point coordinate information corresponding to the frame selection trajectory in the display screen;
[0049] An imaging data acquisition module, used to acquire first imaging data of a first terminal and second imaging data of a second terminal;
[0050] a photosensitive pixel point acquisition module, configured to determine the photosensitive pixel point coordinate information corresponding to the track pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the track pixel point coordinate information and the linear proportional relationship between the first imaging data and the second imaging data;
[0051] A photosensitive display area generation module, used to set the area enclosed based on the photosensitive pixel point coordinate information as the photosensitive display area;
[0052] The photosensitive switch control module is used to turn on the photosensitive switches corresponding to the pixel points in the photosensitive display area, and turn off the photosensitive switches corresponding to the pixel points outside the photosensitive display area.
[0053] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method for partial imaging of a selected area described in any one of the above items are implemented.
[0054] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned methods for partial imaging of a selected area are implemented.
[0055] The present application discloses a method, device and medium for realizing partial imaging of a selected area, comprising obtaining a frame selection trajectory in a display screen of a first terminal, and obtaining trajectory pixel point coordinate information corresponding to the frame selection trajectory in the display screen; obtaining first imaging data of the first terminal and second imaging data of the second terminal; determining photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in an imaging plane of the second terminal according to a linear proportional relationship among the trajectory pixel point coordinate information, the first imaging data and the second imaging data; setting an area enclosed by the photosensitive pixel point coordinate information as a photosensitive display area; turning on photosensitive switches corresponding to pixels in the photosensitive display area, and turning off photosensitive switches corresponding to pixels outside the photosensitive display area, and controlling photosensitive switches corresponding to the photosensitive pixel point coordinate information in the photosensitive display area by framing the photosensitive display area to be displayed on the display screen, while turning off the remaining photosensitive switches, thereby reducing the power consumption of image sensors in non-essential display areas and improving the standby time of mobile monitoring equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A schematic flow chart of a method for implementing partial imaging of a selected area according to an embodiment;
[0057] Figure 2 It is a schematic diagram of the structure of a device for realizing partial imaging of a selected area according to an embodiment;
[0058] Figure 3 A schematic diagram of a non-closed photosensitive display area during filling according to an embodiment;
[0059] Figure 4 The present invention is a schematic block diagram of the structure of a computer device according to an embodiment.
[0060] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "a", "an", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements, units, units and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, units, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0063] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0064] Reference Figure 1 , is a method for implementing partial imaging of a selected area provided in an embodiment of the present application, comprising:
[0065] S1: Acquire a frame selection track on a display screen of a first terminal, and acquire track pixel point coordinate information corresponding to the frame selection track on the display screen;
[0066] S2: Acquire first imaging data of the first terminal and second imaging data of the second terminal;
[0067] S3: determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data;
[0068] S4: setting the area enclosed by the photosensitive pixel coordinate information as a photosensitive display area;
[0069] S5: Turning on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area.
[0070] The method for realizing partial imaging of a selected area disclosed in the present application is applicable to a portable mobile intelligent monitoring device with a built-in battery, such as a portable monitoring camera with a built-in battery; the first terminal includes intelligent mobile terminal devices such as mobile phones and tablets; a dedicated APP for the portable mobile intelligent monitoring device is installed on the first terminal, and the display screen of the first terminal is preferably set to an LCD screen for remotely controlling and managing the portable mobile intelligent monitoring device using the first terminal; the display pixel point in the display screen of the first terminal is the first pixel point, and the camera of the portable mobile intelligent monitoring device is the second terminal, and there are multiple imaging pixel points (i.e., second pixel points) in the pixel imaging plane formed by the image sensor set therein, and all pixel points in the imaging plane of the entire camera can be controlled by a total photosensitivity switch, or a pixel The point correspondence is controlled by a photosensitive switch, or the imaging plane of the camera is divided into multiple small photosensitive areas. For example, if the full pixel area contains M1*N1 second pixel points, the full pixel area can be divided into multiple small photosensitive areas containing K1*L1 second pixel points to form a photosensitive array containing multiple photosensitive areas. Each photosensitive area is controlled by a photosensitive switch to control the imaging plane. In order to facilitate the description of the positional relationship between the pixels in the first terminal and the second terminal, a first coordinate system can be established in the display screen of the first terminal. Therefore, the coordinate position of each first pixel point in the first coordinate system is uniquely determined; similarly, a first coordinate system can be established in the imaging plane of the second terminal, and the coordinate position of each second pixel point in the second coordinate system is also uniquely determined;
[0071] Then, as described in the above step S1, when the user slides on the smart terminal to determine the area range that needs to be displayed, the coordinate position of each first pixel point in the selection trajectory in the first coordinate system established on the plane where the display screen is located can be determined based on the sliding selection trajectory of the user on the display screen of the smart terminal, and the coordinates of the trajectory pixel points in the selection trajectory can be obtained, that is, the coordinate information of the trajectory pixel points is determined;
[0072] As described in the above step S2, the first imaging data of the first terminal and the second imaging data of the second terminal are obtained, wherein the first imaging data includes that the maximum resolution of the LCD screen is M3*N3, the size of the LCD display screen is M4*N4, and the second imaging data includes that the imaging plane of the camera end includes the second number of pixels M1*N1, and the size of the photosensitive chip is M2*N2; the acquisition method may be to identify the electronic product specifications of the first terminal and the second terminal,
[0073] As described in the above step S3, based on the first imaging data and the second imaging data acquired in the above step S2, a linear proportional relationship between the first imaging data and the second imaging data can be calculated, that is, a coordinate correspondence between a first pixel point in the first terminal and a second pixel point in the imaging plane of the second terminal, and based on the trajectory left by the user when sliding on the first terminal, the coordinate information of the track pixel point can be calculated, thereby calculating the coordinate information of the photosensitive pixel point of the second terminal corresponding to the track pixel point according to the linear proportional relationship;
[0074] As described in the above step S4-5, after obtaining the coordinate information of the photosensitive pixel points, the area enclosed by all the photosensitive pixel points is the photosensitive display area that the user wants to display on the LCD screen, and the photosensitive switches of the second pixel points corresponding to all the first pixel points in the photosensitive display area in the imaging plane will be controlled to be turned on, while the photosensitive switches of the second pixel points outside the photosensitive display area will be turned off, thereby realizing partial imaging of the selected area. The user can only turn on the image sensor in the corresponding photosensitive display area of the camera according to actual usage needs, thereby reducing the power consumption of the camera and increasing the standby time of the portable mobile intelligent monitoring device.
[0075] Based on the pixel row and column correspondence calculated in the above steps, the second coordinate of the first pixel corresponding to the track pixel point coordinate information in the imaging plane can be calculated, that is, the track pixel point coordinate information is correspondingly associated with the photosensitive pixel point coordinate information in the imaging plane, and the corresponding photosensitive area in the imaging plane can be obtained by the user selecting the area on the smart terminal;
[0076] As described in the above steps S3-S5, since the trajectory pixel point coordinate information has been associated with the photosensitive pixel point coordinate information in the imaging plane, the photosensitive pixel point coordinate information obtained by the first pixel corresponding to the trajectory pixel point coordinate information in the imaging plane is calculated through the pixel row and column correspondence relationship, and the coordinate information of each photosensitive pixel point is connected. The area enclosed by each photosensitive pixel point is the photosensitive display area that the user needs to shoot and monitor in the smart terminal. By obtaining the row and column information of the photosensitive area corresponding to all the second pixels in the photosensitive display area, it can be known which photosensitive switches control the second pixels in the photosensitive display area. Therefore, the photosensitive switch to which the second pixel point in the photosensitive display area belongs can be turned on, and the photosensitive switch to which the second pixel point outside the photosensitive display area belongs can be turned off to achieve partial imaging of the selected area. Therefore, the user can only turn on the image sensor in the corresponding photosensitive display area in the camera according to actual usage needs, thereby reducing the power consumption of the camera and increasing the standby time of the portable mobile intelligent monitoring device.
[0077] In one embodiment, the step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data includes:
[0078] Calculate the corresponding relationship between pixel rows and columns of the first terminal and the second terminal according to the pixel information of the first terminal and the size data of the photosensitive chip, and the pixel information of the second terminal and the screen size information;
[0079] According to the pixel row and column correspondence between the first terminal and the second terminal, and in conjunction with the proportional compression relationship between the first terminal and the second terminal, the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal is calculated.
[0080] As described above, therefore, through the pixel information of the first terminal and the size data of the photosensitive chip, as well as the pixel information and screen size information of the second terminal, that is, through the maximum resolution of the LCD screen is M3*N3, the size of the LCD display screen is M4*N4, the imaging plane of the camera end contains the second pixel number M1*N1, and the size of the photosensitive chip is M2*N2, the row and column correspondence between the first pixel point in the first terminal and the second pixel point in the imaging plane of the second terminal can be derived, and through the proportional compression relationship between the first terminal and the second terminal, the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information can be calculated, so that the photosensitive switch of the second pixel point enclosed by all photosensitive pixel points in the imaging plane of the second terminal can be turned on to achieve regional imaging.
[0081] In one embodiment, the step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data includes:
[0082] Obtaining a first coordinate (a, b) of any first pixel point in the first imaging data and a second coordinate (X, Y) of any second pixel point in the second imaging data, wherein the first coordinate (a, b) is a coordinate in a first coordinate system established by the display screen of the first terminal; and the second coordinate (X, Y) is a coordinate in a second coordinate system established by the imaging plane of the second terminal;
[0083] The row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y) is calculated according to the second coordinate (X, Y), the number of first pixels M1*N1 contained in the second terminal imaging plane, and the size M2*N2 of the photosensitive chip, wherein:
[0084]
[0085] According to the first coordinate (a, b), the maximum resolution M3*N3 of the display screen in the first terminal, and the size of the display screen M4*N4, the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b) is calculated, where:
[0086]
[0087] According to the row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y), and the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b), in conjunction with the proportional compression relationship between the first terminal display screen and the second terminal imaging plane, the second coordinate (X, Y) of the second pixel point is calculated; wherein the proportional compression relationship is:
[0088]
[0089] Then, the second coordinate (X, Y) of the second pixel is:
[0090]
[0091] As mentioned above, because the pixels exist in both the imaging plane of the second end and the imaging plane of the LCD screen, and the number of pixels M1*N1 of the imaging plane and the size of the photosensitive chip M2*N2 are different from the maximum resolution M3*N3 of the LCD imaging plane and the size of the display screen M4*N4, it is necessary to determine the correspondence between the second pixel of the imaging plane of the second end and the first pixel in the LCD screen of the first terminal, that is, it is necessary to calculate the second coordinates (X, Y) of the second pixel corresponding to the first pixel in the imaging plane according to the first coordinates (a, b) of any first pixel in the display screen. If the imaging plane of the camera end has M1*N1 pixels, the size of the photosensitive chip is M2*N2, and the maximum resolution of the LCD screen is M3*N3, L The size of the CD screen is M4*N4. On this basis, the corresponding row and column information between the second terminal imaging plane and the LCD screen can be calculated. For example, the first coordinate (a, b) is the coordinate point of any first pixel point on the LCD screen in the first coordinate system, and the second coordinate (X, Y) is the coordinate point of the second pixel point in the second coordinate system of the imaging plane; (K1, L1) is the row and column information corresponding to the coordinate point of the second coordinate (X, Y) on the imaging plane, and (K2, L2) is the row and column information corresponding to the coordinate point of the first coordinate (a, b) on the LCD screen. It can be concluded that the row and column information corresponding to the coordinate point of the second coordinate (X, Y) on the imaging plane corresponds to the corresponding relationship between the M1*N1 pixel points on the imaging plane and the size M2*N2 of the photosensitive chip:
[0092]
[0093] Similarly, the row and column information corresponding to the coordinate point of the first coordinate (a, b) on the LCD screen can correspond to the maximum resolution M3*N3 of the LCD screen and the size M4*N4 of the LCD screen:
[0094]
[0095] At the same time, according to the proportional compression relationship between the LCD screen and the imaging plane at the second end:
[0096]
[0097] From the above formula, we can deduce that the second coordinate (X, Y) is relative to the first coordinate (a, b), that is, the corresponding relationship between the coordinate information of the track pixel point and the coordinate information of the photosensitive pixel point is:
[0098]
[0099] In one embodiment, the step of turning on the photosensitive switches corresponding to the pixels within the photosensitive display area and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area includes:
[0100] Divide a full pixel area containing a plurality of second pixel points in the imaging plane of the second terminal into a plurality of photosensitive areas; wherein the photosensitive area contains at least one second pixel point, and each of the photosensitive areas is controlled by a photosensitive switch;
[0101] Label the photosensitive areas in row and column order to obtain row and column information of each photosensitive area;
[0102] According to the first coordinate information of the pixel point in the photosensitive display area and the proportional compression relationship, the row and column information of the photosensitive switch corresponding to the pixel point in the photosensitive display area is obtained;
[0103] The photosensitive switch corresponding to the photosensitive area is turned on according to the row and column information of the photosensitive switch corresponding to the pixel point in the photosensitive display area.
[0104] As described above, in order to reduce the number of photosensitivity switches of the second pixel points in the second terminal, the full pixel area containing multiple second pixel points in the imaging plane can be divided into multiple photosensitivity areas. For example, if the full pixel area contains M1*N1 second pixel points, the full pixel area can be divided into multiple small photosensitivity areas containing K1*L1 second pixel points to form a photosensitivity array containing multiple photosensitivity areas, and each photosensitivity area is numbered according to the row and column order of the array to obtain the row and column information A corresponding to each photosensitivity area. mn ; m, n∈N, where m represents the number of rows of the photosensitive area and n represents the number of columns of the photosensitive area. For example, the first row is A 11 , A 12 , …, A 1n The first column is A 11 , A 21 , …, A m1 , each photosensitive area is controlled by an independent photosensitive switch, so that the user can control whether the corresponding photosensitive area is turned on or off according to the area to be displayed;
[0105] Therefore, after obtaining the first coordinate information of the pixel point in the photosensitive display area, the proportional compression relationship obtained through the above steps, that is, the pixel row and column correspondence relationship, can be used to calculate the row and column information of the photosensitive chip corresponding to each second pixel point in the photosensitive display area in the second terminal, and the corresponding photosensitive switch will be turned on according to the row and column information of the corresponding photosensitive switch, that is, all the photosensitive switches contained in the photosensitive display area are turned on, and all the photosensitive switches not in the photosensitive display area are turned off; because each photosensitive area contains K1*L1 second pixel points, the second pixel points in the same photosensitive area are controlled by the same photosensitive switch, thereby reducing the number of photosensitive switches for the second pixel points in the second terminal.
[0106] In one embodiment, the step of obtaining a frame selection trajectory on a display screen of the first terminal and obtaining coordinate information of track pixel points corresponding to the frame selection trajectory on the display screen includes:
[0107] An image edge detection algorithm is used to calculate the first pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen, so as to obtain edge pixel points;
[0108] Obtain the coordinate information of all the edge pixels corresponding to the first coordinate system to obtain the coordinate information of the track pixel points.
[0109] As described above, when calculating all the first pixel points on the edge of the selection trajectory left by the user when selecting a frame on the display screen, an image edge detection algorithm can be used, using the edge detection function f(x) and a differential operator to calculate and detect the pixel grayscale values of the edge pixels of the image. If the pixel grayscale value has a sudden change, it indicates that the current first pixel point and the adjacent pixel points are discontinuous pixels, that is, the current first pixel point is an edge pixel point; based on the coordinate position of the edge pixel point corresponding to the first coordinate system, the trajectory pixel point coordinate information can be obtained.
[0110] In one embodiment, the step of using an image edge detection algorithm to calculate the first pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen to obtain edge pixel points includes:
[0111] Use the edge detection function f(x) to calculate the edge detection function f(x) on all adjacent pixel points a on the selected trajectory i and a i+1 The first-order derivative value at , and the edge detection function f(x) is calculated on all adjacent pixel points a on the selected trajectory. i and a i+1 The second-order derivative value at , where i∈N;
[0112] All points where the first-order derivative value is an extreme value and the second-order derivative value is zero are obtained to obtain the edge pixel points.
[0113] As mentioned above, for the edge detection function f(x), at the edge pixel a i and a i+1 At the edge pixel a i and a i+1 The first-order derivative of the edge detection function f(x) at the position is expressed as an extreme point, including a maximum or a minimum, while the second-order derivative is expressed as a zero-crossing point, i.e., a i and a i+1 The second-order derivative is 0, so we can find the edge pixel points of all the tracks on the LCD screen, which are (a0, b0), (a1, b1), (a2, b2)…(a i , b i );
[0114] Furthermore, the edge pixels obtained above are (a0, b0), (a1, b1), (a2, b2)…(a i , b i ), calculate the corresponding pixel information of the edge pixel of the track in the photosensitive chip, and use the above pixel row and column correspondence to calculate each edge pixel (a0, b0), (a1, b1), (a2, b2)…(a i , b i ) can get the corresponding pixel points (X0, Y0), (X1, Y1), (X2, Y2)…(X i , Y i );
[0115] Each small photosensitive area has a corresponding row and column sequence number. According to the first coordinate system, all edge pixels (X0, Y0), (X1, Y1), (X2, Y2)... (X i , Y i ) corresponding to the photosensitive area A mn The closed area surrounded by the edge pixels is summarized as the image photosensitive display area, and the photosensitive switches to which each pixel in the photosensitive display area surrounded by the edge pixels belongs can be known according to the row and column information of the photosensitive area, so that the photosensitive switches to which each pixel in the photosensitive display area belongs can be controlled to realize the frame selection area display.
[0116] Reference Figure 3 In one embodiment, after the step of setting the area enclosed based on the photosensitive pixel coordinate information as the photosensitive display area, the following steps are included:
[0117] Marking all the edge pixels to generate marked edge lines;
[0118] Determining whether the photosensitive display area enclosed by the mark edge line is a closed area;
[0119] When the photosensitive display area is a closed area, the steps of: turning on the photosensitive switches corresponding to the pixels in the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area;
[0120] When the photosensitive display area is a non-closed area;
[0121] Obtain pixel points of at least two sides of the edge pixel points at the endpoints of the marked edge line that are not in contact with adjacent edge pixel points in the frame selection trajectory to obtain a plurality of edge marked pixel points;
[0122] Calculating the width of the marking edge line;
[0123] Taking any one of the edge marking pixel points as a starting point, respectively calculating the distance between the remaining plurality of edge marking pixel points, and taking the pixel points in the line between any two points whose distance is not equal to the width of the marking edge line as filling pixel points;
[0124] Connect all edge marking pixels and the filling pixels until the photosensitive display area is closed, and then execute the steps of: turning on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area.
[0125] As described above, after the step of setting the area enclosed by the photosensitive pixel coordinate information as the photosensitive display area, it is necessary to determine whether the photosensitive display area is a closed area. For example, the photosensitive display area is a rectangular shape, and all edge pixels in the frame selection track when the user selects a frame on the LCD screen are marked to generate a marked edge line; for example, all edge pixels in the frame selection track are temporarily marked as red by adding color, and the area enclosed by the marked edge line can be determined by whether at least two sides of the edge marked pixel in the frame selection track are not in contact with adjacent edge marked pixel points. Whether the formed photosensitive display area is a closed area, if all the edge marking pixels in the marking edge line have at least two sides in contact with the adjacent edge marking pixels, the photosensitive display area is determined to be a non-closed area, otherwise the photosensitive display area is determined to be a closed area; when the photosensitive display area is a non-closed area, that is, there is a gap at the end point of the frame selection trajectory, at this time, among all the edge pixels at the end point of the marking edge line, there are at least two pixels whose at least two sides are not in contact with the adjacent edge pixels in the frame selection trajectory. The photosensitive display area is described as a rectangular shape. It is clear that at least the two most side pixel points at the endpoints of the frame selection trajectory have at least two sides that are not in contact with the adjacent edge pixel points in the frame selection trajectory. The frame selection trajectory has two endpoints, and the non-closed-loop frame selection trajectory has at least four pixel points P1, P2, P3 and P4 that have at least two sides that are not in contact with the adjacent edge pixel points in the frame selection trajectory. Take one of the pixel points as the starting point of P1, and connect the remaining three pixel points P2, P3 and P4 whose at least two sides are not in contact with the adjacent edge pixel points in the frame selection trajectory respectively, and obtain the distances P1P2, P1P3 and P1P4 of the three connecting line segments. Similarly, it can also be Taking P3 as the starting point, connect P1, P2 and P4 respectively to obtain the distances P3P1, P3P1 and P3P4 of the three connecting line segments. Since the pixel points P1 and P2 are on different sides of the same endpoint, the distance P1P2 is the width of the marked edge line. The pixel points P3 and P4 are on different sides of the same endpoint, so the distance P3P4 is also the width of the marked edge line. Then all the pixel points in the continuous area between P1P3, P1P4, P3P1 and P3P1 are filling pixels. By connecting all the edge marking pixels and the filling pixels, a closed photosensitive display area can be obtained.
[0126] In one embodiment, the step of determining whether the photosensitive display area enclosed by the mark edge line is a closed area includes:
[0127] Determine whether there is an edge marking pixel point in the marked edge line whose at least two sides are not in contact with adjacent edge marking pixel points;
[0128] When at least two sides of all edge marking pixel points in the marking edge line are not in contact with adjacent edge marking pixel points, the photosensitive display area is determined to be a non-closed area; otherwise, the photosensitive display area is determined to be a closed area.
[0129] As described above, when there are edge marking pixels in the marking edge line that are not in contact with adjacent edge marking pixels on at least two sides, all edge pixels in the frame selection trajectory when the user selects a frame on the LCD screen are marked to generate a marking edge line; for example, all edge pixels in the frame selection trajectory are temporarily marked as red by coloring them, then it can be determined whether the photosensitive display area enclosed by the marking edge line is a closed area by whether there are edge marking pixels in the frame selection trajectory that are not in contact with adjacent edge marking pixels on at least two sides; if all edge marking pixels in the marking edge line are not in contact with adjacent edge marking pixels on at least two sides, the photosensitive display area is determined to be a non-closed area; otherwise, the photosensitive display area is determined to be a closed area.
[0130] Second, refer to Figure 3 The present application also provides a device for realizing partial imaging of a selected area, comprising:
[0131] The frame selection trajectory acquisition module 100 is used to acquire the frame selection trajectory in the display screen of the first terminal, and acquire the trajectory pixel point coordinate information corresponding to the frame selection trajectory in the display screen;
[0132] An imaging data acquisition module 200 is used to acquire first imaging data of a first terminal and second imaging data of a second terminal;
[0133] A photosensitive pixel point acquisition module 300, configured to determine the photosensitive pixel point coordinate information corresponding to the track pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the track pixel point coordinate information and the linear proportional relationship between the first imaging data and the second imaging data;
[0134] A photosensitive display area generating module 400, configured to set an area enclosed by the photosensitive pixel point coordinate information as a photosensitive display area;
[0135] The photosensitive switch control module 500 is used to turn on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turn off the photosensitive switches corresponding to the pixels outside the photosensitive display area.
[0136] In one embodiment, the photosensitive pixel acquisition module 300 is further used for:
[0137] Calculate the corresponding relationship between pixel rows and columns of the first terminal and the second terminal according to the pixel information of the first terminal and the size data of the photosensitive chip, and the pixel information of the second terminal and the screen size information;
[0138] According to the pixel row and column correspondence between the first terminal and the second terminal, and in conjunction with the proportional compression relationship between the first terminal and the second terminal, the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal is calculated.
[0139] In one embodiment, the photosensitive pixel acquisition module 300 includes:
[0140] a coordinate establishing unit, used for acquiring a first coordinate (a, b) of any first pixel point in the first imaging data and a second coordinate (X, Y) of any second pixel point in the second imaging data, wherein the first coordinate (a, b) is a coordinate in a first coordinate system established by the display screen of the first terminal; and the second coordinate (X, Y) is a coordinate in a second coordinate system established by the imaging plane of the second terminal;
[0141] The first calculation unit is used to calculate the row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y) according to the second coordinate (X, Y), the number M1*N1 of the first pixel points contained in the second terminal imaging plane, and the size M2*N2 of the photosensitive chip, wherein:
[0142]
[0143] The second calculation unit is used to calculate the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b) according to the first coordinate (a, b), the maximum resolution M3*N3 of the display screen in the first terminal, and the size of the display screen M4*N4, wherein:
[0144]
[0145] The third calculation unit is used to calculate the second coordinate (X, Y) of the second pixel point according to the row and column information (K1, L1) of the second terminal imaging plane corresponding to the second coordinate (X, Y) and the row and column information (K2, L2) of the display screen corresponding to the first coordinate (a, b), in conjunction with the proportional compression relationship between the first terminal display screen and the second terminal imaging plane; wherein the proportional compression relationship is:
[0146]
[0147] Then, the second coordinate (X, Y) of the second pixel is:
[0148]
[0149] In one embodiment, the light-sensitive switch control module 500 includes:
[0150] A region division unit, used to divide a full pixel region containing a plurality of second pixel points in the imaging plane of the second terminal into a plurality of photosensitive regions; wherein the photosensitive region contains at least one second pixel point, and each of the photosensitive regions is controlled by a photosensitive switch;
[0151] A photosensitive area labeling unit, used to label the photosensitive areas in row and column order to obtain row and column information of each photosensitive area;
[0152] A row and column information acquisition unit, configured to obtain row and column information of the corresponding photosensitive switches in the photosensitive display area according to the first coordinate information of the pixel points in the photosensitive display area and the proportional compression relationship;
[0153] The photosensitive switch control unit is used to turn on the photosensitive switch corresponding to the photosensitive area according to the row and column information of the photosensitive switch corresponding to the photosensitive area in the photosensitive display area.
[0154] In one embodiment, the frame selection trajectory acquisition module 100 further includes an edge detection unit, and the edge detection unit is used to:
[0155] Using an image edge detection algorithm, calculate the second pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen, and obtain edge pixel points;
[0156] The first coordinates of all the edge pixels corresponding to the second coordinate system are obtained to obtain the coordinate information of the track pixel points.
[0157] In one embodiment, the edge detection unit is further configured to:
[0158] Use the edge detection function f(x) to calculate the edge detection function f(x) on all adjacent pixel points a on the selected trajectory i and a i+1 The first-order derivative value at , and the edge detection function f(x) is calculated on all adjacent pixel points a on the selected trajectory. i and a i+1 The second-order derivative value at , where i∈N;
[0159] All points where the first-order derivative value is an extreme value and the second-order derivative value is zero are obtained to obtain the edge pixel points.
[0160] In one embodiment, the device further comprises a filling unit, wherein the filling unit is used to:
[0161] Marking all the edge pixels to generate marked edge lines;
[0162] Determining whether the photosensitive display area enclosed by the mark edge line is a closed area;
[0163] When the photosensitive display area is a closed area, the steps of: turning on the photosensitive switches corresponding to the pixels in the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area;
[0164] When the photosensitive display area is a non-closed area;
[0165] Obtain pixel points of at least two sides of the edge pixel points at the endpoints of the marked edge line that are not in contact with adjacent edge pixel points in the frame selection trajectory to obtain a plurality of edge marked pixel points;
[0166] Calculating the width of the marking edge line;
[0167] Taking any one of the edge marking pixel points as a starting point, respectively calculating the distance between the remaining plurality of edge marking pixel points, and taking the pixel points in the line between any two points whose distance is not equal to the width of the marking edge line as filling pixel points;
[0168] Connect all edge marking pixels and the filling pixels until the photosensitive display area is closed, and then execute the steps of: turning on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area.
[0169] In one embodiment, the filling unit is further used for:
[0170] Determine whether there is an edge marking pixel point in the marked edge line whose at least two sides are not in contact with adjacent edge marking pixel points;
[0171] When at least two sides of all edge marking pixel points in the marking edge line are not in contact with adjacent edge marking pixel points, the photosensitive display area is determined to be a non-closed area; otherwise, the photosensitive display area is determined to be a closed area.
[0172] Reference Figure 4 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data generated by the partial imaging of the selected area, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the partial imaging of the selected area is implemented.
[0173] Those skilled in the art will understand that Figure 4 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0174] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a method for implementing partial imaging of a selected area is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0175] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0176] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0177] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for realizing partial imaging of a selected area, characterized in that: include: Acquire a frame selection track on a display screen of the first terminal, and acquire track pixel point coordinate information corresponding to the frame selection track on the display screen; Acquire first imaging data of a first terminal and second imaging data of a second terminal; wherein the first terminal includes a mobile terminal device, and the second terminal includes a camera of an intelligent monitoring device; Determine, according to a linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data, and the second imaging data, photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in an imaging plane of the second terminal; Setting the area enclosed based on the photosensitive pixel coordinate information as a photosensitive display area; Turning on the photosensitive switches corresponding to the pixels within the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area; The step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data comprises: Calculate the pixel row and column correspondence between the first terminal and the second terminal according to the pixel information of the first terminal and the size data of the photosensitive chip, and the pixel information of the second terminal and the screen size information; According to the pixel row and column correspondence relationship between the first terminal and the second terminal, and in conjunction with the proportional compression relationship between the first terminal and the second terminal, calculate the photosensitive pixel point coordinate information corresponding to the track pixel point coordinate information in the first terminal in the imaging plane of the second terminal; The step of turning on the photosensitive switches corresponding to the pixels in the photosensitive display area includes: Divide a full pixel area containing a plurality of second pixel points in the imaging plane of the second terminal into a plurality of photosensitive areas; wherein the photosensitive area contains at least one second pixel point, and each of the photosensitive areas is controlled by a photosensitive switch; Label the photosensitive areas in row and column order to obtain row and column information of each photosensitive area; Obtaining row and column information of corresponding photosensitive switches in the photosensitive display area according to the first coordinate information of the pixel points in the photosensitive display area and the proportional compression relationship; Turning on the photosensitive switch corresponding to the photosensitive area according to row and column information of the photosensitive switch corresponding to the photosensitive area in the photosensitive display area; The step of obtaining the frame selection trajectory on the display screen of the first terminal and obtaining the trajectory pixel point coordinate information corresponding to the frame selection trajectory on the display screen includes: An image edge detection algorithm is used to calculate the first pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen, so as to obtain edge pixel points; Obtaining coordinate information of all edge pixels corresponding to the first coordinate system to obtain coordinate information of the track pixel points; After the step of setting the area enclosed based on the photosensitive pixel coordinate information as the photosensitive display area, the method further comprises: Marking all the edge pixels to generate marked edge lines; Determining whether the photosensitive display area enclosed by the mark edge line is a closed area; When the photosensitive display area is a closed area, the steps of: turning on the photosensitive switches corresponding to the pixels in the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area; When the photosensitive display area is a non-closed area; Obtain pixel points of at least two sides of the edge pixel points at the endpoints of the marked edge line that are not in contact with adjacent edge pixel points in the frame selection trajectory to obtain a plurality of edge marked pixel points; Calculating the width of the marking edge line; Taking any one of the edge marking pixel points as a starting point, respectively calculating the distances between the remaining plurality of edge marking pixel points, and taking the pixel points in the line between any two points whose distance is not equal to the width of the marking edge line as filling pixel points; Connecting all edge marking pixels and the filling pixels until the photosensitive display area is closed, and then executing the steps of: turning on the photosensitive switches corresponding to the pixels in the photosensitive display area, and turning off the photosensitive switches corresponding to the pixels outside the photosensitive display area; The step of determining whether the photosensitive display area enclosed by the mark edge line is a closed area includes: Determine whether there is an edge marking pixel point in the marked edge line whose at least two sides are not in contact with adjacent edge marking pixel points; When at least two sides of all edge marking pixel points in the marking edge line are not in contact with adjacent edge marking pixel points, the photosensitive display area is determined to be a non-closed area; otherwise, the photosensitive display area is determined to be a closed area.
2. The method for realizing partial imaging of a selected area according to claim 1, characterized in that: The step of determining the photosensitive pixel point coordinate information corresponding to the trajectory pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the linear proportional relationship between the trajectory pixel point coordinate information, the first imaging data and the second imaging data comprises: Acquire a first coordinate (a, b) of any first pixel point in the first imaging data and a second coordinate (X, Y) of any second pixel point in the second imaging data, wherein the first coordinate (a, b) is a coordinate in a first coordinate system established by the display screen of the first terminal; and the second coordinate (X, Y) is a coordinate in a second coordinate system established by the imaging plane of the second terminal; According to the second coordinate (X, Y), the number of first pixels contained in the second terminal imaging plane * And the size of the photosensitive chip * Calculate the row and column information of the second terminal imaging plane corresponding to the second coordinate (X, Y) , ),in: = , = ; According to the first coordinates (a, b), the maximum resolution of the display screen in the first terminal * , and the size of the display screen is * , calculate the row and column information of the display screen corresponding to the first coordinate (a, b) ( , ),in: = , = ; According to the row and column information of the second terminal imaging plane corresponding to the second coordinate (X, Y) , ), and the first coordinate (a, b) corresponds to the row and column information of the display screen ( , ), and calculating the second coordinate (X, Y) of the second pixel point in accordance with the proportional compression relationship between the display screen of the first terminal and the imaging plane of the second terminal; wherein the proportional compression relationship is: = , = ; Then, the second coordinate (X, Y) of the second pixel is: = , = 。 3. The method for realizing partial imaging of a selected area according to claim 1, characterized in that: The step of using an image edge detection algorithm to calculate the first pixel points at the outermost edges of all the frame selection tracks left by the user when selecting the frame on the display screen to obtain edge pixel points includes: Use the edge detection function f(x) to calculate the adjacent pixel points of the edge detection function f(x) on all the frame selection trajectories and The first-order derivative value at , and the calculation of the edge detection function f(x) on all adjacent pixel points of the frame selection trajectory and The second-order derivative value at , where i∈N; All points where the first-order derivative value is an extreme value and the second-order derivative value is zero are obtained to obtain the edge pixel points.
4. A device for implementing partial imaging of a selected area, used to execute the method according to any one of claims 1 to 3, characterized in that: include: A frame selection trajectory acquisition module, used to acquire a frame selection trajectory in the display screen of the first terminal, and acquire the trajectory pixel point coordinate information corresponding to the frame selection trajectory in the display screen; An imaging data acquisition module, used to acquire first imaging data of a first terminal and second imaging data of a second terminal; a photosensitive pixel point acquisition module, configured to determine the photosensitive pixel point coordinate information corresponding to the track pixel point coordinate information in the first terminal in the imaging plane of the second terminal according to the track pixel point coordinate information and the linear proportional relationship between the first imaging data and the second imaging data; A photosensitive display area generation module, used to set the area enclosed based on the photosensitive pixel point coordinate information as the photosensitive display area; The photosensitive switch control module is used to turn on the photosensitive switches corresponding to the pixel points in the photosensitive display area, and turn off the photosensitive switches corresponding to the pixel points outside the photosensitive display area.
5. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method for partial imaging of a selected area according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Information acquiring method and electronic equipment
CN104951356A
Electronic device and control method thereof
CN108650443A