CN110533628A - Method and device for determining screen direction and readable storage medium - Google Patents

Method and device for determining screen direction and readable storage medium Download PDF

Info

Publication number
CN110533628A
CN110533628A CN201910619500.6A CN201910619500A CN110533628A CN 110533628 A CN110533628 A CN 110533628A CN 201910619500 A CN201910619500 A CN 201910619500A CN 110533628 A CN110533628 A CN 110533628A
Authority
CN
China
Prior art keywords
image
screen direction
screen
difference
pixel
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.)
Granted
Application number
CN201910619500.6A
Other languages
Chinese (zh)
Other versions
CN110533628B (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910619500.6A priority Critical patent/CN110533628B/en
Publication of CN110533628A publication Critical patent/CN110533628A/en
Application granted granted Critical
Publication of CN110533628B publication Critical patent/CN110533628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display

Abstract

The embodiment of the invention relates to the technical field of images, and discloses a method and a device for determining screen direction and a readable storage medium. In some embodiments of the present application, a method for determining a screen direction includes the steps of: acquiring an image of a first preset position of a recorded image of a screen; when the screen direction is a first direction, the image of the first preset position comprises a first identification image; when the screen direction is a second direction, the image of the first preset position does not comprise a first identification image; and determining the screen direction when the recorded image is recorded according to the image at the first preset position. In the implementation, the screen direction can be acquired under the condition that the App is returned to the background.

Description

A kind of method, apparatus and readable storage medium storing program for executing of determining screen direction
Technical field
The present embodiments relate to image technique field, in particular to the method, apparatus of a kind of determining screen direction and can Read storage medium.
Background technique
The recording of iOS9 system above support screen content, developer can pass through record screen framework (replaykit) and expansion Plug-in unit (extension) is opened up to obtain the image of screen, but iOS9, iOS10 system are only supported to enroll the screen in current app Content, until IOS11 system issue, just support whole mobile phone screen content recording, i.e., application program (Application, Still screen content can be recorded when App) falling back on backstage.
However, it is found by the inventors that at least there are the following problems in the prior art: the App of the equipment of iOS system is recording screen During curtain, if App is withdrawn into backstage, the direction of current screen can not be got, will affect the recording image for receiving screen Receiving end viewing experience.
Summary of the invention
The method, apparatus and readable storage medium for being designed to provide a kind of determining screen direction of embodiment of the present invention Matter makes it possible in the case where App is withdrawn into backstage, obtains screen direction.
In order to solve the above technical problems, embodiments of the present invention provide a kind of method of determining screen direction, including Following steps: the image of the first predeterminated position of the recording image of screen is obtained;Wherein, when screen direction is first direction, the It include first identifier image in the image of one predeterminated position;When screen direction is second direction, in the image of the first predeterminated position It does not include first identifier image;According to the image of the first predeterminated position, screen direction when recording the recording image is determined.
Embodiments of the present invention additionally provide a kind of device of determining screen direction, comprising: obtain module and determine mould Block;Obtain the image that module is used to obtain the first predeterminated position for recording image of screen;Wherein, screen direction is first direction When, it include first identifier image in the image of the first predeterminated position;When screen direction is second direction, the figure of the first predeterminated position It does not include first identifier image as in;Determining module is used for the image according to the first predeterminated position, determines and records the recording image When screen direction.
Embodiments of the present invention additionally provide a kind of device of determining screen direction, comprising: at least one processor;With And the memory being connect at least one processor communication;Wherein, memory is stored with and can be executed by least one processor Instruction, instruction are executed by least one processor, are referred to really so that at least one processor is able to carry out above embodiment Determine the method for screen direction.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate The method for the determination screen direction that above embodiment refers to is realized when machine program is executed by processor.
Embodiment of the present invention in terms of existing technologies, in the case where App retreats to backstage, can be schemed according to recording Whether the image of the first predeterminated position of picture includes first identifier image, and screen direction when recording the recording image to determine is No is first direction, and then determines screen direction when recording the recording image.Due to it is known record image screen direction, Determine that the device of screen direction can carry out various processing to image is recorded, to improve the viewing body of user based on screen direction It tests.
In addition, determining screen direction according to the image of the first predeterminated position, specifically include: obtaining the first predeterminated position The characteristic information of the characteristic information of first kind pixel in image and the second class pixel;Wherein, when screen direction is first direction, First kind pixel constitute first identifier image, the second class pixel be in the image of the first predeterminated position in addition to first kind pixel Pixel;Calculate the first difference of the characteristic information of first kind pixel and the characteristic information of the second class pixel;It is according to the first difference The no judging result greater than first threshold, determines screen direction.In the realization, can characteristic information pixel-based, determine record Make the screen direction when recording image.
In addition, before determining screen direction, determining screen in the judging result for whether being greater than first threshold according to the first difference Curtain direction method further include: obtain record image the second predeterminated position image in third class pixel characteristic information and The characteristic information of 4th class pixel;It wherein, include the second mark when screen direction is first direction, in the image of the second predeterminated position Know image, third class pixel constitutes second identifier image, and the 4th class pixel is in the image of the second predeterminated position except third class picture Pixel other than element;Calculate the second difference of the characteristic information of third class pixel and the characteristic information of the 4th class pixel;According to Whether one difference is greater than the judging result of first threshold, determines screen direction, specifically includes: whether being greater than according to the first difference Whether the judging result of one threshold value and the second difference are greater than the judging result of second threshold, determine screen direction.The realization In, improve the accuracy of the definitive result of screen direction.
In addition, whether being greater than the judging result of first threshold according to the first difference and whether the second difference is greater than second The judging result of threshold value, determines screen direction, specifically includes: judging whether the first difference is greater than first threshold;If it is determined that being the One difference is not more than first threshold, it is determined that screen direction is second direction;If it is determined that being greater than first threshold for the first difference, sentence Whether disconnected second difference is greater than second threshold;If it is determined that being greater than second threshold for the second difference, it is determined that screen direction first Direction;If it is determined that being no more than second threshold for the second difference, determine that screen direction is second direction.
In addition, whether being greater than the judging result of first threshold according to the first difference, screen direction is determined, specifically include: if It determines that the first difference is greater than first threshold, judges whether the difference of the characteristic information between any two first kind pixel is respectively less than Third threshold value;If it is determined that being, it is determined that screen direction is first direction, however, it is determined that is not, it is determined that screen direction is second party To.In the realization, the accuracy of the definitive result of screen direction is improved.
In addition, the characteristic information of first kind pixel is the average brightness of first kind pixel, the feature letter of the second class pixel Breath is the average brightness of the second class pixel.
In addition, the mark image on the navigation bar that first identifier image shows for screen.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of the method for the determination screen direction of first embodiment of the invention;
Fig. 2 is the flow chart of the method for the determination screen direction of second embodiment of the present invention;
Fig. 3 be second embodiment of the present invention screen direction be vertical direction when screen interface schematic diagram;
Fig. 4 be second embodiment of the present invention screen direction be horizontal direction when screen interface schematic diagram
Fig. 5 is the structural schematic diagram of the device of the determination screen direction of third embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the device of the determination screen direction of the 4th embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of methods of determining screen direction, applied to the dress for determining screen direction It sets, for example, terminal or server.Specifically, as shown in Figure 1, the method for the determination screen direction includes:
Step 101: obtaining the image of the first predeterminated position of the recording image of screen.
Specifically, including first identifier image in the image of the first predeterminated position when screen direction is first direction; It does not include first identifier image in the image of the first predeterminated position when screen direction is second direction.Open screen recording into Cheng Hou, record screen software start to capture screen, continuously generate and record image one by one.Determine that the device of screen direction obtains record It is imaged, and obtain the image for recording the first predeterminated position of image.
In one example, recording image can be YUV image.Wherein, " Y " indicates brightness (Luminance), " U " It indicates coloration (chrominance), " V " indicates saturation degree (Chrominance).
It should be noted that determining that the device of screen direction can be the end of installation record screen software, the image for recording screen End is also possible to the terminal with the terminal communication connection of installation record screen software, the image for recording screen, it can by picture recording End is determined the operation of screen direction, and the operation of screen direction can also be determined by image receiving end.
In one example, the mark image on navigation bar that first identifier image shows for screen, for example, cellular signal It identifies image or wireless signal identifies image.The type of first identifier image is not limited in present embodiment.
Step 102: according to the image for the first predeterminated position for recording image, determining screen side when recording the recording image To.
Specifically, the device for determining screen direction can determine that recording should by the image of the first predeterminated position of analysis Record screen direction when image.
When studying iOS system, discovery iOS system has the feature that inventor
When the interface of 1.iOS system is in vertical direction, i.e., screen direction is vertical direction, navigation bar in screen and is led Mark image on boat column is in the top of screen;When the interface of iOS system is horizontally oriented, i.e., screen direction is level side To the mark image on navigation bar and navigation bar will be hidden.
2. the YUV image that screen recording is got is vertical direction always.
Based on above-mentioned discovery, it has been recognised by the inventors that whether can include the first mark according to the image based on the first predeterminated position Know image, judges that the screen direction of the screen picture is first direction, and then determine screen when recording the screen picture Curtain direction.
In one example, designer can obtain the figure of pre-recording an of screen when screen direction is first direction Picture determines first identifier image in pre-recorded video with calibration collimation mark, determines that the device of screen direction demarcates the position of frame by identification, Determine the first predeterminated position.
In one example, determine that the device of screen direction passes through the identification side based on deep learning algorithm or other algorithms Whether method identifies the image of the first predeterminated position, judge in the image of the first predeterminated position to include first identifier image, If it is determined that being, it is determined that screen direction is first direction, however, it is determined that is not, it is determined that screen direction is second direction.
It should be noted that it will be understood by those skilled in the art that in practical application, it can also be by other means to It whether include that first identifier image is judged that be not listed one by one herein, present embodiment is unlimited in the image of one predeterminated position System determines specific judgment method.
In one example, first direction is vertical direction, and second direction is horizontal direction.
In one example, the recording image of screen is the figure at the interface that terminal where screen retreats to application behind backstage Picture, i.e. main interface image.
It should be noted that it will be understood by those skilled in the art that determining screen after determining the screen direction for recording image The device in curtain direction can carry out various processing operations to image is recorded, for example, based on screen based on the screen direction for recording image Curtain direction, determines the driving method of the pixel of the screen of receiving end, so that user is without slanting head or the side of adjustment receiving end To adapt to the recording image.Present embodiment does not limit the subsequent operation for obtaining the screen direction for recording image.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the method for the determination screen direction provided in present embodiment retreats to the feelings on backstage in App Under condition, whether can include first identifier image according to the image for the first predeterminated position for recording image, record the record to determine Whether screen direction when imaged is first direction, and then determines screen direction when recording the recording image.Due to Know the screen direction for recording image, determines that the device of screen direction can carry out various places to image is recorded based on screen direction Reason, to improve the viewing experience of user.
Second embodiment of the present invention is related to a kind of method of determining screen direction, and second embodiment is implemented to first In mode, according to the image of the first predeterminated position, the act of another method of screen direction when recording the recording image is determined Example explanation.
Specifically, as shown in Fig. 2, the device for determining screen direction is determined and is recorded according to the image of the first predeterminated position Screen direction when the recording image includes following sub-step:
Step 201: obtaining the characteristic information and the second class pixel of the first kind pixel in the image of the first predeterminated position Characteristic information.
Specifically, first kind pixel constitutes first identifier image when screen direction is first direction, the second class pixel is Pixel in the image of first predeterminated position in addition to first kind pixel.
In one example, screen is the screen of terminal, and first identifier image is the mark image in navigation bar.Inventor It was found that the color of the mark image of navigation bar can be very big with navigation bar intrinsic colour contrast regardless of what color navigation bar is.Cause This, determines that the device of screen direction can be by the characteristic information of the pixel of the image of the first predeterminated position of analysis, to determine record Make the screen direction when recording image.
In one example, the characteristic information of first kind pixel is the average brightness of first kind pixel, the second class pixel Characteristic information be the second class pixel average brightness.Wherein, brightness can be " Y " component in YUV image.
It should be noted that it will be understood by those skilled in the art that in practical application, in addition to can be according to average brightness In image to judge the first predeterminated position whether include first identifier image, can also by other characteristic informations of pixel come Confirm whether the first predeterminated position includes first identifier image, and present embodiment does not limit for judging whether to include first identifier The characteristic information of the pixel of image.
Step 202: calculating the first difference of the characteristic information of first kind pixel and the characteristic information of the second class pixel, and root Whether it is greater than the judging result of first threshold according to the first difference, determines screen direction.
Specifically, due to the color of the mark image of navigation bar can be it is very big with navigation bar intrinsic colour contrast, It, can by calculating the difference of the characteristic information of the corresponding first kind pixel of first identifier image and the characteristic information of the second class pixel Whether to include that first identifier image provides judgment basis in the image to determine the first predeterminated position.
Below to the judging result for whether being greater than first threshold according to the first difference, determine that the mode of screen direction is lifted Example explanation.
First example determines the device of screen direction if it is determined that the first difference determines screen direction greater than first threshold For first direction, however, it is determined that the first difference is not more than first threshold, determines that screen direction is second direction.
Specifically, illustrating the characteristic information and the second class pixel of first kind pixel if the first difference is greater than first threshold Characteristic information diversity ratio it is larger, i.e., the color of the first identifier image of first kind pixel and the colour-difference of the first background image away from It is bigger, it include first identifier image in the image of the first predeterminated position, therefore screen direction is first direction.On the contrary, first is poor Value is not more than first threshold, then account for screen direction is second direction.
Second example only includes a kind of color in first identifier image.The device of screen direction is determined if it is determined that first Difference is greater than first threshold, judges whether the difference of the characteristic information between any two first kind pixel is respectively less than third threshold Value;If it is determined that the difference of the characteristic information between any two first kind pixel is respectively less than third threshold value, determine that screen direction is First direction;If it is determined that there are the differences of the characteristic information between two first kind pixels to be not less than third threshold value, it is determined that screen Curtain direction is second direction, however, it is determined that the first difference is not more than first threshold, it is determined that screen direction is second direction.
Specifically, illustrating the characteristic information and the second class pixel of first kind pixel if the first difference is greater than first threshold Characteristic information diversity ratio it is larger, i.e., the color of the first identifier image of first kind pixel and the colour-difference of the first background image away from It is bigger, illustrate under maximum probability, includes first identifier image in the image of the first predeterminated position.It is final to further increase The accuracy of judging result determines that the device of screen direction is further judged based on the characteristic information of first kind pixel, Since first identifier image only includes a kind of color, then the characteristic information of first kind pixel is identical or extremely close, therefore determines screen The device in curtain direction judges whether the difference of the characteristic information between any two first kind pixel is respectively less than third threshold value, if really It surely is that then screen direction is first direction.If being unsatisfactory for the condition that the first difference is greater than first threshold, alternatively, any two the Whether the difference of the characteristic information between a kind of pixel is respectively less than the condition of third threshold value, then screen direction is second direction.
It is noted that the characteristic information based on first kind pixel, further determines screen direction, improve The accuracy of judging result.
Third example determines the device of screen direction in the judgement knot for whether being greater than first threshold according to the first difference Fruit before determining screen direction, before or after calculating the first difference, obtains the image for recording the second predeterminated position of image In third class pixel characteristic information and the 4th class pixel characteristic information;Wherein, when screen direction is first direction, second It include second identifier image in the image of predeterminated position, third class pixel constitutes second identifier image, and the 4th class pixel is second Pixel in the image of predeterminated position in addition to third class pixel.Calculate the characteristic information and the 4th class pixel of third class pixel Second difference of characteristic information.Determine whether the device of screen direction is greater than the judging result of first threshold according to the first difference, And second difference whether be greater than the judging result of second threshold, determine screen direction.
In one example, determine that the device of screen direction judges whether the first difference is greater than first threshold;If first is poor Value is greater than first threshold, it is determined that screen direction is first direction;If it is determined that being not more than first threshold for the first difference, the is judged Whether two differences are greater than second threshold;If it is determined that being greater than second threshold for the second difference, it is determined that screen direction is first direction; If it is determined that being no more than second threshold for the second difference, determine that screen direction is second direction.
In another example, determine that the device of screen direction judges screen direction by following steps:
Step 2021: judging whether the first difference is greater than first threshold.If the determination result is YES, 2022 are thened follow the steps, Otherwise, step 2023 is executed.
Step 2022: judging whether the difference between the characteristic information of any two first kind pixel is respectively less than third threshold Value.If the determination result is YES, step 2025 is executed.Otherwise, step 2023 is executed.
Step 2023: judging whether the second difference is greater than second threshold.If the determination result is YES, 2024 are thened follow the steps, Otherwise, step 2026 is executed.
Step 2024: judging whether the difference between the characteristic information of any two third class pixel is respectively less than the 4th threshold Value.If the determination result is YES, step 2025 is executed, otherwise, executes step 2026.
Step 2025: determining that screen direction is first direction.
Step 2026: determining that screen direction is second direction.
It is noted that determining screen direction using the judging result of two predeterminated positions as foundation, further improve The accuracy of determining screen direction.
In one example, the characteristic information of third class pixel is the average brightness of third class pixel, the 4th class pixel Characteristic information be the 4th class pixel average brightness.
It should be noted that it will be understood by those skilled in the art that can be vertical according to screen direction in practical application When direction, the difference of the characteristic information of the characteristic information and first kind pixel of the second class pixel determines first threshold, the 4th class The difference of the characteristic information of the characteristic information and third class pixel of pixel determines second threshold, for example, if screen direction is perpendicular Histogram to when, the difference of the characteristic information of the characteristic information and first kind pixel of the second class pixel is 10, the spy of the 4th class pixel The difference of reference breath and the characteristic information of third class pixel is 9, then first threshold is 9 or 10, and second threshold is 8 or 9.
It should be noted that it will be understood by those skilled in the art that in practical application, to further increase screen direction Accuracy, can according to the image of the first predeterminated position, the image of the second predeterminated position, third predeterminated position image ... The image of n predeterminated position determines screen direction using decision logic similar with third example, unlimited in present embodiment The number of predeterminated position processed.N is positive integer.
Illustrate the method for the determination screen direction that present embodiment refers to below in conjunction with actual conditions.
It is assumed that first identifier image is that wireless signal identifies image, second identifier image is that cellular signal identifies image, as The characteristic information of element is the brightness of pixel, and first threshold and second threshold are equal to 10.In the case where App retreats to backstage, screen When direction is vertical direction, screen interface is as shown in figure 3, when screen direction is horizontal direction, and screen interface is as shown in figure 4, logical Fig. 4 and Fig. 5 are crossed it is found that including that wireless signal identifies when screen direction is vertical direction, in the image 301 of the first predeterminated position Image, the interior image 302 of the second predeterminated position includes that cellular signal identifies image.Accordingly, it is determined that the device of screen direction can be with Whether the judging result and second predeterminated position of wireless signal identification image are had in image 301 based on the first predeterminated position Image 302 in whether have cellular signal mark image judging result be foundation, determine screen direction.Firstly, screen recording Process starts to capture screen, continuously generates YUV image one by one.Determine the device of screen direction according to the first predeterminated position Coordinate range, extract the image 301 (hereinafter referred to as the first block of pixels) of the first predeterminated position of YUV image.Determine screen side To device calculate it is average with the brightness of the corresponding first kind pixel 3011 of wireless signal mark image 3011 in the first block of pixels It is worth (i.e. the Y-component of pixel), and calculates pixel (the second class picture in the first block of pixels in addition to first kind pixel 3011 The average brightness of element 3012).Determine that the device of screen direction according to the coordinate range of the second predeterminated position, extracts YUV image The second predeterminated position image 302 (hereinafter referred to as the second block of pixels).Determine that the device of screen direction calculates the second block of pixels In with the average brightness (i.e. the Y-component of pixel) of the corresponding third class pixel 3021 of cellular signal mark image, and count Calculate the average brightness of the pixel (the 4th class pixel 3022) in the second block of pixels in addition to third class pixel 3021.Calculate the The first difference and third class picture of the average brightness of a kind of pixel 3011 and 3012 average brightness of the second class pixel Second difference of the average brightness of the average brightness and the 4th class pixel 3022 of element 3021.If the first difference > 10, and, the Two difference > 10 illustrate there is wireless signal identification image in the image 301 of the first predeterminated position, and the image of the second predeterminated position There is cellular signal to identify image in 302, therefore screen direction is vertical direction.If the first difference < 10, alternatively, the second difference < 10, screen direction is horizontal direction.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the method for the determination screen direction provided in present embodiment can retreat to backstage in App In the case where, it whether include the judging result of first identifier image and second pre- to record the image of the first predeterminated position of image If the image of position whether include second identifier image judging result, come determine record the recording image when screen direction be No is first direction, improves the accuracy of finally determining screen direction.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of device of determining screen direction, as shown in Figure 5, comprising: obtains mould Block 401 and determining module 402.Obtain the image that module 401 is used to obtain the first predeterminated position for recording image of screen;Its In, it include first identifier image in the image of the first predeterminated position when screen direction is first direction;Screen direction is second party Xiang Shi does not include first identifier image in the image of the first predeterminated position.Determining module 402 is used for according to the first predeterminated position Image determines screen direction when recording the recording image.
In one example, it according to the image of the first predeterminated position, determines screen direction, specifically includes: it is pre- to obtain first If the characteristic information of the characteristic information of the first kind pixel in the image of position and the second class pixel;Wherein, screen direction When one direction, first kind pixel constitutes first identifier image, and the second class pixel is in the image of the first predeterminated position except the first kind Pixel other than pixel;Calculate the first difference of the characteristic information of first kind pixel and the characteristic information of the second class pixel;According to Whether the first difference is greater than the judging result of first threshold, determines screen direction.
In one example, in the judging result for whether being greater than first threshold according to the first difference, determine screen direction it Before, the method that determines screen direction further include: obtain the third class pixel in the image for recording the second predeterminated position of image The characteristic information of characteristic information and the 4th class pixel;Wherein, when screen direction is first direction, in the image of the second predeterminated position Including second identifier image, third class pixel constitutes second identifier image, and the 4th class pixel is in the image of the second predeterminated position Pixel in addition to third class pixel;Calculate the characteristic information of third class pixel and the characteristic information of the 4th class pixel second is poor Value;Whether it is greater than the judging result of first threshold according to the first difference, determines screen direction, specifically include: according to the first difference Whether the judging result and the second difference that are whether greater than first threshold are greater than the judging result of second threshold, determine screen side To.
In one example, according to the first difference whether be greater than first threshold judging result and the second difference whether Greater than the judging result of second threshold, screen direction is determined, specifically included: judging whether the first difference is greater than first threshold;If First difference is greater than first threshold, it is determined that screen direction is first direction;If the first difference is not more than first threshold, the is judged Whether two differences are greater than second threshold;If the second difference is greater than second threshold, it is determined that screen direction is first direction;If second Difference is not more than second threshold, determines that screen direction is second direction.
In one example, the judging result of first threshold whether is greater than according to the first difference, determines screen direction, specifically It include: if it is determined that the first difference judges that the difference of the characteristic information between any two first kind pixel is greater than first threshold It is no to be respectively less than third threshold value;If it is determined that being to determine that screen direction is first direction.
In one example, the characteristic information of first kind pixel is the average brightness of first kind pixel, the second class pixel Characteristic information be the second class pixel average brightness.
In one example, the mark image on navigation bar that first identifier image shows for screen.
It is not difficult to find that present embodiment is system embodiment corresponding with first embodiment, present embodiment can be with First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in In first embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment Member.
4th embodiment of the invention is related to a kind of device of determining screen direction, as shown in Figure 6, comprising: at least one A processor 501;And the memory 502 with the communication connection of at least one processor 501;Wherein, memory 502 is stored with The instruction that can be executed by least one processor 501, instruction are executed by least one processor 501, so that at least one is handled The method that device 501 is able to carry out the determination screen direction that above embodiment refers to.
The device of the determination screen direction includes: one or more processors 501 and memory 502, with one in Fig. 6 For processor 501.Processor 501, memory 502 can be connected by bus or other modes, to pass through bus in Fig. 6 For connection.Memory 502 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, are deposited if the information of the first predeterminated position in the application embodiment It is stored in memory 502.Processor 501 by operation be stored in memory 502 non-volatile software program, instruction and Module realizes the method for above-mentioned determining screen direction thereby executing the various function application and data processing of equipment.
Memory 502 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory 502 can be with It can also include nonvolatile memory, for example, at least disk memory, a flash memory including high-speed random access memory Device or other non-volatile solid state memory parts.In some embodiments, it includes relative to processing that memory 502 is optional The remotely located memory of device 501, these remote memories can pass through network connection to external equipment.The example of above-mentioned network Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module is stored in memory 502, when being executed by one or more processor 501, is held The method of determination screen direction in the above-mentioned any means embodiment of row.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
5th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates Machine program realizes above method embodiment when being executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes each embodiment method of the application All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of method of determining screen direction characterized by comprising
Obtain the image of the first predeterminated position of the recording image of screen;Wherein, when screen direction is first direction, described first It include first identifier image in the image of predeterminated position;When the screen direction is second direction, first predeterminated position It does not include first identifier image in image;
According to the image of first predeterminated position, screen direction when recording the recording image is determined.
2. the method for determining screen direction according to claim 1, which is characterized in that described according to the described first default position The image set determines the screen direction, specifically includes:
Obtain the characteristic information of the first kind pixel in the image of first predeterminated position and the characteristic information of the second class pixel; Wherein, when the screen direction is first direction, first kind pixel constitutes the first identifier image, and the second class pixel is Pixel in the image of first predeterminated position in addition to the first kind pixel;
Calculate the first difference of the characteristic information of the first kind pixel and the characteristic information of the second class pixel;
Whether it is greater than the judging result of first threshold according to first difference, determines the screen direction.
3. the method for determining screen direction according to claim 2, which is characterized in that described according to first difference Whether the judging result of first threshold, determine the screen direction before, the method for the determining screen direction are greater than further include:
Obtain the characteristic information and the 4th class pixel of the third class pixel in the image of second predeterminated position for recording image Characteristic information;It wherein, include second identifier figure in the image of second predeterminated position when screen direction is first direction Picture, third class pixel constitute the second identifier image, the 4th class pixel be second predeterminated position image in remove Pixel other than the third class pixel;
Calculate the second difference of the characteristic information of the third class pixel and the characteristic information of the 4th class pixel;
The judging result for whether being greater than first threshold according to first difference, determines the screen direction, specifically includes:
Whether it is greater than the judging result of first threshold according to first difference and whether second difference is greater than the second threshold The judging result of value determines the screen direction.
4. the method for determining screen direction according to claim 3, which is characterized in that described to be according to first difference The no judging result for whether being greater than the second threshold greater than the judging result of first threshold and second difference determines The screen direction, specifically includes:
Judge whether first difference is greater than first threshold;
If first difference is greater than first threshold, it is determined that the screen direction is the first direction;
If first difference is not more than first threshold, judge whether second difference is greater than the second threshold;
If second difference is greater than the second threshold, it is determined that the screen direction is the first direction;
If second difference is not more than the second threshold, determine that the screen direction is second direction.
5. the method for determining screen direction according to claim 2, which is characterized in that described to be according to first difference The no judging result greater than first threshold, determines the screen direction, specifically includes:
If it is determined that first difference is greater than the first threshold, the feature letter between first kind pixel described in any two is judged Whether the difference of breath is respectively less than third threshold value;If it is determined that being to determine that the screen direction is the first direction;If it is determined that not It is, it is determined that screen direction is second direction.
6. the method for determination screen direction according to any one of claim 2 to 5, which is characterized in that first kind pixel Characteristic information be first kind pixel average brightness, the characteristic information of the second class pixel is that the brightness of the second class pixel is average Value.
7. the method for determining screen direction according to any one of claim 1 to 5, which is characterized in that first mark Know the mark image on the navigation bar that image shows for the screen.
8. a kind of device of determining screen direction characterized by comprising obtain module and determining module;
The image for obtaining module and being used to obtain the first predeterminated position for recording image of screen;Wherein, screen direction It include first identifier image in the image of first predeterminated position when one direction;When the screen direction is second direction, institute Stating does not include first identifier image in the image of the first predeterminated position;
The determining module is used for the image according to first predeterminated position, determines screen side when recording the recording image To.
9. a kind of device of determining screen direction characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy Enough methods for executing the determination screen direction as described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located The method that reason device realizes determination screen direction described in any one of claims 1 to 7 when executing.
CN201910619500.6A 2019-07-10 2019-07-10 Method and device for determining screen direction and readable storage medium Active CN110533628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910619500.6A CN110533628B (en) 2019-07-10 2019-07-10 Method and device for determining screen direction and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910619500.6A CN110533628B (en) 2019-07-10 2019-07-10 Method and device for determining screen direction and readable storage medium

Publications (2)

Publication Number Publication Date
CN110533628A true CN110533628A (en) 2019-12-03
CN110533628B CN110533628B (en) 2022-05-13

Family

ID=68659476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910619500.6A Active CN110533628B (en) 2019-07-10 2019-07-10 Method and device for determining screen direction and readable storage medium

Country Status (1)

Country Link
CN (1) CN110533628B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6313853B1 (en) * 1998-04-16 2001-11-06 Nortel Networks Limited Multi-service user interface
CN101482765A (en) * 2006-04-28 2009-07-15 三星电子株式会社 Method and apparatus to control screen orientation of user interface of portable device
CN103763505A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method and device suitable for screen direction switching in video call
CN104122983A (en) * 2013-04-27 2014-10-29 中国移动通信集团公司 Adjusting method and device for screen displaying direction
CN108647057A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Screen orientation setting method, device, storage medium and terminal
CN109189299A (en) * 2018-08-02 2019-01-11 珠海格力电器股份有限公司 A kind of screen methods of exhibiting, device, terminal and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6313853B1 (en) * 1998-04-16 2001-11-06 Nortel Networks Limited Multi-service user interface
CN101482765A (en) * 2006-04-28 2009-07-15 三星电子株式会社 Method and apparatus to control screen orientation of user interface of portable device
CN104122983A (en) * 2013-04-27 2014-10-29 中国移动通信集团公司 Adjusting method and device for screen displaying direction
CN103763505A (en) * 2013-12-31 2014-04-30 华为技术有限公司 Method and device suitable for screen direction switching in video call
CN108647057A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Screen orientation setting method, device, storage medium and terminal
CN109189299A (en) * 2018-08-02 2019-01-11 珠海格力电器股份有限公司 A kind of screen methods of exhibiting, device, terminal and readable storage medium storing program for executing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FILIPPOS 等: "Virtual Video Synthesis for Personalized Training", 《IEEE》 *
冯冲: "界面中的注意力设计——ios平台的移动设备界面设计研究", 《万方数据知识服务平台》 *

Also Published As

Publication number Publication date
CN110533628B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN107862315B (en) Subtitle extraction method, video searching method, subtitle sharing method and device
CN104392468A (en) Improved visual background extraction based movement target detection method
CN103092930B (en) Method of generation of video abstract and device of generation of video abstract
CN109711407B (en) License plate recognition method and related device
Yang et al. A vehicle license plate recognition system based on fixed color collocation
CN111008969B (en) Blackboard writing extraction and intelligent recognition method and system
CN110399842B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN110830787A (en) Method and device for detecting screen-patterned image
CN107801093A (en) Video Rendering method, apparatus, computer equipment and readable storage medium storing program for executing
CN110830788A (en) Method and device for detecting black screen image
CN104299214A (en) Method and system for detecting and removing raindrops in light rain scene video data
CN104318537A (en) Method and system for detecting and removing raindrop in heavy rain scene video data
CN111435445A (en) Training method and device of character recognition model and character recognition method and device
CN111160340B (en) Moving object detection method and device, storage medium and terminal equipment
CN103092929B (en) A kind of generation method and device of video frequency abstract
CN108668129A (en) A kind of coding method and device
CN110533628A (en) Method and device for determining screen direction and readable storage medium
CN106778765A (en) A kind of method and device of Car license recognition
CN110956093A (en) Big data-based model identification method, device, equipment and medium
CN102625028A (en) Method and apparatus for detecting static logo existing in video
CN106327500B (en) Depth information acquisition method and device
US9798932B2 (en) Video extraction method and device
JP3470938B2 (en) Method and apparatus for detecting telop character display frame
CN103353939A (en) Image characteristic object template extraction and identification method under dynamic background
CN113674316A (en) Video noise reduction method, device and equipment

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
GR01 Patent grant
GR01 Patent grant