CN113473112A - Region-of-interest determining method, photographing control method, device, equipment and medium - Google Patents

Region-of-interest determining method, photographing control method, device, equipment and medium Download PDF

Info

Publication number
CN113473112A
CN113473112A CN202110700313.8A CN202110700313A CN113473112A CN 113473112 A CN113473112 A CN 113473112A CN 202110700313 A CN202110700313 A CN 202110700313A CN 113473112 A CN113473112 A CN 113473112A
Authority
CN
China
Prior art keywords
region
area
image
camera
interest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110700313.8A
Other languages
Chinese (zh)
Inventor
李腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Information Technology Co Ltd
Original Assignee
Xian Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Information Technology Co Ltd filed Critical Xian Wingtech Information Technology Co Ltd
Priority to CN202110700313.8A priority Critical patent/CN113473112A/en
Publication of CN113473112A publication Critical patent/CN113473112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to the technical field of image quality evaluation, and provides a method for determining a region of interest, a shooting control method, a shooting control device, equipment and a medium. The method for determining the region of interest comprises the following steps: determining the picture area of an image preview picture, and determining the area of an interested area corresponding to the camera to be tested according to the picture area; determining a candidate region frame of the region of interest according to the color card image and the region area; moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area; the target area box is displayed in the graphical user interface. The corresponding region of interest can be automatically determined according to the image preview picture shot by the camera to be tested, the flexibility is good, the camera to be tested is indicated to shoot a test image for testing the quality of the camera to be tested based on the determined region of interest through the determined region of interest, and the effectiveness and the consistency of the image shot by the camera to be tested are ensured.

Description

Region-of-interest determining method, photographing control method, device, equipment and medium
Technical Field
The present application relates to the field of image quality evaluation technologies, and in particular, to a method for determining a region of interest, a method for capturing images, and a corresponding apparatus, computer device, and computer-readable storage medium.
Background
In the objective test of the image with the camera equipment, a plurality of test items need to shoot 24 color cards and gray scale cards under different light sources, the shooting quantity is large, the selection proportion of the interested areas of the 24 color cards and the gray scale cards shot at each time is closely related to objective test results, different clients (different camera equipment to be tested) have different requirements on the selection proportion of the interested areas in the objective test, the region of interest is selected manually and tested accurately, particularly, the selection of the interested areas in the objective test of the front camera is not easy to control, the shooting is not accurate in the test process, the test data is inaccurate, and the data validity and consistency of the objective test are seriously affected.
Disclosure of Invention
In view of the above, embodiments of the present application are proposed in order to provide a method of determining a region of interest, a photographing method and corresponding apparatuses, computer devices and computer readable storage media that overcome or at least partially address the above-mentioned problems.
In order to solve the above problems, an embodiment of the present application discloses a method for determining a region of interest, where an application is executed on a processor of a terminal device and a graphical user interface is obtained by rendering on a display screen of the terminal device, where the graphical user interface at least includes an image preview picture taken by a camera to be tested; the image preview picture comprises a color card image of a test color card; the method comprises the following steps:
determining the picture area of the image preview picture, and determining the area of the region of interest corresponding to the camera to be tested according to the picture area;
determining a candidate region frame of the region of interest according to the color card image and the region area;
moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area;
displaying the target area box in the graphical user interface.
In one embodiment, the determining a candidate region box of the region of interest according to the color chart image and the region area includes:
determining an initial region frame of the region of interest according to the contour of the color card image;
and performing equal-scale enlargement or reduction on the initial region frame, and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In an embodiment, the determining, according to the screen area, an area of an area of interest corresponding to the camera to be measured includes:
acquiring a test requirement corresponding to the camera to be tested, wherein the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
The embodiment of the application discloses a shooting control method, which comprises the following steps:
acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by executing the method for determining the region of interest provided by the embodiment;
and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
In an embodiment, the adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected includes:
adjusting the position of the camera to be detected according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In one embodiment, the adjusting the position of the camera to be measured according to the image area of the color chart image and the area of the region of interest includes:
when the image area of the color card image is smaller than the area, indicating the camera to be tested to move towards the direction close to the test color card;
and when the graphic area of the color card image is larger than the area, indicating the camera to be tested to move towards the direction far away from the test color card.
The embodiment of the application provides a device for determining a region of interest, wherein a graphical user interface is obtained by executing an application program on a processor of a terminal device and rendering on a display screen of the terminal device, and the graphical user interface at least comprises an image preview picture shot by a camera to be tested; the image preview picture comprises a color card image of a test color card; the device comprises:
the area determining module is used for determining the picture area of the image preview picture and determining the area of an interesting area corresponding to the camera to be tested according to the picture area;
a candidate region frame determining module, configured to determine a candidate region frame of the region of interest according to the color chart image and the region area;
a target area frame determining module, configured to move the center of the candidate area frame to the center of the image preview screen to obtain a target area frame of the region of interest;
and the target area frame display module is used for displaying the target area frame in the graphical user interface.
In one embodiment, the candidate region box determination module includes:
an initial region frame determining module, configured to determine an initial region frame of the region of interest according to the contour of the color chart image;
and the initial region frame zooming module is used for carrying out equal-scale enlargement or reduction on the initial region frame and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In one embodiment, the region area determination module includes:
the test requirement determining module is used for acquiring a test requirement corresponding to the camera to be tested, and the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and the area calculating module is used for determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
The embodiment of the application provides a shoot controlling means, the device includes:
the image acquisition module is used for acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
the position adjusting module is used for adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by executing the method for determining the region of interest provided by the embodiment;
and the shooting control module is used for controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
In one embodiment, the position adjustment module includes:
the first adjusting module is used for adjusting the position of the camera to be detected according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and the second adjusting module is used for adjusting the position of the camera to be detected according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In one embodiment, the first adjusting module includes:
the first moving module is used for indicating the camera to be tested to move towards the direction close to the test color card when the image area of the color card image is smaller than the area of the region;
and the second moving module is used for indicating the camera to be tested to move towards the direction far away from the test color card when the graphic area of the color card image is larger than the area of the region.
The embodiment of the application provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the steps of the method for determining the region of interest or the shooting control method provided by any embodiment of the application.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for determining a region of interest or the shooting control method provided in any embodiment of the present application.
Compared with the background art, the embodiment of the application has the following advantages:
in the embodiment of the application, the area of the region of interest corresponding to the camera to be tested is determined by determining the picture area of the image preview picture and according to the picture area; determining a candidate region frame of the region of interest according to the color card image and the region area; moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area; displaying the target area box in the graphical user interface. The corresponding region of interest can be automatically determined according to the image preview picture shot by the camera to be tested, the flexibility is good, the camera to be tested is instructed to shoot a test image for testing the quality of the camera to be tested based on the determined region of interest, and the effectiveness and consistency of the image shot by the camera to be tested are ensured.
Drawings
FIG. 1 is a flow chart illustrating the steps of a method for determining a region of interest in one embodiment;
FIG. 2 is a flow chart illustrating steps of a photographing control method according to an embodiment;
FIG. 3 is a diagram illustrating shooting a target scene in one embodiment;
FIG. 4 is a diagram illustrating screen projection effects in one embodiment;
fig. 5 is a flowchart illustrating steps of a photographing control method in a specific example;
FIG. 6 is a block diagram of an embodiment of a region of interest determining apparatus;
FIG. 7 is a block diagram showing the configuration of a photographing control apparatus according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In an embodiment, as shown in fig. 1, a method for determining a region of interest is provided, in which an application is executed on a processor of a terminal device and a graphical user interface is rendered on a display screen of the terminal device, and the graphical user interface at least includes an image preview picture taken by a camera to be tested; the image preview picture comprises a color card image of the test color card.
The application program may be screen projection software, and specifically, when the device with the camera to be subjected to the objective image test is a mobile phone, the application program may be Vysor software (a mobile phone screen projection application program), and may project a picture displayed on a display screen of the mobile phone, which is shot by a camera to be tested of the mobile phone, onto a display screen of the terminal device, so as to facilitate a user to observe a situation of the picture shot by the camera to be tested in a test process, and adaptively adjust the mobile phone or a scene shot by the camera to be tested according to the observed situation. The terminal device can be an electronic device with a display screen, such as a computer. In this embodiment, an exemplary description is given by taking the camera to be measured as a mobile phone camera.
In this embodiment, the method may specifically include the following steps:
step 101, determining the picture area of an image preview picture, and determining the area of the region of interest corresponding to the camera to be tested according to the picture area.
In this embodiment, before performing objective testing on an image collected by a camera of a mobile phone, the mobile phone to be tested needs to be connected to a terminal device (e.g., a computer), and the specific connection manner may include any one of the following: connecting the mobile phone to be tested with the terminal equipment through a data line; connecting a mobile phone to be tested with terminal equipment through a network; and connecting the mobile phone to be tested with the terminal through Bluetooth, and the like.
And screen projection software is installed in the terminal equipment, so that the content displayed on the screen of the mobile phone can be projected into the display screen of the terminal equipment for display.
The objective image test requires that the mobile phone camera shoots 24 color cards and gray scale cards under different light sources, the shooting quantity is large, the selection proportion of the Region of interest (ROI) of the 24 color cards and the gray scale cards shot each time is the same, and the requirement of a client on the test is met.
In the field of image processing, a region of interest is an image region selected from an image, which is a focus of interest for image analysis. Therefore, it is desirable to delineate regions of interest in the image in order to reduce the time for further processing.
In the process of obtaining the client test image, the target scene is shot through the mobile phone camera, an image preview picture of the target scene shot by the camera displayed on the mobile phone screen is displayed on the display screen of the terminal equipment, and the picture area of the image preview picture displayed on the display screen of the terminal equipment can be further determined. The target scene is generally composed of a white background plate and a test color card fixed on the background plate, wherein the test color card can comprise a 24-color card, a gray scale card and the like, and is determined according to actual requirements.
Referring to fig. 3 and 4, fig. 3 is a schematic diagram of a target scene photographed by the apparatus having a camera to be tested in the present example; fig. 4 is a schematic view of the screen projection effect of a preview screen obtained by shooting a target scene by a device with a camera to be tested on a terminal device in the present example.
As shown in fig. 3, the device with the camera to be tested is a mobile phone, and the target scene includes a test color card. A tripod is supported in the lamp box to fix the mobile phone to aim at a target scene for shooting. It should be noted that, when the camera to be tested is a front-facing camera of a mobile phone, the direction of the mobile phone screen in fig. 3 is opposite to that of the current screen, and it is inconvenient for a user to operate the photographing function of the mobile phone, so that it is more necessary to project the picture displayed on the mobile phone screen to the display screens of other terminal devices in combination with the screen projecting application for displaying.
The area of the interested area of the image preview picture can be determined according to the picture area of the image preview picture. The method specifically comprises the following steps:
acquiring a test requirement corresponding to the camera to be tested, wherein the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
The method comprises the steps of obtaining a test requirement corresponding to a camera to be tested, determining the proportional relation between an interested area and an image preview picture, and determining the area of the interested area of the image preview picture according to the proportional relation and the picture area of the image preview picture.
For example, when the area of the region of interest in the objective test requirement of the customer should be 70% of the image preview screen, the area of the region of interest of the image preview screen may be determined to be screen area × 70%.
In an optional embodiment of the present application, the client test requirements corresponding to each camera to be tested may be stored in advance. When the mobile phone is connected with the terminal equipment, the model of the mobile phone to be tested can be determined, and then the testing requirement of the camera to be tested of the mobile phone is determined according to the model of the mobile phone to be tested from the pre-stored corresponding relation between each camera to be tested and the testing requirement. After the area of the image preview picture shot by the camera to be tested is determined, the area of the interested area of the image preview picture is determined according to the obtained test requirement.
And step 102, determining a candidate region frame of the region of interest according to the color card image and the region area.
In the embodiment, the image preview screen includes the color card image of the test color card, and since the image for testing requires the color card image to be in the region of interest of the image preview screen, the candidate region frame of the region of interest can be determined according to the color card image and the region area. The method specifically comprises the following steps:
determining an initial region frame of the region of interest according to the contour of the color card image;
and performing equal-scale enlargement or reduction on the initial region frame, and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In this embodiment, the preview image includes a color chart image of the test color chart. Typically, the test color chip is rectangular, and accordingly, the color chip image is also rectangular. The outer contour of the color card image, i.e. the rectangular frame of the color card image, can be acquired as the initial region frame of the region of interest. It will be appreciated that the initial region box of the region of interest is determined from the contour of the color chart image.
After the initial region box is determined, the selection area of the initial region box selection can be further determined. The boxed area is compared to the area of the region of interest. And if the frame selection area is not equal to the area of the region, carrying out equal-proportion amplification or reduction on the initial region frame to enable the frame selection area to be equal to the area of the region, and determining the initial region frame at the moment as a candidate region frame of the region of interest.
Specifically, if the frame selection area is smaller than the area, the initial area frame is enlarged, so that the frame selection area is equal to the area. If the frame selection area is larger than the area of the region, the initial region frame is reduced, so that the frame selection area is equal to the area of the region.
In an alternative embodiment, the process of performing an equal-scale enlargement or reduction on the initial region box and determining the initial region box with the box area equal to the region area as the candidate region box of the region of interest may include:
determining the frame selection area of the initial region frame;
calculating a first proportion of the frame selection area to the area of the region;
and adjusting the initial region frame according to the first proportion to obtain a candidate region frame of the region of interest.
In this embodiment, by calculating the first ratio between the frame selection area and the area, the times that the initial area frame needs to be enlarged/reduced may be determined, and then the operation of enlarging or reducing the initial area frame in an equal proportion is performed according to the times, so that the frame selection area of the initial area frame is equal to the area, and the initial area frame at this time is a candidate area frame of the region of interest. It is understood that the initial region frame refers to a region frame similar to the outer contour of the region of interest of the image preview screen; the candidate region frame is a region frame equal to the outer contour of the region of interest in the video preview screen.
And 103, moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area.
After the candidate area frame of the area of interest is determined, the center of the candidate area frame of the area of interest is moved to the center of the image preview picture, and the target area frame of the area of interest is obtained. It is understood that the target region frame of the region of interest refers to a region frame that coincides with the outer contour of the region of interest on the image preview screen. That is, the image framed by the target area frame is the region of interest of the movie preview screen.
Generally, the image preview screen is rectangular, and the region of interest is a screen having a certain area in the center of the image preview screen. And judging whether the center of the image preview picture is overlapped with the center of the candidate area frame or not by acquiring the center of the image preview picture and the center of the candidate area frame, and if not, moving the candidate area frame to ensure that the center of the candidate area frame is overlapped with the center of the image preview picture to obtain a target candidate area.
Step 104, displaying the target area box in the graphical user interface.
In this embodiment, after the target area frame of the region of interest of the image preview screen is determined, the target area frame may be displayed in the graphical user interface, so as to provide an indication for a subsequent user to take an image for testing.
In the embodiment of the application, the area of the region of interest corresponding to the camera to be tested is determined by determining the picture area of the image preview picture and according to the picture area; determining a candidate region frame of the region of interest according to the color card image and the region area; moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area; the target area box is displayed in the graphical user interface. The corresponding region of interest can be automatically determined according to the image preview picture shot by the camera to be tested, the flexibility is good, the camera to be tested is indicated to shoot a test image for testing the quality of the camera to be tested based on the determined region of interest through the determined region of interest, and the effectiveness and the consistency of the image shot by the camera to be tested are ensured.
In one embodiment, as shown in fig. 2, a photographing control method is provided, which may be applied to an image photographing section of an image test process with a camera apparatus. Executing an application program on a processor of the terminal equipment and rendering on a display screen of the terminal equipment to obtain a graphical user interface, wherein the graphical user interface at least comprises an image preview picture shot by a camera to be tested; the image preview picture comprises a color card image of the test color card. In this embodiment, an exemplary description is given by taking the camera to be measured as a mobile phone camera.
In this embodiment, the method may specifically include the following steps:
step 201, obtaining an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card.
In this embodiment, before performing objective testing on an image acquired by a camera of a mobile phone, the mobile phone to be tested needs to be connected with a terminal device (e.g., a computer), and the specific connection mode is not limited in this application. And screen projection software is installed in the terminal equipment, so that the content displayed on the screen of the mobile phone can be projected into the display screen of the terminal equipment for display.
The objective image test requires that the mobile phone camera shoots 24 color cards and gray scale cards under different light sources, the shooting quantity is large, the selection proportion of the Region of interest (ROI) of the 24 color cards and the gray scale cards shot each time is the same, and the requirement of a client on the test is met.
In the process of obtaining the client test image, the target scene is shot through the mobile phone camera, and an image preview picture of the target scene shot by the camera displayed on the mobile phone screen is displayed on the display screen of the terminal equipment. The target scene is generally composed of a white background plate and a test color card fixed on the background plate, wherein the test color card can comprise a 24-color card, a gray scale card and the like, and is determined according to actual requirements. Therefore, the preview image includes the color chart image of the test color chart.
And 202, adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected.
In this embodiment, the region of interest corresponding to the camera to be measured can be obtained by executing the method for determining the region of interest provided in the above embodiment.
The region of interest of the image preview screen can be determined by the above embodiment of the method for determining the region of interest, and the target region frame of the region of interest can be displayed in the graphical user interface.
When the color card image is not coincident with the target area frame, the position of the camera to be tested is adjusted according to the difference between the color card image and the interesting area, namely the position of the mobile phone to be tested is adjusted, so that the color card image is coincident with the target area frame.
In an optional embodiment of the application, adjusting the position of the camera to be measured according to the color card image and the region of interest corresponding to the camera to be measured includes:
adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In this embodiment, an image area of the color card image is obtained first, the image area is compared with an area of the region of interest, and when the image area and the area of the area are not equal, it is indicated that the distance between the camera to be tested and the test color card does not meet the requirement; therefore, the distance between the camera and the test color card can be adjusted. The method specifically comprises the following steps:
when the image area of the color card image is smaller than the area of the region, indicating the camera to be tested to move towards the direction close to the test color card;
and when the graphic area of the color card image is larger than the area, indicating the camera to be tested to move towards the direction far away from the test color card.
It can be understood that when the image area is smaller than the area, it indicates that the distance between the camera to be tested and the test color card is too large, and therefore, the camera to be tested can be indicated to move towards the direction close to the test color card; when the image area is larger than the area, the distance between the camera to be tested and the test color card is too small, so that the camera to be tested can be indicated to move towards the direction far away from the test color card.
When the area of the image is adjusted, the center of the color card image is obtained, the center of the color card image is compared with the center of the region of interest, and when the center of the color card image is not coincident with the center of the region of interest, the center of the camera to be tested and the center of the color card to be tested are not on the same straight line and do not accord with the testing requirements; therefore, the position of the camera to be measured needs to be adjusted, which specifically includes:
when the center of the color card image is positioned at the right side of the center of the region of interest, indicating the camera to be tested to move horizontally leftwards;
when the center of the color card image is positioned at the left side of the center of the region of interest, indicating the camera to be tested to move horizontally rightwards;
when the center of the color card image is positioned at the upper side of the center of the region of interest, indicating the camera to be tested to move vertically downwards;
and when the center of the color card image is positioned at the lower side of the center of the region of interest, indicating that the camera to be measured moves vertically upwards.
By the above embodiment of the method for determining the region of interest, it can be determined that the target region frame of the region of interest is similar to the outer contour of the color card image, and therefore, on the basis that the image area of the color card image is equal to the region area of the region of interest, the color card image and the region of interest can be coincided by adjusting the center of the color card image to coincide with the center of the region of interest.
And step 203, controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
And determining that the region of interest of the color card image of the test color card is overlapped with the region of interest of the image preview picture through the steps, and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested. That is to say, the image shot by the camera to be tested at this time meets the test requirement, and the accuracy of the test data can be improved.
In the embodiment of the application, an image preview picture shot by a camera to be tested is obtained, wherein the image preview picture comprises a color card image of a test color card; adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position. The efficiency of photographing images required for a test can be improved, and the accuracy of test data can be improved.
In order to make the present application better understood by those skilled in the art, the following examples are given to illustrate embodiments of the present application, but it should be understood that the embodiments of the present application are not limited thereto.
According to the embodiment of the application, the interesting region corresponding to the test color card is automatically and accurately determined by optimizing and improving the screen projection application function, and then the correction mode is prompted in real time according to the difference between the interesting region and the color card image of the test color card, so that a test engineer can adjust the position of the test mobile phone, and the color card image of the test color card shot by the test mobile phone is overlapped with the interesting region. In this example, the screen-casting application is Vysor software, and the camera to be tested is a mobile phone camera, as shown in fig. 5, the specific process includes:
step 501, a mobile phone camera acquires a whole preview picture of a test environment, wherein the whole preview picture comprises a preview picture of a test color card and is synchronized to Vysor software.
As shown in fig. 3, the test environment is an image preview image, and the preview image of the test color card is a color card image of the test color card. The mobile phone camera acquires the whole preview picture and then synchronizes to the Vysor software, so that the whole preview picture shot by the mobile phone camera can be acquired in the terminal equipment running the Vysor software.
Step 502, aiming at the information data returned by the mobile phone, the Vysor software calculates the areas of the whole preview picture and the preview picture of the test color card by calculating the length and the width of the whole preview picture and displays a first color frame corresponding to the whole preview picture and a second color frame corresponding to the preview picture of the test color card, and displays the center of the first color frame and the center of the second color frame.
The Vysor software can calculate the area of the whole preview picture, namely the picture area of the image preview picture, and calculate the area of the preview picture of the test color card, namely the image area of the color card image of the test color card. And displaying a first color frame corresponding to the overall preview picture and a second color frame corresponding to the preview picture of the test color card.
The first color frame is superposed with the external outline of the whole preview picture, and the second color frame is superposed with the external outline of the preview picture of the test color card and moves along with the preview picture of the test color card; the display color of the first color frame is different from the display color of the second color frame, and specifically, the first color frame is displayed in blue, and the second color frame is displayed in red.
In addition, the center of the first color frame and the center of the second color frame are displayed, wherein the center of the first color frame is displayed in a first color, and the center of the second color frame is displayed in a second color.
And 503, precisely calculating the position of the test color card by the Vysor software according to the set ROI display proportion of the test color card through the whole preview picture, and prompting so that a test engineer can move the mobile phone support according to the prompt to ensure that the preview picture card of the test color card is positioned accurately.
The position where the test color chart is to be located is an ROI (region of interest) region of the entire preview screen. Specifically, the Vysor software can determine the display area of the ROI according to the set ROI display proportion and the area of the whole preview picture, because the ROI is aligned to the preview picture of the test color card when the test is required, the outline of the ROI is similar to the outline of the test color card, and then the specific shape of the ROI can be determined according to the display area of the ROI; in addition, since the preview screen of the test color chart is displayed in the center, the center of the ROI region may overlap the center of the entire preview screen, that is, the target ROI region, that is, the position where the test color chart is to be located. Meanwhile, the display frame corresponding to the target ROI area can be displayed, so that a test engineer can conveniently refer to the second color frame and the display frame corresponding to the target ROI area to move the mobile phone support, and a preview picture card of the test color card is aligned to the display frame corresponding to the target ROI area. When a preview picture of the color card is tested to be aligned with a display frame corresponding to the ROI area, a test engineer operates a mobile phone page on terminal equipment by means of Vysor software to carry out shooting test.
It should be understood that although the steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, as shown in fig. 6, an apparatus for determining a region of interest is provided, where a graphical user interface is obtained by executing an application program on a processor of a terminal device and rendering the application program on a display screen of the terminal device, and the graphical user interface at least includes an image preview picture taken by a camera to be tested; the image preview picture comprises a color card image of the test color card; the device may specifically include the following modules:
the area determining module 601 is configured to determine a picture area of an image preview picture, and determine an area of an area of interest corresponding to the camera to be tested according to the picture area;
a candidate region frame determining module 602, configured to determine a candidate region frame of the region of interest according to the color chart image and the region area;
a target area frame determining module 603, configured to move the center of the candidate area frame to the center of the image preview screen to obtain a target area frame of the region of interest;
a target area box display module 604 for displaying the target area box in the graphical user interface.
In one embodiment, the candidate region box determining module 602 includes:
the initial region frame determining module is used for determining an initial region frame of the region of interest according to the contour of the color card image;
and the initial region frame zooming module is used for carrying out equal-scale enlargement or reduction on the initial region frame and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In one embodiment, the region area determination module 601 includes:
the test requirement determining module is used for acquiring a test requirement corresponding to the camera to be tested, and the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and the area calculating module is used for determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
For the specific definition of the device for determining the region of interest, reference may be made to the above definition of the method for determining the region of interest, which is not described herein again. The modules in the region-of-interest determining apparatus can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 7, a shooting control apparatus is provided, which may specifically include the following modules:
the image acquisition module 701 is used for acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
a position adjusting module 702, configured to adjust a position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by executing the method for determining the region of interest provided by the embodiment;
and the shooting control module 703 is used for controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
In one embodiment, the position adjustment module 702 includes:
the first adjusting module is used for adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest so as to enable the image area of the color card image to be equal to the area of the region of interest; and the number of the first and second groups,
and the second adjusting module is used for adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In one embodiment, the first adjustment module includes:
the first moving module is used for indicating the camera to be tested to move towards the direction close to the test color card when the image area of the color card image is smaller than the area of the region;
and the second moving module is used for indicating the camera to be tested to move towards the direction far away from the test color card when the graphic area of the color card image is larger than the area of the region.
For the specific definition of the device for determining the region of interest, reference may be made to the above definition of the method for determining the region of interest, which is not described herein again. The modules in the region-of-interest determining apparatus can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a region of interest determining method or a photographing control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the region of interest determining apparatus or the photographing control apparatus provided in the present application may be implemented in the form of a computer program, which is executable on a computer device as shown in fig. 8. The memory of the computer device may store various program modules constituting the region-of-interest determining apparatus, such as a region area determining module 601, a candidate region box determining module 602, a target region box determining module 603, and a target region box displaying module 604 shown in fig. 6. The respective program modules constitute computer programs that cause the processor to perform the steps of the method for determining a region of interest according to the various embodiments of the present application described in the present specification. The memory of the computer device may also store various program modules constituting the photographing control apparatus, such as an image acquisition module 701, a position adjustment module 702, and a photographing control module 703 shown in fig. 7. The computer program constituted by the respective program modules causes the processor to execute the steps in the photographing control method of the respective embodiments of the present application described in the present specification.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor, the computer device being connected to an auxiliary device, the processor implementing the following steps when executing the computer program:
determining the picture area of an image preview picture, and determining the area of an interested area corresponding to the camera to be tested according to the picture area;
determining a candidate region frame of the region of interest according to the color card image and the region area;
moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area;
the target area box is displayed in the graphical user interface.
In one embodiment, determining a candidate region box for the region of interest based on the color chart image and the region area includes:
determining an initial region frame of the region of interest according to the contour of the color card image;
and performing equal-scale enlargement or reduction on the initial region frame, and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In one embodiment, determining the area of the region of interest corresponding to the camera to be measured according to the picture area includes:
acquiring a test requirement corresponding to the camera to be tested, wherein the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor, the computer device being connected to an auxiliary device, the processor implementing the following steps when executing the computer program:
acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by executing the method for determining the region of interest provided by the embodiment;
and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
In one embodiment, adjusting the position of the camera to be measured according to the region of interest corresponding to the color card image and the camera to be measured includes:
adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In one embodiment, adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest includes:
when the image area of the color card image is smaller than the area of the region, indicating the camera to be tested to move towards the direction close to the test color card;
and when the graphic area of the color card image is larger than the area, indicating the camera to be tested to move towards the direction far away from the test color card.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer-readable storage medium being connected to an auxiliary device, the computer program, when executed by a processor, performing the steps of:
determining the picture area of an image preview picture, and determining the area of an interested area corresponding to the camera to be tested according to the picture area;
determining a candidate region frame of the region of interest according to the color card image and the region area;
moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area;
the target area box is displayed in the graphical user interface.
In one embodiment, determining a candidate region box for the region of interest based on the color chart image and the region area includes:
determining an initial region frame of the region of interest according to the contour of the color card image;
and performing equal-scale enlargement or reduction on the initial region frame, and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
In one embodiment, determining the area of the region of interest corresponding to the camera to be measured according to the picture area includes:
acquiring a test requirement corresponding to the camera to be tested, wherein the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer-readable storage medium being connected to an auxiliary device, the computer program, when executed by a processor, performing the steps of:
acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by executing the method for determining the region of interest provided by the embodiment;
and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
In one embodiment, adjusting the position of the camera to be measured according to the region of interest corresponding to the color card image and the camera to be measured includes:
adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
In one embodiment, adjusting the position of the camera to be measured according to the image area of the color card image and the area of the region of interest includes:
when the image area of the color card image is smaller than the area of the region, indicating the camera to be tested to move towards the direction close to the test color card;
and when the graphic area of the color card image is larger than the area, indicating the camera to be tested to move towards the direction far away from the test color card.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for determining a region of interest is characterized in that a graphical user interface is obtained by executing an application program on a processor of a terminal device and rendering on a display screen of the terminal device, wherein the graphical user interface at least comprises an image preview picture shot by a camera to be tested; the image preview picture comprises a color card image of a test color card; the method comprises the following steps:
determining the picture area of the image preview picture, and determining the area of the region of interest corresponding to the camera to be tested according to the picture area;
determining a candidate region frame of the region of interest according to the color card image and the region area;
moving the center of the candidate area frame to the center of the image preview picture to obtain a target area frame of the interested area;
displaying the target area box in the graphical user interface.
2. The method for determining the region of interest according to claim 1, wherein the determining the candidate region box of the region of interest according to the color card image and the region area comprises:
determining an initial region frame of the region of interest according to the contour of the color card image;
and performing equal-scale enlargement or reduction on the initial region frame, and determining the initial region frame with the frame selection area equal to the region area as a candidate region frame of the region of interest.
3. The method for determining the region of interest according to claim 1, wherein the determining the region area of the region of interest corresponding to the camera to be measured according to the screen area includes:
acquiring a test requirement corresponding to the camera to be tested, wherein the test requirement is used for indicating the proportional relation between the region of interest and the image preview picture;
and determining the area of the region of interest corresponding to the camera to be tested according to the test requirement and the picture area.
4. A shooting control method, characterized by comprising:
acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by the region of interest determining method according to any one of claims 1 to 3;
and controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
5. The shooting method according to claim 4, wherein the adjusting the position of the camera to be tested according to the color chart image and the region of interest corresponding to the camera to be tested comprises:
adjusting the position of the camera to be detected according to the image area of the color card image and the area of the region of interest, so that the image area of the color card image is equal to the area of the region of interest; and the number of the first and second groups,
and adjusting the position of the camera to be measured according to the center of the color card image and the center of the region of interest so as to enable the center of the color card image to coincide with the center of the region of interest.
6. The shooting control method according to claim 5, wherein the adjusting the position of the camera under test according to the image area of the color chart image and the area of the region of interest comprises:
when the image area of the color card image is smaller than the area, indicating the camera to be tested to move towards the direction close to the test color card;
and when the graphic area of the color card image is larger than the area, indicating the camera to be tested to move towards the direction far away from the test color card.
7. The device for determining the region of interest is characterized in that a graphical user interface is obtained by executing an application program on a processor of a terminal device and rendering on a display screen of the terminal device, wherein the graphical user interface at least comprises an image preview picture shot by a camera to be tested; the image preview picture comprises a color card image of a test color card; the device comprises:
the area determining module is used for determining the picture area of the image preview picture and determining the area of an interesting area corresponding to the camera to be tested according to the picture area;
a candidate region frame determining module, configured to determine a candidate region frame of the region of interest according to the color chart image and the region area;
a target area frame determining module, configured to move the center of the candidate area frame to the center of the image preview screen to obtain a target area frame of the region of interest;
and the target area frame display module is used for displaying the target area frame in the graphical user interface.
8. A shooting control apparatus, characterized in that the apparatus comprises:
the image acquisition module is used for acquiring an image preview picture shot by a camera to be tested, wherein the image preview picture comprises a color card image of a test color card;
the position adjusting module is used for adjusting the position of the camera to be detected according to the color card image and the region of interest corresponding to the camera to be detected; the region of interest corresponding to the camera to be tested is obtained by the region of interest determining method according to any one of claims 1 to 3;
and the shooting control module is used for controlling the camera to be tested to shoot a test image for testing the quality of the camera to be tested based on the adjusted position.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of determining a region of interest according to any one of claims 1-3 when executing the computer program or implements the steps of the photographing control method according to any one of claims 4-6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of determining a region of interest according to any one of claims 1 to 3 or the steps of the photographing control method according to any one of claims 4 to 6.
CN202110700313.8A 2021-06-23 2021-06-23 Region-of-interest determining method, photographing control method, device, equipment and medium Pending CN113473112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110700313.8A CN113473112A (en) 2021-06-23 2021-06-23 Region-of-interest determining method, photographing control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110700313.8A CN113473112A (en) 2021-06-23 2021-06-23 Region-of-interest determining method, photographing control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113473112A true CN113473112A (en) 2021-10-01

Family

ID=77872514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110700313.8A Pending CN113473112A (en) 2021-06-23 2021-06-23 Region-of-interest determining method, photographing control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113473112A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514887A (en) * 2022-09-07 2022-12-23 影石创新科技股份有限公司 Control method and device for video acquisition, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514887A (en) * 2022-09-07 2022-12-23 影石创新科技股份有限公司 Control method and device for video acquisition, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20160094770A1 (en) Image Processing Method and Apparatus, and Terminal
KR101489048B1 (en) Imaging apparatus, image processing method, and recording medium for recording program thereon
US20160300337A1 (en) Image fusion method and image processing apparatus
US8872923B2 (en) Color calibration chart acquisition
CN102170544A (en) Correction information calculating device, image processing apparatus, image display system, and image correcting method
JP2005215750A (en) Face detecting device and face detecting method
CN111083458B (en) Brightness correction method, system, equipment and computer readable storage medium
US8605106B2 (en) Projector and color improvement method of the projector
CN102170545A (en) Correction information calculating device, image processing apparatus, image display system, and image correcting method
CN107566827B (en) Shoot Delay computing method, device and equipment
CN105516611A (en) An imaging device and a shooting method
CN113658538A (en) Brightness compensation data generation method, brightness compensation device and computer equipment
CN114584700A (en) Focusing marking method, marking device and electronic equipment
WO2016145831A1 (en) Image acquisition method and device
CN108198189A (en) Acquisition methods, device, storage medium and the electronic equipment of picture clarity
JP2005189542A (en) Display system, display program and display method
CN113473112A (en) Region-of-interest determining method, photographing control method, device, equipment and medium
CN111629201B (en) Debugging method, device, equipment and medium for camera module
CN117201931A (en) Camera parameter acquisition method, device, computer equipment and storage medium
US20170059313A1 (en) Image capture device with a calibration function and calibration method of an image capture device
JP6483661B2 (en) Imaging control apparatus, imaging control method, and program
CN108781280B (en) Test method, test device and terminal
CN116091624A (en) Linear array camera calibration method and device, terminal equipment and storage medium
CN111064864A (en) Method and device for setting distortion correction parameters and endoscope system
CN108337448A (en) High-dynamic-range image acquisition method, device, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination